using System; using System.Collections; 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.Server; using Core.Mes.Client.Comm.Control; using Infragistics.Win.UltraWinGrid; using Core.StlMes.Client.YdmStuffManage.Entity; namespace Core.StlMes.Client.YdmStuffManage { public partial class PlanInfomation: UserControl { private Infragistics.Win.UltraWinGrid.UltraGrid _grid = null; /// /// 编辑区GRID /// public Infragistics.Win.UltraWinGrid.UltraGrid Grid { get { return _grid; } } /// /// 计划实体对象 /// PlnSteelforOrdEntity _plan = new PlnSteelforOrdEntity(); [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public PlnSteelforOrdEntity Value { get { return _plan; } set { if (value != null) { _plan = value; UpdateData(); } } } public PlanInfomation() { InitializeComponent(); GridHelper.InitCardGrid(MatMesDataSource, ultraGrid4); _grid = this.ultraGrid4; } /// /// 刷新控件数据显示 /// public void UpdateData() { if (_plan != null) { //熔炼炉号 MatMesDataSource.Rows[0]["StoveNo"] = _plan.StoveNo; //物料描述 MatMesDataSource.Rows[0]["MaterialName"] = _plan.MaterialName; //直径 MatMesDataSource.Rows[0]["Diameter"] = _plan.Diameter; //总坯长 MatMesDataSource.Rows[0]["LengthM"] = _plan.LengthM; //单倍坯长 MatMesDataSource.Rows[0]["LenGpSingle"] = _plan.LenGpSingle; ////品种,钢级,规格,扣型 //string Pz = ""; //Pz = _plan.Varieties + "," + _plan.SteelName + "," + _plan.PipeSize + "," + _plan.BuckleType; //MatMesDataSource.Rows[0]["Varieties"] = Pz; //倍尺数 MatMesDataSource.Rows[0]["CutNumGp"] = _plan.CutNumGp; //钢种 MatMesDataSource.Rows[0]["Gradename"] = _plan.Gradename; //浇次号 MatMesDataSource.Rows[0]["CastNo"] = _plan.CastNo; //铸流号 MatMesDataSource.Rows[0]["Flowno"] = _plan.Flowno; //打印炉号 MatMesDataSource.Rows[0]["FlagStoveNo"] = _plan.FlagStoveNo; //判定炉号 MatMesDataSource.Rows[0]["JudgeStoveNo"] = _plan.JudgeStoveNo; MatMesDataSource.Rows[0]["TotMumM"] = _plan.TotMumM; MatMesDataSource.Rows[0]["TotWeightM"] = _plan.TotWeightM; ////轧管判定标准 //MatMesDataSource.Rows[0]["RollStandard"] = _plan.RollStandrad; ////单倍长 //MatMesDataSource.Rows[0]["DbLength"] = _plan.DbLength; ////制程号 //MatMesDataSource.Rows[0]["ProcessNo"] = _plan.ProcessNo; ////炼钢判定标准 //MatMesDataSource.Rows[0]["SteelStandard"] = _plan.SteelStandrad; ////目标长度 //MatMesDataSource.Rows[0]["ContractLength"] = _plan.TargetLength; ////去向 //MatMesDataSource.Rows[0]["Destination"] = _plan.Target; ////断面,钢种 //string DM = ""; //DM = _plan.PipeSection + "," + _plan.GradeName; //MatMesDataSource.Rows[0]["Section"] = DM; ////成品备注 //MatMesDataSource.Rows[0]["ProductRemark"] = _plan.ReMark; ////轧制长度 //MatMesDataSource.Rows[0]["RollLength"] = _plan.RollLength; ////分切数 //MatMesDataSource.Rows[0]["SawSize"] = _plan.SawNum; ////工艺状态 //MatMesDataSource.Rows[0]["Status"] = _plan.ProcessStatus; ////支 //MatMesDataSource.Rows[0]["PlanNum"] = _plan.PlanNum; ////吨 //MatMesDataSource.Rows[0]["PlanTons"] = _plan.PlanTon; ////目标库 //MatMesDataSource.Rows[0]["TargetLirbrary"] = _plan.TargetLiabrary; } } /// /// 控件编辑后更新已修改数据 /// public new void Update() { ultraGrid4.UpdateData(); } } }