using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using Infragistics.Win.UltraWinGrid; using Infragistics.Win.UltraWinEditors; using Core.Mes.Client.Comm.Tool; using System.Collections; //数据采集基本信息输入 namespace Core.StlMes.Client.Lims.Data.Mat { public partial class MatGetSampleBase : UserControl { public string StrStd { get { return txtGET_SAMPLE_STD.Text.Trim(); } set { txtGET_SAMPLE_STD.Text = value; } } //private string strName; public string StrName { get { return txtGET_SAMPLE_NAME.Text.Trim(); } set { txtGET_SAMPLE_NAME.Text = value; } } //private string strTime; public string StrTime { get { return txtGET_SAMPLE_TIME.Text.Trim(); } set { txtGET_SAMPLE_TIME.Text = value; } } //private string strShift; public string StrShift { get { return ultraGET_SAMPLE_SHIFT.Text.Trim(); } set { ultraGET_SAMPLE_SHIFT.Text = value; } } //private string strClass; public string StrClass { get { return ultraGET_SAMPLE_CLASS.Text.Trim(); } set { ultraGET_SAMPLE_CLASS.Text = value; } } //private string strWeight; public string StrWeight { get { return txtGET_SAMPLE_WEIGHT.Text.Trim(); } set { txtGET_SAMPLE_WEIGHT.Text = value; } } //private string strSmallCount; public string StrSmallCount { get { return txtGET_SMALL_COUNT.Text.Trim(); } set { txtGET_SMALL_COUNT.Text = value; } } //private string strCount; public string StrCount { get { return txtGET_SAMPLE_COUNT.Text.Trim(); } set { txtGET_SAMPLE_COUNT.Text = value; } } //private string strTemp; public string StrDept { get { return txtGET_SAMPLE_DEPT.Text.Trim(); } set { txtGET_SAMPLE_DEPT.Text = value; } } //private string strArea; public string StrArea { get { return txtGET_SAMPLE_AREA.Text.Trim(); } set { txtGET_SAMPLE_AREA.Text = value; } } //private string strRemark; public string StrRemark { get { return txtREMARK.Text.Trim(); } set { txtREMARK.Text = value; } } public MatGetSampleBase() { InitializeComponent(); } private void MatDataCJBase_Load(object sender, EventArgs e) { } //显示基本信息 public void ShowBaseInfo(UltraGridRow ur) { PublicMat.ShowBaseInfo(ur, panel1); } public void ClearAll() { txtGET_SAMPLE_STD.Text = ""; txtGET_SAMPLE_NAME.Text = ""; txtGET_SAMPLE_TIME.Text = ""; ultraGET_SAMPLE_SHIFT.Text = ""; ultraGET_SAMPLE_CLASS.Text = ""; txtGET_SAMPLE_WEIGHT.Text = ""; txtGET_SAMPLE_COUNT.Text = "1"; txtGET_SAMPLE_DEPT.Text = ""; txtGET_SAMPLE_AREA.Text = ""; txtREMARK.Text = ""; } private void ultraGET_SAMPLE_COUNT_TextChanged(object sender, EventArgs e) { if (txtGET_SAMPLE_COUNT.Text.Trim() != "" && !StringUtil.IsInt(txtGET_SAMPLE_COUNT.Text.Trim())) { MessageUtil.ShowWarning("取样数量必须为整数!"); txtGET_SAMPLE_COUNT.Text = "1"; } } } }