Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev-zlg
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute CCExternalRentalWarehouseDLMaterialRackCost |
| | | { |
| | | #keys: '3[415754.0.481133919][415754.0.481133918][415754.0.481133920]' |
| | | Description: 'CCå¤ç§åºDLææ¶è´¹ç¨' |
| | | ValueType: Real |
| | | } |
| | |
| | | Attribute CCLineHaulCost |
| | | { |
| | | #keys: '3[413988.0.1488160127][413988.0.1488160126][413988.0.1488160128]' |
| | | Description: 'CCé¿éè¿è¾è´¹ç¨' |
| | | Description: |
| | | [* |
| | | CCé¿éè¿è¾è´¹ç¨ |
| | | |
| | | æ¹å为 |
| | | |
| | | 两åé´ææ¶è¿è¾è´¹ç¨ |
| | | *] |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DLRentalWarehouseMaterialRackCost |
| | | { |
| | | #keys: '3[415754.0.481133882][415754.0.481133881][415754.0.481133883]' |
| | | Description: 'DLå¤ç§åºææ¶è´¹ç¨' |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsCCExternalRentalWarehouseDLMaterialRackCost |
| | | { |
| | | #keys: '3[415754.0.483610507][415754.0.483610506][415754.0.483610508]' |
| | | Description: 'CCå¤ç§åºDLææ¶è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute IsDLRentalWarehouseMaterialRackCost |
| | | { |
| | | #keys: '3[415754.0.483610464][415754.0.483610463][415754.0.483610465]' |
| | | Description: 'DLå¤ç§åºææ¶è´¹ç¨æ´æ°å¼' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod AwaitLocalTableXMLData ( |
| | | const Strings columnXMLData, |
| | | RecycleBin owner, |
| | | String tableName, |
| | | String sheetName |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-21-2024 (created) |
| | | manager := select( owner,ExportXMLManager,manager,manager.Name() = tableName ); |
| | | if( not isnull( manager )){ |
| | | manager.Delete(); |
| | | } |
| | | manager := owner.ExportXMLManager( relnew,Name := tableName,SheetName := sheetName ); |
| | | traverse( columnXMLData,Elements,element,element.TrimBoth() <> "" ){ |
| | | data := manager.ExportXMLData( relnew, XML := element); |
| | | try{ |
| | | data.Priority( data.CalculatePriority( )); |
| | | }onerror{ |
| | | info( element ); |
| | | } |
| | | } |
| | | *] |
| | | } |
| | |
| | | columnstring := columnstring.Merge( cellxml); |
| | | } |
| | | |
| | | columnstring -> GroupAll() -> ExportXMLManager::AwaitLocalTableXMLData( recycleBin,guard( rows.Element(0).LocalTable().Name(),LocalCell_DemandComparison::GetTableName()) ); |
| | | columnstring -> GroupAll() -> ExportXMLManager::AwaitLocalTableXMLData( recycleBin,LocalCell_DemandComparison::GetTableName(),guard( rows.Element(0).LocalTable().Name(),"") ); |
| | | *] |
| | | } |
| | |
| | | columns := construct( LocalColumns ); |
| | | LocalCell_DemandComparison::GenerateColumnIndex( baseVersionTable,localTable,columnTree,columns ); |
| | | LocalCell_DemandComparison::GenerateColumnIndex( compareVersionTable,localTable,columnTree,columns ); |
| | | columnNames := selectvalues( columns,Elements,column,true,column.Name() ); |
| | | columnNames := selectvalues( columns,Elements,column,true,column.CustomName()); |
| | | |
| | | // çææ°æ® |
| | | for ( rowIndex := 0; rowIndex < rowKeys.Size(); rowIndex++ ) { |
| | |
| | | |
| | | row := localTable.LocalRow( relnew,Index := localTable.GetRowIndexCache() ); |
| | | |
| | | traverse( columnNames,Elements,columnName ){ |
| | | traverse( columnNames,Elements,columnName ,columnName <> "" ){ |
| | | columnHandle := columnTree.GetHandle( columnName ); |
| | | columnIndex := columnTree.Root().Child( columnHandle ).GetValueAsNumber(); |
| | | column := columns.Element( columnIndex ); |
| | | columnIndex := guard( columnTree.Root().Child( columnHandle ) , null( NamedValue )); |
| | | column := null( LocalColumn ); |
| | | if( not isnull( columnIndex )){ |
| | | column := columns.Element( columnIndex.GetValueAsNumber() ); |
| | | } |
| | | if( isnull( column )){ |
| | | error( columnName + " is null." ); |
| | | } |
| | | |
| | | baseVersionCell := constnull( GeneralExcelImportAndExportDataCell ); |
| | | baseVersionCellHandle := baseVersionCellTree.GetHandle( columnName ); |
| | | try{ |
| | | baseVersionCellIndex := baseVersionCellTree.Root().Child( baseVersionCellHandle ).GetValueAsNumber(); |
| | | baseVersionCell := baseVersionCells.Element( baseVersionCellIndex ); |
| | | }onerror{} |
| | | baseVersionCellIndex := guard( baseVersionCellTree.Root().Child( baseVersionCellHandle ),null( NamedValue )); |
| | | if( not isnull( baseVersionCellIndex )){ |
| | | baseVersionCell := baseVersionCells.Element( baseVersionCellIndex.GetValueAsNumber() ); |
| | | } |
| | | |
| | | compareVersionCell := constnull( GeneralExcelImportAndExportDataCell ); |
| | | compareVersionCellHandle := compareVersionCellTree.GetHandle( columnName ); |
| | | try{ |
| | | compareVersionCellIndex := compareVersionCellTree.Root().Child( compareVersionCellHandle ).GetValueAsNumber(); |
| | | compareVersionCell := compareVersionCells.Element( compareVersionCellIndex ); |
| | | }onerror{} |
| | | compareVersionCellIndex := guard( compareVersionCellTree.Root().Child( compareVersionCellHandle ),null( NamedValue )); |
| | | if( not isnull( compareVersionCellIndex )){ |
| | | compareVersionCell := compareVersionCells.Element( compareVersionCellIndex.GetValueAsNumber() ); |
| | | } |
| | | |
| | | if( columnName = "产å°" or columnName = "车å" or columnName = "å卿ºé¶ä»¶å·" or columnName = "å卿ºåä½ç " ){ |
| | | row.LocalCell( relnew,LocalCell_DemandComparison,LocalColumn := column, |
| | |
| | | if( not isnull( compareVersionFile )){ |
| | | compareVersionFile.Close(); |
| | | } |
| | | error( e ); |
| | | error( e.GeneralInformation() ); |
| | | } |
| | | |
| | | return localTable; |
| | |
| | | |
| | | traverse( table,LocalRow,row ){ |
| | | traverse( table,LocalColumn,column,column.TimeUnit() = "Week"){ |
| | | baseVersionValue := sum( table,LocalRow.LocalCell.astype( LocalCell_OfflinePlanComparison ),cell, |
| | | baseVersionValue := sum( row,LocalCell.astype( LocalCell_OfflinePlanComparison ),cell, |
| | | cell.LocalColumn().TimeUnit() = "Day" and |
| | | cell.LocalColumn().CustomDate() >= column.CustomDate() and |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextWeek(), cell.BaseVersionValue()); |
| | | compareVersionValue := sum( table,LocalRow.LocalCell.astype( LocalCell_OfflinePlanComparison ),cell, |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextWeek(), cell.BaseVersion()); |
| | | compareVersionValue := sum( row,LocalCell.astype( LocalCell_OfflinePlanComparison ),cell, |
| | | cell.LocalColumn().TimeUnit() = "Day" and |
| | | cell.LocalColumn().CustomDate() >= column.CustomDate() and |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextWeek(), cell.CompareVersionValue()); |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextWeek(), cell.CompareVersion()); |
| | | |
| | | row.LocalCell(relnew,LocalCell_OfflinePlanComparison,LocalColumn := column,BaseVersionValue := baseVersionValue,CompareVersionValue := compareVersionValue ); |
| | | row.LocalCell( relnew,LocalCell_OfflinePlanComparison,LocalColumn := column,BaseVersion := baseVersionValue,CompareVersion := compareVersionValue ); |
| | | } |
| | | } |
| | | traverse( table,LocalRow,row ){ |
| | | traverse( table,LocalColumn,column,column.TimeUnit() = "Month "){ |
| | | baseVersionValue := sum( table,LocalRow.LocalCell.astype( LocalCell_OfflinePlanComparison ),cell, |
| | | baseVersionValue := sum( row,LocalCell.astype( LocalCell_OfflinePlanComparison ),cell, |
| | | cell.LocalColumn().TimeUnit() = "Day" and |
| | | cell.LocalColumn().CustomDate() >= column.CustomDate() and |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextMonth(), cell.BaseVersionValue()); |
| | | compareVersionValue := sum( table,LocalRow.LocalCell.astype( LocalCell_OfflinePlanComparison ),cell, |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextMonth(), cell.BaseVersion()); |
| | | compareVersionValue := sum( row,LocalCell.astype( LocalCell_OfflinePlanComparison ),cell, |
| | | cell.LocalColumn().TimeUnit() = "Day" and |
| | | cell.LocalColumn().CustomDate() >= column.CustomDate() and |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextMonth(), cell.CompareVersionValue()); |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextMonth(), cell.CompareVersion()); |
| | | |
| | | row.LocalCell(relnew,LocalCell_OfflinePlanComparison,LocalColumn := column,BaseVersionValue := baseVersionValue,CompareVersionValue := compareVersionValue ); |
| | | row.LocalCell( relnew,LocalCell_OfflinePlanComparison,LocalColumn := column,BaseVersion := baseVersionValue,CompareVersion := compareVersionValue ); |
| | | } |
| | | } |
| | | |
| | |
| | | localColumns := construct( LocalColumns ); |
| | | localColumnIndexTree := NamedValueTree::Create(); |
| | | traverse( this,NewOfflinePlanColumn,column,column.StartDate() >= macroPlan.StartOfPlanning().Date()){ |
| | | localColumn := table.LocalColumn( relnew,CustomDate := column.StartDate()); |
| | | localColumn := table.LocalColumn( relnew,CustomDate := column.StartDate(),TimeUnit := "Day"); |
| | | localColumnHandle := localColumnIndexTree.GetHandle( column.StartDate().AsQUILL() ); |
| | | localColumns.Add( localColumn ); |
| | | localColumnIndexTree.Root().AddChild( localColumnHandle,localColumns.Size() - 1 ); |
| | |
| | | } |
| | | } |
| | | |
| | | startDate := minselect( table,LocalColumn,localColumn,localColumn.CustomDate() ).CustomDate(); |
| | | endDate := maxselect( table,LocalColumn,localColumn,localColumn.CustomDate() ).CustomDate(); |
| | | for( i := startDate.StartOfWeek(); i <= endDate.StartOfNextWeek(); i := i.StartOfNextWeek() ){ |
| | | timeUnit := "Week"; |
| | | localColumnHandle := localColumnIndexTree.GetHandle( i.AsQUILL() + timeUnit); |
| | | localColumn := table.LocalColumn( relnew,CustomDate := i,TimeUnit := timeUnit ); |
| | | localColumns.Add( localColumn ); |
| | | localColumnIndexTree.Root().AddChild( localColumnHandle,localColumns.Size() - 1 ); |
| | | } |
| | | for( i := startDate.StartOfMonth(); i <= endDate.StartOfNextMonth(); i := i.StartOfNextMonth() ){ |
| | | timeUnit := "Month"; |
| | | localColumnHandle := localColumnIndexTree.GetHandle( i.AsQUILL() + timeUnit); |
| | | localColumn := table.LocalColumn( relnew,CustomDate := i,TimeUnit := timeUnit ); |
| | | localColumns.Add( localColumn ); |
| | | localColumnIndexTree.Root().AddChild( localColumnHandle,localColumns.Size() - 1 ); |
| | | } |
| | | traverse( table,LocalRow,row ){ |
| | | traverse( table,LocalColumn,column,column.TimeUnit() = "Week"){ |
| | | actual := sum( row,LocalCell.astype( LocalCell_ProductionComparison ),cell, |
| | | cell.LocalColumn().TimeUnit() = "Day" and |
| | | cell.LocalColumn().CustomDate() >= column.CustomDate() and |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextWeek(), cell.Actual()); |
| | | plan := sum( row,LocalCell.astype( LocalCell_ProductionComparison ),cell, |
| | | cell.LocalColumn().TimeUnit() = "Day" and |
| | | cell.LocalColumn().CustomDate() >= column.CustomDate() and |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextWeek(), cell.Plan()); |
| | | |
| | | row.LocalCell( relnew,LocalCell_ProductionComparison,LocalColumn := column,Actual := actual,Plan := plan ); |
| | | } |
| | | } |
| | | traverse( table,LocalRow,row ){ |
| | | traverse( table,LocalColumn,column,column.TimeUnit() = "Month"){ |
| | | actual := sum( row,LocalCell.astype( LocalCell_ProductionComparison ),cell, |
| | | cell.LocalColumn().TimeUnit() = "Day" and |
| | | cell.LocalColumn().CustomDate() >= column.CustomDate() and |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextMonth(), cell.Actual()); |
| | | plan := sum( row,LocalCell.astype( LocalCell_ProductionComparison ),cell, |
| | | cell.LocalColumn().TimeUnit() = "Day" and |
| | | cell.LocalColumn().CustomDate() >= column.CustomDate() and |
| | | cell.LocalColumn().CustomDate() < column.CustomDate().StartOfNextMonth(), cell.Plan()); |
| | | |
| | | row.LocalCell( relnew,LocalCell_ProductionComparison,LocalColumn := column,Actual := actual,Plan := plan ); |
| | | } |
| | | } |
| | | |
| | | return table; |
| | | *] |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | rows := selectset( dhComparisonData.Data(),LocalRow,row,exists( dhFinelProduct.Data(),Elements,product,product.ID() = row.Name() ) ); |
| | | rows := selectset( dhComparisonData.Data(),LocalRow,row,exists( dhFinelProduct.Data(),Elements,product,product.ID() = row.ProductID())); |
| | | columns := selectset( dhComparisonData.Data( ),LocalColumn,column,not column.IsAttrbuteColumn() and dhStartDate.Data() <= column.Date() and dhEndDate.Data() > column.Date() ); |
| | | LocalCell_DemandComparison::AsyncExport( RecycleBin, rows, columns ,MacroPlan ); |
| | | *] |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( not isnull( dhXMLDataListener.Data() )){ |
| | | binaryValue := dhXMLDataListener.Data( ).Export(); |
| | | |
| | | Application.Download( LocalCell_DemandComparison::GetTableName() + "_" + DateTime::Now().Format( "YM2D2H2mmss" ) + ".xlsx", binaryValue.AsBinaryData() ); |
| | | |
| | | Application.Download( dhXMLDataListener.Data().SheetName() + "_" + DateTime::Now().Format( "YM2D2H2mmss" ) + ".xlsx", binaryValue.AsBinaryData() ); |
| | | dhXMLDataListener.Data( ).Delete(); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'startDate:QMacroPlanner::FormOfflinePlanComparison.dhStartDate;endDate:QMacroPlanner::FormOfflinePlanComparison.dhEndDate' |
| | | FixedFilter: 'not object.IsAttrbuteColumn() and startDate <= object.Date() and endDate > object.Date()' |
| | | FilterArguments: 'startDate:QMacroPlanner::FormOfflinePlanComparison.dhStartDate;endDate:QMacroPlanner::FormOfflinePlanComparison.dhEndDate;timeUnit:QMacroPlanner::FormOfflinePlanComparison.dhTimeUnit' |
| | | FixedFilter: 'not object.IsAttrbuteColumn() and startDate <= object.Date() and endDate > object.Date() and object.TimeUnit() = timeUnit' |
| | | Source: 'dhTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalColumn' |
| | |
| | | [ |
| | | DataBinding: 'ddlOfflinePlanTable.Data.TableName' |
| | | NumberOfColumns: 50 |
| | | Taborder: 4 |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component bExport id:bExport_298 |
| | |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Taborder: 2 |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component dhXMLDataListener id:dhXMLDataListener_273 |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | Component rbgTimeUnit |
| | | { |
| | | #keys: '[414996.1.147730565]' |
| | | BaseType: 'WebRadioButtonGroup' |
| | | Properties: |
| | | [ |
| | | BoundValue: 'Day' |
| | | ButtonLabels: 'Day;Week;Month' |
| | | ButtonValues: 'Day;Week;Month' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dhTimeUnit |
| | | { |
| | | #keys: '[414996.1.147730603]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'String*' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRibbon504/dhTimeUnit |
| | | Response OnCreated () id:Response_PanelRibbon504_801_dhTimeUnit_OnCreated |
| | | { |
| | | #keys: '[414996.1.147730601]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | this.Data( "Day" ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelRibbon504/rbgTimeUnit |
| | | Response OnUserChanged () id:Response_PanelRibbon504_801_rbgTimeUnit_OnUserChanged |
| | | { |
| | | #keys: '[414996.1.147730564]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebRadioButtonGroup_OnUserChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dhTimeUnit.Data( this.BoundValue() ); |
| | | *] |
| | | } |
| | | } |