| | |
| | | string _txt_fzrId = txt_fzrId.GetId(); |
| | | string _txt_workNo = txt_workNo.Text.Trim(); |
| | | string _txt_msg = txt_msg.TextTxt; |
| | | string _txt_zrType = txt_zrType.Text.Trim(); |
| | | if (txt_freceQty.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择判定结果!"); |
| | |
| | | txt_fngHandle.Focus(); |
| | | return; |
| | | } |
| | | if (_txt_fzrId.Length <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择责任人!"); |
| | | txt_fzrId.Focus(); |
| | | return; |
| | | } |
| | | |
| | | if (txt_zrType.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择责任判定!"); |
| | | txt_zrType.Focus(); |
| | | return; |
| | | } |
| | | |
| | | //当处置结果为反工时,要选择工序和反工编号 |
| | | if (txt_fngHandle.SelectedIndex == 1) |
| | | { |
| | |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (!string.IsNullOrEmpty(_txt_workNo)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("不需要填写反工单号!"); |
| | | txt_workNo.Focus(); |
| | | return; |
| | | } |
| | | if (!string.IsNullOrEmpty(_txt_fmrmode)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("不需要选择反工工序!"); |
| | | txt_fmrmode.Focus(); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | //当为合格时,就不应该选择其它项目了 |
| | | else { |
| | | if ((_txt_fngHandle.Length + _txt_fmrmode.Length + _txt_fzrId.Length + _txt_workNo.Length) > 0) |
| | | else |
| | | { |
| | | if ((_txt_fmrmode.Length + _txt_fzrId.Length + _txt_workNo.Length) > 0 || txt_zrType.SelectedIndex > 0 || txt_fngHandle.SelectedIndex > 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("当判定结果为合格时,就不应该选择其它项目了!!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("当判定结果为合格时,就不应该选择其它项目了!"); |
| | | txt_freceQty.Focus(); |
| | | return; |
| | | } |
| | |
| | | workNo = _txt_workNo, |
| | | fmrmode = _txt_fmrmode, |
| | | msg = _txt_msg, |
| | | zrType = _txt_zrType, |
| | | edtType = 1 |
| | | }; |
| | | try |