| | |
| | | { |
| | | DefaultText: '/data-service/api/service/post-data/V1.101/f084aa52d19c48d090416936a94f1dab' |
| | | } |
| | | InfoMessage InterfaceDataset_InventoryReport_Name |
| | | { |
| | | DefaultText: 'Inventory report' |
| | | } |
| | | InfoMessage InterfaceDataset_MachineStockData_Name |
| | | { |
| | | DefaultText: 'Machine stock data' |
| | |
| | | { |
| | | DefaultText: 'The import field is empty.' |
| | | } |
| | | InfoMessage MP_ChangeLossSettingExcel_Import_PositiveInteger |
| | | { |
| | | DefaultText: 'The import ChangeLossNr is not positive integer.' |
| | | } |
| | | InfoMessage MP_ChangeLossSettingExcel_Import_ProductNoExist |
| | | { |
| | | DefaultText: 'The entered product does not exist.' |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation InterfaceInventoryReport_InterfaceDataset_InterfaceDataset_InventoryReport |
| | | { |
| | | #keys: '1[415136.0.1094697716]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide InterfaceDataset |
| | | { |
| | | #keys: '3[415136.0.1094697718][415136.0.1094697717][415136.0.1094697719]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: InterfaceInventoryReport |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide InventoryReport |
| | | { |
| | | #keys: '3[415136.0.1094697721][415136.0.1094697720][415136.0.1094697722]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: InterfaceDataset |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation InterfaceInventoryReport_Loginfo_InterfaceLoginfo_InventoryReport |
| | | { |
| | | #keys: '1[415136.0.1094697729]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide Loginfo |
| | | { |
| | | #keys: '3[415136.0.1094697731][415136.0.1094697730][415136.0.1094697732]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: InterfaceInventoryReport |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide InventoryReport |
| | | { |
| | | #keys: '3[415136.0.1094697734][415136.0.1094697733][415136.0.1094697735]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: InterfaceLoginfo |
| | | OwningSide: 'Reference' |
| | | } |
| | | } |
| | |
| | | or excel.ChangeLossNr() = 0 ) ){ |
| | | error( Translations::MP_ChangeLossSettingExcel_Import_NullInputRequiredField() ); |
| | | } |
| | | //导å
¥çæ°éå°äº0 |
| | | if( exists( macroplan, ChangeLossSettingExcel, excel, excel.ChangeLossNr() < 0 ) ){ |
| | | error( Translations::MP_ChangeLossSettingExcel_Import_PositiveInteger() ); |
| | | } |
| | | //导å
¥äº§åæ¯å¦åå¨ |
| | | if( exists( macroplan, ChangeLossSettingExcel, excel, not exists( macroplan, Product_MP, product, product.ID() = excel.Product1() or product.ID() = excel.Product2() ) ) ){ |
| | | error( Translations::MP_ChangeLossSettingExcel_Import_ProductNoExist() ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Category |
| | | { |
| | | #keys: '3[415136.0.1094697746][415136.0.1094697745][415136.0.1094697747]' |
| | | Description: 'æ¥æç±»å' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute FactoryName |
| | | { |
| | | #keys: '3[415136.0.1094697851][415136.0.1094697850][415136.0.1094697852]' |
| | | Description: 'å·¥ååç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Generation |
| | | { |
| | | #keys: '3[415136.0.1094697756][415136.0.1094697755][415136.0.1094697757]' |
| | | Description: 'å卿ºä»£æ°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute InterfaceTime |
| | | { |
| | | #keys: '3[415136.0.1094697861][415136.0.1094697860][415136.0.1094697862]' |
| | | Description: 'æ¥å£äºä»¶' |
| | | ValueType: DateTime |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute InventoryAveQty |
| | | { |
| | | #keys: '3[415136.0.1094697834][415136.0.1094697833][415136.0.1094697835]' |
| | | Description: 'å¹³ååºåé' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute InventoryDate |
| | | { |
| | | #keys: '3[415136.0.1094697806][415136.0.1094697805][415136.0.1094697807]' |
| | | Description: 'åºåæ¥æ' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute InventoryEndQty |
| | | { |
| | | #keys: '3[415136.0.1094697796][415136.0.1094697795][415136.0.1094697797]' |
| | | Description: 'ææ«åºåé' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute InventoryMaxQty |
| | | { |
| | | #keys: '3[415136.0.1094697827][415136.0.1094697826][415136.0.1094697828]' |
| | | Description: 'æå¤§åºåé' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute InventoryMinQty |
| | | { |
| | | #keys: '3[415136.0.1094697816][415136.0.1094697815][415136.0.1094697817]' |
| | | Description: 'æå°åºåé' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute MLBMQB |
| | | { |
| | | #keys: '3[415136.0.1094697766][415136.0.1094697765][415136.0.1094697767]' |
| | | Description: '横纵å¶' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Power |
| | | { |
| | | #keys: '3[415136.0.1094697776][415136.0.1094697775][415136.0.1094697777]' |
| | | Description: 'åç' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Product |
| | | { |
| | | #keys: '3[415136.0.1094697786][415136.0.1094697785][415136.0.1094697787]' |
| | | Description: 'ç©æå·' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute VersionName |
| | | { |
| | | #keys: '3[415136.0.1094697841][415136.0.1094697840][415136.0.1094697842]' |
| | | Description: 'çæ¬åç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GenerateData ( |
| | | const MacroPlan macroplan, |
| | | InterfaceDataset interfaceDataset, |
| | | String executor |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Aug-30-2024 (created) |
| | | loginfo := maxobject( interfaceDataset, InterfaceLoginfo, loginfo, loginfo.Name() = Translations::InterfaceDataset_CustomerDemandPPAIDS_Name(), loginfo.InterfaceDateTime() ); |
| | | if( not isnull( loginfo ) ){ |
| | | if( not loginfo.IsShow() ){ |
| | | loginfo.Delete(); |
| | | }else{ |
| | | loginfo.Last( false ); |
| | | } |
| | | interfaceDataset.CustomerDemandPPAIDS( relflush ); |
| | | } |
| | | nowdate := DateTime::ActualTime(); |
| | | loginfo := interfaceDataset.InterfaceLoginfo( relnew, ExecuteUser := executor |
| | | , Name := Translations::InterfaceDataset_CustomerDemandPPAIDS_Name() |
| | | , InterfaceDateTime := nowdate |
| | | , Message := '客æ·éæ±ï¼PPA+IDSï¼æ°æ®æ¨é' |
| | | , Last := true |
| | | , IsShow := false |
| | | , ReturnSuccess := true |
| | | , ReturnMsg := 'Success' |
| | | , Success := true |
| | | ); |
| | | traverse( macroplan, SalesDemand.astype( Forecast ), forecast ){ |
| | | cd :=interfaceDataset.CustomerDemandPPAIDS( relnew, Product := forecast.ProductID() |
| | | , DemandDate := forecast.StartDate() |
| | | , DemandQty := [Number]forecast.Quantity() |
| | | , VersionName := macroplan.ScenarioName() |
| | | , InterfaceTime := nowdate |
| | | , VersionFlag := versionflag |
| | | ); |
| | | loginfo.CustomerDemandPPAIDS( relinsert, cd ); |
| | | } |
| | | loginfo.TotalRow( loginfo.CustomerDemandPPAIDS( relsize ) ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type InterfaceInventoryReport |
| | | { |
| | | #keys: '5[415136.0.1094697713][415136.0.1094697711][0.0.0][415136.0.1094697712][415136.0.1094697714]' |
| | | BaseType: Object |
| | | Description: 'åºåæ¥è¡¨' |
| | | StructuredName: 'InterfaceInventoryReports' |
| | | } |
| | |
| | | [* |
| | | // Always create a general EventCategory. |
| | | //LibCal_EventCategory::Create( this, LibCal_EventType::DEFAULT_TYPE() ); |
| | | this.EventType( relnew,ID := "blank", Name := LibCal_EventType::DEFAULT_TYPE() ); |
| | | |
| | | eventtype := this.EventType( relnew,ID := "blank", Name := LibCal_EventType::DEFAULT_TYPE() ); |
| | | eventtype.SetRootEvent(); |
| | | // Create additional EventCategories. |
| | | //LibCal_EventCategory::InitializeEventCategories( this ); |
| | | *] |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | CheckboxBehavior: 'include descendants' |
| | | CheckboxBehavior: 'must have descendants' |
| | | CheckboxCopy: true |
| | | CheckboxDecoration: 'detailed' |
| | | SelectionCheckboxes: true |
| | | Taborder: 1 |
| | | ] |