From d30a8bbf3f46528e1773bce1a2065b2462b84a18 Mon Sep 17 00:00:00 2001 From: renhao <renhui.hao@capgemini.com> Date: 星期四, 21 九月 2023 15:03:36 +0800 Subject: [PATCH] GlobalOTDTable修改 --- _Main/BL/Type_MacroPlan/Method_InitialUnitAndStockingPoint.qbl | 86 ++---------------------------------------- 1 files changed, 5 insertions(+), 81 deletions(-) diff --git a/_Main/BL/Type_MacroPlan/Method_InitialUnitAndStockingPoint.qbl b/_Main/BL/Type_MacroPlan/Method_InitialUnitAndStockingPoint.qbl index c71e147..ee48ee3 100644 --- a/_Main/BL/Type_MacroPlan/Method_InitialUnitAndStockingPoint.qbl +++ b/_Main/BL/Type_MacroPlan/Method_InitialUnitAndStockingPoint.qbl @@ -7,88 +7,12 @@ // Administrator Sep-1-2023 (created) //Set the Default values - unitofmeasurename := "PCS"; - currencyid := "CNY"; - startdate := Date::Date( 1900, 1, 1 ); - enddate := Date::Date( 9999, 12, 31 ); - capacitytype := "Transport quantity"; + //unitofMeasureName := "PCS"; + //currencyid := "CNY"; + //startdate := Date::Date( 1900, 1, 1 ); + //enddate := Date::Date( 9999, 12, 31 ); + //capacitytype := "Transport quantity"; - if( isnull( Unit::FindById( this, "绌鸿繍" ) ) ){ - this.Unit( relnew, - ID := "绌鸿繍", - Name := "绌鸿繍", - UnitOfMeasureName := unitofmeasurename, - CurrencyID := currencyid, - StartDate := startdate, - EndDate := enddate, - CapacityType := capacitytype ); - } - - if( isnull( Unit::FindById( this, "搴撳瓨浜嬪姟澶勭悊" ) ) ){ - this.Unit( relnew, - ID := "搴撳瓨浜嬪姟澶勭悊", - Name := "搴撳瓨浜嬪姟澶勭悊", - UnitOfMeasureName := unitofmeasurename, - CurrencyID := currencyid, - StartDate := startdate, - EndDate := enddate, - CapacityType := capacitytype ); - } - - unitofmeasurename := "PCS"; - name := "鎵嬪姩鍒涘缓搴撳瓨鐐�"; - currencyname := "CNY"; - isplannedinfinite := false; - datestart := Date::Construct(1900, 1, 1) ; - dateend := Date::Construct(9999, 12, 31); - groupname := " "; - description := " "; - isfromdb := true; - - if( isnull( StockingPoint_MP::FindById( this, "F13_FG_STOCK" ) ) ){ - StockingPoint_MP::Create( this, - "F13_FG_STOCK", - "F13", - name, - unitofmeasurename, - currencyname, - isplannedinfinite, - datestart, - dateend, - groupname, - description, - isfromdb ); - } - - if( isnull( StockingPoint_MP::FindById( this, "H10_SA_STOCK" ) ) ){ - StockingPoint_MP::Create( this, - "H10_SA_STOCK", - "H10", - name, - unitofmeasurename, - currencyname, - isplannedinfinite, - datestart, - dateend, - groupname, - description, - isfromdb ); - } - - if( isnull( StockingPoint_MP::FindById( this, "Q10_FG_STOCK" ) ) ){ - StockingPoint_MP::Create( this, - "Q10_FG_STOCK", - "Q10", - name, - unitofmeasurename, - currencyname, - isplannedinfinite, - datestart, - dateend, - groupname, - description, - isfromdb ); - } existcurrency := Currency_MP::FindById( this, "CNY" ); if( isnull( existcurrency ) ){ -- Gitblit v1.9.3