| | |
| | | toolBarMenu1.isSetBtn = false; |
| | | if (string.IsNullOrEmpty(txt_depotCode.Text.Trim())) |
| | | { |
| | | MsgHelper.Warning("仓库编码不能为空!"); |
| | | MsgHelper.ShowError("仓库编码不能为空!"); |
| | | txt_depotCode.Focus(); |
| | | return; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(txt_depotName.Text.Trim())) |
| | | { |
| | | MsgHelper.Warning("仓库名称不能为空!"); |
| | | MsgHelper.ShowError("仓库名称不能为空!"); |
| | | txt_depotName.Focus(); |
| | | return; |
| | | } |
| | |
| | | DepotCode = txt_depotCode.Text, |
| | | DepotName = txt_depotName.Text, |
| | | Description = txt_description.Text, |
| | | Remark5=txt_remark5.Text.Trim(), |
| | | list = lst |
| | | }; |
| | | |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", |
| | | _webServiceName + "EditModel", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | MsgHelper.ShowInformation("提示:" + _rtn.rtnMsg); |
| | | lbGuid.Text = _rtn.rtnData; |
| | | toolBarMenu1.isSetBtn = true; |
| | | var gridViews = new List<GridView>(); |
| | |
| | | toolBarMenu1.currentAction = ""; |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6); |
| | | } |
| | | else |
| | | MsgHelper.ShowError("提示:" + _rtn.rtnMsg); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |