| | |
| | | string inKcfx = txt_qt020.Text.Trim();//库存方向 |
| | | if (string.IsNullOrEmpty(inOrgId)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择库存组织!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择库存组织!"); |
| | | txt_qt023.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(inHzlx)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择货主类型!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择货主类型!"); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(inHz)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择货主!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择货主!"); |
| | | return; |
| | | } |
| | | if (txt_qt019.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择单据类型!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择单据类型!"); |
| | | txt_qt019.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(inLyOrg)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择领用组织!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择领用组织!"); |
| | | txt_qt024.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(inLyCus) && string.IsNullOrEmpty(inLyDepart)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("客户或部门必选一个!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("客户或部门必选一个!"); |
| | | return; |
| | | } |
| | | //if (txt_qt020.SelectedIndex <= 0) |
| | |
| | | { |
| | | 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_qtck.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); |
| | | } |
| | | } |
| | | |