| | |
| | | // CustomerDemandPPAIDS::GenerateData( this, macroplan, iscustomdemandcc, iscustomdemanddl, executor ); |
| | | } |
| | | if ( isofflineplandl or isofflineplancc ) { // 各产线下线计划 |
| | | InterfaceDataset::PushOfflinePlanData( macroplan, this, executor ); |
| | | InterfaceDataset::PushOfflinePlanData( macroplan, this, executor, isofflineplandl, isofflineplancc ); |
| | | } |
| | | if( isshiftplandl or isshiftplancc ){//班次计划 |
| | | DispatchShiftPlan::Dispatch(this, archive,executor ); |
| | |
| | | AssemblyOnlinePlanPPPSPush::GenerateData( this, macroplan, isassembleonlineplancc, isassembleonlineplandl, executor ); |
| | | } |
| | | if ( isinventoryplandl or isinventoryplancc ) { // 计划库存数据 |
| | | InterfaceDataset::PushPlanInventoryData( macroplan, this, executor ); |
| | | InterfaceDataset::PushPlanInventoryData( macroplan, this, executor, isinventoryplandl, isinventoryplancc ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | StaticMethod PushOfflinePlanData ( |
| | | const MacroPlan macroPlan, |
| | | InterfaceDataset interfaceDataset, |
| | | String executor |
| | | String executor, |
| | | Boolean isofflineplandl, |
| | | Boolean isofflineplancc |
| | | ) |
| | | { |
| | | Description: '发送下线计划数据接口' |
| | |
| | | |
| | | jsonarray := JSON::Array(); |
| | | |
| | | traverse ( table, Row, r ){ |
| | | traverse ( table, Row, r, ifexpr( isofflineplandl, r.Unit().Regex( "DL" ), false ) or ifexpr( isofflineplancc, r.Unit().Regex( "CC" ), false ) ){ |
| | | traverse ( table, Column, c ) {//, c.TimeUnit() = Translations::MP_GlobalParameters_Day() |
| | | cell := select( r, Cell, tempC, tempC.Column() = c ); |
| | | |
| | |
| | | StaticMethod PushPlanInventoryData ( |
| | | const MacroPlan macroPlan, |
| | | InterfaceDataset interfaceDataset, |
| | | String executor |
| | | String executor, |
| | | Boolean isinventoryplandl, |
| | | Boolean isinventoryplancc |
| | | ) |
| | | { |
| | | Description: '发送计划库存数据接口' |
| | |
| | | |
| | | jsonarray := JSON::Array(); |
| | | |
| | | traverse ( table, Row, r ){ |
| | | traverse ( table, Row, r, ifexpr( isinventoryplandl, r.Unit().Regex( "DL" ), false ) or ifexpr( isinventoryplancc, r.Unit().Regex( "CC" ), false ) ){ |
| | | traverse ( table, Column, c ) {//, c.TimeUnit() = Translations::MP_GlobalParameters_Day() |
| | | cell := select( r, Cell, tempC, tempC.Column() = c ); |
| | | |