Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev-zlg
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute SheetName |
| | | { |
| | | #keys: '3[412672.0.1121446115][412672.0.1121446114][412672.0.1121446116]' |
| | | ValueType: String |
| | | } |
| | |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-20-2024 (created) |
| | | xmlTemplate := '<?xml version="1.0" encoding="UTF-16"?><table><name>'+ this.Name() +'</name>'; |
| | | xmlTemplate := '<?xml version="1.0" encoding="UTF-16"?><table><name>'+ this.SheetName() +'</name>'; |
| | | |
| | | datas := selectsortedset( this,ExportXMLData,data,true,data.Priority() ); |
| | | |
| | |
| | | [* |
| | | // rislai Jun-21-2024 (created) |
| | | tableGroupHandle := TableGroupHandle::Create( "tableGroupHandle" ); |
| | | tableHandle := TableHandle::ImportXML( BinaryValue::Construct( this.FinalXML() ) ); |
| | | tableHandle := null( TableHandle ); |
| | | try{ |
| | | tableHandle := TableHandle::ImportXML( BinaryValue::Construct( this.FinalXML())); |
| | | }onerror{ |
| | | this.Delete(); |
| | | error( e ); |
| | | } |
| | | tableGroupHandle.Add( tableHandle ); |
| | | binaryData := XLS::SaveTableGroupToBinaryData( tableGroupHandle, true ); |
| | | |
| | | return binaryData.AsBinaryValue(); |
| | | *] |
| | | } |
| | |
| | | #parent: #root |
| | | StaticMethod AwaitLocalTableXMLData ( |
| | | const Strings columnXMLData, |
| | | RecycleBin owner |
| | | RecycleBin owner, |
| | | String tableName |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | // rislai Jun-21-2024 (created) |
| | | manager := select( owner,ExportXMLManager,manager,manager.Name() = "LocalTableXML" ); |
| | | if( isnull( manager )){ |
| | | manager := owner.ExportXMLManager( relnew,Name := "LocalTableXML" ); |
| | | manager := owner.ExportXMLManager( relnew,Name := "LocalTableXML",SheetName := tableName ); |
| | | }else{ |
| | | manager.ExportXMLData( relflush ); |
| | | } |
| | |
| | | // rislai Jun-20-2024 (created) |
| | | manager := select( owner,ExportXMLManager,manager,manager.Name() = "ShiftPlanXML" ); |
| | | if( isnull( manager )){ |
| | | manager := owner.ExportXMLManager( relnew,Name := "ShiftPlanXML" ); |
| | | manager := owner.ExportXMLManager( relnew,Name := "ShiftPlanXML",SheetName := "Shift plan" ); |
| | | }else{ |
| | | manager.ExportXMLData( relflush ); |
| | | } |
| | |
| | | StaticMethod AsyncExport ( |
| | | RecycleBin recycleBin, |
| | | const constcontent LocalRows rows, |
| | | const constcontent LocalColumns columns |
| | | const constcontent LocalColumns columns, |
| | | const MacroPlan macroPlan |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | flag := true; |
| | | traverse( sortColumns,Elements,sortColumn ){ |
| | | if( flag ){ |
| | | attributeXML := rows -> LocalCell_DemandComparison::GetColumnXML( sortColumn,attributeNames,"attribute" ); |
| | | attributeXML := rows -> LocalCell_DemandComparison::GetColumnXML( sortColumn,attributeNames,"attribute",macroPlan ); |
| | | columnstring := columnstring.Merge( attributeXML ) |
| | | flag := false; |
| | | } |
| | | |
| | | cellxml := rows -> LocalCell_DemandComparison::GetColumnXML( sortColumn,attributeNames ,"data"); |
| | | cellxml := rows -> LocalCell_DemandComparison::GetColumnXML( sortColumn,attributeNames ,"data",macroPlan ); |
| | | columnstring := columnstring.Merge( cellxml); |
| | | } |
| | | |
| | | columnstring -> GroupAll() -> ExportXMLManager::AwaitLocalTableXMLData( recycleBin ); |
| | | columnstring -> GroupAll() -> ExportXMLManager::AwaitLocalTableXMLData( recycleBin,guard( rows.Element(0).LocalTable().Name(),"Sheet1") ); |
| | | *] |
| | | } |
| | |
| | | StaticMethod Compared ( |
| | | RecycleBin recycleBin, |
| | | String baseVersionPath, |
| | | String compareVersionPath |
| | | String compareVersionPath, |
| | | String baseVersionName, |
| | | String compareVersionName |
| | | ) as LocalTable |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-20-2024 (created) |
| | | localTable := recycleBin.LocalTable( relnew,Name := baseVersionPath + "__" + compareVersionPath); |
| | | localTable := recycleBin.LocalTable( relnew,Name := baseVersionName + "__" + compareVersionName ); |
| | | |
| | | baseVersionFile := OSFile::Construct(); |
| | | compareVersionFile := OSFile::Construct(); |
| | |
| | | // rislai Jun-21-2024 (created) |
| | | attributeNames := construct( Strings ); |
| | | |
| | | attributeNames.Add( "BaseVersionValue" ); |
| | | attributeNames.Add( "CompareVersionValue" ); |
| | | attributeNames.Add( "BaseVersion" ); |
| | | attributeNames.Add( "CompareVersion" ); |
| | | attributeNames.Add( "Gap" ); |
| | |
| | | const constcontent LocalRows rows, |
| | | const LocalColumn column, |
| | | const Strings attributeNames, |
| | | String type |
| | | String type, |
| | | const MacroPlan macroPlan |
| | | ) const as String |
| | | { |
| | | TextBody: |
| | |
| | | columnXML := columnXML + "</column>"; |
| | | } |
| | | if( type = "attribute" ){ |
| | | columnXML0_1 := "<column><name>Sales Segment</name><type>String</type>"; |
| | | columnXML0_2 := "<column><name>Generation</name><type>String</type>"; |
| | | columnXML0_3 := "<column><name>MQB/MLB</name><type>String</type>"; |
| | | columnXML0_4 := "<column><name>åç</name><type>String</type>"; |
| | | |
| | | columnXML1 := "<column><name>Product ID</name><type>String</type>"; |
| | | columnXML2 := "<column><name>Attribute</name><type>String</type>"; |
| | | |
| | |
| | | if( flag ){ |
| | | cellXML := '<cell value="' + cell.LocalRow().Name() + '"/>' |
| | | columnXML1 := columnXML1 + cellXML; |
| | | |
| | | salesSegment := select( cell.LocalRow().LocalTable(),LocalColumn.LocalCell.astype( LocalCell_DemandComparison ),temp_cell,temp_cell.LocalRow() = cell.LocalRow() and temp_cell.LocalColumn().Name() = "产å°"); |
| | | if( not isnull( salesSegment )){ |
| | | cellXML0_1 := '<cell value="' + ifexpr( salesSegment.BaseVersionValue() <> "空",salesSegment.BaseVersionValue(),salesSegment.CompareVersionValue()) + '"/>'; |
| | | columnXML0_1 := columnXML0_1 + cellXML0_1; |
| | | }else{ |
| | | cellXML0_1 := '<cell value=" "/>' |
| | | columnXML0_1 := columnXML0_1 + cellXML0_1; |
| | | } |
| | | |
| | | product := select( macroPlan,Product_MP,product,product.ID() = cell.LocalRow().Name() ); |
| | | if( not isnull( product )){ |
| | | cellXML0_2 := '<cell value="' + product.Generation() + '"/>'; |
| | | cellXML0_3 := '<cell value="' + product.MQBMLB() + '"/>'; |
| | | cellXML0_4 := '<cell value="' + product.Power() + '"/>'; |
| | | columnXML0_2 := columnXML0_2 + cellXML0_2; |
| | | columnXML0_3 := columnXML0_3 + cellXML0_3; |
| | | columnXML0_4 := columnXML0_4 + cellXML0_4; |
| | | }else{ |
| | | cellXML0_2 := '<cell value=" "/>'; |
| | | cellXML0_3 := '<cell value=" "/>'; |
| | | cellXML0_4 := '<cell value=" "/>'; |
| | | columnXML0_2 := columnXML0_2 + cellXML0_2; |
| | | columnXML0_3 := columnXML0_3 + cellXML0_3; |
| | | columnXML0_4 := columnXML0_4 + cellXML0_4; |
| | | } |
| | | |
| | | flag := false; |
| | | }else{ |
| | | cellXML := '<cell value=" "/>' |
| | | columnXML1 := columnXML1 + cellXML; |
| | | cellXML0_1 := '<cell value=" "/>' |
| | | cellXML0_2 := '<cell value=" "/>'; |
| | | cellXML0_3 := '<cell value=" "/>'; |
| | | cellXML0_4 := '<cell value=" "/>'; |
| | | columnXML0_1 := columnXML0_1 + cellXML0_1; |
| | | columnXML0_2 := columnXML0_2 + cellXML0_2; |
| | | columnXML0_3 := columnXML0_3 + cellXML0_3; |
| | | columnXML0_4 := columnXML0_4 + cellXML0_4; |
| | | } |
| | | cellXML := '<cell value="' + e + '"/>' |
| | | columnXML2 := columnXML2 + cellXML; |
| | | } |
| | | } |
| | | columnXML := columnXML1 + "</column>" + columnXML2 + "</column>"; |
| | | columnXML := columnXML0_1 + "</column>" + columnXML0_2 + "</column>" + columnXML0_3 + "</column>" + columnXML0_4 + "</column>" + columnXML1 + "</column>" + columnXML2 + "</column>"; |
| | | } |
| | | |
| | | return columnXML; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Date |
| | | { |
| | | #keys: '3[412672.0.1120948156][412672.0.1120948155][412672.0.1120948157]' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Function CalcDate |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-28-2024 (created) |
| | | if( not this.IsAttrbuteColumn() ){ |
| | | names := this.Name().Tokenize( "/" ); |
| | | this.Date( guard( Date::Construct( [Number]names.Element( 0 ),[Number]names.Element( 1 ),[Number]names.Element( 2 )),Date::MinDate() )); |
| | | } |
| | | *] |
| | | } |
| | |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-9-2024 (created) |
| | | archive.ArchivePR( relnew,Name := "PR72.SP_20240604_VWED.xlsx",FilePath := "C:\Excel\PR72.SP_20240604_VWED.xlsx"); |
| | | |
| | | archive.ArchivePR( relnew,Name := "PR72.SP_20240605_VWED.xlsx",FilePath := "C:\Excel\PR72.SP_20240605_VWED.xlsx"); |
| | | |
| | | |
| | | //testTree := NamedValueTree::Create(); |
| | | // |
| | | //testTreeHandel := testTree.GetHandle( "test1" ); |
| | | //testTreeHandel2 := testTree.GetHandle( "test2" ); |
| | | // |
| | | //testTree.Root().AddChild( testTreeHandel,1 ); |
| | | // |
| | | //info( testTree.Root().Child( testTreeHandel ).GetValueAsNumber() ); |
| | | //try{ |
| | | // info( testTree.Root().Child( testTreeHandel2 ).GetValueAsNumber() ); |
| | | //}onerror{ |
| | | // testTree.Root().AddChild( testTreeHandel,2 ); |
| | | //} |
| | | //info( testTree.Root().Child( testTreeHandel ).GetValueAsNumber() ); |
| | | name := "2020/04/01"; |
| | | names := name.Tokenize( "/" ); |
| | | info( guard( Date::Construct( [Number]names.Element( 0 ),[Number]names.Element( 1 ),[Number]names.Element( 2 )),Date::MinDate() )); |
| | | *] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Attributes: 'BaseVersionValue;CompareVersionValue;BaseVersion;CompareVersion;Gap' |
| | | Attributes: 'BaseVersion;CompareVersion;Gap' |
| | | Column: 'LocalColumn' |
| | | Row: 'LocalRow' |
| | | Taborder: 0 |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'checkedProduct:QMacroPlanner::FormDemandComparison.dhFinelProduct' |
| | | FixedFilter: 'exists( checkedProduct,Elements,product,product.ID() = object.Name() )' |
| | | Source: 'dhComparisonData' |
| | | Taborder: 0 |
| | | Transformation: 'LocalRow' |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'startDate:QMacroPlanner::FormDemandComparison.dhStartDate;endDate:QMacroPlanner::FormDemandComparison.dhEndDate' |
| | | FixedFilter: 'not object.IsAttrbuteColumn() and startDate <= object.Date() and endDate > object.Date()' |
| | | Source: 'dhComparisonData' |
| | | Taborder: 0 |
| | | Transformation: 'LocalColumn' |
| | |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component dhCheckedProduct |
| | | { |
| | | #keys: '[412672.0.1121211408]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[Product_MP]*' |
| | | Children: |
| | | [ |
| | | Component deCheckedProduct |
| | | { |
| | | #keys: '[412672.0.1121633584]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[Product_MP]' |
| | | Source: 'ApplicationMacroPlanner.DataHolderCheckedProduct' |
| | | Taborder: 0 |
| | | Transformation: 'Elements' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component dhFinelProduct |
| | | { |
| | | #keys: '[412672.0.1121876690]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[Product_MP]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dhCheckedSalesSegment |
| | | { |
| | | #keys: '[412672.0.1122338152]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[SalesSegment_MP]*' |
| | | Children: |
| | | [ |
| | | Component deCheckedSalesSegment |
| | | { |
| | | #keys: '[412672.0.1122072068]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[SalesSegment_MP]' |
| | | Source: 'ApplicationMacroPlanner.DataHolderCheckedSalesSegment' |
| | | Taborder: 0 |
| | | Transformation: 'Elements' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | [ |
| | | #child: PanelSelection |
| | | #child: PanelOperation_568 |
| | | #child: PanelFilter |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelFilter |
| | | { |
| | | #keys: '[412672.0.1119852113]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddslGeneration |
| | | { |
| | | #keys: '[412672.0.1119852174]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'Generation' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component ddslMQBMLB |
| | | { |
| | | #keys: '[412672.0.1119852186]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'MQB/MLB' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component ddslPower |
| | | { |
| | | #keys: '[412672.0.1119852198]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'åç' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dsStartDate |
| | | { |
| | | #keys: '[412672.0.1119852248]' |
| | | BaseType: 'WebDateSelector' |
| | | Properties: |
| | | [ |
| | | Label: 'Start Date' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component dsEndDate |
| | | { |
| | | #keys: '[412672.0.1119852261]' |
| | | BaseType: 'WebDateSelector' |
| | | Properties: |
| | | [ |
| | | Date: 9999-12-31 |
| | | Label: 'End Date' |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | Component ButtonFilter |
| | | { |
| | | #keys: '[412672.0.1121729150]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'è¿æ»¤' |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | | Component dhStartDate |
| | | { |
| | | #keys: '[412672.0.1122339350]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'Date*' |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component dhEndDate |
| | | { |
| | | #keys: '[412672.0.1122339363]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'Date*' |
| | | Properties: |
| | | [ |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Label: 'å¼å§å¯¹æ¯' |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component efBaseVersion |
| | | { |
| | | #keys: '[412672.0.1111643258]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | Label: 'åºåéæ±çæ¬ï¼' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component efCompareVersion |
| | | { |
| | | #keys: '[412672.0.1111643271]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | Label: '对æ¯éæ±çæ¬ï¼' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dhCompareVersionPath |
| | | { |
| | | #keys: '[412672.0.1111643374]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'String*' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component dhBaseVersionPath |
| | | { |
| | | #keys: '[412672.0.1111643396]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'String*' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component dhXMLDataListener id:dhXMLDataListener_906 |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 7 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component bExport id:bExport_98 |
| | |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Label: '导åº' |
| | | Taborder: 5 |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bDownload id:bDownload_352 |
| | |
| | | [ |
| | | Image: 'DOWNLOAD' |
| | | Label: 'ä¸è½½' |
| | | Taborder: 6 |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | #child: pVersionInfomation |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pVersionInfomation |
| | | { |
| | | #keys: '[412672.0.1119852729]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component dhBaseVersionPath id:dhBaseVersionPath_640 |
| | | { |
| | | #keys: '[412672.0.1119852775]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'String*' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dhCompareVersionPath id:dhCompareVersionPath_582 |
| | | { |
| | | #keys: '[412672.0.1119852802]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'String*' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component lBaseVersionName |
| | | { |
| | | #keys: '[412672.0.1119853064]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: 'åºåéæ±çæ¬ï¼' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component lCompareVersionName |
| | | { |
| | | #keys: '[412672.0.1119853066]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: '对æ¯éæ±çæ¬ï¼' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelDemandComparison/dhCheckedProduct |
| | | Response OnDataChanged () id:Response_PanelDemandComparison_dhCheckedProduct_OnDataChanged |
| | | { |
| | | #keys: '[412672.0.1122118230]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( this.Data().Size() <> 0 ){ |
| | | dhFinelProduct.Data( this.Data().Copy() ); |
| | | }else{ |
| | | dhFinelProduct.Data( DataHolderProduct.Data().Copy() ); |
| | | } |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelDemandComparison/dhCheckedSalesSegment |
| | | Response OnDataChanged () id:Response_PanelDemandComparison_dhCheckedSalesSegment_OnDataChanged |
| | | { |
| | | #keys: '[412672.0.1122600939]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( this.Data().Size() <> 0 ){ |
| | | prods := selectset( dhFinelProduct.Data(),Elements,element,exists( this.Data(),Elements.SalesDemand.Product_MP,prod,element = prod )); |
| | | dhFinelProduct.Data( &prods ); |
| | | }else{ |
| | | dhFinelProduct.Data( DataHolderProduct.Data().Copy() ); |
| | | } |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelDemandComparison/dhFinelProduct |
| | | Response OnCreated () id:Response_PanelDemandComparison_dhFinelProduct_OnCreated |
| | | { |
| | | #keys: '[412672.0.1122081581]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.Data( DataHolderProduct.Data().Copy() ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelFilter/ButtonFilter |
| | | Response OnClick () id:Response_PanelFilter_ButtonFilter_OnClick |
| | | { |
| | | #keys: '[412672.0.1121729757]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | products := dhCheckedProduct.Data().Copy(); |
| | | if( ddslGeneration.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Generation() <> ddslGeneration.Text()); |
| | | } |
| | | if( ddslMQBMLB.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.MQBMLB() <> ddslMQBMLB.Text()); |
| | | } |
| | | if( ddslPower.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Power() <> ddslPower.Text()); |
| | | } |
| | | dhFinelProduct.Data( &products ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelFilter/ddslGeneration |
| | | Response OnCreated () id:Response_PanelFilter_ddslGeneration_OnCreated |
| | | { |
| | | #keys: '[412672.0.1121755350]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | strings := selectuniquevalues( MacroPlan,Product_MP,product,not product.IsSystem(),product.Generation() ); |
| | | |
| | | res := strings.Concatenate( ";" ); |
| | | |
| | | this.Strings( "<All>;" + res ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelFilter/ddslMQBMLB |
| | | Response OnCreated () id:Response_PanelFilter_ddslMQBMLB_OnCreated |
| | | { |
| | | #keys: '[412672.0.1121815924]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | strings := selectuniquevalues( MacroPlan,Product_MP,product,not product.IsSystem(),product.MQBMLB() ); |
| | | |
| | | res := strings.Concatenate( ";" ); |
| | | |
| | | this.Strings( "<All>;" + res ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelFilter/ddslPower |
| | | Response OnCreated () id:Response_PanelFilter_ddslPower_OnCreated |
| | | { |
| | | #keys: '[412672.0.1121816007]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | strings := selectuniquevalues( MacroPlan,Product_MP,product,not product.IsSystem(),product.Power() ); |
| | | |
| | | res := strings.Concatenate( ";" ); |
| | | |
| | | this.Strings( "<All>;" + res ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelFilter/dhEndDate |
| | | Response OnCreated () id:Response_PanelFilter_dhEndDate_OnCreated |
| | | { |
| | | #keys: '[412672.0.1122841072]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.Data( Date::MaxDate() ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelFilter/dhStartDate |
| | | Response OnCreated () id:Response_PanelFilter_dhStartDate_OnCreated |
| | | { |
| | | #keys: '[412672.0.1122841156]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.Data( Date::MinDate() ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelFilter/dsEndDate |
| | | Response OnChanged () id:Response_PanelFilter_dsEndDate_OnChanged |
| | | { |
| | | #keys: '[412672.0.1122665296]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDateTimeFieldBase_OnChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dhEndDate.Data( this.Date() ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelFilter/dsStartDate |
| | | Response OnChanged () id:Response_PanelFilter_dsStartDate_OnChanged |
| | | { |
| | | #keys: '[412672.0.1122665180]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDateTimeFieldBase_OnChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dhStartDate.Data( this.Date() ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | |
| | | table := LocalCell_DemandComparison::Compared( RecycleBin,dhBaseVersionPath.Data(),dhCompareVersionPath.Data() ); |
| | | table := LocalCell_DemandComparison::Compared( RecycleBin,dhBaseVersionPath.Data(),dhCompareVersionPath.Data(),lBaseVersionName.Text(),lCompareVersionName.Text() ); |
| | | dhComparisonData.Data( table ); |
| | | *] |
| | | GroupServerCalls: false |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | rows := selectset( dhComparisonData.Data(),LocalRow,row,true ); |
| | | columns := selectset( dhComparisonData.Data( ),LocalColumn,column,true ); |
| | | LocalCell_DemandComparison::AsyncExport( RecycleBin, rows, columns ); |
| | | rows := selectset( dhComparisonData.Data(),LocalRow,row,exists( dhFinelProduct.Data(),Elements,product,product.ID() = row.Name() ) ); |
| | | columns := selectset( dhComparisonData.Data( ),LocalColumn,column,not column.IsAttrbuteColumn() and dhStartDate.Data() <= column.Date() and dhEndDate.Data() > column.Date() ); |
| | | LocalCell_DemandComparison::AsyncExport( RecycleBin, rows, columns ,MacroPlan ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | [* |
| | | dhBaseVersionPR.Data( selection ); |
| | | this.Tooltip( selection.Name() ); |
| | | efBaseVersion.Text( selection.Name() ); |
| | | lBaseVersionName.Text( selection.Name() ); |
| | | dhBaseVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | this.Tooltip( selection.Name() ); |
| | | |
| | | efCompareVersion.Text( selection.Name() ); |
| | | lCompareVersionName.Text( selection.Name() ); |
| | | dhCompareVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | dhBaseVersionPR.Data( selection ); |
| | | this.Tooltip( selection.Name() ); |
| | | efBaseVersion.Text( selection.Name() ); |
| | | lBaseVersionName.Text( selection.Name() ); |
| | | dhBaseVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | this.Tooltip( selection.Name() ); |
| | | |
| | | efCompareVersion.Text( selection.Name() ); |
| | | lCompareVersionName.Text( selection.Name() ); |
| | | dhCompareVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | this.Tooltip( selection.Name() ); |
| | | |
| | | efCompareVersion.Text( selection.Name() ); |
| | | lCompareVersionName.Text( selection.Name() ); |
| | | dhCompareVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | dhBaseVersionPR.Data( selection ); |
| | | this.Tooltip( selection.Name() ); |
| | | efBaseVersion.Text( selection.Name() ); |
| | | lBaseVersionName.Text( selection.Name() ); |
| | | dhBaseVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | dhBaseVersionPR.Data( selection ); |
| | | this.Tooltip( selection.Name() ); |
| | | efBaseVersion.Text( selection.Name() ); |
| | | lBaseVersionName.Text( selection.Name() ); |
| | | dhBaseVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | this.Tooltip( selection.Name() ); |
| | | |
| | | efCompareVersion.Text( selection.Name() ); |
| | | lCompareVersionName.Text( selection.Name() ); |
| | | dhCompareVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | dhBaseVersionPR.Data( selection ); |
| | | this.Tooltip( selection.Name() ); |
| | | efBaseVersion.Text( selection.Name() ); |
| | | lBaseVersionName.Text( selection.Name() ); |
| | | dhBaseVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | this.Tooltip( selection.Name() ); |
| | | |
| | | efCompareVersion.Text( selection.Name() ); |
| | | lCompareVersionName.Text( selection.Name() ); |
| | | dhCompareVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | dhBaseVersionPR.Data( selection ); |
| | | this.Tooltip( selection.Name() ); |
| | | efBaseVersion.Text( selection.Name() ); |
| | | lBaseVersionName.Text( selection.Name() ); |
| | | dhBaseVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | this.Tooltip( selection.Name() ); |
| | | |
| | | efCompareVersion.Text( selection.Name() ); |
| | | lCompareVersionName.Text( selection.Name() ); |
| | | dhCompareVersionPath.Data( selection.FilePath() ); |
| | | *] |
| | | } |