| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method MappingOperationData ( |
| | | Strings businessTypes |
| | | Strings businessTypes, |
| | | GlobalOTDTable globalOTDTable |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Aug-18-2023 (created) |
| | | // 获取有序的待处理记录 |
| | | toDealList := construct( MappingOperations ); |
| | | toDealList := construct( Global_MappingOperations ) ; |
| | | if( not isnull( businessTypes ) and businessTypes.Size() > 0 ) { |
| | | toDealList := selectsortedset( this, MappingOperation, item, |
| | | businessTypes.Find( item.BusinessType() ) >= 0, |
| | | organcodelist := selectvalues( globalOTDTable, BusinessType.OrganCode, organ, businessTypes.Find( organ.BusinessType().BusinessTypeName() ) <> -1, organ.OrganCodeName() ); |
| | | toDealList := selectsortedset( globalOTDTable, Global_MappingOperation, item, |
| | | ( businessTypes.Find( item.BusinessType() ) >= 0 ) and |
| | | ( organcodelist.Find( item.OrganCode() ) >= 0 ), |
| | | // businessTypes.Difference( businessTypes.Difference( item.BusinessType().Tokenize( ", " ) ) ).Size() > 0, |
| | | item.SequenceNumber() ); |
| | | } else { |
| | | toDealList := selectsortedset( this, MappingOperation, item, |
| | | toDealList := selectsortedset( globalOTDTable, Global_MappingOperation, item, |
| | | true, |
| | | item.SequenceNumber() ); |
| | | } |
| | |
| | | 0.0, 0.0, false, true ); |
| | | } |
| | | |
| | | ManufactureLTProcessSection::CreateOrUpdate( op ); |
| | | // ManufactureLTProcessSection::CreateOrUpdate( op ); |
| | | } |
| | | info( "========" ) |
| | | // 遍历routing,进行link |