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 Infragistics.Win; using Core.Mes.Client.Comm.Control; using Infragistics.Win.UltraWinGrid; using Core.Mes.Client.Comm.Server; namespace Core.StlMes.Client.PlnSaleOrd { public partial class FrmOrdLinePrdcrLst : FrmBase { /// /// 交货编码PK(备料需求号) /// private string ordLnDlyPk = ""; /// /// 排产流水号 /// private string plnDivideId = ""; ValueList vlistManageNo = new ValueList(); ValueList vlistManageNo1 = new ValueList(); public FrmOrdLinePrdcrLst(string _ordLnDlyPk, string _plnDivideId, OpeBase _ob) { ordLnDlyPk = _ordLnDlyPk; plnDivideId = _plnDivideId; this.ob = _ob; this.IsLoadUserView = true; InitializeComponent(); } private void FrmOrdLinePrdcrLst_Load(object sender, EventArgs e) { PlanComm.setGridActivation(ultraGridPrdcrl.DisplayLayout.Bands[0]); PlanComm.setGridActivation(ultraGridPrdcrl.DisplayLayout.Bands[1]); DataTable dt3 = ServerHelper.GetData("com.steering.pss.plnsaleord.order.CoreOrdLinePrdcrLst.CoreOrderProducerPdeptBase", null, this.ob); vlistManageNo = PlanComm.GeneralValuelist(ref dt3, "PDEPT_NO", "PDEPT_NAME"); DataTable dt4 = ServerHelper.GetData("com.steering.pss.plnsaleord.order.CoreOrdLinePrdcrLst.CoreOrderProducerPrcBase", null, this.ob); vlistManageNo1 = PlanComm.GeneralValuelist(ref dt4, "BASECODE", "BASENAME"); DoQuery(); } public void DoQuery() { //查询合同监制从表 DataTable dt1 = ServerHelper.GetData("com.steering.pss.plnsaleord.order.CoreOrdLinePrdcrLst.getOrderLinePrdcr", new Object[] { ordLnDlyPk, plnDivideId }, this.ob); DataTable dt2 = ServerHelper.GetData("com.steering.pss.plnsaleord.order.CoreOrdLinePrdcrLst.getOrderLinePrdcrLst", new Object[] { ordLnDlyPk, plnDivideId }, this.ob); OrderProducer_Tain.Clear(); GridHelper.CopyDataToDatatable(ref dt1, ref this.OrderProducer_Main, true); GridHelper.CopyDataToDatatable(ref dt2, ref this.OrderProducer_Tain, true); for (int i = 0; i < ultraGridPrdcrl.Rows.Count; i++) { for (int j = 0; j < ultraGridPrdcrl.Rows[i].ChildBands[0].Rows.Count; j++) { ultraGridPrdcrl.Rows[i].ChildBands[0].Rows[j].Cells["PDEPT_NO"].ValueList = vlistManageNo; ultraGridPrdcrl.Rows[i].ChildBands[0].Rows[j].Cells["PDEPT_NO2"].ValueList = vlistManageNo; ultraGridPrdcrl.Rows[i].ChildBands[0].Rows[j].Cells["PDEPT_NO3"].ValueList = vlistManageNo; ultraGridPrdcrl.Rows[i].ChildBands[0].Rows[j].Cells["PRDCR_PRC_DESC"].ValueList = vlistManageNo1; } } } } }