¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation FinancialProductionColumn_FinancialProductionCell_FinancialProductionCell_FinancialProductionColumn |
| | | { |
| | | #keys: '1[415136.0.834715204]' |
| | | ProceduralSequenceRelationStrategy |
| | | { |
| | | #keys: '13[0.0.0][415136.0.834715223][415136.0.834715217][415136.0.834715224][415136.0.834715218][415136.0.834715225][415136.0.834715219][415136.0.834715226][415136.0.834715220][415136.0.834715227][415136.0.834715221][415136.0.834715228][415136.0.834715222]' |
| | | SequenceElementSuffix: 'CellInColumn' |
| | | SequenceSuffix: 'CellInColumn' |
| | | } |
| | | RelationSide.LeftSide FinancialProductionCell |
| | | { |
| | | #keys: '3[415136.0.834715206][415136.0.834715205][415136.0.834715207]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: FinancialProductionColumn |
| | | OwningSide: 'Owned' |
| | | } |
| | | RelationSide.RightSide FinancialProductionColumn |
| | | { |
| | | #keys: '3[415136.0.834715209][415136.0.834715208][415136.0.834715210]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: FinancialProductionCell |
| | | OwningSide: 'Reference' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation FinancialProductionReport_FinancialProductionColumn_FinancialProductionColumn_FinancialProductionReport |
| | | { |
| | | #keys: '1[415136.0.834715133]' |
| | | ProceduralSequenceRelationStrategy |
| | | { |
| | | #keys: '13[0.0.0][415136.0.834715155][415136.0.834715149][415136.0.834715156][415136.0.834715150][415136.0.834715157][415136.0.834715151][415136.0.834715158][415136.0.834715152][415136.0.834715159][415136.0.834715153][415136.0.834715160][415136.0.834715154]' |
| | | SequenceElementSuffix: 'Column' |
| | | SequenceSuffix: 'Column' |
| | | } |
| | | RelationSide.LeftSide FinancialProductionColumn |
| | | { |
| | | #keys: '3[415136.0.834715135][415136.0.834715134][415136.0.834715136]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: FinancialProductionReport |
| | | OwningSide: 'Owned' |
| | | } |
| | | RelationSide.RightSide FinancialProductionReport |
| | | { |
| | | #keys: '3[415136.0.834715138][415136.0.834715137][415136.0.834715139]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: FinancialProductionColumn |
| | | OwningSide: 'Reference' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation FinancialProductionReport_FinancialProductionRow_FinancialProductionRow_FinancialProductionReport |
| | | { |
| | | #keys: '1[415136.0.834715120]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide FinancialProductionRow |
| | | { |
| | | #keys: '3[415136.0.834715122][415136.0.834715121][415136.0.834715123]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: FinancialProductionReport |
| | | OwningSide: 'Owned' |
| | | } |
| | | RelationSide.RightSide FinancialProductionReport |
| | | { |
| | | #keys: '3[415136.0.834715125][415136.0.834715124][415136.0.834715126]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: FinancialProductionRow |
| | | OwningSide: 'Reference' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation FinancialProductionRow_FinancialProductionCell_FinancialProductionCell_FinancialProductionRow |
| | | { |
| | | #keys: '1[415136.0.834715244]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide FinancialProductionCell |
| | | { |
| | | #keys: '3[415136.0.834715246][415136.0.834715245][415136.0.834715247]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: FinancialProductionRow |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide FinancialProductionRow |
| | | { |
| | | #keys: '3[415136.0.834715249][415136.0.834715248][415136.0.834715250]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: FinancialProductionCell |
| | | OwningSide: 'Reference' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation FinancialProductionSource_FinancialProductionReport_FinancialProductionReport_FinancialProductionSource |
| | | { |
| | | #keys: '1[415136.0.833840404]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide FinancialProductionReport |
| | | { |
| | | #keys: '3[415136.0.833840406][415136.0.833840405][415136.0.833840407]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: FinancialProductionSource |
| | | OwningSide: 'Owned' |
| | | } |
| | | RelationSide.RightSide FinancialProductionSource |
| | | { |
| | | #keys: '3[415136.0.833840409][415136.0.833840408][415136.0.833840410]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: FinancialProductionReport |
| | | OwningSide: 'Reference' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation FinancialProductionSource_MacroPlan_MacroPlan_FinancialProductionSource |
| | | { |
| | | #keys: '1[415136.0.834715355]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[415136.0.834715357][415136.0.834715356][415136.0.834715358]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: FinancialProductionSource |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide FinancialProductionSource |
| | | { |
| | | #keys: '3[415136.0.834715360][415136.0.834715359][415136.0.834715361]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type Feedback #extension |
| | | { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Value |
| | | { |
| | | #keys: '3[415136.0.834715167][415136.0.834715166][415136.0.834715168]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type FinancialProductionCell |
| | | { |
| | | #keys: '5[415136.0.834715104][415136.0.834715102][0.0.0][415136.0.834715103][415136.0.834715105]' |
| | | BaseType: Object |
| | | Description: 'è´¢å¡äº§éæ¥è¡¨åå
æ ¼' |
| | | StructuredName: 'FinancialProductionCells' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Index |
| | | { |
| | | #keys: '3[415136.0.834715088][415136.0.834715087][415136.0.834715089]' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Name |
| | | { |
| | | #keys: '3[415136.0.834715282][415136.0.834715281][415136.0.834715283]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Period |
| | | { |
| | | #keys: '3[415136.0.834715078][415136.0.834715077][415136.0.834715079]' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Function CalcIndex |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Jun-21-2024 (created) |
| | | |
| | | value := ifexpr( isnull( this.PreviousColumn() ), 0, this.PreviousColumn().Index() + 1 ); |
| | | |
| | | this.Index( value ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type FinancialProductionColumn |
| | | { |
| | | #keys: '5[415136.0.834715074][415136.0.834715072][0.0.0][415136.0.834715073][415136.0.834715075]' |
| | | BaseType: Object |
| | | Description: 'è´¢å¡äº§éå' |
| | | StructuredName: 'FinancialProductionColumns' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ID |
| | | { |
| | | #keys: '3[415136.0.834715053][415136.0.834715052][415136.0.834715054]' |
| | | IsReadOnly: true |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsImport |
| | | { |
| | | #keys: '3[415136.0.834715063][415136.0.834715062][415136.0.834715064]' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Name |
| | | { |
| | | #keys: '3[415136.0.834715043][415136.0.834715042][415136.0.834715044]' |
| | | Description: 'åç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method SyncRows |
| | | { |
| | | TextBody: |
| | | [* |
| | | totalRows := 0; |
| | | totalColumns := this.FinancialProductionColumn( relsize ); |
| | | |
| | | if ( totalColumns > 0 ) { |
| | | randomCol := select( this, FinancialProductionColumn, tempFPC, true ); |
| | | totalRows := randomCol.FinancialProductionCell( relsize ); |
| | | |
| | | this.FinancialProductionRow( relflush ); |
| | | |
| | | cells := construct( FinancialProductionCells ); |
| | | traverse ( this, FinancialProductionColumn, fpc ) { |
| | | cells.Add( fpc.FirstCellInColumn() ); |
| | | } |
| | | |
| | | for ( i := 0; i < totalRows; i++ ) { |
| | | assert( selectvalues( cells, Elements, c, true, c.FinancialProductionColumn().Index() ).ToString( "" ) = |
| | | selectvalues( selectsortedset( cells, Elements, c, true, c.FinancialProductionColumn().Index() ), Elements, c, true, c.FinancialProductionColumn().Index() ).ToString( "" ), |
| | | "Assertion error in FrockDataTable::syncRows: Cells not sorted by column index" ); |
| | | row := this.FinancialProductionRow( relnew, RowNr := i ); |
| | | |
| | | newCells := construct( FinancialProductionCells ); |
| | | |
| | | traverse ( cells, Elements, c ) { |
| | | row.FinancialProductionCell( relinsert, c ); |
| | | |
| | | newCells.Add( c.NextCellInColumn() ); |
| | | } |
| | | |
| | | cells := &newCells; |
| | | } |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | XMLElementId |
| | | { |
| | | XMLAddressType { } |
| | | XMLID Key { } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | XMLElementId |
| | | { |
| | | XMLID QuintiqType { } |
| | | XMLQualifierType { } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | XMLObjectBase.ObjectDefinitions |
| | | { |
| | | IdField: Key |
| | | ObjectTypeField: QuintiqType |
| | | TargetType: FinancialProductionCell |
| | | XMLID cell { } |
| | | Attributes: |
| | | [ |
| | | XMLAttribute |
| | | { |
| | | Attribute: Value |
| | | XMLID value { } |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | XMLObjectBase.ObjectDefinitions |
| | | { |
| | | IdField: Key |
| | | ObjectTypeField: QuintiqType |
| | | TargetType: FinancialProductionColumn |
| | | XMLID column { } |
| | | Aggregates: |
| | | [ |
| | | XMLAggregate |
| | | { |
| | | ElementDefinition: cell |
| | | GenerateOutput: false |
| | | Relation: FinancialProductionCell |
| | | XMLID FinancialProductionCell { } |
| | | } |
| | | ] |
| | | Attributes: |
| | | [ |
| | | XMLAttribute |
| | | { |
| | | Attribute: Name |
| | | XMLID name { } |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | XMLObjectBase.ObjectDefinitions |
| | | { |
| | | IdField: Key |
| | | ObjectTypeField: QuintiqType |
| | | TargetType: FinancialProductionReport |
| | | XMLID table { } |
| | | Aggregates: |
| | | [ |
| | | XMLAggregate |
| | | { |
| | | ElementDefinition: column |
| | | GenerateOutput: false |
| | | Relation: FinancialProductionColumn |
| | | XMLID FinancialProductionColumn { } |
| | | } |
| | | ] |
| | | Attributes: |
| | | [ |
| | | XMLAttribute |
| | | { |
| | | Attribute: Name |
| | | XMLID name { } |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #root |
| | | XML FinancialProductionReportXML |
| | | { |
| | | Direction: 'ImportExport' |
| | | Root: table |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | XMLElementId |
| | | { |
| | | XMLAddressType { } |
| | | XMLID Key { } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | XMLElementId |
| | | { |
| | | XMLID QuintiqType { } |
| | | XMLQualifierType { } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | XMLObjectBase.ObjectDefinitions |
| | | { |
| | | IdField: Key |
| | | ObjectTypeField: QuintiqType |
| | | TargetType: FinancialProductionColumn |
| | | XMLID column { } |
| | | Attributes: |
| | | [ |
| | | XMLAttribute |
| | | { |
| | | Attribute: Name |
| | | XMLID name { } |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | XMLObjectBase.ObjectDefinitions |
| | | { |
| | | IdField: Key |
| | | ObjectTypeField: QuintiqType |
| | | TargetType: FinancialProductionReport |
| | | XMLID table { } |
| | | Aggregates: |
| | | [ |
| | | XMLAggregate |
| | | { |
| | | ElementDefinition: column |
| | | GenerateOutput: false |
| | | Relation: FinancialProductionColumn |
| | | XMLID FinancialProductionColumn { } |
| | | } |
| | | ] |
| | | Attributes: |
| | | [ |
| | | XMLAttribute |
| | | { |
| | | Attribute: Name |
| | | XMLID name { } |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #root |
| | | XML FinancialProductionReportXMLHeaders |
| | | { |
| | | Direction: 'ImportExport' |
| | | Root: table |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type FinancialProductionReport |
| | | { |
| | | #keys: '5[415136.0.834715039][415136.0.834715037][0.0.0][415136.0.834715038][415136.0.834715040]' |
| | | BaseType: Object |
| | | Description: 'è´¢å¡äº§éæ¥è¡¨' |
| | | StructuredName: 'FinancialProductionReports' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Name |
| | | { |
| | | #keys: '3[415136.0.834715259][415136.0.834715258][415136.0.834715260]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute RowNr |
| | | { |
| | | #keys: '3[415136.0.834200012][415136.0.834200011][415136.0.834200013]' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type FinancialProductionRow |
| | | { |
| | | #keys: '5[415136.0.834715099][415136.0.834715097][0.0.0][415136.0.834715098][415136.0.834715100]' |
| | | BaseType: Object |
| | | Description: 'è´¢å¡äº§éè¡' |
| | | StructuredName: 'FinancialProductionRows' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute FileBinaryValue |
| | | { |
| | | #keys: '3[415136.0.833840427][415136.0.833840426][415136.0.833840428]' |
| | | ValueType: BinaryValue |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsXLSX |
| | | { |
| | | #keys: '3[415136.0.833840418][415136.0.833840417][415136.0.833840419]' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Name |
| | | { |
| | | #keys: '3[415136.0.833840430][415136.0.833840429][415136.0.833840431]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute UploadDateTime |
| | | { |
| | | #keys: '3[415136.0.833840421][415136.0.833840420][415136.0.833840422]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute UploadUser |
| | | { |
| | | #keys: '3[415136.0.833840424][415136.0.833840423][415136.0.833840425]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: Name |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: UploadDateTime |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: UploadUser |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method ReadStructure |
| | | { |
| | | TextBody: |
| | | [* |
| | | tableGroupHandle := TableGroupHandle::Create( this.Name() ); |
| | | tableGroupHandle := XLS::LoadTableGroupFromBinaryData( this.FileBinaryValue().AsBinaryData(), tableGroupHandle, true, this.IsXLSX() ); |
| | | sheets := tableGroupHandle.TableNames(); |
| | | |
| | | traverse ( sheets, Elements, sheetName ) { |
| | | tableHandle := tableGroupHandle.Table( sheetName ); |
| | | tableXML := TableHandle::ExportXML( tableHandle ); |
| | | |
| | | // info( tableXML.AsQUILL() ); |
| | | |
| | | FinancialProductionReport::XMLImportFinancialProductionReportXMLHeaders( tableXML ); |
| | | xlstable := FinancialProductionReport::XMLImportFinancialProductionReportXML( tableXML ); |
| | | |
| | | xlstable.SyncRows(); |
| | | |
| | | xlstable.Name( sheetName ); |
| | | this.FinancialProductionReport( relinsert, &xlstable ); |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Download ( |
| | | MacroPlan macroPlan |
| | | ) as BinaryValue |
| | | { |
| | | TextBody: |
| | | [* |
| | | table := selectobject( macroPlan, FinancialProductionSource.FinancialProductionReport, table, not table.IsImport() ); |
| | | |
| | | xmlDOMI := XMLDOMImplementation::Create(); |
| | | xmlDOM := xmlDOMI.CreateDocumentFromString( '<?xml version="1.0" encoding="UTF-16"?><table><name>' + table.Name() + '</name></table>' ); |
| | | |
| | | tableElement := xmlDOM.GetElementByTagName( "table", 0 ); |
| | | |
| | | traverse ( table, FinancialProductionColumn, column ) { |
| | | columnelement := xmlDOM.CreateElement( "column" ); |
| | | nameelement := xmlDOM.CreateElement( "name" ); |
| | | typeelement := xmlDOM.CreateElement( "type" ); |
| | | nameelement.TextContent( column.Name() ); |
| | | typeelement.TextContent( "String" ); |
| | | columnelement.AppendChild( nameelement ); |
| | | columnelement.AppendChild( typeelement ); |
| | | |
| | | cells := selectsortedset( column, FinancialProductionCell, cell, true, cell.FinancialProductionRow().RowNr() ); |
| | | traverse ( cells, Elements, c ) { |
| | | cellElement := xmlDOM.CreateElement( "cell" ); |
| | | cellElement.SetAttribute( "value", c.Value() ); |
| | | columnelement.AppendChild( cellElement ); |
| | | } |
| | | |
| | | tableElement.AppendChild( columnelement ); |
| | | } |
| | | |
| | | xmlString := xmlDOMI.CreateSerializer().WriteToString( xmlDOM ) |
| | | |
| | | //info( xmlString ); |
| | | |
| | | tableGroupHandle := TableGroupHandle::Create( "Financial productions" ); |
| | | tableHandle := TableHandle::ImportXML( BinaryValue::Construct( xmlString ) ); |
| | | tableGroupHandle.Add( tableHandle ); |
| | | |
| | | binaryData := XLS::SaveTableGroupToBinaryData( tableGroupHandle, true ); |
| | | |
| | | return binaryData.AsBinaryValue(); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod DownloadTemplate ( |
| | | MacroPlan macroPlan |
| | | ) as BinaryValue |
| | | { |
| | | TextBody: |
| | | [* |
| | | xmlDOMI := XMLDOMImplementation::Create(); |
| | | xmlDOM := xmlDOMI.CreateDocumentFromString( '<?xml version="1.0" encoding="UTF-16"?><table><name>Sheet1</name><column><name>Product</name><type>String</type></column><column><name>Unit</name><type>String</type></column></table>' ); |
| | | |
| | | tableElement := xmlDOM.GetElementByTagName( "table", 0 ); |
| | | |
| | | startofyear := macroPlan.StartOfPlanning().StartOfYear(); |
| | | startofnextyear := macroPlan.StartOfPlanning().StartOfNextYear(); |
| | | |
| | | for( start := startofyear; start < startofnextyear; start := start.StartOfNextMonth() ){ |
| | | columnElement := xmlDOM.CreateElement( "column" ); |
| | | nameElement := xmlDOM.CreateElement( "name" ); |
| | | typeElement := xmlDOM.CreateElement( "type" ); |
| | | nameElement.TextContent( start.Format( "M2/D2/Y" ) ); |
| | | typeElement.TextContent( "String" ); |
| | | columnElement.AppendChild( nameElement ); |
| | | columnElement.AppendChild( typeElement ); |
| | | tableElement.AppendChild( columnElement ); |
| | | } |
| | | |
| | | xmlString := xmlDOMI.CreateSerializer().WriteToString( xmlDOM ) |
| | | |
| | | //info( xmlString ); |
| | | |
| | | tableGroupHandle := TableGroupHandle::Create( "Financial productions" ); |
| | | tableHandle := TableHandle::ImportXML( BinaryValue::Construct( xmlString ) ); |
| | | tableGroupHandle.Add( tableHandle ); |
| | | |
| | | binaryData := XLS::SaveTableGroupToBinaryData( tableGroupHandle, true ); |
| | | |
| | | return binaryData.AsBinaryValue(); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Upload ( |
| | | MacroPlan owner, |
| | | BinaryValue binaryValue, |
| | | String filePath |
| | | ) as FinancialProductionSource |
| | | { |
| | | TextBody: |
| | | [* |
| | | fileName := filePath.Tokenize( "\" ).Element( filePath.Tokenize( "\" ).Size() - 1 ); |
| | | |
| | | source := owner.FinancialProductionSource( relnew, FileBinaryValue := binaryValue, |
| | | Name := fileName, |
| | | IsXLSX := fileName.EndsWith( "xlsx" ), |
| | | UploadDateTime := DateTime::ActualTime().Format( "Y-M2-D2 H:m:s" ), |
| | | UploadUser := guard( QuintiqUser::CurrentUser().Username(), "" ) ); |
| | | |
| | | return source; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type FinancialProductionSource |
| | | { |
| | | #keys: '5[415136.0.834715352][415136.0.834715350][0.0.0][415136.0.834715351][415136.0.834715353]' |
| | | BaseType: Object |
| | | Description: 'è´¢å¡äº§éæ¥è¡¨' |
| | | StructuredName: 'FinancialProductionSources' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component ActionBarGroupReport |
| | | { |
| | | #keys: '[415136.0.834352165]' |
| | | BaseType: 'WebActionBarGroup' |
| | | Children: |
| | | [ |
| | | Component ButtonFinancialProductionReport |
| | | { |
| | | #keys: '[415136.0.834352212]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'DOCUMENT_REFRESH' |
| | | Label: 'Financial production report' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component ActionBarPageReport |
| | | { |
| | | #keys: '[415136.0.834352164]' |
| | | BaseType: 'WebActionBarPage' |
| | | Children: |
| | | [ |
| | | #child: ActionBarGroupReport |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 21 |
| | | Title: 'Report' |
| | | ] |
| | | } |
| | |
| | | { |
| | | Properties: |
| | | [ |
| | | Taborder: 21 |
| | | Taborder: 22 |
| | | ] |
| | | } |
| | |
| | | { |
| | | Properties: |
| | | [ |
| | | Taborder: 22 |
| | | Taborder: 23 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ActionBarGroupReport/ButtonFinancialProductionReport |
| | | Response OnClick () id:Response_MacroPlanner_ActionBarGroupReport_ButtonFinancialProductionReport_OnClick |
| | | { |
| | | #keys: '[415136.0.836061956]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | ApplicationScope.ViewManager().ResetUserViewById( "Financial_production_report_view", true); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | #child: applicationFixedPageActionBarPageDef |
| | | #child: applicationDevelopmentActionBarPageDef_1 |
| | | #child: abpAlgorithmPostProcessing |
| | | #child: ActionBarPageReport |
| | | ] |
| | | } |
| | | Component dhBinaryDataPR id:dhBinaryDataPR_688 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelExport |
| | | { |
| | | #keys: '[415136.0.834352718]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ButtonExport |
| | | { |
| | | #keys: '[415136.0.834352737]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 4 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelFinancialProductionReportHeader |
| | | { |
| | | #keys: '[415136.0.834352344]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: PanelFinancialProductionReportSearch |
| | | #child: PanelFinancialProductionReportOperation |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelFinancialProductionReportOperation |
| | | { |
| | | #keys: '[415136.0.834352420]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component LabelFinancialProductionReportOperation |
| | | { |
| | | #keys: '[415136.0.834352468]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | NumberOfColumns: 15 |
| | | Taborder: 0 |
| | | Text: 'Production import' |
| | | ] |
| | | } |
| | | Component ButtonProductionImport |
| | | { |
| | | #keys: '[415136.0.834352491]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component ButtonProductionExport |
| | | { |
| | | #keys: '[415136.0.834352534]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'IMPORT1' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelFinancialProductionReportSearch |
| | | { |
| | | #keys: '[415136.0.834352398]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: PanelUnit |
| | | #child: PanelGeneration |
| | | #child: PanelMQBMLB |
| | | #child: PanelPower |
| | | #child: PanelExport |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelFinancialProductionReportTable |
| | | { |
| | | #keys: '[415136.0.834352365]' |
| | | BaseType: 'WebPanel' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelGeneration |
| | | { |
| | | #keys: '[415136.0.834352628]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddslGeneration |
| | | { |
| | | #keys: '[415136.0.834850709]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'Generation' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelMQBMLB |
| | | { |
| | | #keys: '[415136.0.834352657]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddslMQBMLB |
| | | { |
| | | #keys: '[415136.0.834850906]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'MQB/MLB' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelPower |
| | | { |
| | | #keys: '[415136.0.834352679]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddslPower |
| | | { |
| | | #keys: '[415136.0.834851149]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'Power' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 3 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelUnit |
| | | { |
| | | #keys: '[415136.0.834352594]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddslUnit |
| | | { |
| | | #keys: '[415136.0.834851281]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'Unit' |
| | | Strings: '<All>;é¿æ¥;大è¿' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelExport/ButtonExport |
| | | Response OnClick () id:Response_PanelExport_ButtonExport_OnClick |
| | | { |
| | | #keys: '[415136.0.834850599]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | binaryValue := FinancialProductionSource::Download( MacroPlan ); |
| | | |
| | | Application.Download( "Financial productions.xlsx", binaryValue.AsBinaryData() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelFinancialProductionReportOperation/ButtonProductionExport |
| | | Response OnClick () id:Response_PanelFinancialProductionReportOperation_ButtonProductionExport_OnClick |
| | | { |
| | | #keys: '[415136.0.834850519]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | binaryValue := FinancialProductionSource::DownloadTemplate( MacroPlan ); |
| | | |
| | | Application.Download( "Financial productions.xlsx", binaryValue.AsBinaryData() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelFinancialProductionReportOperation/ButtonProductionImport |
| | | Response OnClick () id:Response_PanelFinancialProductionReportOperation_ButtonProductionImport_OnClick |
| | | { |
| | | #keys: '[415136.0.836011369]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | try { |
| | | uploadJsonString := Application.GetFile(); |
| | | if ( uploadJsonString <> "" ) { |
| | | uploadJson := JSON::Parse( uploadJsonString ); |
| | | Archive::VerifyTheFileName( uploadJson ); |
| | | |
| | | fileName := uploadJson.Get( "name" ).GetString(); |
| | | base64String := uploadJson.Get( "data" ).GetString(); |
| | | |
| | | webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ).AsBinaryValue(); |
| | | |
| | | source := FinancialProductionSource::Upload( MacroPlan, webFileBinaryData, fileName ); |
| | | source.ReadStructure(); |
| | | |
| | | WebMessageBox::Success( Translations::A_VWED_Success() ); |
| | | } |
| | | } onerror { |
| | | WebMessageBox::Error( e.GeneralInformation() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelGeneration/ddslGeneration |
| | | Response OnCreated () id:Response_PanelGeneration_ddslGeneration_OnCreated |
| | | { |
| | | #keys: '[415136.0.834850727]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | values := selectuniquevalues( MacroPlan, Product_MP, tempPMP, true, tempPMP.Generation() ); |
| | | |
| | | valueString := values.Concatenate( ";" ); |
| | | valueString := selectuniquevalues( valueString.Tokenize( ";" ), Elements, tempS, true, tempS ).Concatenate( ";" ); |
| | | |
| | | valueString := "<All>" + ifexpr( valueString = "", "", ";" ) + valueString; |
| | | |
| | | this.Strings( valueString ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelMQBMLB/ddslMQBMLB |
| | | Response OnCreated () id:Response_PanelMQBMLB_ddslMQBMLB_OnCreated |
| | | { |
| | | #keys: '[415136.0.834851070]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | values := selectuniquevalues( MacroPlan, Product_MP, tempPMP, true, tempPMP.MQBMLB() ); |
| | | |
| | | valueString := values.Concatenate( ";" ); |
| | | valueString := selectuniquevalues( valueString.Tokenize( ";" ), Elements, tempS, true, tempS ).Concatenate( ";" ); |
| | | |
| | | valueString := "<All>" + ifexpr( valueString = "", "", ";" ) + valueString; |
| | | |
| | | this.Strings( valueString ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelPower/ddslPower |
| | | Response OnCreated () id:Response_PanelPower_ddslPower_OnCreated |
| | | { |
| | | #keys: '[415136.0.834851166]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | values := selectuniquevalues( MacroPlan, Product_MP, tempPMP, true, tempPMP.Power() ); |
| | | |
| | | valueString := values.Concatenate( ";" ); |
| | | valueString := selectuniquevalues( valueString.Tokenize( ";" ), Elements, tempS, true, tempS ).Concatenate( ";" ); |
| | | |
| | | valueString := "<All>" + ifexpr( valueString = "", "", ";" ) + valueString; |
| | | |
| | | this.Strings( valueString ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent FormFinancialProductionReport |
| | | { |
| | | #keys: '[415136.0.834352278]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: PanelFinancialProductionReportHeader |
| | | #child: PanelFinancialProductionReportTable |
| | | ] |
| | | Properties: |
| | | [ |
| | | Image: 'DOCUMENT_REFRESH' |
| | | Title: 'Financial production report' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | { |
| | | viewcontents |
| | | { |
| | | forms |
| | | { |
| | | form_FormFinancialProductionReport |
| | | { |
| | | title: 'QMacroPlanner::FormFinancialProductionReport' |
| | | shown: true |
| | | componentID: 'QMacroPlanner::FormFinancialProductionReport' |
| | | layout |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 1 |
| | | rowSpan: 15 |
| | | columnPosition: 1 |
| | | columnSpan: 12 |
| | | } |
| | | components |
| | | { |
| | | FormFinancialProductionReport_PanelFinancialProductionReportHeader |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormFinancialProductionReport_PanelFinancialProductionReportSearch |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormFinancialProductionReport_PanelUnit |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormFinancialProductionReport_PanelGeneration |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormFinancialProductionReport_PanelMQBMLB |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormFinancialProductionReport_PanelPower |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormFinancialProductionReport_PanelExport |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormFinancialProductionReport_PanelFinancialProductionReportOperation |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormFinancialProductionReport_PanelFinancialProductionReportTable |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | userconfigurableinformation |
| | | { |
| | | } |
| | | page: '' |
| | | group: '' |
| | | index: 16 |
| | | image: 'DOCUMENT_REFRESH' |
| | | description: '' |
| | | } |
| | | formatversion: 2 |
| | | id: 'Financial_production_report_view' |
| | | name: 'Financial production report view' |
| | | isglobal: false |
| | | isroot: true |
| | | } |