_Main/BL/Relations/Relation_CustomerDemandIDS_InterfaceDataset_InterfaceDataset_CustomerDemandI.qbl
ÎļþÒÑɾ³ý _Main/BL/Relations/Relation_CustomerDemandIDS_MacroPlan_MacroPlan_CustomerDemandIDS.qbl
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,23 @@ Quintiq file version 2.0 #parent: #root Relation CustomerDemandIDS_MacroPlan_MacroPlan_CustomerDemandIDS { #keys: '1[415136.0.1113700065]' DefaultRelationStrategy { } RelationSide.LeftSide MacroPlan { #keys: '3[415136.0.1113700067][415136.0.1113700066][415136.0.1113700068]' Cardinality: '0to1' ObjectDefinition: CustomerDemandIDS OwningSide: 'Reference' } RelationSide.RightSide CustomerDemandIDS { #keys: '3[415136.0.1113700070][415136.0.1113700069][415136.0.1113700071]' Cardinality: '1toN' ObjectDefinition: MacroPlan OwningSide: 'Owned' } } _Main/BL/Type_CustomerDemandIDS/Method_SyncRows.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/StaticMethod_ReadStructure.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/XML_CustomerDemandIDSXML/XMLElementId_Key.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/XML_CustomerDemandIDSXML/XMLElementId_QuintiqType.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/XML_CustomerDemandIDSXML/XMLObjectBase_cell.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/XML_CustomerDemandIDSXML/XMLObjectBase_column.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/XML_CustomerDemandIDSXML/XMLObjectBase_table.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/XML_CustomerDemandIDSXML/_ROOT_XML_CustomerDemandIDSXML.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/XML_CustomerDemandIDSXMLHeaders/XMLElementId_Key.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/XML_CustomerDemandIDSXMLHeaders/XMLElementId_QuintiqType.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/XML_CustomerDemandIDSXMLHeaders/XMLObjectBase_column.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/XML_CustomerDemandIDSXMLHeaders/XMLObjectBase_table.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandIDS/XML_CustomerDemandIDSXMLHeaders/_ROOT_XML_CustomerDemandIDSXMLHeaders.qbl
ÎļþÒÑɾ³ý _Main/BL/Type_CustomerDemandPPAIDS/StaticMethod_GenerateData.qbl
@@ -2,6 +2,7 @@ #parent: #root StaticMethod GenerateData ( const MacroPlan macroplan, RecycleBin recycle, const Archive archive, InterfaceDataset interfaceDataset, String executor, @@ -43,15 +44,16 @@ loginfo.CustomerDemandPPAIDS( relinsert, cd ); } binaryValue := TemplateManager::GetIDSFullTable( archive, Date::ActualDate().Year() ); CustomerDemandIDS::ReadStructure( binaryValue, interfaceDataset ); productcolumn := select( interfaceDataset, CustomerDemandIDS.Column, column, column.Index() = 1 ); source := GeneralExcelImportAndExportDataSource::Upload( recycle, binaryValue, OS::TempPath() + "template.xlsx" ); source.ReadStructure(); //productcolumn := select( recycle, ge.Column, column, column.Index() = 1 ); cnv2 := StringToDate::StandardConverter(); cnv2.SetCustomConversion(); cnv2.CustomFormatString( "dd/MM/yyyy" ); traverse( interfaceDataset, CustomerDemandIDS.Row, row ){ product := selectobject( row, Cell, cell, cell.Column() = productcolumn ); traverse( row, Cell, cell, cell.Column().Index() > 3 ){ period := cnv2.Convert( cell.Column().Name() ); traverse( recycle, GeneralExcelImportAndExportDataSource.GeneralExcelImportAndExportDataTable.GeneralExcelImportAndExportDataRow, row ){ product := selectobject( row, GeneralExcelImportAndExportDataCell, cell, cell.GeneralExcelImportAndExportDataColumn().ColumnIndex() = 1 ); traverse( row, GeneralExcelImportAndExportDataCell, cell, cell.GeneralExcelImportAndExportDataColumn().ColumnIndex() > 3 ){ period := cnv2.Convert( cell.GeneralExcelImportAndExportDataColumn().Name() ); cd :=interfaceDataset.CustomerDemandPPAIDS( relnew, Product := product.Value() , DemandDate := period , DemandQty := [Number]cell.Value() @@ -62,6 +64,7 @@ loginfo.CustomerDemandPPAIDS( relinsert, cd ); } } source.Delete(); loginfo.TotalRow( loginfo.CustomerDemandPPAIDS( relsize ) ); *] } _Main/UI/MacroPlannerWebApp/Component_DialogCustomerDemandPPAIDS/Method_OnOK.def
@@ -11,7 +11,7 @@ currentuser := QuintiqUser::CurrentUser().DisplayName(); isactive := ifexpr( rbgVersionFlag.BoundValue() = "true", true, false ); if( efInterfacename.Text() = Translations::InterfaceDataset_CustomerDemandPPAIDS_Name() ){//客æ·éæ± CustomerDemandPPAIDS::GenerateData( MacroPlan, InterfaceDataset, currentuser, isactive ); CustomerDemandPPAIDS::GenerateData( MacroPlan, RecycleBin, Archive, InterfaceDataset, currentuser, isactive ); } if( efInterfacename.Text() = Translations::InterfaceDataset_AssemblyOnlinePlanPPPSPush_Name()){//è£ é ä¸çº¿ AssemblyOnlinePlanPPPSPush::GenerateData( MacroPlan, InterfaceDataset, currentuser, isactive );