PopupAudit.cs 873 B

12345678910111213141516171819202122232425262728293031
  1. using Core.Mes.Client.Comm.Tool;
  2. using CoreFS.CA06;
  3. using System;
  4. using System.Windows.Forms;
  5. namespace Core.StlMes.Client.Qcm
  6. {
  7. public partial class PopupAudit : FrmBase
  8. {
  9. public PopupAudit(string memo)
  10. {
  11. InitializeComponent();
  12. txtMemo.Text = memo;
  13. }
  14. private void btnSubmit_Click(object sender, EventArgs e)
  15. {
  16. if (cmbAuditType.Text == "")
  17. {
  18. MessageUtil.ShowWarning("请选择审核结果后再进行确认!");
  19. return;
  20. }
  21. else if (txtMemo.Text.Trim() == "" && cmbAuditType.Text == "审核不通过")
  22. {
  23. MessageUtil.ShowWarning("请输入审核不通过原因,再进行确认!");
  24. return;
  25. }
  26. this.DialogResult = DialogResult.OK;
  27. }
  28. }
  29. }