| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- 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";
- }
- }
- }
- }
|