| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod FlushData ( |
| | | GlobalOTDSOP globalOTDSOP |
| | | GlobalOTDSOP globalOTDSOP, |
| | | const GlobalOTDTable globalOTDTable |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | globalOTDSOP.SummaryOfInboundTransaction( relflush ); |
| | | |
| | | traverse ( globalOTDTable, Global_MappingSummaryOfInboundTransaction, gmsoit ) { |
| | | targetSummaryOfInboundTransaction := select( globalOTDSOP, SummaryOfInboundTransaction, tempSOIBT, |
| | | tempSOIBT.Item() = gmsoit.Item() and |
| | | tempSOIBT.OrganCode() = gmsoit.OrganCode() and |
| | | tempSOIBT.OrganName() = gmsoit.OrganName() and |
| | | tempSOIBT.PlantName() = gmsoit.PlantName() ); |
| | | |
| | | if ( isnull( targetSummaryOfInboundTransaction ) ) { |
| | | targetSummaryOfInboundTransaction := globalOTDSOP.SummaryOfInboundTransaction( relnew, Item := gmsoit.Item(), |
| | | OrganCode := gmsoit.OrganCode(), |
| | | OrganName := gmsoit.OrganName(), |
| | | PlantName := gmsoit.PlantName() |
| | | ); |
| | | } |
| | | |
| | | if ( gmsoit.TransactionDate().Month() = 1 ) { |
| | | targetSummaryOfInboundTransaction.Total1( targetSummaryOfInboundTransaction.Total1() + gmsoit.TransactionQTY() ); |
| | | } else if ( gmsoit.TransactionDate().Month() = 2 ) { |
| | | targetSummaryOfInboundTransaction.Total2( targetSummaryOfInboundTransaction.Total2() + gmsoit.TransactionQTY() ); |
| | | } else if ( gmsoit.TransactionDate().Month() = 3 ) { |
| | | targetSummaryOfInboundTransaction.Total3( targetSummaryOfInboundTransaction.Total3() + gmsoit.TransactionQTY() ); |
| | | } else if ( gmsoit.TransactionDate().Month() = 4 ) { |
| | | targetSummaryOfInboundTransaction.Total4( targetSummaryOfInboundTransaction.Total4() + gmsoit.TransactionQTY() ); |
| | | } else if ( gmsoit.TransactionDate().Month() = 5 ) { |
| | | targetSummaryOfInboundTransaction.Total5( targetSummaryOfInboundTransaction.Total5() + gmsoit.TransactionQTY() ); |
| | | } else if ( gmsoit.TransactionDate().Month() = 6 ) { |
| | | targetSummaryOfInboundTransaction.Total6( targetSummaryOfInboundTransaction.Total6() + gmsoit.TransactionQTY() ); |
| | | } else if ( gmsoit.TransactionDate().Month() = 7 ) { |
| | | targetSummaryOfInboundTransaction.Total7( targetSummaryOfInboundTransaction.Total7() + gmsoit.TransactionQTY() ); |
| | | } else if ( gmsoit.TransactionDate().Month() = 8 ) { |
| | | targetSummaryOfInboundTransaction.Total8( targetSummaryOfInboundTransaction.Total8() + gmsoit.TransactionQTY() ); |
| | | } else if ( gmsoit.TransactionDate().Month() = 9 ) { |
| | | targetSummaryOfInboundTransaction.Total9( targetSummaryOfInboundTransaction.Total9() + gmsoit.TransactionQTY() ); |
| | | } else if ( gmsoit.TransactionDate().Month() = 10 ) { |
| | | targetSummaryOfInboundTransaction.Total10( targetSummaryOfInboundTransaction.Total10() + gmsoit.TransactionQTY() ); |
| | | } else if ( gmsoit.TransactionDate().Month() = 11 ) { |
| | | targetSummaryOfInboundTransaction.Total11( targetSummaryOfInboundTransaction.Total11() + gmsoit.TransactionQTY() ); |
| | | } else if ( gmsoit.TransactionDate().Month() = 12 ) { |
| | | targetSummaryOfInboundTransaction.Total12( targetSummaryOfInboundTransaction.Total2() + gmsoit.TransactionQTY() ); |
| | | } |
| | | |
| | | } |
| | | *] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Item","title":"ç©æç¼ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Item"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrganCode","title":"ç»ç»ç¼ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrganCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrganName","title":"ç»ç»åç§°","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrganName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PlantName","title":"å·¥ååç§°","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PlantName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total1","title":"1ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total1"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total2","title":"2ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total2"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total3","title":"3ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total3"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total4","title":"4ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total4"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total5","title":"5ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total5"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total6","title":"6ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total6"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total7","title":"7ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total7"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total8","title":"8ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total8"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total9","title":"9ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total9"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total10","title":"10ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total10"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total11","title":"11ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total11"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Total12","title":"12ææ±æ»æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Total12"}}]' |
| | | ContextMenu: 'listContextMenuSummaryOfInboundTransaction' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | SummaryOfInboundTransaction::FlushData( GlobalOTDSOP ); |
| | | SummaryOfInboundTransaction::FlushData( GlobalOTDSOP, GlobalOTDTable ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | form_FormSummaryOfInboundTransaction |
| | | { |
| | | title: 'QTIANMA_JITUAN::FormSummaryOfInboundTransaction' |
| | | shown: true |
| | | componentID: 'QTIANMA_JITUAN::FormSummaryOfInboundTransaction' |
| | | layout |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 35 |
| | | rowSpan: 12 |
| | | columnPosition: 1 |
| | | columnSpan: 12 |
| | | } |
| | | components |
| | | { |
| | | FormSummaryOfInboundTransaction_pButton |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormSummaryOfInboundTransaction_ListSummaryOfInboundTransaction |
| | | { |
| | | } |
| | | FormSummaryOfInboundTransaction_DataSetLevelSummaryOfInboundTransaction |
| | | { |
| | | groupDepth: -1 |
| | | column_Item |
| | | { |
| | | columnId: 'Item' |
| | | dataPath: 'Item' |
| | | dataType: 'string' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_OrganCode |
| | | { |
| | | columnId: 'OrganCode' |
| | | dataPath: 'OrganCode' |
| | | dataType: 'string' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_OrganName |
| | | { |
| | | columnId: 'OrganName' |
| | | dataPath: 'OrganName' |
| | | dataType: 'string' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_PlantName |
| | | { |
| | | columnId: 'PlantName' |
| | | dataPath: 'PlantName' |
| | | dataType: 'string' |
| | | index: 3 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total1 |
| | | { |
| | | columnId: 'Total1' |
| | | dataPath: 'Total1' |
| | | dataType: 'real' |
| | | index: 4 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total2 |
| | | { |
| | | columnId: 'Total2' |
| | | dataPath: 'Total2' |
| | | dataType: 'real' |
| | | index: 5 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total3 |
| | | { |
| | | columnId: 'Total3' |
| | | dataPath: 'Total3' |
| | | dataType: 'real' |
| | | index: 6 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total4 |
| | | { |
| | | columnId: 'Total4' |
| | | dataPath: 'Total4' |
| | | dataType: 'real' |
| | | index: 7 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total5 |
| | | { |
| | | columnId: 'Total5' |
| | | dataPath: 'Total5' |
| | | dataType: 'real' |
| | | index: 8 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total6 |
| | | { |
| | | columnId: 'Total6' |
| | | dataPath: 'Total6' |
| | | dataType: 'real' |
| | | index: 9 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total7 |
| | | { |
| | | columnId: 'Total7' |
| | | dataPath: 'Total7' |
| | | dataType: 'real' |
| | | index: 10 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total8 |
| | | { |
| | | columnId: 'Total8' |
| | | dataPath: 'Total8' |
| | | dataType: 'real' |
| | | index: 11 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total9 |
| | | { |
| | | columnId: 'Total9' |
| | | dataPath: 'Total9' |
| | | dataType: 'real' |
| | | index: 12 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total10 |
| | | { |
| | | columnId: 'Total10' |
| | | dataPath: 'Total10' |
| | | dataType: 'real' |
| | | index: 13 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total11 |
| | | { |
| | | columnId: 'Total11' |
| | | dataPath: 'Total11' |
| | | dataType: 'real' |
| | | index: 14 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Total12 |
| | | { |
| | | columnId: 'Total12' |
| | | dataPath: 'Total12' |
| | | dataType: 'real' |
| | | index: 15 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | userconfigurableinformation |
| | | { |