| | |
| | | }; |
| | | frm.ShowDialog(); |
| | | }; |
| | | gvMx1.FocusedRowChanged += GvMx1_FocusedRowChanged; |
| | | } |
| | | |
| | | |
| | |
| | | UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true, gridViews); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx2, gvMx2); |
| | | //增加时,默认组织 |
| | | string deftOrg = UtilityHelper.GetFirstOrg(txt_tbl023); |
| | | } |
| | | /// <summary> |
| | | /// 保存事件 |
| | |
| | | AboutGuid = Gs.DevApp.ToolBox.UtilityHelper.ToGuid(row["aboutGuid"].ToString()), |
| | | Sl = _sl, //申请数量 |
| | | Remark = _tld014, |
| | | Bllb = row["tld015"].ToString() |
| | | Bllb = row["tld015"].ToString().Replace("|",",") |
| | | }); |
| | | } |
| | | } |
| | |
| | | { |
| | | 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_billNo.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); |
| | | } |
| | | } |
| | | |
| | |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | private void GvMx1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) |
| | | { |
| | | if (e.FocusedRowHandle >= 0 && gvMx1.GetDataRow(e.FocusedRowHandle)["tlid"].ToString().Length > 0) |
| | | { |
| | | DataRow row = gvMx1.GetDataRow(e.FocusedRowHandle); |
| | | lbMxGuid.Text = row["tlid"].ToString(); |
| | | toolBarMenu1.guidKey = row["tlid"].ToString(); |
| | | txtWlid.Text = row["tld002"].ToString(); |
| | | txtWlgg.Text = row["tld004"].ToString(); |
| | | txtWlmc.Text = row["tld003"].ToString(); |
| | | txtQuantity.Text = row["tld005"].ToString();//申请总量 |
| | | txtYdy.Text = row["ydy"].ToString();//已打印总量 |
| | | txt_kQty.Text = row["kdy"].ToString();//可打印总量 |
| | | } |
| | | else |
| | | { |
| | | lbMxGuid.Text = ""; |
| | | toolBarMenu1.guidKey = ""; |
| | | txtWlid.Text = ""; |
| | | txtWlgg.Text = ""; |
| | | txtWlmc.Text = ""; |
| | | txtQuantity.Text = ""; |
| | | txtYdy.Text = ""; |
| | | txt_kQty.Text = ""; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 选择不良 |