Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev-zlg
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Relation CustomerDemandIDS_InterfaceDataset_InterfaceDataset_CustomerDemandIDS | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '1[415136.0.1109686108]' | 
|---|
|  |  |  | DefaultRelationStrategy | 
|---|
|  |  |  | { | 
|---|
|  |  |  | } | 
|---|
|  |  |  | RelationSide.LeftSide InterfaceDataset | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[415136.0.1109686110][415136.0.1109686109][415136.0.1109686111]' | 
|---|
|  |  |  | Cardinality: '0to1' | 
|---|
|  |  |  | ObjectDefinition: CustomerDemandIDS | 
|---|
|  |  |  | OwningSide: 'Reference' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | RelationSide.RightSide CustomerDemandIDS | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[415136.0.1109686113][415136.0.1109686112][415136.0.1109686114]' | 
|---|
|  |  |  | Cardinality: '1toN' | 
|---|
|  |  |  | ObjectDefinition: InterfaceDataset | 
|---|
|  |  |  | OwningSide: 'Owned' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Relation DispatchShiftSchedulingInformation_RecycleBin_RecycleBin_DispatchShiftSchedulingInformation | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '1[414996.1.67010175]' | 
|---|
|  |  |  | DefaultRelationStrategy | 
|---|
|  |  |  | { | 
|---|
|  |  |  | } | 
|---|
|  |  |  | RelationSide.LeftSide RecycleBin | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010177][414996.1.67010176][414996.1.67010178]' | 
|---|
|  |  |  | Cardinality: '0to1' | 
|---|
|  |  |  | ObjectDefinition: DispatchShiftSchedulingInformation | 
|---|
|  |  |  | OwningSide: 'Reference' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | RelationSide.RightSide DispatchShiftSchedulingInformation | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010180][414996.1.67010179][414996.1.67010181]' | 
|---|
|  |  |  | Cardinality: '1toN' | 
|---|
|  |  |  | ObjectDefinition: RecycleBin | 
|---|
|  |  |  | OwningSide: 'Owned' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | TextBody: | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | // rislai Jul-23-2024 (created) | 
|---|
|  |  |  | date    := Date::ActualDate(); | 
|---|
|  |  |  | date    := Date::ActualDate() - 1; | 
|---|
|  |  |  | loginfo := interfaceDataset.InterfaceLoginfo( relnew, ExecuteUser := QuintiqUser::CurrentUser().ShortName() | 
|---|
|  |  |  | , Name := Translations::InterfaceDataset_ActualDailyProductionData_Name() | 
|---|
|  |  |  | , InterfaceDateTime := DateTime::ActualTime() | 
|---|
|  |  |  | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | archive.ArchivePPA( relnew, Name := fileName, FilePath := filePath, SourceFileBinaryValue := ppaBinaryValue ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // åæ¡£Curve | 
|---|
|  |  |  | ac := select( archive, ArchiveCurve, tempAC, true ); | 
|---|
|  |  |  | if ( not isnull( ac ) ) { | 
|---|
|  |  |  | ac.Delete(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | archive.ArchiveCurve( relnew, Name := "å§ç»åªåä¸ç.xlsx", FilePath := curveFileName, SourceFileBinaryValue := curveBinaryValue ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // åæ¡£Curve | 
|---|
|  |  |  | if ( curveFileName <> "" and curveBinaryValue.Size() > 0 ) { | 
|---|
|  |  |  | ac := select( archive, ArchiveCurve, tempAC, true ); | 
|---|
|  |  |  | if ( not isnull( ac ) ) { | 
|---|
|  |  |  | ac.Delete(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | archive.ArchiveCurve( relnew, Name := "å§ç»åªåä¸ç.xlsx", FilePath := curveFileName, SourceFileBinaryValue := curveBinaryValue ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | traverse ( archiveExecutionStatus, TemporaryDemandData, tdd ,tdd.Origin() = "" or tdd.StartDate() >= macroPlan.StartOfPlanning().Date()) { | 
|---|
|  |  |  | targetProduct_MP       := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = tdd.ProductID() ); | 
|---|
|  |  |  | targetProduct_MP       := select( macroPlan, Product_MP, tempPMP, tempPMP.Notes() = tdd.ProductID() ); | 
|---|
|  |  |  | // targetProduct_MP       := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = tdd.ProductID() ); | 
|---|
|  |  |  | targetStockingPoint_MP := select( macroPlan, StockingPoint_MP, tempSPMP, tempSPMP.ID() = tdd.StockingPointID() ); | 
|---|
|  |  |  | // info( tdd.SalesSegmentName() ); | 
|---|
|  |  |  | if ( not isnull( targetProduct_MP ) and not isnull( targetStockingPoint_MP ) ) { | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Method SyncRows | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TextBody: | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | totalRows := 0; | 
|---|
|  |  |  | totalColumns := this.Column( relsize ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if ( totalColumns > 0 ) { | 
|---|
|  |  |  | randomCol := select( this, Column, tempFPC, true ); | 
|---|
|  |  |  | totalRows := randomCol.Cell( relsize ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.Row( relflush ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | cells := construct( CustomerDemandIDSCells ); | 
|---|
|  |  |  | traverse ( this, Column, fpc ) { | 
|---|
|  |  |  | cells.Add( fpc.FirstCellInColumn() ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | for ( i := 0; i < totalRows; i++ ) { | 
|---|
|  |  |  | assert( selectvalues( cells, Elements, c, true, c.Column().Index() ).ToString( "" ) = | 
|---|
|  |  |  | selectvalues( selectsortedset( cells, Elements, c, true, c.Column().Index() ), Elements, c, true, c.Column().Index() ).ToString( "" ), | 
|---|
|  |  |  | "Assertion error in FrockDataTable::syncRows: Cells not sorted by column index" ); | 
|---|
|  |  |  | row := this.Row( relnew, RowNr := i ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | newCells := construct( CustomerDemandIDSCells ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | traverse ( cells, Elements, c ) { | 
|---|
|  |  |  | row.Cell( relinsert, c ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | newCells.Add( c.NextCellInColumn() ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | cells := &newCells; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | StaticMethod ReadStructure ( | 
|---|
|  |  |  | BinaryValue binaryvalue, | 
|---|
|  |  |  | InterfaceDataset owner | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TextBody: | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | // çå
°é¸½ Sep-3-2024 (created) | 
|---|
|  |  |  | tableGroupHandle := TableGroupHandle::Create( 'IDSå
¨è¡¨' ); | 
|---|
|  |  |  | tableGroupHandle := XLS::LoadTableGroupFromBinaryData( binaryvalue.AsBinaryData(), tableGroupHandle, true, true ); | 
|---|
|  |  |  | sheets := tableGroupHandle.TableNames(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | traverse ( sheets, Elements, sheetName ) { | 
|---|
|  |  |  | tableHandle := tableGroupHandle.Table( sheetName ); | 
|---|
|  |  |  | tableXML := TableHandle::ExportXML( tableHandle ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //  info( tableXML.AsQUILL() ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | CustomerDemandIDS::XMLFileImportCustomerDemandIDSXMLHeaders( tableXML ); | 
|---|
|  |  |  | xlstable := CustomerDemandIDS::XMLImportCustomerDemandIDSXML( tableXML ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | xlstable.SyncRows(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | xlstable.Name( sheetName ); | 
|---|
|  |  |  | owner.CustomerDemandIDS( relinsert, &xlstable ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Transaction::Transaction().Propagate( attribute( CustomerDemandIDSColumn, Index ) ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | XMLElementId | 
|---|
|  |  |  | { | 
|---|
|  |  |  | XMLAddressType { } | 
|---|
|  |  |  | XMLID Key { } | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | XMLElementId | 
|---|
|  |  |  | { | 
|---|
|  |  |  | XMLID QuintiqType { } | 
|---|
|  |  |  | XMLQualifierType { } | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | XMLObjectBase.ObjectDefinitions | 
|---|
|  |  |  | { | 
|---|
|  |  |  | IdField: Key | 
|---|
|  |  |  | ObjectTypeField: QuintiqType | 
|---|
|  |  |  | TargetType: CustomerDemandIDSCell | 
|---|
|  |  |  | XMLID cell { } | 
|---|
|  |  |  | Attributes: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | XMLAttribute | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Attribute: Value | 
|---|
|  |  |  | XMLID value { } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | XMLObjectBase.ObjectDefinitions | 
|---|
|  |  |  | { | 
|---|
|  |  |  | IdField: Key | 
|---|
|  |  |  | ObjectTypeField: QuintiqType | 
|---|
|  |  |  | TargetType: CustomerDemandIDSColumn | 
|---|
|  |  |  | XMLID column { } | 
|---|
|  |  |  | Aggregates: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | XMLAggregate | 
|---|
|  |  |  | { | 
|---|
|  |  |  | ElementDefinition: cell | 
|---|
|  |  |  | GenerateOutput: false | 
|---|
|  |  |  | Relation: Cell | 
|---|
|  |  |  | XMLID Cell { } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | Attributes: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | XMLAttribute | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Attribute: Name | 
|---|
|  |  |  | XMLID name { } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | XMLObjectBase.ObjectDefinitions | 
|---|
|  |  |  | { | 
|---|
|  |  |  | IdField: Key | 
|---|
|  |  |  | ObjectTypeField: QuintiqType | 
|---|
|  |  |  | TargetType: CustomerDemandIDS | 
|---|
|  |  |  | XMLID table { } | 
|---|
|  |  |  | Aggregates: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | XMLAggregate | 
|---|
|  |  |  | { | 
|---|
|  |  |  | ElementDefinition: column | 
|---|
|  |  |  | GenerateOutput: false | 
|---|
|  |  |  | Relation: Column | 
|---|
|  |  |  | XMLID Column { } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | Attributes: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | XMLAttribute | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Attribute: Name | 
|---|
|  |  |  | XMLID name { } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #root | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | XML CustomerDemandIDSXML | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Direction: 'ImportExport' | 
|---|
|  |  |  | Root: table | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | XMLElementId | 
|---|
|  |  |  | { | 
|---|
|  |  |  | XMLAddressType { } | 
|---|
|  |  |  | XMLID Key { } | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | XMLElementId | 
|---|
|  |  |  | { | 
|---|
|  |  |  | XMLID QuintiqType { } | 
|---|
|  |  |  | XMLQualifierType { } | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | XMLObjectBase.ObjectDefinitions | 
|---|
|  |  |  | { | 
|---|
|  |  |  | IdField: Key | 
|---|
|  |  |  | ObjectTypeField: QuintiqType | 
|---|
|  |  |  | TargetType: CustomerDemandIDSColumn | 
|---|
|  |  |  | XMLID column { } | 
|---|
|  |  |  | Attributes: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | XMLAttribute | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Attribute: Name | 
|---|
|  |  |  | XMLID name { } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | XMLObjectBase.ObjectDefinitions | 
|---|
|  |  |  | { | 
|---|
|  |  |  | IdField: Key | 
|---|
|  |  |  | ObjectTypeField: QuintiqType | 
|---|
|  |  |  | TargetType: CustomerDemandIDS | 
|---|
|  |  |  | XMLID table { } | 
|---|
|  |  |  | Aggregates: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | XMLAggregate | 
|---|
|  |  |  | { | 
|---|
|  |  |  | ElementDefinition: column | 
|---|
|  |  |  | GenerateOutput: false | 
|---|
|  |  |  | Relation: Column | 
|---|
|  |  |  | XMLID Column { } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | Attributes: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | XMLAttribute | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Attribute: Name | 
|---|
|  |  |  | XMLID name { } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #root | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | XML CustomerDemandIDSXMLHeaders | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Direction: 'ImportExport' | 
|---|
|  |  |  | Root: table | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | StaticMethod GenerateData ( | 
|---|
|  |  |  | const MacroPlan macroplan, | 
|---|
|  |  |  | RecycleBin recycle, | 
|---|
|  |  |  | const Archive archive, | 
|---|
|  |  |  | InterfaceDataset interfaceDataset, | 
|---|
|  |  |  | String executor, | 
|---|
|  |  |  | 
|---|
|  |  |  | loginfo.CustomerDemandPPAIDS( relinsert, cd ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | binaryValue           := TemplateManager::GetIDSFullTable( archive, Date::ActualDate().Year() ); | 
|---|
|  |  |  | source                := GeneralExcelImportAndExportDataSource::Upload( recycle, binaryValue, OS::TempPath() + "template.xlsx" ); | 
|---|
|  |  |  | source.ReadStructure(); | 
|---|
|  |  |  | //productcolumn         := select( recycle, ge.Column, column, column.Index() = 1 ); | 
|---|
|  |  |  | CustomerDemandIDS::ReadStructure( binaryValue, interfaceDataset ); | 
|---|
|  |  |  | productcolumn         := select( interfaceDataset, CustomerDemandIDS.Column, column, column.Index() = 1 ); | 
|---|
|  |  |  | cnv2 := StringToDate::StandardConverter(); | 
|---|
|  |  |  | cnv2.SetCustomConversion(); | 
|---|
|  |  |  | cnv2.CustomFormatString( "dd/MM/yyyy" ); | 
|---|
|  |  |  | traverse( recycle, GeneralExcelImportAndExportDataSource.GeneralExcelImportAndExportDataTable.GeneralExcelImportAndExportDataRow, row ){ | 
|---|
|  |  |  | product             := selectobject( row, GeneralExcelImportAndExportDataCell, cell, cell.GeneralExcelImportAndExportDataColumn().ColumnIndex() = 1 ); | 
|---|
|  |  |  | traverse( row, GeneralExcelImportAndExportDataCell, cell, cell.GeneralExcelImportAndExportDataColumn().ColumnIndex() > 3 ){ | 
|---|
|  |  |  | period := cnv2.Convert( cell.GeneralExcelImportAndExportDataColumn().Name() ); | 
|---|
|  |  |  | traverse( interfaceDataset, CustomerDemandIDS.Row, row ){ | 
|---|
|  |  |  | product             := selectobject( row, Cell, cell, cell.Column() = productcolumn ); | 
|---|
|  |  |  | traverse( row, Cell, cell, cell.Column().Index() > 3 ){ | 
|---|
|  |  |  | period := cnv2.Convert( cell.Column().Name() ); | 
|---|
|  |  |  | cd                  :=interfaceDataset.CustomerDemandPPAIDS( relnew, Product           := product.Value() | 
|---|
|  |  |  | , DemandDate              := period | 
|---|
|  |  |  | , DemandQty               := [Number]cell.Value() | 
|---|
|  |  |  | 
|---|
|  |  |  | loginfo.CustomerDemandPPAIDS( relinsert, cd ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | source.Delete(); | 
|---|
|  |  |  | loginfo.TotalRow( loginfo.CustomerDemandPPAIDS( relsize ) ); | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute Fac | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010086][414996.1.67010085][414996.1.67010087]' | 
|---|
|  |  |  | Description: 'å·¥åç®å' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute FactoryName | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010074][414996.1.67010073][414996.1.67010075]' | 
|---|
|  |  |  | Description: 'å·¥ååç§°' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute ID | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010089][414996.1.67010088][414996.1.67010090]' | 
|---|
|  |  |  | IsReadOnly: true | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute InterfaceTime | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010077][414996.1.67010076][414996.1.67010078]' | 
|---|
|  |  |  | Description: 'ä¸åæ¶é´' | 
|---|
|  |  |  | ValueType: DateTime | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute Product | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010096][414996.1.67010095][414996.1.67010097]' | 
|---|
|  |  |  | Description: 'ç©æå·' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute ProductLine | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010068][414996.1.67010067][414996.1.67010069]' | 
|---|
|  |  |  | Description: '产线' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute ShiftDate | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010092][414996.1.67010091][414996.1.67010093]' | 
|---|
|  |  |  | Description: 'çæ¬¡æ¥æ' | 
|---|
|  |  |  | ValueType: Date | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute ShiftEndDate | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010149][414996.1.67010148][414996.1.67010150]' | 
|---|
|  |  |  | Description: 'çæ¬¡çç»ææ¶é´' | 
|---|
|  |  |  | ValueType: DateTime | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute ShiftName | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010106][414996.1.67010105][414996.1.67010107]' | 
|---|
|  |  |  | Description: 'çæ¬¡åç§°' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute ShiftStartDate | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010139][414996.1.67010138][414996.1.67010140]' | 
|---|
|  |  |  | Description: 'çæ¬¡èµ·å§æ¶é´' | 
|---|
|  |  |  | ValueType: DateTime | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute ShiftVolume | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010126][414996.1.67010125][414996.1.67010127]' | 
|---|
|  |  |  | Description: 'åçæ¬¡äº§é' | 
|---|
|  |  |  | ValueType: Real | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute SingleShiftName | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010116][414996.1.67010115][414996.1.67010117]' | 
|---|
|  |  |  | Description: 'åçæ¬¡åç§°' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute Tips | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010083][414996.1.67010082][414996.1.67010084]' | 
|---|
|  |  |  | Description: '夿³¨' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute VersionFlag | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010071][414996.1.67010070][414996.1.67010072]' | 
|---|
|  |  |  | Description: 'çæ¬æ è¯' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Attribute VersionName | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '3[414996.1.67010080][414996.1.67010079][414996.1.67010081]' | 
|---|
|  |  |  | Description: 'çæ¬åç§°' | 
|---|
|  |  |  | ValueType: String | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | DefaultValue | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TargetAttribute: Fac | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | DefaultValue | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TargetAttribute: FactoryName | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | DefaultValue | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TargetAttribute: ID | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | DefaultValue | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TargetAttribute: ProductLine | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | DefaultValue | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TargetAttribute: Tips | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | DefaultValue | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TargetAttribute: VersionFlag | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | DefaultValue | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TargetAttribute: VersionName | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Function CalcFac | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TextBody: | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | // Akari Aug-21-2024 (created) | 
|---|
|  |  |  | value := ""; | 
|---|
|  |  |  | if( this.FactoryName() = "大è¿å·¥å" ){ | 
|---|
|  |  |  | value := "DL"; | 
|---|
|  |  |  | }else if( this.FactoryName() = "é¿æ¥å·¥å"){ | 
|---|
|  |  |  | value := "CC"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.Fac( value ); | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | StaticMethod Dispatch | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TextBody: | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | // Akari Sep-4-2024 (created) | 
|---|
|  |  |  | *] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | TypeIndex IDTypeIndex | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Attributes: | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | TypeIndexAttribute | 
|---|
|  |  |  | { | 
|---|
|  |  |  | ModelElement: ID | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #root | 
|---|
|  |  |  | #parent: #DomainModel | 
|---|
|  |  |  | Type DispatchShiftSchedulingInformation | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #keys: '5[414996.1.67010064][414996.1.67010062][0.0.0][414996.1.67010063][414996.1.67010065]' | 
|---|
|  |  |  | BaseType: Object | 
|---|
|  |  |  | Description: 'ä¸åçæ¬¡æäº§ä¿¡æ¯' | 
|---|
|  |  |  | StructuredName: 'DispatchShiftSchedulingInformations' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | currentuser  := QuintiqUser::CurrentUser().DisplayName(); | 
|---|
|  |  |  | isactive     := ifexpr( rbgVersionFlag.BoundValue() = "true", true, false ); | 
|---|
|  |  |  | if( efInterfacename.Text() = Translations::InterfaceDataset_CustomerDemandPPAIDS_Name() ){//客æ·éæ± | 
|---|
|  |  |  | CustomerDemandPPAIDS::GenerateData( MacroPlan, RecycleBin, Archive, InterfaceDataset, currentuser, isactive ); | 
|---|
|  |  |  | CustomerDemandPPAIDS::GenerateData( MacroPlan, InterfaceDataset, currentuser, isactive ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if( efInterfacename.Text() = Translations::InterfaceDataset_AssemblyOnlinePlanPPPSPush_Name()){//è£
é
ä¸çº¿ | 
|---|
|  |  |  | AssemblyOnlinePlanPPPSPush::GenerateData( MacroPlan, InterfaceDataset, currentuser, isactive ); | 
|---|