| | |
| | | public Frm_MesInvItemArn() |
| | | { |
| | | InitializeComponent(); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | this.gridView1.ColumnPanelRowHeight = 60; |
| | | this.gridView1.OptionsView.AllowHtmlDrawHeaders = true; |
| | | this.gridView1.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; |
| | | toolBarMenu1.btnAddClick += ToolBarMenu1_btnAddClick; |
| | | toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; |
| | | toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; |
| | |
| | | toolBarMenu1.btnFjianYanClick += ToolBarMenu1_btnFjianYanClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | | { |
| | | if (e.Info.IsRowIndicator && e.RowHandle >= 0) |
| | |
| | | _obj.list = new List<MesInvItemArnDetail>(); |
| | | gvMx1.CloseEditor(); |
| | | gvMx1.UpdateCurrentRow(); |
| | | if (gvMx1.DataRowCount <= 0) { |
| | | MsgHelper.ShowError("明细不能为空,请选择你的收料明细!"); |
| | | return; |
| | | } |
| | | for (var i = 0; i < gvMx1.DataRowCount; i++) |
| | | { |
| | | var row = gvMx1.GetDataRow(i); |
| | | if (row != null) |
| | | { |
| | | Guid? _guid = null; |
| | | if (string.IsNullOrEmpty(row["guid"].ToString())) |
| | | _guid = null; |
| | | else |
| | | _guid = Guid.Parse(row["guid"].ToString()); |
| | | Guid? _guid = UtilityHelper.ToGuid(row["guid"].ToString()); |
| | | string _msl = row["quantity"].ToString(); |
| | | if (string.IsNullOrEmpty(_msl)) |
| | | { |
| | | MsgHelper.ShowError("数量不能为空!"); |
| | | return; |
| | | } |
| | | _obj.list.Add(new MesInvItemArnDetail |
| | | { |
| | | Guid = _guid, |