PopupAudite.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using Core.Mes.Client.Comm.Tool;
  2. using CoreFS.CA06;
  3. using System;
  4. using System.Windows.Forms;
  5. namespace Core.StlMes.Client.Judge.Forms
  6. {
  7. public partial class PopupAudite : FrmBase
  8. {
  9. private bool _choiceNull = false;
  10. private string _passType = "";
  11. public PopupAudite(string caption, string passType, bool choiceNull)
  12. {
  13. InitializeComponent();
  14. this.Text = caption;
  15. _choiceNull = choiceNull;
  16. _passType = passType;
  17. this.cmbAuditType.Caption = caption;
  18. }
  19. private void btnSubmit_Click(object sender, EventArgs e)
  20. {
  21. if (cmbAuditType.Text == "" && (!_choiceNull || _passType.Contains("Urgent")))
  22. {
  23. MessageUtil.ShowWarning("请选择" + this.Text + "结果后再进行确认!");
  24. return;
  25. }
  26. if (txtAudit.Text.Trim() == "")
  27. {
  28. MessageUtil.ShowWarning("请输入评审意见!");
  29. return;
  30. }
  31. this.DialogResult = DialogResult.OK;
  32. }
  33. }
  34. }