已添加39个文件
已修改13个文件
已删除1个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsUpdateCleaningCost |
| | | { |
| | | #keys: '3[415754.0.459255955][415754.0.459255954][415754.0.459255956]' |
| | | Description: 'æ¸
æ´è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsUpdateCoefficient |
| | | { |
| | | #keys: '3[415754.0.459231854][415754.0.459231853][415754.0.459231855]' |
| | | Description: 'ç³»æ°æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsUpdateEstimatedTotalCost |
| | | { |
| | | #keys: '3[415754.0.459255992][415754.0.459255991][415754.0.459255993]' |
| | | Description: 'é¢è®¡æ»è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsUpdateExternalRentalWarehouseTransportationCosts |
| | | { |
| | | #keys: '3[415754.0.459255918][415754.0.459255917][415754.0.459255919]' |
| | | Description: 'å¤ç§åºè¿è¾è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsUpdateNumberOfEmptyShelves |
| | | { |
| | | #keys: '3[415754.0.459255802][415754.0.459255801][415754.0.459255803]' |
| | | Description: 'ç©ºææ¶æ°éè·æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsUpdateOutboundExpensesForRentedWarehouses |
| | | { |
| | | #keys: '3[415754.0.459255881][415754.0.459255880][415754.0.459255882]' |
| | | Description: 'å¤ç§åºåºåºè´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsUpdateRentalWarehouseStorageFees |
| | | { |
| | | #keys: '3[415754.0.459215185][415754.0.459215184][415754.0.459215186]' |
| | | Description: 'å¤ç§åºä»å¨è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsUpdateStorageFeesForRentedWarehouses |
| | | { |
| | | #keys: '3[415754.0.459255844][415754.0.459255843][415754.0.459255845]' |
| | | Description: 'å¤ç§åºå
¥åºè´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsUpdateTotalCost |
| | | { |
| | | #keys: '3[415754.0.459256029][415754.0.459256028][415754.0.459256030]' |
| | | Description: 'æ»è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsUpdateTotalQuantityOfMaterialRacks |
| | | { |
| | | #keys: '3[415754.0.459231812][415754.0.459231811][415754.0.459231813]' |
| | | Description: 'ææ¶æ»æ°éæ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
| | |
| | | [* |
| | | this.TotalQuantityOfMaterialRacks( totalQuantityOfMaterialRacks ); |
| | | |
| | | this.NumberOfEmptyShelves( ( totalQuantityOfMaterialRacks - this.PlannedInventory() ) / this.PackagingCapacity() ); |
| | | // ç©ºææ¶æ°éèå¨ |
| | | this.NumberOfEmptyShelves( [Number] ( ( totalQuantityOfMaterialRacks - this.PlannedInventory() ) / this.PackagingCapacity() ) ); |
| | | |
| | | // SUMè¡èå¨ |
| | | cell := select( this, CC_EngineRackColumn.CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() = "SUM" ); |
| | | cell.TotalQuantityOfMaterialRacks( sum( this, CC_EngineRackColumn.CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() <> "SUM", tempCCERCell.TotalQuantityOfMaterialRacks() ) ); |
| | | cell.NumberOfEmptyShelves( sum( this, CC_EngineRackColumn.CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() <> "SUM", tempCCERCell.NumberOfEmptyShelves() ) ); |
| | | |
| | | // SUMåèå¨ |
| | | cell := select( this, CC_EngineRackRow.CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackColumn().DisplayName() = "SUM" ); |
| | | cell.TotalQuantityOfMaterialRacks( sum( this,CC_EngineRackRow.CC_EngineRackCell, tempCCERCell, not tempCCERCell.CC_EngineRackColumn().StartDate().IsMaxInfinity(), tempCCERCell.TotalQuantityOfMaterialRacks() ) ); |
| | | cell.NumberOfEmptyShelves( sum( this,CC_EngineRackRow.CC_EngineRackCell, tempCCERCell, not tempCCERCell.CC_EngineRackColumn().StartDate().IsMaxInfinity(), tempCCERCell.NumberOfEmptyShelves() ) ); |
| | | *] |
| | | } |
| | |
| | | macroPlan.CC_EngineRackRow( relflush ); |
| | | macroPlan.CC_EngineRackColumn( relflush ); |
| | | |
| | | sumNumberOfEmptyShelves := 0.0; |
| | | sumStorageFeesForRentedWarehouses := 0.0; |
| | | sumOutboundExpensesForRentedWarehouses := 0.0; |
| | | sumExternalRentalWarehouseTransportationCosts := 0.0; |
| | | sumRentalWarehouseStorageFees := 0.0; |
| | | sumCleaningCost := 0.0; |
| | | sumEstimatedTotalCost := 0.0; |
| | | sumTotalCost := 0.0; |
| | | |
| | | // åå»ºè¡ |
| | | genrations := selectuniquevalues( macroPlan, Product_MP, tempPMP, tempPMP.Generation().TrimBoth() <> "", tempPMP.Generation() ); |
| | | mqbmlbs := selectuniquevalues( macroPlan, Product_MP, tempPMP, tempPMP.MQBMLB().TrimBoth() <> "", tempPMP.MQBMLB() ); |
| | |
| | | cell.PackagingCapacity( guard( lce.PackagingCapacity(), 1 ) ); |
| | | cell.PlannedInventory( plannedInventory ); |
| | | cell.NumberOfEmptyShelves( guard( [Number] ( cell.TotalQuantityOfMaterialRacks() - ( plannedInventory / lce.PackagingCapacity() ) ), 0 ) ); |
| | | sumNumberOfEmptyShelves := sumNumberOfEmptyShelves + cell.NumberOfEmptyShelves(); |
| | | |
| | | // å¤ç§åºå
¥åºè´¹ç¨ï¼å卿ºéé / å
è£
容é[åä¸åæ´] * ææ¶å
¥åºåä»·ï¼ |
| | | engineSales := sum( macroPlan, FSImportData, tempFSID, |
| | |
| | | tempFSID.StartDate().Month() = ccerc.StartDate().Month(), |
| | | tempFSID.Quantity() ); |
| | | cell.StorageFeesForRentedWarehouses( [Number] ( engineSales / guard( lce.PackagingCapacity(), 1 ) * guard( lcmr.WarehousingPrice(), 1 ) ) ); |
| | | sumStorageFeesForRentedWarehouses := sumStorageFeesForRentedWarehouses + cell.StorageFeesForRentedWarehouses(); |
| | | |
| | | // å¤ç§åºåºåºè´¹ç¨ï¼å卿ºäº§é / å
è£
容é[åä¸åæ´] * ææ¶åºåºåä»·ï¼ |
| | | engineProductions := sum( macroPlan, FPImportData, tempFPID, |
| | |
| | | tempFPID.StartDate().Year() = ccerc.StartDate().Year() and |
| | | tempFPID.StartDate().Month() = ccerc.StartDate().Month(), |
| | | tempFPID.Quantity() ); |
| | | cell.OutboundExpensesForRentedWarehouses( [Number] ( engineProductions / guard( lce.PackagingCapacity(), 1 ) ) * guard( lcmr.OutboundPrice(), 1 ) ); |
| | | sumOutboundExpensesForRentedWarehouses := sumOutboundExpensesForRentedWarehouses + cell.OutboundExpensesForRentedWarehouses(); |
| | | cell.OutboundExpensesForRentedWarehouses( [Number] ( engineProductions / guard( lce.PackagingCapacity(), 1 ) * guard( lcmr.OutboundPrice(), 1 ) ) ); |
| | | |
| | | // å¤ç§åºè¿è¾è´¹ç¨ï¼å卿ºè¿è¾é / å
è£
容é / è£
载容éï¼åä¸åæ´ï¼ * ææ¶è¿è¾åä»· |
| | | transportationQuantity := sum( macroPlan, Unit.Lane.LaneLeg.Trip.ProductInTrip, tempPIT, |
| | |
| | | ); |
| | | // info( "æ¶é´ï¼", ccerc.StartDate().Format( "Y-M2-D2" ), " è¿è¾æ°æ®ï¼", transportationQuantity, " è¿è¾åä»·ï¼", lct.TransportPrice() ); |
| | | cell.ExternalRentalWarehouseTransportationCosts( [Number] ( transportationQuantity / guard( lce.PackagingCapacity(), 1 ) / guard( lct.LoadingCapacity(), 1 ) * guard( lct.TransportPrice(), 1 ) ) ); |
| | | sumExternalRentalWarehouseTransportationCosts := sumExternalRentalWarehouseTransportationCosts + cell.ExternalRentalWarehouseTransportationCosts(); |
| | | |
| | | // å¤ç§åºä»å¨è´¹ç¨ï¼ææ¶æ»æ°é - å卿ºåºå / å
è£
容éï¼åä¸åæ´ï¼ï¼åä¹ä»¥ç©ºææ¶ä»å¨åä»·å¾å°ç©ºææ¶ä»å¨è´¹ç¨ãå卿ºåºååActual inventorieséåå°é¿æ¥å¤ç§åºè¯¥å卿ºçä»å¨éï¼ææ¶æ»æ°ééè¦æå¨ç»´æ¤ã |
| | | cell.UnitPriceOfEmptyShelfStorage( lcmr.StoragePrice() ); |
| | | cell.RentalWarehouseStorageFees( [Number] ( guard( ( cell.TotalQuantityOfMaterialRacks() - [Number]( plannedInventory / lce.PackagingCapacity() ) ) * lcmr.StoragePrice(), 0 ) ) ); |
| | | sumRentalWarehouseStorageFees := sumRentalWarehouseStorageFees + cell.RentalWarehouseStorageFees(); |
| | | |
| | | // æ¸
æ´è´¹ç¨ï¼å卿ºå
¥åºé / å
è£
容é * ææ¶æ¸
æ´åä»·ãå卿ºå
¥åºéåå卿ºééï¼å
è£
容éåèªå卿ºææ¬è¡¨ãææ¶æ¸
æ´åä»·åææ¶ææ¬è¡¨ã |
| | | cell.CleaningCost( [Number] ( engineProductions / guard( lce.PackagingCapacity(), 1 ) * lcmr.CleanPrice() ) ); |
| | | sumCleaningCost := sumCleaningCost + cell.CleaningCost(); |
| | | |
| | | // é¢è®¡æ»è´¹ç¨ |
| | | cell.EstimatedTotalCost( cell.StorageFeesForRentedWarehouses() + |
| | |
| | | cell.RentalWarehouseStorageFees() + |
| | | cell.CleaningCost() |
| | | ); |
| | | sumEstimatedTotalCost := sumEstimatedTotalCost + cell.EstimatedTotalCost(); |
| | | |
| | | // ç³»æ° |
| | | cell.Coefficient( 1.05 ); |
| | | |
| | | // æ»è´¹ç¨ |
| | | cell.TotalCost( cell.EstimatedTotalCost() * cell.Coefficient() ); |
| | | sumTotalCost := sumTotalCost + cell.TotalCost(); |
| | | cell.TotalCost( [Number] ( cell.EstimatedTotalCost() * cell.Coefficient() ) ); |
| | | |
| | | cell.CC_EngineRackColumn( relset, ccerc ); |
| | | } |
| | | } |
| | | |
| | | // å建SUMè¡ |
| | | sumR := macroPlan.CC_EngineRackRow( relnew, Generation := "SUM", MLB_MQB := "", Index := 2 ); |
| | | sumR := macroPlan.CC_EngineRackRow( relnew, Generation := "SUM", MLB_MQB := "", Index := 2 ); |
| | | traverse ( macroPlan, CC_EngineRackColumn, ccerc ) { |
| | | cell := sumR.CC_EngineRackCell( relnew ); |
| | | |
| | | cell.NumberOfEmptyShelves( sumNumberOfEmptyShelves ); |
| | | cell.StorageFeesForRentedWarehouses( sumStorageFeesForRentedWarehouses ); |
| | | cell.OutboundExpensesForRentedWarehouses( sumOutboundExpensesForRentedWarehouses ); |
| | | cell.ExternalRentalWarehouseTransportationCosts( sumExternalRentalWarehouseTransportationCosts ); |
| | | cell.RentalWarehouseStorageFees( sumRentalWarehouseStorageFees ); |
| | | cell.CleaningCost( sumCleaningCost ); |
| | | cell.EstimatedTotalCost( sumEstimatedTotalCost ); |
| | | cell.TotalCost( sumTotalCost ); |
| | | |
| | | cell.CC_EngineRackColumn( relset, ccerc ); |
| | | |
| | | cell.NumberOfEmptyShelves( sum( ccerc, CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() <> "SUM", tempCCERCell.NumberOfEmptyShelves() ) ); |
| | | cell.StorageFeesForRentedWarehouses( sum( ccerc, CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() <> "SUM", tempCCERCell.StorageFeesForRentedWarehouses() ) ); |
| | | cell.OutboundExpensesForRentedWarehouses( sum( ccerc, CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() <> "SUM", tempCCERCell.OutboundExpensesForRentedWarehouses() ) ); |
| | | cell.ExternalRentalWarehouseTransportationCosts( sum( ccerc, CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() <> "SUM", tempCCERCell.ExternalRentalWarehouseTransportationCosts() ) ); |
| | | cell.RentalWarehouseStorageFees( sum( ccerc, CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() <> "SUM", tempCCERCell.RentalWarehouseStorageFees() ) ); |
| | | cell.CleaningCost( sum( ccerc, CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() <> "SUM", tempCCERCell.CleaningCost() ) ); |
| | | cell.EstimatedTotalCost( sum( ccerc, CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() <> "SUM", tempCCERCell.EstimatedTotalCost() ) ); |
| | | cell.Coefficient( 1.05 ); |
| | | cell.TotalCost( sum( ccerc, CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() <> "SUM", tempCCERCell.TotalCost() ) ); |
| | | } |
| | | |
| | | // å建SUMå |
| | | sumC := macroPlan.CC_EngineRackColumn( relnew, StartDate := Date::MaxDate() ); |
| | | traverse ( macroPlan, CC_EngineRackRow, ccerr ) { |
| | | cell := ccerr.CC_EngineRackCell( relnew ); |
| | | cell.CC_EngineRackColumn( relset, sumC ); |
| | | |
| | | cell.NumberOfEmptyShelves( sum( ccerr, CC_EngineRackCell, tempCCERCell, not tempCCERCell.CC_EngineRackColumn().StartDate().IsMaxInfinity(), tempCCERCell.NumberOfEmptyShelves() ) ); |
| | | cell.StorageFeesForRentedWarehouses( sum( ccerr, CC_EngineRackCell, tempCCERCell, not tempCCERCell.CC_EngineRackColumn().StartDate().IsMaxInfinity(), tempCCERCell.StorageFeesForRentedWarehouses() ) ); |
| | | cell.OutboundExpensesForRentedWarehouses( sum( ccerr, CC_EngineRackCell, tempCCERCell, not tempCCERCell.CC_EngineRackColumn().StartDate().IsMaxInfinity(), tempCCERCell.OutboundExpensesForRentedWarehouses() ) ); |
| | | cell.ExternalRentalWarehouseTransportationCosts( sum( ccerr, CC_EngineRackCell, tempCCERCell, not tempCCERCell.CC_EngineRackColumn().StartDate().IsMaxInfinity(), tempCCERCell.ExternalRentalWarehouseTransportationCosts() ) ); |
| | | cell.RentalWarehouseStorageFees( sum( ccerr, CC_EngineRackCell, tempCCERCell, not tempCCERCell.CC_EngineRackColumn().StartDate().IsMaxInfinity(), tempCCERCell.RentalWarehouseStorageFees() ) ); |
| | | cell.CleaningCost( sum( ccerr, CC_EngineRackCell, tempCCERCell, not tempCCERCell.CC_EngineRackColumn().StartDate().IsMaxInfinity(), tempCCERCell.CleaningCost() ) ); |
| | | cell.EstimatedTotalCost( sum( ccerr, CC_EngineRackCell, tempCCERCell, not tempCCERCell.CC_EngineRackColumn().StartDate().IsMaxInfinity(), tempCCERCell.EstimatedTotalCost() ) ); |
| | | cell.Coefficient( 1.05 ); |
| | | cell.TotalCost( sum( ccerr, CC_EngineRackCell, tempCCERCell, not tempCCERCell.CC_EngineRackColumn().StartDate().IsMaxInfinity(), tempCCERCell.TotalCost() ) ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | |
| | | |
| | | // 第äºå |
| | | attrs := construct( Strings ); attrs.Add( "ææ¶ç©ºæ°é" ); attrs.Add( "ç©ºææ¶æ°é" ); attrs.Add( "å¤ç§åºå
¥åºè´¹ç¨" ); attrs.Add( "å¤ç§åºåºåºè´¹ç¨" ); attrs.Add( "å¤ç§åºè¿è¾è´¹ç¨" ); |
| | | attrs := construct( Strings ); attrs.Add( "ææ¶æ»æ°é" ); attrs.Add( "ç©ºææ¶æ°é" ); attrs.Add( "å¤ç§åºå
¥åºè´¹ç¨" ); attrs.Add( "å¤ç§åºåºåºè´¹ç¨" ); attrs.Add( "å¤ç§åºè¿è¾è´¹ç¨" ); |
| | | attrs.Add( "å¤ç§åºä»å¨è´¹ç¨" ); attrs.Add( "æ¸
æ´è´¹ç¨" ); attrs.Add( "é¢è®¡æ»è´¹ç¨" ); attrs.Add( "ç³»æ°" ); attrs.Add( "æ»è´¹ç¨" ); |
| | | secondColumn := xmlDOM.CreateElement( "column" ); |
| | | secondName := xmlDOM.CreateElement( "name" ); |
| | |
| | | cellColumn := xmlDOM.CreateElement( "column" ); |
| | | cellName := xmlDOM.CreateElement( "name" ); |
| | | cellType := xmlDOM.CreateElement( "type" ); |
| | | cellName.TextContent( cerc.StartDate().Format( "M2/D2/Y" ) ); |
| | | cellType.TextContent( "Number" ); |
| | | cellName.TextContent( cerc.DisplayName() ); |
| | | cellType.TextContent( "Real" ); |
| | | cellColumn.AppendChild( cellName ); |
| | | cellColumn.AppendChild( cellType ); |
| | | cells := selectsortedset( cerc, CC_EngineRackCell, tempCELL, true, tempCELL.CC_EngineRackRow().Index(), tempCELL.CC_EngineRackRow().Name() ); |
| | |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.Coefficient().Round( 0 ) ); // ç³»æ° |
| | | cell.SetAttribute( "value", [String]c.Coefficient().Round( 2 ) ); // ç³»æ° |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | |
| | | GeneralExcelImportAndExportDataTable table |
| | | ) |
| | | { |
| | | TextBody: '//traverse (' |
| | | TextBody: |
| | | [* |
| | | isUpdateFlag := ""; |
| | | attributeUpdateFlag := ""; |
| | | |
| | | traverse ( table, GeneralExcelImportAndExportDataRow, row ) { |
| | | traverse ( table, GeneralExcelImportAndExportDataColumn, column ) { |
| | | // åå
æ ¼å¼ |
| | | cellValue := select( row, GeneralExcelImportAndExportDataCell, tempGEIAEDCell, tempGEIAEDCell.GeneralExcelImportAndExportDataColumn() = column ).Value(); |
| | | // é¿æ¥ææ¶æ¥è¡¨å |
| | | ccerc := select( macroPlan, CC_EngineRackColumn, tempCCERC, tempCCERC.DisplayName() = column.Name() ); |
| | | cell := select( macroPlan, CC_EngineRackRow.CC_EngineRackCell, tempCCERCell, tempCCERCell.CC_EngineRackRow().Generation() = "SUM" and tempCCERCell.CC_EngineRackColumn() = ccerc ); |
| | | |
| | | if ( column.ColumnIndex() = 0 and cellValue <> "" ) { |
| | | isUpdateFlag := cellValue; |
| | | } |
| | | |
| | | if ( column.ColumnIndex() = 1 and cellValue <> "" ) { |
| | | attributeUpdateFlag := cellValue; |
| | | } |
| | | |
| | | if ( isUpdateFlag = "SUM" ) { |
| | | if ( attributeUpdateFlag = "ææ¶æ»æ°é" and not isnull( cell ) ) { |
| | | if ( not cell.IsUpdateTotalQuantityOfMaterialRacks() and cell.TotalQuantityOfMaterialRacks() <> [Real]cellValue ) { |
| | | cell.IsUpdateTotalQuantityOfMaterialRacks( true ); |
| | | } |
| | | cell.TotalQuantityOfMaterialRacks( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "ç©ºææ¶æ°é" and not isnull( cell ) ) { |
| | | if ( not cell.IsUpdateNumberOfEmptyShelves() and cell.NumberOfEmptyShelves() <> [Real]cellValue ) { |
| | | cell.IsUpdateNumberOfEmptyShelves( true ); |
| | | } |
| | | cell.NumberOfEmptyShelves( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "å¤ç§åºå
¥åºè´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsUpdateStorageFeesForRentedWarehouses() and cell.StorageFeesForRentedWarehouses() <> [Real]cellValue ) { |
| | | cell.IsUpdateStorageFeesForRentedWarehouses( true ); |
| | | } |
| | | cell.StorageFeesForRentedWarehouses( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "å¤ç§åºåºåºè´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsUpdateOutboundExpensesForRentedWarehouses() and cell.OutboundExpensesForRentedWarehouses() <> [Real]cellValue ) { |
| | | cell.IsUpdateOutboundExpensesForRentedWarehouses( true ); |
| | | } |
| | | cell.OutboundExpensesForRentedWarehouses( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "å¤ç§åºè¿è¾è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsUpdateExternalRentalWarehouseTransportationCosts() and cell.ExternalRentalWarehouseTransportationCosts() <> [Real]cellValue ) { |
| | | cell.IsUpdateExternalRentalWarehouseTransportationCosts( true ); |
| | | } |
| | | cell.ExternalRentalWarehouseTransportationCosts( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "å¤ç§åºä»å¨è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsUpdateRentalWarehouseStorageFees() and cell.RentalWarehouseStorageFees() <> [Real]cellValue ) { |
| | | cell.IsUpdateRentalWarehouseStorageFees( true ); |
| | | } |
| | | cell.RentalWarehouseStorageFees( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "æ¸
æ´è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsUpdateCleaningCost() and cell.CleaningCost() <> [Real]cellValue ) { |
| | | cell.IsUpdateCleaningCost( true ); |
| | | } |
| | | cell.CleaningCost( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "é¢è®¡æ»è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsUpdateEstimatedTotalCost() and cell.EstimatedTotalCost() <> [Real]cellValue ) { |
| | | cell.IsUpdateEstimatedTotalCost( true ); |
| | | } |
| | | cell.EstimatedTotalCost( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "ç³»æ°" and not isnull( cell ) ) { |
| | | if ( not cell.IsUpdateCoefficient() and cell.Coefficient() <> [Real]cellValue ) { |
| | | cell.IsUpdateCoefficient( true ); |
| | | } |
| | | cell.Coefficient( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "æ»è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsUpdateTotalCost() and cell.TotalCost() <> [Real]cellValue ) { |
| | | cell.IsUpdateTotalCost( true ); |
| | | } |
| | | cell.TotalCost( [Real]cellValue ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DisplayName |
| | | { |
| | | #keys: '3[415754.0.459254726][415754.0.459254725][415754.0.459254727]' |
| | | Description: 'åæ¾ç¤º' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Function CalcDisplayName |
| | | { |
| | | TextBody: |
| | | [* |
| | | value := ifexpr( this.StartDate().IsMaxInfinity(), "SUM", this.StartDate().Format( "Y-M2-D2" ) ); |
| | | |
| | | this.DisplayName( value ); |
| | | *] |
| | | } |
| | |
| | | [* |
| | | // lihongji Aug-12-2024 (created) |
| | | |
| | | value := this.Generation() + " " + this.MLB_MQB(); |
| | | value := this.Generation() + ifexpr( this.MLB_MQB() <> "", " " + this.MLB_MQB(), "" ); |
| | | |
| | | this.Name( value ); |
| | | *] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsCCLineHaulCost |
| | | { |
| | | #keys: '3[415754.0.459222291][415754.0.459222290][415754.0.459222292]' |
| | | Description: 'CCé¿éè¿è¾è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsCCOutboundExpensesForRentedWarehouses |
| | | { |
| | | #keys: '3[415754.0.459256613][415754.0.459256612][415754.0.459256614]' |
| | | Description: 'CCå¤ç§åºåºåºè´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsCCRentalWarehouseStorageFees |
| | | { |
| | | #keys: '3[415754.0.459256657][415754.0.459256656][415754.0.459256658]' |
| | | Description: 'CCå¤ç§åºä»å¨è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsCCShortDistanceTransportationCosts |
| | | { |
| | | #keys: '3[415754.0.459256731][415754.0.459256730][415754.0.459256732]' |
| | | Description: 'CCçéè¿è¾è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsCCStorageFeesForRentedWarehouses |
| | | { |
| | | #keys: '3[415754.0.459256569][415754.0.459256568][415754.0.459256570]' |
| | | Description: 'CCå¤ç§åºå
¥åºè´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsCleaningCost |
| | | { |
| | | #keys: '3[415754.0.459256981][415754.0.459256980][415754.0.459256982]' |
| | | Description: 'æ¸
æ´è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsCoefficient |
| | | { |
| | | #keys: '3[415754.0.459257069][415754.0.459257068][415754.0.459257070]' |
| | | Description: 'ç³»æ°æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsDLExternalRentalWarehouseTransportationCosts |
| | | { |
| | | #keys: '3[415754.0.459256937][415754.0.459256936][415754.0.459256938]' |
| | | Description: 'DLå¤ç§åºè¿è¾è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsDLOutboundExpensesForRentedWarehouses |
| | | { |
| | | #keys: '3[415754.0.459256863][415754.0.459256862][415754.0.459256864]' |
| | | Description: 'DLå¤ç§åºåºåºè´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsDLRentalWarehouseStorageFees |
| | | { |
| | | #keys: '3[415754.0.459256775][415754.0.459256774][415754.0.459256776]' |
| | | Description: 'å¤ç§åºä»å¨è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsDLStorageFeesForRentedWarehouses |
| | | { |
| | | #keys: '3[415754.0.459256819][415754.0.459256818][415754.0.459256820]' |
| | | Description: 'DLå¤ç§åºå
¥åºè´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsEstimatedTotalCost |
| | | { |
| | | #keys: '3[415754.0.459257025][415754.0.459257024][415754.0.459257026]' |
| | | Description: 'é¢è®¡æ»è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsNumberOfEmptyShelves |
| | | { |
| | | #keys: '3[415754.0.459256525][415754.0.459256524][415754.0.459256526]' |
| | | Description: 'ç©ºææ¶æ°éæ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsTotalCost |
| | | { |
| | | #keys: '3[415754.0.459257113][415754.0.459257112][415754.0.459257114]' |
| | | Description: 'æ»è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsTotalQuantityOfMaterialRacks |
| | | { |
| | | #keys: '3[415754.0.459222217][415754.0.459222216][415754.0.459222218]' |
| | | Description: 'ææ¶æ»æ°éè·æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method SetTheTotalQuantity ( |
| | | Real totalQuantityOfMaterialRacks |
| | | ) |
| | | { |
| | | Description: 'è®¾ç½®ææ¶æ»æ°é' |
| | | TextBody: |
| | | [* |
| | | this.TotalQuantityOfMaterialRacks( totalQuantityOfMaterialRacks ); |
| | | |
| | | // ç©ºææ¶æ°éèå¨ |
| | | this.NumberOfEmptyShelves( [Number] ( ( totalQuantityOfMaterialRacks - this.PlannedInventory() ) / this.PackagingCapacity() ) ); |
| | | |
| | | // SUMè¡èå¨ |
| | | cell := select( this, DL_EngineRackColumn.DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() = "SUM" ); |
| | | cell.TotalQuantityOfMaterialRacks( sum( this, DL_EngineRackColumn.DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.TotalQuantityOfMaterialRacks() ) ); |
| | | cell.NumberOfEmptyShelves( sum( this, DL_EngineRackColumn.DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.NumberOfEmptyShelves() ) ); |
| | | |
| | | // SUMåèå¨ |
| | | cell := select( this, DL_EngineRackRow.DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackColumn().DisplayName() = "SUM" ); |
| | | cell.TotalQuantityOfMaterialRacks( sum( this,DL_EngineRackRow.DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.TotalQuantityOfMaterialRacks() ) ); |
| | | cell.NumberOfEmptyShelves( sum( this,DL_EngineRackRow.DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.NumberOfEmptyShelves() ) ); |
| | | *] |
| | | } |
| | |
| | | tempPISPIP.PlannedInventoryLevelEnd() ); |
| | | cell.PackagingCapacity( guard( lce.PackagingCapacity(), 1 ) ); |
| | | cell.PlannedInventory( plannedInventory ); |
| | | cell.NumberOfEmptyShelves( [Number] ( cell.TotalQuantityOfMaterialRacks() - guard( cell.PlannedInventory() / cell.PackagingCapacity(), 0 ) ) ); |
| | | |
| | | // CCå¤ç§åºå
¥åºè´¹ç¨ï¼å卿ºéé / å
è£
容éï¼åä¸åæ´ï¼* ææ¶å
¥åºåä»· |
| | | transportationQuantity1 := sum( macroPlan, SalesDemand.astype( Forecast ), tempF, |
| | |
| | | cell.Coefficient( 1.05 ); |
| | | |
| | | // æ»è´¹ç¨ |
| | | cell.TotalCost( cell.EstimatedTotalCost() * cell.Coefficient() ); |
| | | cell.TotalCost( [Number] ( cell.EstimatedTotalCost() * cell.Coefficient() ) ); |
| | | |
| | | cell.DL_EngineRackColumn( relset, dlerc ); |
| | | } |
| | | } |
| | | |
| | | // å建SUMè¡ |
| | | sumR := macroPlan.DL_EngineRackRow( relnew, Generation := "SUM", MLB_MQB := "", Index := 2 ); |
| | | traverse ( macroPlan, DL_EngineRackColumn, dlerc ) { |
| | | cell := sumR.DL_EngineRackCell( relnew ); |
| | | cell.DL_EngineRackColumn( relset, dlerc ); |
| | | |
| | | cell.TotalQuantityOfMaterialRacks( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.TotalQuantityOfMaterialRacks() ) ); |
| | | cell.NumberOfEmptyShelves( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.NumberOfEmptyShelves() ) ); |
| | | cell.CCStorageFeesForRentedWarehouses( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.CCStorageFeesForRentedWarehouses() ) ); |
| | | cell.CCOutboundExpensesForRentedWarehouses( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.CCOutboundExpensesForRentedWarehouses() ) ); |
| | | cell.CCRentalWarehouseStorageFees( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.CCRentalWarehouseStorageFees() ) ); |
| | | cell.CCLineHaulCost( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.CCLineHaulCost() ) ); |
| | | cell.CCShortDistanceTransportationCosts( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.CCShortDistanceTransportationCosts() ) ); |
| | | cell.DLStorageFeesForRentedWarehouses( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.DLStorageFeesForRentedWarehouses() ) ); |
| | | cell.DLOutboundExpensesForRentedWarehouses( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.DLOutboundExpensesForRentedWarehouses() ) ); |
| | | cell.DLExternalRentalWarehouseTransportationCosts( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.DLExternalRentalWarehouseTransportationCosts() ) ); |
| | | cell.DLRentalWarehouseStorageFees( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.DLRentalWarehouseStorageFees() ) ); |
| | | cell.CleaningCost( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.CleaningCost() ) ); |
| | | cell.EstimatedTotalCost( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.EstimatedTotalCost() ) ); |
| | | cell.Coefficient( 1.05 ); |
| | | cell.TotalCost( sum( dlerc, DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() <> "SUM", tempDLERCell.TotalCost() ) ); |
| | | } |
| | | |
| | | // å建SUMå |
| | | sumC := macroPlan.DL_EngineRackColumn( relnew, StartDate := Date::MaxDate() ); |
| | | traverse ( macroPlan, DL_EngineRackRow, dlerr ) { |
| | | cell := dlerr.DL_EngineRackCell( relnew ); |
| | | cell.DL_EngineRackColumn( relset, sumC ); |
| | | |
| | | cell.TotalQuantityOfMaterialRacks( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.TotalQuantityOfMaterialRacks() ) ); |
| | | cell.NumberOfEmptyShelves( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.NumberOfEmptyShelves() ) ); |
| | | cell.CCStorageFeesForRentedWarehouses( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.CCStorageFeesForRentedWarehouses() ) ); |
| | | cell.CCOutboundExpensesForRentedWarehouses( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.CCOutboundExpensesForRentedWarehouses() ) ); |
| | | cell.CCRentalWarehouseStorageFees( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.CCRentalWarehouseStorageFees() ) ); |
| | | cell.CCLineHaulCost( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.CCLineHaulCost() ) ); |
| | | cell.CCShortDistanceTransportationCosts( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.CCShortDistanceTransportationCosts() ) ); |
| | | cell.DLStorageFeesForRentedWarehouses( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.DLStorageFeesForRentedWarehouses() ) ); |
| | | cell.DLOutboundExpensesForRentedWarehouses( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.DLOutboundExpensesForRentedWarehouses() ) ); |
| | | cell.DLExternalRentalWarehouseTransportationCosts( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.DLExternalRentalWarehouseTransportationCosts() ) ); |
| | | cell.DLRentalWarehouseStorageFees( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.DLRentalWarehouseStorageFees() ) ); |
| | | cell.CleaningCost( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.CleaningCost() ) ); |
| | | cell.EstimatedTotalCost( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.EstimatedTotalCost() ) ); |
| | | cell.Coefficient( 1.05 ); |
| | | cell.TotalCost( sum( dlerr, DL_EngineRackCell, tempDLERCell, not tempDLERCell.DL_EngineRackColumn().StartDate().IsMaxInfinity(), tempDLERCell.TotalCost() ) ); |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Export ( |
| | | MacroPlan macroPlan |
| | | ) as BinaryValue |
| | | { |
| | | TextBody: |
| | | [* |
| | | xmlDOMI := XMLDOMImplementation::Create(); |
| | | xmlDOM := xmlDOMI.CreateDocumentFromString( '<?xml version="1.0" encoding="UTF-16"?><table><name>Sheet1</name></table>' ); |
| | | |
| | | tableElement := xmlDOM.GetElementByTagName( "table", 0 ); |
| | | |
| | | // 第ä¸åï¼åç§°ï¼ |
| | | dlerrs := selectsortedset( macroPlan, DL_EngineRackRow, tempDLERR, true, tempDLERR.Index(), tempDLERR.Name() ); |
| | | firstColumn := xmlDOM.CreateElement( "column" ); |
| | | firstName := xmlDOM.CreateElement( "name" ); |
| | | firstType := xmlDOM.CreateElement( "type" ); |
| | | firstName.TextContent( "*" ); |
| | | firstType.TextContent( "String" ); |
| | | firstColumn.AppendChild( firstName ); |
| | | firstColumn.AppendChild( firstType ); |
| | | traverse ( dlerrs, Elements, dlerr ) { |
| | | firstCell := xmlDOM.CreateElement( "cell" ); |
| | | firstCell.SetAttribute( "value", dlerr.Name() ); |
| | | firstColumn.AppendChild( firstCell ); |
| | | |
| | | for ( i := 0; i < 14; i++ ) { |
| | | firstCell := xmlDOM.CreateElement( "cell" ); |
| | | firstCell.SetAttribute( "value", "" ); |
| | | firstColumn.AppendChild( firstCell ); |
| | | } |
| | | } |
| | | tableElement.AppendChild( firstColumn ); |
| | | |
| | | |
| | | // 第äºå |
| | | attrs := construct( Strings ); attrs.Add( "ææ¶æ»æ°é" ); attrs.Add( "ç©ºææ¶æ°é" ); attrs.Add( "CCå¤ç§åºå
¥åºè´¹ç¨" ); attrs.Add( "CCå¤ç§åºåºåºè´¹ç¨" ); attrs.Add( "CCå¤ç§åºä»å¨è´¹ç¨" ); |
| | | attrs.Add( "CCé¿éè¿è¾è´¹ç¨" ); attrs.Add( "CCçéè¿è¾è´¹ç¨" ); attrs.Add( "DLå¤ç§åºå
¥åºè´¹ç¨" ); attrs.Add( "DLå¤ç§åºåºåºè´¹ç¨" ); attrs.Add( "DLå¤ç§åºè¿è¾è´¹ç¨" ); |
| | | attrs.Add( "å¤ç§åºä»å¨è´¹ç¨" ); attrs.Add( "æ¸
æ´è´¹ç¨" ); attrs.Add( "é¢è®¡æ»è´¹ç¨" ); attrs.Add( "ç³»æ°" ); attrs.Add( "æ»è´¹ç¨" ); |
| | | secondColumn := xmlDOM.CreateElement( "column" ); |
| | | secondName := xmlDOM.CreateElement( "name" ); |
| | | secondType := xmlDOM.CreateElement( "type" ); |
| | | secondName.TextContent( "*" ); |
| | | secondType.TextContent( "String" ); |
| | | secondColumn.AppendChild( secondName ); |
| | | secondColumn.AppendChild( secondType ); |
| | | for ( i := 0; i < dlerrs.Size(); i++ ) { |
| | | traverse ( attrs, Elements, attr ) { |
| | | secondCell := xmlDOM.CreateElement( "cell" ); |
| | | secondCell.SetAttribute( "value", attr ); |
| | | secondColumn.AppendChild( secondCell ); |
| | | } |
| | | } |
| | | tableElement.AppendChild( secondColumn ); |
| | | |
| | | // æ¶é´å |
| | | dlercs := selectsortedset( macroPlan, DL_EngineRackColumn, tempDLERC, true, tempDLERC.StartDate() ); |
| | | traverse ( dlercs, Elements, dlerc ) { |
| | | cellColumn := xmlDOM.CreateElement( "column" ); |
| | | cellName := xmlDOM.CreateElement( "name" ); |
| | | cellType := xmlDOM.CreateElement( "type" ); |
| | | cellName.TextContent( dlerc.DisplayName() ); |
| | | cellType.TextContent( "Real" ); |
| | | cellColumn.AppendChild( cellName ); |
| | | cellColumn.AppendChild( cellType ); |
| | | cells := selectsortedset( dlerc, DL_EngineRackCell, tempDLERCell, true, tempDLERCell.DL_EngineRackRow().Index(), tempDLERCell.DL_EngineRackRow().Name() ); |
| | | traverse ( cells, Elements, c ) { |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.TotalQuantityOfMaterialRacks().Round( 0 ) ); // ææ¶æ»æ°é |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.NumberOfEmptyShelves().Round( 0 ) ); // ç©ºææ¶æ°é |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.CCStorageFeesForRentedWarehouses().Round( 0 ) ); // CCå¤ç§åºå
¥åºè´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.CCOutboundExpensesForRentedWarehouses().Round( 0 ) ); // CCå¤ç§åºåºåºè´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.CCRentalWarehouseStorageFees().Round( 0 ) ); // CCå¤ç§åºä»å¨è´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.CCLineHaulCost().Round( 0 ) ); // CCé¿éè¿è¾è´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.CCShortDistanceTransportationCosts().Round( 0 ) ); // CCçéè¿è¾è´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.DLStorageFeesForRentedWarehouses().Round( 0 ) ); // DLå¤ç§åºå
¥åºè´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.DLOutboundExpensesForRentedWarehouses().Round( 0 ) ); // DLå¤ç§åºåºåºè´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.DLExternalRentalWarehouseTransportationCosts().Round( 0 ) ); // DLå¤ç§åºè¿è¾è´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.DLRentalWarehouseStorageFees().Round( 0 ) ); // å¤ç§åºä»å¨è´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.CleaningCost().Round( 0 ) ); // æ¸
æ´è´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.EstimatedTotalCost().Round( 0 ) ); // é¢è®¡æ»è´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.Coefficient().Round( 2 ) ); // ç³»æ° |
| | | cellColumn.AppendChild( cell ); |
| | | |
| | | cell := xmlDOM.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", [String]c.TotalCost().Round( 0 ) ); // æ»è´¹ç¨ |
| | | cellColumn.AppendChild( cell ); |
| | | } |
| | | tableElement.AppendChild( cellColumn ); |
| | | } |
| | | |
| | | xmlString := xmlDOMI.CreateSerializer().WriteToString( xmlDOM ) |
| | | |
| | | //info( xmlString ); |
| | | |
| | | tableGroupHandle := TableGroupHandle::Create( "Sheet1" ); |
| | | tableHandle := TableHandle::ImportXML( BinaryValue::Construct( xmlString ) ); |
| | | tableGroupHandle.Add( tableHandle ); |
| | | |
| | | binaryData := XLS::SaveTableGroupToBinaryData( tableGroupHandle, true ); |
| | | |
| | | return binaryData.AsBinaryValue(); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Import ( |
| | | MacroPlan macroPlan, |
| | | GeneralExcelImportAndExportDataTable table |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | isUpdateFlag := ""; |
| | | attributeUpdateFlag := ""; |
| | | |
| | | traverse ( table, GeneralExcelImportAndExportDataRow, row ) { |
| | | traverse ( table, GeneralExcelImportAndExportDataColumn, column ) { |
| | | // åå
æ ¼å¼ |
| | | cellValue := select( row, GeneralExcelImportAndExportDataCell, tempGEIAEDCell, tempGEIAEDCell.GeneralExcelImportAndExportDataColumn() = column ).Value(); |
| | | // é¿æ¥ææ¶æ¥è¡¨å |
| | | dlerc := select( macroPlan, DL_EngineRackColumn, tempDLERC, tempDLERC.DisplayName() = column.Name() ); |
| | | cell := select( macroPlan, DL_EngineRackRow.DL_EngineRackCell, tempDLERCell, tempDLERCell.DL_EngineRackRow().Generation() = "SUM" and tempDLERCell.DL_EngineRackColumn() = dlerc ); |
| | | |
| | | if ( column.ColumnIndex() = 0 and cellValue <> "" ) { |
| | | isUpdateFlag := cellValue; |
| | | } |
| | | |
| | | if ( column.ColumnIndex() = 1 and cellValue <> "" ) { |
| | | attributeUpdateFlag := cellValue; |
| | | } |
| | | |
| | | if ( isUpdateFlag = "SUM" ) { |
| | | info( "åå
æ ¼å¼ï¼", cellValue ); |
| | | if ( attributeUpdateFlag = "ææ¶æ»æ°é" and not isnull( cell ) ) { |
| | | if ( not cell.IsTotalQuantityOfMaterialRacks() and cell.TotalQuantityOfMaterialRacks() <> [Real]cellValue ) { |
| | | cell.IsTotalQuantityOfMaterialRacks( true ); |
| | | } |
| | | cell.TotalQuantityOfMaterialRacks( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "ç©ºææ¶æ°é" and not isnull( cell ) ) { |
| | | if ( not cell.IsNumberOfEmptyShelves() and cell.NumberOfEmptyShelves() <> [Real]cellValue ) { |
| | | cell.IsNumberOfEmptyShelves( true ); |
| | | } |
| | | cell.NumberOfEmptyShelves( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "CCå¤ç§åºå
¥åºè´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsCCStorageFeesForRentedWarehouses() and cell.CCStorageFeesForRentedWarehouses() <> [Real]cellValue ) { |
| | | cell.IsCCStorageFeesForRentedWarehouses( true ); |
| | | } |
| | | cell.CCStorageFeesForRentedWarehouses( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "CCå¤ç§åºåºåºè´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsCCOutboundExpensesForRentedWarehouses() and cell.CCOutboundExpensesForRentedWarehouses() <> [Real]cellValue ) { |
| | | cell.IsCCOutboundExpensesForRentedWarehouses( true ); |
| | | } |
| | | cell.CCOutboundExpensesForRentedWarehouses( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "CCå¤ç§åºä»å¨è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsCCRentalWarehouseStorageFees() and cell.CCRentalWarehouseStorageFees() <> [Real]cellValue ) { |
| | | cell.IsCCRentalWarehouseStorageFees( true ); |
| | | } |
| | | cell.CCRentalWarehouseStorageFees( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "CCé¿éè¿è¾è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsCCLineHaulCost() and cell.CCLineHaulCost() <> [Real]cellValue ) { |
| | | cell.IsCCLineHaulCost( true ); |
| | | } |
| | | cell.CCLineHaulCost( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "CCçéè¿è¾è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsCCShortDistanceTransportationCosts() and cell.CCShortDistanceTransportationCosts() <> [Real]cellValue ) { |
| | | cell.IsCCShortDistanceTransportationCosts( true ); |
| | | } |
| | | cell.CCShortDistanceTransportationCosts( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "DLå¤ç§åºå
¥åºè´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsDLStorageFeesForRentedWarehouses() and cell.DLStorageFeesForRentedWarehouses() <> [Real]cellValue ) { |
| | | cell.IsDLStorageFeesForRentedWarehouses( true ); |
| | | } |
| | | cell.DLStorageFeesForRentedWarehouses( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "DLå¤ç§åºåºåºè´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsDLOutboundExpensesForRentedWarehouses() and cell.DLOutboundExpensesForRentedWarehouses() <> [Real]cellValue ) { |
| | | cell.IsDLOutboundExpensesForRentedWarehouses( true ); |
| | | } |
| | | cell.DLOutboundExpensesForRentedWarehouses( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "DLå¤ç§åºè¿è¾è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsDLExternalRentalWarehouseTransportationCosts() and cell.DLExternalRentalWarehouseTransportationCosts() <> [Real]cellValue ) { |
| | | cell.IsDLExternalRentalWarehouseTransportationCosts( true ); |
| | | } |
| | | cell.DLExternalRentalWarehouseTransportationCosts( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "å¤ç§åºä»å¨è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsDLRentalWarehouseStorageFees() and cell.DLRentalWarehouseStorageFees() <> [Real]cellValue ) { |
| | | cell.IsDLRentalWarehouseStorageFees( true ); |
| | | } |
| | | cell.DLRentalWarehouseStorageFees( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "æ¸
æ´è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsCleaningCost() and cell.CleaningCost() <> [Real]cellValue ) { |
| | | cell.IsCleaningCost( true ); |
| | | } |
| | | cell.CleaningCost( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "é¢è®¡æ»è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsEstimatedTotalCost() and cell.EstimatedTotalCost() <> [Real]cellValue ) { |
| | | cell.IsEstimatedTotalCost( true ); |
| | | } |
| | | cell.EstimatedTotalCost( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "ç³»æ°" and not isnull( cell ) ) { |
| | | if ( not cell.IsCoefficient() and cell.Coefficient() <> [Real]cellValue ) { |
| | | cell.IsCoefficient( true ); |
| | | } |
| | | cell.Coefficient( [Real]cellValue ); |
| | | } else if ( attributeUpdateFlag = "æ»è´¹ç¨" and not isnull( cell ) ) { |
| | | if ( not cell.IsTotalCost() and cell.TotalCost() <> [Real]cellValue ) { |
| | | cell.IsTotalCost( true ); |
| | | } |
| | | cell.TotalCost( [Real]cellValue ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DisplayName |
| | | { |
| | | #keys: '3[415754.0.459254782][415754.0.459254781][415754.0.459254783]' |
| | | Description: 'åæ¾ç¤º' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Function CalcDisplayName |
| | | { |
| | | TextBody: |
| | | [* |
| | | value := ifexpr( this.StartDate().IsMaxInfinity(), "SUM", this.StartDate().Format( "Y-M2-D2" ) ); |
| | | |
| | | this.DisplayName( value ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Index |
| | | { |
| | | #keys: '3[415754.0.459217915][415754.0.459217914][415754.0.459217916]' |
| | | Description: 'æåºç´¢å¼' |
| | | ValueType: Number |
| | | } |
| | |
| | | [* |
| | | // lihongji Aug-12-2024 (created) |
| | | |
| | | value := this.Generation() + " " + this.MLB_MQB(); |
| | | value := this.Generation() + ifexpr( this.MLB_MQB() <> "", " " + this.MLB_MQB(), "" ); |
| | | |
| | | this.Name( value ); |
| | | *] |
| | |
| | | { |
| | | AttributeKey: '[413988.0.1476832733]' |
| | | Synonym: 'æ¸
æ´è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsUpdateCleaningCost()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation Coefficient |
| | | { |
| | |
| | | Synonym: 'ç³»æ°' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsUpdateCoefficient()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | DataRepresentation.Default |
| | | { |
| | |
| | | { |
| | | AttributeKey: '[413988.0.1476832743]' |
| | | Synonym: 'é¢è®¡æ»è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsUpdateEstimatedTotalCost()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation ExternalRentalWarehouseTransportationCosts |
| | | { |
| | | AttributeKey: '[413988.0.1476832710]' |
| | | Synonym: 'å¤ç§åºè¿è¾è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsUpdateExternalRentalWarehouseTransportationCosts()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation NumberOfEmptyShelves |
| | | { |
| | | AttributeKey: '[413988.0.1476832677]' |
| | | Synonym: 'ç©ºææ¶æ°é' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsUpdateNumberOfEmptyShelves()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation OutboundExpensesForRentedWarehouses |
| | | { |
| | | AttributeKey: '[413988.0.1476832700]' |
| | | Synonym: 'å¤ç§åºåºåºè´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsUpdateOutboundExpensesForRentedWarehouses()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation RentalWarehouseStorageFees |
| | | { |
| | | AttributeKey: '[413988.0.1476832723]' |
| | | Synonym: 'å¤ç§åºä»å¨è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsUpdateRentalWarehouseStorageFees()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation StorageFeesForRentedWarehouses |
| | | { |
| | | AttributeKey: '[413988.0.1476832690]' |
| | | Synonym: 'å¤ç§åºå
¥åºè´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsUpdateStorageFeesForRentedWarehouses()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation TotalCost |
| | | { |
| | | AttributeKey: '[413988.0.1476832756]' |
| | | Synonym: 'æ»è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsUpdateTotalCost()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation TotalQuantityOfMaterialRacks |
| | | { |
| | | AttributeKey: '[413988.0.1476832664]' |
| | | Synonym: 'ææ¶æ»æ°é' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsUpdateTotalQuantityOfMaterialRacks()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | RelationRepresentation CC_EngineRackColumn { RelationKey: '[413988.0.1476832593]' Visibility: 'Normal' } |
| | | } |
| | |
| | | { |
| | | AttributeKey: '[413988.0.1488160126]' |
| | | Synonym: 'CCé¿éè¿è¾è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsCCLineHaulCost()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation CCOutboundExpensesForRentedWarehouses |
| | | { |
| | | AttributeKey: '[413988.0.1488160087]' |
| | | Synonym: 'CCå¤ç§åºåºåºè´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsCCOutboundExpensesForRentedWarehouses()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation CCRentalWarehouseStorageFees |
| | | { |
| | | AttributeKey: '[413988.0.1488160084]' |
| | | Synonym: 'CCå¤ç§åºä»å¨è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsCCRentalWarehouseStorageFees()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation CCShortDistanceTransportationCosts |
| | | { |
| | | AttributeKey: '[413988.0.1488160139]' |
| | | Synonym: 'CCçéè¿è¾è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsCCShortDistanceTransportationCosts()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation CCStorageFeesForRentedWarehouses |
| | | { |
| | | AttributeKey: '[413988.0.1488160081]' |
| | | Synonym: 'CCå¤ç§åºå
¥åºè´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsCCStorageFeesForRentedWarehouses()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation CleaningCost |
| | | { |
| | | AttributeKey: '[413988.0.1488160069]' |
| | | Synonym: 'æ¸
æ´è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsCleaningCost()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation Coefficient |
| | | { |
| | |
| | | Synonym: 'ç³»æ°' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsCoefficient()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | DataRepresentation.Default |
| | | { |
| | |
| | | { |
| | | AttributeKey: '[413988.0.1488160119]' |
| | | Synonym: 'DLå¤ç§åºè¿è¾è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsDLExternalRentalWarehouseTransportationCosts()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation DLOutboundExpensesForRentedWarehouses |
| | | { |
| | | AttributeKey: '[413988.0.1488160106]' |
| | | Synonym: 'DLå¤ç§åºåºåºè´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsDLOutboundExpensesForRentedWarehouses()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation DLRentalWarehouseStorageFees |
| | | { |
| | | AttributeKey: '[413988.0.1488160103]' |
| | | Synonym: 'å¤ç§åºä»å¨è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsDLRentalWarehouseStorageFees()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation DLStorageFeesForRentedWarehouses |
| | | { |
| | | AttributeKey: '[413988.0.1488160100]' |
| | | Synonym: 'DLå¤ç§åºå
¥åºè´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsDLStorageFeesForRentedWarehouses()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation EstimatedTotalCost |
| | | { |
| | | AttributeKey: '[413988.0.1488160066]' |
| | | Synonym: 'é¢è®¡æ»è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsEstimatedTotalCost()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation NumberOfEmptyShelves |
| | | { |
| | | AttributeKey: '[413988.0.1488160058]' |
| | | Synonym: 'ç©ºææ¶æ°é' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsNumberOfEmptyShelves()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation TotalCost |
| | | { |
| | | AttributeKey: '[413988.0.1488160072]' |
| | | Synonym: 'æ»è´¹ç¨' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsTotalCost()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation TotalQuantityOfMaterialRacks |
| | | { |
| | | AttributeKey: '[413988.0.1488160062]' |
| | | Synonym: 'ææ¶æ»æ°é' |
| | | Conditional: |
| | | [ |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF3399' |
| | | ConditionBody: 'object.IsTotalQuantityOfMaterialRacks()' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | RelationRepresentation DL_EngineRackColumn { RelationKey: '[413988.0.1488132648]' Visibility: 'Normal' } |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Legend: 'StartDate' |
| | | Legend: 'DisplayName' |
| | | SortCriteria: 'StartDate' |
| | | Taborder: 2 |
| | | ] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: MatrixEditor531 |
| | | Response OnCheckEditability () id:Response_MatrixEditor531_OnCheckEditability |
| | | { |
| | | #keys: '[415754.0.470111247]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMatrixEditor_OnCheckEditability' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | cond := focusedattribute = "TotalQuantityOfMaterialRacks"; |
| | | |
| | | editinfo.CanEdit( cond ); |
| | | editinfo.UserHint( ifexpr( cond, "", "ä¸è½ä¿®æ¹" ) ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: MatrixEditor531 |
| | | Response OnUpdateValue ( |
| | | CC_EngineRackCell cell, |
| | | Real value |
| | | ) id:Response_MatrixEditor531_OnUpdateValue |
| | | { |
| | | #keys: '[415754.0.469051167]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMatrixEditor_OnUpdateValue' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | cell.SetTheTotalQuantity( value ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Legend: 'StartDate' |
| | | Legend: 'DisplayName' |
| | | SortCriteria: 'StartDate' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bImport id:bImport_549 |
| | | { |
| | | #keys: '[415754.0.469011898]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'IMPORT1' |
| | | Label: '导å
¥' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component bExport id:bExport_715 |
| | | { |
| | | #keys: '[415754.0.469011958]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Label: '导åº' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: MatrixEditor392 |
| | | Response OnCheckEditability () id:Response_MatrixEditor392_OnCheckEditability |
| | | { |
| | | #keys: '[415754.0.469021886]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMatrixEditor_OnCheckEditability' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | cond := focusedattribute = "TotalQuantityOfMaterialRacks"; |
| | | |
| | | editinfo.CanEdit( cond ); |
| | | editinfo.UserHint( ifexpr( cond, "", "ä¸è½ä¿®æ¹" ) ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: MatrixEditor392 |
| | | Response OnUpdateValue ( |
| | | DL_EngineRackCell cell, |
| | | Real value |
| | | ) id:Response_MatrixEditor392_OnUpdateValue |
| | | { |
| | | #keys: '[415754.0.469021864]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMatrixEditor_OnUpdateValue' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | cell.SetTheTotalQuantity( value ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader/bExport_715 |
| | | Response OnClick () id:Response_pHeader_bExport_OnClick_844 |
| | | { |
| | | #keys: '[415754.0.469011957]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | binaryValue := DL_EngineRackCell::Export( MacroPlan ); |
| | | |
| | | Application.Download( "大è¿å卿ºææ¶æ¥è¡¨.xlsx", binaryValue.AsBinaryData() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pHeader/bImport_549 |
| | | Response OnClick () id:Response_pHeader_bImport_OnClick_593 |
| | | { |
| | | #keys: '[415754.0.469011897]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | try { |
| | | uploadJsonString := Application.GetFile(); |
| | | if ( uploadJsonString <> "" ) { |
| | | uploadJson := JSON::Parse( uploadJsonString ); |
| | | Archive::VerifyTheFileName( uploadJson ); |
| | | |
| | | fileName := uploadJson.Get( "name" ).GetString(); |
| | | base64String := uploadJson.Get( "data" ).GetString(); |
| | | |
| | | webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ).AsBinaryValue(); |
| | | |
| | | generalExcelImportAndExportDataSource := GeneralExcelImportAndExportDataSource::Upload( RecycleBin, webFileBinaryData, fileName ); |
| | | generalExcelImportAndExportDataSource.ReadStructure(); |
| | | |
| | | selection := select( generalExcelImportAndExportDataSource, GeneralExcelImportAndExportDataTable, tempGEIAEDT, tempGEIAEDT.Name() = "Sheet1" ); |
| | | |
| | | DL_EngineRackCell::Import( MacroPlan, selection ); |
| | | |
| | | // åç»å é¤ |
| | | generalExcelImportAndExportDataSource.Delete(); |
| | | |
| | | WebMessageBox::Success( Translations::A_VWED_Success() ); |
| | | } |
| | | } onerror { |
| | | WebMessageBox::Error( e.GeneralInformation() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormDL_EngineRackReport_MatrixEditor392 |
| | | { |
| | | gridColor: '#c4c4c4' |
| | | totalHeaderWidth: 222 |
| | | attributeHeaderWidthRatio: 0.6 |
| | | nameHeaderWidthRatio: 0.4 |
| | | columnWidth: 100 |
| | | horizontalGrid: true |
| | | verticalGrid: true |
| | | backendState |
| | | { |
| | | componentId: 'QMacroPlanner::FormDL_EngineRackReport.MatrixEditor392' |
| | | state |
| | | { |
| | | cells |
| | | { |
| | | attributes |
| | | { |
| | | attribute_TotalQuantityOfMaterialRacks |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 0 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'TotalQuantityOfMaterialRacks' |
| | | } |
| | | attribute_NumberOfEmptyShelves |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 1 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'NumberOfEmptyShelves' |
| | | } |
| | | attribute_CCStorageFeesForRentedWarehouses |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 2 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'CCStorageFeesForRentedWarehouses' |
| | | } |
| | | attribute_CCOutboundExpensesForRentedWarehouses |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 3 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'CCOutboundExpensesForRentedWarehouses' |
| | | } |
| | | attribute_CCRentalWarehouseStorageFees |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 4 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'CCRentalWarehouseStorageFees' |
| | | } |
| | | attribute_CCLineHaulCost |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 5 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'CCLineHaulCost' |
| | | } |
| | | attribute_CCShortDistanceTransportationCosts |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 6 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'CCShortDistanceTransportationCosts' |
| | | } |
| | | attribute_DLStorageFeesForRentedWarehouses |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 7 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'DLStorageFeesForRentedWarehouses' |
| | | } |
| | | attribute_DLOutboundExpensesForRentedWarehouses |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 8 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'DLOutboundExpensesForRentedWarehouses' |
| | | } |
| | | attribute_DLExternalRentalWarehouseTransportationCosts |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 9 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'DLExternalRentalWarehouseTransportationCosts' |
| | | } |
| | | attribute_DLRentalWarehouseStorageFees |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 10 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'DLRentalWarehouseStorageFees' |
| | | } |
| | | attribute_CleaningCost |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 11 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'CleaningCost' |
| | | } |
| | | attribute_EstimatedTotalCost |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 12 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'EstimatedTotalCost' |
| | | } |
| | | attribute_Coefficient |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 13 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'Coefficient' |
| | | } |
| | | attribute_TotalCost |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 14 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'TotalCost' |
| | | } |
| | | } |
| | | } |
| | | columns |
| | | { |
| | | sorting |
| | | { |
| | | criteria: "datamember:'StartDate'" |
| | | } |
| | | } |
| | | rows |
| | | { |
| | | sorting |
| | | { |
| | | criteria: "datamember:'Name'" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_FormGeneralSettings |