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; /// /// 状态 1:不通过2:通过 /// public string Status { set { status = value; } get { return status; } } public frmExamineShow() { InitializeComponent(); } private string examineMessage; /// /// 审批意见 /// public string ExamineMessage { set { examineMessage = value; } get { return examineMessage; } } /// /// 审批按钮 /// /// /// 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) { } } }