| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using Core.Mes.Client.Comm.Tool;
- using Core.Mes.Client.Comm.Control;
- namespace Pur.Pop_upWindow
- {
- public partial class frmExamineShow : Form
- {
- private string status;
- /// <summary>
- /// 状态 1:不通过2:通过
- /// </summary>
- public string Status
- {
- set { status = value; }
- get { return status; }
- }
- public frmExamineShow()
- {
- InitializeComponent();
- }
- private string examineMessage;
- /// <summary>
- /// 审批意见
- /// </summary>
- public string ExamineMessage
- {
- set { examineMessage = value; }
- get { return examineMessage; }
- }
- /// <summary>
- /// 审批按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void button1_Click(object sender, EventArgs e)
- {
- if (textBox1.Text.Trim() == "" && radioButton1.Checked==false)
- {
- MessageUtil.ShowTips("请输入审批意见");
- return;
- }
- else
- {
- if (radioButton1.Checked)
- {
- status = "2";
- }
- else if (radioButton2.Checked)
- {
- status = "1";
- }
- examineMessage = textBox1.Text;
- this.Close();
- }
- }
- private void button2_Click(object sender, EventArgs e)
- {
- status = null;
- this.Close();
- }
- private void frmExamineShow_Load(object sender, EventArgs e)
- {
- }
- }
- }
|