frmPopReason.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 Core.Mes.Client.Comm.Tool;
  10. using CoreFS.CA06;
  11. namespace Pur.Pop_upWindow
  12. {
  13. public partial class frmPopReason : FrmBase
  14. {
  15. public frmPopReason()
  16. {
  17. InitializeComponent();
  18. }
  19. private string reason;
  20. private string tips;
  21. public string Tips
  22. {
  23. get { return tips; }
  24. set { tips = value; }
  25. }
  26. public string Reason
  27. {
  28. get { return reason; }
  29. set { reason = value; }
  30. }
  31. public frmPopReason(OpeBase Ob)
  32. {
  33. InitializeComponent();
  34. this.ob = Ob;
  35. }
  36. private void frmPopReason_Load(object sender, EventArgs e)
  37. {
  38. reason = "";
  39. tips = "0";//默认取消提交
  40. }
  41. private void button1_Click(object sender, EventArgs e)//确认提交
  42. {
  43. reason = ultraTextEditor1.Text.ToString().Trim();
  44. if (reason == "")
  45. {
  46. MessageUtil.ShowTips("退回原因不能为空");
  47. ultraTextEditor1.Focus();
  48. return;
  49. }
  50. tips = "1";
  51. this.Close();
  52. }
  53. private void button2_Click(object sender, EventArgs e)//取消提交
  54. {
  55. tips = "0";
  56. this.Close();
  57. }
  58. }
  59. }