frmExamineShow.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 Core.Mes.Client.Comm.Control;
  11. namespace Pur.Pop_upWindow
  12. {
  13. public partial class frmExamineShow : Form
  14. {
  15. private string status;
  16. /// <summary>
  17. /// 状态 1:不通过2:通过
  18. /// </summary>
  19. public string Status
  20. {
  21. set { status = value; }
  22. get { return status; }
  23. }
  24. public frmExamineShow()
  25. {
  26. InitializeComponent();
  27. }
  28. private string examineMessage;
  29. /// <summary>
  30. /// 审批意见
  31. /// </summary>
  32. public string ExamineMessage
  33. {
  34. set { examineMessage = value; }
  35. get { return examineMessage; }
  36. }
  37. /// <summary>
  38. /// 审批按钮
  39. /// </summary>
  40. /// <param name="sender"></param>
  41. /// <param name="e"></param>
  42. private void button1_Click(object sender, EventArgs e)
  43. {
  44. if (textBox1.Text.Trim() == "" && radioButton1.Checked==false)
  45. {
  46. MessageUtil.ShowTips("请输入审批意见");
  47. return;
  48. }
  49. else
  50. {
  51. if (radioButton1.Checked)
  52. {
  53. status = "2";
  54. }
  55. else if (radioButton2.Checked)
  56. {
  57. status = "1";
  58. }
  59. examineMessage = textBox1.Text;
  60. this.Close();
  61. }
  62. }
  63. private void button2_Click(object sender, EventArgs e)
  64. {
  65. status = null;
  66. this.Close();
  67. }
  68. private void frmExamineShow_Load(object sender, EventArgs e)
  69. {
  70. }
  71. }
  72. }