using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using CoreFS.CA06; using Core.Mes.Client.Comm.Tool; using Core.StlMes.Client.Mcp.Entity; using System.Collections; using Core.Mes.Client.Comm.Control; using Core.Mes.Client.Comm.Server; using Core.StlMes.Client.Mcp.CollarMaterial; using Core.StlMes.Client.Mcp.Control; namespace Core.StlMes.Client.Mcp.Coupling { public partial class FrmInformation : FrmBase { public FrmInformation() { InitializeComponent(); this.IsLoadUserView = true; } private void FrmInformation_Load(object sender, EventArgs e) { EntityHelper.ShowGridCaption(ultraGrid1.DisplayLayout.Bands[0]); //获取切管工序 DataTable dt2 = ServerHelper.GetData("com.steering.mes.mcp.coup.FrmInformation.getQueryGX", null, this.ob); if (dt2.Rows.Count>0) { Object[] obj = new Object[] { "", "" }; DataRow dr = dt2.NewRow(); dr.ItemArray = obj; dt2.Rows.InsertAt(dr, 0); } cmbCname.DataSource = dt2; cmbCname.DisplayMember = "BASENAME"; cmbCname.ValueMember = "BASECODE"; YdmBaseClass.SetComboItemHeight(cmbCname); } public override void ToolBar_Click(object sender, string ToolbarKey) { switch (ToolbarKey) { case "DoQuery": DoQuery(); break; //case "DoBeside"://结炉 // DoBeside(); // break; //case "UndoBeside"://撤销结炉 // UndoBeside(); // break; case "DoClose": this.Close(); break; } } /// /// 查询 /// private void DoQuery() { string judgeStoveNo = this.txtJudgeStoveNO.Text.ToString(); string batchNo = this.txtBatchNO.Text; string zYgNo = this.txtLotNo.Text.Trim(); string gx = ""; if (cmbCname.Text.ToString().Equals("")) { gx = ""; } else { gx = cmbCname.Value.ToString(); } ArrayList list = new ArrayList(); list.Add(zYgNo); list.Add(judgeStoveNo); list.Add(batchNo); list.Add(gx); List listSource = EntityHelper.GetData("com.steering.mes.mcp.coup.FrmInformation.doQueryInfoResult", new object[] { list }, this.ob); CouplingComInfoEntity.DataSource = listSource; GridHelper.RefreshAndAutoSize(ultraGrid1); } } }