| | |
| | | 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.DragResizeHelp.RegisterControl(this, this.panelControl3, splitContainerControl1. splitMx1.Panel1, label1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "chkStatus", "", (value) => |
| | | { |
| | |
| | | { |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | | UtilityHelper.ChangeEnableByControl(panel1.Controls, true, gvList); |
| | | UtilityHelper.ChangeEnableByControl( splitMx1.Panel1.Controls, true, gvList); |
| | | |
| | | } |
| | | } |
| | | /// <summary> |
| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 4); |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gridViews = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gridViews.Add(gvMx1); |
| | | UtilityHelper.CleanValueByControl(this.panel1.Controls, true, gridViews); |
| | | UtilityHelper.CleanValueByControl(this. splitMx1.Panel1.Controls, true, gridViews); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); |
| | | |
| | | } |
| | |
| | | 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_fBillTypeID.Focus(); |
| | | return; |
| | | } |
| | | //if (txt_fBillTypeID.SelectedIndex <= 0) |
| | | //{ |
| | | // Gs.DevApp.ToolBox.MsgHelper.Warning("请选择单据类型!"); |
| | | // txt_fBillTypeID.Focus(); |
| | | // return; |
| | | //} |
| | | if (txt_fTransferDirect.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择调拨方向!"); |
| | |
| | | MsgHelper.ShowError("数量不能为空!"); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(row["dcOrgGuid"].ToString())) |
| | | { |
| | | MsgHelper.ShowError("调出组织不能为空!"); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(row["dcCkGuid"].ToString())) |
| | | { |
| | | MsgHelper.ShowError("调出仓库不能为空!"); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(row["drOrgGuid"].ToString())) |
| | | { |
| | | MsgHelper.ShowError("调入组织不能为空!"); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(row["drCkGuid"].ToString())) |
| | | { |
| | | MsgHelper.ShowError("调入仓库不能为空!"); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(row["dcHzGuid"].ToString())) |
| | | { |
| | | MsgHelper.ShowError("调出货主不能为空!"); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(row["drHzGuid"].ToString())) |
| | | { |
| | | MsgHelper.ShowError("调入货主不能为空!"); |
| | | return; |
| | | } |
| | | _obj.list.Add(new |
| | | { |
| | | Guid = _guid, |
| | |
| | | toolBarMenu1.isSetBtn = true; |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | | UtilityHelper.ChangeEnableByControl(this.panel1.Controls, false, gvList); |
| | | UtilityHelper.ChangeEnableByControl(this. splitMx1.Panel1.Controls, false, gvList); |
| | | toolBarMenu1.currentAction = ""; |
| | | } |
| | | } |
| | |
| | | lbGuid.Text = strGuid; |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | | UtilityHelper.SetValueByObj(this.panel1.Controls, dy, isEdit, gvList); |
| | | UtilityHelper.SetValueByObj(this. splitMx1.Panel1.Controls, dy, isEdit, gvList); |
| | | JObject _job = JObject.Parse(strJson); |
| | | JArray array = new JArray(); |
| | | foreach (var a in _job["rtnData"]["list"]) |
| | |
| | | if (rowhandle < 0) |
| | | return; |
| | | var dr = gvMx1.GetDataRow(rowhandle); |
| | | if (dr["dcOrgGuid"] == null) |
| | | { |
| | | MsgHelper.Warning("提示:请先选择调出组织!"); |
| | | return; |
| | | }; |
| | | var strOrgGuid = dr["dcOrgGuid"].ToString(); |
| | | if (string.IsNullOrEmpty(strOrgGuid)) |
| | | { |
| | |
| | | if (rowhandle < 0) |
| | | return; |
| | | var dr = gvMx1.GetDataRow(rowhandle); |
| | | if (dr["drOrgGuid"] == null) |
| | | { |
| | | MsgHelper.Warning("提示:请先选择调出组织!"); |
| | | return; |
| | | }; |
| | | var strOrgGuid = dr["drOrgGuid"].ToString(); |
| | | if (string.IsNullOrEmpty(strOrgGuid)) |
| | | { |
| | | MsgHelper.Warning("提示:请先选择调出组织!"); |
| | | MsgHelper.Warning("提示:请先选择调入组织!"); |
| | | return; |
| | | }; |
| | | SelectCk frm = new SelectCk(strOrgGuid); |