雅琪诺MES智能条码管理系统
2
jhz
2022-06-29 b653cf7487a21e9148b99db5eadef25429d5cd45
2
1个文件已修改
9 ■■■■ 已修改文件
BaseSet/公用基础资料/Gy_GroupEmpEdit.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BaseSet/¹«Óûù´¡×ÊÁÏ/Gy_GroupEmpEdit.cs
@@ -281,8 +281,13 @@
        {
            foreach (DataGridViewRow item in grdMain.Rows)
            {
                if (item.Cells[2] == null|| item.Cells[2].Value == null)
                if (item.Cells[2] == null|| item.Cells[2].Value == null || item.Cells[6] == null || item.Cells[6].Value == null)
                {
                    if(DBUtility.ClsPub.isLong(item.Cells[2].Value)!=0 && DBUtility.ClsPub.isLong(item.Cells[6].Value) == 0)
                    {
                        MessageBox.Show("没有维护班组!");
                    }
                    //MessageBox.Show("")
                    continue;
                }
                var remark = item.Cells[5].EditedFormattedValue==null?"":item.Cells[5].EditedFormattedValue.ToString();
@@ -293,7 +298,7 @@
                if (item.Cells[9].Value.ToString().Trim() == "")
                {
                    item.Cells[9].Value = "23:00:00";
                }
                }
                var sql = "insert into Gy_GroupEmpListSub(HInterID,HEmpID,HGroupID,HBeginTimes,HEndTimes,HRemark) values (" + hinterId + "," + item.Cells[2].Value + "," + item.Cells[6].Value + ",'" + item.Cells[8].Value + "','" + item.Cells[9].Value + "','" + remark + "')";
                oWeb.getRunProc(sql, ref Pub_Class.ClsPub.sExeReturnInfo);
            }