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.Tool; using Core.StlMes.Client.PlnSaleOrd.entity; using Core.StlMes.Client.PlnSaleOrd.BaseMethod; using CoreFS.CA06; using System.Collections; using Infragistics.Win.UltraWinGrid; namespace Core.StlMes.Client.PlnSaleOrd.工序订单.Control { public partial class ControlOrderDbkM : UserControl { public ControlOrderDbkM() { this.Dock = DockStyle.Fill; InitializeComponent(); } private void ControlOrderDbkM_Load(object sender, EventArgs e) { EntityHelper.ShowGridCaption(ultraGridDbk.DisplayLayout.Bands[0]); EntityHelper.ShowGridCaption(ultraGridDbk.DisplayLayout.Bands[1]); BaseHelper.setOtherColumnReadOnly(ultraGridDbk, new string[] { "CHC" }); } public void Query(ArrayList param, OpeBase ob) { OrderHelper.QueryDbkM(param, plnGxDbkMOEntityBindingSource, ob); } public void QueryOrderM(string orderNo, string proPlanId, string yearTime,OpeBase ob) { List listSourceM = EntityHelper.GetData ("com.steering.pss.plnsaleord.orderInfo.OrderHelper.queryDbkOrderM", new object[] { orderNo, proPlanId, yearTime }, ob); List listSourceC = EntityHelper.GetData ("com.steering.pss.plnsaleord.orderInfo.OrderHelper.queryDbkOrderC", new object[] { orderNo, proPlanId }, ob); EntityHelper.AddEntityRelation(listSourceM, listSourceC, "ProPlanId", "ProPlanId"); plnGxDbkMOEntityBindingSource.DataSource = listSourceM; } public UltraGridRow getActiveRow() { return ultraGridDbk.ActiveRow; } public void clearDataSourse() { plnGxDbkMOEntityBindingSource.Clear(); } } }