From 8efa02c57ec252109a3d8bd9e72482ae353816ab Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期五, 22 十一月 2024 11:10:06 +0800
Subject: [PATCH] 修改下发班次计划为存档班次计划,添加班次计划存档功能
---
_Main/BL/Type_ArchiveShiftPlanCell/StaticMethod_Archive.qbl | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/_Main/BL/Type_ArchiveShiftPlanCell/StaticMethod_Archive.qbl b/_Main/BL/Type_ArchiveShiftPlanCell/StaticMethod_Archive.qbl
index c40fdbc..39f1128 100644
--- a/_Main/BL/Type_ArchiveShiftPlanCell/StaticMethod_Archive.qbl
+++ b/_Main/BL/Type_ArchiveShiftPlanCell/StaticMethod_Archive.qbl
@@ -52,6 +52,8 @@
archiveShiftPlanCellHandle := archiveShiftPlanCellIndexTree.GetHandle( shiftPlanCellKey );
archiveShiftPlanCellIndex := guard( archiveShiftPlanCellIndexTree.Root().Child( archiveShiftPlanCellHandle ),null( NamedValue ) );
if( isnull( archiveShiftPlanCellIndex )){
+ factory := LocalTool::GetFactoryByUnit( shiftPlanCell.UnitPeriodTime().Unit() );
+
archiveShiftPlanRow := null( ArchiveShiftPlanRow );
archiveShiftPlanRowHandle := archiveShiftPlanRowIndexTree.GetHandle( shiftPlanRowKey );
archiveShiftPlanRowIndex := guard( archiveShiftPlanRowIndexTree.Root().Child( archiveShiftPlanRowHandle ),null( NamedValue ));
@@ -60,8 +62,10 @@
archiveShiftPlanRows.Add( archiveShiftPlanRow );
archiveShiftPlanRowIndexTree.Root().AddChild( archiveShiftPlanRowHandle,archiveShiftPlanRows.Size() - 1 );
}else{
- archiveShiftPlanRow := archiveShiftPlanRows.Element( archiveShiftPlanRowIndex.GetValueAsNumber() );
+ archiveShiftPlanRow := archiveShiftPlanRows.Element( archiveShiftPlanRowIndex.GetValueAsNumber() );
}
+
+ archiveShiftPlanRow.FactoryName( factory.ID() );
archiveShiftPlanColumn := null( ArchiveShiftPlanColumn );
archiveShiftPlanColumnHandle := archiveShiftPlanColumnIndexTree.GetHandle( shiftPlanColumnKey );
@@ -85,6 +89,8 @@
archiveShiftPlanCell.IsHoliday( shiftPlanCell.IsHoliday() );
archiveShiftPlanCell.Outcome( shiftPlanCell.Outcome() );
archiveShiftPlanCell.Remark( shiftPlanCell.Remark() );
+ archiveShiftPlanCell.MacroPlanName( shiftPlanCell.UnitPeriodTime().MacroPlan().MDSMacroPlan().Description() );
+ archiveShiftPlanCell.MacroPlanMDSID( shiftPlanCell.UnitPeriodTime().MacroPlan().MDSID() );
}
*]
}
--
Gitblit v1.9.3