| | |
| | | return; |
| | | if (txt_fcheckResu.Text.Trim() == "不合格") |
| | | { |
| | | if (string.IsNullOrEmpty(txt_remarks.Text.Trim())) |
| | | if (string.IsNullOrEmpty(txt_fngDesc.Text.Trim())) |
| | | { |
| | | MsgHelper.Warning("单据为不合格时,请填写备注说明!"); |
| | | MsgHelper.Warning("单据为不合格时,请填写异常备注说明!"); |
| | | return; |
| | | } |
| | | }; |
| | |
| | | private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | if (txt_fcheckResu.Text.Trim() == "N:不合格" && string.IsNullOrEmpty(txt_remarks.Text.Trim())) |
| | | if (txt_fcheckResu.Text.Trim() == "N:不合格" && string.IsNullOrEmpty(txt_fngDesc.Text.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("当检验结果不合格时,请填写备注说明!"); |
| | | txt_remarks.Focus(); |
| | | txt_fngDesc.Focus(); |
| | | return; |
| | | } |
| | | var _obj = new |
| | | { |
| | | guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建 |
| | | remarks = txt_remarks.Text.Trim(), |
| | | fngDesc = txt_fngDesc.Text.Trim(), |
| | | }; |
| | | try |
| | | { |
| | |
| | | this.setEable(false); |
| | | toolBarMenu1.currentAction = ""; |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6); |
| | | |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | dynamic dy = _rtn.rtnData; |
| | | btnYcReport.Tag = dy.toGuid.ToString(); |
| | | btnYcReport.ToolTip = dy.toGuid.ToString(); |
| | | lbGuid.Text = strGuid; |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | |
| | | public event EventHandler<UpdateParentEventArgs> ToUpdateParent; |
| | | private void BtnYcReport_Click(object sender, EventArgs e) |
| | | { |
| | | string _toGuid = (btnYcReport.Tag == null ? "" : btnYcReport.Tag.ToString()); |
| | | string _toGuid = (btnYcReport.ToolTip == null ? "" : btnYcReport.ToolTip.ToString()); |
| | | if (string.IsNullOrEmpty(_toGuid)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("该单无异常报告,查看失败!"); |