| | |
| | | #parent: #root |
| | | Method MappingOperationData ( |
| | | Strings businessTypes, |
| | | GlobalOTDTable globalOTDTable |
| | | GlobalOTDTable globalOTDTable, |
| | | Strings organcodelist |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | // 获取有序的待处理记录 |
| | | toDealList := construct( Global_MappingOperations ) ; |
| | | if( not isnull( businessTypes ) and businessTypes.Size() > 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 ), |
| | |
| | | op := Operation::FindOperationTypeIndex( operationId ); |
| | | if( isnull( op)){ |
| | | op := Operation::Create( operationId, unit, operationId, routingStep, |
| | | Duration::Hours( item.UserLeadTime() ), Duration::Zero(), item.ActualCapacity(), false, |
| | | Duration::Days( item.UserLeadTime() ), Duration::Zero(), item.ActualCapacity(), false, |
| | | [Real]item.MinimumQuantity(), haveMaxQty, guard( [Real]item.MaximumQuantity(), Real::MaxReal() ), |
| | | 0.0, 0.0, false, true ); |
| | | } |