using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Linq; using System.Windows.Forms; using DevExpress.XtraEditors; using Lskj.Business; using Lskj.Business.Impl; namespace Lskj.Control { public partial class FrmBack : BaseForm { public string ComfirmMsg = string.Empty; public FrmBack(string hint) { InitializeComponent(); Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this); memInput.Text = ""; ComfirmMsg = ""; labelHint.Text = hint; } /// /// 确认审批 /// /// /// private void btnOk(object sender, EventArgs e) { try { ComfirmMsg = memInput.Text; if (ComfirmMsg.Trim() == "") ComfirmMsg = "未填写任何内容"; this.DialogResult = DialogResult.OK; this.Close(); } catch (Exception ex) { string Message = ErrorMessage.PromptErrorMessage(ex); MessageUtil.Show("确认审批!" + Message); } } /// /// 取消审批 /// /// /// private void btnCancel(object sender, EventArgs e) { try { this.DialogResult = DialogResult.Cancel; this.Close(); } catch (Exception ex) { string Message = ErrorMessage.PromptErrorMessage(ex); MessageUtil.Show("取消审批"+Message); } } } }