| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- 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 Core.StlMes.Client.ZGMil;
- using com.steering.mes.zgmil.entity;
- using Infragistics.Win.UltraWinGrid;
- using Core.StlMes.Client.ZGMil.Common;
- namespace Core.StlMes.Client.ZGMil.Result
- {
- public partial class RollingInfomation: UserControl
- {
- private Infragistics.Win.UltraWinGrid.UltraGrid _grid = null;
- /// <summary>
- /// 编辑区GRID
- /// </summary>
- public Infragistics.Win.UltraWinGrid.UltraGrid Grid
- {
- get { return _grid; }
- }
-
- ///<summary>
- /// 计划实体对象
- /// </summary>
- private MilPlan _plan = new MilPlan();
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public MilPlan Value
- {
- get { return _plan; }
- set
- {
- if (value != null)
- {
- _plan = value;
- UpdateData();
- }
- }
- }
- public RollingInfomation()
- {
- InitializeComponent();
- GridHelper.InitCardGrid(MatMesDataSource, ultraGrid4);
- _grid = this.ultraGrid4;
- //ultraGrid4.DisplayLayout.
-
- }
-
- /// <summary>
- /// 刷新控件数据显示
- /// </summary>
- public void UpdateData()
- {
- if (_plan != null)
- {
- //生产批号
-
- MatMesDataSource.Rows[0]["RollLotNo"]= _plan.LotNo;
- //炉号
- MatMesDataSource.Rows[0]["HeatNo"] = _plan.JudgeStoveNo;
- //监制
- MatMesDataSource.Rows[0]["Producer"] = _plan.Producer;
- //执行工艺号
- MatMesDataSource.Rows[0]["ImpProcess"] = _plan.ImpProcess;
- //执行工艺号路径
- MatMesDataSource.Rows[0]["ImpProcessPath"] = _plan.ImpProcessPath;
- //工序合同号
- MatMesDataSource.Rows[0]["ContractNo"] = _plan.ContractNo;
- //品种,标准类别 钢级,规格,扣型
- string Pz = "";
- Pz = _plan.Varieties + "," + _plan.StdStyleDesc + " " + _plan.SteelName + "," + _plan.PipeSize + "," + _plan.BuckleType;
- if (_plan.StdStyleDesc == null)
- {
- Pz = _plan.Varieties + "," + _plan.SteelName + "," + _plan.PipeSize + "," + _plan.BuckleType;
- }
- MatMesDataSource.Rows[0]["Varieties"] = Pz;
- //长度范围
- MatMesDataSource.Rows[0]["LengthRange"] = _plan.LengthRange;
- //用户
- MatMesDataSource.Rows[0]["FinishUser"] = _plan.FinishUser;
- //轧管判定标准
- 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;
-
- }
- else
- {
- //GridHelper.InitCardGrid(ultraDataSource1, ultraGrid1);
- }
- }
- /// <summary>
- /// 控件编辑后更新已修改数据
- /// </summary>
- public new void Update()
- {
- ultraGrid4.UpdateData();
- }
- private void ultraTextEditor1_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
- {
- string CraftPath = _plan.ImpProcessPath.ToString().Trim();
- if (CraftPath == "" )
- {
- return;
- }
- BaseMethod.ViewCarft_No(CraftPath);
- }
- }
- }
|