PopupAudit.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using CoreFS.CA06;
  10. using Core.Mes.Client.Comm.Tool;
  11. namespace Core.StlMes.Client.SaleOrder.Dialog
  12. {
  13. public partial class PopupAudit : FrmBase
  14. {
  15. public PopupAudit(string caption)
  16. {
  17. InitializeComponent();
  18. this.Text = caption;
  19. this.cmbAuditType.Caption = caption;
  20. }
  21. private void btnSubmit_Click(object sender, EventArgs e)
  22. {
  23. if (cmbAuditType.Text == "")
  24. {
  25. MessageUtil.ShowWarning("请选择" + this.Text + "结果后再进行确认!");
  26. return;
  27. }
  28. if (cmbAuditType.Text == "不通过" && txtAudit.Text.Trim() == "")
  29. {
  30. MessageUtil.ShowWarning("请输入不通过原因!");
  31. return;
  32. }
  33. this.DialogResult = DialogResult.OK;
  34. }
  35. }
  36. }