| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System;
- using System.Drawing;
- using System.Windows.Forms;
- using Core.LgMes.Client.Comm;
- namespace Core.LgMes.Client.LgJobMgt
- {
- public partial class ucInIron : UserControl
- {
- public ucInIron()
- {
- InitializeComponent();
- CStaticMethod.SetUltraGridStyle(ultraGrid1, 2); //设置样式
- }
- public Image m_imageDefault = null;
- private void ucInIron_Load(object sender, EventArgs e)
- {
- ultraDataSource1.Rows.Add(new object[] { "", "", "", null, "", "", "", "", "", "", "", "", "" });
- }
- private void ultraGrid1_CellChange(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
- {
- if(e.Cell.Column.Key=="LdMaoWeight")
- {
- try
- {
- if (e.Cell.Text.ToString().Length > 0)
- {
- if (Convert.ToDouble(e.Cell.Text) > 250)
- {
- MessageBox.Show("铁水毛重不能大于( 250Kg ),重新输入!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- e.Cell.Value = "";
- }
- }
- }
- catch
- {
- MessageBox.Show("输入数据格式不正确,重新输入!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- }
- }
- }
- }
- }
|