using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using CoreFS.CA06; namespace Core.LgMes.Client.LgJobMgt { public partial class frmProcessAbnormity : CoreFS.CA06.FrmBase { public frmProcessAbnormity() { InitializeComponent(); } public string strSmeltingID=""; //熔炼号 public string strCraftposID = ""; //工序代码 private void frmProcessAbnormity_Load(object sender, EventArgs e) { } private void butExit_Click(object sender, EventArgs e) { this.Close(); } /// /// 添加异常信息 /// /// 熔炼号 /// 工序代码 /// 录入时间 /// 异常代码 /// 备注(异常信息) /// 记录人 /// 班次班别 private void AddProcessAbnormity() { string strErr=""; string strTime_ = "", strAbnormityCode="99",strMemo="",strRecorder=""; strTime_ = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); //记录时间 strMemo = txtMemo.Text; //异常信息 strRecorder = this.UserInfo.GetUserName(); //记录人 //hengxing //ClientCommon._RemotingHelp.ExecuteMethod("lgJobMgt", // "Core.LgMes.Server.lgJobMgt.classCommonQuery", // "AddProcessAbnormity", new object[]{strSmeltingID,strCraftposID,strTime_, // strAbnormityCode,strMemo,strRecorder},out strErr); if (strErr != "") { MessageBox.Show("异常信息保存失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return; } else MessageBox.Show("异常信息保存成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); // ID_,SMELTINGID,CRAFTPOSID,TIME_,ABNORMITYCODE,MEMO,RECORDER,DUTYNO } private void butSave_Click(object sender, EventArgs e) { DialogResult result; result=MessageBox.Show("是否要保存异常信息,保存后将不无法修改!", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { AddProcessAbnormity(); this.Close(); } } } }