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 Stone.Common; namespace Stone.WinModule.BasicData { public partial class frmJISLogCheck : Form { public DataTable dtData = null; public frmJISLogCheck() { InitializeComponent(); } private void frmJISLogCheck_Load(object sender, EventArgs e) { } private void btnOK_Click(object sender, EventArgs e) { try { if (!MyValidator.IsEmpty(this.txtReason, "")) return; Entity.Entity_t_JIS_Log t_JIS_Log = new Entity.Entity_t_JIS_Log(); dtData.Rows[0]["ProcessState"] = "Success"; dtData.Rows[0]["CheckTime"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); dtData.Rows[0]["CheckUser"] = User.UserInfo.UserName; dtData.Rows[0]["Reason"] = MyStrings.GetString(this.txtReason.Text.Trim()); t_JIS_Log.Edit(dtData.Rows[0]); this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); } catch (Exception ex) { MyMessageBox.ShowErrorMessage(ex.Message); } } private void btnClose_Click(object sender, EventArgs e) { this.Close(); } } }