| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "chkStatus", "", (value) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); |
| | | |
| | | }, tips); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) => |
| | | { |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | }; |
| | | |
| | |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | MsgHelper.ShowInformation("提示:" + _rtn.rtnMsg); |
| | | if (xtraTabControl1.SelectedTabPageIndex == 0) |
| | | { } |
| | | else |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 2); |
| | | getPageList(this.pageBar1.CurrentPage); |
| | | } |
| | | MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | | else |
| | | MsgHelper.ShowError("提示:" + _rtn.rtnMsg); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | gvList.Add(gvMx1); |
| | | UtilityHelper.ChangeEnableByControl(splitMx1.Panel1.Controls, true, gvList); |
| | | } |
| | | //2025/07/12加上修改状态下不能修改供应商和组织srm,禁用 |
| | | txt_fapporgid.IsReadly = true; |
| | | txt_ftranstype.ReadOnly = true; |
| | | txt_fOwnerTypeIdHead.ReadOnly = true; |
| | | txt_fOwnerTypeInIdHead.ReadOnly = true; |
| | | } |
| | | /// <summary> |
| | | /// 新增事件 |
| | |
| | | //} |
| | | if (txt_fTransferDirect.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择调拨方向!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择调拨方向!"); |
| | | txt_fTransferDirect.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(sqOrg)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择申请组织!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择申请组织!"); |
| | | txt_fapporgid.Focus(); |
| | | return; |
| | | } |
| | |
| | | { |
| | | string strJson = UtilityHelper.HttpPost("", _webServiceName + "EditModel", JsonConvert.SerializeObject(_obj)); |
| | | ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); |
| | | ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | ToolBox.MsgHelper.ShowInformation("提示:" + _rtn.rtnMsg); |
| | | lbGuid.Text = _rtn.rtnData.outGuid; |
| | | txt_fBillNo.Text = _rtn.rtnData.outNo; |
| | | toolBarMenu1.isSetBtn = true; |
| | |
| | | toolBarMenu1.currentAction = ""; |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6); |
| | | } |
| | | else |
| | | ToolBox.MsgHelper.ShowError("提示:" + _rtn.rtnMsg); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | ToolBox.MsgHelper.Warning("提示:" + ex.Message); |
| | | ToolBox.MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | /// <summary> |
| | |
| | | if (toolBarMenu1.currentAction == "edit") isEdit = true; |
| | | if (string.IsNullOrEmpty(strGuid)) |
| | | { |
| | | ToolBox.MsgHelper.Warning("请先选择你要操作的行!"); |
| | | ToolBox.MsgHelper.ShowError("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | var _obj = new |
| | |
| | | } |
| | | } |
| | | else |
| | | ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | | ToolBox.MsgHelper.ShowError("提示:" + _rtn.rtnMsg); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | ToolBox.MsgHelper.Warning("提示:" + ex.Message); |
| | | ToolBox.MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | |
| | | case 0: |
| | | strMsg = "反审核"; |
| | | break; |
| | | }; |
| | | } |
| | | ; |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_fBillNo, gridView1, "FBillNo"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | MsgHelper.ShowError("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,确定" + strMsg + "吗?")) |
| | |
| | | _webServiceName + "EditModelSubmit", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.Warning(_rtn.rtnData.outMsg.ToString()); |
| | | if (_rtn.rtnCode > 0 && _rtn.rtnData.outSum * 1 > 0) |
| | | { |
| | | MsgHelper.ShowInformation(_rtn.rtnData.outMsg.ToString()); |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | { |
| | | getModel(lbGuid.Text.Trim()); |
| | |
| | | gridView1.FocusedRowHandle = rowHandle; |
| | | UtilityHelper.SetCheckIco(gridView1, "chkStatus", "FAPPROVEBY", "FAPPROVEDATE", picCheckBox, this, _inFieldValue.ToString()); |
| | | } |
| | | else |
| | | MsgHelper.ShowError(_rtn.rtnData.outMsg.ToString()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | if (_rtn.rtnCode > 0) getModel(lbGuid.Text); |
| | | MsgHelper.ShowInformation("提示:" + _rtn.rtnMsg); |
| | | getModel(lbGuid.Text); |
| | | } |
| | | MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | | else |
| | | MsgHelper.ShowError("提示:" + _rtn.rtnMsg); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | } |
| | |
| | | var strOrgGuid = dr["dcOrgGuid"].ToString(); |
| | | if (string.IsNullOrEmpty(strOrgGuid)) |
| | | { |
| | | MsgHelper.Warning("提示:请先选择调出组织!"); |
| | | MsgHelper.ShowError("提示:请先选择调出组织!"); |
| | | return; |
| | | }; |
| | | } |
| | | ; |
| | | SelectCk frm = new SelectCk(strOrgGuid); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | |
| | | var dr = gvMx1.GetDataRow(rowhandle); |
| | | if (dr["dcCkGuid"] == null) |
| | | { |
| | | MsgHelper.Warning("提示:请先选择调出仓库!"); |
| | | MsgHelper.ShowError("提示:请先选择调出仓库!"); |
| | | return; |
| | | }; |
| | | } |
| | | ; |
| | | var strCkGuid = dr["dcCkGuid"].ToString(); |
| | | if (string.IsNullOrEmpty(strCkGuid)) |
| | | { |
| | | MsgHelper.Warning("提示:请先选择调出仓库!"); |
| | | MsgHelper.ShowError("提示:请先选择调出仓库!"); |
| | | return; |
| | | }; |
| | | } |
| | | ; |
| | | SelectCw frm = new SelectCw(strCkGuid); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | |
| | | var strOrgGuid = dr["drOrgGuid"].ToString(); |
| | | if (string.IsNullOrEmpty(strOrgGuid)) |
| | | { |
| | | MsgHelper.Warning("提示:请先选择调入组织!"); |
| | | MsgHelper.ShowError("提示:请先选择调入组织!"); |
| | | return; |
| | | }; |
| | | } |
| | | ; |
| | | SelectCk frm = new SelectCk(strOrgGuid); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | |
| | | var dr = gvMx1.GetDataRow(rowhandle); |
| | | if (dr["drCkGuid"] == null) |
| | | { |
| | | MsgHelper.Warning("提示:请先选择调入仓库!"); |
| | | MsgHelper.ShowError("提示:请先选择调入仓库!"); |
| | | return; |
| | | }; |
| | | } |
| | | ; |
| | | var strCkGuid = dr["drCkGuid"].ToString(); |
| | | if (string.IsNullOrEmpty(strCkGuid)) |
| | | { |
| | | MsgHelper.Warning("提示:请先选择调入仓库!"); |
| | | MsgHelper.ShowError("提示:请先选择调入仓库!"); |
| | | return; |
| | | }; |
| | | } |
| | | ; |
| | | SelectCw frm = new SelectCw(strCkGuid); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |