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 ControlOrderRclM : UserControl { public ControlOrderRclM() { this.Dock = DockStyle.Fill; InitializeComponent(); } private void ControlOrderRclM_Load(object sender, EventArgs e) { EntityHelper.ShowGridCaption(ultraGridRcl.DisplayLayout.Bands[0]); EntityHelper.ShowGridCaption(ultraGridRcl.DisplayLayout.Bands[1]); BaseHelper.setOtherColumnReadOnly(ultraGridRcl, new string[] { "CHC" }); } public void Query(ArrayList param, OpeBase ob) { OrderHelper.QueryRclM(param, plnGxRclMOEntityBindingSource, ob); } public void QueryOrderM(string orderNo,string proPlanId, string yearTime,OpeBase ob) { List listSourceM = EntityHelper.GetData ("com.steering.pss.plnsaleord.orderInfo.OrderHelper.queryRclOrderM", new object[] { orderNo, proPlanId, yearTime }, ob); List listSourceC = EntityHelper.GetData ("com.steering.pss.plnsaleord.orderInfo.OrderHelper.queryRclOrderC", new object[] { orderNo, proPlanId }, ob); EntityHelper.AddEntityRelation(listSourceM, listSourceC, "ProPlanId", "ProPlanId"); plnGxRclMOEntityBindingSource.DataSource = listSourceM; } public UltraGridRow getActiveRow() { return ultraGridRcl.ActiveRow; } public void clearDataSourse() { plnGxRclMOEntityBindingSource.Clear(); } } }