| 123456789101112131415161718192021222324252627282930313233343536 |
- using Core.Mes.Client.Comm.Tool;
- using CoreFS.CA06;
- using System;
- using System.Windows.Forms;
- namespace Core.StlMes.Client.Judge.Forms
- {
- public partial class PopupAudite : FrmBase
- {
- private bool _choiceNull = false;
- private string _passType = "";
- public PopupAudite(string caption, string passType, bool choiceNull)
- {
- InitializeComponent();
- this.Text = caption;
- _choiceNull = choiceNull;
- _passType = passType;
- this.cmbAuditType.Caption = caption;
- }
- private void btnSubmit_Click(object sender, EventArgs e)
- {
- if (cmbAuditType.Text == "" && (!_choiceNull || _passType.Contains("Urgent")))
- {
- MessageUtil.ShowWarning("请选择" + this.Text + "结果后再进行确认!");
- return;
- }
- if (txtAudit.Text.Trim() == "")
- {
- MessageUtil.ShowWarning("请输入评审意见!");
- return;
- }
- this.DialogResult = DialogResult.OK;
- }
- }
- }
|