已重命名3个文件
已添加17个文件
已修改36个文件
已删除46个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation ArchiveFile_Archive_Archive_ArchiveFile |
| | | { |
| | | #keys: '1[414996.1.137244656]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide Archive |
| | | { |
| | | #keys: '3[414996.1.137244658][414996.1.137244657][414996.1.137244659]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: ArchiveFile |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide ArchiveFile |
| | | { |
| | | #keys: '3[414996.1.137244661][414996.1.137244660][414996.1.137244662]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: Archive |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
| | |
| | | filePath := archiveFileJSON.Get( "fileFullPath" ).GetString(); |
| | | |
| | | if ( archiveType = "PR" ) { |
| | | apr := select( archive, ArchivePR, tempAPR, tempAPR.Name() = fileName ); |
| | | apr := select( archive, ArchiveFile.astype( ArchivePR ), tempAPR, tempAPR.Name() = fileName ); |
| | | if ( not isnull( apr ) ) { |
| | | apr.FilePath( filePath ); |
| | | } else { |
| | | archive.ArchivePR( relnew, Name := fileName, FilePath := filePath ); |
| | | archive.ArchiveFile( relnew,ArchivePR, Name := fileName, FilePath := filePath ); |
| | | } |
| | | } else if ( archiveType = "PP" ) { |
| | | app := select( archive, ArchivePP, tempAPP, tempAPP.Name() = fileName ); |
| | | app := select( archive, ArchiveFile.astype( ArchivePP ), tempAPP, tempAPP.Name() = fileName ); |
| | | if ( not isnull( app ) ) { |
| | | app.FilePath( filePath ); |
| | | } else { |
| | | archive.ArchivePP( relnew, Name := fileName, FilePath := filePath ); |
| | | archive.ArchiveFile( relnew,ArchivePP, Name := fileName, FilePath := filePath ); |
| | | } |
| | | } else if ( archiveType = "Budget" ) { |
| | | ab := select( archive, ArchiveBudget, tempAB, tempAB.Name() = fileName ); |
| | | ab := select( archive, ArchiveFile.astype( ArchiveBudget ), tempAB, tempAB.Name() = fileName ); |
| | | if ( not isnull( ab ) ) { |
| | | ab.FilePath( filePath ); |
| | | } else { |
| | | archive.ArchiveBudget( relnew, Name := fileName, FilePath := filePath ); |
| | | archive.ArchiveFile( relnew,ArchiveBudget, Name := fileName, FilePath := filePath ); |
| | | } |
| | | } else if ( archiveType = "PPA" ) { |
| | | // åæ¡£PPA |
| | | appa := select( archive, ArchivePPA, tempAPPA, tempAPPA.Name() = fileName ); |
| | | appa := select( archive, ArchiveFile.astype( ArchivePPA ), tempAPPA, tempAPPA.Name() = fileName ); |
| | | if ( not isnull( appa ) ) { |
| | | appa.FilePath( filePath ); |
| | | appa.SourceFileBinaryValue( ppaBinaryValue ); |
| | | } else { |
| | | archive.ArchivePPA( relnew, Name := fileName, FilePath := filePath, SourceFileBinaryValue := ppaBinaryValue ); |
| | | archive.ArchiveFile( relnew,ArchivePPA, Name := fileName, FilePath := filePath, SourceFileBinaryValue := ppaBinaryValue ); |
| | | } |
| | | |
| | | // åæ¡£Curve |
| | | ac := select( archive, ArchiveCurve, tempAC, true ); |
| | | ac := select( archive, ArchiveFile.astype( ArchiveCurve ), tempAC, true ); |
| | | if ( not isnull( ac ) ) { |
| | | ac.Delete(); |
| | | } |
| | | archive.ArchiveCurve( relnew, Name := "å§ç»åªåä¸ç.xlsx", FilePath := curveFileName, SourceFileBinaryValue := curveBinaryValue ); |
| | | archive.ArchiveFile( relnew,ArchiveCurve, Name := "å§ç»åªåä¸ç.xlsx", FilePath := curveFileName, SourceFileBinaryValue := curveBinaryValue ); |
| | | } |
| | | } |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type ArchiveBudget |
| | | TypeSpecialization ArchiveBudget |
| | | { |
| | | #keys: '5[413988.0.1193510071][413988.0.1193510069][0.0.0][413988.0.1193510070][413988.0.1193510072]' |
| | | BaseType: Object |
| | | #keys: '2[414996.1.137364727][413988.0.1193510069]' |
| | | Parent: ArchiveFile |
| | | StructuredName: 'ArchiveBudgets' |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type ArchiveCurve |
| | | TypeSpecialization ArchiveCurve |
| | | { |
| | | #keys: '5[413988.0.1193510144][413988.0.1193510142][0.0.0][413988.0.1193510143][413988.0.1193510145]' |
| | | BaseType: Object |
| | | #keys: '2[414996.1.137364732][413988.0.1193510142]' |
| | | Parent: ArchiveFile |
| | | StructuredName: 'ArchiveCurves' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DateTime |
| | | { |
| | | #keys: '3[414996.1.137244673][414996.1.137244672][414996.1.137244674]' |
| | | ValueType: DateTime |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute FilePath |
| | | { |
| | | #keys: '3[414996.1.137244676][414996.1.137244675][414996.1.137244677]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Name |
| | | { |
| | | #keys: '3[414996.1.137244679][414996.1.137244678][414996.1.137244680]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute UserName |
| | | { |
| | | #keys: '3[414996.1.137244670][414996.1.137244669][414996.1.137244671]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type ArchiveFile |
| | | { |
| | | #keys: '5[414996.1.137244653][414996.1.137244651][0.0.0][414996.1.137244652][414996.1.137244654]' |
| | | BaseType: Object |
| | | OnCreate: 'this.DateTime( DateTime::Now() );' |
| | | OnDelete: |
| | | [* |
| | | OS::RemoveFile( this.FilePath() ); |
| | | *] |
| | | StructuredName: 'ArchiveFiles' |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type ArchiveIDS |
| | | TypeSpecialization ArchiveIDS |
| | | { |
| | | #keys: '5[413988.0.1193510179][413988.0.1193510177][0.0.0][413988.0.1193510178][413988.0.1193510180]' |
| | | BaseType: Object |
| | | #keys: '2[414996.1.137364717][413988.0.1193510177]' |
| | | Parent: ArchiveFile |
| | | StructuredName: 'ArchiveIDSs' |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type ArchivePP |
| | | TypeSpecialization ArchivePP |
| | | { |
| | | #keys: '5[413988.0.1193510109][413988.0.1193510107][0.0.0][413988.0.1193510108][413988.0.1193510110]' |
| | | BaseType: Object |
| | | #keys: '2[414996.1.137364707][413988.0.1193510107]' |
| | | Parent: ArchiveFile |
| | | StructuredName: 'ArchivePPs' |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type ArchivePPA |
| | | TypeSpecialization ArchivePPA |
| | | { |
| | | #keys: '5[413988.0.1174013542][413988.0.1174013540][0.0.0][413988.0.1174013541][413988.0.1174013543]' |
| | | BaseType: Object |
| | | #keys: '2[414996.1.137364700][413988.0.1174013540]' |
| | | Parent: ArchiveFile |
| | | StructuredName: 'ArchivePPAs' |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type ArchivePR |
| | | TypeSpecialization ArchivePR |
| | | { |
| | | #keys: '5[413988.0.1179741542][413988.0.1179741540][0.0.0][413988.0.1179741541][413988.0.1179741543]' |
| | | BaseType: Object |
| | | #keys: '2[414996.1.137244682][413988.0.1179741540]' |
| | | Parent: ArchiveFile |
| | | StructuredName: 'ArchivePRs' |
| | | } |
| | |
| | | OS::CreateDirectory( filePath ); |
| | | |
| | | macroPlan := salesSegment.MacroPlan(); |
| | | ac := select( archive, ArchiveCurve, tempAC, true ); |
| | | ac := select( archive, ArchiveFile.astype( ArchiveCurve ), tempAC, true ); |
| | | |
| | | pathCurve := filePath + ac.Name(); |
| | | Archive::WriteTempFile( pathCurve, ac.SourceFileBinaryValue() ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod ComparedNew ( |
| | | RecycleBin recycleBin, |
| | | const NewOfflinePlanTable baseOfflinePlan, |
| | | const NewOfflinePlanTable compareOfflinePlan |
| | | ) as LocalTable |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-20-2024 (created) |
| | | table := recycleBin.LocalTable( relnew,Name := LocalCell_OfflinePlanComparison::GetTableName()); |
| | | |
| | | localColumns := construct( LocalColumns ); |
| | | localColumnIndexTree := NamedValueTree::Create(); |
| | | traverse( baseOfflinePlan,NewOfflinePlanColumn,column,column.StartDate() >= baseOfflinePlan.MacroPlan().StartOfPlanning().Date()){ |
| | | localColumnHandle := localColumnIndexTree.GetHandle( column.StartDate().AsQUILL() ); |
| | | localColumnIndex := guard( localColumnIndexTree.Root().Child( localColumnHandle ),null( NamedValue )); |
| | | if( isnull( localColumnIndex )){ |
| | | localColumn := table.LocalColumn( relnew,CustomDate := column.StartDate()); |
| | | localColumns.Add( localColumn ); |
| | | localColumnIndexTree.Root().AddChild( localColumnHandle,localColumns.Size() - 1 ); |
| | | } |
| | | } |
| | | traverse( compareOfflinePlan,NewOfflinePlanColumn,column,column.StartDate() >= compareOfflinePlan.MacroPlan().StartOfPlanning().Date()){ |
| | | localColumnHandle := localColumnIndexTree.GetHandle( column.StartDate().AsQUILL() ); |
| | | localColumnIndex := guard( localColumnIndexTree.Root().Child( localColumnHandle ),null( NamedValue )); |
| | | if( isnull( localColumnIndex )){ |
| | | localColumn := table.LocalColumn( relnew,CustomDate := column.StartDate()); |
| | | localColumns.Add( localColumn ); |
| | | localColumnIndexTree.Root().AddChild( localColumnHandle,localColumns.Size() - 1 ); |
| | | } |
| | | } |
| | | |
| | | baseOfflinePlanCells := construct( NewOfflinePlanCells, constcontent ); |
| | | baseOfflinePlanCellIndexTree := NamedValueTree::Create(); |
| | | compareOfflinePlanCells := construct( NewOfflinePlanCells, constcontent ); |
| | | compareOfflinePlanCellIndexTree := NamedValueTree::Create(); |
| | | |
| | | localRows := construct( LocalRows ); |
| | | localRowIndexTree := NamedValueTree::Create(); |
| | | |
| | | traverse( baseOfflinePlan,NewOfflinePlanRow,row,row.Type() = "1" ){ |
| | | rowKey := row.ProductID() + "@$#" + row.ProductionLine()+ "@$#"; |
| | | localRowHandle := localRowIndexTree.GetHandle( rowKey ); |
| | | localRowIndex := guard( localRowIndexTree.Root().Child( localRowHandle ),null( NamedValue )); |
| | | if( isnull( localRowIndex )){ |
| | | localRow := table.LocalRow( relnew,Index := table.GetRowIndexCache(),CustomName := row.ProductID(),Remark := rowKey ); |
| | | localRows.Add( localRow ); |
| | | localRowIndexTree.Root().AddChild( localRowHandle,localRows.Size() - 1 ); |
| | | } |
| | | traverse( row,NewOfflinePlanCell,cell ){ |
| | | columnKey := cell.NewOfflinePlanColumn().StartDate().AsQUILL(); |
| | | cellKey := rowKey + columnKey; |
| | | cellHandle := baseOfflinePlanCellIndexTree.GetHandle( cellKey ); |
| | | baseOfflinePlanCells.Add( cell ); |
| | | baseOfflinePlanCellIndexTree.Root().AddChild( cellHandle,baseOfflinePlanCells.Size() - 1 ); |
| | | } |
| | | } |
| | | traverse( compareOfflinePlan,NewOfflinePlanRow,row,row.Type() = "1" ){ |
| | | rowKey := row.ProductID() + "@$#" + row.ProductionLine()+ "@$#"; |
| | | localRowHandle := localRowIndexTree.GetHandle( rowKey ); |
| | | localRowIndex := guard( localRowIndexTree.Root().Child( localRowHandle ),null( NamedValue )); |
| | | if( isnull( localRowIndex )){ |
| | | localRow := table.LocalRow( relnew,Index := table.GetRowIndexCache(),CustomName := row.ProductID(),Remark := rowKey ); |
| | | localRows.Add( localRow ); |
| | | localRowIndexTree.Root().AddChild( localRowHandle,localRows.Size() - 1 ); |
| | | } |
| | | traverse( row,NewOfflinePlanCell,cell ){ |
| | | columnKey := cell.NewOfflinePlanColumn().StartDate().AsQUILL(); |
| | | cellHandle := compareOfflinePlanCellIndexTree.GetHandle( rowKey + columnKey ); |
| | | compareOfflinePlanCells.Add( cell ); |
| | | compareOfflinePlanCellIndexTree.Root().AddChild( cellHandle,compareOfflinePlanCells.Size() - 1 ); |
| | | } |
| | | } |
| | | |
| | | traverse( localRows,Elements,localRow ){ |
| | | rowKey := localRow.Remark(); |
| | | traverse( localColumns,Elements,localColumn ){ |
| | | columnKey := localColumn.CustomDate().AsQUILL(); |
| | | cellKey := rowKey + columnKey; |
| | | |
| | | baseOfflinePlanCell := constnull( NewOfflinePlanCell ); |
| | | compareOfflinePlanCell := constnull( NewOfflinePlanCell ); |
| | | baseOfflinePlanCellIndex := guard( baseOfflinePlanCellIndexTree.Root().Child( baseOfflinePlanCellIndexTree.GetHandle( cellKey ) ),null( NamedValue )); |
| | | compareOfflinePlanCellIndex := guard( compareOfflinePlanCellIndexTree.Root().Child( compareOfflinePlanCellIndexTree.GetHandle( cellKey ) ),null( NamedValue )); |
| | | if( not isnull( baseOfflinePlanCellIndex )){ |
| | | baseOfflinePlanCell := baseOfflinePlanCells.Element( baseOfflinePlanCellIndex.GetValueAsNumber() ); |
| | | } |
| | | if( not isnull( compareOfflinePlanCellIndex )){ |
| | | compareOfflinePlanCell := compareOfflinePlanCells.Element( compareOfflinePlanCellIndex.GetValueAsNumber() ); |
| | | } |
| | | |
| | | localRow.LocalCell( relnew,LocalCell_OfflinePlanComparison,LocalColumn := localColumn, |
| | | BaseVersion := ifexpr( isnull( baseOfflinePlanCell),0.0,baseOfflinePlanCell.Quantity()), |
| | | CompareVersion := ifexpr( isnull( compareOfflinePlanCell),0.0,compareOfflinePlanCell.Quantity())); |
| | | } |
| | | } |
| | | traverse( table,LocalColumn,column ){ |
| | | if( column.LocalCell( relsize ) = 0 ){ |
| | | column.Delete(); |
| | | } |
| | | } |
| | | |
| | | return table; |
| | | *] |
| | | } |
| | |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Aug-6-2024 (created) |
| | | // rislai Aug-6-2024 (created) |
| | | table := select( owner,MP_Table,table,table.Name() = MP_Cell_ScheduleSummary::GetTableName() ); |
| | | if( not isnull( table )){ |
| | | table.Delete(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Comparison ( |
| | | RecycleBin recycleBin, |
| | | const Archive archive |
| | | ) as LocalTable |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jul-17-2024 (created) |
| | | macroPlan := this.MacroPlan(); |
| | | table := recycleBin.LocalTable( relnew,Name := LocalCell_ProductionComparison::GetTableName()); |
| | | |
| | | actualDailyProductionDatas := selectset( archive,ActualDailyProductionData,data,true ); |
| | | actualDailyProductionDataIndexTree := NamedValueTree::Create(); |
| | | for( i := 0; i< actualDailyProductionDatas.Size(); i++ ){ |
| | | actualDailyProductionData := actualDailyProductionDatas.Element( i ); |
| | | actualDailyProductionDataKey := actualDailyProductionData.ProductNo() + actualDailyProductionData.ProductionDate().AsQUILL(); |
| | | actualDailyProductionDataHandle := actualDailyProductionDataIndexTree.GetHandle( actualDailyProductionDataKey ); |
| | | actualDailyProductionDataIndexTree.Root().AddChild( actualDailyProductionDataHandle,i ); |
| | | } |
| | | |
| | | localColumns := construct( LocalColumns ); |
| | | localColumnIndexTree := NamedValueTree::Create(); |
| | | traverse( this,NewOfflinePlanColumn,column,column.StartDate() >= macroPlan.StartOfPlanning().Date()){ |
| | | localColumn := table.LocalColumn( relnew,CustomDate := column.StartDate()); |
| | | localColumnHandle := localColumnIndexTree.GetHandle( column.StartDate().AsQUILL() ); |
| | | localColumns.Add( localColumn ); |
| | | localColumnIndexTree.Root().AddChild( localColumnHandle,localColumns.Size() - 1 ); |
| | | } |
| | | |
| | | traverse( this,NewOfflinePlanRow,row,row.Type() = "1" ){ |
| | | productID := row.ProductID(); |
| | | // productLine := row.ProductionLine(); |
| | | localRow := table.LocalRow( relnew,Index := table.GetRowIndexCache(),CustomName := productID ); |
| | | traverse( row,NewOfflinePlanCell,cell,cell.NewOfflinePlanColumn().StartDate() >= macroPlan.StartOfPlanning().Date() ){ |
| | | localColumnHandle := localColumnIndexTree.GetHandle( cell.NewOfflinePlanColumn().StartDate().AsQUILL() ); |
| | | localColumnIndex := guard( localColumnIndexTree.Root().Child( localColumnHandle ),null( NamedValue )); |
| | | if( not isnull( localColumnIndex )){ |
| | | actualDailyProductionDataKey := productID + cell.NewOfflinePlanColumn().StartDate().AsQUILL(); |
| | | actualDailyProductionDataHandle := actualDailyProductionDataIndexTree.GetHandle( actualDailyProductionDataKey ); |
| | | actualDailyProductionDataIndex := guard( actualDailyProductionDataIndexTree.Root().Child( actualDailyProductionDataHandle ),null( NamedValue )); |
| | | |
| | | actualDailyProductionVolume := 0.0; |
| | | if( not isnull( actualDailyProductionDataIndex )){ |
| | | actualDailyProductionData := actualDailyProductionDatas.Element( actualDailyProductionDataIndex.GetValueAsNumber() ); |
| | | actualDailyProductionVolume := actualDailyProductionData.ActualOut(); |
| | | } |
| | | localColumn := localColumns.Element( localColumnIndex.GetValueAsNumber() ); |
| | | localRow.LocalCell( relnew,LocalCell_ProductionComparison ,LocalColumn := localColumn, |
| | | Plan := cell.Quantity(),Actual := actualDailyProductionVolume ); |
| | | } |
| | | } |
| | | } |
| | | traverse( table,LocalColumn,column ){ |
| | | if( column.LocalCell( relsize ) = 0 ){ |
| | | 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; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Function CalcTableName |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Oct-15-2024 (created) |
| | | |
| | | value := this.TableSaveTime().Format( "Y-M2-D2 H:m:s" ) |
| | | |
| | | this.TableName( value ); |
| | | *] |
| | | } |
| | |
| | | name := macroPlan.MDSMacroPlan().Description(); |
| | | |
| | | traverse( macroPlan,OfflinePlanTable,offlinePlanTable ){ |
| | | owner.OfflinePlanTableInfo( relnew,MacroPlanName := name,TableName := offlinePlanTable.SaveDateTime().Format( "Y-M2-D2 H:m:s" ),MacroPlanMDSID := mdsid ,TableSaveTime := offlinePlanTable.SaveDateTime()); |
| | | owner.OfflinePlanTableInfo( relnew,MacroPlanName := name,MacroPlanMDSID := mdsid ,TableSaveTime := offlinePlanTable.SaveDateTime()); |
| | | } |
| | | } |
| | | info( owner.OfflinePlanTableInfo( relsize ) ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CreateNew ( |
| | | const constcontent MacroPlans macroPlans, |
| | | RecycleBin owner |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Oct-14-2024 (created) |
| | | owner.OfflinePlanTableInfo( relflush ); |
| | | info( macroPlans.Size() ); |
| | | traverse( macroPlans,Elements,macroPlan ){ |
| | | mdsid := macroPlan.MDSID(); |
| | | name := macroPlan.MDSMacroPlan().Description(); |
| | | |
| | | traverse( macroPlan,NewOfflinePlanTable,offlinePlanTable ){ |
| | | owner.OfflinePlanTableInfo( relnew,MacroPlanName := name,MacroPlanMDSID := mdsid ,TableSaveTime := offlinePlanTable.SaveDateTime()); |
| | | } |
| | | } |
| | | info( owner.OfflinePlanTableInfo( relsize ) ); |
| | | *] |
| | | } |
| | |
| | | DataType: 'Archive' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchivePPA' |
| | | Transformation: 'ArchiveFile.astype( ArchivePPA )' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | dhLocalOriginalFileNameCurve.Data( guard( dhOriginalFileNameCurve.Data(), "" ) ); |
| | | |
| | | // æ¿æ¢å
¨å±Curve为ä¸ä¸çCurve |
| | | previousAC := select( Archive, ArchiveCurve, tempAC, true ); |
| | | previousAC := select( Archive, ArchiveFile.astype( ArchiveCurve ), tempAC, true ); |
| | | dhBinaryDataCurve.Data( BinaryData::FromBase64EncodedString( previousAC.SourceFileBinaryValue().AsBase64EncodedString() ) ); |
| | | dhOriginalFileNameCurve.Data( previousAC.Name() ); |
| | | } else { |
| | |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component ButtonClearFilter id:ButtonClearFilter_414 |
| | | { |
| | | #keys: '[414996.1.137702887]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'Clear' |
| | | Taborder: 8 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[OfflinePlanTableInfo]' |
| | | Source: 'dhOfflinePlanTables' |
| | | DataType: 'RecycleBin' |
| | | Source: 'RecycleBin' |
| | | Taborder: 0 |
| | | Transformation: 'Elements' |
| | | Transformation: 'OfflinePlanTableInfo' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[OfflinePlanTableInfo]' |
| | | Source: 'dhOfflinePlanTables' |
| | | DataType: 'RecycleBin' |
| | | Source: 'RecycleBin' |
| | | Taborder: 0 |
| | | Transformation: 'Elements' |
| | | Transformation: 'OfflinePlanTableInfo' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component dhOfflinePlanTables |
| | | { |
| | | #keys: '[414996.1.103241339]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[OfflinePlanTableInfo]*' |
| | | Children: |
| | | [ |
| | | Component deOfflinePlanTables |
| | | { |
| | | #keys: '[414996.1.124700546]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'RecycleBin' |
| | | Source: 'RecycleBin' |
| | | Taborder: 0 |
| | | Transformation: 'OfflinePlanTableInfo' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component bExport |
| | | { |
| | | #keys: '[414996.1.104721685]' |
| | |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Taborder: 5 |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component dhXMLDataListener |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component ButtonRibbon |
| | | { |
| | | #keys: '[414996.1.125429607]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'å·æ°ä¸ææ¡' |
| | | Taborder: 3 |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | ] |
| | |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | macroPlans := ApplicationMacroPlanner.GetMacroPlans(); |
| | | OfflinePlanTableInfo::CreateNew( macroPlans,RecycleBin ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelFilter/ButtonClearFilter_414 |
| | | Response OnClick () id:Response_PanelFilter_119_ButtonClearFilter_OnClick_466 |
| | | { |
| | | #keys: '[414996.1.137702886]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | ddslGeneration.Text( "<All>" ); |
| | | ddslMQBMLB.Text( "<All>" ); |
| | | ddslPower.Text( "<All>" ) |
| | | dhFinelProduct.Data( DataHolderProduct.Data().Copy() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | products := dhCheckedProduct.Data().Copy(); |
| | | products := dhFinelProduct.Data().Copy(); |
| | | if( ddslGeneration.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Generation() <> ddslGeneration.Text()); |
| | | products := selectset( products,Elements,element,element.Generation() = ddslGeneration.Text()); |
| | | } |
| | | if( ddslMQBMLB.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.MQBMLB() <> ddslMQBMLB.Text()); |
| | | products := selectset( products,Elements,element,element.MQBMLB() = ddslMQBMLB.Text()); |
| | | } |
| | | if( ddslPower.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Power() <> ddslPower.Text()); |
| | | products := selectset( products,Elements,element,element.Power() = ddslPower.Text()); |
| | | } |
| | | dhFinelProduct.Data( &products ); |
| | | *] |
| | |
| | | [* |
| | | baseOfflineTableInfo := ddlBaseOfflinePlanTable.Data(); |
| | | baseMacroPlan := ApplicationMacroPlanner.GetMacroPlanByMDSID( baseOfflineTableInfo ); |
| | | baseVersion := select( baseMacroPlan ,OfflinePlanTable,table,table.SaveDateTime() = baseOfflineTableInfo.TableSaveTime() ); |
| | | baseVersion := select( baseMacroPlan ,NewOfflinePlanTable,table,table.SaveDateTime() = baseOfflineTableInfo.TableSaveTime() ); |
| | | |
| | | compareOfflineTableInfo := ddlCompareOfflinePlanTable.Data(); |
| | | compareMacroPlan := ApplicationMacroPlanner.GetMacroPlanByMDSID( compareOfflineTableInfo ); |
| | | compareVersion := select( compareMacroPlan ,OfflinePlanTable,table,table.SaveDateTime() = compareOfflineTableInfo.TableSaveTime() ); |
| | | compareVersion := select( compareMacroPlan ,NewOfflinePlanTable,table,table.SaveDateTime() = compareOfflineTableInfo.TableSaveTime() ); |
| | | |
| | | dhTable.Data( LocalCell_OfflinePlanComparison::Compared( RecycleBin,baseVersion,compareVersion )); |
| | | dhTable.Data( LocalCell_OfflinePlanComparison::ComparedNew( RecycleBin,baseVersion,compareVersion )); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Label: 'å¼å§å¯¹æ¯' |
| | | Taborder: 3 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dhXMLDataListener id:dhXMLDataListener_906 |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component bExport id:bExport_98 |
| | |
| | | Image: 'EXPORT1' |
| | | Label: '导åº' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bDownload id:bDownload_352 |
| | | { |
| | | #keys: '[412672.0.1109203542]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'DOWNLOAD' |
| | | Label: 'ä¸è½½' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | #child: pVersionInfomation |
| | |
| | | DataType: 'Archive' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchiveBudget' |
| | | Transformation: 'ArchiveFile.astype( ArchiveBudget )' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | FixedFilter: 'object.Filter( baseSelection,dateUnit )' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchiveBudget' |
| | | Transformation: 'ArchiveFile.astype( ArchiveBudget )' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | DataType: 'Archive' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchiveCurve' |
| | | Transformation: 'ArchiveFile.astype(ArchiveCurve)' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | FixedFilter: 'object <> baseSelection' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchiveCurve' |
| | | Transformation: 'ArchiveFile.astype( ArchiveCurve )' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | DataType: 'Archive' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchiveIDS' |
| | | Transformation: 'ArchiveFile.astype( ArchiveIDS )' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | FixedFilter: 'object <> baseSelection' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchiveIDS' |
| | | Transformation: 'ArchiveFile.astype( ArchiveIDS )' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | DataType: 'Archive' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchivePP' |
| | | Transformation: 'ArchiveFile.astype( ArchivePP )' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | FixedFilter: 'object.Filter( baseSelection,dateUnit )' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchivePP' |
| | | Transformation: 'ArchiveFile.astype( ArchivePP )' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | DataType: 'Archive' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchivePPA' |
| | | Transformation: 'ArchiveFile.astype( ArchivePPA )' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | FixedFilter: 'object <> baseSelection' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchivePPA' |
| | | Transformation: 'ArchiveFile.astype( ArchivePPA )' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | DataType: 'Archive' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchivePR' |
| | | Transformation: 'ArchiveFile.astype(ArchivePR)' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | FixedFilter: 'object <> baseSelection' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchivePR' |
| | | Transformation: 'ArchiveFile.astype(ArchivePR)' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component dhBaseVersionPath id:dhBaseVersionPath_640 |
| | | #child: pVersionInfomationBase |
| | | #child: pVersionInfomationCompare |
| | | Component dhCompareVersion |
| | | { |
| | | #keys: '[412672.0.1119852775]' |
| | | #keys: '[414996.1.137780879]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'String*' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dhCompareVersionPath id:dhCompareVersionPath_582 |
| | | { |
| | | #keys: '[412672.0.1119852802]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'String*' |
| | | Databinding: 'ArchiveFile' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component lBaseVersionName |
| | | Component dhBaseVersion |
| | | { |
| | | #keys: '[412672.0.1119853064]' |
| | | BaseType: 'WebLabel' |
| | | #keys: '[414996.1.137780892]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'ArchiveFile' |
| | | Properties: |
| | | [ |
| | | Label: 'åºåéæ±çæ¬ï¼' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component lCompareVersionName |
| | | { |
| | | #keys: '[412672.0.1119853066]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: '对æ¯éæ±çæ¬ï¼' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | Taborder: 3 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pVersionInfomationBase |
| | | { |
| | | #keys: '[414996.1.137700459]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lBaseVersionName id:lBaseVersionName_774 |
| | | { |
| | | #keys: '[414996.1.137700529]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'dhBaseVersion.Data.Name' |
| | | Label: 'åºåéæ±çæ¬ï¼' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component ButtonDelete |
| | | { |
| | | #keys: '[414996.1.137420506]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'DELETE' |
| | | Label: 'Delete' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component pVersionInfomationCompare |
| | | { |
| | | #keys: '[414996.1.137700548]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lCompareVersionName id:lCompareVersionName_456 |
| | | { |
| | | #keys: '[414996.1.137700586]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'dhCompareVersion.Data.Name' |
| | | Label: '对æ¯éæ±çæ¬ï¼' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component ButtonDelete2 |
| | | { |
| | | #keys: '[414996.1.137740415]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'DELETE' |
| | | Label: 'Delete' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | |
| | | [* |
| | | products := dhFinelProduct.Data().Copy(); |
| | | if( ddslGeneration.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Generation() <> ddslGeneration.Text()); |
| | | products := selectset( products,Elements,element,element.Generation() = ddslGeneration.Text()); |
| | | } |
| | | if( ddslMQBMLB.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.MQBMLB() <> ddslMQBMLB.Text()); |
| | | products := selectset( products,Elements,element,element.MQBMLB() = ddslMQBMLB.Text()); |
| | | } |
| | | if( ddslPower.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Power() <> ddslPower.Text()); |
| | | products := selectset( products,Elements,element,element.Power() = ddslPower.Text()); |
| | | } |
| | | dhFinelProduct.Data( &products ); |
| | | *] |
| | |
| | | #keys: '[412672.0.1111643148]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return isnull( dhBaseVersion.Data() ) or isnull( dhCompareVersion.Data() ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | |
| | | table := LocalCell_DemandComparison::Compared( RecycleBin,MacroPlan, dhBaseVersionPath.Data(),dhCompareVersionPath.Data(),lBaseVersionName.Text(),lCompareVersionName.Text() ); |
| | | table := LocalCell_DemandComparison::Compared( RecycleBin,MacroPlan, dhBaseVersion.Data().FilePath(),dhCompareVersion.Data().FilePath(),lBaseVersionName.Text(),lCompareVersionName.Text() ); |
| | | dhComparisonData.Data( table ); |
| | | *] |
| | | GroupServerCalls: false |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelOperation_568/dhXMLDataListener_906 |
| | | Response OnDataChanged () id:Response_PanelOperation_568_dhXMLDataListener_OnDataChanged |
| | | { |
| | | #keys: '[414996.1.135031114]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | binaryValue := dhXMLDataListener.Data( ).Export(); |
| | | |
| | | Application.Download( LocalCell_DemandComparison::GetTableName() + "_" + DateTime::Now().Format( "YM2D2H2mmss" ) + ".xlsx", binaryValue.AsBinaryData() ); |
| | | |
| | | dhXMLDataListener.Data( ).Delete(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( CheckboxBudget.Checked() ){ |
| | | dhBaseVersionPath.Data( DropDownListBaseVersionBudget.Data().FilePath() ); |
| | | lBaseVersionName.Text( DropDownListBaseVersionBudget.Data().Name() ); |
| | | dhCompareVersionPath.Data( DropDownListCompareVersionBudget.Data().FilePath() ); |
| | | lCompareVersionName.Text( DropDownListCompareVersionBudget.Data().Name() ); |
| | | dhBaseVersion.Data( DropDownListBaseVersionBudget.Data() ); |
| | | dhCompareVersion.Data( DropDownListCompareVersionBudget.Data() ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( CheckboxCurve.Checked() ){ |
| | | dhBaseVersionPath.Data( DropDownListBaseVersionCurve.Data().FilePath() ); |
| | | lBaseVersionName.Text( DropDownListBaseVersionCurve.Data().Name() ); |
| | | dhCompareVersionPath.Data( DropDownListCompareVersionCurve.Data().FilePath() ); |
| | | lCompareVersionName.Text( DropDownListCompareVersionCurve.Data().Name() ); |
| | | dhBaseVersion.Data( DropDownListBaseVersionCurve.Data() ); |
| | | dhCompareVersion.Data( DropDownListCompareVersionCurve.Data() ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( CheckboxIDS.Checked() ){ |
| | | dhBaseVersionPath.Data( DropDownListBaseVersionIDS.Data().FilePath() ); |
| | | lBaseVersionName.Text( DropDownListBaseVersionIDS.Data().Name() ); |
| | | dhCompareVersionPath.Data( DropDownListCompareVersionIDS.Data().FilePath() ); |
| | | lCompareVersionName.Text( DropDownListCompareVersionIDS.Data().Name() ); |
| | | dhBaseVersion.Data( DropDownListBaseVersionIDS.Data() ); |
| | | dhCompareVersion.Data( DropDownListCompareVersionIDS.Data() ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( CheckboxPPA.Checked() ){ |
| | | dhBaseVersionPath.Data( DropDownListBaseVersionPPA.Data().FilePath() ); |
| | | lBaseVersionName.Text( DropDownListBaseVersionPPA.Data().Name() ); |
| | | dhCompareVersionPath.Data( DropDownListCompareVersionPPA.Data().FilePath() ); |
| | | lCompareVersionName.Text( DropDownListCompareVersionPPA.Data().Name() ); |
| | | dhBaseVersion.Data( DropDownListBaseVersionPPA.Data() ); |
| | | dhCompareVersion.Data( DropDownListCompareVersionPPA.Data() ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( CheckboxPP.Checked() ){ |
| | | dhBaseVersionPath.Data( DropDownListBaseVersionPP.Data().FilePath() ); |
| | | lBaseVersionName.Text( DropDownListBaseVersionPP.Data().Name() ); |
| | | dhCompareVersionPath.Data( DropDownListCompareVersionPP.Data().FilePath() ); |
| | | lCompareVersionName.Text( DropDownListCompareVersionPP.Data().Name() ); |
| | | dhBaseVersion.Data( DropDownListBaseVersionPP.Data() ); |
| | | dhCompareVersion.Data( DropDownListCompareVersionPP.Data() ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( CheckboxPR.Checked() ){ |
| | | dhBaseVersionPath.Data( DropDownListBaseVersionPR.Data().FilePath() ); |
| | | lBaseVersionName.Text( DropDownListBaseVersionPR.Data().Name() ); |
| | | dhCompareVersionPath.Data( DropDownListCompareVersionPR.Data().FilePath() ); |
| | | lCompareVersionName.Text( DropDownListCompareVersionPR.Data().Name() ); |
| | | dhBaseVersion.Data( DropDownListBaseVersionPR.Data() ); |
| | | dhCompareVersion.Data( DropDownListCompareVersionPR.Data() ); |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pVersionInfomationBase/ButtonDelete |
| | | Response OnClick () id:Response_pVersionInfomationBase_ButtonDelete_OnClick |
| | | { |
| | | #keys: '[414996.1.137612795]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( WebMessageBox::Question( Translations::MessageBox_ConfirmDeletion( dhBaseVersion.Name() ),Translations::MessageBox_YesNo() ) = 0 ){ |
| | | dhBaseVersion.Data().Delete(); |
| | | } |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pVersionInfomationCompare/ButtonDelete2 |
| | | Response OnClick () id:Response_pVersionInfomationCompare_ButtonDelete2_OnClick |
| | | { |
| | | #keys: '[414996.1.137612881]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( WebMessageBox::Question( Translations::MessageBox_ConfirmDeletion( dhBaseVersion.Name() ),Translations::MessageBox_YesNo() ) = 0 ){ |
| | | dhCompareVersion.Data().Delete(); |
| | | } |
| | | *] |
| | | } |
| | | } |
| | |
| | | { |
| | | #keys: '[412672.1.64850982]' |
| | | BaseType: 'WebDropDownList' |
| | | Databinding: 'OfflinePlanTable' |
| | | Databinding: 'OfflinePlanTableInfo' |
| | | Children: |
| | | [ |
| | | Component DataExtractorRibbon |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | DataType: 'RecycleBin' |
| | | Source: 'RecycleBin' |
| | | Taborder: 0 |
| | | Transformation: 'OfflinePlanTable' |
| | | Transformation: 'OfflinePlanTableInfo' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | DisplayField: 'SaveDateTime' |
| | | DisplayField: 'TableName' |
| | | Label: 'ä¸çº¿è®¡å:' |
| | | Taborder: 0 |
| | | ] |
| | |
| | | Properties: |
| | | [ |
| | | DataBinding: 'ddlOfflinePlanTable.Data.SaveDateTime' |
| | | Taborder: 2 |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component bExport id:bExport_298 |
| | |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Taborder: 3 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dhXMLDataListener id:dhXMLDataListener_273 |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Response OnCreated () id:Response_FormOfflinePlanComparison_OnCreated |
| | | { |
| | | #keys: '[414996.1.137702202]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | macroPlans := ApplicationMacroPlanner.GetMacroPlans(); |
| | | OfflinePlanTableInfo::CreateNew( macroPlans,RecycleBin ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | [* |
| | | products := dhFinelProduct.Data().Copy(); |
| | | if( ddslGeneration.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Generation() <> ddslGeneration.Text()); |
| | | products := selectset( products,Elements,element,element.Generation() = ddslGeneration.Text()); |
| | | } |
| | | if( ddslMQBMLB.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.MQBMLB() <> ddslMQBMLB.Text()); |
| | | products := selectset( products,Elements,element,element.MQBMLB() = ddslMQBMLB.Text()); |
| | | } |
| | | if( ddslPower.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Power() <> ddslPower.Text()); |
| | | products := selectset( products,Elements,element,element.Power() = ddslPower.Text()); |
| | | } |
| | | dhFinelProduct.Data( &products ); |
| | | *] |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | opt := ddlOfflinePlanTable.Data(); |
| | | offlineTableInfo := ddlOfflinePlanTable.Data(); |
| | | macroPlan := ApplicationMacroPlanner.GetMacroPlanByMDSID( offlineTableInfo ); |
| | | opt := select( macroPlan ,NewOfflinePlanTable,table,table.SaveDateTime() = offlineTableInfo.TableSaveTime() ); |
| | | |
| | | |
| | | dhTable.Data( opt.Comparison( RecycleBin,Archive )); |
| | | *] |