frmEafResults.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 frmEafResults : frmSteelResults
  8. {
  9. public frmEafResults()
  10. {
  11. InitializeComponent();
  12. Process = LG_PROCESS.EAF;
  13. }
  14. /// <summary>
  15. /// 值是否发生变化 父类控件变化与上Eaf操作界面变化
  16. /// </summary>
  17. protected override bool ValueChanged
  18. {
  19. get { return ucNewResEafWeight.HasChanged|| ucNewResEaf.HasChanged || base.ValueChanged; }
  20. }
  21. /// <summary>
  22. /// 数据是否可保存, 父类控件是否可以保存并上Eaf操作界面是否可保存
  23. /// </summary>
  24. protected override bool CanSave
  25. {
  26. get { return ucNewResEafWeight.AllowSave&& ucNewResEaf.AllowSave && base.CanSave; }
  27. }
  28. protected override bool DataOver
  29. {
  30. get
  31. {
  32. return ucNewResEaf.CurrentData.Reposebegintime != null &&
  33. ucNewResEaf.CurrentData.Reposeendtime != null;
  34. }
  35. }
  36. /// <summary>
  37. ///
  38. /// </summary>
  39. /// <param name="e"></param>
  40. protected override void OnLoad(EventArgs e)
  41. {
  42. ucNewResEaf.SetBase(ob, UserName, ShifCode, Process);
  43. ucNewResEafWeight.SetBase(ob, UserName, ShifCode, Process);
  44. base.OnLoad(e);
  45. ucNewResEaf.OperationOver += ucStoveQuery1.GoNext;
  46. ucNewResEaf.OperationBegin += ucStoveQuery1.QueryStovePlan;
  47. }
  48. /// <summary>
  49. /// 查询操作界面
  50. /// </summary>
  51. protected override void QueryOperation()
  52. {
  53. ucNewResEaf.QueryDate(CurrentEntity.StoveNo, Station);
  54. ucNewResEafWeight.QueryDate(CurrentEntity.StoveNo, Station);
  55. }
  56. protected override bool SavePerformance()
  57. {
  58. return ucNewResEaf.saveDate() && ucNewResEafWeight.saveDate();
  59. }
  60. }
  61. }