| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using Core.StlMes.Client.LgCommon;
- namespace Core.StlMes.Client.LgResMgt
- {
- public partial class frmEafResults : frmSteelResults
- {
- public frmEafResults()
- {
- InitializeComponent();
- Process = LG_PROCESS.EAF;
- }
- /// <summary>
- /// 值是否发生变化 父类控件变化与上Eaf操作界面变化
- /// </summary>
- protected override bool ValueChanged
- {
- get { return ucNewResEafWeight.HasChanged|| ucNewResEaf.HasChanged || base.ValueChanged; }
- }
- /// <summary>
- /// 数据是否可保存, 父类控件是否可以保存并上Eaf操作界面是否可保存
- /// </summary>
- protected override bool CanSave
- {
- get { return ucNewResEafWeight.AllowSave&& ucNewResEaf.AllowSave && base.CanSave; }
- }
- protected override bool DataOver
- {
- get
- {
- return ucNewResEaf.CurrentData.Reposebegintime != null &&
- ucNewResEaf.CurrentData.Reposeendtime != null;
- }
- }
-
- /// <summary>
- ///
- /// </summary>
- /// <param name="e"></param>
- protected override void OnLoad(EventArgs e)
- {
- ucNewResEaf.SetBase(ob, UserName, ShifCode, Process);
- ucNewResEafWeight.SetBase(ob, UserName, ShifCode, Process);
- base.OnLoad(e);
- ucNewResEaf.OperationOver += ucStoveQuery1.GoNext;
- ucNewResEaf.OperationBegin += ucStoveQuery1.QueryStovePlan;
- }
- /// <summary>
- /// 查询操作界面
- /// </summary>
- protected override void QueryOperation()
- {
- ucNewResEaf.QueryDate(CurrentEntity.StoveNo, Station);
- ucNewResEafWeight.QueryDate(CurrentEntity.StoveNo, Station);
- }
- protected override bool SavePerformance()
- {
- return ucNewResEaf.saveDate() && ucNewResEafWeight.saveDate();
- }
- }
- }
|