From b1079b320ffdfa6cfca7d13d18749a377f62ef6d Mon Sep 17 00:00:00 2001 From: Kevin Kok Khah Whey <khahwhey.kok@3ds.com> Date: 星期一, 25 九月 2023 22:49:51 +0800 Subject: [PATCH] Kevin: 1. 把Operation.GetHasValidOperationInputOutput以让系统能够对没有投入料并非供应商生产单元的操作报告红色有效性检查移到了Routing. 2. 创建了GlobalOTDTable.SetIsLinkedWithFinishedGoodAttributes方法来检查中间表里的产品数据是否与生产成品的工艺路线连接起来了。 --- _Main/UI/MacroPlannerWebApp/Component_FormOrderLock/Response_PanelOrderLockHeader_545_ButtonOrderLockHeaderLock_OnClick.def | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormOrderLock/Response_PanelOrderLockHeader_545_ButtonOrderLockHeaderLock_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormOrderLock/Response_PanelOrderLockHeader_545_ButtonOrderLockHeaderLock_OnClick.def index f382d3a..97a5fce 100644 --- a/_Main/UI/MacroPlannerWebApp/Component_FormOrderLock/Response_PanelOrderLockHeader_545_ButtonOrderLockHeaderLock_OnClick.def +++ b/_Main/UI/MacroPlannerWebApp/Component_FormOrderLock/Response_PanelOrderLockHeader_545_ButtonOrderLockHeaderLock_OnClick.def @@ -5,14 +5,33 @@ #keys: '[412960.0.245380616]' DefinitionID: 'Responsedef_WebButton_OnClick' GroupServerCalls: true + Precondition: + [* + checkorders := DataHolderOrderLockCheckedOrder.Data(); + pispips := construct( ProductInStockingPointInPeriods ); + traverse( checkorders, Elements, order ){ + pispips.Add( selectset( order, ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, true ) ); + } + return ProductInStockingPointInPeriod::CanLockUnlock( pispips, feedback ); + *] QuillAction { Body: [* checkorders := DataHolderOrderLockCheckedOrder.Data(); + pispips := construct( ProductInStockingPointInPeriods ); + macroplan := MacroPlan; traverse( checkorders, Elements, order ){ - info( order.ProductID() ); + pispips.Add( selectset( order, ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, true ) ); } + + pispipLeafs := selectset( pispips, + Elements.astype( ProductInStockingPointInPeriodPlanningLeaf ), + pispip, + true ); + + CustomerOrder::LockUnlock( macroplan, checkorders, true ); + ProductInStockingPointInPeriod::LockUnlockPlanning( pispipLeafs, true, true ); *] } } -- Gitblit v1.9.3