| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- 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;
- /// <summary>
- /// 编辑区GRID
- /// </summary>
- public Infragistics.Win.UltraWinGrid.UltraGrid Grid
- {
- get { return _grid; }
- }
-
- ///<summary>
- /// 计划实体对象
- /// </summary>
- 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;
-
- }
-
- /// <summary>
- /// 刷新控件数据显示
- /// </summary>
- 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;
-
- }
-
- }
- /// <summary>
- /// 控件编辑后更新已修改数据
- /// </summary>
- public new void Update()
- {
- ultraGrid4.UpdateData();
- }
- }
- }
|