| | |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; |
| | | // Gs.DevApp.ToolBox.DragResizeHelp.RegisterControl(this, this.panelControl3, splitContainerControl1.Panel1, label1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "shState", "", (value) => |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "chkStatus", "", (value) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); |
| | | }); |
| | |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | //设置申请组织 |
| | | this.txt_sqOrg.EditChanged += (s, e) => |
| | | this.txt_fapporgid.EditChanged += (s, e) => |
| | | { |
| | | string _sqGuid = txt_sqOrg.GetId(); |
| | | string _sqGuid = txt_fapporgid.GetId(); |
| | | if (string.IsNullOrEmpty(_sqGuid)) |
| | | return; |
| | | System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(); |
| | |
| | | { |
| | | string rowGuid = "", rowName = ""; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_billno, gridView1, "billno"); |
| | | lbGuid, txt_fBillNo, gridView1, "fBillNo"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) |
| | | { |
| | | string rowGuid = "", rowName = ""; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billno, gridView1, "billno"); |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_fBillNo, gridView1, "billno"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | ToolBox.MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | string djlx = txt_djlx.SelectedText.ToString(); |
| | | string ywlx = txt_ywlx.SelectedText.ToString(); |
| | | string dbfx = txt_ftransferdirect.SelectedText.ToString(); |
| | | string sqOrg = txt_sqOrg.GetId(); |
| | | string dblx = txt_dblx.SelectedText.ToString(); |
| | | string dchzlx = txt_dchzlx.SelectedText.ToString(); |
| | | string drhzlx = txt_drhzlx.SelectedText.ToString(); |
| | | if (txt_djlx.SelectedIndex <= 0) |
| | | string djlx = txt_fBillTypeID.Text.ToString(); |
| | | string ywlx = txt_fBusinessType.Text.ToString(); |
| | | string dbfx = txt_fTransferDirect.Text.ToString(); |
| | | string sqOrg = txt_fapporgid.GetId(); |
| | | string dblx = txt_ftranstype.Text.ToString(); |
| | | string dchzlx = txt_fOwnerTypeIdHead.Text.ToString(); |
| | | string drhzlx = txt_fOwnerTypeInIdHead.Text.ToString(); |
| | | if (txt_fBillTypeID.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择单据类型!"); |
| | | txt_djlx.Focus(); |
| | | txt_fBillTypeID.Focus(); |
| | | return; |
| | | } |
| | | if (txt_ftransferdirect.SelectedIndex <= 0) |
| | | if (txt_fTransferDirect.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择调拨方向!"); |
| | | txt_ftransferdirect.Focus(); |
| | | txt_fTransferDirect.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(sqOrg)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择申请组织!"); |
| | | txt_sqOrg.Focus(); |
| | | txt_fapporgid.Focus(); |
| | | return; |
| | | } |
| | | if (txt_dchzlx.SelectedIndex <= 0) |
| | | if (txt_fOwnerTypeIdHead.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择调出货主类型!"); |
| | | txt_dchzlx.Focus(); |
| | | txt_fOwnerTypeIdHead.Focus(); |
| | | return; |
| | | } |
| | | if (txt_drhzlx.SelectedIndex <= 0) |
| | | if (txt_fOwnerTypeInIdHead.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择调入货主类型!"); |
| | | txt_drhzlx.Focus(); |
| | | txt_fOwnerTypeInIdHead.Focus(); |
| | | return; |
| | | } |
| | | var _obj = new |
| | |
| | | dblx = dblx,//调拨类型 |
| | | dchzlx = dchzlx,//调出货主类型 |
| | | drhzlx = drhzlx,//调入货主类型 |
| | | inRemark = txt_remark.Text.Trim(),//备注 |
| | | inRemark = txt_fRemarks.Text.Trim(),//备注 |
| | | list = new List<dynamic>(), |
| | | }; |
| | | gvMx1.CloseEditor(); |
| | |
| | | ItemId = (row["itemId"].ToString()), |
| | | Sqsl = (row["shNum"].ToString()), |
| | | Bz = (row["remark"].ToString()), |
| | | dczz = (row["dcOrg"].ToString()), |
| | | dcck = (row["dcCk"].ToString()), |
| | | drzz = (row["drOrg"].ToString()), |
| | | drck = (row["drCk"].ToString()), |
| | | dchz = (row["dcHz"].ToString()), |
| | | drhz = (row["drHz"].ToString()), |
| | | dczz = (row["dcOrgGuid"].ToString()), |
| | | dcck = (row["dcCkGuid"].ToString()), |
| | | drzz = (row["drOrgGuid"].ToString()), |
| | | drck = (row["drCkGuid"].ToString()), |
| | | dchz = (row["dcHzGuid"].ToString()), |
| | | drhz = (row["drHzGuid"].ToString()), |
| | | }); |
| | | } |
| | | } |
| | |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | lbGuid.Text = _rtn.rtnData.outGuid; |
| | | txt_billno.Text = _rtn.rtnData.outNo; |
| | | txt_fBillNo.Text = _rtn.rtnData.outNo; |
| | | toolBarMenu1.isSetBtn = true; |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_billno, gridView1); |
| | | lbGuid, txt_fBillNo, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | } |
| | | /// <summary> |
| | |
| | | }; |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billno, gridView1, "billno"); |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_fBillNo, gridView1, "fBillNo"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | } |
| | | int rowHandle = gridView1.LocateByValue(1, gridView1.Columns["guid"], rowGuid); |
| | | gridView1.FocusedRowHandle = rowHandle; |
| | | UtilityHelper.SetCheckIco(gridView1, "shState", "shBy", "shDate", picCheckBox, this, _inFieldValue.ToString()); |
| | | UtilityHelper.SetCheckIco(gridView1, "chkStatus", "FAPPROVEBY", "FAPPROVEDATE", picCheckBox, this, _inFieldValue.ToString()); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | DataRowView SelectedDataRow = (DataRowView)LookupEdit.GetSelectedDataRow(); |
| | | gvMx1.SetFocusedRowCellValue("itemNo", SelectedDataRow["itemNo"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemName", SelectedDataRow["itemName"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemMpdel", SelectedDataRow["itemModel"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemModel", SelectedDataRow["itemModel"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemId", SelectedDataRow["id"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemUnit", SelectedDataRow["dwName"].ToString()); |
| | | gvMx1.CloseEditor(); |
| | | gvMx1.UpdateCurrentRow(); |
| | |
| | | var rowhandle = gvMx1.FocusedRowHandle; |
| | | if (rowhandle < 0) |
| | | return; |
| | | int _drhzlx = txt_drhzlx.SelectedIndex; |
| | | int _drhzlx = txt_fOwnerTypeInIdHead.SelectedIndex; |
| | | if (_drhzlx <= 0) |
| | | { |
| | | MsgHelper.Warning("提示:请先选择调入货主类型!"); |
| | |
| | | var rowhandle = gvMx1.FocusedRowHandle; |
| | | if (rowhandle < 0) |
| | | return; |
| | | int _drhzlx = txt_dchzlx.SelectedIndex; |
| | | int _drhzlx = txt_fOwnerTypeIdHead.SelectedIndex; |
| | | if (_drhzlx <= 0) |
| | | { |
| | | MsgHelper.Warning("提示:请先选择调出货主类型!"); |