| | |
| | | using DevExpress.DataAccess.DataFederation; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraEditors.Controls; |
| | | using DevExpress.XtraGrid.Views.Base.ViewInfo; |
| | | using DevExpress.XtraGrid.Views.Grid; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | |
| | | toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | toolBarMenu1.btnJianYanClick += ToolBarMenu1_btnJianYanClick; |
| | | toolBarMenu1.btnFjianYanClick += ToolBarMenu1_btnFjianYanClick; |
| | | toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | |
| | | frm.ShowDialog(); |
| | | }; |
| | | } |
| | | |
| | | private void ToolBarMenu1_btnLogClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_billNo, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 反检验 |
| | | /// </summary> |
| | |
| | | toolBarMenu1.isSetBtn = false; |
| | | var _ckCode = txt_depotsCode.GetCode(); //仓库编号 depots_code |
| | | var _gysCode = txt_suppNo.GetCode(); //供应商编号 |
| | | if (string.IsNullOrEmpty(_ckCode)) |
| | | { |
| | | MsgHelper.Warning("请选择仓库!"); |
| | | txt_depotsCode.Focus(); |
| | | return; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(_gysCode)) |
| | | { |
| | | MsgHelper.Warning("请选择供应商!"); |
| | |
| | | return; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(txt_paperBillNo.Text.Trim())) |
| | | if (string.IsNullOrEmpty(_ckCode)) |
| | | { |
| | | MsgHelper.Warning("请选择送货单号!"); |
| | | txt_paperBillNo.Focus(); |
| | | MsgHelper.Warning("请选择仓库!"); |
| | | txt_depotsCode.Focus(); |
| | | return; |
| | | } |
| | | |
| | | var _obj = new MesInvItemArn(); |
| | | _obj.Guid = Gs.DevApp.ToolBox.UtilityHelper.ToGuid(lbGuid.Text.Trim()); //到货单主键 |
| | | _obj.PaperBillNo = txt_paperBillNo.Text.Trim(); //送货单号; |
| | | _obj.Remark = ""; //备注 |
| | | _obj.Remark = txt_remark.Text.Trim(); //备注 |
| | | _obj.SuppNo = _gysCode; //供应商编号 |
| | | _obj.DepotsCode = _ckCode; //仓库编号 depots_code |
| | | _obj.FType = txt_fType.Checked; //0=采购,1=委外 |