using Core.Mes.Client.Comm.Tool; using Core.StlMes.Client.PlnSaleOrd.BaseMethod; using Core.StlMes.Client.PlnSaleOrd.Entity; using CoreFS.CA06; 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; namespace Core.StlMes.Client.PlnSaleOrd.窗体 { public partial class FrmPreGxInfo : FrmBase { private string proPlanId; private string processCode; private string flag; public FrmPreGxInfo() { InitializeComponent(); } public FrmPreGxInfo(string proPlanId,string processCode,string flag,OpeBase ob) { this.proPlanId = proPlanId; this.processCode = processCode; this.flag = flag; this.ob = ob; //窗体居中 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; InitializeComponent(); } private void FrmPreGxInfo_Load(object sender, EventArgs e) { if (flag.Equals("Pr")) { this.Text = "前工序信息"; } else { this.Text = "后工序信息"; } BaseHelper.InitCellPosition(gridGxInfo, new string[] { "WeigthS", "NumS", "GxPlanNo" }); BaseHelper.setOtherColumnReadOnly(gridGxInfo, new string[] { "" }); Query(flag); } private void Query(string flag) { List entityList = EntityHelper.GetData( "com.steering.pss.plnsaleord.processOrder.base.PreGxInfo.queryGxInfo", new object[] { proPlanId, processCode, flag }, ob); preGxInfoEntityBindingSource.DataSource = entityList; } } }