| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- 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 CoreFS.CA06;
- using Core.Mes.Client.Comm.Tool;
- namespace Core.StlMes.Client.Lims.Data.PipeAndOutdec
- {
- //002001007009 力学 002001007010化学 002001007013腐蚀 002001007014工程 002001007015金物 002001020001 一快分低倍 002001020002二快分
- public partial class PublicUltraDept_ID : UserControl
- {
- private string ultDept_ID;
- public string UltDept_ID
- {
- get { return ultDEPT_ID.Value.ToString().Trim(); }
- set { ultDEPT_ID.Value = value; }
- }
- private string ultDept_Name;
- public string UltDept_Name
- {
- get { return ultDEPT_ID.Text.Trim(); }
- set { ultDEPT_ID.Text = value; }
- }
- private UltraComboEditor ult;
- public UltraComboEditor Ult
- {
- get { return ultDEPT_ID; }
- set { ult = value; }
- }
- public PublicUltraDept_ID()
- {
- InitializeComponent();
- }
- public void QueryDept_Id(OpeBase ob, string[] arr)
- {
- try
- {
- if (ob == null)
- {
- return;
- }
- DataTable dt = PublicServer.GetData("com.steering.lims.resource.PublicResourceBase.QueryDept_Id",
- new Object[] { arr }, ob);
- if (dt == null || dt.Rows.Count == 0)
- {
- return;
- }
- DataRow dr = dt.NewRow();
- dr[0] = "";
- dr[1] = "";
- dt.Rows.InsertAt(dr, 0);
- ultDEPT_ID.DataSource = dt;
- ultDEPT_ID.ValueMember = "DEPT_ID";
- ultDEPT_ID.DisplayMember = "DEPT_NAME";
- }
- catch (Exception ex)
- {
- MessageUtil.ShowWarning(ex.Message);
- }
- }
- }
- }
|