| | |
| | | using DevExpress.Pdf.Native.BouncyCastle.Utilities.Collections; |
| | | using DevExpress.XtraLayout.Customization; |
| | | using DevExpress.XtraRichEdit.API.Native; |
| | | using Gs.DevApp.DevFrm.QC; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | |
| | | toolBarMenu1.isSetBtn = false; |
| | | if (txt_fcheckResu.Text.Trim() == _strTag && string.IsNullOrEmpty(txt_fngDesc.TextTxt.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("当检验结果不合格时,请填写备注说明!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("当检验结果不合格时,请填写异常描述!"); |
| | | txt_fngDesc.Focus(); |
| | | return; |
| | | } |
| | | if (txt_fcheckResu.Text.Trim() == _strTag && string.IsNullOrEmpty(txt_xblb.TextTxt.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("当检验结果不合格时,请填写选别类别!"); |
| | | txt_xblb.Focus(); |
| | | return; |
| | | } |
| | | var _obj = new |
| | | { |
| | | guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建 |
| | | fngDesc = txt_fngDesc.TextTxt.Trim(), |
| | | iqcRemark= txt_iqcRemark.Text.Trim(), |
| | | iqcXblb = txt_xblb.TextTxt.Trim(), |
| | | }; |
| | | try |
| | | { |
| | | string strJson = UtilityHelper.HttpPost("", _webServiceName + "EditModel", JsonConvert.SerializeObject(_obj)); |
| | | ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); |
| | | |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | ToolBox.MsgHelper.ShowInformation("提示:" + _rtn.rtnMsg); |