| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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 Core.Mes.Client.Comm.Server;
- using CoreFS.CA06;
- using Core.Mes.Client.Comm.Control;
- namespace Core.StlMes.Client.ZGMil.ResultConrtrol
- {
- public delegate void DoubleClickHandle(DataTable dt);
- public partial class FrmTechnological : UserControl
- {
- public OpeBase ob = null;
- public event DoubleClickHandle DoubleClickEvent;
- public FrmTechnological()
- {
- InitializeComponent();
- }
- /// <summary>
- /// 获取所有版本
- /// </summary>
- public void InitMilSet(string plineCode, string stationCode,OpeBase ob)
- {
- this.ob = ob;
- DataTable ds = ServerHelper.GetData("com.steering.mes.zgmil.coup.FrmTechnological.doQueryClassName", new object[] { plineCode, stationCode }, this.ob);
- GridHelper.CopyDataToDatatable(ref ds, ref dataTable1, true);
- }
- private DataTable doQueryKey(string className)
- {
-
- DataTable dt = ServerHelper.GetData("com.steering.mes.zgmil.coup.FrmTechnological.doQueryKeyValue", new object[] { className }, ob);
- return dt;
- }
- private void ultraGrid1_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
- {
- if (ob == null || e.Row == null)
- {
- return;
- }
- DataTable dt = doQueryKey(this.ultraGrid1.ActiveRow.Cells["CLASS_NAME"].Text);
- if (DoubleClickEvent != null)
- {
- DoubleClickEvent(dt);
- }
- }
- //internal void InitMilSet(DataColumn PlineCode, string p, OpeBase opeBase)
- //{
- // throw new NotImplementedException();
- //}
- }
- }
|