| | |
| | | gvMx1.UpdateCurrentRow(); |
| | | gcMx1.ForceInitialize(); |
| | | gvMx1.BestFitColumns(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx1); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | if (row != null) |
| | | { |
| | | Guid? _guid = UtilityHelper.ToGuid(row["guid"].ToString()); |
| | | //string _LineId = row["daa015"].ToString(); |
| | | //if (string.IsNullOrEmpty(_LineId)) |
| | | //{ |
| | | // MsgHelper.ShowError("产线编码不能为空!"); |
| | | // return; |
| | | //} |
| | | string _Pcsl = row["daa008"].ToString(); |
| | | if (string.IsNullOrEmpty(_Pcsl)) |
| | | string _LineId = row["daa015"].ToString(); |
| | | if (string.IsNullOrEmpty(_LineId)) |
| | | { |
| | | MsgHelper.ShowError("排产数量不能为空!"); |
| | | MsgHelper.ShowError("线别不能为空!"); |
| | | return; |
| | | } |
| | | if (Gs.DevApp.ToolBox.UtilityHelper.ToDecimal(row["daa008"].ToString()) <= 0) |
| | | { |
| | | MsgHelper.ShowError("请输入正确的排产数量!"); |
| | | return; |
| | | } |
| | | string _Yjkgsj = row["mesStartProd"].ToString(); |
| | |
| | | gcMx1.DataSource = dt; |
| | | gcMx1.ForceInitialize(); |
| | | gvMx1.BestFitColumns(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx1); |
| | | } |
| | | else |
| | | { |