Merge branch 'dev_release'
Conflicts:
_Main/BL/Type_MacroPlan/StaticMethod_DoSync0.qbl
| | |
| | | //get period of start |
| | | ddstartperiod := select( gp.MacroPlan(), PlanningPeriod, pp, pp.Start() <= start and pp.End() > start ); |
| | | |
| | | // Tianma fix 20230920 |
| | | if( not isnull( ddstartperiod ) ) |
| | | { |
| | | // if not start from middle and leadtime < period task period duration, make sure dependent demand end before period start |
| | | periodstart := ifexpr( not gp.IsOperationLeadTimeLogicFromMiddle() and period.Duration() < process.LeadTime(), period.Start(), DateTime::MaxDateTime() ); |
| | | |
| | | value := minvalue( start + process.LeadTime(), start + ddstartperiod.Duration(), periodstart ); |
| | | } |
| | | } |
| | | |
| | | return value; |
| | | *] |
| | |
| | | if( count - [Number](count/1000) * 1000 = 0 or count = totalcount ){ |
| | | info( "Now is dealing with the " + count.AsQUILL() + "ExternalSupply " + "( " + count.AsQUILL() + "/" + totalcount.AsQUILL() + " ) " + (count/totalcount*100).Round( 1 ).AsQUILL() + "%" ); |
| | | } |
| | | product := select( this,MappingProduct,product,product.ID() = externalSupply.ProductID(),true); |
| | | product := select( globalOTDTable,Global_MappingProduct_MP,product,product.ID() = externalSupply.ProductID(),true); |
| | | |
| | | |
| | | if( not isnull( product)){ |
| | |
| | | // 销售部门-2 |
| | | SalesSegment_MP::DoSync( macroPlan, businessTypes,globalOTDTable ); |
| | | |
| | | // Unit-9 |
| | | // 与Operation一同处理 |
| | | //info( "BaseConversionFactor Finished, Start Operation Data Broker" ); |
| | | //macroPlan.Broker_OTD_Operation().Execute(); |
| | | info( "Operation Data Broker Finished, Start Unit Mapping" ); |
| | | macroPlan.MappingUnitData( businessTypes ,globalOTDTable); |
| | | |
| | | // 库存点-3 |
| | | info( "Sales Segment Finished, Start Get StockingPoint From Api" ) |
| | | bodynumber := "2"; |
| | |
| | | |
| | | //单位转换-7 |
| | | BaseConversionFactor::DoSync( macroPlan ,globalOTDTable); |
| | | |
| | | // Unit-9 |
| | | // 与Operation一同处理 |
| | | //info( "BaseConversionFactor Finished, Start Operation Data Broker" ); |
| | | //macroPlan.Broker_OTD_Operation().Execute(); |
| | | info( "Operation Data Broker Finished, Start Unit Mapping" ); |
| | | macroPlan.MappingUnitData( businessTypes ,globalOTDTable); |
| | | |
| | | // 工艺路线 + BOM-9 |
| | | info( "Unit Finished, Start Operation Mapping" ); |
| | |
| | | unitid := datarow.Get( "unitid" ).GetString(); |
| | | name := datarow.Get( "name" ).GetString(); |
| | | |
| | | unit := Unit::FindUnitTypeIndex( unitid); |
| | | if( isnull( unit)){ |
| | | unitid := "生产"; |
| | | } |
| | | |
| | | result := StockingPoint_MP::CreateStockingpoint( mp, id, unitid, name ); |
| | | |
| | | return result; |