| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- 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.UltraWinEditors;
- using Core.Mes.Client.Comm.Tool;
- using CoreFS.CA06;
- namespace Core.StlMes.Client.Lims.Data.Mat
- {
- //需要理化检验的物料
- public partial class PublicUltraITEM_NAME : UserControl
- {
- private string ultSample_Code;//试样编码
- public string UltSample_Code
- {
- get { return ultSAMPLE_NAME.Value == null ? "" : ultSAMPLE_NAME.Value.ToString().Trim(); }
- set { ultSAMPLE_NAME.Value = value; }
- }
- private string ultSample_Name;//试样名称
- public string UltSample_Name
- {
- get { return ultSAMPLE_NAME.Text.Trim(); }
- set { ultSAMPLE_NAME.Text = value; }
- }
- private UltraComboEditor ult;
- public UltraComboEditor Ult
- {
- get { return ultSAMPLE_NAME; }
- set { ult = value; }
- }
- public PublicUltraITEM_NAME()
- {
- InitializeComponent();
- }
- private void PublicUltraSAMPLE_NAME_Load(object sender, EventArgs e)
- {
- }
- //查询原材料检验需要试验的物料
- public void QueryMatItemsName(OpeBase ob)
- {
- try
- {
- if (ob == null)
- {
- return;
- }
- DataTable dt = PublicServer.GetData("com.steering.lims.data.base.FrmBaseSelectItems.QueryMatItemsName",
- new Object[] { }, ob);
- if (dt == null || dt.Rows.Count == 0)
- {
- return;
- }
- DataRow dr = dt.NewRow();
- dr[0] = "";
- dr[1] = "";
- dt.Rows.InsertAt(dr, 0);
- ultSAMPLE_NAME.DataSource = dt;
- ultSAMPLE_NAME.ValueMember = "ITEM_CODE";
- ultSAMPLE_NAME.DisplayMember = "ITEM_NAME";
- }
- catch (Exception ex)
- {
- MessageUtil.ShowError(ex.Message);
- }
- }
- }
- }
|