Merge branch 'dev_yx_pr' into dev_yx
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation ERPRequestOfPR_PRHistoryData_PRHistoryData_ERPRequestOfPR |
| | | { |
| | | #keys: '1[414384.0.795671693]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide PRHistoryData |
| | | { |
| | | #keys: '3[414384.0.795671695][414384.0.795671694][414384.0.795671696]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: ERPRequestOfPR |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide ERPRequestOfPR |
| | | { |
| | | #keys: '3[414384.0.795671698][414384.0.795671697][414384.0.795671699]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: PRHistoryData |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation ERPResponseOfPR_ERPRequestOfPR_ERPRequestOfPR_ERPResponseOfPR |
| | | { |
| | | #keys: '1[414384.0.789498681]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide ERPRequestOfPR |
| | | { |
| | | #keys: '3[414384.0.789498683][414384.0.789498682][414384.0.789498684]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: ERPResponseOfPR |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide ERPResponseOfPR |
| | | { |
| | | #keys: '3[414384.0.789498686][414384.0.789498685][414384.0.789498687]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: ERPRequestOfPR |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation PRData_MacroPlan_MacroPlan_PRData |
| | | { |
| | | #keys: '1[414384.0.796031632]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[414384.0.796031634][414384.0.796031633][414384.0.796031635]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: PRData |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide PRData |
| | | { |
| | | #keys: '3[414384.0.796031637][414384.0.796031636][414384.0.796031638]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation PRHistoryData_GlobalOTDTable_GlobalOTDTable_PRHistoryData |
| | | { |
| | | #keys: '1[414384.0.789498541]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide GlobalOTDTable |
| | | { |
| | | #keys: '3[414384.0.789498543][414384.0.789498542][414384.0.789498544]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: PRHistoryData |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide PRHistoryData |
| | | { |
| | | #keys: '3[414384.0.789498546][414384.0.789498545][414384.0.789498547]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: GlobalOTDTable |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute BusinessType |
| | | { |
| | | #keys: '3[414384.0.795671721][414384.0.795671720][414384.0.795671722]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DataID |
| | | { |
| | | #keys: '3[414384.0.795671715][414384.0.795671714][414384.0.795671716]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DeliveryDate |
| | | { |
| | | #keys: '3[414384.0.796031591][414384.0.796031590][414384.0.796031592]' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute MRPCalverNo |
| | | { |
| | | #keys: '3[414384.0.795671718][414384.0.795671717][414384.0.795671719]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute OrganCode |
| | | { |
| | | #keys: '3[414384.0.795671724][414384.0.795671723][414384.0.795671725]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProductID |
| | | { |
| | | #keys: '3[414384.0.795671727][414384.0.795671726][414384.0.795671728]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProductName |
| | | { |
| | | #keys: '3[414384.0.795671730][414384.0.795671729][414384.0.795671731]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProviderCode |
| | | { |
| | | #keys: '3[414384.0.795671733][414384.0.795671732][414384.0.795671734]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProviderName |
| | | { |
| | | #keys: '3[414384.0.795671736][414384.0.795671735][414384.0.795671737]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Quantity |
| | | { |
| | | #keys: '3[414384.0.795671742][414384.0.795671741][414384.0.795671743]' |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute StockingPointID |
| | | { |
| | | #keys: '3[414384.0.795671745][414384.0.795671744][414384.0.795671746]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute UnitOfMeasure |
| | | { |
| | | #keys: '3[414384.0.795671748][414384.0.795671747][414384.0.795671749]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method DoCall () as ERPResponseOfPR |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-11-2023 (created) |
| | | conv := DateTimeToString::StandardConverter(); |
| | | conv.SetCustomConversion(); |
| | | conv.CustomFormatString( 'yyyyMMdd' ); |
| | | |
| | | requestJSON := JSON::Object(); |
| | | requestJSON.Add( "BusinessType", this.BusinessType() ); |
| | | requestJSON.Add( "DataID", this.DataID() ); |
| | | requestJSON.Add( "DeliveryDate", conv.Convert( this.DeliveryDate().DateTime() ) ); |
| | | requestJSON.Add( "MRPCalverNo", this.MRPCalverNo() ); |
| | | requestJSON.Add( "OrganCode", this.OrganCode() ); |
| | | requestJSON.Add( "ProductID", this.ProductID() ); |
| | | requestJSON.Add( "ProductName", this.ProductName() ); |
| | | requestJSON.Add( "ProvideCode", this.ProviderCode() ); |
| | | requestJSON.Add( "ProviderName", this.ProviderName() ); |
| | | requestJSON.Add( "Quantity", this.Quantity() ); |
| | | requestJSON.Add( "StockingPointID", this.StockingPointID() ); |
| | | requestJSON.Add( "UnitOfMeasure", this.UnitOfMeasure() ); |
| | | |
| | | requestString := requestJSON.AsString(); |
| | | |
| | | // æé httpè¯·æ± todo |
| | | httpInterface := HTTPInterface::Create( "127.0.0.1", 443 ); |
| | | httpInterface.URL( "/url" ); |
| | | httpInterface.PostMethod( true ); |
| | | httpInterface.AddHeader( "content-type", "application/json" ); |
| | | |
| | | // åéè¯·æ± |
| | | result := null( ERPResponseOfPR ); |
| | | try { |
| | | httpInterface.Call( requestString ); |
| | | responseString := httpInterface.Result(); |
| | | |
| | | responseJSON := JSON::Parse( responseString ); |
| | | dataID := responseJSON.Get( "DataID" ).GetString(); |
| | | status := responseJSON.Get( "Status" ).GetString(); |
| | | errorDescription := responseJSON.Get( "ErrorDescription" ).GetString(); |
| | | |
| | | result := this.ERPResponseOfPR( relnew, |
| | | DataID := dataID, |
| | | Status := status, |
| | | ErrorDescription := errorDescription ); |
| | | } onerror { |
| | | result := this.ERPResponseOfPR( relnew, |
| | | DataID := this.DataID(), |
| | | Status := "E", |
| | | ErrorDescription := e.GeneralInformation() ); |
| | | } |
| | | |
| | | return result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Create ( |
| | | PRHistoryData history |
| | | ) as ERPRequestOfPR |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | | request := history.ERPRequestOfPR( relnew ); |
| | | |
| | | request.BusinessType( history.BusinessType() ); |
| | | request.DataID( history.DataID() ); |
| | | request.DeliveryDate( history.ProduceRequiredDate() ); |
| | | request.MRPCalverNo( history.MRPCalverNo() ); |
| | | request.OrganCode( history.OrganCode() ); |
| | | request.ProductID( history.ProductID() ); |
| | | request.ProductName( history.ProductName() ); |
| | | request.ProviderCode( history.ProviderCode() ); |
| | | request.ProviderName( history.ProviderName() ); |
| | | request.Quantity( history.Quantity() ); |
| | | request.StockingPointID( history.StockingPointID() ); |
| | | request.UnitOfMeasure( history.UnitOfMeasure() ); |
| | | |
| | | return request; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type ERPRequestOfPR |
| | | { |
| | | #keys: '5[414384.0.789498661][414384.0.789498659][0.0.0][414384.0.789498660][414384.0.789498662]' |
| | | BaseType: Object |
| | | StructuredName: 'ERPRequestOfPRs' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DataID |
| | | { |
| | | #keys: '3[414384.0.789526160][414384.0.789526159][414384.0.789526161]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ErrorDescription |
| | | { |
| | | #keys: '3[414384.0.789526180][414384.0.789526179][414384.0.789526181]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Status |
| | | { |
| | | #keys: '3[414384.0.789526170][414384.0.789526169][414384.0.789526171]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type ERPResponseOfPR |
| | | { |
| | | #keys: '5[414384.0.787890255][414384.0.787890253][0.0.0][414384.0.787890254][414384.0.787890256]' |
| | | BaseType: Object |
| | | Description: 'ERPååº' |
| | | StructuredName: 'ERPResponseOfPRs' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute OrgCode |
| | | { |
| | | #keys: '3[414384.0.795680117][414384.0.795680116][414384.0.795680118]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetByProductId ( |
| | | MacroPlan parent, |
| | | String productId |
| | | ) as MappingProduct |
| | | { |
| | | Description: 'æ ¹æ®æå·æ¥è®°å½' |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | | |
| | | // todo ä¿®æ¹parentç±»å |
| | | value := select( parent, MappingProduct, item, item.ID() = productId ); |
| | | return value; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute AuthorizationStatus |
| | | { |
| | | #keys: '3[414384.0.795671423][414384.0.795671422][414384.0.795671424]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute BusinessType |
| | | { |
| | | #keys: '3[414384.0.789498492][414384.0.789498491][414384.0.789498493]' |
| | | Description: 'äºä¸é¨' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DataID |
| | | { |
| | | #keys: '3[414384.0.795671476][414384.0.795671475][414384.0.795671477]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DeliverToRequestorId |
| | | { |
| | | #keys: '3[414384.0.795671441][414384.0.795671440][414384.0.795671442]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DestinationOrganizationID |
| | | { |
| | | #keys: '3[414384.0.795671438][414384.0.795671437][414384.0.795671439]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DestinationTypeCode |
| | | { |
| | | #keys: '3[414384.0.795671417][414384.0.795671416][414384.0.795671418]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute HeaderDescription |
| | | { |
| | | #keys: '3[414384.0.795671429][414384.0.795671428][414384.0.795671430]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute InterfaceSourceCode |
| | | { |
| | | #keys: '3[414384.0.795671486][414384.0.795671485][414384.0.795671487]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute LineAttribute1 |
| | | { |
| | | #keys: '3[414384.0.795671444][414384.0.795671443][414384.0.795671445]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute LineAttribute6 |
| | | { |
| | | #keys: '3[414384.0.795671447][414384.0.795671446][414384.0.795671448]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute LineType |
| | | { |
| | | #keys: '3[414384.0.795671435][414384.0.795671434][414384.0.795671436]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute LineTypeId |
| | | { |
| | | #keys: '3[414384.0.795671432][414384.0.795671431][414384.0.795671433]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute MRPCalverNo |
| | | { |
| | | #keys: '3[414384.0.789498489][414384.0.789498488][414384.0.789498490]' |
| | | Description: 'MRP计ç®çæ¬å·' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute OrgId |
| | | { |
| | | #keys: '3[414384.0.795671450][414384.0.795671449][414384.0.795671451]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute OrganCode |
| | | { |
| | | #keys: '3[414384.0.789498495][414384.0.789498494][414384.0.789498496]' |
| | | Description: 'ç»ç»ç¼ç ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PRSuggestionDate |
| | | { |
| | | #keys: '3[414384.0.789498483][414384.0.789498482][414384.0.789498484]' |
| | | Description: 'PRå»ºè®®æ¥æ' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PlannerCode |
| | | { |
| | | #keys: '3[414384.0.789498510][414384.0.789498509][414384.0.789498511]' |
| | | Description: 'ç©æè®¡åå' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PreparerId |
| | | { |
| | | #keys: '3[414384.0.795671426][414384.0.795671425][414384.0.795671427]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProduceRequiredDate |
| | | { |
| | | #keys: '3[414384.0.789498480][414384.0.789498479][414384.0.789498481]' |
| | | Description: 'éæ±æ¥æ' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProductID |
| | | { |
| | | #keys: '3[414384.0.789498474][414384.0.789498473][414384.0.789498475]' |
| | | Description: 'é¶ä»¶å·' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProductName |
| | | { |
| | | #keys: '3[414384.0.789498477][414384.0.789498476][414384.0.789498478]' |
| | | Description: 'é¶ä»¶åç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProviderCode |
| | | { |
| | | #keys: '3[414384.0.789498498][414384.0.789498497][414384.0.789498499]' |
| | | Description: 'ä¾åºå代ç ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProviderName |
| | | { |
| | | #keys: '3[414384.0.789498501][414384.0.789498500][414384.0.789498502]' |
| | | Description: 'ä¾åºååç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Quantity |
| | | { |
| | | #keys: '3[414384.0.789498486][414384.0.789498485][414384.0.789498487]' |
| | | Description: 'éæ±æ°é' |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute RequisitionType |
| | | { |
| | | #keys: '3[414384.0.796031490][414384.0.796031489][414384.0.796031491]' |
| | | Description: 'è°æ¥å£ç¨' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute SendBy |
| | | { |
| | | #keys: '3[414384.0.789498519][414384.0.789498518][414384.0.789498520]' |
| | | Description: 'åé人' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute SendStatus |
| | | { |
| | | #keys: '3[414384.0.789498513][414384.0.789498512][414384.0.789498514]' |
| | | Description: 'PRæ°æ®åéç¶æ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute SendTIme |
| | | { |
| | | #keys: '3[414384.0.789498516][414384.0.789498515][414384.0.789498517]' |
| | | Description: 'åéæ¶é´' |
| | | ValueType: DateTime |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute StockingPointID |
| | | { |
| | | #keys: '3[414384.0.789498504][414384.0.789498503][414384.0.789498505]' |
| | | Description: 'æ¶è´§åºåç¹' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute UnitOfMeasure |
| | | { |
| | | #keys: '3[414384.0.789498507][414384.0.789498506][414384.0.789498508]' |
| | | Description: '计éåä½' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute UnitPrice |
| | | { |
| | | #keys: '3[414384.0.795671420][414384.0.795671419][414384.0.795671421]' |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method DoCall ( |
| | | GlobalOTDTable globalData, |
| | | String callBy |
| | | ) as PRHistoryData |
| | | { |
| | | Description: 'è°ç¨' |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-11-2023 (created) |
| | | result := globalData.PRHistoryData( relnew ); |
| | | |
| | | // ç
§æ¬é¨å |
| | | result.AuthorizationStatus( this.AuthorizationStatus() ); |
| | | result.BusinessType( this.BusinessType() ); |
| | | result.DataID( this.DataID() ); |
| | | result.DeliverToRequestorId( this.DeliverToRequestorId() ); |
| | | result.DestinationOrganizationID( this.DestinationOrganizationID() ); |
| | | result.DestinationTypeCode( this.DestinationTypeCode() ); |
| | | result.HeaderDescription( this.HeaderDescription() ); |
| | | result.LineAttribute1( this.LineAttribute1() ); |
| | | result.LineAttribute6( this.LineAttribute6() ); |
| | | result.LineType( this.LineType() ); |
| | | result.LineTypeId( this.LineTypeId() ); |
| | | result.MRPCalverNo( this.MRPCalverNo() ); |
| | | result.OrganCode( this.OrganCode() ); |
| | | result.OrgId( this.OrgId() ); |
| | | result.PlannerCode( this.PlannerCode() ); |
| | | result.PreparerId( this.PreparerId() ); |
| | | result.ProduceRequiredDate( this.ProduceRequiredDate() ); |
| | | result.ProductID( this.ProductID() ); |
| | | result.ProductName( this.ProductName() ); |
| | | result.ProviderCode( this.ProviderCode() ); |
| | | result.ProviderName( this.ProviderName() ); |
| | | result.Quantity( this.Quantity() ); |
| | | result.RequisitionType( this.RequisitionType() ); |
| | | result.StockingPointID( this.StockingPointID() ); |
| | | result.UnitOfMeasure( this.UnitOfMeasure() ); |
| | | result.UnitPrice( this.UnitPrice() ); |
| | | |
| | | // 请æ±é¨å |
| | | request := ERPRequestOfPR::Create( result ); |
| | | response := request.DoCall(); |
| | | |
| | | // ååºé¨å |
| | | result.ReceiveError( response.ErrorDescription() ); |
| | | result.ReceiveStatus( response.Status() ); |
| | | result.ReceiveTime( DateTime::Now() ); |
| | | |
| | | // 主记å½ä¿®æ¹ |
| | | result.SendStatus( "T" ); |
| | | result.ReleaseBy( callBy ); |
| | | result.SendTime( DateTime::Now() ); |
| | | this.SendStatus( "T" ); |
| | | this.SendTIme( DateTime::Now() ); |
| | | this.SendBy( callBy ); |
| | | |
| | | return result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CanCall ( |
| | | PRDatas toCalls, |
| | | output String feedback_o |
| | | ) as Boolean |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | | feedback_o := ""; |
| | | traverse( toCalls, Elements, toCall ) { |
| | | if( toCall.SendStatus() <> "" ) { |
| | | feedback_o := "SendStatus must be empty!"; |
| | | } |
| | | } |
| | | return feedback_o = ""; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod DoCall ( |
| | | GlobalOTDTable globalData, |
| | | PRDatas toCalls, |
| | | String callBy |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | | traverse( toCalls, Elements, toCall, toCall.SendStatus() = "" ) { |
| | | toCall.DoCall( globalData, callBy ); |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod FromSupplyPlanning ( |
| | | MacroPlan macroPlan, |
| | | MacroPlan mappingRoot, |
| | | ProductInStockingPointInPeriod pispip |
| | | ) as PRData |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | | result := macroPlan.PRData( relnew ); |
| | | result.InterfaceSourceCode( "Quintiq" ); |
| | | |
| | | pisp := pispip.ProductInStockingPoint_MP(); |
| | | product := pisp.Product_MP(); |
| | | stockingPoint := pisp.StockingPoint_MP(); |
| | | period := pispip.Period_MP(); |
| | | mappingProduct := MappingProduct::GetByProductId( mappingRoot, product.ID() ); |
| | | // æ¥å£/ä¸é´è¡¨ææ |
| | | mappingProviderCapacity := "ææ "; |
| | | erpData := "ææ "; |
| | | |
| | | // æ ¹æ®pispip |
| | | result.MRPCalverNo( pispip.MRPCalverNo() ); |
| | | result.Quantity( pispip.NewSupplyQuantity() ); |
| | | |
| | | // æ ¹æ®product |
| | | result.ProductID( product.ID() ); |
| | | result.ProductName( product.Name() ); |
| | | |
| | | // æ ¹æ®stockingPoint |
| | | result.StockingPointID( stockingPoint.ID() ); |
| | | |
| | | // æ ¹æ®period |
| | | result.ProduceRequiredDate( period.StartDate() ); |
| | | result.PRSuggestionDate( ifexpr( (result.ProduceRequiredDate() - Duration::Days( 7 )).Date() >= Date::Today(), |
| | | Date::Today(), (result.ProduceRequiredDate() - Duration::Days( 7 )).Date() ) ); |
| | | |
| | | // æ ¹æ®productä¸é´è¡¨ |
| | | result.BusinessType( mappingProduct.BusinessType() ); |
| | | result.OrganCode( mappingProduct.OrgCode() ); |
| | | result.UnitOfMeasure( mappingProduct.UnitOfMeasureName() ); |
| | | |
| | | // æ ¹æ®ä¾åºåè½åä¸é´è¡¨ |
| | | result.ProviderCode( mappingProviderCapacity ); |
| | | result.ProductName( mappingProviderCapacity ); |
| | | |
| | | // æ ¹æ®erpæ¥å£ åºå®å¼ |
| | | result.RequisitionType( "PURCHASE" ); |
| | | result.DestinationTypeCode( "INVENTORY" ); |
| | | result.UnitPrice( 1.0 ); |
| | | result.AuthorizationStatus( "INCOMPLETE" ); |
| | | result.LineTypeId( "1" ); |
| | | result.LineType( "è´§ç©" ); |
| | | // æ ¹æ®erpæ¥å£ todo |
| | | result.PreparerId( erpData ); |
| | | result.HeaderDescription( erpData ); |
| | | result.DestinationOrganizationID( erpData ); |
| | | result.DeliverToRequestorId( erpData ); |
| | | result.LineAttribute1( erpData ); |
| | | result.LineAttribute6( erpData ); |
| | | result.OrgId( erpData ); |
| | | |
| | | // çæid todo |
| | | result.DataID( [String]Number::Random( Number::MinNumber(), Number::MaxNumber() ) ); |
| | | |
| | | // åéä¿¡æ¯ |
| | | result.SendStatus( "" ); |
| | | result.SendBy( "" ); |
| | | result.SendTIme( DateTime::MinDateTime() ); |
| | | |
| | | return result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod FromSupplyPlanning ( |
| | | MacroPlan macroPlan, |
| | | MacroPlan mappingRoot, |
| | | String mrpCalverNo |
| | | ) |
| | | { |
| | | Description: |
| | | [* |
| | | SupplyPlanning转PRData |
| | | todo ä¿®æ¹mappingRoot为MPSync |
| | | *] |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | | // æMRPCalverNoæ¥ï¼å·²ææ§è®°å½æ¶ä¸å¤ç |
| | | oldRecords := selectset( macroPlan, PRData, item, |
| | | item.MRPCalverNo() = mrpCalverNo ); |
| | | if( isnull( oldRecords ) or oldRecords.Size() = 0 ) { |
| | | pispips := ProductInStockingPointInPeriod::GetByMRPCalverNo( macroPlan, mrpCalverNo ); |
| | | traverse( pispips, Elements, item ) { |
| | | PRData::FromSupplyPlanning( macroPlan, mappingRoot, item ); |
| | | } |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod ProductIdOver14Days ( |
| | | PRDatas toChecks |
| | | ) as String |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | | result := ""; |
| | | |
| | | productIds := selectuniquevalues( toChecks, Elements, item, |
| | | (item.ProduceRequiredDate() - Duration::Days( 14 )).Date() > Date::Today(), |
| | | item.ProductID() ); |
| | | productIds := selectsortedset( productIds, Elements, item, item ); |
| | | |
| | | if( productIds.Size() > 0 ) { |
| | | result := result + productIds.Element( 0 ); |
| | | for( i := 1; i < productIds.Size(); i := i + 1 ) { |
| | | result := result + ","; |
| | | result := result + productIds.Element( 0 ); |
| | | } |
| | | } |
| | | |
| | | return result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod TestData ( |
| | | MacroPlan macroPlan |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | | if( selectset( macroPlan, PRData, item, true ).Size() = 0 ) { |
| | | info( "======== Create PR Test Data ========" ); |
| | | for( i := 0; i < 100; i := i + 1 ) { |
| | | macroPlan.PRData( relnew, |
| | | MRPCalverNo := [String]Number::Random( 1, Number::MaxNumber() ), |
| | | BusinessType := [String]Number::Random( 1, Number::MaxNumber() ), |
| | | OrganCode := [String]Number::Random( 1, Number::MaxNumber() ), |
| | | ProductID := [String]Number::Random( 1, Number::MaxNumber() ), |
| | | StockingPointID := [String]Number::Random( 1, Number::MaxNumber() ), |
| | | Quantity := Number::Random( 1, Number::MaxNumber() ), |
| | | ProduceRequiredDate := Date::Construct( 2023, |
| | | Number::Random( 9, 12 ), |
| | | Number::Random( 13, 28 ) ), |
| | | DataID := [String]Number::Random( 1, Number::MaxNumber() ), |
| | | SendStatus := ifexpr( Number::Random( 1, 5 ) = 1, "T", "" ) ); |
| | | } |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type PRData |
| | | { |
| | | #keys: '5[414384.0.787890167][414384.0.787890165][0.0.0][414384.0.787890166][414384.0.787890168]' |
| | | BaseType: Object |
| | | Description: 'PRæ°æ®' |
| | | StructuredName: 'PRDatas' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute AuthorizationStatus |
| | | { |
| | | #keys: '3[414384.0.796031550][414384.0.796031549][414384.0.796031551]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute BusinessType |
| | | { |
| | | #keys: '3[414384.0.789498626][414384.0.789498625][414384.0.789498627]' |
| | | Description: 'äºä¸é¨' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DataID |
| | | { |
| | | #keys: '3[414384.0.795671680][414384.0.795671679][414384.0.795671681]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DeliverToRequestorId |
| | | { |
| | | #keys: '3[414384.0.795671590][414384.0.795671589][414384.0.795671591]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DestinationOrganizationID |
| | | { |
| | | #keys: '3[414384.0.795671654][414384.0.795671653][414384.0.795671655]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute DestinationTypeCode |
| | | { |
| | | #keys: '3[414384.0.795671530][414384.0.795671529][414384.0.795671531]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute HeaderDescription |
| | | { |
| | | #keys: '3[414384.0.796031566][414384.0.796031565][414384.0.796031567]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute LineAttribute1 |
| | | { |
| | | #keys: '3[414384.0.795671611][414384.0.795671610][414384.0.795671612]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute LineAttribute6 |
| | | { |
| | | #keys: '3[414384.0.795671621][414384.0.795671620][414384.0.795671622]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute LineType |
| | | { |
| | | #keys: '3[414384.0.795671560][414384.0.795671559][414384.0.795671561]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute LineTypeId |
| | | { |
| | | #keys: '3[414384.0.795671550][414384.0.795671549][414384.0.795671551]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute MRPCalverNo |
| | | { |
| | | #keys: '3[414384.0.787890315][414384.0.787890314][414384.0.787890316]' |
| | | Description: 'MRP计ç®çæ¬å·' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute OrgId |
| | | { |
| | | #keys: '3[414384.0.795671631][414384.0.795671630][414384.0.795671632]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute OrganCode |
| | | { |
| | | #keys: '3[414384.0.787890338][414384.0.787890337][414384.0.787890339]' |
| | | Description: 'ç»ç»ç¼ç ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PRDataReleaseDate |
| | | { |
| | | #keys: '3[414384.0.789526135][414384.0.789526134][414384.0.789526136]' |
| | | Description: 'PRæ°æ®æ¨éæ¥æ' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PlannerCode |
| | | { |
| | | #keys: '3[414384.0.787890388][414384.0.787890387][414384.0.787890389]' |
| | | Description: 'ç©æè®¡åå' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PreparerID |
| | | { |
| | | #keys: '3[414384.0.789498615][414384.0.789498614][414384.0.789498616]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PreparerId |
| | | { |
| | | #keys: '3[414384.0.795671570][414384.0.795671569][414384.0.795671571]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProduceRequiredDate |
| | | { |
| | | #keys: '3[414384.0.795671764][414384.0.795671763][414384.0.795671765]' |
| | | Description: 'éæ±æ¥æ' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProductID |
| | | { |
| | | #keys: '3[414384.0.787890275][414384.0.787890274][414384.0.787890276]' |
| | | Description: 'é¶ä»¶å·' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProductName |
| | | { |
| | | #keys: '3[414384.0.787890295][414384.0.787890294][414384.0.787890296]' |
| | | Description: 'é¶ä»¶åç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProviderCode |
| | | { |
| | | #keys: '3[414384.0.787890348][414384.0.787890347][414384.0.787890349]' |
| | | Description: 'ä¾åºå代ç ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProviderName |
| | | { |
| | | #keys: '3[414384.0.787890358][414384.0.787890357][414384.0.787890359]' |
| | | Description: 'ä¾åºååç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Quantity |
| | | { |
| | | #keys: '3[414384.0.787890305][414384.0.787890304][414384.0.787890306]' |
| | | Description: 'éæ±æ°é' |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ReceiveError |
| | | { |
| | | #keys: '3[414384.0.787890454][414384.0.787890453][414384.0.787890455]' |
| | | Description: 'é误æè¿°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ReceiveStatus |
| | | { |
| | | #keys: '3[414384.0.787890428][414384.0.787890427][414384.0.787890429]' |
| | | Description: |
| | | [* |
| | | ERPæ¥æ¶ç¶æ |
| | | Sæåï¼E失败 |
| | | *] |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ReceiveTime |
| | | { |
| | | #keys: '3[414384.0.787890438][414384.0.787890437][414384.0.787890439]' |
| | | Description: 'æ¥æ¶æ¶é´' |
| | | ValueType: DateTime |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ReleaseBy |
| | | { |
| | | #keys: '3[414384.0.787890418][414384.0.787890417][414384.0.787890419]' |
| | | Description: 'éæ¾äºº' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute RequisitionType |
| | | { |
| | | #keys: '3[414384.0.795671520][414384.0.795671519][414384.0.795671521]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute SendStatus |
| | | { |
| | | #keys: '3[414384.0.787890398][414384.0.787890397][414384.0.787890399]' |
| | | Description: 'åéç¶æ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute SendTime |
| | | { |
| | | #keys: '3[414384.0.787890408][414384.0.787890407][414384.0.787890409]' |
| | | Description: 'åéæ¶é´' |
| | | ValueType: DateTime |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute StockingPointID |
| | | { |
| | | #keys: '3[414384.0.787890368][414384.0.787890367][414384.0.787890369]' |
| | | Description: 'æ¶è´§åºåç¹' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute UnitOfMeasure |
| | | { |
| | | #keys: '3[414384.0.787890378][414384.0.787890377][414384.0.787890379]' |
| | | Description: '计éåä½' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute UnitPrice |
| | | { |
| | | #keys: '3[414384.0.795671540][414384.0.795671539][414384.0.795671541]' |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: BusinessType |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method ReCall ( |
| | | String callBy |
| | | ) as PRHistoryData |
| | | { |
| | | Description: 'éè°' |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-11-2023 (created) |
| | | result := this.GlobalOTDTable().PRHistoryData( relcopy, this ); |
| | | |
| | | // æ´æ°é¨å |
| | | result.PRDataReleaseDate( Date::Today() ); |
| | | result.ReleaseBy( callBy ); |
| | | result.SendTime( DateTime::Now() ); |
| | | |
| | | // è¯·æ± |
| | | request := ERPRequestOfPR::Create( result ); |
| | | response := request.DoCall(); |
| | | |
| | | // ååºé¨å |
| | | result.ReceiveError( response.ErrorDescription() ); |
| | | result.ReceiveStatus( response.Status() ); |
| | | result.ReceiveTime( DateTime::Now() ); |
| | | |
| | | return result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod ReCall ( |
| | | PRHistoryDatas toCalls, |
| | | String callBy |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | | traverse( toCalls, Elements, toCall ) { |
| | | toCall.ReCall( callBy ); |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type PRHistoryData |
| | | { |
| | | #keys: '5[414384.0.787890172][414384.0.787890170][0.0.0][414384.0.787890171][414384.0.787890173]' |
| | | BaseType: Object |
| | | Description: 'åå²PRæ°æ®' |
| | | StructuredName: 'PRHistoryDatas' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute MRPCalverNo |
| | | { |
| | | #keys: '3[414384.0.796031432][414384.0.796031431][414384.0.796031433]' |
| | | Description: 'MRP计ç®çæ¬å·' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetByMRPCalverNo ( |
| | | MacroPlan parent, |
| | | String mrpCalverNo |
| | | ) as owning ProductInStockingPointInPeriods |
| | | { |
| | | Description: 'æ ¹æ®MRP计ç®çæ¬å·è·åå¾
å¤çæ°æ®' |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | | result := selectset( parent, Product_MP.ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, |
| | | pispip.ProductInStockingPoint_MP().Product_MP().ID().StartsWith( "E" ) |
| | | and pispip.MRPCalverNo() = mrpCalverNo ); |
| | | return &result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type ProductInStockingPointInPeriod #extension |
| | | { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component ListPRData id:ListPRData_844 |
| | | { |
| | | #keys: '[414384.0.789711874]' |
| | | BaseType: 'WebList' |
| | | Children: |
| | | [ |
| | | Component DataExtractorPRData |
| | | { |
| | | #keys: '[414384.0.789711875]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'PRData' |
| | | ] |
| | | } |
| | | Component DataSetLevelPRData |
| | | { |
| | | #keys: '[414384.0.789711876]' |
| | | BaseType: 'WebDataSetLevel' |
| | | Children: |
| | | [ |
| | | #child: listContextMenuPRData_1 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"MRPCalverNo","title":"MRPCalverNo","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"MRPCalverNo"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockingPointID","title":"StockingPointID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockingPointID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProduceRequiredDate","title":"ProduceRequiredDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProduceRequiredDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SendStatus","title":"SendStatus","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SendStatus"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SendBy","title":"SendBy","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SendBy"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SendTIme","title":"SendTIme","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SendTIme"}}]' |
| | | ContextMenu: 'listContextMenuPRData' |
| | | SortCriteria: 'BusinessType;MRPCalverNo' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | #child: listActionBarPagePRData_1 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListPRData_844_WebMenu_OnClick |
| | | { |
| | | #keys: '[414384.0.789711869]' |
| | | Initiator: 'WebMenu' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[2651.0.25404553]' |
| | | Binding: 'this.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListPRData_844_WebButton_OnClick |
| | | { |
| | | #keys: '[414384.0.789711868]' |
| | | Initiator: 'WebButton' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[6763.0.7953347]' |
| | | Binding: 'this.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListPRData_844_WebMenu_OnClick_870 |
| | | { |
| | | #keys: '[414384.0.789711867]' |
| | | Initiator: 'WebMenu' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument checked |
| | | { |
| | | #keys: '[6763.0.7953392]' |
| | | Binding: 'this.Checked()' |
| | | } |
| | | ] |
| | | } |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListPRData_844_WebButton_OnClick_870 |
| | | { |
| | | #keys: '[414384.0.789711866]' |
| | | Initiator: 'WebButton' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument checked |
| | | { |
| | | #keys: '[6763.0.7953437]' |
| | | Binding: 'this.Checked()' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listActionBarPagePRData id:listActionBarPagePRData_1 |
| | | { |
| | | #keys: '[414384.0.789711881]' |
| | | BaseType: 'listActionBarPage' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listContextMenuPRData id:listContextMenuPRData_1 |
| | | { |
| | | #keys: '[414384.0.789711877]' |
| | | BaseType: 'listContextMenu' |
| | | Children: |
| | | [ |
| | | Component MenuCall |
| | | { |
| | | #keys: '[414384.0.796101349]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'MEDIA_PLAY_GREEN' |
| | | Taborder: 3 |
| | | Title: 'Call' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPRData_844 |
| | | Response OnClick ( |
| | | structured[PRData] selection |
| | | ) id:Response_ListPRData_844_MenuCall_OnClick |
| | | { |
| | | #keys: '[414384.0.793461398]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPRData_844/Responsedef_ListPRData_844_WebMenu_OnClick |
| | | Initiator: 'MenuCall' |
| | | Precondition: |
| | | [* |
| | | return PRData::CanCall( selection, feedback ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | productIdsOver14Days := PRData::ProductIdOver14Days( selection ); |
| | | if( productIdsOver14Days <> "" ) { |
| | | if( WebMessageBox::Question( "è¯¥æ¹æ¬¡ä¸çç©æå·" + productIdsOver14Days + "订ååºè¯¥å¨2å¨åéæ¾ï¼è¯·ç¡®è®¤æ¯å¦ç°å¨éæ¾ï¼" ) = 0 ) { |
| | | PRData::DoCall( GlobalOTDTable, selection, ApplicationMacroPlanner.GetUserName() ); |
| | | } |
| | | } else if( WebMessageBox::Question( "æ¯å¦åééä¸çæ°æ®ï¼" ) = 0 ) { |
| | | PRData::DoCall( GlobalOTDTable, selection, ApplicationMacroPlanner.GetUserName() ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Response OnCreated () id:Response_FormPRData_OnCreated |
| | | { |
| | | #keys: '[414384.0.793421050]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | MacroPlan.PRData( relflush ); |
| | | GlobalOTDTable.PRHistoryData( relflush ); |
| | | PRData::TestData( MacroPlan ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent FormPRData |
| | | { |
| | | #keys: '[414384.0.789711717]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: ListPRData_844 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Title: 'PR' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component ListPRHistoryData id:ListPRHistoryData_844 |
| | | { |
| | | #keys: '[414384.0.789711912]' |
| | | BaseType: 'WebList' |
| | | Children: |
| | | [ |
| | | Component DataExtractorPRHistoryData |
| | | { |
| | | #keys: '[414384.0.789711913]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'GlobalOTDTable' |
| | | Source: 'GlobalOTDTable' |
| | | Taborder: 0 |
| | | Transformation: 'PRHistoryData' |
| | | ] |
| | | } |
| | | Component DataSetLevelPRHistoryData |
| | | { |
| | | #keys: '[414384.0.789711914]' |
| | | BaseType: 'WebDataSetLevel' |
| | | Children: |
| | | [ |
| | | #child: listContextMenuPRHistoryData_1 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"BusinessType","title":"BusinessType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"BusinessType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"MRPCalverNo","title":"MRPCalverNo","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"MRPCalverNo"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrganCode","title":"OrganCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrganCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockingPointID","title":"StockingPointID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockingPointID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SendStatus","title":"SendStatus","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SendStatus"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReleaseBy","title":"ReleaseBy","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReleaseBy"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SendDate","title":"SendDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SendDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReceiveStatus","title":"ReceiveStatus","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReceiveStatus"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReceiveTime","title":"ReceiveTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReceiveTime"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReceiveError","title":"ReceiveError","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReceiveError"}}]' |
| | | ContextMenu: 'listContextMenuPRHistoryData' |
| | | SortCriteria: 'BusinessType;MRPCalverNo' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | #child: listActionBarPagePRHistoryData_1 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListPRHistoryData_844_WebMenu_OnClick |
| | | { |
| | | #keys: '[414384.0.789711907]' |
| | | Initiator: 'WebMenu' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[2651.0.25404553]' |
| | | Binding: 'this.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListPRHistoryData_844_WebButton_OnClick |
| | | { |
| | | #keys: '[414384.0.789711906]' |
| | | Initiator: 'WebButton' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[6763.0.7953347]' |
| | | Binding: 'this.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListPRHistoryData_844_WebMenu_OnClick_799 |
| | | { |
| | | #keys: '[414384.0.789711905]' |
| | | Initiator: 'WebMenu' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument checked |
| | | { |
| | | #keys: '[6763.0.7953392]' |
| | | Binding: 'this.Checked()' |
| | | } |
| | | ] |
| | | } |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListPRHistoryData_844_WebButton_OnClick_801 |
| | | { |
| | | #keys: '[414384.0.789711904]' |
| | | Initiator: 'WebButton' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument checked |
| | | { |
| | | #keys: '[6763.0.7953437]' |
| | | Binding: 'this.Checked()' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listActionBarPagePRHistoryData id:listActionBarPagePRHistoryData_1 |
| | | { |
| | | #keys: '[414384.0.789711919]' |
| | | BaseType: 'listActionBarPage' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listContextMenuPRHistoryData id:listContextMenuPRHistoryData_1 |
| | | { |
| | | #keys: '[414384.0.789711915]' |
| | | BaseType: 'listContextMenu' |
| | | Children: |
| | | [ |
| | | Component MenuCall id:MenuCall_94 |
| | | { |
| | | #keys: '[414384.0.793461623]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'MEDIA_PLAY_GREEN' |
| | | Taborder: 3 |
| | | Title: 'Call' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPRHistoryData_844 |
| | | Response OnClick ( |
| | | structured[PRHistoryData] selection |
| | | ) id:Response_ListPRHistoryData_844_MenuCall_OnClick |
| | | { |
| | | #keys: '[414384.0.793461657]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPRHistoryData_844/Responsedef_ListPRHistoryData_844_WebMenu_OnClick |
| | | GroupServerCalls: true |
| | | Initiator: 'MenuCall' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( WebMessageBox::Question( "æ¯å¦åééä¸çæ°æ®ï¼" ) = 0 ) { |
| | | PRHistoryData::ReCall( selection, ApplicationMacroPlanner.GetUserName() ); |
| | | } |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent FormPRHistoryData |
| | | { |
| | | #keys: '[414384.0.789711755]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: ListPRHistoryData_844 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Title: 'PR History' |
| | | ] |
| | | } |