using System; using System.Collections; using System.Windows.Forms; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using CoreFS.CA06; namespace Core.StlMes.Client.LgCommon { public partial class ucResPlanCcm : ucResBase { public ucResPlanCcm() { InitializeComponent(); } protected override void ultraGrid1_ClickCellButton(object sender, CellEventArgs e) { base.ultraGrid1_ClickCellButton(sender, e); try { string strKey = e.Cell.Column.Key.ToUpper(); if (strKey.Equals("CCMSTOVENO") || strKey.Equals("STDNO")) { frmHeatNoEditor frm = new frmHeatNoEditor(); frm.InputText = Convert.ToString(e.Cell.Text); frm.Location = ClsControlPack.GetChildWindowLocation(frm.Size); if (frm.ShowDialog() == DialogResult.OK) { e.Cell.Value = frm.InputText; ultraGrid1.UpdateData(); } } else if (strKey.Equals("MOULDNO") || strKey.Equals("MOULDSTOVENUM") || strKey.Equals("MOULDNUMID") || strKey.Equals("POTNO") || strKey.Equals("POTAGE") || strKey.Equals("HEAT_SEQ")) { frmInputDecimal frm = new frmInputDecimal(Convert.ToString(e.Cell.Text)); frm.Location = ClsControlPack.GetChildWindowLocation(frm.Size); if (frm.ShowDialog() == DialogResult.OK) { if (!frm.ValueChanged) return; e.Cell.Value = frm.Value; ultraGrid1.UpdateData(); } } } catch { } } } }