frmLfsResults.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using Core.StlMes.Client.LgCommon;
  5. namespace Core.StlMes.Client.LgResMgt
  6. {
  7. public partial class frmLfsResults : frmSteelResults
  8. {
  9. public frmLfsResults()
  10. {
  11. InitializeComponent();
  12. Process = LG_PROCESS.LF;
  13. }
  14. /// <summary>
  15. /// 值是否发生变化 父类控件变化与上Lf操作界面变化
  16. /// </summary>
  17. protected override bool ValueChanged
  18. {
  19. get { return ucNewResLfs.HasChanged || base.ValueChanged; }
  20. }
  21. /// <summary>
  22. /// 数据是否可保存, 父类控件是否可以保存并上Lf操作界面是否可保存
  23. /// </summary>
  24. protected override bool CanSave
  25. {
  26. get { return ucNewResLfs.AllowSave && base.CanSave; }
  27. }
  28. protected override bool DataOver
  29. {
  30. get
  31. {
  32. return ucNewResLfs.CurrentData.Reposebegintime != null &&
  33. ucNewResLfs.CurrentData.Reposeendtime != null;
  34. }
  35. }
  36. protected override void OnLoad(EventArgs e)
  37. {
  38. ucNewResLfs.SetBase(ob, UserName, ShifCode,Process);
  39. base.OnLoad(e);
  40. ucNewResLfs.OperationOver += ucStoveQuery1.GoNext;
  41. ucNewResLfs.OperationBegin += ucStoveQuery1.QueryStovePlan;
  42. }
  43. /// <summary>
  44. /// 查询操作界面
  45. /// </summary>
  46. protected override void QueryOperation()
  47. {
  48. ucNewResLfs.QueryDate(CurrentEntity.StoveNo, Station);
  49. }
  50. protected override bool SavePerformance()
  51. {
  52. return ucNewResLfs.saveDate();
  53. }
  54. }
  55. }