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