已修改66个文件
已添加18个文件
已删除5个文件
| | |
| | | { |
| | | TargetType: ChangeLossSettingExcel |
| | | EDIMLColumn ChangeLossNumber { Attribute: ChangeLossNumber ValueType: String } |
| | | EDIMLColumn EndDate { Attribute: EndDate ValueType: Date } |
| | | EDIMLColumn Product1 { Attribute: Product1 ValueType: String } |
| | | EDIMLColumn Product2 { Attribute: Product2 ValueType: String } |
| | | EDIMLColumn StartDate { Attribute: StartDate ValueType: Date } |
| | | EDIMLColumn Unit { Attribute: Unit ValueType: String } |
| | | } |
| | | } |
| | |
| | | InputTable: ChangeLossSettingExcel |
| | | OutputTable: ChangeoverLossSetting |
| | | EDIColumnMatch { InputColumn: ChangeLossNumber OutputColumn: ChangeLossNumber } |
| | | EDIColumnMatch { InputColumn: EndDate OutputColumn: EndDate } |
| | | EDIColumnMatch { InputColumn: Product1 OutputColumn: Product1 } |
| | | EDIColumnMatch { InputColumn: Product2 OutputColumn: Product2 } |
| | | EDIColumnMatch { InputColumn: StartDate OutputColumn: StartDate } |
| | | EDIColumnMatch { InputColumn: Unit OutputColumn: Unit } |
| | | } |
| | | } |
| | |
| | | EDIXLSLinkColumn Product1 { ValueType: String } |
| | | EDIXLSLinkColumn Product2 { ValueType: String } |
| | | EDIXLSLinkColumn Unit { ValueType: String } |
| | | EDIXLSLinkColumn StartDate { ValueType: Date } |
| | | EDIXLSLinkColumn EndDate { ValueType: Date } |
| | | EDIXLSLinkColumn ChangeLossNumber { ValueType: String } |
| | | ] |
| | | } |
| | |
| | | { |
| | | EDIMLTable ChangeLossSettingExcel |
| | | { |
| | | PrimaryKeyColumns: EndDate |
| | | PrimaryKeyColumns: Product1 |
| | | PrimaryKeyColumns: Product2 |
| | | PrimaryKeyColumns: StartDate |
| | | PrimaryKeyColumns: Unit |
| | | TargetType: ChangeLossSettingExcel |
| | | TypeIndex: ChangeLossSettingTypeIndex |
| | | EDIMLColumn ChangeLossNumber { Attribute: ChangeLossNumber ValueType: String } |
| | | EDIMLColumn EndDate { Attribute: EndDate ValueType: Date } |
| | | EDIMLColumn Product1 { Attribute: Product1 ValueType: String } |
| | | EDIMLColumn Product2 { Attribute: Product2 ValueType: String } |
| | | EDIMLColumn StartDate { Attribute: StartDate ValueType: Date } |
| | | EDIMLColumn Unit { Attribute: Unit ValueType: String } |
| | | } |
| | | } |
| | |
| | | InputTable: ChangeoverLossSetting |
| | | OutputTable: ChangeLossSettingExcel |
| | | EDIColumnMatch { InputColumn: ChangeLossNumber OutputColumn: ChangeLossNumber } |
| | | EDIColumnMatch { InputColumn: EndDate OutputColumn: EndDate } |
| | | EDIColumnMatch { InputColumn: Product1 OutputColumn: Product1 } |
| | | EDIColumnMatch { InputColumn: Product2 OutputColumn: Product2 } |
| | | EDIColumnMatch { InputColumn: StartDate OutputColumn: StartDate } |
| | | EDIColumnMatch { InputColumn: Unit OutputColumn: Unit } |
| | | } |
| | | } |
| | |
| | | EDIXLSLinkColumn Product2 { ValueType: String } |
| | | EDIXLSLinkColumn Unit { ValueType: String } |
| | | EDIXLSLinkColumn ChangeLossNumber { ValueType: String } |
| | | EDIXLSLinkColumn StartDate { ValueType: Date } |
| | | EDIXLSLinkColumn EndDate { ValueType: Date } |
| | | ] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation EnginePipelineSearch_MacroPlan_MacroPlan_EnginePipelineSearch |
| | | { |
| | | #keys: '1[415136.0.1155410815]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[415136.0.1155410817][415136.0.1155410816][415136.0.1155410818]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: EnginePipelineSearch |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide EnginePipelineSearch |
| | | { |
| | | #keys: '3[415136.0.1155410820][415136.0.1155410819][415136.0.1155410821]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation FinancialProductionSearch_MacroPlan_MacroPlan_FinancialProductionSearch |
| | | { |
| | | #keys: '1[415136.0.1155603424]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[415136.0.1155603426][415136.0.1155603425][415136.0.1155603427]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: FinancialProductionSearch |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide FinancialProductionSearch |
| | | { |
| | | #keys: '3[415136.0.1155603429][415136.0.1155603428][415136.0.1155603430]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation FinancialSalesSearch_MacroPlan_MacroPlan_FinancialSalesSearch |
| | | { |
| | | #keys: '1[415136.0.1155410792]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[415136.0.1155410794][415136.0.1155410793][415136.0.1155410795]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: FinancialSalesSearch |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide FinancialSalesSearch |
| | | { |
| | | #keys: '3[415136.0.1155410797][415136.0.1155410796][415136.0.1155410798]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation InventorySummarySearch_MacroPlan_MacroPlan_InventorySummarySearch |
| | | { |
| | | #keys: '1[415136.0.1155603461]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[415136.0.1155603463][415136.0.1155603462][415136.0.1155603464]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: InventorySummarySearch |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide InventorySummarySearch |
| | | { |
| | | #keys: '3[415136.0.1155603466][415136.0.1155603465][415136.0.1155603467]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation MachiningPipelineSearch_MacroPlan_MacroPlan_MachiningPipelineSearch |
| | | { |
| | | #keys: '1[415136.0.1155410837]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[415136.0.1155410839][415136.0.1155410838][415136.0.1155410840]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: MachiningPipelineSearch |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide MachiningPipelineSearch |
| | | { |
| | | #keys: '3[415136.0.1155410842][415136.0.1155410841][415136.0.1155410843]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Import ( |
| | | MacroPlan owner, |
| | | RecycleBin recycle, |
| | | BinaryValue binaryValue, |
| | | String filePath |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Sep-20-2024 (created) |
| | | name := CCEngineLogisticsCostReport::GetDefaultName(); |
| | | source := GeneralExcelImportAndExportDataSource::Upload( recycle, binaryValue, OS::TempPath() + "template.xlsx" ); |
| | | source.ReadStructure(); |
| | | Transaction::Transaction().Propagate( attribute( GeneralExcelImportAndExportDataColumn, ColumnIndex ) ); |
| | | |
| | | //æ¸
空导å
¥ä¹åç表 |
| | | owner.CCEngineLogisticsCostReport( relflush ); |
| | | cnv2 := StringToDate::StandardConverter(); |
| | | cnv2.SetCustomConversion(); |
| | | cnv2.CustomFormatString( "M2/D2/Y" ); |
| | | |
| | | products := construct( Product_MPs ); |
| | | productcolumn := selectobject( source, GeneralExcelImportAndExportDataTable.GeneralExcelImportAndExportDataColumn, column, column.ColumnIndex() = 0 ); |
| | | attricolumn := selectobject( source, GeneralExcelImportAndExportDataTable.GeneralExcelImportAndExportDataColumn, column, column.ColumnIndex() = 1 ); |
| | | //çææ°è¡¨çæ¥æå |
| | | table := owner.CCEngineLogisticsCostReport( relnew, ID := name, Name := name ); |
| | | showtable := owner.CCEngineLogisticsCostReport( relnew, ID := name + 'Show', Name := name, IsShow := true ); |
| | | table.GenerateColumn( owner ); |
| | | traverse( source, GeneralExcelImportAndExportDataTable.GeneralExcelImportAndExportDataRow, excelrow ){ |
| | | productcell := selectobject( excelrow, GeneralExcelImportAndExportDataCell, excelcell, excelcell.GeneralExcelImportAndExportDataColumn() = productcolumn ); |
| | | //å¤çæªè¢«åæ¥ç产å |
| | | if( not exists( products, Elements, product, product.ID() = productcell.Value() ) ){ |
| | | product := selectobject( owner, Product_MP, product, product.ID() = productcell.Value() ); |
| | | products.Add( product ); |
| | | ccrow := table.GetRow( productcell.Value() ); |
| | | //è·åç¸åç产å |
| | | sameproductcells := selectset( productcolumn, GeneralExcelImportAndExportDataCell, excelcell, excelcell.Value() = productcell.Value() ); |
| | | //仿¥æåå¼å§å¤ç |
| | | traverse( excelrow, GeneralExcelImportAndExportDataCell, excelcell, excelcell.GeneralExcelImportAndExportDataColumn().ColumnIndex() > 1 ){ |
| | | excelcolumn := excelcell.GeneralExcelImportAndExportDataColumn(); |
| | | column := selectobject( table, Column, column, column.Name() = excelcolumn.Name() ); |
| | | cell := selectobject( ccrow, Cell, cell, cell.Column() = column ); |
| | | traverse( sameproductcells, Elements.GeneralExcelImportAndExportDataRow, samerow ){ |
| | | attricell := selectobject( samerow, GeneralExcelImportAndExportDataCell, attricell, attricell.GeneralExcelImportAndExportDataColumn() = attricolumn ); |
| | | if( not ( attricell.Value() = 'é¢è®¡æ»è´¹ç¨' or attricell.Value() = 'æ»è´¹ç¨' ) ){ |
| | | valuecell := selectobject( samerow, GeneralExcelImportAndExportDataCell, valuecell, valuecell.GeneralExcelImportAndExportDataColumn() = excelcolumn ); |
| | | if( attricell.Value() = 'å¤ç§åºå
¥åºè´¹ç¨' ){ |
| | | cell.RentEnterCost( [Number]valuecell.Value() ); |
| | | }else if( attricell.Value() = 'å¤ç§åºåºåºè´¹ç¨' ){ |
| | | cell.RentOutCost( [Number]valuecell.Value() ); |
| | | }else if( attricell.Value() = 'åå
å°å¤ç§åºè¿è¾è´¹ç¨' ){ |
| | | cell.FactoryToRentTransCost( [Number]valuecell.Value() ); |
| | | }else if( attricell.Value() = 'å¤ç§åºä»å¨è´¹ç¨' ){ |
| | | cell.RentStorageCost( [Number]valuecell.Value() ); |
| | | } |
| | | // else if( attricell.Value() = 'é¢è®¡æ»è´¹ç¨' ){ |
| | | // cell.EstimatedTotalCost( [Number]valuecell.Value() ); |
| | | // } |
| | | else if( attricell.Value() = 'ç³»æ°' ){ |
| | | cell.Coefficient( [Number]valuecell.Value() ); |
| | | } |
| | | // else if( attricell.Value() = 'æ»è´¹ç¨' ){ |
| | | // cell.TotalCost( [Number]valuecell.Value() ); |
| | | // } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | rows := selectsortedset( table, Row, row, row.Name() ); |
| | | i := 0; |
| | | traverse( rows, Elements, e ){ |
| | | e.RowNr( i ); |
| | | i := i + 1; |
| | | } |
| | | // |
| | | showtable.Generate( owner.CCEngineLogisticsCostSearch(), products ); |
| | | *] |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | //åå
å°å¤ç§åºè¿è¾è´¹ç¨ï¼ï¼å¨ trip planéæ¾å°é¿æ¥è£
é
线边åºå°é¿æ¥å¤ç§åºçè¿è¾æ°éï¼ï¼ï¼ç¨å
¬å¼è®¡ç®å¾åºç»æï¼æåº¦è¿è¡æ±æ» |
| | | //åå
å°å¤ç§åºè¿è¾è´¹ç¨ï¼ï¼å¨ trip planéæ¾å°é¿æ¥è£
é
线边åºå°é¿æ¥å¤ç§åºçè¿è¾æ°éï¼ï¼ï¼ç¨å
¬å¼è®¡ç®å¾åºç»æï¼æåº¦è¿è¡æ±æ»CC-MOMOå°é¿æ¥å¤ç§åº |
| | | traverse( owner, Unit.Lane.LaneLeg, laneleg ){ |
| | | //èµ·å§åºåç¹æ¯å¦æ¯é¿æ¥è£
é
çº¿è¾¹åº |
| | | originsp := selectobject( owner, StockingPoint_MP, sp, sp.ID() = laneleg.OriginStockingPointID() ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Import ( |
| | | MacroPlan owner, |
| | | RecycleBin recycle, |
| | | BinaryValue binaryValue, |
| | | String filePath |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Sep-20-2024 (created) |
| | | name := CCEngineLogisticsCostReport::GetDefaultName(); |
| | | source := GeneralExcelImportAndExportDataSource::Upload( recycle, binaryValue, OS::TempPath() + "template.xlsx" ); |
| | | source.ReadStructure(); |
| | | Transaction::Transaction().Propagate( attribute( GeneralExcelImportAndExportDataColumn, ColumnIndex ) ); |
| | | |
| | | //æ¸
空导å
¥ä¹åç表 |
| | | owner.DLEngineLogisticsCostReport( relflush ); |
| | | cnv2 := StringToDate::StandardConverter(); |
| | | cnv2.SetCustomConversion(); |
| | | cnv2.CustomFormatString( "M2/D2/Y" ); |
| | | |
| | | products := construct( Product_MPs ); |
| | | productcolumn := selectobject( source, GeneralExcelImportAndExportDataTable.GeneralExcelImportAndExportDataColumn, column, column.ColumnIndex() = 0 ); |
| | | attricolumn := selectobject( source, GeneralExcelImportAndExportDataTable.GeneralExcelImportAndExportDataColumn, column, column.ColumnIndex() = 1 ); |
| | | //çææ°è¡¨çæ¥æå |
| | | table := owner.DLEngineLogisticsCostReport( relnew, ID := name, Name := name ); |
| | | showtable := owner.DLEngineLogisticsCostReport( relnew, ID := name + 'Show', Name := name, IsShow := true ); |
| | | table.GenerateColumn( owner ); |
| | | traverse( source, GeneralExcelImportAndExportDataTable.GeneralExcelImportAndExportDataRow, excelrow ){ |
| | | productcell := selectobject( excelrow, GeneralExcelImportAndExportDataCell, excelcell, excelcell.GeneralExcelImportAndExportDataColumn() = productcolumn ); |
| | | //å¤çæªè¢«åæ¥ç产å |
| | | if( not exists( products, Elements, product, product.ID() = productcell.Value() ) ){ |
| | | product := selectobject( owner, Product_MP, product, product.ID() = productcell.Value() ); |
| | | products.Add( product ); |
| | | ccrow := table.GetRow( productcell.Value() ); |
| | | //è·åç¸åç产å |
| | | sameproductcells := selectset( productcolumn, GeneralExcelImportAndExportDataCell, excelcell, excelcell.Value() = productcell.Value() ); |
| | | //仿¥æåå¼å§å¤ç |
| | | traverse( excelrow, GeneralExcelImportAndExportDataCell, excelcell, excelcell.GeneralExcelImportAndExportDataColumn().ColumnIndex() > 1 ){ |
| | | excelcolumn := excelcell.GeneralExcelImportAndExportDataColumn(); |
| | | column := selectobject( table, Column, column, column.Name() = excelcolumn.Name() ); |
| | | cell := selectobject( ccrow, Cell, cell, cell.Column() = column ); |
| | | traverse( sameproductcells, Elements.GeneralExcelImportAndExportDataRow, samerow ){ |
| | | attricell := selectobject( samerow, GeneralExcelImportAndExportDataCell, attricell, attricell.GeneralExcelImportAndExportDataColumn() = attricolumn ); |
| | | if( not ( attricell.Value() = 'é¢è®¡æ»è´¹ç¨' or attricell.Value() = 'æ»è´¹ç¨' ) ){ |
| | | valuecell := selectobject( samerow, GeneralExcelImportAndExportDataCell, valuecell, valuecell.GeneralExcelImportAndExportDataColumn() = excelcolumn ); |
| | | if( attricell.Value() = 'é¿æ¥å¤ç§åºå
¥åºè´¹ç¨' ){ |
| | | cell.CCRentEnterCost( [Number]valuecell.Value() ); |
| | | }else if( attricell.Value() = 'é¿æ¥å¤ç§åºåºåºè´¹ç¨' ){ |
| | | cell.CCRentOutCost( [Number]valuecell.Value() ); |
| | | }else if( attricell.Value() = 'é¿æ¥é¿éè¿è¾è´¹ç¨' ){ |
| | | cell.CCLongTransCoat( [Number]valuecell.Value() ); |
| | | }else if( attricell.Value() = 'é¿æ¥çéè¿è¾è´¹ç¨' ){ |
| | | cell.CCShortTransCost( [Number]valuecell.Value() ); |
| | | }else if( attricell.Value() = 'é¿æ¥å¤ç§åºä»å¨è´¹ç¨' ){ |
| | | cell.CCRentStorageCost( [Number]valuecell.Value() ); |
| | | }else if( attricell.Value() = '大è¿å¤ç§åºå
¥åºè´¹ç¨' ){ |
| | | cell.DLRentEnterCost( [Number]valuecell.Value() ); |
| | | }else if( attricell.Value() = '大è¿å¤ç§åºåºåºè´¹ç¨' ){ |
| | | cell.DLRentOutCost( [Number]valuecell.Value() ); |
| | | }else if( attricell.Value() = 'åå
å°å¤ç§åºè¿è¾è´¹ç¨' ){ |
| | | cell.FactoryToDLRentTransCost( [Number]valuecell.Value() ); |
| | | }else if( attricell.Value() = '大è¿å¤ç§åºä»å¨è´¹ç¨' ){ |
| | | cell.DLRentStorageCost( [Number]valuecell.Value() ); |
| | | } |
| | | // else if( attricell.Value() = 'é¢è®¡æ»è´¹ç¨' ){ |
| | | // cell.EstimatedTotalCost( [Number]valuecell.Value() ); |
| | | // } |
| | | else if( attricell.Value() = 'ç³»æ°' ){ |
| | | cell.Coefficient( [Number]valuecell.Value() ); |
| | | } |
| | | // else if( attricell.Value() = 'æ»è´¹ç¨' ){ |
| | | // cell.TotalCost( [Number]valuecell.Value() ); |
| | | // } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | rows := selectsortedset( table, Row, row, row.Name() ); |
| | | i := 0; |
| | | traverse( rows, Elements, e ){ |
| | | e.RowNr( i ); |
| | | i := i + 1; |
| | | } |
| | | // |
| | | showtable.Generate( owner.DLEngineLogisticsCostSearch(), products ); |
| | | *] |
| | | } |
| | |
| | | |
| | | table.GenerateColumn( owner ); |
| | | //åå¾é¿æ¥çéééè¦å¨trip plané颿¾å°èµ·å§åºåç¹ä¸ºå¤§è¿è£
é
线边åºï¼ç®çå°ä¸ºé¿æ¥å¤ç§åºç产å ç®åºåå¾é¿æ¥çééåï¼å¨å卿ºææ¬åæ°è¡¨éæ¾å°å¯¹åºçå
è£
容éåé¿æ¥å
¥åºåä»·ï¼ç¨å
¬å¼è®¡ç®ï¼æåº¦è¿è¡æ±æ» |
| | | //å¨ trip planéæ¾å°å¤§è¿è£
é
线边åºå°å¤§è¿å¤ç§åºçè¿è¾æ°é |
| | | //å¨ trip planéæ¾å°å¤§è¿è£
é
线边åºå°å¤§è¿å¤ç§åºçè¿è¾æ°é//大è¿åå
åºå°å¤ç§åº |
| | | traverse( owner, Unit.Lane.LaneLeg, laneleg ){ |
| | | //èµ·å§åºåç¹æ¯å¦æ¯å¤§è¿è£
é
çº¿è¾¹åº |
| | | originsp := selectobject( owner, StockingPoint_MP, sp, sp.ID() = laneleg.OriginStockingPointID() ); |
| | |
| | | } |
| | | } |
| | | } |
| | | //大è¿å¤ç§åºå
¥åºè´¹ç¨ï¼å
¥åºé/å
è£
容é*å
¥åºåä»·ï¼å
¥åºéçäºå¤§è¿å·¥å该产å产éåå»åå¾é¿æ¥çæ°é |
| | | //大è¿å¤ç§åºå
¥åºè´¹ç¨ï¼å
¥åºé/å
è£
容é*å
¥åºåä»·ï¼å
¥åºéçäºå¤§è¿å·¥å该产å产éåå»åå¾é¿æ¥çæ°é-newSupply |
| | | traverse( owner, FinancialProductionSource, source, not source.IsImport() ){//è´¢å¡äº§éæ¥è¡¨é导å
¥ |
| | | traverse( source, FinancialProductionReport, report, not report.IsShow() ){//è´¢å¡äº§éæ¥è¡¨ä¸æ¾ç¤º |
| | | traverse( report, FinancialProductionRow, row, row.Unit() = dlunit and exists( row, FinancialProductionCell, cell, cell.Value() <> '0' and cell.FinancialProductionColumn().IsDay() ) ){//è´¢å¡äº§éæ¥è¡¨éç大è¿äº§é, ä¸ä¸º0 |
| | |
| | | } |
| | | } |
| | | } |
| | | //大è¿å¤ç§åºåºåºè´¹ç¨ï¼åºåºé/å
è£
容é*åºåºåä»·ï¼åºåºéçäºå¤§è¿å·¥å该产åééåå»åå¾é¿æ¥çæ°é |
| | | //大è¿å¤ç§åºåºåºè´¹ç¨ï¼åºåºé/å
è£
容é*åºåºåä»·ï¼åºåºéçäºå¤§è¿å·¥å该产åééåå»åå¾é¿æ¥çæ°é-newSupply, 大è¿åå
åºï¼å¤§è¿å¤ç§åº |
| | | traverse( owner, FinancialSalesSource, source, not source.IsImport() ){//è´¢å¡ééæ¥è¡¨é导å
¥ |
| | | traverse( source, FinancialSalesReport, report, not report.IsShow() ){//è´¢å¡ééæ¥è¡¨ä¸æ¾ç¤º |
| | | traverse( report, FinancialSalesRow, row, row.Unit() = ccunit and exists( row, FinancialSalesCell, cell, cell.Value() <> '0' and cell.FinancialSalesColumn().IsDay() ) ){//è´¢å¡ééæ¥è¡¨éç大è¿äº§é, ä¸ä¸º0 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitializeNew ( |
| | | MacroPlan owner |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Aug-12-2024 (created) |
| | | owner.DLEngineLogisticsCostReport( relflush ); |
| | | produtparent := DLEngineLogisticsCostReport::GetDefaultProductParent(); |
| | | name := DLEngineLogisticsCostReport::GetDefaultName(); |
| | | allunit := DLEngineLogisticsCostReport::GetDefaultAllUnit(); |
| | | ccunit := DLEngineLogisticsCostReport::GetDefaultCCUnit(); |
| | | dlunit := DLEngineLogisticsCostReport::GetDefaultDLUnit(); |
| | | //dlline := DLEngineLogisticsCostReport::GetStockingPointDLLine(); |
| | | ccrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); |
| | | dlrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); |
| | | |
| | | startofplanning := owner.StartOfPlanning().Date(); |
| | | //startofyear := startofplanning.StartOfYear(); |
| | | startofnextyear := startofplanning.StartOfNextYear(); |
| | | |
| | | table := owner.DLEngineLogisticsCostReport( relnew, ID := name, Name := name ); |
| | | showtable := owner.DLEngineLogisticsCostReport( relnew, ID := name + 'Show', Name := name, IsShow := true ); |
| | | search := owner.DLEngineLogisticsCostSearch( relnew, Generation := allunit, MqbMlb := allunit, Power := allunit ); |
| | | |
| | | products := construct( Product_MPs ); |
| | | |
| | | table.GenerateColumn( owner ); |
| | | //å¨ trip planéæ¾å°å¤§è¿è£
é
线边åºå°å¤§è¿å¤ç§åºçè¿è¾æ°é//大è¿åå
åºå°å¤ç§åº |
| | | traverse( owner, Unit.Lane.LaneLeg, laneleg ){ |
| | | //èµ·å§åºåç¹æ¯å¦æ¯å¤§è¿è£
é
çº¿è¾¹åº |
| | | // originsp := selectobject( owner, StockingPoint_MP, sp, sp.ID() = laneleg.OriginStockingPointID() ); |
| | | isdlspline := laneleg.OriginStockingPointID().EndsWith( 'åå
åº' ) and ( laneleg.OriginStockingPointID().StartsWith( '大è¿' ) or laneleg.OriginStockingPointID().StartsWith( 'DL' ) );//table.IsInUnit( originsp, dlline ); |
| | | //ç®çå°æ¯å¦æ¯å¤§è¿å¤ç§åº |
| | | // destisp := selectobject( owner, StockingPoint_MP, sp, sp.ID() = laneleg.DestinationStockingPointID() ); |
| | | isdlrent := laneleg.DestinationStockingPointID().EndsWith( 'å¤ç§åº' ) and ( laneleg.DestinationStockingPointID().StartsWith( '大è¿' ) or laneleg.DestinationStockingPointID().StartsWith( 'DL' ) );//table.IsInUnit( destisp, dlrent ); |
| | | if( isdlspline and isdlrent ){ |
| | | traverse( laneleg, Trip, trip, trip.Departure().Date() < startofnextyear ){//ç±äºéè¦èè产åè¿è¾lead timeï¼æ¯ä¸ªæçæ±æ»æ°æ®éè¦æ¨è¿ä¸¤å¤©è¿è¡è®¡ç® |
| | | periodtime := trip.Departure().StartOfMonth().Date(); |
| | | periodname := periodtime.Format( "M2/D2/Y" ); |
| | | |
| | | column := selectobject( table, Column, column, column.Name() = periodname and column.StartDate() = periodtime ); |
| | | enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.StartDate() <= trip.Departure().Date() and engine.EndDate() >= trip.Departure().Date() ); |
| | | transcosts := selectset( owner, LogisticsCostTransport, trans, trans.StartDate() <= trip.Departure().Date() and trans.EndDate() >= trip.Departure().Date() ); |
| | | if( not isnull( enginecosts ) and enginecosts.Size() > 0 and not isnull( transcosts ) and transcosts.Size() > 0 ){ |
| | | traverse( trip, ProductInTrip, pit, pit.Quantity() <> 0 and not isnull( column ) and exists( pit.Product_MP().GetAllParent(), Elements, e, e.ID() = produtparent ) ){//æ¥è¯¢äº§åç±»åæ¯å卿º |
| | | quantity := [Number]pit.Quantity(); |
| | | row := table.GetRow( pit.ProductID() ); |
| | | product := pit.Product_MP(); |
| | | productparents := product.GetAllParent(); |
| | | |
| | | //å¨å卿ºææ¬åæ°è¡¨æ¾å°å¯¹åºçå
è£
容é |
| | | enginecost := selectobject( enginecosts, Elements, engine, engine.Generation().ToLower() = product.Generation().ToLower() |
| | | and engine.MLB_MQB() = product.MQBMLB() |
| | | and engine.Factory() = dlunit ); |
| | | //å¨è¿è¾ææ¬åæ°è¡¨éæ¾å°å卿ºå¯¹åºè¿è¾åä»·åè£
载容é |
| | | transcost := selectobject( transcosts, Elements, trans, trans.Origin() = laneleg.OriginStockingPointID() |
| | | and trans.Destination() = laneleg.DestinationStockingPointID() |
| | | and exists( productparents, Elements, e, ifexpr( trans.Product().FindString( 'å卿º', 0 ) >= 0, e.ID() = produtparent, e.ID() = trans.Product() ) ) ); |
| | | if( not isnull( enginecost ) and not isnull( transcost ) ){ |
| | | products.Add( product ); |
| | | cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | //è¿è¾æ°é/å
è£
容é/è£
载容é*è¿è¾åä»· |
| | | cost := ceil( ceil( quantity / enginecost.PackagingCapacity() ) / transcost.LoadingCapacity() ) * transcost.TransportPrice();//åèäºå
¥ |
| | | cell.FactoryToDLRentTransCost( cell.FactoryToDLRentTransCost() + cost ); |
| | | } |
| | | // if( isccrent ){//ç®çå°æ¯é¿æ¥å¤ç§åº |
| | | // //å¨å卿ºææ¬åæ°è¡¨æ¾å°å¯¹åºçå
è£
容é |
| | | // enginecost := selectobject( enginecosts, Elements, engine, engine.Generation().ToLower() = product.Generation().ToLower() |
| | | // and engine.MLB_MQB() = product.MQBMLB() |
| | | // and engine.Factory() = ccunit ); |
| | | // if( not isnull( enginecost ) ){ |
| | | // products.Add( product ); |
| | | // cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | // cell.CCRentQuantity( cell.CCRentQuantity() + quantity ); |
| | | // //é¿æ¥å¤ç§åºå
¥åºè´¹ç¨ï¼å
¥åºé/å
è£
容é*å
¥åºåä»· |
| | | // entercost := ceil( quantity / enginecost.PackagingCapacity() ) * enginecost.WarehousingPrice(); |
| | | // //é¿æ¥å¤ç§åºåºåºè´¹ç¨: åºåºé/å
è£
容é*åºåºåä»· |
| | | // outcost := ceil( quantity / enginecost.PackagingCapacity() ) * enginecost.WarehousingPrice(); |
| | | // cell.CCRentEnterCost( cell.CCRentEnterCost() + entercost ); |
| | | // cell.CCRentOutCost( cell.CCRentOutCost() + outcost ); |
| | | // } |
| | | // } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //大è¿å¤ç§åºå
¥åºè´¹ç¨ï¼å
¥åºé/å
è£
容é*å
¥åºåä»·ï¼å
¥åºéçäºå¤§è¿å·¥å该产å产éåå»åå¾é¿æ¥çæ°é-newSupply |
| | | traverse( owner, FinancialProductionSource, source, not source.IsImport() ){//è´¢å¡äº§éæ¥è¡¨é导å
¥ |
| | | traverse( source, FinancialProductionReport, report, not report.IsShow() ){//è´¢å¡äº§éæ¥è¡¨ä¸æ¾ç¤º |
| | | traverse( report, FinancialProductionRow, row, row.Unit() = dlunit and exists( row, FinancialProductionCell, cell, cell.Value() <> '0' and cell.FinancialProductionColumn().IsDay() ) ){//è´¢å¡äº§éæ¥è¡¨éç大è¿äº§é, ä¸ä¸º0 |
| | | product := row.Product_MP(); |
| | | productparents := product.GetAllParent(); |
| | | if( exists( productparents, Elements, e, e.ID() = produtparent ) ){//æ¥è¯¢äº§åç±»åæ¯å卿º |
| | | //æ¥è¯¢å¯¹åºçå卿ºææ¬ |
| | | enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() |
| | | and engine.MLB_MQB() = product.MQBMLB() |
| | | and engine.Factory() = dlunit ); |
| | | if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){ |
| | | products.Add( product ); |
| | | ccrow := table.GetRow( row.Name() ); |
| | | traverse( row, FinancialProductionCell, cell, cell.Value() <> '0' and cell.FinancialProductionColumn().IsDay() ){ |
| | | cellcolumn := cell.FinancialProductionColumn(); |
| | | enginecost := selectobject( enginecosts, Elements, engine, engine.StartDate() <= cellcolumn.Period() and engine.EndDate() >= cellcolumn.Period() ); |
| | | if( not isnull( enginecost ) ){ |
| | | column := selectobject( table, Column, column, column.Name() = cell.FinancialProductionColumn().Name() ); |
| | | //大è¿å¤ç§åºå
¥åºè´¹ç¨ |
| | | ccrow.SetDLRentEnterCost( column, enginecost, cell ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //大è¿å¤ç§åºåºåºè´¹ç¨ï¼åºåºé/å
è£
容é*åºåºåä»·ï¼åºåºéçäºå¤§è¿å·¥å该产åééåå»åå¾é¿æ¥çæ°é-newSupply, 大è¿åå
åºï¼å¤§è¿å¤ç§åº |
| | | traverse( owner, FinancialSalesSource, source, not source.IsImport() ){//è´¢å¡ééæ¥è¡¨é导å
¥ |
| | | traverse( source, FinancialSalesReport, report, not report.IsShow() ){//è´¢å¡ééæ¥è¡¨ä¸æ¾ç¤º |
| | | traverse( report, FinancialSalesRow, row, row.Unit() = ccunit and exists( row, FinancialSalesCell, cell, cell.Value() <> '0' and cell.FinancialSalesColumn().IsDay() ) ){//è´¢å¡ééæ¥è¡¨éç大è¿äº§é, ä¸ä¸º0 |
| | | product := row.Product_MP(); |
| | | productparents := product.GetAllParent(); |
| | | if( exists( productparents, Elements, e, e.ID() = produtparent ) ){//æ¥è¯¢äº§åç±»åæ¯å卿º |
| | | //æ¥è¯¢å¯¹åºçå卿ºææ¬ |
| | | enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() |
| | | and engine.MLB_MQB() = product.MQBMLB() |
| | | and engine.Factory() = dlunit ); |
| | | if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){ |
| | | products.Add( product ); |
| | | ccrow := table.GetRow( row.Name() ); |
| | | traverse( row, FinancialSalesCell, cell, cell.Value() <> '0' and cell.FinancialSalesColumn().IsDay() ){ |
| | | cellcolumn := cell.FinancialSalesColumn(); |
| | | enginecost := selectobject( enginecosts, Elements, engine, engine.StartDate() <= cellcolumn.Period() and engine.EndDate() >= cellcolumn.Period() ); |
| | | if( not isnull( enginecost ) ){ |
| | | column := selectobject( table, Column, column, column.Name() = cell.FinancialSalesColumn().Name() ); |
| | | //大è¿å¤ç§åºåºåºè´¹ç¨ |
| | | ccrow.SetDLRentOutCost( column, enginecost, cell ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //é¿æ¥é¿éè¿è¾è´¹ç¨ï¼è°æ¨æ°é/å
è£
容é/è£
载容é*è¿è¾åä»·ï¼è°æ¨è®¡åéæ¾å°è¯¥äº§åä»DLå°CCçè°æ¨æ°éï¼å³èµ·å§å°å¤§è¿è£
é
线边åºï¼ç®çå°ä¸ºé¿æ¥å¤ç§åºå¯¹åºçè¿è¾æ°éï¼å¨å卿ºææ¬åæ°è¡¨æ¾å°å¯¹åºçå
è£
容éï¼å¨è¿è¾ææ¬åæ°è¡¨éæ¾å°å卿ºå¯¹åºè¿è¾åä»·åè£
载容éï¼ç¨å
¬å¼è®¡ç®å¾åºç»æï¼æåº¦è¿è¡æ±æ» |
| | | traverse( owner, TransferPlanRow, tprow ){ |
| | | product := selectobject( owner, Product_MP, product, product.ID() = tprow.ProductID() ); |
| | | productparents := product.GetAllParent(); |
| | | if( exists( productparents, Elements, e, e.ID() = produtparent ) ){//æ¥è¯¢äº§åç±»åæ¯å卿º |
| | | //èµ·å§åºåç¹æ¯å¦æ¯å¤§è¿ |
| | | originsp := selectobject( owner, StockingPoint_MP, sp, sp.ID() = tprow.SourceStockpoingPointID() ); |
| | | isdl := table.IsInUnit( originsp, dlunit ); |
| | | //ç®çå°åºåç¹æ¯å¦æ¯é¿æ¥ |
| | | destisp := selectobject( owner, StockingPoint_MP, sp, sp.ID() = tprow.TargetStockpoingPointID() ); |
| | | iscc := table.IsInUnit( destisp, ccunit ); |
| | | if( isdl and iscc ){ |
| | | //æ¥è¯¢å¯¹åºçå卿ºææ¬ |
| | | enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() |
| | | and engine.MLB_MQB() = product.MQBMLB() |
| | | and engine.Factory() = ccunit ); |
| | | //å¨è¿è¾ææ¬åæ°è¡¨éæ¾å°å卿ºå¯¹åºè¿è¾åä»·åè£
载容é |
| | | transcosts := selectset( owner, LogisticsCostTransport, trans, trans.Origin() = tprow.SourceStockpoingPointID() |
| | | and trans.Destination() = tprow.TargetStockpoingPointID() |
| | | and exists( productparents, Elements, e, ifexpr( trans.Product().FindString( 'å卿º', 0 ) >= 0, e.ID() = produtparent, e.ID() = trans.Product() ) ) ); |
| | | if( not isnull( enginecosts ) and enginecosts.Size() > 0 and not isnull( transcosts ) and transcosts.Size() > 0 ){ |
| | | row := table.GetRow( product.ID() ); |
| | | products.Add( product ); |
| | | traverse( tprow,TransferPlanCell, tpcell, tpcell.TransferPlanColumn().ColumnDate() <> Date::MinDate() and [Number]tpcell.Value() > 0){ |
| | | tpcolumndate := tpcell.TransferPlanColumn().ColumnDate(); |
| | | enginecost := selectobject( enginecosts, Elements, engine, engine.StartDate() <= tpcolumndate and engine.EndDate() >= tpcolumndate ); |
| | | transcost := selectobject( transcosts, Elements, trans, trans.StartDate() <= tpcolumndate and trans.EndDate() >= tpcolumndate ); |
| | | if( not isnull( enginecost ) and not isnull( transcost ) ){ |
| | | periodtime := tpcolumndate.StartOfMonth(); |
| | | periodname := periodtime.Format( "M2/D2/Y" ); |
| | | column := selectobject( table, Column, column, column.Name() = periodname and column.StartDate() = periodtime ); |
| | | |
| | | cost := ceil( ceil( [Number]tpcell.Value() / enginecost.PackagingCapacity() ) / transcost.LoadingCapacity() ) * transcost.TransportPrice(); |
| | | cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | cell.CCLongTransCoat( cell.CCLongTransCoat() + cost ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //é¿æ¥çéè¿è¾è´¹ç¨ï¼å®¢æ·éæ±æ°é/å
è£
容é/è£
载容é*è¿è¾åä»·ï¼å®¢æ·éæ±æ°éåèªforecastésales segmentä¸ºé¿æ¥çæ°éæ±æ»ï¼åç¨å
¬å¼è®¡ç®ï¼æåº¦è¿è¡æ±æ»ï¼å客æ·éæ±æ°éæ¢ç®æè½¦æ¬¡ï¼ |
| | | traverse( owner, SalesDemand.astype( Forecast ), forecast, forecast.Quantity() > 0 and not isnull( forecast.SalesSegment_MP() ) and forecast.StartDate() < startofnextyear ){ |
| | | salessegment := forecast.SalesSegment_MP(); |
| | | parentsalessegments := salessegment.GetAllParent(); |
| | | //æ¯å¦å±äºé¿æ¥ |
| | | iscc := salessegment.Name() = ccunit or exists( parentsalessegments, Elements, psalessegment, psalessegment.Name() = ccunit ); |
| | | if( iscc ){ |
| | | product := forecast.Product_MP(); |
| | | productparents := product.GetAllParent(); |
| | | if( exists( productparents, Elements, e, e.ID() = produtparent ) ){//æ¥è¯¢äº§åç±»åæ¯å卿º |
| | | //æ¥è¯¢å¯¹åºçå卿ºææ¬ |
| | | enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() |
| | | and engine.MLB_MQB() = product.MQBMLB() |
| | | and engine.Factory() = ccunit ); |
| | | if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){ |
| | | products.Add( forecast.Product_MP() ); |
| | | row := table.GetRow( forecast.ProductID() ); |
| | | traverse( forecast, PlanningSalesDemandInPeriod, psdip, psdip.Quantity() > 0 ){ |
| | | enginecost := selectobject( enginecosts, Elements, engine, engine.StartDate() <= psdip.StartDate() and engine.EndDate() >= psdip.StartDate() ); |
| | | if( not isnull( enginecost ) ){ |
| | | periodtime := psdip.StartDate().StartOfMonth(); |
| | | periodname := periodtime.Format( "M2/D2/Y" ); |
| | | // info( '-------------------------', periodname, periodtime ); |
| | | column := selectobject( table, Column, column, column.Name() = periodname and column.StartDate() = periodtime ); |
| | | // info( '-------------------------', column.Name() ); |
| | | cost := ceil( [Number]psdip.Quantity() / enginecost.PackagingCapacity() ) * enginecost.WarehousingPrice(); |
| | | cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | cell.CCShortTransCost( cell.CCShortTransCost() + cost ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //å¤ç§åºä»å¨è´¹ç¨ï¼ä»å¨æ°é/å
è£
容é*ä»å¨åä»·ï¼å¨Actual inventorieséåå°é¿æ¥å¤ç§åº/大è¿å¤ç§åºè¯¥å卿ºçä»å¨éï¼æ ¹æ®å卿ºå·æ¾å°å¯¹åºçGeneration 忍ªçºµå¶ï¼å¨å卿ºææ¬åæ°è¡¨éæ¾å°å¯¹åºçä»å¨åä»·åå
è£
容éï¼ç¨å
¬å¼è®¡ç®ï¼æåº¦è¿è¡æ±æ» |
| | | traverse( owner, StockingPoint_MP, stockingpoint ){ |
| | | unit := stockingpoint.Unit(); |
| | | parentunits := unit.GetAllParent(); |
| | | //æ¯å¦å±äºé¿æ¥å¤ç§åº |
| | | isccrent := stockingpoint.ID() = ccrent or unit.ID() = ccrent or exists( parentunits, Elements, punit, punit.ID() = ccrent ); |
| | | //æ¯å¦å±äºå¤§è¿å¤ç§åº |
| | | isdlrent := stockingpoint.ID() = dlrent or unit.ID() = dlrent or exists( parentunits, Elements, punit, punit.ID() = dlrent ); |
| | | if( isccrent or isdlrent ){ |
| | | traverse( stockingpoint, ProductInStockingPoint_MP, pisp, pisp.Product_MP().IsLeaf() |
| | | and exists( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and pispip.Period_MP().StartDate() < startofnextyear and pispip.NewSupplyQuantity() <> 0 ) ){ |
| | | //è·åè¡ |
| | | product := pisp.Product_MP(); |
| | | productparents := product.GetAllParent(); |
| | | if( exists( productparents, Elements, e, e.ID() = produtparent ) ){//æ¥è¯¢äº§åç±»åæ¯å卿º |
| | | row := table.GetRow( pisp.ProductID() ); |
| | | enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower() and engine.MLB_MQB() = product.MQBMLB() ); |
| | | if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){ |
| | | products.Add( pisp.Product_MP() ); |
| | | traverse( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and pispip.Period_MP().StartDate() < startofnextyear and pispip.NewSupplyQuantity() <> 0 ){ |
| | | periodtime := pispip.Start().StartOfMonth().Date(); |
| | | periodname := periodtime.Format( "M2/D2/Y" ); |
| | | column := selectobject( table, Column, column, column.Name() = periodname and column.StartDate() = periodtime ); |
| | | cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | |
| | | if( isccrent ){ |
| | | //å¨å卿ºææ¬åæ°è¡¨æ¾å°å¯¹åºçå
è£
容é |
| | | enginecost := selectobject( enginecosts, Elements, engine, engine.StartDate() <= pispip.Start().Date() and engine.EndDate() >= pispip.Start().Date() |
| | | and engine.Factory() = ccunit ); |
| | | if( not isnull( enginecost ) ){ |
| | | cost := ceil( [Number]pispip.NewSupplyQuantity() / enginecost.PackagingCapacity() ) * enginecost.StoragePrice();//åèäºå
¥ |
| | | cell.CCRentStorageCost( cell.CCRentStorageCost() + cost ); |
| | | } |
| | | } else { |
| | | //å¨å卿ºææ¬åæ°è¡¨æ¾å°å¯¹åºçå
è£
容é |
| | | enginecost := selectobject( enginecosts, Elements, engine, engine.StartDate() <= pispip.Start().Date() and engine.EndDate() >= pispip.Start().Date() |
| | | and engine.Factory() = dlunit ); |
| | | if( not isnull( enginecost ) ){ |
| | | cost := ceil( [Number]pispip.NewSupplyQuantity() / enginecost.PackagingCapacity() ) * enginecost.StoragePrice();//åèäºå
¥ |
| | | cell.DLRentStorageCost( cell.DLRentStorageCost() + cost );; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | rows := selectsortedset( table, Row, row, row.Name() ); |
| | | i := 0; |
| | | traverse( rows, Elements, e ){ |
| | | e.RowNr( i ); |
| | | i := i + 1; |
| | | } |
| | | info( '-------------------------------------end---------------------------------' ); |
| | | // |
| | | showtable.Generate( search, products ); |
| | | *] |
| | | } |
| | |
| | | Attribute EndDate |
| | | { |
| | | #keys: '3[415136.0.1132074698][415136.0.1132074697][415136.0.1132074699]' |
| | | IsReadOnly: true |
| | | ValueType: Date |
| | | } |
| | |
| | | Attribute StartDate |
| | | { |
| | | #keys: '3[415136.0.1132074695][415136.0.1132074694][415136.0.1132074696]' |
| | | IsReadOnly: true |
| | | ValueType: Date |
| | | } |
| | |
| | | [* |
| | | // çå
°é¸½ Aug-22-2024 (created) |
| | | traverse( macroplan, ChangeLossSetting, cls ){ |
| | | macroplan.ChangeLossSettingExcel( relnew, Product1 := cls.ProductFirst().ID(), Product2 := cls.ProductSecond().ID(), Unit := cls.Unit().ID(), ChangeLossNumber := [String]cls.ChangeLossNr() ); |
| | | macroplan.ChangeLossSettingExcel( relnew, Product1 := cls.ProductFirst().ID(), Product2 := cls.ProductSecond().ID(), Unit := cls.Unit().ID(), ChangeLossNumber := [String]cls.ChangeLossNr(), StartDate := cls.StartDate(), EndDate := cls.EndDate() ); |
| | | } |
| | | value := macroplan.MP_ExportChangeLossSettingsBroker().ExecuteToXLS( isxlsxformat ).AsBinaryValue(); |
| | | macroplan.ChangeLossSettingExcel( relflush ); |
| | |
| | | macroplan.ChangeLossSettingExcel( relflush ); |
| | | error( e.GeneralInformation() ); |
| | | } |
| | | clsset := construct( ChangeLossSettings ); |
| | | //éåå¤ç导å
¥çæ°æ® |
| | | traverse( macroplan, ChangeLossSettingExcel, excel ){ |
| | | cls := selectobject( macroplan, ChangeLossSetting, cls, cls.ProductFirst().ID() = excel.Product1() |
| | | and cls.ProductSecond().ID() = excel.Product2() |
| | | and cls.Unit().ID() = excel.Unit() ); |
| | | and cls.Unit().ID() = excel.Unit() |
| | | and cls.StartDate() = excel.StartDate() |
| | | and cls.EndDate() = excel.EndDate() ); |
| | | if( isnull( cls ) ){ |
| | | cls := macroplan.ChangeLossSetting( relnew, ChangeLossNr := [Number]excel.ChangeLossNumber() ); |
| | | product1 := selectobject( macroplan, Product_MP, product, product.ID() = excel.Product1() ); |
| | | product2 := selectobject( macroplan, Product_MP, product, product.ID() = excel.Product2() ); |
| | | unit := selectobject( macroplan, Unit, unit, unit.ID() = excel.Unit() ); |
| | | feedback := ''; |
| | | if( ChangeLossSetting::ValidateInput( feedback, macroplan, null( ChangeLossSetting ), unit, product1, product2, excel.StartDate(), excel.EndDate(), [Number]excel.ChangeLossNumber() ) ){ |
| | | cls := macroplan.ChangeLossSetting( relnew, ChangeLossNr := [Number]excel.ChangeLossNumber() ); |
| | | |
| | | cls.ProductFirst( relset, product1 ); |
| | | cls.ProductSecond( relset, product2 ); |
| | | cls.Unit( relset, unit ); |
| | | clsset.Add( cls ); |
| | | }else{ |
| | | traverse( clsset, Elements, e ){ |
| | | e.Delete(); |
| | | } |
| | | error( feedback ); |
| | | } |
| | | }else { |
| | | cls.ChangeLossNr( [Number]excel.ChangeLossNumber() ); |
| | | } |
| | |
| | | { |
| | | ModelElement: Unit |
| | | } |
| | | TypeIndexAttribute |
| | | { |
| | | ModelElement: StartDate |
| | | } |
| | | TypeIndexAttribute |
| | | { |
| | | ModelElement: EndDate |
| | | } |
| | | ] |
| | | } |
| | |
| | | //ccunit := EnginePipelineReport::GetDefaultCCUnit(); |
| | | //dlunit := EnginePipelineReport::GetDefaultDLUnit(); |
| | | productparent := EnginePipelineReport::GetDefaultProductParent(); |
| | | ccalineunit := EnginePipelineReport::GetDefaultCCALineUnit(); |
| | | dlalienunit := EnginePipelineReport::GetDefaultDLALineUnit() |
| | | ccmplineunit := EnginePipelineReport::GetDefaultCCMPLineUnit() |
| | | dlmplineunit := EnginePipelineReport::GetDefaultDLMPLineUnit(); |
| | | //ccalineunit := EnginePipelineReport::GetDefaultCCALineUnit(); |
| | | //dlalienunit := EnginePipelineReport::GetDefaultDLALineUnit() |
| | | //ccmplineunit := EnginePipelineReport::GetDefaultCCMPLineUnit() |
| | | //dlmplineunit := EnginePipelineReport::GetDefaultDLMPLineUnit(); |
| | | //allunit := EnginePipelineReport::GetDefaultAllUnit(); |
| | | source := owner.EnginePipelineSource( relnew, Name := EnginePipelineReport::GetDefaultName() ); |
| | | table := source.Report( relnew, ID := source.Name(), Name := source.Name() ); |
| | | showtable := source.Report( relnew, ID := source.Name() + 'Show', Name := source.Name(), IsShow := true ); |
| | | |
| | | search := source.Search( relnew, StartDate := Date::MinDate(), EndDate := Date::MaxDate(), TimeUnit := Translations::MP_GlobalParameters_Day() ); |
| | | search := owner.EnginePipelineSearch( relnew, StartDate := Date::MinDate(), EndDate := Date::MaxDate(), TimeUnit := Translations::MP_GlobalParameters_Day() ); |
| | | |
| | | products := construct( Product_MPs ); |
| | | //åå§åå |
| | |
| | | endperiod := maxobject( owner, Period_MP, period, not period.IsHistorical() and period.TimeUnit() = Translations::MP_GlobalParameters_Day(), period.StartDate() ); |
| | | |
| | | //çæç产ååºåæ°æ® |
| | | traverse( owner, StockingPoint_MP, stockingpoint ){ |
| | | unit := stockingpoint.Unit(); |
| | | parentunits := unit.GetAllParent(); |
| | | //traverse( owner, StockingPoint_MP, stockingpoint ){ |
| | | traverse( owner, StockingPoint_MP, stockingpoint, stockingpoint.ID().EndsWith( 'åå
åº' ) ){ |
| | | // unit := stockingpoint.Unit(); |
| | | // parentunits := unit.GetAllParent(); |
| | | //æ¯å¦å±äºé¿æ¥å·¥å |
| | | iscc := unit.ID() = ccalineunit or unit.ID() = ccmplineunit or exists( parentunits, Elements, punit, punit.ID() = ccalineunit or punit.ID() = ccmplineunit ); |
| | | // iscc := unit.ID() = ccalineunit or unit.ID() = ccmplineunit or exists( parentunits, Elements, punit, punit.ID() = ccalineunit or punit.ID() = ccmplineunit ); |
| | | iscc := stockingpoint.ID().StartsWith( 'CC' ); |
| | | //æ¯å¦å±äºå¤§è¿å·¥å |
| | | isdl := unit.ID() = dlalienunit or unit.ID() = dlmplineunit or exists( parentunits, Elements, punit, punit.ID() = dlalienunit or punit.ID() = dlmplineunit ); |
| | | // isdl := unit.ID() = dlalienunit or unit.ID() = dlmplineunit or exists( parentunits, Elements, punit, punit.ID() = dlalienunit or punit.ID() = dlmplineunit ); |
| | | isdl := stockingpoint.ID().StartsWith( '大è¿' ); |
| | | |
| | | traverse( stockingpoint, ProductInStockingPoint_MP, pisp, pisp.Product_MP().IsLeaf() and not pisp.IsSystem() |
| | | and exists( pisp.Product_MP().GetAllParent(), Elements, e, e.ID() = productparent ) |
| | |
| | | //startofnextmonth := startofplanning.StartOfNextMonth(); |
| | | startofnextyear := startofplanning.StartOfNextYear(); |
| | | |
| | | search := source.FinancialProductionSearch( relnew, Unit := allunit, Generation := allunit, MqbMlb := allunit, Power := allunit ); |
| | | search := owner.FinancialProductionSearch( relnew, Unit := allunit, Generation := allunit, MqbMlb := allunit, Power := allunit ); |
| | | |
| | | products := construct( Product_MPs ); |
| | | //éè¦çæ¥æåºé´ï¼ å¨å天çåªéè¦å½åæ |
| | |
| | | //startofyear := startofplanning.StartOfYear(); |
| | | startofnextyear := startofplanning.StartOfNextYear(); |
| | | |
| | | search := source.FinancialSalesSearch( relnew, Unit := allunit, Generation := allunit, MqbMlb := allunit, Power := allunit ); |
| | | search := owner.FinancialSalesSearch( relnew, Unit := allunit, Generation := allunit, MqbMlb := allunit, Power := allunit ); |
| | | |
| | | table.GenerateColumn( owner ); |
| | | |
| | |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Jun-25-2024 (created) |
| | | startofplanning := search.InventorySummarySource().MacroPlan().StartOfPlanning(); |
| | | startofplanning := search.MacroPlan().StartOfPlanning(); |
| | | startofyear := startofplanning.StartOfYear(); |
| | | startofendyear := startofplanning.StartOfNextYear() - Duration::Days( 1 ); |
| | | //æ¥è¯¢æ¥æè¿åéè¦å¨è®¡åæ¥æä¹å
|
| | |
| | | allunit := InventorySummaryReport::GetDefaultAllUnit(); |
| | | ccunit := InventorySummaryReport::GetDefaultCCUnit(); |
| | | dlunit := InventorySummaryReport::GetDefaultDLUnit(); |
| | | ccalineunit := FinancialProductionReport::GetDefaultCCALineUnit(); |
| | | dlalienunit := FinancialProductionReport::GetDefaultDLALineUnit() |
| | | ccmplineunit := FinancialProductionReport::GetDefaultCCMPLineUnit() |
| | | dlmplineunit := FinancialProductionReport::GetDefaultDLMPLineUnit(); |
| | | //ccalineunit := FinancialProductionReport::GetDefaultCCALineUnit(); |
| | | //dlalienunit := FinancialProductionReport::GetDefaultDLALineUnit() |
| | | //ccmplineunit := FinancialProductionReport::GetDefaultCCMPLineUnit() |
| | | //dlmplineunit := FinancialProductionReport::GetDefaultDLMPLineUnit(); |
| | | |
| | | source := owner.InventorySummarySource( relnew, ID := InventorySummaryReport::GetDefaultName(), Name := InventorySummaryReport::GetDefaultName() ); |
| | | table := source.InventorySummaryReport( relnew, ID := source.Name(), Name := source.Name() ); |
| | |
| | | startofyear := startofplanning.StartOfYear(); |
| | | startofnextyear := startofplanning.StartOfNextYear(); |
| | | |
| | | search := source.InventorySummarySearch( relnew, Unit := allunit, Generation := allunit, MqbMlb := allunit, Power := allunit, StartDate := Date::MinDate(), EndDate := Date::MaxDate() ); |
| | | search := owner.InventorySummarySearch( relnew, Unit := allunit, Generation := allunit, MqbMlb := allunit, Power := allunit, StartDate := Date::MinDate(), EndDate := Date::MaxDate() ); |
| | | |
| | | table.GenerateColumn( owner, 'All', startofyear, startofnextyear ); |
| | | //info( '-----------------------------------', table.InventorySummaryColumn( relsize ) ); |
| | | //åºåæ°é为Actual inventorieséé¢çç¹Planned inventoriesåæ®µåºåéå æ» |
| | | traverse( owner, StockingPoint_MP, stockingpoint ){ |
| | | unit := stockingpoint.Unit(); |
| | | parentunits := unit.GetAllParent(); |
| | | //traverse( owner, StockingPoint_MP, stockingpoint ){ |
| | | traverse( owner, StockingPoint_MP, stockingpoint, stockingpoint.ID().EndsWith( 'åå
åº' ) ){ |
| | | // unit := stockingpoint.Unit(); |
| | | // parentunits := unit.GetAllParent(); |
| | | //æ¯å¦å±äºé¿æ¥å·¥å |
| | | iscc := unit.ID() = ccalineunit or unit.ID() = ccmplineunit or exists( parentunits, Elements, punit, punit.ID() = ccalineunit or punit.ID() = ccmplineunit ); |
| | | iscc := stockingpoint.ID().StartsWith( 'CC' );//unit.ID() = ccalineunit or unit.ID() = ccmplineunit or exists( parentunits, Elements, punit, punit.ID() = ccalineunit or punit.ID() = ccmplineunit ); |
| | | // iscc := stockingpoint.ID().StartsWith( 'CC' ) or unit.ID().StartsWith( 'CC' ) or exists( parentunits, Elements, punit, punit.ID().StartsWith( 'CC' ) ); |
| | | //æ¯å¦å±äºå¤§è¿å·¥å |
| | | isdl := unit.ID() = dlalienunit or unit.ID() = dlmplineunit or exists( parentunits, Elements, punit, punit.ID() = dlalienunit or punit.ID() = dlmplineunit ); |
| | | isdl := stockingpoint.ID().StartsWith( '大è¿' );//unit.ID() = dlalienunit or unit.ID() = dlmplineunit or exists( parentunits, Elements, punit, punit.ID() = dlalienunit or punit.ID() = dlmplineunit ); |
| | | // isdl := stockingpoint.ID().StartsWith( 'DL' ) or unit.ID().StartsWith( 'DL' ) or exists( parentunits, Elements, punit, punit.ID().StartsWith( 'DL' ) ); |
| | | if( iscc or isdl ){ |
| | | traverse( stockingpoint, ProductInStockingPoint_MP, pisp, pisp.Product_MP().IsLeaf() ){ |
| | | //è·åå·¥åè¡ |
| | |
| | | rows := selectsortedset( table, InventroySummaryRow, row, row.Name() ); |
| | | i := 0; |
| | | traverse( rows, Elements, e ){ |
| | | if( exists( e, InventorySummaryCell, cell, cell.AverageInventory() <> 0 or cell.EndingInventory() <> 0 or cell.MaximumInventory() <> 0 or cell.MinimumInventory() <> 0 ) ){ |
| | | e.RowNr( i ); |
| | | i := i + 1; |
| | | }{ |
| | | e.Delete(); |
| | | } |
| | | } |
| | | showtable.Generate( search, products ); |
| | | *] |
| | |
| | | table := source.Report( relnew, ID := source.Name(), Name := source.Name() ); |
| | | showtable := source.Report( relnew, ID := source.Name() + 'Show', Name := source.Name(), IsShow := true ); |
| | | |
| | | search := source.Search( relnew, StartDate := Date::MinDate(), EndDate := Date::MaxDate(), TimeUnit := Translations::MP_GlobalParameters_Day() ); |
| | | search := owner.MachiningPipelineSearch( relnew, StartDate := Date::MinDate(), EndDate := Date::MaxDate(), TimeUnit := Translations::MP_GlobalParameters_Day() ); |
| | | |
| | | products := construct( Product_MPs ); |
| | | //åå§åå |
| | | table.GenerateColumn( owner, 'All', search.StartDate(), search.EndDate() ); |
| | | endperiod := maxobject( owner, Period_MP, period, not period.IsHistorical() and period.TimeUnit() = Translations::MP_GlobalParameters_Day(), period.StartDate() ); |
| | | |
| | | //çæè£
é
ãç产ååºåæ°æ® |
| | | //çæè£
é
(é¿å
åº)ãç产ï¼çDLååºåæ°æ® |
| | | traverse( owner, StockingPoint_MP, stockingpoint ){ |
| | | unit := stockingpoint.Unit(); |
| | | parentunits := unit.GetAllParent(); |
| | | //æ¯å¦å±äºé¿æ¥å·¥å |
| | | iscc := unit.ID() = ccunit or exists( parentunits, Elements, punit, punit.ID() = ccunit ); |
| | | iscc := stockingpoint.ID().StartsWith( 'CC' ) or unit.ID().StartsWith( 'CC' ) or exists( parentunits, Elements, punit, punit.ID().StartsWith( 'CC' ) );//unit.ID() = ccunit or exists( parentunits, Elements, punit, punit.ID() = ccunit ); |
| | | //æ¯å¦å±äºå¤§è¿å·¥å |
| | | isdl := unit.ID() = dlunit or exists( parentunits, Elements, punit, punit.ID() = dlunit ); |
| | | //æ¯å¦å±äºé¿æ¥è£
é
线 |
| | | isccassemnly := unit.ID() = MachiningPipelineReport::GetDefaultCCAssemnlyUnit() or exists( parentunits, Elements, punit, punit.ID() = MachiningPipelineReport::GetDefaultCCAssemnlyUnit() ); |
| | | //æ¯å¦å±äºå¤§è¿è£
é
线 |
| | | isdlassemnly := unit.ID() = MachiningPipelineReport::GetDefaultDLAssemnlyUnit() or exists( parentunits, Elements, punit, punit.ID() = MachiningPipelineReport::GetDefaultDLAssemnlyUnit() ); |
| | | isdl := stockingpoint.ID().StartsWith( 'DL' ) or unit.ID().StartsWith( 'DL' ) or exists( parentunits, Elements, punit, punit.ID().StartsWith( 'DL' ) );//unit.ID() = dlunit or exists( parentunits, Elements, punit, punit.ID() = dlunit ); |
| | | //æ¯å¦å±äºé¿æ¥è£
é
线CCåå
åº |
| | | isccassemnly := stockingpoint.ID().EndsWith( 'åå
åº' ) and ( stockingpoint.ID().StartsWith( 'CC' ) or stockingpoint.ID().StartsWith( 'é¿æ¥' ) );//unit.ID() = MachiningPipelineReport::GetDefaultCCAssemnlyUnit() or exists( parentunits, Elements, punit, punit.ID() = MachiningPipelineReport::GetDefaultCCAssemnlyUnit() ); |
| | | //æ¯å¦å±äºå¤§è¿è£
é
线DLåå
åº |
| | | isdlassemnly := stockingpoint.ID().EndsWith( 'åå
åº' ) and ( stockingpoint.ID().StartsWith( 'DL' ) or stockingpoint.ID().StartsWith( '大è¿' ) );//unit.ID() = MachiningPipelineReport::GetDefaultDLAssemnlyUnit() or exists( parentunits, Elements, punit, punit.ID() = MachiningPipelineReport::GetDefaultDLAssemnlyUnit() ); |
| | | //æ¯å¦å±äºé¿æ¥æºå 产线 |
| | | isccproduction := unit.ID() = MachiningPipelineReport::GetDefaultCCProductionUnit() or exists( parentunits, Elements, punit, punit.ID() = MachiningPipelineReport::GetDefaultCCProductionUnit() ); |
| | | isccproduction := stockingpoint.ID().EndsWith( '线边åº' ) and ( stockingpoint.ID().StartsWith( 'CC' ) or stockingpoint.ID().StartsWith( 'é¿æ¥' ) );//unit.ID() = MachiningPipelineReport::GetDefaultCCProductionUnit() or exists( parentunits, Elements, punit, punit.ID() = MachiningPipelineReport::GetDefaultCCProductionUnit() ); |
| | | //æ¯å¦å±äºå¤§è¿æºå 产线 |
| | | isdlproduction := unit.ID() = MachiningPipelineReport::GetDefaultDLProductionUnit() or exists( parentunits, Elements, punit, punit.ID() = MachiningPipelineReport::GetDefaultDLProductionUnit() ); |
| | | isdlproduction := unit.ID().EndsWith( 'MoMo' ) and unit.ID().StartsWith( 'DL' );//unit.ID() = MachiningPipelineReport::GetDefaultDLProductionUnit() or exists( parentunits, Elements, punit, punit.ID() = MachiningPipelineReport::GetDefaultDLProductionUnit() ); |
| | | if( iscc or isdl ){ |
| | | traverse( stockingpoint, ProductInStockingPoint_MP, pisp, pisp.Product_MP().IsLeaf() and not pisp.IsSystem() |
| | | // and exists( pisp.Product_MP().GetAllParent(), Elements, e, e.ID() = productparent ) |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component ButtonImport |
| | | { |
| | | #keys: '[415136.0.1153801819]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'IMPORT1' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component bRefresh |
| | | { |
| | | #keys: '[415136.0.1153802554]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'REFRESH' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | [* |
| | | //åå§å |
| | | //if( not exists( MacroPlan, FinancialProductionSource, source, not source.IsImport() ) ){ |
| | | CCEngineLogisticsCostReport::Initialize( MacroPlan ); |
| | | // CCEngineLogisticsCostReport::Initialize( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, CCEngineLogisticsCostReport, table, table.IsShow() ); |
| | | //table := selectobject( MacroPlan, CCEngineLogisticsCostReport, table, table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsImport(), table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | //DataHolderTable.Data( table ); |
| | | |
| | | dhSearch.Data( table.MacroPlan().CCEngineLogisticsCostSearch() ); |
| | | //dhSearch.Data( table.MacroPlan().CCEngineLogisticsCostSearch() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelExport_670/ButtonImport |
| | | Response OnClick () id:Response_PanelExport_670_ButtonImport_OnClick |
| | | { |
| | | #keys: '[415136.0.1153801818]' |
| | | 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(); |
| | | |
| | | CCEngineLogisticsCostReport::Import( MacroPlan, RecycleBin, webFileBinaryData, fileName ); |
| | | |
| | | WebMessageBox::Success( Translations::A_VWED_Success() ); |
| | | } |
| | | } onerror { |
| | | WebMessageBox::Error( e.GeneralInformation() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelExport_670/bRefresh |
| | | Response OnClick () id:Response_PanelExport_bRefresh_OnClick |
| | | { |
| | | #keys: '[415136.0.1153802553]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | CCEngineLogisticsCostReport::Initialize( MacroPlan ); |
| | | |
| | | table := selectobject( MacroPlan, CCEngineLogisticsCostReport, table, table.IsShow() ); |
| | | |
| | | DataHolderTable.Data( table ); |
| | | |
| | | //dhSearch.Data( table.MacroPlan().CCEngineLogisticsCostSearch() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Generation() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Generation() <> selection ){ |
| | | dhSearch.Data().Generation( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().MqbMlb() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().MqbMlb() <> selection ){ |
| | | dhSearch.Data().MqbMlb( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Power() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Power() <> selection ){ |
| | | dhSearch.Data().Power( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | #keys: '[415136.0.989500384]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'CCEngineLogisticsCostSearch' |
| | | Children: |
| | | [ |
| | | Component deSearch |
| | | { |
| | | #keys: '[415136.0.1155813573]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'CCEngineLogisticsCostSearch' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component ButtonImport id:ButtonImport_85 |
| | | { |
| | | #keys: '[415136.0.1153802162]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'IMPORT1' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component bRefresh id:bRefresh_427 |
| | | { |
| | | #keys: '[415136.0.1153802325]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'REFRESH' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | [* |
| | | //åå§å |
| | | //if( not exists( MacroPlan, FinancialProductionSource, source, not source.IsImport() ) ){ |
| | | DLEngineLogisticsCostReport::Initialize( MacroPlan ); |
| | | // DLEngineLogisticsCostReport::Initialize( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, DLEngineLogisticsCostReport, table, table.IsShow() ); |
| | | //table := selectobject( MacroPlan, DLEngineLogisticsCostReport, table, table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsImport(), table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | //DataHolderTable.Data( table ); |
| | | |
| | | dhSearch.Data( table.MacroPlan().DLEngineLogisticsCostSearch() ); |
| | | info( '------------------2----------------', isnull( dhSearch.Data() ) ); |
| | | //dhSearch.Data( table.MacroPlan().DLEngineLogisticsCostSearch() ); |
| | | //info( '------------------2----------------', isnull( dhSearch.Data() ) ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelExport/ButtonImport_85 |
| | | Response OnClick () id:Response_PanelExport_670_ButtonImport_OnClick_130 |
| | | { |
| | | #keys: '[415136.0.1153802161]' |
| | | 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(); |
| | | |
| | | DLEngineLogisticsCostReport::Import( MacroPlan, RecycleBin, webFileBinaryData, fileName ); |
| | | |
| | | WebMessageBox::Success( Translations::A_VWED_Success() ); |
| | | } |
| | | } onerror { |
| | | WebMessageBox::Error( e.GeneralInformation() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelExport/bRefresh_427 |
| | | Response OnClick () id:Response_pHeader_bRefresh_OnClick_57 |
| | | { |
| | | #keys: '[415136.0.1153802324]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | DLEngineLogisticsCostReport::Initialize( MacroPlan ); |
| | | |
| | | table := selectobject( MacroPlan, DLEngineLogisticsCostReport, table, table.IsShow() ); |
| | | |
| | | DataHolderTable.Data( table ); |
| | | |
| | | //dhSearch.Data( MacroPlan.DLEngineLogisticsCostSearch() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Generation() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Generation() <> selection ){ |
| | | dhSearch.Data().Generation( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().MqbMlb() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().MqbMlb() <> selection ){ |
| | | dhSearch.Data().MqbMlb( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Power() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Power() <> selection ){ |
| | | dhSearch.Data().Power( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | #keys: '[415136.0.992750376]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'DLEngineLogisticsCostSearch' |
| | | Children: |
| | | [ |
| | | Component deSearch |
| | | { |
| | | #keys: '[415136.0.1155813898]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'DLEngineLogisticsCostSearch' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bRefresh id:bRefresh_765 |
| | | { |
| | | #keys: '[415136.0.1153803836]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'REFRESH' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | Body: |
| | | [* |
| | | //if( not isnull( MacroPlan.EnginePipelineSource() ) ){ |
| | | EnginePipelineSource::Initialize( MacroPlan ); |
| | | // EnginePipelineSource::Initialize( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, EnginePipelineSource.Report, table, table.IsShow() ); |
| | | //table := selectobject( MacroPlan, EnginePipelineSource.Report, table, table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | //DataHolderTable.Data( table ); |
| | | |
| | | dhSearch.Data( table.Source().Search() ); |
| | | //dhSearch.Data( table.Source().Search() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelExport_570/bRefresh_765 |
| | | Response OnClick () id:Response_PanelExport_bRefresh_OnClick |
| | | { |
| | | #keys: '[415136.0.1153803835]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | EnginePipelineSource::Initialize( MacroPlan ); |
| | | |
| | | table := selectobject( MacroPlan, EnginePipelineSource.Report, table, table.IsShow() ); |
| | | |
| | | DataHolderTable.Data( table ); |
| | | |
| | | dhSearch.Data( MacroPlan.EnginePipelineSearch() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | if( this.Date() < DateSelectorStart.Date() ){ |
| | | this.HintError( 'The end date cannot be less than the start date!' ); |
| | | }else{ |
| | | if( dhSearch.Data().EndDate() <> this.Date() ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().EndDate() <> this.Date() ){ |
| | | dhSearch.Data().EndDate( this.Date() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | if( this.Date() > DateSelectorEnd.Date() ){ |
| | | this.HintError( 'The start date cannot be later than the end date!' ); |
| | | }else{ |
| | | if( dhSearch.Data().StartDate() <> this.Date() ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().StartDate() <> this.Date() ){ |
| | | dhSearch.Data().StartDate( this.Date() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //åºé´æ¹ååå·æ°æ¾ç¤º |
| | | if( dhSearch.Data().TimeUnit() <> this.BoundValue() ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().TimeUnit() <> this.BoundValue() ){ |
| | | dhSearch.Data().TimeUnit( this.BoundValue() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | #keys: '[415136.0.884990864]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'EnginePipelineSearch' |
| | | Children: |
| | | [ |
| | | Component deSearch |
| | | { |
| | | #keys: '[415136.0.1155812008]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'EnginePipelineSearch' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bRefresh id:bRefresh_859 |
| | | { |
| | | #keys: '[415136.0.1153802738]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'REFRESH' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | [* |
| | | //åå§å |
| | | //if( not exists( MacroPlan, FinancialProductionSource, source, not source.IsImport() ) ){ |
| | | FinancialProductionSource::Initialize( MacroPlan ); |
| | | // FinancialProductionSource::Initialize( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, FinancialProductionSource.FinancialProductionReport, table, not table.IsImport() and table.IsShow() ); |
| | | //table := selectobject( MacroPlan, FinancialProductionSource.FinancialProductionReport, table, not table.IsImport() and table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsImport(), table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | //DataHolderTable.Data( table ); |
| | | |
| | | dhSearch.Data( table.FinancialProductionSource().FinancialProductionSearch() ); |
| | | //dhSearch.Data( MacroPlan.FinancialProductionSearch() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelExport/bRefresh_859 |
| | | Response OnClick () id:Response_PanelExport_670_bRefresh_OnClick |
| | | { |
| | | #keys: '[415136.0.1153802737]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | FinancialProductionSource::Initialize( MacroPlan ); |
| | | |
| | | table := selectobject( MacroPlan, FinancialProductionSource.FinancialProductionReport, table, not table.IsImport() and table.IsShow() ); |
| | | |
| | | DataHolderTable.Data( table ); |
| | | |
| | | //dhSearch.Data( MacroPlan.FinancialProductionSearch() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Generation() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Generation() <> selection ){ |
| | | dhSearch.Data().Generation( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().MqbMlb() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().MqbMlb() <> selection ){ |
| | | dhSearch.Data().MqbMlb( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Power() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Power() <> selection ){ |
| | | dhSearch.Data().Power( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( dhSearch.Data().Unit() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Unit() <> selection ){ |
| | | dhSearch.Data().Unit( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | #keys: '[415136.0.849431513]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'FinancialProductionSearch' |
| | | Children: |
| | | [ |
| | | Component deSearch |
| | | { |
| | | #keys: '[415136.0.1153870614]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'FinancialProductionSearch' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bRefresh |
| | | { |
| | | #keys: '[415136.0.1153802934]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'REFRESH' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | Body: |
| | | [* |
| | | //if( not exists( MacroPlan, FinancialSalesSource, source, not source.IsImport() ) ){ |
| | | FinancialSalesSource::Initialize( MacroPlan ); |
| | | // FinancialSalesSource::Initialize( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, FinancialSalesSource.FinancialSalesReport, table, not table.IsImport() and table.IsShow() ); |
| | | //table := selectobject( MacroPlan, FinancialSalesSource.FinancialSalesReport, table, not table.IsImport() and table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsImport(), table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | //DataHolderTable.Data( table ); |
| | | |
| | | dhSearch.Data( table.FinancialSalesSource().FinancialSalesSearch() ); |
| | | //dhSearch.Data( MacroPlan.FinancialSalesSearch() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelExport_545/bRefresh |
| | | Response OnClick () id:Response_PanelExport_bRefresh_OnClick |
| | | { |
| | | #keys: '[415136.0.1153802933]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | FinancialSalesSource::Initialize( MacroPlan ); |
| | | |
| | | table := selectobject( MacroPlan, FinancialSalesSource.FinancialSalesReport, table, not table.IsImport() and table.IsShow() ); |
| | | |
| | | DataHolderTable.Data( table ); |
| | | |
| | | //dhSearch.Data( MacroPlan.FinancialSalesSearch() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //ä»£æ°æ¹ååå·æ°æ¾ç¤º |
| | | if( dhSearch.Data().Generation() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Generation() <> selection ){ |
| | | dhSearch.Data().Generation( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //æ¨ªçºµå¶æ¹ååå·æ°æ¾ç¤º |
| | | if( dhSearch.Data().MqbMlb() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().MqbMlb() <> selection ){ |
| | | dhSearch.Data().MqbMlb( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //åçæ¹ååå·æ°æ¾ç¤º |
| | | if( dhSearch.Data().Power() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Power() <> selection ){ |
| | | dhSearch.Data().Power( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //Unitæ´æ°åçææ°çæ¾ç¤º |
| | | if( dhSearch.Data().Unit() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Unit() <> selection ){ |
| | | dhSearch.Data().Unit( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | #keys: '[415136.0.857870874]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'FinancialSalesSearch' |
| | | Children: |
| | | [ |
| | | Component deSearch |
| | | { |
| | | #keys: '[415136.0.1155080551]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'FinancialSalesSearch' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bRefresh id:bRefresh_561 |
| | | { |
| | | #keys: '[415136.0.1153803361]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'REFRESH' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | FinancialWeeklyReport::Initialize( MacroPlan ); |
| | | //FinancialWeeklyReport::Initialize( MacroPlan ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelHeader/bRefresh_561 |
| | | Response OnClick () id:Response_PanelExport_545_bRefresh_OnClick |
| | | { |
| | | #keys: '[415136.0.1153803360]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | FinancialWeeklyReport::Initialize( MacroPlan ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bRefresh id:bRefresh_509 |
| | | { |
| | | #keys: '[415136.0.1153803172]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'REFRESH' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | Body: |
| | | [* |
| | | //if( not isnull( MacroPlan.InventorySummarySource() ) ){ |
| | | InventorySummarySource::Initialize( MacroPlan, InterfaceDataset ); |
| | | // InventorySummarySource::Initialize( MacroPlan, InterfaceDataset ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, InventorySummarySource.InventorySummaryReport, table, table.IsShow() ); |
| | | //table := selectobject( MacroPlan, InventorySummarySource.InventorySummaryReport, table, table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | //DataHolderTable.Data( table ); |
| | | |
| | | dhSearch.Data( table.InventorySummarySource().InventorySummarySearch() ); |
| | | //dhSearch.Data( table.InventorySummarySource().InventorySummarySearch() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //åºé´æ¹ååå·æ°æ¾ç¤º |
| | | if( dhSearch.Data().Category() <> this.BoundValue() ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Category() <> this.BoundValue() ){ |
| | | dhSearch.Data().Category( this.BoundValue() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelExport/bRefresh_509 |
| | | Response OnClick () id:Response_PanelExport_545_bRefresh_OnClick |
| | | { |
| | | #keys: '[415136.0.1153803171]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | InventorySummarySource::Initialize( MacroPlan, InterfaceDataset ); |
| | | |
| | | table := selectobject( MacroPlan, InventorySummarySource.InventorySummaryReport, table, table.IsShow() ); |
| | | |
| | | DataHolderTable.Data( table ); |
| | | |
| | | //dhSearch.Data( MacroPlan.InventorySummarySearch() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //ä»£æ°æ¹ååå·æ°æ¾ç¤º |
| | | if( dhSearch.Data().Generation() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Generation() <> selection ){ |
| | | dhSearch.Data().Generation( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //æ¨ªçºµå¶æ¹ååå·æ°æ¾ç¤º |
| | | if( dhSearch.Data().MqbMlb() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().MqbMlb() <> selection ){ |
| | | dhSearch.Data().MqbMlb( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | if( this.Date() < DateSelectorStart.Date() ){ |
| | | this.HintError( 'The end date cannot be less than the start date!' ); |
| | | }else{ |
| | | if( dhSearch.Data().EndDate() <> this.Date() ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().EndDate() <> this.Date() ){ |
| | | dhSearch.Data().EndDate( this.Date() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | if( this.Date() > DateSelectorEnd.Date() ){ |
| | | this.HintError( 'The start date cannot be later than the end date!' ); |
| | | }else{ |
| | | if( dhSearch.Data().StartDate() <> this.Date() ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().StartDate() <> this.Date() ){ |
| | | dhSearch.Data().StartDate( this.Date() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //åçæ¹ååå·æ°æ¾ç¤º |
| | | if( dhSearch.Data().Power() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Power() <> selection ){ |
| | | dhSearch.Data().Power( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //Unitæ´æ°åçææ°çæ¾ç¤º |
| | | if( dhSearch.Data().Unit() <> selection ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().Unit() <> selection ){ |
| | | dhSearch.Data().Unit( selection ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | #keys: '[415136.0.864612034]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'InventorySummarySearch' |
| | | Children: |
| | | [ |
| | | Component deSearch |
| | | { |
| | | #keys: '[415136.0.1153810823]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'InventorySummarySearch' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component bRefresh |
| | | { |
| | | #keys: '[415136.0.1153803668]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'REFRESH' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | Body: |
| | | [* |
| | | //if( not isnull( MacroPlan.EnginePipelineSource() ) ){ |
| | | MachiningPipelineSource::Initialize( MacroPlan ); |
| | | // MachiningPipelineSource::Initialize( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, MachiningPipelineSource.Report, table, table.IsShow() ); |
| | | //table := selectobject( MacroPlan, MachiningPipelineSource.Report, table, table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | //DataHolderTable.Data( table ); |
| | | |
| | | dhSearch.Data( table.Source().Search() ); |
| | | //dhSearch.Data( table.Source().Search() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelExport/bRefresh |
| | | Response OnClick () id:Response_PanelHeader_bRefresh_OnClick |
| | | { |
| | | #keys: '[415136.0.1153803667]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | MachiningPipelineSource::Initialize( MacroPlan ); |
| | | |
| | | table := selectobject( MacroPlan, MachiningPipelineSource.Report, table, table.IsShow() ); |
| | | |
| | | DataHolderTable.Data( table ); |
| | | |
| | | dhSearch.Data( MacroPlan.MachiningPipelineSearch() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | if( this.Date() < DateSelectorStart.Date() ){ |
| | | this.HintError( 'The end date cannot be less than the start date!' ); |
| | | }else{ |
| | | if( dhSearch.Data().EndDate() <> this.Date() ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().EndDate() <> this.Date() ){ |
| | | dhSearch.Data().EndDate( this.Date() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | if( this.Date() > DateSelectorEnd.Date() ){ |
| | | this.HintError( 'The start date cannot be later than the end date!' ); |
| | | }else{ |
| | | if( dhSearch.Data().StartDate() <> this.Date() ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().StartDate() <> this.Date() ){ |
| | | dhSearch.Data().StartDate( this.Date() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //åºé´æ¹ååå·æ°æ¾ç¤º |
| | | if( dhSearch.Data().TimeUnit() <> this.BoundValue() ){ |
| | | if( not isnull( dhSearch.Data() ) and dhSearch.Data().TimeUnit() <> this.BoundValue() ){ |
| | | dhSearch.Data().TimeUnit( this.BoundValue() ); |
| | | // DataHolderTable.Data().Generate( dhSearch.Data(), DataHolderProduct.Data() ); |
| | | } |
| | |
| | | #keys: '[415136.0.893820823]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'MachiningPipelineSearch' |
| | | Children: |
| | | [ |
| | | Component deSearch |
| | | { |
| | | #keys: '[415136.0.1155813174]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'MachiningPipelineSearch' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |