已重命名5个文件
已修改20个文件
已添加10个文件
已删除5个文件
| | |
| | | [* |
| | | // rislai Jun-21-2024 (created) |
| | | manager := select( owner,ExportXMLManager,manager,manager.Name() = tableName ); |
| | | if( isnull( manager )){ |
| | | manager := owner.ExportXMLManager( relnew,Name := tableName,SheetName := tableName ); |
| | | }else{ |
| | | manager.ExportXMLData( relflush ); |
| | | if( not isnull( manager )){ |
| | | manager.Delete(); |
| | | } |
| | | manager := owner.ExportXMLManager( relnew,Name := tableName,SheetName := tableName ); |
| | | traverse( columnXMLData,Elements,element,element.TrimBoth() <> "" ){ |
| | | data := manager.ExportXMLData( relnew, XML := element); |
| | | data.Priority( data.CalculatePriority( )); |
| | | try{ |
| | | data.Priority( data.CalculatePriority( )); |
| | | }onerror{ |
| | | info( element ); |
| | | } |
| | | |
| | | } |
| | | *] |
| | | } |
| | |
| | | // rislai Jun-20-2024 (created) |
| | | sortColumns := selectsortedset( columns,Elements,column,true,column.Index()); |
| | | |
| | | attributeNames := LocalCell_DemandComparison::GetAttributeNames(); |
| | | attributeNames := LocalCell_OfflinePlanComparison::GetAttributeNames(); |
| | | |
| | | columnstring := emit( "" ); |
| | | flag := true; |
| | | traverse( sortColumns,Elements,sortColumn ){ |
| | | if( flag ){ |
| | | attributeXML := rows -> LocalCell_DemandComparison::GetColumnXML( sortColumn,attributeNames,"attribute",macroPlan ); |
| | | attributeXML := rows -> LocalCell_OfflinePlanComparison::GetColumnXML( sortColumn,attributeNames,"attribute",macroPlan ); |
| | | columnstring := columnstring.Merge( attributeXML ) |
| | | flag := false; |
| | | } |
| | | |
| | | cellxml := rows -> LocalCell_DemandComparison::GetColumnXML( sortColumn,attributeNames ,"data",macroPlan ); |
| | | cellxml := rows -> LocalCell_OfflinePlanComparison::GetColumnXML( sortColumn,attributeNames ,"data",macroPlan ); |
| | | columnstring := columnstring.Merge( cellxml); |
| | | } |
| | | |
| | | columnstring -> GroupAll() -> ExportXMLManager::AwaitLocalTableXMLData( recycleBin,guard( rows.Element(0).LocalTable().Name(),"Sheet1") ); |
| | | columnstring -> GroupAll() -> ExportXMLManager::AwaitLocalTableXMLData( recycleBin,LocalCell_OfflinePlanComparison::GetTableName() ); |
| | | *] |
| | | } |
| | |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-20-2024 (created) |
| | | table := recycleBin.LocalTable( relnew,Name := "ä¸çº¿è®¡åæ¥è¡¨å¯¹æ¯"); |
| | | table := recycleBin.LocalTable( relnew,Name := LocalCell_OfflinePlanComparison::GetTableName()); |
| | | |
| | | localColumns := construct( LocalColumns ); |
| | | localColumnIndexTree := NamedValueTree::Create(); |
| | |
| | | // rislai Jun-21-2024 (created) |
| | | // rislai Jun-20-2024 (created) |
| | | columnXML := ""; |
| | | cells := selectsortedset( column, LocalCell.astype( LocalCell_DemandComparison ), cell, |
| | | cells := selectsortedset( column, LocalCell.astype( LocalCell_OfflinePlanComparison ), cell, |
| | | exists( rows,Elements,element,element = cell.LocalRow()), cell.LocalRow().Index()); |
| | | if( type = "data" ){ |
| | | columnXML := ""; |
| | | if( column.IsAttrbuteColumn() ){ |
| | | columnXML := "<column><name>" + column.Name() + "</name><type>String</type>"; |
| | | }else{ |
| | | columnXML := "<column><name>" + column.Name() + "</name><type>Number</type>"; |
| | | columnXML := "<column><name>" + column.Date().Format( "Y/M2/D2") + "</name><type>Number</type>"; |
| | | } |
| | | traverse ( cells, Elements, cell ) { |
| | | traverse( attributeNames ,Elements,e ){ |
| | |
| | | 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>"; |
| | | // 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>"; |
| | | columnXML1 := "<column><name>Line</name><type>String</type>"; |
| | | columnXML2 := "<column><name>Attribute</name><type>String</type>"; |
| | | |
| | | traverse ( cells, Elements, cell ) { |
| | |
| | | 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 := columnXML0_1 + "</column>" + columnXML0_2 + "</column>" + columnXML0_3 + "</column>" + columnXML0_4 + "</column>" + columnXML1 + "</column>" + columnXML2 + "</column>"; |
| | | columnXML := columnXML1 + "</column>" + columnXML2 + "</column>"; |
| | | } |
| | | |
| | | return columnXML; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetTableName () const declarative remote as String |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Sep-30-2024 (created) |
| | | return "ä¸çº¿è®¡åæ¥è¡¨å¯¹æ¯"; |
| | | *] |
| | | } |
| | |
| | | // rislai Jun-20-2024 (created) |
| | | sortColumns := selectsortedset( columns,Elements,column,true,column.Index()); |
| | | |
| | | attributeNames := LocalCell_DemandComparison::GetAttributeNames(); |
| | | attributeNames := LocalCell_ProductionComparison::GetAttributeNames(); |
| | | |
| | | columnstring := emit( "" ); |
| | | flag := true; |
| | | traverse( sortColumns,Elements,sortColumn ){ |
| | | if( flag ){ |
| | | attributeXML := rows -> LocalCell_DemandComparison::GetColumnXML( sortColumn,attributeNames,"attribute",macroPlan ); |
| | | attributeXML := rows -> LocalCell_ProductionComparison::GetColumnXML( sortColumn,attributeNames,"attribute",macroPlan ); |
| | | columnstring := columnstring.Merge( attributeXML ) |
| | | flag := false; |
| | | } |
| | | |
| | | cellxml := rows -> LocalCell_DemandComparison::GetColumnXML( sortColumn,attributeNames ,"data",macroPlan ); |
| | | cellxml := rows -> LocalCell_ProductionComparison::GetColumnXML( sortColumn,attributeNames ,"data",macroPlan ); |
| | | columnstring := columnstring.Merge( cellxml); |
| | | } |
| | | |
| | | columnstring -> GroupAll() -> ExportXMLManager::AwaitLocalTableXMLData( recycleBin,guard( rows.Element(0).LocalTable().Name(),"Sheet1") ); |
| | | |
| | | columnstring -> GroupAll() -> ExportXMLManager::AwaitLocalTableXMLData( recycleBin,LocalCell_ProductionComparison::GetTableName() ); |
| | | *] |
| | | } |
| | |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-21-2024 (created) |
| | | // rislai Jun-20-2024 (created) |
| | | // rislai Jun-21-2024 (created) |
| | | columnXML := ""; |
| | | cells := selectsortedset( column, LocalCell.astype( LocalCell_DemandComparison ), cell, |
| | | cells := selectsortedset( column, LocalCell.astype( LocalCell_ProductionComparison ), cell, |
| | | exists( rows,Elements,element,element = cell.LocalRow()), cell.LocalRow().Index()); |
| | | if( type = "data" ){ |
| | | columnXML := ""; |
| | | if( column.IsAttrbuteColumn() ){ |
| | | columnXML := "<column><name>" + column.Name() + "</name><type>String</type>"; |
| | | }else{ |
| | | columnXML := "<column><name>" + column.Name() + "</name><type>Number</type>"; |
| | | columnXML := "<column><name>" + column.Date().Format( "Y/M2/D2") + "</name><type>Number</type>"; |
| | | } |
| | | traverse ( cells, Elements, cell ) { |
| | | traverse( attributeNames ,Elements,e ){ |
| | |
| | | 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>"; |
| | | |
| | | // 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>"; |
| | | columnXML1 := "<column><name>Line</name><type>String</type>"; |
| | | columnXML2 := "<column><name>Attribute</name><type>String</type>"; |
| | | |
| | | traverse ( cells, Elements, cell ) { |
| | |
| | | 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; |
| | | } |
| | | |
| | | // 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; |
| | | // 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; |
| | | } |
| | | cellXML := '<cell value="' + e + '"/>' |
| | | columnXML2 := columnXML2 + cellXML; |
| | | } |
| | | } |
| | | columnXML := columnXML0_1 + "</column>" + columnXML0_2 + "</column>" + columnXML0_3 + "</column>" + columnXML0_4 + "</column>" + columnXML1 + "</column>" + columnXML2 + "</column>"; |
| | | // columnXML0_2 + "</column>" + columnXML0_3 + "</column>" + columnXML0_4 + "</column>" + |
| | | columnXML := columnXML1 + "</column>" + columnXML2 + "</column>"; |
| | | } |
| | | |
| | | return columnXML; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetTableName () const declarative remote as String |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Sep-30-2024 (created) |
| | | return "产éå¯¹æ¯æ¥è¡¨"; |
| | | *] |
| | | } |
| | |
| | | [* |
| | | // rislai Jul-17-2024 (created) |
| | | macroPlan := this.MacroPlan(); |
| | | table := recycleBin.LocalTable( relnew,Name := "产éå¯¹æ¯æ¥è¡¨"); |
| | | table := recycleBin.LocalTable( relnew,Name := LocalCell_ProductionComparison::GetTableName()); |
| | | |
| | | actualDailyProductionDatas := selectset( archive,ActualDailyProductionData,data,true ); |
| | | actualDailyProductionDataIndexTree := NamedValueTree::Create(); |
| | |
| | | |
| | | traverse( this,OfflinePlanRow,row,row.Type() = "1" ){ |
| | | productID := row.ProductID(); |
| | | productLine := row.ProductionLine(); |
| | | // productLine := row.ProductionLine(); |
| | | localRow := table.LocalRow( relnew,Index := table.GetRowIndexCache(),CustomName := productID ); |
| | | traverse( row,OfflinePlanCell,cell,cell.OfflinePlanColumn().ColumnDate() >= macroPlan.StartOfPlanning().Date() ){ |
| | | localColumnHandle := localColumnIndexTree.GetHandle( cell.OfflinePlanColumn().ColumnDate().AsQUILL() ); |
| | |
| | | column.Delete(); |
| | | } |
| | | } |
| | | // maxCellCount := table.LocalRow( relsize ); |
| | | |
| | | //traverse( table,LocalColumn,column ){ |
| | | // cellIndexTree := NamedValueTree::Create(); |
| | | // columnKey := column.CustomDate().AsQUILL(); |
| | | // count := 0; |
| | | // traverse( column,LocalCell,cell ){ |
| | | // rowKey := cell.LocalRow().CustomName(); |
| | | // cellHandle := cellIndexTree.GetHandle( rowKey + columnKey ); |
| | | // cellIndexTree.Root().AddChild( cellHandle,count ); |
| | | // count++; |
| | | // } |
| | | // traverse( table,LocalRow,row ){ |
| | | // rowKey := row.CustomName(); |
| | | // cellHandle := cellIndexTree.GetHandle( rowKey + columnKey ); |
| | | // cellCount := guard( cellIndexTree.Root().Child( cellHandle ),null( NamedValue )); |
| | | // if( isnull( cellCount )){ |
| | | // row.LocalCell( relnew,LocalCell_ProductionComparison ,LocalColumn := column, |
| | | // Plan := 0,Actual := 0 ); |
| | | // } |
| | | // } |
| | | //} |
| | | |
| | | traverse( table,LocalRow,row ){ |
| | | cellCountTree := NamedValueTree::Create(); |
| | | traverse( row,LocalCell,cell ){ |
| | | cellHandle := cellCountTree.GetHandle( cell.LocalColumn().CustomDate().AsQUILL()); |
| | | cellCountTree.Root().AddChild( cellHandle,0 ); |
| | | } |
| | | traverse( table,LocalColumn,column ){ |
| | | cellHandle := cellCountTree.GetHandle( column.CustomDate().AsQUILL()); |
| | | cell := guard( cellCountTree.Root().Child( cellHandle ),null( NamedValue )); |
| | | if( isnull( cell )){ |
| | | row.LocalCell( relnew,LocalCell_ProductionComparison ,LocalColumn := column,Plan := 0,Actual := 0 ); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return table; |
| | | *] |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'LocalTable' |
| | | Source: 'dhComparisonData' |
| | | Source: 'dhTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalRow.LocalCell.astype(LocalCell_OfflinePlanComparison)' |
| | | ] |
| | |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'checkedProduct:QMacroPlanner::FormOfflinePlanChanges.dhFinelProduct' |
| | | FixedFilter: 'exists( checkedProduct,Elements,product,product.ID() = object.Name() )' |
| | | Source: 'dhComparisonData' |
| | | Source: 'dhTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalRow' |
| | | ] |
| | |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'startDate:QMacroPlanner::FormOfflinePlanChanges.dhStartDate;endDate:QMacroPlanner::FormOfflinePlanChanges.dhEndDate' |
| | | FixedFilter: 'not object.IsAttrbuteColumn() and startDate <= object.Date() and endDate > object.Date() ' |
| | | Source: 'dhComparisonData' |
| | | Source: 'dhTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalColumn' |
| | | ] |
| | |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component dhComparisonData |
| | | Component dhTable |
| | | { |
| | | #keys: '[412672.1.78210541]' |
| | | BaseType: 'WebDataHolder' |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[MacroPlan]' |
| | | Source: 'dhMacroPlans' |
| | | DataType: 'structured[OfflinePlanTable]' |
| | | Source: 'dhOfflinePlanTables' |
| | | Taborder: 0 |
| | | Transformation: 'Elements.OfflinePlanTable' |
| | | Transformation: 'Elements' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[MacroPlan]' |
| | | Source: 'dhMacroPlans' |
| | | DataType: 'structured[OfflinePlanTable]' |
| | | Source: 'dhOfflinePlanTables' |
| | | Taborder: 0 |
| | | Transformation: 'Elements.OfflinePlanTable' |
| | | Transformation: 'Elements' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component dhMacroPlans id:dhMacroPlans_891 |
| | | Component dhOfflinePlanTables |
| | | { |
| | | #keys: '[414996.1.103241339]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[MacroPlan]*' |
| | | Databinding: 'structured[OfflinePlanTable]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component bExport |
| | | { |
| | | #keys: '[414996.1.104721685]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component dhXMLDataListener |
| | | { |
| | | #keys: '[414996.1.104721708]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[ExportXMLManager]*' |
| | | Children: |
| | | [ |
| | | Component DataExtractor510 |
| | | { |
| | | #keys: '[414996.1.104721709]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'RecycleBin' |
| | | FixedFilter: 'object.Name() = LocalCell_OfflinePlanComparison::GetTableName()' |
| | | Source: 'RecycleBin' |
| | | Taborder: 0 |
| | | Transformation: 'ExportXMLManager' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_Form701/Response_PanelDemandComparison_dhComparisonData_OnDataChanged.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelDemandComparison/dhComparisonData |
| | | Response OnDataChanged () id:Response_PanelDemandComparison_dhComparisonData_OnDataChanged |
| | | #parent: PanelDemandComparison/dhTable |
| | | Response OnDataChanged () id:Response_PanelDemandComparison_dhTable_OnDataChanged |
| | | { |
| | | #keys: '[412672.1.78210528]' |
| | | CanBindMultiple: false |
| | |
| | | baseVersion := ddlBaseOfflinePlanTable.Data(); |
| | | compareVersion := ddlCompareOfflinePlanTable.Data(); |
| | | |
| | | dhComparisonData.Data( LocalCell_OfflinePlanComparison::Compared( RecycleBin,baseVersion,compareVersion )); |
| | | dhTable.Data( LocalCell_OfflinePlanComparison::Compared( RecycleBin,baseVersion,compareVersion )); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRibbon504_801/bExport |
| | | Response OnClick () id:Response_PanelRibbon504_bExport_OnClick |
| | | { |
| | | #keys: '[414996.1.104721684]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | rows := selectset( dhTable.Data(),LocalRow,row,exists( dhFinelProduct.Data(),Elements,product,product.ID() = row.Name()) ); |
| | | columns := selectset( dhTable.Data( ),LocalColumn,column,true ); |
| | | LocalCell_OfflinePlanComparison::AsyncExport( RecycleBin, rows, columns, MacroPlan ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRibbon504_801/dhOfflinePlanTables |
| | | Response OnCreated () id:Response_PanelRibbon504_801_dhOfflinePlanTables_OnCreated_57 |
| | | { |
| | | #keys: '[414996.1.103241337]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | macroPlans := ApplicationMacroPlanner.GetMacroPlans(); |
| | | offlinePlanTables := selectset( macroPlans,Elements.OfflinePlanTable,table,true ); |
| | | traverse( macroPlans,Elements,element ){ |
| | | info( element.MDSID() ); |
| | | } |
| | | this.Data( &offlinePlanTables ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRibbon504_801/dhXMLDataListener |
| | | Response OnDataChanged () id:Response_PanelRibbon504_dhXMLDataListener_OnDataChanged_648 |
| | | { |
| | | #keys: '[414996.1.104721706]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | traverse( dhXMLDataListener.Data(),Elements,element ){ |
| | | binaryValue := element.Export(); |
| | | |
| | | Application.Download( element.Name() + "_" + DateTime::Now().Format( "YM2D2H2mmss" ) + ".xlsx", binaryValue.AsBinaryData() ); |
| | | |
| | | element.Delete(); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: 'ç产计ååæ´æ¥è¡¨' |
| | | Image: 'DOCUMENT_CENTER' |
| | | Title: 'ç产计ååæ´æ¥è¡¨' |
| | | ] |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'LocalTable' |
| | | Source: 'dhComparisonData' |
| | | Source: 'dhTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalRow.LocalCell.astype(LocalCell_ProductionComparison)' |
| | | ] |
| | |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'checkedProduct:QMacroPlanner::FormOfflinePlanComparison.dhFinelProduct' |
| | | FixedFilter: 'exists( checkedProduct,Elements,product,product.ID() = object.Name() )' |
| | | Source: 'dhComparisonData' |
| | | Source: 'dhTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalRow' |
| | | ] |
| | |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'startDate:QMacroPlanner::FormOfflinePlanComparison.dhStartDate;endDate:QMacroPlanner::FormOfflinePlanComparison.dhEndDate' |
| | | FixedFilter: 'not object.IsAttrbuteColumn() and startDate <= object.Date() and endDate > object.Date()' |
| | | Source: 'dhComparisonData' |
| | | Source: 'dhTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalColumn' |
| | | ] |
| | |
| | | Children: |
| | | [ |
| | | #child: MatrixEditor_988 |
| | | Component dhComparisonData |
| | | Component dhTable |
| | | { |
| | | #keys: '[412672.1.61940683]' |
| | | BaseType: 'WebDataHolder' |
| | |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component bExport id:bExport_298 |
| | | { |
| | | #keys: '[414996.1.108480376]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component dhXMLDataListener id:dhXMLDataListener_273 |
| | | { |
| | | #keys: '[414996.1.108480431]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[ExportXMLManager]*' |
| | | Children: |
| | | [ |
| | | Component DataExtractor510 id:DataExtractor510_384 |
| | | { |
| | | #keys: '[414996.1.108480432]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'RecycleBin' |
| | | FixedFilter: 'object.Name() = LocalCell_ProductionComparison::GetTableName()' |
| | | Source: 'RecycleBin' |
| | | Taborder: 0 |
| | | Transformation: 'ExportXMLManager' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_PanelDemandComparison_634_dhComparisonData_OnDataChanged.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelDemandComparison_634/dhComparisonData |
| | | Response OnDataChanged () id:Response_PanelDemandComparison_634_dhComparisonData_OnDataChanged |
| | | #parent: PanelDemandComparison_634/dhTable |
| | | Response OnDataChanged () id:Response_PanelDemandComparison_634_dhTable_OnDataChanged |
| | | { |
| | | #keys: '[412672.1.61940670]' |
| | | CanBindMultiple: false |
| | |
| | | [* |
| | | opt := ddlOfflinePlanTable.Data(); |
| | | |
| | | dhComparisonData.Data( opt.Comparison( RecycleBin,Archive )); |
| | | dhTable.Data( opt.Comparison( RecycleBin,Archive )); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRibbon504/bExport_298 |
| | | Response OnClick () id:Response_pOperaction_bExport_OnClick_891 |
| | | { |
| | | #keys: '[414996.1.108480375]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | rows := selectset( dhTable.Data(),LocalRow,row,exists( dhFinelProduct.Data(),Elements,product,product.ID() = row.Name()) ); |
| | | columns := selectset( dhTable.Data( ),LocalColumn,column,true ); |
| | | LocalCell_ProductionComparison::AsyncExport( RecycleBin, rows, columns, MacroPlan ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRibbon504/dhXMLDataListener_273 |
| | | Response OnDataChanged () id:Response_PanelRibbon504_dhXMLDataListener_OnDataChanged |
| | | { |
| | | #keys: '[414996.1.106110528]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | traverse( dhXMLDataListener.Data(),Elements,element ){ |
| | | binaryValue := element.Export(); |
| | | |
| | | Application.Download( element.Name() + "_" + DateTime::Now().Format( "YM2D2H2mmss" ) + ".xlsx", binaryValue.AsBinaryData() ); |
| | | |
| | | element.Delete(); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: '产éå¯¹æ¯æ¥è¡¨' |
| | | Image: 'DOCUMENT_INFO' |
| | | Title: '产éå¯¹æ¯æ¥è¡¨' |
| | | ] |
| | |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: PanelRibbon504 |
| | | #child: PanelRibbon322_88 |
| | | #child: PanelRibbon206_478 |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelRibbon206 id:PanelRibbon206_478 |
| | | { |
| | | #keys: '[414996.1.108919103]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component bExportTemplate |
| | | { |
| | | #keys: '[414996.1.108919104]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Label: 'å¯¼åºæ¨¡æ¿' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bImportOutput |
| | | { |
| | | #keys: '[414996.1.108919105]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'IMPORT1' |
| | | Label: '导å
¥' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | Title: 'output' |
| | | ] |
| | | } |
| | |
| | | Checked: true |
| | | Description: 'çæ¬¡' |
| | | Label: 'çæ¬¡' |
| | | Taborder: 0 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component cbWorkday |
| | |
| | | Checked: true |
| | | Description: '工使¥' |
| | | Label: '工使¥' |
| | | Taborder: 1 |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component cbCapacity |
| | |
| | | Checked: true |
| | | Description: '产è½' |
| | | Label: '产è½' |
| | | Taborder: 2 |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component cbOutput |
| | |
| | | Checked: true |
| | | Description: '产é' |
| | | Label: '产é' |
| | | Taborder: 3 |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | Component dsStartDate id:dsStartDate_438 |
| | |
| | | Properties: |
| | | [ |
| | | Label: 'Start Date' |
| | | Taborder: 4 |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component dhStartDate id:dhStartDate_891 |
| | |
| | | Databinding: 'Date*' |
| | | Properties: |
| | | [ |
| | | Taborder: 5 |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | | Component dsEndDate id:dsEndDate_963 |
| | |
| | | [ |
| | | Date: 9999-12-31 |
| | | Label: 'End Date' |
| | | Taborder: 6 |
| | | Taborder: 8 |
| | | ] |
| | | } |
| | | Component dhEndDate id:dhEndDate_384 |
| | |
| | | Databinding: 'Date*' |
| | | Properties: |
| | | [ |
| | | Taborder: 7 |
| | | Taborder: 9 |
| | | ] |
| | | } |
| | | Component bExport |
| | |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Taborder: 8 |
| | | Taborder: 10 |
| | | ] |
| | | } |
| | | Component dhXMLDataListener |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 9 |
| | | Taborder: 11 |
| | | ] |
| | | } |
| | | Component ButtonRibbon820 id:ButtonRibbon820_836 |
| | | { |
| | | #keys: '[414996.1.104721255]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'CreateFullTable' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component ButtonRibbon id:ButtonRibbon_338 |
| | | { |
| | | #keys: '[414996.1.104721297]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Create' |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
| | | ] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRibbon206_478/bExportTemplate |
| | | Response OnClick () id:Response_PanelRibbon206_478_bExportTemplate_OnClick |
| | | { |
| | | #keys: '[414996.1.108919102]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | data := MP_Cell_ScheduleSummary::ExportOutputTemplate( Date::ActualDate().Year() ); |
| | | |
| | | Application.Download( "产åºå¯¼å
¥æ¨¡æ¿.xlsx",data.AsBinaryData() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormScheduleSummaryReport/Response_PanelRibbon504_bImportOutput_OnClick.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRibbon504/bImportOutput |
| | | Response OnClick () id:Response_PanelRibbon504_bImportOutput_OnClick |
| | | #parent: PanelRibbon206_478/bImportOutput |
| | | Response OnClick () id:Response_PanelRibbon206_478_bImportOutput_OnClick |
| | | { |
| | | #keys: '[412672.1.96362099]' |
| | | #keys: '[414996.1.108919101]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormScheduleSummaryReport/Response_PanelRibbon504_ButtonRibbon820_OnClick.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRibbon504/ButtonRibbon820 |
| | | Response OnClick () id:Response_PanelRibbon504_ButtonRibbon820_OnClick |
| | | #parent: PanelRibbon322_88/ButtonRibbon820_836 |
| | | Response OnClick () id:Response_PanelRibbon504_ButtonRibbon820_OnClick_71 |
| | | { |
| | | #keys: '[412672.1.97441221]' |
| | | #keys: '[414996.1.104721254]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormScheduleSummaryReport/Response_PanelRibbon504_ButtonRibbon_OnClick.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRibbon504/ButtonRibbon |
| | | Response OnClick () id:Response_PanelRibbon504_ButtonRibbon_OnClick |
| | | #parent: PanelRibbon322_88/ButtonRibbon_338 |
| | | Response OnClick () id:Response_PanelRibbon504_ButtonRibbon_OnClick_88 |
| | | { |
| | | #keys: '[412672.1.94151032]' |
| | | #keys: '[414996.1.104721296]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | Component bDownload |
| | | { |
| | | #keys: '[412672.1.106502003]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'DOWNLOAD' |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component dhXMLDataListener |
| | | { |
| | | #keys: '[412672.1.106502023]' |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 7 |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | ] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pOperaction/dhXMLDataListener |
| | | Response OnDataChanged () id:Response_pOperaction_dhXMLDataListener_OnDataChanged |
| | | { |
| | | #keys: '[414996.1.108480536]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | traverse( dhXMLDataListener.Data(),Elements,element ){ |
| | | binaryValue := element.Export(); |
| | | |
| | | Application.Download( element.Name() + "_" + DateTime::Now().Format( "YM2D2H2mmss" ) + ".xlsx", binaryValue.AsBinaryData() ); |
| | | |
| | | element.Delete(); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |