Merge remote-tracking branch 'refs/remotes/origin/dev'
已重命名11个文件
已复制2个文件
已修改51个文件
已添加100个文件
已删除16个文件
| | |
| | | #parent: #root |
| | | ContentMapperProcessor ContentMapperReponse |
| | | { |
| | | DefaultMappingName: 'PanelMaterialResponseResult' |
| | | PosX: 330 |
| | | PosY: 450 |
| | | ReplyChannelOutputs: QuintiqEndpoint |
| | | ConditionalMapping |
| | | { |
| | | ExpectedValue: '/panelMaterial/send' |
| | | MappingName: 'PanelMaterialResponseResult1' |
| | | SourceMessagePath |
| | | { |
| | | Path: 'Header' |
| | | } |
| | | SourceMessagePath |
| | | { |
| | | Path: 'path' |
| | | SequenceNr: 1 |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation CapacityAllocationResults_GlobalOTDTable_GlobalOTDTable_CapacityAllocationResults |
| | | { |
| | | #keys: '1[414702.0.340560333]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide GlobalOTDTable |
| | | { |
| | | #keys: '3[414702.0.340560335][414702.0.340560334][414702.0.340560336]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: CapacityAllocationResults |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide CapacityAllocationResults |
| | | { |
| | | #keys: '3[414702.0.340560338][414702.0.340560337][414702.0.340560339]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: GlobalOTDTable |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation H_MaterialHedgingResult_MacroPlan_MacroPlan_H_MaterialHedgingResult |
| | | { |
| | | #keys: '1[414724.0.133544606]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[414724.0.133544608][414724.0.133544607][414724.0.133544609]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: H_MaterialHedgingResult |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide H_MaterialHedgingResult |
| | | { |
| | | #keys: '3[414724.0.133544611][414724.0.133544610][414724.0.133544612]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation H_MaterialInfo_MacroPlan_MacroPlan_H_MaterialInfo |
| | | { |
| | | #keys: '1[414724.0.142347478]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[414724.0.142347480][414724.0.142347479][414724.0.142347481]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: H_MaterialInfo |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide H_MaterialInfo |
| | | { |
| | | #keys: '3[414724.0.142347483][414724.0.142347482][414724.0.142347484]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Division |
| | | { |
| | | #keys: '3[414702.0.340560478][414702.0.340560477][414702.0.340560479]' |
| | | Description: 'äºä¸é¨' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ModuleBase |
| | | { |
| | | #keys: '3[414702.0.340560468][414702.0.340560467][414702.0.340560469]' |
| | | Description: '模ç»åºå°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ModuleMaterialCode |
| | | { |
| | | #keys: '3[414702.0.340560429][414702.0.340560428][414702.0.340560430]' |
| | | Description: '模ç»ç©æç¼ç ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ModuleMeasurementUnit |
| | | { |
| | | #keys: '3[414702.0.340560458][414702.0.340560457][414702.0.340560459]' |
| | | Description: '模ç»åä½' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute NumberOfModules |
| | | { |
| | | #keys: '3[414702.0.340560442][414702.0.340560441][414702.0.340560443]' |
| | | Description: 'æ¨¡ç»æ°é' |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute NumberOfPanels |
| | | { |
| | | #keys: '3[414702.0.340560391][414702.0.340560390][414702.0.340560392]' |
| | | Description: '颿¿æ°é' |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PanelBase |
| | | { |
| | | #keys: '3[414702.0.340560371][414702.0.340560370][414702.0.340560372]' |
| | | Description: '颿¿åºå°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PanelMaterialCode |
| | | { |
| | | #keys: '3[414702.0.340560381][414702.0.340560380][414702.0.340560382]' |
| | | Description: '颿¿ç©æç¼ç ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PanelMeasurementUnit |
| | | { |
| | | #keys: '3[414702.0.340560404][414702.0.340560403][414702.0.340560405]' |
| | | Description: '颿¿åä½' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute RequirementDate |
| | | { |
| | | #keys: '3[414702.0.340560506][414702.0.340560505][414702.0.340560507]' |
| | | Description: 'éæ±æ¥æ' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute VersionNumber |
| | | { |
| | | #keys: '3[414702.0.340560355][414702.0.340560354][414702.0.340560356]' |
| | | Description: 'çæ¬å·' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CreateDate ( |
| | | GlobalOTDTable globalOTDTable, |
| | | MacroPlan macroPlan |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | globalOTDTable.CapacityAllocationResults( relflush ); |
| | | |
| | | finaleProduct_MPs := CapacityAllocationResults::ObtainTheFinalOutputProduct( macroPlan ); |
| | | |
| | | period_MPS := null( Period_MPs ); |
| | | traverse ( macroPlan, PeriodSpecification_MP, psmp, psmp.ID() = "Planning periods" ) { |
| | | period_MPS := selectsortedset( psmp, PeriodSpecificationPeriod.Period_MP, pmp, not pmp.IsHistorical(), pmp.StartDate() ); |
| | | } |
| | | |
| | | traverse ( finaleProduct_MPs, Elements, fpmp/*, fpmp.ID() = "ProXOver 1 D2.6 A"*/ ) { |
| | | traverse ( fpmp, ProductInStockingPoint_MP, pisp, /*pisp.Name() = "ProXOver 1 D2.6 A in Finished Cars (France)" and*/ not pisp.IsSystem() ) { |
| | | traverse ( period_MPS, Elements, pmp ) { |
| | | CapacityAllocationResults::IterativeGeneration( globalOTDTable, pisp, 1, null( NewSupply ), -1.0, pmp.StartDate() ); |
| | | } |
| | | // info( pisp.Name() ); |
| | | } |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod IterativeGeneration ( |
| | | GlobalOTDTable globalOTDTable, |
| | | ProductInStockingPoint_MP pisp, |
| | | Number numberOfLayers, |
| | | NewSupply finaleNewSupply, |
| | | Real finaleDependentDemand, |
| | | Date targetDate |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | traverse ( pisp, ProductInStockingPointInPeriodPlanning.astype( ProductInStockingPointInPeriodPlanningLeaf ), pispippl, pispippl.Start().Date() = targetDate ) { |
| | | traverse ( pispippl, NewSupply, ns, ns.Quantity() > 0 ) { |
| | | // info( "çæç产åï¼", pisp.ProductID(), " 产åå¨åºåç¹ï¼", pisp.Name(), " 屿°ï¼", numberOfLayers, " æ»ç产éï¼", ns.Quantity(), " æç»ä¾èµç©ææ°éï¼", finaleDependentDemand ); |
| | | if ( finaleDependentDemand < 0 ) { |
| | | finaleDependentDemand := ns.Quantity(); |
| | | } |
| | | if ( isnull( finaleNewSupply ) ) { |
| | | finaleNewSupply := ns; |
| | | } |
| | | if ( guard( ns.PeriodTask_MP().astype( PeriodTaskOperation ).DependentDemand( relsize ) > 0, false ) ) { |
| | | numberOfLayers++; |
| | | traverse ( ns, PeriodTask_MP.astype( PeriodTaskOperation ).DependentDemand, dd ) { |
| | | oo := ns.ProcessOutput().astype( OperationOutput ); |
| | | oi := dd.ProcessInput().astype( OperationInput ); |
| | | finaleDependentDemand := finaleDependentDemand * oo.Quantity() * oi.Quantity(); |
| | | // info( "ä¾èµéæ±äº§åIDï¼", dd.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID(), " ä¾èµæ°éï¼", dd.Quantity(), " å½å卿任å¡Keyï¼", dd.PeriodTask_MP().astype( PeriodTaskOperation ).Key() ); |
| | | CapacityAllocationResults::IterativeGeneration( globalOTDTable, dd.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP(), numberOfLayers, finaleNewSupply, finaleDependentDemand, targetDate ); |
| | | } |
| | | // info( "----------------------------------------------------" ); |
| | | } else { |
| | | // info( "æ ä¾èµéæ±ï¼éè¦çæäº§è½åé
ç»æããã" ); |
| | | // info( "======" ); |
| | | pispPanel := ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP(); |
| | | pispModule := finaleNewSupply.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP(); |
| | | globalOTDTable.CapacityAllocationResults( relnew, |
| | | PanelBase := pispPanel.StockingPointID(), |
| | | PanelMaterialCode := pispPanel.ProductID(), |
| | | NumberOfPanels := finaleDependentDemand, |
| | | PanelMeasurementUnit := pispPanel.UnitOfMeasure_MP().Name(), |
| | | ModuleMaterialCode := pispModule.ProductID(), |
| | | NumberOfModules := finaleNewSupply.Quantity(), |
| | | ModuleMeasurementUnit := pispModule.UnitOfMeasure_MP().Name(), |
| | | ModuleBase := pispModule.StockingPointID(), |
| | | RequirementDate := finaleNewSupply.Start().Date() |
| | | ); |
| | | } |
| | | finaleNewSupply := null( NewSupply ); |
| | | } |
| | | numberOfLayers := 1; |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod ObtainTheFinalOutputProduct ( |
| | | MacroPlan macroPlan |
| | | ) as owning Product_MPs |
| | | { |
| | | TextBody: |
| | | [* |
| | | finaleProducts := construct( Product_MPs ); |
| | | |
| | | traverse ( macroPlan, Product_MP, pmp, pmp.IsLeaf() ) { |
| | | flag := true; |
| | | traverse ( macroPlan, Routing.RoutingStep.Operation.OperationInput, oi, flag ) { |
| | | if ( pmp = oi.ProductInStockingPoint_MP().Product_MP() ) { |
| | | flag := false; |
| | | } |
| | | } |
| | | if ( flag ) { |
| | | finaleProducts.Add( pmp ); |
| | | } |
| | | } |
| | | |
| | | return &finaleProducts; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type CapacityAllocationResults |
| | | { |
| | | #keys: '5[414702.0.340560330][414702.0.340560328][0.0.0][414702.0.340560329][414702.0.340560331]' |
| | | BaseType: Object |
| | | Description: '产è½åé
ç»ææ¥è¡¨' |
| | | StructuredName: 'CapacityAllocationResultss' |
| | | } |
| | |
| | | priorityName, salesSegmentName, currencyId, unitOfMeasureName, |
| | | false, customerName, customerId, orderId, orderLineId, true, true, true ); |
| | | } else { |
| | | if( result.ProductID() = productId |
| | | and result.StockingPointID() = stockingPointId |
| | | and result.StartDate() = orderDate |
| | | and result.Quantity() = quantity |
| | | and result.Price() = price |
| | | and result.PriorityName() = priorityName |
| | | and result.SalesSegmentName() = salesSegmentName |
| | | and result.CurrencyID() = currencyId |
| | | and result.UnitOfMeasureName() = unitOfMeasureName |
| | | and result.CustomerName() = customerName |
| | | and result.CustomerID() = customerId |
| | | and result.OrderID() = orderId |
| | | and result.OrderLineID() = orderLineId ){ |
| | | info( "No need to update this order: " + id ); |
| | | }else{ |
| | | if( result.IsLocked() = true ){ |
| | | pispips := selectset( result, ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, true ); |
| | | pispipLeafs := selectset( pispips, |
| | | Elements.astype( ProductInStockingPointInPeriodPlanningLeaf ), |
| | | pispip, |
| | | true ); |
| | | ProductInStockingPointInPeriod::LockUnlockPlanning( pispipLeafs, false, true ); |
| | | } |
| | | result.Update( product, stockingPoint, orderDate, quantity, price, |
| | | priorityName, salesSegmentName, currencyId, unitOfMeasureName, |
| | | false, customerName, customerId, orderId, orderLineId, true, true, true ); |
| | | result.IsLocked( false ); |
| | | } |
| | | } |
| | | return result; |
| | | *] |
| | |
| | | owner.OrderLockLog( relnew, |
| | | CustomerName := order.CustomerName(), |
| | | End := order.First().AsPlanningBaseSalesDemandInPeriod().End().Date(), |
| | | EndDate := order.EndDate(), |
| | | EndDate := order.StartDate(), |
| | | IsLocked := order.IsLocked(), |
| | | LastModify := order.LastModify(), |
| | | LastModifyTime := order.LastModifyTime(), |
| | |
| | | owner.OrderLockLog( relnew, |
| | | CustomerName := order.CustomerName(), |
| | | End := order.First().AsPlanningBaseSalesDemandInPeriod().End().Date(), |
| | | EndDate := order.EndDate(), |
| | | EndDate := order.StartDate(), |
| | | IsLocked := order.IsLocked(), |
| | | LastModify := order.LastModify(), |
| | | LastModifyTime := order.LastModifyTime(), |
| | |
| | | |
| | | replynvt := LibInt_MessageAccessor::CreateEmptyMessage(); |
| | | LibInt_MessageAccessor::SetHeaderProperty( replynvt, "Content-Type", "application/json" ); |
| | | LibInt_MessageAccessor::SetHeaderProperty( replynvt, "path", "/panelMaterial/send" ); |
| | | |
| | | rootNamedValue := replynvt.Root(); |
| | | bodyHandle := replynvt.GetHandle( "Body" ); |
| | | petHandle := replynvt.GetHandle( "Pet" ); |
| | | |
| | | //petHandle := replynvt.GetHandle( "Pet" ); |
| | | bodyNamedValue := rootNamedValue.Child( bodyHandle ); |
| | | petNamedValue := bodyNamedValue.AddChild( petHandle ); |
| | | categoryHandle := replynvt.GetHandle( "Category" ); |
| | | categoryNamedValue := petNamedValue.AddChild( categoryHandle ); |
| | | categoryIDHandle := replynvt.GetHandle( "Id" ); |
| | | categoryIDNamedValue := categoryNamedValue.AddChild( categoryIDHandle ); |
| | | categoryIDNamedValue.SetValue( 3 ); |
| | | categoryNameHandle := replynvt.GetHandle( "Name" ); |
| | | categoryNameNamedValue := categoryNamedValue.AddChild( categoryNameHandle ); |
| | | categoryNameNamedValue.SetValue( "Cat" ); |
| | | petNameHandle := replynvt.GetHandle( "Name" ); |
| | | petNameValue := petNamedValue.AddChild( petNameHandle ); |
| | | petNameValue.SetValue( "Pet1" ); |
| | | petIdHandle := replynvt.GetHandle( "PetId" ); |
| | | petIdNameValue := petNamedValue.AddChild( petIdHandle ); |
| | | petIdNameValue.SetValue( 1 ); |
| | | codeHandler := replynvt.GetHandle( "code" ); |
| | | codeNamedValue := bodyNamedValue.AddChild( codeHandler ); |
| | | codeNamedValue.SetValue( 200 ); |
| | | |
| | | photoUrlHandle := replynvt.GetHandle( "PhotoUrl" ); |
| | | photoUrlNameValue := petNamedValue.AddChild( photoUrlHandle ); |
| | | urlHandle := replynvt.GetHandle( "Url" ); |
| | | photoUrlNameValue.AddChild( urlHandle, "url1" ); |
| | | |
| | | statusHandle := replynvt.GetHandle( "Status" ); |
| | | statusNameValue := petNamedValue.AddChild( statusHandle ); |
| | | statusNameValue.SetValue( "available" ); |
| | | |
| | | tagHandle := replynvt.GetHandle( "Tag" ); |
| | | tagNameValue := petNamedValue.AddChild( tagHandle ); |
| | | tagIdHandle := replynvt.GetHandle( "Id" ); |
| | | tagNameValue.AddChild( tagIdHandle, 123 ); |
| | | tagNameHandle := replynvt.GetHandle( "Name" ); |
| | | tagNameValue.AddChild( tagNameHandle, "tag1" ); |
| | | |
| | | |
| | | info( "ååº------------------------------------------------------------" ); |
| | | info( replynvt.ToString() ); |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute StockingPointID |
| | | { |
| | | #keys: '3[414724.0.149657552][414724.0.149657551][414724.0.149657553]' |
| | | Description: 'åºåç¹' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SM_GetALlBOM ( |
| | | MacroPlan Owner, |
| | | MappingBOM Material |
| | | ) as Number |
| | | { |
| | | Description: 'æ ¹æ®SKUè·åææ ¹é¨æææ°æ®' |
| | | TextBody: |
| | | [* |
| | | AllMaterials := selectset( Owner,MappingBOM,Obj,Obj.ComponentCode()=Material.ProductCode()) |
| | | if( AllMaterials.Size()>0) |
| | | { |
| | | traverse( AllMaterials,Elements,Obj,not isnull( Obj)) |
| | | { |
| | | H_FunctionClass::SM_GetALlBOM( Owner,Obj); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | Owner.H_MaterialInfo(relnew,ID := H_FunctionClass::SM_GenerateID( "BM") |
| | | ,MaterialName := Material.ComponentType() ); |
| | | |
| | | } |
| | | return 0; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SM_GetBOMBySKU ( |
| | | MacroPlan Owner, |
| | | String SKU |
| | | ) as MappingBOM |
| | | { |
| | | Description: 'æ ¹æ®SKUè·åBOM' |
| | | TextBody: |
| | | [* |
| | | Obj :=null( MappingBOM,constcontent ); |
| | | if( not isnull( Owner) and SKU.Length()>0) |
| | | { |
| | | Obj := select( Owner,MappingBOM,ObjM,ObjM.ProductCode()=SKU); |
| | | } |
| | | return Obj; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SM_GetMaterialData ( |
| | | MacroPlan Owner, |
| | | String ParentSKU, |
| | | Number ProductQty, |
| | | String ForecastId, |
| | | String VCode, |
| | | Date NDate |
| | | ) as owning JSON |
| | | { |
| | | Description: 'è·åç©æä¿¡æ¯' |
| | | TextBody: |
| | | [* |
| | | /**********************************åå§åç©æä¿¡æ¯*************************************** |
| | | *å建人ï¼yunying |
| | | *åå»ºæ¥æï¼2023-09-21 |
| | | *æè¿°ï¼æ ¹æ®SKUè·åä¸ä¸å±ç©ææ°æ®,è¿é䏿¯éåå¾å°ææï¼æ¶è§¦å䏿¬¡å¾å°ä¸å±ï¼å¹¶ç´¯è®¡ |
| | | *åæ°ï¼ |
| | | *****************************************************************************************/ |
| | | // åå§åç»æ |
| | | bStatus := false; |
| | | strMsg :=""; |
| | | |
| | | try{ |
| | | if( Owner.MappingBOM(relsize )>0) |
| | | { |
| | | // å¾å°ä¸ä¸çº§æ°æ® |
| | | AllData:= selectset( Owner, MappingBOM,object,object.ComponentCode()=ParentSKU); |
| | | ObjProduct := null( MappingProduct,constcontent ); |
| | | ObjUnit := null( Unit,constcontent ); |
| | | MaterialType:=""; |
| | | MaterialName:="-"; |
| | | StockPoint := ""; |
| | | NRate:=1.0; |
| | | NComponentsUsed :=0.0; |
| | | ObjBOM := H_FunctionClass::SM_GetBOMBySKU( Owner,ParentSKU); |
| | | if(not isnull( ObjBOM)) |
| | | { |
| | | NRate := ObjBOM.ComponentOutputRate(); |
| | | NComponentsUsed := ObjBOM.UnitUsageOfComponents(); |
| | | // äº§åºæ¯å¼å¸¸æ 100%产åºè®¡ç® |
| | | if( NRate <=0.0) |
| | | { |
| | | NRate :=1.0; |
| | | } |
| | | } |
| | | if( AllData.Size()>0) |
| | | { |
| | | traverse( AllData,Elements,Obj,not isnull( Obj)) |
| | | { |
| | | // å¾å°å½åå·²åå¨çç©æä¿¡æ¯ï¼è®¢åID + SKUï¼ |
| | | ObjMaterial := select( Owner,H_MaterialInfo,ObjM,ObjM.ForecastID()=ForecastId and ObjM.SKU()=Obj.ProductCode()); |
| | | if( isnull( ObjMaterial)) |
| | | { |
| | | // ç©æç±»å |
| | | MaterialType := Obj.ProductType(); |
| | | // å¾å°ç©æä¿¡æ¯ |
| | | ObjProduct:= H_FunctionClass::SM_GetProductInfo(Owner, Obj.ProductCode()); |
| | | if( not isnull( ObjProduct)) |
| | | { |
| | | MaterialType:= ObjProduct.ProductMajorType(); |
| | | MaterialName:=ObjProduct.Name(); |
| | | } |
| | | ObjUnit:= H_FunctionClass::SM_GetUnitBySKU( Owner,Obj.ProductCode()); |
| | | if( not isnull( ObjUnit)) |
| | | { |
| | | StockPoint:= ObjUnit.Name(); |
| | | } |
| | | Owner.H_MaterialInfo(relnew,ParentSKU := Obj.ComponentCode(),SKU := Obj.ProductCode(),ForecastID := ForecastId,OrgCode := Obj.OrganCode(),VCode := VCode |
| | | ,ID := H_FunctionClass::SM_GenerateID( "MI"),MaterialType := MaterialType,NeedDate := NDate |
| | | ,NeedQty := [Number](ProductQty/NRate*NComponentsUsed).Round( 0),Unit := Obj.UnitOfMeasureName() |
| | | ,StockPoint :=StockPoint,MaterialName := MaterialName ); |
| | | } |
| | | else |
| | | { |
| | | // èèæ¯å¦è¦æ´æ°æ°æ®ï¼æä¸å¤ç |
| | | } |
| | | } |
| | | } |
| | | } |
| | | // 没æBOM æ·»å æµè¯æ°æ® |
| | | else |
| | | { |
| | | nCount :=Owner.H_MaterialInfo(relsize ); |
| | | Owner.H_MaterialInfo(relnew,ParentSKU := ParentSKU,SKU := "SKU"+ nCount.AsQUILL() ,ForecastID := ForecastId,OrgCode := "ORG_000",VCode := VCode |
| | | ,ID := H_FunctionClass::SM_GenerateID( "MI"),MaterialType := "åææ",NeedDate := NDate |
| | | ,NeedQty := [Number](ProductQty*0.8).Round( 0),Unit := "PCS" |
| | | ,StockPoint :="æµè¯",MaterialName := "æµè¯æ°æ®" ); |
| | | } |
| | | bStatus := true; |
| | | strMsg :=""; |
| | | } |
| | | onerror |
| | | { |
| | | strMsg :="å è½½ç©æå¤±è´¥ï¼è¯·è系系ç»ç®¡çåï¼"; |
| | | Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_InitialForcastData", |
| | | DeveloperInformation := e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(), |
| | | GeneralInformation := e.GeneralInformation()); |
| | | } |
| | | return JSON::Object().Add( "Status",bStatus) |
| | | .Add( "Msg",strMsg).Build(); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SM_GetNextFriday () as Date |
| | | { |
| | | Description: 'è·åä¸ä¸ä¸ªææ5çæ¥æ' |
| | | TextBody: |
| | | [* |
| | | /**********************è·åä¸ä¸ä¸ªå¨5çæ¥æ******************* |
| | | *å建人ï¼yunying |
| | | *åå»ºæ¥æï¼2023-09-21 |
| | | *æè¿°ï¼å¾å°ä¸ä¸ä¸ªææ5çæ¥æï¼å¦æå½å¤©æ¶ææäºï¼åè¿åå½å¤©æ¥æï¼å建订åä½¿ç¨ |
| | | **********************************************************/ |
| | | //å®ä¹ä¸ä¸ä¸ªææ |
| | | nTargetWeenNum := 5; |
| | | nTodayWeekNum := Date::ActualDate().DayOfWeek(); |
| | | // åååç§»å¤©æ° |
| | | nAddDays := 0; |
| | | if( nTodayWeekNum <= nTargetWeenNum) |
| | | { |
| | | nAddDays := nTargetWeenNum-nTodayWeekNum; |
| | | } |
| | | else |
| | | { |
| | | nAddDays := 7 - nTodayWeekNum+nTargetWeenNum; |
| | | } |
| | | // ä¸ä¸ä¸ªææçæ¥æ |
| | | return Date::ActualDate() + nAddDays; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SM_GetProductInfo ( |
| | | MacroPlan Owner, |
| | | String SKU |
| | | ) as MappingProduct |
| | | { |
| | | Description: 'æ ¹æ®SKUè·åç©æä¿¡æ¯' |
| | | TextBody: |
| | | [* |
| | | // æ ¹æ®SKUè·åç©æä¿¡æ¯ |
| | | Obj := null( MappingProduct,constcontent ); |
| | | if( not isnull( Owner) and SKU.Length()>0) |
| | | { |
| | | Obj:= select( Owner,MappingProduct,ObjMP,ObjMP.ID()=SKU); |
| | | } |
| | | return Obj; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SM_GetUnitBySKU ( |
| | | MacroPlan Owner, |
| | | String SKU |
| | | ) as Unit |
| | | { |
| | | Description: 'éè¿SKUè·ååºåç¹ä¿¡æ¯' |
| | | TextBody: |
| | | [* |
| | | Obj :=null( Unit,constcontent ); |
| | | if( not isnull( Owner) and SKU.Length()>0) |
| | | { |
| | | OrgCode := select( Owner,MappingBOM,ObjM,ObjM.ProductCode()=SKU); |
| | | if( not isnull( OrgCode)) |
| | | { |
| | | Obj := select( Owner,Unit,ObjU,ObjU.ID()= OrgCode.OrganCode()); |
| | | } |
| | | } |
| | | return Obj; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SM_InitialForcastData ( |
| | | MacroPlan Owner |
| | | ) as owning JSON |
| | | { |
| | | Description: 'åå§å订å颿µä¿¡æ¯' |
| | | TextBody: |
| | | [* |
| | | /**********************************åå§å订å颿µä¿¡æ¯*************************************** |
| | | *æ³¨ï¼æªç¡®å®ä¸æ¸¸é¢æµè®¢åæ´æ°é»è¾åæ°æ®æææ§ï¼è¿éè¿è¡äºæ¬¡å¤çï¼æ°çæä¸ä¸ªå表ï¼é¿å
䏿¸¸ä¿¡æ¯åå¨ä¸¥é |
| | | * å½±ååè½ |
| | | * |
| | | *****************************************************************************************/ |
| | | // åå§åç»æ |
| | | bStatus := false; |
| | | strMsg :=""; |
| | | |
| | | try{ |
| | | // æ¸
餿§æ°æ®ï¼éæ°æå |
| | | if(Owner.H_Forecast(relget ).Size()>0) |
| | | { |
| | | traverse( Owner,H_Forecast,Obj,not isnull( Obj)) |
| | | { |
| | | Owner.H_Forecast(reldelete, Obj); |
| | | } |
| | | } |
| | | |
| | | // è·å颿µè®¢åï¼å½æåä¹åç3个æé¢æµæ°æ® ä¸é¢æµæ°é>0ç |
| | | AllData:= selectset( Owner, Product_MP.SalesDemand.astype( Forecast ),object,object.EndDate().DateTime().Date() >= Date::ActualDate().StartOfMonth() |
| | | and object.EndDate().DateTime().Date() <= Date::ActualDate().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth() |
| | | and object.Quantity()>0 ); |
| | | |
| | | CustomName:=""; |
| | | DepartMent:=""; |
| | | idx:=0; |
| | | strOrderCode:=""; |
| | | RQty:=0; |
| | | ObjOrderRealQty:=null( H_OrderForecastRealQty,constcontent ); |
| | | // ObjPruduct :=null( MappingProduct,constcontent ); |
| | | traverse( AllData,Elements,Obj,not isnull(Obj)) |
| | | { |
| | | // è¿éç¨æ¥æ¾åæªåï¼å 为ä¸ç¡®å®æå 个横线ï¼ä»¥ç¬¬ä¸ä¸ªä¸ºå |
| | | idx:=Obj.SalesSegmentName().FindString( "-",0); |
| | | if(idx>0) |
| | | { |
| | | DepartMent:=Obj.SalesSegmentName().SubString( 0,idx); |
| | | CustomName := Obj.SalesSegmentName().SubString( idx+1, Obj.SalesSegmentName().Length() - (idx+1)); |
| | | } |
| | | else |
| | | { |
| | | CustomName :=Obj.SalesSegmentName(); |
| | | DepartMent := "é¨é¨æ°æ®è·å失败ï¼" |
| | | } |
| | | // // ä»ç©æè¡¨è·åç©æä¿¡æ¯ |
| | | // ObjPruduct := H_FunctionClass::SM_GetProductInfo( Owner,Obj.ProductID()); |
| | | // if( not isnull( ObjPruduct)) |
| | | // { |
| | | // |
| | | // } |
| | | // åå
¥é¢æµè®¢åä¿¡æ¯è¡¨ |
| | | strOrderCode:=H_FunctionClass::SM_GenerateID( "OF"); |
| | | Owner.H_Forecast(relnew,OrderCode := strOrderCode, |
| | | SKU := Obj.ProductID(), |
| | | CustomCode := CustomName, |
| | | CustomName := CustomName, |
| | | Util:=Obj.UnitOfMeasureName(), |
| | | NeedTime:=Obj.EndDate(), |
| | | ForecastQty:=[Number]Obj.Quantity().Round( 0), |
| | | StockingPointID := Obj.StockingPointID(), |
| | | Department:=DepartMent); |
| | | // åå
¥é¢æµå®æ¶ä¿¡æ¯ |
| | | ObjOrderRealQty := select( Owner,H_OrderForecastRealQty,ObjO,ObjO.CustomID()=CustomName and ObjO.SKU()=Obj.ProductID() |
| | | and ObjO.Month().StartOfMonth() = Obj.EndDate().StartOfMonth() ) |
| | | if( isnull( ObjOrderRealQty)) |
| | | { |
| | | Owner.H_OrderForecastRealQty(relnew,CustomID := CustomName,CustomName := CustomName,ForecatsQty := [Number]Obj.Quantity().Round( 0) |
| | | ,ForecatsRealQty := [Number]Obj.Quantity().Round( 0),ID := H_FunctionClass::SM_GenerateID( "OR") |
| | | ,Month := Obj.EndDate(),OrderCode := strOrderCode,SKU := Obj.ProductID(),Unit := Obj.UnitOfMeasureName()); |
| | | } |
| | | else |
| | | { |
| | | if( [Number]Obj.Quantity().Round( 0)<> ObjOrderRealQty.ForecatsQty()) |
| | | { |
| | | RQty := [Number]Obj.Quantity().Round( 0) - ObjOrderRealQty.ForecatsQty(); |
| | | RQty := ObjOrderRealQty.ForecatsRealQty() + RQty; |
| | | if( RQty<0) |
| | | { |
| | | RQty :=0; |
| | | } |
| | | ObjOrderRealQty.ForecatsQty([Number]Obj.Quantity().Round( 0)); |
| | | ObjOrderRealQty.ForecatsRealQty(RQty); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | bStatus := true; |
| | | strMsg :="订å颿µåå§åæå!"; |
| | | } |
| | | onerror |
| | | { |
| | | strMsg :="订å颿µåå§å失败ï¼å¯è½å½±åå²å计ç®ï¼è¯·è系系ç»ç®¡çåï¼"; |
| | | Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_InitialForcastData", |
| | | DeveloperInformation := e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(), |
| | | GeneralInformation := e.GeneralInformation()); |
| | | } |
| | | return JSON::Object().Add( "Status",bStatus) |
| | | .Add( "Msg",strMsg).Build(); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SM_InitialForcastDataEx ( |
| | | MacroPlan Owner, |
| | | Boolean IsNew |
| | | ) as owning JSON |
| | | { |
| | | Description: 'åå§å订å颿µä¿¡æ¯' |
| | | TextBody: |
| | | [* |
| | | /**********************************åå§å订å颿µä¿¡æ¯*************************************** |
| | | *æ³¨ï¼æªç¡®å®ä¸æ¸¸é¢æµè®¢åæ´æ°é»è¾åæ°æ®æææ§ï¼è¿éè¿è¡äºæ¬¡å¤çï¼æ°çæä¸ä¸ªå表ï¼é¿å
䏿¸¸ä¿¡æ¯åå¨ä¸¥é |
| | | * å½±ååè½ |
| | | * |
| | | *****************************************************************************************/ |
| | | // åå§åç»æ |
| | | bStatus := false; |
| | | strMsg :=""; |
| | | |
| | | try{ |
| | | // æ¸
餿§æ°æ®ï¼éæ°æå |
| | | if(Owner.H_Forecast(relget ).Size()>0) |
| | | { |
| | | traverse( Owner,H_Forecast,Obj,not isnull( Obj)) |
| | | { |
| | | Owner.H_Forecast(reldelete, Obj); |
| | | } |
| | | } |
| | | |
| | | // è·å颿µè®¢åï¼å½æåä¹åç3个æé¢æµæ°æ® ä¸é¢æµæ°é>0ç |
| | | AllData:= selectset( Owner, Product_MP.SalesDemand.astype( Forecast ),object,object.EndDate().DateTime().Date() >= Date::ActualDate().StartOfMonth() |
| | | and object.EndDate().DateTime().Date() <= Date::ActualDate().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth() |
| | | and object.Quantity()>0 ); |
| | | |
| | | CustomName:=""; |
| | | DepartMent:=""; |
| | | idx:=0; |
| | | strOrderCode:=""; |
| | | RQty:=0; |
| | | ObjOrderRealQty:=null( H_OrderForecastRealQty,constcontent ); |
| | | // ObjPruduct :=null( MappingProduct,constcontent ); |
| | | traverse( AllData,Elements,Obj,not isnull(Obj)) |
| | | { |
| | | // è¿éç¨æ¥æ¾åæªåï¼å 为ä¸ç¡®å®æå 个横线ï¼ä»¥ç¬¬ä¸ä¸ªä¸ºå |
| | | idx:=Obj.SalesSegmentName().FindString( "-",0); |
| | | if(idx>0) |
| | | { |
| | | DepartMent:=Obj.SalesSegmentName().SubString( 0,idx); |
| | | CustomName := Obj.SalesSegmentName().SubString( idx+1, Obj.SalesSegmentName().Length() - (idx+1)); |
| | | } |
| | | else |
| | | { |
| | | CustomName :=Obj.SalesSegmentName(); |
| | | DepartMent := "é¨é¨æ°æ®è·å失败ï¼" |
| | | } |
| | | // // ä»ç©æè¡¨è·åç©æä¿¡æ¯ |
| | | // ObjPruduct := H_FunctionClass::SM_GetProductInfo( Owner,Obj.ProductID()); |
| | | // if( not isnull( ObjPruduct)) |
| | | // { |
| | | // |
| | | // } |
| | | // åå
¥é¢æµè®¢åä¿¡æ¯è¡¨ |
| | | strOrderCode:=H_FunctionClass::SM_GenerateID( "OF"); |
| | | Owner.H_Forecast(relnew,OrderCode := strOrderCode, |
| | | SKU := Obj.ProductID(), |
| | | CustomCode := CustomName, |
| | | CustomName := CustomName, |
| | | Util:=Obj.UnitOfMeasureName(), |
| | | NeedTime:=Obj.EndDate(), |
| | | ForecastQty:=[Number]Obj.Quantity().Round( 0), |
| | | StockingPointID := Obj.StockingPointID(), |
| | | Department:=DepartMent); |
| | | // åå
¥é¢æµå®æ¶ä¿¡æ¯ |
| | | ObjOrderRealQty := select( Owner,H_OrderForecastRealQty,ObjO,ObjO.CustomID()=CustomName and ObjO.SKU()=Obj.ProductID() |
| | | and ObjO.Month().StartOfMonth() = Obj.EndDate().StartOfMonth() ) |
| | | if( isnull( ObjOrderRealQty)) |
| | | { |
| | | Owner.H_OrderForecastRealQty(relnew,CustomID := CustomName,CustomName := CustomName,ForecatsQty := [Number]Obj.Quantity().Round( 0) |
| | | ,ForecatsRealQty := [Number]Obj.Quantity().Round( 0),ID := H_FunctionClass::SM_GenerateID( "OR") |
| | | ,Month := Obj.EndDate(),OrderCode := strOrderCode,SKU := Obj.ProductID(),Unit := Obj.UnitOfMeasureName()); |
| | | } |
| | | else |
| | | { |
| | | if( IsNew) |
| | | { |
| | | ObjOrderRealQty.ForecatsQty([Number]Obj.Quantity().Round( 0)); |
| | | ObjOrderRealQty.ForecatsRealQty([Number]Obj.Quantity().Round( 0)); |
| | | } |
| | | else |
| | | { |
| | | if( [Number]Obj.Quantity().Round( 0)<> ObjOrderRealQty.ForecatsQty()) |
| | | { |
| | | RQty := [Number]Obj.Quantity().Round( 0) - ObjOrderRealQty.ForecatsQty(); |
| | | RQty := ObjOrderRealQty.ForecatsRealQty() + RQty; |
| | | if( RQty<0) |
| | | { |
| | | RQty :=0; |
| | | } |
| | | ObjOrderRealQty.ForecatsQty([Number]Obj.Quantity().Round( 0)); |
| | | ObjOrderRealQty.ForecatsRealQty(RQty); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | bStatus := true; |
| | | strMsg :="订å颿µåå§åæå!"; |
| | | } |
| | | onerror |
| | | { |
| | | strMsg :="订å颿µåå§å失败ï¼å¯è½å½±åå²å计ç®ï¼è¯·è系系ç»ç®¡çåï¼"; |
| | | Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_InitialForcastData", |
| | | DeveloperInformation := e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(), |
| | | GeneralInformation := e.GeneralInformation()); |
| | | } |
| | | return JSON::Object().Add( "Status",bStatus) |
| | | .Add( "Msg",strMsg).Build(); |
| | | *] |
| | | } |
| | |
| | | Owner.H_ReverseRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "RQ"),SKU := SKU,Unit := "éè¿SKUè·å",ReverseRealQty := nReverseQtyNew); |
| | | } |
| | | |
| | | |
| | | MaterialResult := selectset( Owner,H_MaterialHedgingResult,Obj,Obj.SKU() = SKU); |
| | | if( MaterialResult.Size()=0) |
| | | { |
| | | Owner.H_MaterialHedgingResult(relnew, |
| | | ID := H_FunctionClass::SM_GenerateID( "MR"), |
| | | SKU:=SKU, |
| | | ForecastQty := nForecastQtyNew, |
| | | ReverseQty := nReverseQtyNew, |
| | | AuthorizeQty := 0, |
| | | CustomerCode := CustomerCode, |
| | | CustomerName := "", |
| | | Unit := "", |
| | | MType := "ç©æ/åæå"); |
| | | } |
| | | else |
| | | { |
| | | traverse( MaterialResult,Elements,Obj,not isnull( Obj)) |
| | | { |
| | | Obj.ReverseQty( nReverseQtyNew); |
| | | } |
| | | } |
| | | // éæ¾éè´ |
| | | Owner.H_MaterialPurchase(relnew,ID := H_FunctionClass::SM_GenerateID( "MP"),VCode:=VCode, DemandTime := DateTime::ActualTime(), |
| | | H_HedgingRecord_ID := HRID,SKU := SKU,ProductSubclassType := "ç©æç±»åï¼ç¨SKUæç©æè¡¨å¾å°",Qty := OperateQty,Unit := "éè¿SKUæ", |
| | |
| | | AuthorizeRealQty :=nAuthorizeQtyNew, |
| | | Unit := "SKU å°ç©æè¡¨è·å"); |
| | | } |
| | | //æ´æ°ç»æ |
| | | MaterialResult := selectset( Owner,H_MaterialHedgingResult,Obj,Obj.SKU() = SKU); |
| | | if( MaterialResult.Size()=0) |
| | | { |
| | | // æ·»å 䏿¡åç¾è®°å½ |
| | | Owner.H_MaterialHedgingResult(relnew, |
| | | ID := H_FunctionClass::SM_GenerateID( "MR"), |
| | | SKU:=SKU, |
| | | ForecastQty := nForecastQtyNew, |
| | | ReverseQty := nReverseQtyNew, |
| | | AuthorizeQty := 0, |
| | | CustomerCode := CustomerCode, |
| | | CustomerName := "", |
| | | Unit := "", |
| | | MType := "ç©æ/åæå"); |
| | | |
| | | // æ·»å 䏿¡ææè®°å½ |
| | | Owner.H_MaterialHedgingResult(relnew, |
| | | ID := H_FunctionClass::SM_GenerateID( "MR"), |
| | | SKU:=SKU, |
| | | ForecastQty := nForecastQtyNew, |
| | | ReverseQty := nReverseQtyNew, |
| | | AuthorizeQty := nAuthorizeQtyNew, |
| | | CustomerCode := CustomerCode, |
| | | Unit := "",MType := "ç©æ/åæå", |
| | | CustomerName := CustomerCode); |
| | | } |
| | | else |
| | | { |
| | | traverse( MaterialResult,Elements,Obj,not isnull( Obj)) |
| | | { |
| | | Obj.ReverseQty( nReverseQtyNew); |
| | | if( Obj.CustomerCode()= CustomerCode) |
| | | { |
| | | Obj.AuthorizeQty(nAuthorizeQtyNew); |
| | | Obj.ForecastQty(nForecastQtyNew); |
| | | } |
| | | } |
| | | } |
| | | |
| | | // éæ¾éè´ |
| | | nMid_R :=OperateQty - nReverseQtyOld; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod SM_OrderHedging ( |
| | | MacroPlan Owner, |
| | | Boolean IsNew, |
| | | String Operator, |
| | | String OperatorType |
| | | ) as owning JSON |
| | | { |
| | | Description: '订åå²åè°ç¨å½æ°' |
| | | TextBody: |
| | | [* |
| | | /************************************订åå²åè°ç¨****************************** |
| | | *彿°åï¼SM_OrderHedging |
| | | *å建人ï¼yunying |
| | | *å建æ¶é´ï¼20230-09-24 |
| | | *æè¿°ï¼ç³»ç»å
订åå²åè°ç¨å½æ°ï¼IsNew=trueæ¶ï¼éæ°å¤ç颿µä¿¡æ¯ï¼IsNew=falseæ¶ï¼ç¨é¢æµç´¯è®¡ä¿¡æ¯ã |
| | | *****************************************************************************/ |
| | | // åå§åç»æ |
| | | bStatus := false; |
| | | strMsg :=""; |
| | | // è·åçæ¬å·,è¿éæ¯å¦éè¦åçæ¬å·åè½å¯¹æ¥ |
| | | VCode :=H_FunctionClass::SM_GenerateID("VC"); |
| | | |
| | | try{ |
| | | if( not isnull( Owner)) |
| | | { |
| | | // åå§å颿µä¿¡æ¯ |
| | | JResult := H_FunctionClass::SM_InitialForcastDataEx( Owner,IsNew); |
| | | if( JResult.Get( "Status").GetBoolean()) |
| | | { |
| | | traverse( Owner,SalesDemand.astype( CustomerOrder ),ObjOrder,not isnull( ObjOrder)) |
| | | { |
| | | //----------------------------------------以ä¸åå»é¢æµ åç¾ æææ°æ®ä¿¡æ¯---------------- |
| | | nForecastQtyOld := 0; //å颿µæ°é |
| | | nReverseQtyOld :=0; //ååç¾æ°é |
| | | nAuthorizeQtyOld :=0; //åæææ°é |
| | | nForecastQtyNew :=0; //计ç®åç颿µæ°é |
| | | nReverseQtyNew :=0; //计ç®åçåç¾æ°é |
| | | nAuthorizeQtyNew :=0; //计ç®åçæææ°é |
| | | nHaveForecastQty :=0; //æé¢æµæ°é |
| | | nNoHaveForecastQty:=0;//äºé¢æµæ°é |
| | | OrderQuantity := 0; //å©ä½è®¢åæ°é |
| | | |
| | | // è·å颿µæ°éï¼å®¢æ·+SKU+æä»½ çè®ºæ¯æ²¡æç©æé¢æµï¼ |
| | | OrderForecast := select(Owner, H_OrderForecastRealQty , Obj, Obj.SKU() = ObjOrder.ProductID() |
| | | and Obj.CustomID() = ObjOrder.CustomerName() |
| | | and Obj.Month().Format( "YM2") =ObjOrder.EndDate().Format( "YM2")); |
| | | if ( not isnull(OrderForecast)) |
| | | { |
| | | nForecastQtyOld := OrderForecast.ForecatsRealQty(); |
| | | nForecastQtyNew := nForecastQtyOld; |
| | | } |
| | | |
| | | // è·ååç¾æ°éï¼åªå¤æSKUï¼ |
| | | ObjReverse := select(Owner, H_ReverseRealQty , Obj, Obj.SKU() = ObjOrder.ProductID()); |
| | | if ( not isnull(ObjReverse)) |
| | | { |
| | | nReverseQtyOld := ObjReverse.ReverseRealQty(); |
| | | nReverseQtyNew := nReverseQtyOld; |
| | | } |
| | | |
| | | // è·åæææ°éï¼å®¢æ·ID+SKUï¼ |
| | | ObjAuthorize := select(Owner, H_AuthorizeRealQty , Obj, Obj.SKU() = ObjOrder.ProductID() |
| | | and Obj.CustomID() = ObjOrder.CustomerName()); |
| | | if ( not isnull(ObjAuthorize)) |
| | | { |
| | | nAuthorizeQtyOld := ObjAuthorize.AuthorizeRealQty(); |
| | | nAuthorizeQtyNew :=nAuthorizeQtyOld; |
| | | } |
| | | //-----------------------------以ä¸è®¢åå²å-------------------- |
| | | // ææè®°å½ID |
| | | AQID := H_FunctionClass::SM_GenerateID( "AQ"); |
| | | // 订åå©ä½æ°é |
| | | OrderQuantity := [Number]ObjOrder.Quantity().Round( 0); |
| | | // 1 å
岿æ |
| | | if( OrderQuantity>0 and nAuthorizeQtyOld>0) |
| | | { |
| | | OrderQuantity := OrderQuantity-nAuthorizeQtyOld; |
| | | nAuthorizeQtyNew :=0; |
| | | if( OrderQuantity<0) |
| | | { |
| | | nAuthorizeQtyNew := abs(OrderQuantity); |
| | | OrderQuantity :=0; |
| | | } |
| | | } |
| | | // 2 åå²åç¾ |
| | | if( OrderQuantity>0 and nReverseQtyOld>0) |
| | | { |
| | | OrderQuantity := OrderQuantity-nReverseQtyOld; |
| | | nReverseQtyNew :=0; |
| | | if( OrderQuantity<0) |
| | | { |
| | | nReverseQtyNew := abs(OrderQuantity); |
| | | OrderQuantity :=0; |
| | | } |
| | | } |
| | | // 3 æåå²é¢æµ |
| | | if( OrderQuantity>0 and nForecastQtyOld>0) |
| | | { |
| | | //é»è®¤è®¢åæ°é>颿µæ°é |
| | | OrderQuantity := OrderQuantity-nForecastQtyOld; |
| | | nForecastQtyNew :=0; |
| | | nHaveForecastQty := nForecastQtyOld; |
| | | nNoHaveForecastQty := OrderQuantity; |
| | | if( OrderQuantity<0) |
| | | { |
| | | nForecastQtyNew := abs(OrderQuantity); |
| | | OrderQuantity :=0; |
| | | nHaveForecastQty := nForecastQtyOld - nForecastQtyNew; |
| | | nNoHaveForecastQty := 0; |
| | | } |
| | | } |
| | | // è®°å½å¨ä½ |
| | | Owner.H_OrderRecord(relnew, |
| | | ID := AQID, |
| | | VCode:=VCode, |
| | | SKU:=ObjOrder.ProductID(), |
| | | ReverseQty := nReverseQtyNew, |
| | | CustomerCode := ObjOrder.CustomerName(), |
| | | CustomerName := ObjOrder.CustomerName(), |
| | | ForecastQty := nForecastQtyNew, |
| | | OrderDateTime := ObjOrder.EndDate(), |
| | | OrderQty := [Number]ObjOrder.Quantity().Round( 0), |
| | | OrderCode:=ObjOrder.OrderID(), |
| | | AuthorizeQty := nAuthorizeQtyNew, |
| | | ReverseDeductQty := nReverseQtyOld - nReverseQtyNew, |
| | | AuthorizeDeductQty := 0, |
| | | ForecastHitQty :=nHaveForecastQty, |
| | | ForecastNoHitQty :=nNoHaveForecastQty, |
| | | OperateType := OperatorType, |
| | | Operator := Operator, |
| | | Unit := ObjOrder.UnitOfMeasureName(), |
| | | OperateQty := [Number]ObjOrder.Quantity().Round( 0), |
| | | OperateTime := DateTime::ActualTime()); |
| | | |
| | | // æ´æ°å½ååç¾æ°é |
| | | if( not isnull( ObjReverse)) |
| | | { |
| | | ObjReverse.ReverseRealQty(nReverseQtyNew); |
| | | } |
| | | else |
| | | { |
| | | Owner.H_ReverseRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "RQ"),SKU := ObjOrder.ProductID(),Unit := ObjOrder.UnitOfMeasureName() |
| | | ,ReverseRealQty := nReverseQtyNew); |
| | | } |
| | | // æ´æ°ææ |
| | | if( not isnull( ObjAuthorize)) |
| | | { |
| | | ObjAuthorize.AuthorizeRealQty(nAuthorizeQtyNew); |
| | | } |
| | | else |
| | | { |
| | | Owner.H_AuthorizeRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "AR"),SKU := ObjOrder.ProductID(), |
| | | Month := ObjOrder.EndDate(), |
| | | CustomID := ObjOrder.CustomerName(), |
| | | CustomName := ObjOrder.CustomerName(), |
| | | OrderCode := "-", |
| | | AuthorizeRealQty :=nAuthorizeQtyNew, |
| | | Unit := ObjOrder.UnitOfMeasureName()); |
| | | } |
| | | // æ´æ°é¢æµ |
| | | if( not isnull( OrderForecast)) |
| | | { |
| | | OrderForecast.ForecatsRealQty(nForecastQtyNew); |
| | | } |
| | | else |
| | | { |
| | | Owner.H_OrderForecastRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "OF"),SKU := ObjOrder.ProductID(), |
| | | Month := ObjOrder.EndDate(), |
| | | CustomID := ObjOrder.CustomerName(), |
| | | CustomName := ObjOrder.CustomerName(), |
| | | OrderCode := "-", |
| | | ForecatsQty :=0, |
| | | ForecatsRealQty :=nForecastQtyNew, |
| | | Unit := ObjOrder.UnitOfMeasureName()); |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | strMsg:="颿µè®¢åä¿¡æ¯å 载失败ï¼è¯·è系系ç»ç®¡çåï¼"; |
| | | } |
| | | } |
| | | } |
| | | onerror |
| | | { |
| | | strMsg :="订åå²ååçé误ï¼è¯·è系系ç»ç®¡çåï¼"; |
| | | // è¿éæ¯å¦è¦å é¤å·²åå»ºçæ°æ®ï¼å¾
å®ï¼å¦ææçæ¬å·å¯ä»¥ä¸å é¤ |
| | | |
| | | // è®°å½é误æ¥å¿ |
| | | Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_InitialForcastData", |
| | | DeveloperInformation := e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(), |
| | | GeneralInformation := e.GeneralInformation()); |
| | | } |
| | | return JSON::Object().Add( "Status",bStatus) |
| | | .Add( "VersionCode",VCode) |
| | | .Add( "Msg",strMsg).Build(); |
| | | *] |
| | | } |
| | |
| | | { |
| | | #keys: '5[414724.0.53669729][414724.0.53669727][0.0.0][414724.0.53669728][414724.0.53669730]' |
| | | BaseType: Object |
| | | Description: 'å²åæä½ç±»' |
| | | Description: 'å²åæä½å
¬ç¨ç±»' |
| | | StructuredName: 'H_FunctionClasss' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute AuthorizeQty |
| | | { |
| | | #keys: '3[414724.0.133544641][414724.0.133544640][414724.0.133544642]' |
| | | Description: 'ææå©ä½æ°é' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute CustomerCode |
| | | { |
| | | #keys: '3[414724.0.133544653][414724.0.133544652][414724.0.133544654]' |
| | | Description: '客æ·ID' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute CustomerName |
| | | { |
| | | #keys: '3[414724.0.133544660][414724.0.133544659][414724.0.133544661]' |
| | | Description: '客æ·åç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ForecastQty |
| | | { |
| | | #keys: '3[414724.0.133544656][414724.0.133544655][414724.0.133544657]' |
| | | Description: '彿颿µå©ä½æ°é' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ID |
| | | { |
| | | #keys: '3[414724.0.133544626][414724.0.133544625][414724.0.133544627]' |
| | | Description: 'KEY' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute MType |
| | | { |
| | | #keys: '3[414724.0.134572562][414724.0.134572561][414724.0.134572563]' |
| | | Description: ' ç©æç±»å' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ReverseQty |
| | | { |
| | | #keys: '3[414724.0.133544623][414724.0.133544622][414724.0.133544624]' |
| | | Description: 'åç¾å©ä½æ°é' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute SKU |
| | | { |
| | | #keys: '3[414724.0.133544644][414724.0.133544643][414724.0.133544645]' |
| | | Description: 'SKUç¼ç ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Serial |
| | | { |
| | | #keys: '3[414724.0.133544647][414724.0.133544646][414724.0.133544648]' |
| | | Description: 'åºå·ï¼ä¸ä¸å®ä½¿ç¨' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Unit |
| | | { |
| | | #keys: '3[414724.0.133544673][414724.0.133544672][414724.0.133544674]' |
| | | Description: 'åä½' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: CustomerCode |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: ID |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: SKU |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type H_MaterialHedgingResult |
| | | { |
| | | #keys: '5[414724.0.133544603][414724.0.133544601][0.0.0][414724.0.133544602][414724.0.133544604]' |
| | | BaseType: Object |
| | | Description: 'ç©æåç¾ææç»æ' |
| | | StructuredName: 'H_MaterialHedgingResults' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ForecastID |
| | | { |
| | | #keys: '3[414724.0.150662643][414724.0.150662642][414724.0.150662644]' |
| | | Description: '颿µID' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ID |
| | | { |
| | | #keys: '3[414724.0.142347495][414724.0.142347494][414724.0.142347496]' |
| | | Description: '主é®ID' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute MaterialName |
| | | { |
| | | #keys: '3[414724.0.142347535][414724.0.142347534][414724.0.142347536]' |
| | | Description: 'ç©æåç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute MaterialType |
| | | { |
| | | #keys: '3[414724.0.142347525][414724.0.142347524][414724.0.142347526]' |
| | | Description: 'ç©æç±»åï¼æåãåæåãåææï¼ï¼ï¼ï¼' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute NeedDate |
| | | { |
| | | #keys: '3[414724.0.143344655][414724.0.143344654][414724.0.143344656]' |
| | | Description: 'éæ±æ¶é´' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute NeedQty |
| | | { |
| | | #keys: '3[414724.0.142347555][414724.0.142347554][414724.0.142347556]' |
| | | Description: 'éæ±æ°é' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute OrgCode |
| | | { |
| | | #keys: '3[414724.0.142347565][414724.0.142347564][414724.0.142347566]' |
| | | Description: 'ç»ç»ä»£ç ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ParentSKU |
| | | { |
| | | #keys: '3[414724.0.142347515][414724.0.142347514][414724.0.142347516]' |
| | | Description: 'ç¶ç©æSKU' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute SKU |
| | | { |
| | | #keys: '3[414724.0.142347505][414724.0.142347504][414724.0.142347506]' |
| | | Description: 'SKU(产åãåæåãç©æï¼' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute StockPoint |
| | | { |
| | | #keys: '3[414724.0.142347575][414724.0.142347574][414724.0.142347576]' |
| | | Description: 'åºåç¹' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Unit |
| | | { |
| | | #keys: '3[414724.0.142347545][414724.0.142347544][414724.0.142347546]' |
| | | Description: 'åä½' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute VCode |
| | | { |
| | | #keys: '3[414724.0.142347585][414724.0.142347584][414724.0.142347586]' |
| | | Description: 'çæ¬å·' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type H_MaterialInfo |
| | | { |
| | | #keys: '5[414724.0.142347475][414724.0.142347473][0.0.0][414724.0.142347474][414724.0.142347476]' |
| | | BaseType: Object |
| | | Description: 'ç©æä¿¡æ¯' |
| | | StructuredName: 'H_MaterialInfos' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ValueJsonString |
| | | { |
| | | #keys: '3[414724.0.138457270][414724.0.138457269][414724.0.138457271]' |
| | | Description: 'Jsonæ ¼å¼åç¬¦ä¸²æ ¼å¼çValue' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method RefreshCapacityAndSaleBudgeFilter ( |
| | | Boolean deleteBeforeCreate |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | if( deleteBeforeCreate ) { |
| | | this.CapacityAndSaleBudgeFilterBusinessType( relflush ); |
| | | this.CapacityAndSaleBudgeFilterPlaceOfProductionOfArray( relflush ); |
| | | } |
| | | this.RefreshCapacityAndSaleBudgeFilter(); |
| | | *] |
| | | } |
| | |
| | | info( "dealing 颿¿åé
é" ) |
| | | if( CapacityAndSaleBudgeFilterItem::Contains( items, "颿¿åé
é" ) ) { |
| | | traverse( years, Elements, year ) { |
| | | info( "颿¿åé
é" + [String]year.YearNo() + "å¹´" ); |
| | | // å岿°æ® |
| | | info( "颿¿åé
é" + [String]year.YearNo() + "å¹´å岿°æ®" ); |
| | | traverse( months, Elements, month ) { |
| | | columnMonth := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "颿¿åé
é-" + [String]year.YearNo() + "å¹´-" + [String]month.MonthNo() + "æ-年度é¢ç®" ); |
| | | traverse( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | |
| | | cell := columnYear.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := [String]cellReal ); |
| | | cell.CapacityAndSaleBudgeCompareItemRow( relset, row ); |
| | | } |
| | | info( "颿¿åé
é" + [String]year.YearNo() + "å¹´S&OPæ°æ®" ); |
| | | // S&OPæ°æ® |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | traverse( months, Elements, month ) { |
| | |
| | | info( "dealing éå®é¢" ) |
| | | if( CapacityAndSaleBudgeFilterItem::Contains( items, "éå®é¢" ) ) { |
| | | traverse( years, Elements, year ) { |
| | | info( "éå®é¢" + [String]year.YearNo() + "å¹´" ); |
| | | // å岿°æ® |
| | | info( "éå®é¢" + [String]year.YearNo() + "å¹´å岿°æ®" ); |
| | | traverse( months, Elements, month ) { |
| | | columnMonth := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "对å¤éå®é¢-" + [String]year.YearNo() + "å¹´-" + [String]month.MonthNo() + "æ-年度é¢ç®" ); |
| | | traverse( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | |
| | | cell := columnYear.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := [String]cellReal ); |
| | | cell.CapacityAndSaleBudgeCompareItemRow( relset, row ); |
| | | } |
| | | info( "éå®é¢" + [String]year.YearNo() + "å¹´å岿°æ®S&OPæ°æ®" ); |
| | | // S&OPæ°æ® |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | traverse( months, Elements, month ) { |
| | |
| | | info( "dealing å¤§å¼ çå©é¢" ) |
| | | traverse( years, Elements, year ) { |
| | | // å岿°æ® |
| | | columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "å¤§å¼ çå©é¢-年度é¢ç®" ); |
| | | columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "å¤§å¼ çå©é¢-" + [String]year.YearNo() + "å¹´-年度é¢ç®" ); |
| | | traverse( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | | // todo |
| | | // QID 23 |
| | |
| | | } |
| | | // S&OPæ°æ® |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "å¤§å¼ çå©é¢-" + [String]year.YearNo() + "å¹´" ); |
| | | columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "å¤§å¼ çå©é¢-" + [String]year.YearNo() + "å¹´-" + macroPlan.ScenarioName() ); |
| | | traverse( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | | cell := columnYear.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := [String]Number::Random( 0, 0 ) ); |
| | | cell.CapacityAndSaleBudgeCompareItemRow( relset, row ); |
| | |
| | | info( "dealing 产åçå©é¢" ) |
| | | traverse( years, Elements, year ) { |
| | | // å岿°æ® |
| | | columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "产åçå©é¢-年度é¢ç®" ); |
| | | columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "产åçå©é¢-" + [String]year.YearNo() + "å¹´-年度é¢ç®" ); |
| | | traverse( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | | // todo |
| | | // QID 23 |
| | | cell := columnYear.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := [String]Number::Random( 0, 0 ) ); |
| | | cell.CapacityAndSaleBudgeCompareItemRow( relset, row ); |
| | | } |
| | | // S&OPæ°æ® |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "产åçå©é¢-" + [String]year.YearNo() + "å¹´" ); |
| | | columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "产åçå©é¢-" + [String]year.YearNo() + "å¹´-" + macroPlan.ScenarioName() ); |
| | | traverse( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | | // todo |
| | | cell := columnYear.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := [String]Number::Random( 0, 0 ) ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method CapacityAndSaleBudgeCompareExport () as BinaryValue |
| | | { |
| | | Description: 'å¯¼åºæ¯è¾ç»æ' |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-22-2023 (created) |
| | | tableName := "年度产éé¢ç®å¯¹æ¯"; |
| | | |
| | | text:= '<?xml version="1.0" encoding="utf-8" standalone="yes"?><table><name>' + tableName + '</name>'; |
| | | |
| | | // å¤çcolumn <column><name>ç©æç¼ç </name><type>String</type></column> |
| | | columnXml := "" |
| | | traverse( this, CapacityAndSaleBudgeCompareItemColumn, column ) { |
| | | info( "columnName : " + column.ColumnName() ); |
| | | columnXml := columnXml + "<column><name>" + column.ColumnName() + "</name><type>String</type></column>"; |
| | | } |
| | | text := text + columnXml + "</table>" |
| | | |
| | | // å¡å
容 |
| | | xmlDOMImplementation := XMLDOMImplementation::Create(); |
| | | xmlDOMDocument := xmlDOMImplementation.CreateDocumentFromString( text ); |
| | | tableElement:= xmlDOMDocument.GetElementByTagName( "table", 0 ); |
| | | rows := selectsortedset( this, CapacityAndSaleBudgeCompareItemRow, row, row.PlaceOfProductionOfArray() + "_" + row.BusinessType() ); |
| | | traverse ( rows, Elements, row ) { |
| | | info( "rowNo : " + [String]row.RowNo() ); |
| | | traverse( row, CapacityAndSaleBudgeCompareItemCell, cell ) { |
| | | ScenarioManager::GeneratesTheSpecifiedXMLColumn( xmlDOMDocument, tableElement, cell.CellContent(), cell.CapacityAndSaleBudgeCompareItemColumn().ColumnName() ); |
| | | } |
| | | } |
| | | xmlDOMSerializer := xmlDOMImplementation.CreateSerializer(); |
| | | xmlTableString := xmlDOMSerializer.WriteToString( xmlDOMDocument ); |
| | | |
| | | tableHandle := TableHandle::ImportXML( BinaryValue::Construct( xmlTableString ) ); |
| | | tableGroupHandle := TableGroupHandle::Create( tableName ); |
| | | tableGroupHandle.Add( tableHandle ); |
| | | tableBinaryData := XLS::SaveTableGroupToBinaryData( tableGroupHandle, true ); |
| | | |
| | | return tableBinaryData.AsBinaryValue(); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GeneratesTheSpecifiedXMLColumn ( |
| | | XMLDOMDocument xmlDOMDocument, |
| | | XMLDOMElement tableElement, |
| | | String value, |
| | | String columnName |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | columnElements := tableElement.GetElementsByTagName( "column" ); |
| | | |
| | | traverse ( columnElements, Elements, ce ) { |
| | | nameElement := ce.GetElementByTagName( "name", 0 ); |
| | | if ( nameElement.TextContent() = columnName ) { |
| | | cell := xmlDOMDocument.CreateElement( "cell" ); |
| | | cell.SetAttribute( "value", value ); |
| | | ce.AppendChild( cell ); |
| | | } |
| | | } |
| | | *] |
| | | } |
| | |
| | | [ |
| | | Component menuSeparator457 { #keys: '[414702.0.265704251]' BaseType: 'Menu' Properties: [ Separator: true ] } |
| | | Component ComponentMenu666 { #keys: '[414702.0.265704260]' BaseType: 'ComponentMenu' Properties: [ ComponentType: 'FormBrokerExecuteLog' Text: '' ] } |
| | | Component menuSeparator822 { #keys: '[414702.0.340555024]' BaseType: 'Menu' Properties: [ Separator: true ] } |
| | | Component ComponentMenu783 { #keys: '[414702.0.340555035]' BaseType: 'ComponentMenu' Properties: [ ComponentType: 'FormTestButtonCollection' Text: '' ] } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | c: menuExit |
| | | c: menuSeparator457 |
| | | c: ComponentMenu666 |
| | | c: menuSeparator822 |
| | | c: ComponentMenu783 |
| | | } |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Button398 |
| | | Response OnClick () id:Response_FormTestButtonCollection_Button398_OnClick |
| | | { |
| | | #keys: '[414702.0.340554926]' |
| | | Body: |
| | | [* |
| | | CapacityAllocationResults::CreateDate( GlobalOTDTable, MacroPlan ); |
| | | *] |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_GUIButtonBase_OnClick' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlanner |
| | | OrphanComponent FormTestButtonCollection |
| | | { |
| | | #keys: '[414702.0.340554698]' |
| | | BaseType: 'Form' |
| | | GBLayout |
| | | { |
| | | Type: 'internal[GBLayoutDefinition]' |
| | | Columns: |
| | | [ |
| | | GBFlow.Column { grow: 0 id: 454 parent: 0 } |
| | | ] |
| | | Elements: |
| | | [ |
| | | GBElement |
| | | { |
| | | Component => Button398 |
| | | Position { startcolumn: 454 startrow: 649 endcolumn: 454 endrow: 649 } |
| | | } |
| | | ] |
| | | Gaps: [ left: 5 right: 5 top: 5 bottom: 5 inner: 5 ] |
| | | Rows: |
| | | [ |
| | | GBFlow.Row { grow: 0 id: 649 parent: 0 } |
| | | ] |
| | | } |
| | | Children: |
| | | [ |
| | | Component Button398 |
| | | { |
| | | #keys: '[414702.0.340554799]' |
| | | BaseType: 'Button' |
| | | Properties: |
| | | [ |
| | | Image: 'HARDHAT' |
| | | Text: 'çæäº§è½åé
ç»ææ°æ®' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Height: 209 |
| | | Image: 'PIPETTE_TEST' |
| | | IncludeInView: true |
| | | Title: 'åè½æµè¯æé®' |
| | | Width: 535 |
| | | ] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderCode","title":"OrderCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKU","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderDateTime","title":"OrderDateTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderDateTime"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderQty","title":"OrderQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastHitQty","title":"ForecastHitQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastNoHitQty","title":"ForecastNoHitQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastNoHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit","title":"Unit","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Unit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerName","title":"CustomerName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerCode","title":"CustomerCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerCode"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderCode","title":"订åç¼å·","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKUç¼ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderQty","title":"æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderDateTime","title":"éæ±æ¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderDateTime"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastHitQty","title":"æé¢æµ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastNoHitQty","title":"æ 颿µ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastNoHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit","title":"åä½","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Unit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerName","title":"客æ·åç§°","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerCode","title":"客æ·ID","subtotals":"","tooltip":"","width":-1,"display":"hidden","editable":false,"attribute":"CustomerCode"}}]' |
| | | ContextMenu: 'listContextMenu108' |
| | | SortCriteria: 'OperateTime' |
| | | Taborder: 2 |
| | |
| | | Properties: |
| | | [ |
| | | Description: '订åå²ååå表å±ç¤º' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: '订åå²ååå表å±ç¤º' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component ListCapacityAllocationResults |
| | | { |
| | | #keys: '[414702.0.338762075]' |
| | | BaseType: 'WebList' |
| | | Children: |
| | | [ |
| | | Component DataExtractorCapacityAllocationResults |
| | | { |
| | | #keys: '[414702.0.338762076]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'GlobalOTDTable' |
| | | Source: 'GlobalOTDTable' |
| | | Taborder: 0 |
| | | Transformation: 'CapacityAllocationResults' |
| | | ] |
| | | } |
| | | #child: listActionBarPageCapacityAllocationResults |
| | | Component DataSetLevelCapacityAllocationResults |
| | | { |
| | | #keys: '[414702.0.338762081]' |
| | | BaseType: 'WebDataSetLevel' |
| | | Children: |
| | | [ |
| | | #child: listContextMenuCapacityAllocationResults |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"VersionNumber","title":"VersionNumber","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"VersionNumber"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PanelMeasurementUnit","title":"PanelMeasurementUnit","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PanelMeasurementUnit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PanelMaterialCode","title":"PanelMaterialCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PanelMaterialCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NumberOfPanels","title":"NumberOfPanels","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"NumberOfPanels"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PanelMeasurementUnit","title":"PanelMeasurementUnit","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PanelMeasurementUnit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ModuleMaterialCode","title":"ModuleMaterialCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ModuleMaterialCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NumberOfModules","title":"NumberOfModules","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"NumberOfModules"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ModuleMeasurementUnit","title":"ModuleMeasurementUnit","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ModuleMeasurementUnit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ModuleMeasurementUnit","title":"ModuleMeasurementUnit","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ModuleMeasurementUnit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Division","title":"Division","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Division"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"RequirementDate","title":"RequirementDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"RequirementDate"}}]' |
| | | ContextMenu: 'listContextMenuCapacityAllocationResults' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listActionBarPageCapacityAllocationResults |
| | | { |
| | | #keys: '[414702.0.338762078]' |
| | | BaseType: 'listActionBarPage' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listContextMenuCapacityAllocationResults |
| | | { |
| | | #keys: '[414702.0.338762083]' |
| | | BaseType: 'listContextMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ButtonGenerateCapacityAllocationResults |
| | | Response OnClick () id:Response_FormCapacityAllocationResults_ButtonGenerateCapacityAllocationResults_OnClick |
| | | { |
| | | #keys: '[414702.0.340111671]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | CapacityAllocationResults::CreateDate( GlobalOTDTable, MacroPlan ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent FormCapacityAllocationResults |
| | | { |
| | | #keys: '[414702.0.338731526]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: ListCapacityAllocationResults |
| | | Component ButtonGenerateCapacityAllocationResults |
| | | { |
| | | #keys: '[414702.0.340677556]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'PROCESS' |
| | | Label: 'çææ°æ®' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Image: 'PUMPKIN_HALLOWEEN' |
| | | Title: '产è½åé
ç»æ' |
| | | ] |
| | | } |
| | |
| | | ContextMenu: 'matrixeditorContextMenuCapacityAndSaleBudgeCompare' |
| | | Editable: false |
| | | Rows: 'MatrixEditorRowsCapacityAndSaleBudgeCompare' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ButtonExportCompare |
| | | Response OnClick () id:Response_FormCapacityAndSaleBudgeCompare_ButtonExportCompare_OnClick |
| | | { |
| | | #keys: '[414384.0.881345276]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( GlobalOTDTable ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | tableBinaryData := ScenarioManager.CapacityAndSaleBudgeCompareExport().AsBinaryData(); |
| | | Application.Download( "年度产éé¢ç®å¯¹æ¯.xlsx", tableBinaryData ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component ButtonExportCompare |
| | | { |
| | | #keys: '[414384.0.881345277]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Label: '导åº' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"BusinessType","title":"BusinessType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"BusinessType"}}]' |
| | | ContextMenu: 'listContextMenuCapacityAndSaleBudgeFilterYear' |
| | | SortCriteria: 'YearNo' |
| | | SortCriteria: 'BusinessType' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PlaceOfProductionOfArray","title":"PlaceOfProductionOfArray","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PlaceOfProductionOfArray"}}]' |
| | | ContextMenu: 'listContextMenuCapacityAndSaleBudgeFilterYear' |
| | | SortCriteria: 'YearNo' |
| | | SortCriteria: 'PlaceOfProductionOfArray' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Serial","title":"Serial","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Serial"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastQty","title":"ForecastQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReverseQty","title":"ReverseQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReverseQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"AuthorizeQty","title":"AuthorizeQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"AuthorizeQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OperateQty","title":"OperateQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OperateQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OperateType","title":"OperateType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OperateType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Operator","title":"Operator","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Operator"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OperateTime","title":"OperateTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OperateTime"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Serial","title":"åºå·","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Serial"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKUç¼å·","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastQty","title":"颿µæ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReverseQty","title":"åç¾æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReverseQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"AuthorizeQty","title":"æææ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"AuthorizeQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OperateQty","title":"å¨ä½æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OperateQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OperateType","title":"å¨ä½ç±»å","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OperateType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Operator","title":"æä½äºº","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Operator"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OperateTime","title":"æä½æ¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OperateTime"}}]' |
| | | ContextMenu: 'listContextMenuHedgingOfLog' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | #child: ListHedgingOfLog |
| | | #child: PanelHedgingOfLog761 |
| | | #child: PanelHedgingOfLog593 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelHedgingOfLog221 |
| | | { |
| | | #keys: '[414724.0.149787927]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component LabelHedgingOfLog id:LabelHedgingOfLog_298 |
| | | { |
| | | #keys: '[414724.0.149788086]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | FixedSize: false |
| | | Taborder: 0 |
| | | Text: 'æ¥å¿é¡µé¢' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Border: true |
| | | FixedSize: true |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelHedgingOfLog593 id:PanelHedgingOfLog593_93 |
| | | { |
| | | #keys: '[414724.0.152989129]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component txt_QueryContent_FHO |
| | | { |
| | | #keys: '[414724.0.152989222]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | PlaceHolder: 'æ¨¡ç³æç´¢' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component btn_Query_FHO |
| | | { |
| | | #keys: '[414724.0.152920619]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | ButtonSize: 'compact' |
| | | Image: 'VIEW' |
| | | Label: 'æ¥è¯¢' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelHedgingOfLog593_93/btn_Query_FHO |
| | | Response OnClick () id:Response_PanelHedgingOfLog593_93_btn_Query_FHO_OnClick |
| | | { |
| | | #keys: '[414724.0.152920798]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | DataExtractorHedgingOfLog.FixedFilter( "object.SKU().LikeUserLocale( " + txt_QueryContent_FHO.Text().AsQUILL() + " )" |
| | | + " or " + "object.OperateType().LikeUserLocale( " + txt_QueryContent_FHO.Text().AsQUILL() + " )" |
| | | + " or " + "object.Operator().LikeUserLocale( " + txt_QueryContent_FHO.Text().AsQUILL() + " )" |
| | | ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Children: |
| | | [ |
| | | #child: PanelHedgingOfLog |
| | | Component lb_ForecastQty |
| | | { |
| | | #keys: '[414724.0.31031550]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | Text: 'åææç颿µæ°éï¼0' |
| | | ] |
| | | } |
| | | #child: PanelHedgingOfLog221 |
| | | #child: PanelHedgingOfLog593_93 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: 'å²åç»æ-æ¥å¿' |
| | | Image: 'DOCUMENT_REFRESH' |
| | | Title: 'åç¾ææå表æç»é¡µ' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: 'æ¥å¿é¡µé¢' |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[H_MaterialPurchase]' |
| | | FixedFilter: 'object.Status()="æªåå¸"' |
| | | Source: 'DataHolderMaterialPurchase' |
| | | Taborder: 0 |
| | | Transformation: 'Elements' |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKU","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductSubclassType","title":"ProductSubclassType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductSubclassType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Qty","title":"Qty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Qty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit","title":"Unit","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Unit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrgCode","title":"OrgCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrgCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"WarehouseCode","title":"WarehouseCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"WarehouseCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"DemandTime","title":"DemandTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"DemandTime"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKUç¼ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductSubclassType","title":"ç±»å","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductSubclassType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Qty","title":"æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Qty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit","title":"åä½","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Unit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrgCode","title":"ç»ç»ä»£ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrgCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"WarehouseCode","title":"ä»åºä»£ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"WarehouseCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"DemandTime","title":"éæ±æ¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"DemandTime"}}]' |
| | | ContextMenu: 'listContextMenuMaterialPurchase' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | NumberOfColumns: 50 |
| | | NumberOfColumns: 30 |
| | | Taborder: 0 |
| | | Text: 'å¼å§æ¶é´ï¼2023-03-26 12:24:46' |
| | | Visible: false |
| | | ] |
| | | } |
| | | #child: PanelMaterialPurchase613 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelMaterialPurchase354 |
| | | { |
| | | #keys: '[414724.0.149784759]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lb_Title208 |
| | | { |
| | | #keys: '[414724.0.149784840]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Description: 'ææ/åç¾ç©æéè´æç»éæ¾' |
| | | Taborder: 0 |
| | | Text: 'ææ/åç¾ç©æéè´æç»éæ¾' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Border: true |
| | | FixedSize: true |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | Component lb_Title |
| | | { |
| | | #keys: '[414724.0.32644779]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Description: 'ææ/åç¾ç©æéè´æç»éæ¾' |
| | | Taborder: 0 |
| | | Text: 'ææ/åç¾ç©æéè´æç»éæ¾' |
| | | ] |
| | | } |
| | | #child: PanelMaterialPurchase |
| | | Component DataHolderMaterialPurchase |
| | | { |
| | |
| | | ] |
| | | } |
| | | #child: ListMaterialPurchase |
| | | #child: PanelMaterialPurchase354 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: 'ææ/åç¾ç©æéè´æç»éæ¾' |
| | | Image: 'DOG' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: 'ææ/åç¾ç©æéè´æç»éæ¾' |
| | | ] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderID","title":"OrderID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SalesSegmentName","title":"SalesSegmentName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SalesSegmentName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockingPointID","title":"StockingPointID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockingPointID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerName","title":"CustomerName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"UnitOfMeasureName","title":"UnitOfMeasureName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"UnitOfMeasureName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Price","title":"Price","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Price"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EndDate","title":"EndDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EndDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsLocked","title":"IsLocked","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IsLocked"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"First.AsPlanningBaseSalesDemandInPeriod.End","title":"End","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"First.AsPlanningBaseSalesDemandInPeriod.End"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"LastModify","title":"LastModify","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"LastModify"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"LastModifyTime","title":"LastModifyTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"LastModifyTime"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderID","title":"OrderID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SalesSegmentName","title":"SalesSegmentName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SalesSegmentName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockingPointID","title":"StockingPointID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockingPointID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerName","title":"CustomerName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"UnitOfMeasureName","title":"UnitOfMeasureName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"UnitOfMeasureName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Price","title":"Price","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Price"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StartDate","title":"StartDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StartDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsLocked","title":"IsLocked","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IsLocked"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"First.AsPlanningBaseSalesDemandInPeriod.End","title":"End","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"First.AsPlanningBaseSalesDemandInPeriod.End"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"LastModify","title":"LastModify","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"LastModify"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"LastModifyTime","title":"LastModifyTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"LastModifyTime"}}]' |
| | | ContextMenu: 'listContextMenuOrderLock' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | ButtonSize: 'compact' |
| | | Description: '订åéå®' |
| | | Label: 'éå®' |
| | | Taborder: 7 |
| | | Taborder: 8 |
| | | ] |
| | | } |
| | | Component ButtonOrderLockHeaderUnlock |
| | |
| | | ButtonSize: 'compact' |
| | | Description: '订åè§£é' |
| | | Label: 'è§£é' |
| | | Taborder: 8 |
| | | Taborder: 9 |
| | | ] |
| | | } |
| | | Component ButtonOrderLockHeaderClear |
| | |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component ButtonOrderLockHeaderFresh |
| | | { |
| | | #keys: '[412960.0.259721852]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | ButtonSize: 'compact' |
| | | Description: '仿°æ®æºå·æ°è®¢åæ°æ®' |
| | | Label: 'éæ°è·å订å' |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelOrderLockHeader_545/ButtonOrderLockHeaderFresh |
| | | Response OnClick () id:Response_PanelOrderLockHeader_545_ButtonOrderLockHeaderFresh_OnClick |
| | | { |
| | | #keys: '[412960.0.259721886]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | macroplan := MacroPlan; |
| | | businesstypes := DataHolderOrderLockGlobal.Data().BusinessType().Tokenize( ',' ); |
| | | CustomerOrder::DoSync( macroplan, businesstypes ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | newfilter := ""; |
| | | findcount := 0; |
| | | traverse( existfilterlist, Elements, filter ){ |
| | | if( filter.FindString( "EndDate()", 0 ) >= 0 ){ |
| | | if( filter.FindString( "StartDate()", 0 ) >= 0 ){ |
| | | if( newfilter = "" ){ |
| | | newfilter := "( object.EndDate() = " + this.Date().AsQUILL() + " )"; |
| | | newfilter := "( object.StartDate() = " + this.Date().AsQUILL() + " )"; |
| | | }else{ |
| | | newfilter := newfilter + " and " + "( object.EndDate() = " + this.Date().AsQUILL() + " )"; |
| | | newfilter := newfilter + " and " + "( object.StartDate() = " + this.Date().AsQUILL() + " )"; |
| | | } |
| | | findcount := 1; |
| | | }else{ |
| | |
| | | |
| | | if( findcount = 0 ){ |
| | | if( newfilter = "" ){ |
| | | newfilter := "( object.EndDate() = " + this.Date().AsQUILL() + " )"; |
| | | newfilter := "( object.StartDate() = " + this.Date().AsQUILL() + " )"; |
| | | }else{ |
| | | newfilter := newfilter + " and " + "( object.EndDate() = " + this.Date().AsQUILL() + " )"; |
| | | newfilter := newfilter + " and " + "( object.StartDate() = " + this.Date().AsQUILL() + " )"; |
| | | } |
| | | } |
| | | |
| | |
| | | newfilter := ""; |
| | | findcount := 0; |
| | | traverse( existfilterlist, Elements, filter ){ |
| | | if( filter.FindString( "End()", 0 ) >= 0 and filter.FindString( "EndDate()", 0 ) < 0 ){ |
| | | if( filter.FindString( "End()", 0 ) >= 0 ){ |
| | | if( newfilter = "" ){ |
| | | newfilter := "( object.First().AsPlanningBaseSalesDemandInPeriod().End().Date() = " + this.Date().AsQUILL() + " )"; |
| | | }else{ |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ID","title":"ID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Issuer","title":"Issuer","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Issuer"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IssuingDate","title":"IssuingDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IssuingDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"FinishDate","title":"FinishDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"FinishDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Status","title":"Status","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Status"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"VCode","title":"VCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"VCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Serial","title":"Serial","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Serial"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ID","title":"ID","subtotals":"","tooltip":"","width":-1,"display":"hidden","editable":false,"attribute":"ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Serial","title":"åºå·","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Serial"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IssuingDate","title":"å叿¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IssuingDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"FinishDate","title":"ç»ææ¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"FinishDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Issuer","title":"åå¸äºº","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Issuer"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Status","title":"ç¶æ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Status"}}]' |
| | | ContextMenu: 'listContextMenuReleaseRecord' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"H_ReleaseRecord_ID","title":"H_ReleaseRecord_ID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"H_ReleaseRecord_ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"H_HedgingRecord_ID","title":"H_HedgingRecord_ID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"H_HedgingRecord_ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ID","title":"ID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Qty","title":"Qty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Qty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Status","title":"Status","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Status"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IssuingDate","title":"IssuingDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IssuingDate"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"ç©æç¼å·","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductSubclassType","title":"ç±»å","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductSubclassType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Qty","title":"æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Qty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit","title":"åä½","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Unit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrgCode","title":"ç»ç»ä»£ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrgCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"WarehouseCode","title":"ä»åºä»£ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"WarehouseCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"DemandTime","title":"éæ±æ¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"DemandTime"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IssuingDate","title":"å叿¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IssuingDate"}}]' |
| | | ContextMenu: 'listContextMenuReleaseRecord690' |
| | | Taborder: 2 |
| | | ] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelReleaseRecord423 |
| | | { |
| | | #keys: '[414724.0.149784904]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component LabelReleaseRecord id:LabelReleaseRecord_296 |
| | | { |
| | | #keys: '[414724.0.149784974]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | NumberOfColumns: 20 |
| | | Taborder: 0 |
| | | Text: 'åç¾/ææç©æåå¸çæ¬æç»' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Border: true |
| | | FixedSize: true |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | DataExtractorReleaseRecord661.FixedFilter( "object.H_ReleaseRecord_ID() = " + selection.ID().AsQUILL()); |
| | | // åå¸ID |
| | | H_ReleaseRecord_ID := "-1"; |
| | | H_Status:="å·²åå¸"; |
| | | if( not isnull( selection)) |
| | | { |
| | | H_ReleaseRecord_ID := selection.ID(); |
| | | } |
| | | DataExtractorReleaseRecord661.FixedFilter( "object.H_ReleaseRecord_ID() = " + H_ReleaseRecord_ID.AsQUILL() |
| | | + " and " + "object.Status() = " + H_Status.AsQUILL()); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | #keys: '[414724.0.37110847]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dtMonth.Date(Date::Today()); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | Component LabelReleaseRecord |
| | | { |
| | | #keys: '[414724.0.36933216]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | NumberOfColumns: 20 |
| | | Taborder: 0 |
| | | Text: 'åç¾/ææç©æåå¸çæ¬æç»' |
| | | ] |
| | | } |
| | | #child: PanelReleaseRecord |
| | | #child: PanelReleaseRecord108 |
| | | #child: PanelReleaseRecord527 |
| | | #child: PanelReleaseRecord423 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: 'åç¾/ææç©æåå¸çæ¬æç»' |
| | | Image: 'BULL' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: 'åç¾/ææç©æåå¸çæ¬æç»' |
| | | ] |
| | | } |
| | |
| | | [* |
| | | // è·åéæ©åçSKU |
| | | SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmMaterial" and Obj.ItemKey()="ListSelect"); |
| | | if(not isnull( SelectItem) and SelectItem.Value().Length()>0) |
| | | if(not isnull( SelectItem)) |
| | | { |
| | | StrValue := SelectItem.Value().Tokenize( ";"); |
| | | lb_SUK_FAACM.Text(StrValue.Element( 0)); |
| | | lb_MaterialCode_FAACM.Text(StrValue.Element( 1)); |
| | | lb_Unit_FAACM.Text(StrValue.Element( 2)); |
| | | if(SelectItem.ValueJsonString().Length()>0) |
| | | { |
| | | JInfo := JSON::Parse( SelectItem.ValueJsonString()); |
| | | lb_SUK_FAACM.Text(JInfo.Get( "ParentSKU").GetString()); |
| | | lb_MaterialCode_FAACM.Text(JInfo.Get( "SKU").GetString()); |
| | | lb_Unit_FAACM.Text(JInfo.Get( "Unit").GetString()); |
| | | lb_Operator_FAACM.Text(ApplicationMacroPlanner.GetUserName()); |
| | | txt_CustomID_FAACM.Text(JInfo.Get( "CustomCode").GetString()); |
| | | txt_CustomName_FAACM.Text(JInfo.Get( "CustomName").GetString()); |
| | | } |
| | | // è·åéæ©åçSKU |
| | | SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect"); |
| | | if(not isnull( SelectItem) and SelectItem.Value().Length()>0) |
| | | { |
| | | StrValue := SelectItem.Value().Tokenize( ";"); |
| | | txt_CustomID_FAACM.Text(StrValue.Element( 2)); |
| | | txt_CustomName_FAACM.Text(StrValue.Element( 3)); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | |
| | | Properties: |
| | | [ |
| | | Description: 'åææåæååç¾æææ°å¢é¡µ' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: 'åææåæååç¾æææ°å¢é¡µ' |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_Panel261.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component Panel261 |
| | | Component Panel261 id:Panel261_223 |
| | | { |
| | | #keys: '[414724.0.44249978]' |
| | | #keys: '[414724.0.117732107]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component btn_OK_FAAC |
| | | { |
| | | #keys: '[414724.0.44279077]' |
| | | #keys: '[414724.0.117732108]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | |
| | | } |
| | | Component btn_Cancel_FAAC |
| | | { |
| | | #keys: '[414724.0.44279090]' |
| | | #keys: '[414724.0.117732109]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | |
| | | Border: true |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 2 |
| | | Taborder: 10 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component Panel796 |
| | | { |
| | | #keys: '[414724.0.116871632]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component Label417 |
| | | { |
| | | #keys: '[414724.0.115502113]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Description: '订ååæ½æææ°å¢é¡µ' |
| | | Taborder: 0 |
| | | Text: '订ååæ½æææ°å¢é¡µ' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Border: true |
| | | FixedSize: true |
| | | Taborder: 0 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component Panel989 |
| | | { |
| | | #keys: '[414724.0.115531444]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ds_NeedDate id:ds_NeedDate_456 |
| | | { |
| | | #keys: '[414724.0.117731536]' |
| | | BaseType: 'WebDateSelector' |
| | | Properties: |
| | | [ |
| | | Label: 'éæ±æ¥æ' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Taborder: 1 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelTop |
| | | Component PanelTop id:PanelTop_217 |
| | | { |
| | | #keys: '[414724.0.43072496]' |
| | | #keys: '[414724.0.117731595]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lb_SKUCode_FAAC |
| | | { |
| | | #keys: '[414724.0.43602743]' |
| | | #keys: '[414724.0.117731596]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop104.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelTop104 |
| | | Component PanelTop104 id:PanelTop104_150 |
| | | { |
| | | #keys: '[414724.0.43764561]' |
| | | #keys: '[414724.0.117731993]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component txt_CustomName_FAAC |
| | | { |
| | | #keys: '[414724.0.43764592]' |
| | | #keys: '[414724.0.117731994]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | Description: '客æ·åç§°' |
| | | Enabled: false |
| | | Label: '客æ·åç§°' |
| | | NumberOfColumns: 30 |
| | | PlaceHolder: '请è¾å
¥' |
| | | ReadOnly: true |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 7 |
| | | Taborder: 8 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop264.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelTop264 |
| | | Component PanelTop264 id:PanelTop264_19 |
| | | { |
| | | #keys: '[414724.0.43764392]' |
| | | #keys: '[414724.0.117731831]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lb_Util_FAAC |
| | | { |
| | | #keys: '[414724.0.43764416]' |
| | | #keys: '[414724.0.117731832]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 4 |
| | | Taborder: 5 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop360.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelTop360 |
| | | Component PanelTop360 id:PanelTop360_136 |
| | | { |
| | | #keys: '[414724.0.43764343]' |
| | | #keys: '[414724.0.117731775]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component np_Qty_FAAC |
| | | { |
| | | #keys: '[414724.0.43764374]' |
| | | #keys: '[414724.0.117731776]' |
| | | BaseType: 'WebNumberPicker' |
| | | Properties: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 3 |
| | | Taborder: 4 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop597.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelTop597 |
| | | Component PanelTop597 id:PanelTop597_324 |
| | | { |
| | | #keys: '[414724.0.43764439]' |
| | | #keys: '[414724.0.117731885]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ddsl_OperateType_FAAC |
| | | { |
| | | #keys: '[414724.0.44398642]' |
| | | #keys: '[414724.0.117731886]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 5 |
| | | Taborder: 6 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop612.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelTop612 |
| | | Component PanelTop612 id:PanelTop612_612 |
| | | { |
| | | #keys: '[414724.0.43764662]' |
| | | #keys: '[414724.0.117732047]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lb_Operator_FAAC |
| | | { |
| | | #keys: '[414724.0.43764687]' |
| | | #keys: '[414724.0.117732048]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 8 |
| | | Taborder: 9 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop744.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelTop744 |
| | | Component PanelTop744 id:PanelTop744_568 |
| | | { |
| | | #keys: '[414724.0.43764285]' |
| | | #keys: '[414724.0.117731719]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component lb_SKUName_FAAC |
| | | { |
| | | #keys: '[414724.0.43764315]' |
| | | #keys: '[414724.0.117731720]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 2 |
| | | Taborder: 3 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop846.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelTop846 |
| | | Component PanelTop846 id:PanelTop846_618 |
| | | { |
| | | #keys: '[414724.0.43764508]' |
| | | #keys: '[414724.0.117731939]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component txt_CustomID_FAAC |
| | | { |
| | | #keys: '[414724.0.43764542]' |
| | | #keys: '[414724.0.117731940]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | Enabled: false |
| | | Label: '客æ·ID' |
| | | NumberOfColumns: 30 |
| | | PlaceHolder: '请è¾å
¥' |
| | | ReadOnly: true |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 6 |
| | | Taborder: 7 |
| | | Visible: false |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Response OnCreated () id:Response_FrmAuthorizeAndCountersign_Order_OnCreated |
| | | { |
| | | #keys: '[414724.0.117762728]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | // éæ±æ¥æï¼é»è®¤ä¸ä¸ä¸ªææäº |
| | | ds_NeedDate.Date(H_FunctionClass::SM_GetNextFriday()); |
| | | |
| | | // è·åéæ©åçSKU |
| | | SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect"); |
| | | if(not isnull( SelectItem)) |
| | | { |
| | | if(SelectItem.ValueJsonString().Length()>0) |
| | | { |
| | | // å¾å°éä¸ç颿µè®¢å |
| | | SelForecast := JSON::Parse( SelectItem.ValueJsonString()); |
| | | lb_SKUCode_FAAC.Text(SelForecast.Get( "SKU").GetString()); |
| | | lb_SKUName_FAAC.Text("产å"); |
| | | lb_Util_FAAC.Text(SelForecast.Get( "Util").GetString()); |
| | | txt_CustomID_FAAC.Text(SelForecast.Get( "CustomCode").GetString()); |
| | | txt_CustomName_FAAC.Text(SelForecast.Get( "CustomName").GetString()); |
| | | lb_Operator_FAAC.Text(ApplicationMacroPlanner.GetUserName()); |
| | | |
| | | // StrValue := SelectItem.Value().Tokenize( ";"); |
| | | // lb_SKUCode_FAAC.Text(StrValue.Element( 0)); |
| | | // lb_SKUName_FAAC.Text("产å"); |
| | | // lb_Operator_FAAC.Text(""); |
| | | // lb_Util_FAAC.Text(StrValue.Element( 1)); |
| | | // txt_CustomID_FAAC.Text(StrValue.Element( 2)); |
| | | // txt_CustomName_FAAC.Text(StrValue.Element( 3)); |
| | | // lb_Operator_FAAC.Text(ApplicationMacroPlanner.GetUserName()); |
| | | } |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Panel261_223/btn_Cancel_FAAC |
| | | Response OnClick () id:Response_Panel261_223_btn_Cancel_FAAC_OnClick |
| | | { |
| | | #keys: '[414724.0.117732105]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | FrmAuthorizeAndCountersign_Order.Close(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Panel261_223/btn_OK_FAAC |
| | | Response OnClick () id:Response_Panel261_223_btn_OK_FAAC_OnClick |
| | | { |
| | | #keys: '[414724.0.117732106]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | // æ°é |
| | | Qty := [Number]np_Qty_FAAC.Number().Round( 0); |
| | | OperateMsg :=""; |
| | | OperateResult := H_FunctionClass::SM_OrderReverseOrAuthorize( MacroPlan,lb_Util_FAAC.Text() ,"-",ds_NeedDate.Date() ,txt_CustomID_FAAC.Text(),lb_SKUCode_FAAC.Text(),Qty, |
| | | lb_Operator_FAAC.Text(),txt_CustomName_FAAC.Text(),OperateMsg,ddsl_OperateType_FAAC.Text()); |
| | | |
| | | if( OperateResult) |
| | | { |
| | | FrmAuthorizeAndCountersign_Order.Close(); |
| | | if( OperateMsg.Length()>0) |
| | | { |
| | | WebMessageBox::Success( OperateMsg); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | WebMessageBox::Warning( OperateMsg); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent FrmAuthorizeAndCountersign_Order |
| | | { |
| | | #keys: '[414724.0.115523082]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: Panel796 |
| | | #child: Panel989 |
| | | #child: PanelTop_217 |
| | | #child: PanelTop744_568 |
| | | #child: PanelTop360_136 |
| | | #child: PanelTop264_19 |
| | | #child: PanelTop597_324 |
| | | #child: PanelTop846_618 |
| | | #child: PanelTop104_150 |
| | | #child: PanelTop612_612 |
| | | #child: Panel261_223 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: 'åææåæååç¾æææ°å¢é¡µ' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: '订ååç¾æææ°å¢é¡µ' |
| | | ] |
| | | } |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[Product_MP]' |
| | | DataType: 'structured[H_MaterialInfo]' |
| | | Source: 'dh_FM_PruductMP' |
| | | Taborder: 0 |
| | | Transformation: 'Elements' |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ID","title":"ID","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"TotalInventoryLevels","title":"TotalInventoryLevels","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"TotalInventoryLevels"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Level","title":"Level","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Level"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsProductCategory","title":"IsProductCategory","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IsProductCategory"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"ç©æç¼ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"MaterialType","title":"ç©æç±»å","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"MaterialType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"MaterialName","title":"ç©æåç§°","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"MaterialName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit","title":"åä½","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Unit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NeedQty","title":"éæ±æ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"NeedQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NeedDate","title":"éæ±æ¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"NeedDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrgCode","title":"ç»ç»ä»£ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrgCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockPoint","title":"åºåç¹","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockPoint"}}]' |
| | | ContextMenu: 'listContextMenu892' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | [ |
| | | NumberOfColumns: 15 |
| | | PlaceHolder: 'æ¨¡ç³æç´¢' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component btn_Query_FM |
| | |
| | | [ |
| | | Image: 'VIEW' |
| | | Label: 'æ¥è¯¢' |
| | | Taborder: 2 |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component btn_Add_FM |
| | |
| | | [ |
| | | Image: 'ADD2' |
| | | Label: 'æ°å¢åç¾/ææ' |
| | | Taborder: 3 |
| | | Taborder: 4 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
| | | ResponseDefinition OnClick id:Responsedef_Panel418_btn_Add_FM_OnClick |
| | | { |
| | | #keys: '[414724.0.145266825]' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[271.0.74853915]' |
| | | Binding: 'List832.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | | Component ds_Month_FM |
| | | { |
| | | #keys: '[414724.0.148121614]' |
| | | BaseType: 'WebDateSelector' |
| | | Properties: |
| | | [ |
| | | DateFormat: 'YMM' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: List832 |
| | | Response OnDoubleClick ( |
| | | H_MaterialInfo selection |
| | | ) id:Response_List832_OnDoubleClick |
| | | { |
| | | #keys: '[414724.0.160542461]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebList_OnDoubleClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( not isnull( selection)) |
| | | { |
| | | if(selection.MaterialType()="åæå") |
| | | { |
| | | OrderCode:=""; |
| | | if( txtSaveForecastData_FM.Text().Length()>0) |
| | | { |
| | | JForecast := JSON::Parse( txtSaveForecastData_FM.Text()); |
| | | OrderCode := JForecast.Get( "OrderCode").GetString(); |
| | | } |
| | | jResult := H_FunctionClass::SM_GetMaterialData( MacroPlan,selection.SKU(),selection.NeedQty(), OrderCode,"-",selection.NeedDate()); |
| | | if(jResult.Get( "Status").GetBoolean()) |
| | | { |
| | | de_dh_FM_ProductMP.FixedFilter( "object.ParentSKU() = " + selection.SKU().AsQUILL() |
| | | + " and object.ForecastID() = " + OrderCode.AsQUILL() |
| | | ); |
| | | } |
| | | else |
| | | { |
| | | WebMessageBox::Warning( jResult.Get( "Msg").GetString()); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | // å¼¹åºç©æåç¾ææ |
| | | } |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | #parent: #root |
| | | Response OnCreated () id:Response_FrmMaterial_OnCreated |
| | | { |
| | | #keys: '[414724.0.93205703]' |
| | | #keys: '[414724.0.118802220]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | ds_Month_FM.Date(Date::ActualDate()); |
| | | txtSaveForecastData_FM.Text(""); |
| | | // è·åéæ©åçSKU |
| | | SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect"); |
| | | if(not isnull( SelectItem) and SelectItem.Value().Length()>0) |
| | | if(not isnull( SelectItem)) |
| | | { |
| | | StrValue := SelectItem.Value().Tokenize( ";"); |
| | | lb_SUK_FM.Text(StrValue.Element( 0)); |
| | | de_dh_FM_ProductMP.FixedFilter( "object.ParentID()="+lb_SUK_FM.Text()); |
| | | if( SelectItem.ValueJsonString().Length()>0) |
| | | { |
| | | txtSaveForecastData_FM.Text( SelectItem.ValueJsonString()); |
| | | JSelect := JSON::Parse( SelectItem.ValueJsonString()); |
| | | lb_SUK_FM.Text(JSelect.Get( "SKU").GetString()); |
| | | de_dh_FM_ProductMP.FixedFilter( "object.ParentSKU() = " + JSelect.Get( "SKU").GetString().AsQUILL() |
| | | + " and object.ForecastID() = " + JSelect.Get( "OrderCode").GetString().AsQUILL() |
| | | ); |
| | | } |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Panel418/btn_Add_FM |
| | | Response OnClick ( |
| | | H_MaterialInfo selection |
| | | ) id:Response_Panel418_btn_Add_FM_OnClick_975 |
| | | { |
| | | #keys: '[414724.0.145238844]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /Panel418/Responsedef_Panel418_btn_Add_FM_OnClick |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmMaterial" and Obj.ItemKey()="ListSelect"); |
| | | CustomCode:=""; |
| | | CustomName:=""; |
| | | SValue:=""; |
| | | SValueJsonString:=""; |
| | | // è·å客æ·åç§°å客æ·ID |
| | | if(txtSaveForecastData_FM.Text().Length()>0) |
| | | { |
| | | jForecast := JSON::Parse( txtSaveForecastData_FM.Text()); |
| | | CustomCode := jForecast.Get( "CustomCode").GetString(); |
| | | CustomName := jForecast.Get( "CustomName").GetString(); |
| | | } |
| | | if(not isnull(selection)) |
| | | { |
| | | SValueJsonString:= JSON::Object().Add( "SKU",selection.SKU()) |
| | | .Add( "MaterialName",selection.MaterialName()) |
| | | .Add( "MaterialType",selection.MaterialType()) |
| | | .Add( "OrgCode",selection.OrgCode()) |
| | | .Add( "Unit",selection.Unit()) |
| | | .Add( "CustomCode",CustomCode) |
| | | .Add( "ParentSKU",lb_SUK_FM.Text()) |
| | | .Add( "CustomName",CustomName).Build().AsString(); |
| | | } |
| | | if( isnull( SelectItem)) |
| | | { |
| | | MacroPlan.H_MessagePassing(relnew,FKey := "FrmMaterial",ItemKey := "ListSelect", Value:=SValue,ValueJsonString:=SValueJsonString); |
| | | } |
| | | else |
| | | { |
| | | SelectItem.Value(SValue); |
| | | SelectItem.ValueJsonString( SValueJsonString); |
| | | } |
| | | Application.OpenForm( "FrmAuthorizeAndCountersign_Material","modal"); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | de_dh_FM_ProductMP.FixedFilter( "object.ID().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" ); |
| | | // + " or " + "object.SKU().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" |
| | | // + " or " + "object.CustomerCode().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" |
| | | // + " or " + "object.CustomerName().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" ); |
| | | de_dh_FM_ProductMP.FixedFilter( "( object.SKU().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" |
| | | + " or " + "object.MaterialType().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" |
| | | + " or " + "object.MaterialName().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" |
| | | + " or " + "object.Unit().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" |
| | | + " or " + "object.OrgCode().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" |
| | | + " or " + "object.StockPoint().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" |
| | | + " or " + "object.Unit().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " ))" |
| | | + " and " + "( object.NeedDate() < " + ds_Month_FM.Date().StartOfNextMonth().AsQUILL() |
| | | + " and " + "object.NeedDate() >= " + ds_Month_FM.Date().StartOfMonth().AsQUILL() + " )" |
| | | |
| | | ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | { |
| | | #keys: '[414724.0.53475285]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[Product_MP]*' |
| | | Databinding: 'structured[H_MaterialInfo]*' |
| | | Children: |
| | | [ |
| | | Component de_dh_FM_ProductMP |
| | |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'Product_MP' |
| | | Transformation: 'H_MaterialInfo' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component txtSaveForecastData_FM |
| | | { |
| | | #keys: '[414724.0.143737386]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | Description: 'å卿éç©æä¿¡æ¯' |
| | | Enabled: false |
| | | ReadOnly: true |
| | | Taborder: 4 |
| | | Visible: false |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: 'åæå表页' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | MinimumColumns: 80 |
| | | MinimumRows: 40 |
| | | Title: 'åæå表页' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component Panel351 |
| | | { |
| | | #keys: '[414724.0.115504403]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component btn_Add_Order_FOF449 |
| | | { |
| | | #keys: '[414724.0.115504404]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Description: 'è®¢åæ°å¢åç¾/ææ' |
| | | Label: 'è®¢åæ°å¢åç¾/ææ' |
| | | Taborder: 1 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
| | | ResponseDefinition OnClick id:Responsedef_Panel351_btn_Add_Order_FOF449_OnClick |
| | | { |
| | | #keys: '[414724.0.141224456]' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[271.0.41037309]' |
| | | Binding: 'liH_Forecast.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | | Component btn_Add_Material_FOF503 |
| | | { |
| | | #keys: '[414724.0.115504405]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Description: 'åææ°å¢åç¾/ææ' |
| | | Label: 'åææ°å¢åç¾/ææ' |
| | | Taborder: 2 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
| | | ResponseDefinition OnClick id:Responsedef_Panel351_btn_Add_Material_FOF503_OnClick |
| | | { |
| | | #keys: '[414724.0.145304022]' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[271.0.68431130]' |
| | | Binding: 'liH_Forecast.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | | Component btn_InitialData778 |
| | | { |
| | | #keys: '[414724.0.115504406]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Description: 'å è½½æ°æ®ï¼åçï¼åç»éè¦å¯¹æ¥æ°æ®ï¼' |
| | | Label: 'å è½½é¢æµè®¢åæ°æ®' |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
| | | Component btn_OrderH_FOF |
| | | { |
| | | #keys: '[414724.0.165490408]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Description: 'ERO订åå²å' |
| | | Image: 'AMMUNITION_BOX_CLOSED' |
| | | Label: 'ERP订åå²å' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | |
| | | MinimumColumns: 80 |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | Description: 'å è½½æ°æ®ï¼åçï¼åç»éè¦å¯¹æ¥æ°æ®ï¼' |
| | | Label: 'å è½½é¢æµè®¢åæ°æ®' |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
| | | ] |
| | |
| | | [ |
| | | Alignment: 'trailing' |
| | | FixedSize: true |
| | | MinimumColumns: 20 |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | ] |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: 'å·²ç»éèï¼ææªä½¿ç¨' |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderCode","title":"OrderCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKU","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastQty","title":"ForecastQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NeedTime","title":"NeedTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"NeedTime"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Util","title":"Util","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Util"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomName","title":"CustomName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Department","title":"Department","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Department"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderCode","title":"订åç¼å·","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKUç¼ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastQty","title":"颿µæ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NeedTime","title":"éæ±æ¶é´","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"NeedTime"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Util","title":"åä½","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Util"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomName","title":"客æ·åç§°","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Department","title":"éå®é¨é¨","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Department"}}]' |
| | | ContextMenu: 'listContextMenu367' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 6 |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | Taborder: 5 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | if( not isnull( SelectItem)) |
| | | { |
| | | SelectItem.Value(""); |
| | | SelectItem.ValueJsonString(""); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | |
| | | [* |
| | | // åå§åæ¥è¯¢åæ°æä»½ |
| | | ds_Month_FOF.Date(Date::ActualDate()); |
| | | // 颿µæ°æ®2æ¤å¤çï¼çé+客æ·åç§°æåï¼ |
| | | if( MacroPlan.H_Forecast(relget ).Size()>0) |
| | | // åå§å颿µæ°æ® |
| | | JResult := H_FunctionClass::SM_InitialForcastData( MacroPlan); |
| | | if(not JResult.Get( "Status").GetBoolean()) |
| | | { |
| | | MacroPlan.H_Forecast(relget ).Delete( 0,MacroPlan.H_Forecast(relget ).Size()-1); |
| | | WebMessageBox::Warning( JResult.Get( "Msg").GetString()); |
| | | } |
| | | //AllData:= selectset( MacroPlan, Product_MP.SalesDemand.astype( Forecast ),object,object.EndDate().DateTime().Date() >= Date::ActualDate().StartOfMonth() |
| | | // and object.EndDate().DateTime().Date() <= Date::ActualDate().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth() |
| | | // and object.Quantity()>0 ); |
| | | // |
| | | //CustomName:=""; |
| | | //DepartMent:=""; |
| | | //idx:=0; |
| | | //traverse( AllData,Elements,Obj,not isnull(Obj)) |
| | | //{ |
| | | // idx:=Obj.SalesSegmentName().FindString( "_",0); |
| | | // if(idx>0) |
| | | // { |
| | | // DepartMent:=Obj.SalesSegmentName().SubString( 0,idx+1); |
| | | // CustomName := Obj.SalesSegmentName().SubString( idx+1, Obj.SalesSegmentName().Length() - (idx+1)); |
| | | // } |
| | | // else |
| | | // { |
| | | // CustomName :=Obj.SalesSegmentName(); |
| | | // } |
| | | // |
| | | // ArrayData:=Obj.SalesSegmentName().SubString( 0,Obj.SalesSegmentName().FindString( "_",0)+1); |
| | | // MacroPlan.H_Forecast(relnew,OrderCode := H_FunctionClass::SM_GenerateID( "OF"), |
| | | // SKU := Obj.ProductID(), |
| | | // CustomCode := CustomName, |
| | | // CustomName := CustomName, |
| | | // Util:=Obj.UnitOfMeasureName(), |
| | | // NeedTime:=Obj.EndDate(), |
| | | // ForecastQty:=[Number]Obj.Quantity().Round( 0), |
| | | // Department:=DepartMent); |
| | | //} |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Panel351/btn_Add_Material_FOF503 |
| | | Response OnClick ( |
| | | H_Forecast selection |
| | | ) id:Response_Panel351_btn_Add_Material_FOF503_OnClick_222 |
| | | { |
| | | #keys: '[414724.0.145178766]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /Panel351/Responsedef_Panel351_btn_Add_Material_FOF503_OnClick |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( not isnull( selection)) |
| | | { |
| | | SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect"); |
| | | if( isnull( SelectItem)) |
| | | { |
| | | MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect", |
| | | Value := selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName(), |
| | | ValueJsonString := JSON::Object().Add( "SKU",selection.SKU()) |
| | | .Add( "Util",selection.Util()) |
| | | .Add( "CustomCode",selection.CustomCode()) |
| | | .Add( "CustomName",selection.CustomName()) |
| | | .Add( "ForecastQty",selection.ForecastQty()) |
| | | .Add( "NeedTime",selection.NeedTime().AsQUILL()) |
| | | .Add( "OrderCode",selection.OrderCode()).Build().AsString()); |
| | | } |
| | | else |
| | | { |
| | | SelectItem.Value(selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName()); |
| | | SelectItem.ValueJsonString(JSON::Object().Add( "SKU",selection.SKU()) |
| | | .Add( "Util",selection.Util()) |
| | | .Add( "CustomCode",selection.CustomCode()) |
| | | .Add( "CustomName",selection.CustomName()) |
| | | .Add( "ForecastQty",selection.ForecastQty()) |
| | | .Add( "NeedTime",selection.NeedTime().AsQUILL()) |
| | | .Add( "OrderCode",selection.OrderCode()).Build().AsString()); |
| | | } |
| | | |
| | | jResult := H_FunctionClass::SM_GetMaterialData( MacroPlan,selection.SKU(),selection.ForecastQty(),selection.OrderCode(),"-",selection.NeedTime()); |
| | | if(jResult.Get( "Status").GetBoolean()) |
| | | { |
| | | Application.OpenForm( "FrmMaterial","popout"); |
| | | } |
| | | else |
| | | { |
| | | WebMessageBox::Warning( jResult.Get( "Msg").GetString()); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | WebMessageBox::Information( "è¯·éæ©ä¸é¡¹é¢æµååç¹å»æé®ï¼"); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Panel351/btn_Add_Order_FOF449 |
| | | Response OnClick ( |
| | | H_Forecast selection |
| | | ) id:Response_Panel351_btn_Add_Order_FOF449_OnClick_880 |
| | | { |
| | | #keys: '[414724.0.141244111]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /Panel351/Responsedef_Panel351_btn_Add_Order_FOF449_OnClick |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( not isnull( selection)) |
| | | { |
| | | SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect"); |
| | | if( isnull( SelectItem)) |
| | | { |
| | | MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect", |
| | | Value := selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName(), |
| | | ValueJsonString := JSON::Object().Add( "SKU",selection.SKU()) |
| | | .Add( "Util",selection.Util()) |
| | | .Add( "CustomCode",selection.CustomCode()) |
| | | .Add( "CustomName",selection.CustomName()).Build().AsString()); |
| | | } |
| | | else |
| | | { |
| | | SelectItem.Value(selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName()); |
| | | SelectItem.ValueJsonString(JSON::Object().Add( "SKU",selection.SKU()) |
| | | .Add( "Util",selection.Util()) |
| | | .Add( "CustomCode",selection.CustomCode()) |
| | | .Add( "CustomName",selection.CustomName()).Build().AsString()); |
| | | } |
| | | Application.OpenForm( "FrmAuthorizeAndCountersign_Order","modal"); |
| | | } |
| | | else |
| | | { |
| | | WebMessageBox::Information( "è¯·éæ©ä¸é¡¹é¢æµååç¹å»æé®ï¼"); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Panel351/btn_InitialData778 |
| | | Response OnClick () id:Response_Panel351_btn_InitialData778_OnClick_971 |
| | | { |
| | | #keys: '[414724.0.141222418]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | //// 没æç¨çæé®å彿°ï¼åªä¸ºäºæµè¯çæåæ°æ®ã |
| | | //StrCustoms:="XM_2023,å°ç±³;HW_2023,å为;OV_2023,VIVO;OP_2023,OPPO;HX_2023,æµ·ä¿¡;YJ_2023,ä¸å ;HE_2023,æµ·å°;GL_2023,æ ¼å;"; |
| | | //ArrayCustom := StrCustoms.Tokenize( ";"); //8ä¸ªå®¢æ· |
| | | //idx :=0; |
| | | //for( i:=0;i<20;i:=i+1) |
| | | //{ |
| | | // idx :=Number::Random( 0,7); |
| | | // arrCustomInfo := ArrayCustom.Element( idx).Tokenize( ","); |
| | | // MacroPlan.H_Forecast(relnew, CustomName := arrCustomInfo.Element( 1),CustomCode := arrCustomInfo.Element( 0),ForecastQty := Number::Random( 100,5000), |
| | | // Department := "éå®1é¨",NeedTime := Date::ActualDate(),OrderCode := H_FunctionClass::SM_GenerateID( "OF") ,SKU := "SKU-CP-2023-N"+(Number::Random( 1000,9999)).AsQUILL(),Util := "PCS"); |
| | | // |
| | | //} |
| | | //// çæé¢æµ 宿¶æ°æ®ï¼åç¾æ°æ®ï¼æææ°æ®ï¼åç¾ ææé»è®¤ä¸º0ï¼å¯¹èªå¨å建ï¼è¿éä¸åæ·»å ï¼ |
| | | // traverse(MacroPlan,H_Forecast ,Obj,not isnull(Obj) ) |
| | | //{ |
| | | // MacroPlan.H_OrderForecastRealQty(relnew,CustomID := Obj.CustomCode(),CustomName := Obj.CustomName(),ForecatsQty := Obj.ForecastQty(), |
| | | // ForecatsRealQty := Obj.ForecastQty(),ID := H_FunctionClass::SM_GenerateID( "OF"),Month := Date::ActualDate(), |
| | | // OrderCode := Obj.OrderCode(),SKU := Obj.SKU(),Unit := Obj.Util()); |
| | | // |
| | | //} |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Panel351/btn_OrderH_FOF |
| | | Response OnClick () id:Response_Panel351_btn_OrderH_FOF_OnClick |
| | | { |
| | | #keys: '[414724.0.166610329]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | H_FunctionClass::SM_OrderHedging( MacroPlan,true,"System","ERP订å"); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect"); |
| | | if(not isnull( SelectItem) and SelectItem.Value().Length()>0) |
| | | { |
| | | Application.OpenForm( "FrmAuthorizeAndCountersign","popout"); |
| | | Application.OpenForm( "FrmAuthorizeAndCountersign_Order","popout"); |
| | | } |
| | | else |
| | | { |
| | |
| | | SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect"); |
| | | if( isnull( SelectItem)) |
| | | { |
| | | MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect",Value := ""); |
| | | MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect", |
| | | Value := selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName(), |
| | | ValueJsonString := JSON::Object().Add( "SKU",selection.SKU()) |
| | | .Add( "Util",selection.Util()) |
| | | .Add( "CustomCode",selection.CustomCode()) |
| | | .Add( "CustomName",selection.CustomName()) |
| | | .Add( "ForecastQty",selection.ForecastQty()) |
| | | .Add( "NeedTime",selection.NeedTime().AsQUILL()) |
| | | .Add( "OrderCode",selection.OrderCode()).Build().AsString()); |
| | | } |
| | | else |
| | | { |
| | | SelectItem.Value(selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName()); |
| | | SelectItem.ValueJsonString(JSON::Object().Add( "SKU",selection.SKU()) |
| | | .Add( "Util",selection.Util()) |
| | | .Add( "CustomCode",selection.CustomCode()) |
| | | .Add( "CustomName",selection.CustomName()) |
| | | .Add( "ForecastQty",selection.ForecastQty()) |
| | | .Add( "NeedTime",selection.NeedTime().AsQUILL()) |
| | | .Add( "OrderCode",selection.OrderCode()).Build().AsString()); |
| | | } |
| | | |
| | | jResult := H_FunctionClass::SM_GetMaterialData( MacroPlan,selection.SKU(),selection.ForecastQty(),selection.OrderCode(),"-",selection.NeedTime()); |
| | | if(jResult.Get( "Status").GetBoolean()) |
| | | { |
| | | Application.OpenForm( "FrmMaterial","popout"); |
| | | } |
| | | else |
| | | { |
| | | WebMessageBox::Warning( jResult.Get( "Msg").GetString()); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | #child: Panel961 |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component dh_FOF_H_Forecast |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 5 |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | #child: liH_Forecast |
| | | #child: Panel351 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: '订å颿µé¡µé¢' |
| | | Image: 'GOLDFISH' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: '颿µå表页' |
| | | ] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderCode","title":"OrderCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKU","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderQty","title":"OrderQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReverseQty","title":"ReverseQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReverseQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"AuthorizeQty","title":"AuthorizeQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"AuthorizeQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastQty","title":"ForecastQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastHitQty","title":"ForecastHitQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastNoHitQty","title":"ForecastNoHitQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastNoHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerName","title":"CustomerName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerCode","title":"CustomerCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerCode"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderCode","title":"订åç¼å·","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKUç¼ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderQty","title":"æ°å¢è®¢å","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReverseQty","title":"åç¾","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReverseQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"AuthorizeQty","title":"ææ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"AuthorizeQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastQty","title":"颿µ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastHitQty","title":"æé¢æµ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastNoHitQty","title":"æ 颿µ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastNoHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerName","title":"客æ·åç§°","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerCode","title":"客æ·ID","subtotals":"","tooltip":"","width":-1,"display":"hidden","editable":false,"attribute":"CustomerCode"}}]' |
| | | ContextMenu: 'listContextMenu526' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | Properties: |
| | | [ |
| | | Description: '订åå²åè¿ç¨åè®¢åæ ç¾å±ç¤º' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: '订åå²åè¿ç¨åè®¢åæ ç¾å±ç¤º' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component List696 |
| | | { |
| | | #keys: '[414724.0.118276730]' |
| | | BaseType: 'WebList' |
| | | Children: |
| | | [ |
| | | Component DataExtractor838 |
| | | { |
| | | #keys: '[414724.0.118276731]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[H_MaterialHedgingResult]' |
| | | Source: 'dh_FRAS' |
| | | Taborder: 0 |
| | | Transformation: 'Elements' |
| | | ] |
| | | } |
| | | #child: listActionBarPage112 |
| | | Component DataSetLevel187 |
| | | { |
| | | #keys: '[414724.0.118276736]' |
| | | BaseType: 'WebDataSetLevel' |
| | | Children: |
| | | [ |
| | | #child: listContextMenu660 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKUç¼ç ","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"MType","title":"ç±»å","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"MType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReverseQty","title":"颿µæ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReverseQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"AuthorizeQty","title":"æææ°é","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"AuthorizeQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit","title":"åä½","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Unit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerName","title":"客æ·åç§°","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerName"}}]' |
| | | ContextMenu: 'listContextMenu660' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component Panel224 |
| | | { |
| | | #keys: '[414724.0.132480968]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ds_Month_FRAS |
| | | { |
| | | #keys: '[414724.0.132481008]' |
| | | BaseType: 'WebDateSelector' |
| | | Properties: |
| | | [ |
| | | Enabled: false |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
| | | Component txt_QueryContent_FRAS |
| | | { |
| | | #keys: '[414724.0.132481038]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | PlaceHolder: 'æ¨¡ç³æç´¢' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component btn_Query_FRAS |
| | | { |
| | | #keys: '[414724.0.132481089]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | ButtonSize: 'compact' |
| | | Image: 'VIEW' |
| | | Label: 'æ¥è¯¢' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Alignment: 'trailing' |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component Panel950 |
| | | { |
| | | #keys: '[414724.0.133671405]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component Label782 |
| | | { |
| | | #keys: '[414724.0.133671432]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | Text: 'åç¾åææå表å±ç¤ºé¡µ' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Border: true |
| | | FixedSize: true |
| | | Taborder: 0 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listActionBarPage748.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component listActionBarPage748 |
| | | Component listActionBarPage112 |
| | | { |
| | | #keys: '[414724.0.58710450]' |
| | | #keys: '[414724.0.118276733]' |
| | | BaseType: 'listActionBarPage' |
| | | Properties: |
| | | [ |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listContextMenu623.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component listContextMenu623 |
| | | Component listContextMenu660 |
| | | { |
| | | #keys: '[414724.0.58710455]' |
| | | #keys: '[414724.0.118276738]' |
| | | BaseType: 'listContextMenu' |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Response OnCreated () id:Response_FrmRAShow_OnCreated |
| | | { |
| | | #keys: '[414724.0.134602766]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | ds_Month_FRAS.Date(Date::ActualDate()); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Panel224/btn_Query_FRAS |
| | | Response OnClick () id:Response_Panel224_btn_Query_FRAS_OnClick |
| | | { |
| | | #keys: '[414724.0.135920812]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | de_dh_FRAS.FixedFilter( "object.ID().LikeUserLocale( " + txt_QueryContent_FRAS.Text().AsQUILL() + " )" |
| | | + " or " + "object.SKU().LikeUserLocale( " + txt_QueryContent_FRAS.Text().AsQUILL() + " )" |
| | | + " or " + "object.CustomerCode().LikeUserLocale( " + txt_QueryContent_FRAS.Text().AsQUILL() + " )" |
| | | + " or " + "object.CustomerName().LikeUserLocale( " + txt_QueryContent_FRAS.Text().AsQUILL() + " )" |
| | | ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | { |
| | | #keys: '[414724.0.87341476]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: List696 |
| | | Component dh_FRAS |
| | | { |
| | | #keys: '[414724.0.118276696]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[H_MaterialHedgingResult]*' |
| | | Children: |
| | | [ |
| | | Component de_dh_FRAS |
| | | { |
| | | #keys: '[414724.0.118276712]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'H_MaterialHedgingResult' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | #child: Panel950 |
| | | #child: Panel224 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: 'åæåç¾åææå±ç¤º' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: 'åç¾åææå表å±ç¤ºé¡µ' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component List212 |
| | | { |
| | | #keys: '[414724.0.153225431]' |
| | | BaseType: 'WebList' |
| | | Children: |
| | | [ |
| | | Component DataExtractor924 |
| | | { |
| | | #keys: '[414724.0.153225432]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'MappingProduct' |
| | | ] |
| | | } |
| | | #child: listActionBarPage441 |
| | | Component DataSetLevel622 |
| | | { |
| | | #keys: '[414724.0.153225437]' |
| | | BaseType: 'WebDataSetLevel' |
| | | Children: |
| | | [ |
| | | #child: listContextMenu182 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"BusinessType","title":"BusinessType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"BusinessType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CommonBusiness","title":"CommonBusiness","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CommonBusiness"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EndDate","title":"EndDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EndDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ID","title":"ID","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsCommon","title":"IsCommon","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IsCommon"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"KeyProduct","title":"KeyProduct","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"KeyProduct"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Name","title":"Name","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Name"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Notes","title":"Notes","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Notes"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductMajorType","title":"ProductMajorType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductMajorType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductSubclassType","title":"ProductSubclassType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductSubclassType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ShelfLife","title":"ShelfLife","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ShelfLife"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"UnitOfMeasureName","title":"UnitOfMeasureName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"UnitOfMeasureName"}}]' |
| | | ContextMenu: 'listContextMenu182' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
copy from _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listActionBarPage748.def
copy to _Main/UI/MacroPlannerWebApp/Component_Frm_TEST/Component_listActionBarPage441.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listActionBarPage748.def ¸´ÖÆ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listActionBarPage748 |
| | | Component listActionBarPage441 |
| | | { |
| | | #keys: '[414724.0.58710450]' |
| | | #keys: '[414724.0.153225434]' |
| | | BaseType: 'listActionBarPage' |
| | | Properties: |
| | | [ |
copy from _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listContextMenu623.def
copy to _Main/UI/MacroPlannerWebApp/Component_Frm_TEST/Component_listContextMenu182.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listContextMenu623.def ¸´ÖÆ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listContextMenu623 |
| | | Component listContextMenu182 |
| | | { |
| | | #keys: '[414724.0.58710455]' |
| | | #keys: '[414724.0.153225439]' |
| | | BaseType: 'listContextMenu' |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Button593 |
| | | Response OnClick () id:Response_Frm_TEST_Button593_OnClick |
| | | { |
| | | #keys: '[414724.0.153411735]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | HObj := H_FunctionClass::SM_GetProductInfo( MacroPlan,""); |
| | | if( not isnull( HObj)) |
| | | { |
| | | WebMessageBox::Information( HObj.BusinessType()); |
| | | } |
| | | else |
| | | { |
| | | WebMessageBox::Information( "å¾å°ç空å¼"); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Button687 |
| | | Response OnClick () id:Response_Frm_TEST_Button687_OnClick |
| | | { |
| | | #keys: '[414724.0.164341791]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | H_FunctionClass::SM_OrderHedging( MacroPlan,true,"System","ERP订å"); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent Frm_TEST |
| | | { |
| | | #keys: '[414724.0.153225415]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: List212 |
| | | Component DataHolder417 |
| | | { |
| | | #keys: '[414724.0.153253171]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[MappingProduct]*' |
| | | Children: |
| | | [ |
| | | Component DataExtractor742 |
| | | { |
| | | #keys: '[414724.0.153253184]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'MappingProduct' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component Button593 |
| | | { |
| | | #keys: '[414724.0.153411711]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'MONITOR_RGB' |
| | | Label: 'æµè¯' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component Button687 |
| | | { |
| | | #keys: '[414724.0.164341716]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Title: 'æµè¯é¡µé¢' |
| | | ] |
| | | } |
| | |
| | | { |
| | | forms |
| | | { |
| | | form_legacy_1 |
| | | form_FormOrderLockLog |
| | | { |
| | | title: 'Scenario manager' |
| | | title: 'QTIANMA_JITUAN::FormOrderLockLog' |
| | | shown: true |
| | | componentID: 'FormScenarioManager' |
| | | componentID: 'QTIANMA_JITUAN::FormOrderLockLog' |
| | | layout |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 1 |
| | | rowPosition: 14 |
| | | rowSpan: 8 |
| | | columnPosition: 1 |
| | | columnSpan: 5 |
| | | columnSpan: 12 |
| | | } |
| | | components |
| | | { |
| | | FormScenarioManager_ListScenario |
| | | FormOrderLockLog_PanelOrderLockLog |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOrderLockLog_ListOrderLockLog |
| | | { |
| | | } |
| | | FormScenarioManager_DataSetLevelScenario |
| | | FormOrderLockLog_DataSetLevelOrderLockLog |
| | | { |
| | | groupDepth: -1 |
| | | column_All_constraints |
| | | sort: 'DESC:Notes' |
| | | column_OrderID |
| | | { |
| | | columnId: 'All constraints' |
| | | dataPath: 'All constraints' |
| | | columnId: 'OrderID' |
| | | dataPath: 'OrderID' |
| | | dataType: 'string' |
| | | title: 'All constraints' |
| | | title: '订åå·' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 90 |
| | | width: 150 |
| | | } |
| | | column_Name |
| | | column_ProductID |
| | | { |
| | | columnId: 'Name' |
| | | dataPath: 'Name' |
| | | columnId: 'ProductID' |
| | | dataPath: 'ProductID' |
| | | dataType: 'string' |
| | | title: 'åç§°' |
| | | title: 'ç©æå·' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 277 |
| | | width: 150 |
| | | } |
| | | column_ChangedBy |
| | | column_SalesSegmentName |
| | | { |
| | | columnId: 'ChangedBy' |
| | | dataPath: 'ChangedBy' |
| | | columnId: 'SalesSegmentName' |
| | | dataPath: 'SalesSegmentName' |
| | | dataType: 'string' |
| | | title: 'Changed by' |
| | | title: 'éå®é¨é¨' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 106 |
| | | width: 150 |
| | | } |
| | | column_ChangedOn |
| | | column_StockingPointID |
| | | { |
| | | columnId: 'ChangedOn' |
| | | dataPath: 'ChangedOn' |
| | | dataType: 'datetime' |
| | | title: 'Changed on' |
| | | index: 3 |
| | | subtotals: '' |
| | | width: 99 |
| | | } |
| | | column_StorageMode |
| | | { |
| | | columnId: 'StorageMode' |
| | | dataPath: 'StorageMode' |
| | | columnId: 'StockingPointID' |
| | | dataPath: 'StockingPointID' |
| | | dataType: 'string' |
| | | title: 'StorageMode' |
| | | index: 4 |
| | | subtotals: '' |
| | | width: 40 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_legacy_2 |
| | | { |
| | | title: 'Assumptions' |
| | | shown: true |
| | | componentID: 'FormAssumptions' |
| | | layout |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 9 |
| | | rowSpan: 8 |
| | | columnPosition: 1 |
| | | columnSpan: 5 |
| | | } |
| | | components |
| | | { |
| | | FormAssumptions_ListAssumptions |
| | | { |
| | | } |
| | | FormAssumptions_DataSetLevelAssumptions |
| | | { |
| | | groupDepth: -1 |
| | | column_All_constraints |
| | | { |
| | | columnId: 'All constraints' |
| | | dataPath: 'All constraints' |
| | | dataType: 'string' |
| | | title: 'All constraints' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 32 |
| | | } |
| | | column_Category |
| | | { |
| | | columnId: 'Category' |
| | | dataPath: 'Category' |
| | | dataType: 'string' |
| | | title: 'ç±»å«' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 108 |
| | | } |
| | | column_Importance |
| | | { |
| | | columnId: 'Importance' |
| | | dataPath: 'Importance' |
| | | dataType: 'string' |
| | | title: 'éè¦æ§' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 110 |
| | | } |
| | | column_Title |
| | | { |
| | | columnId: 'Title' |
| | | dataPath: 'Title' |
| | | dataType: 'string' |
| | | title: 'æ é¢' |
| | | title: 'åºåç¹' |
| | | index: 3 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_ChangedBy |
| | | column_CustomerName |
| | | { |
| | | columnId: 'ChangedBy' |
| | | dataPath: 'ChangedBy' |
| | | columnId: 'CustomerName' |
| | | dataPath: 'CustomerName' |
| | | dataType: 'string' |
| | | title: 'Changed by' |
| | | title: '客æ·åç§°' |
| | | index: 4 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_CreatedOn |
| | | column_Quantity |
| | | { |
| | | columnId: 'CreatedOn' |
| | | dataPath: 'CreatedOn' |
| | | dataType: 'datetime' |
| | | title: 'Created on' |
| | | columnId: 'Quantity' |
| | | dataPath: 'Quantity' |
| | | dataType: 'real' |
| | | index: 5 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_FormScenariosKPIsComparison |
| | | column_UnitOfMeasureName |
| | | { |
| | | title: 'QLibMacroPlannerWebUI::FormScenariosKPIsComparison' |
| | | columnId: 'UnitOfMeasureName' |
| | | dataPath: 'UnitOfMeasureName' |
| | | dataType: 'string' |
| | | title: 'åä½' |
| | | index: 6 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Price |
| | | { |
| | | columnId: 'Price' |
| | | dataPath: 'Price' |
| | | dataType: 'real' |
| | | title: 'éå®é¢' |
| | | index: 7 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_EndDate |
| | | { |
| | | columnId: 'EndDate' |
| | | dataPath: 'EndDate' |
| | | dataType: 'date' |
| | | title: '客æ·éæ±æ¶é´' |
| | | index: 8 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_IsLocked |
| | | { |
| | | columnId: 'IsLocked' |
| | | dataPath: 'IsLocked' |
| | | dataType: 'boolean' |
| | | title: 'ç¶æ' |
| | | index: 9 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_End |
| | | { |
| | | columnId: 'End' |
| | | dataPath: 'End' |
| | | dataType: 'date' |
| | | title: '计åäº¤ä»æ¶é´' |
| | | index: 10 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_LastModify |
| | | { |
| | | columnId: 'LastModify' |
| | | dataPath: 'LastModify' |
| | | dataType: 'string' |
| | | title: 'æåæä½äºº' |
| | | index: 11 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_LastModifyTime |
| | | { |
| | | columnId: 'LastModifyTime' |
| | | dataPath: 'LastModifyTime' |
| | | dataType: 'datetime' |
| | | title: 'æåæä½æ¶é´' |
| | | index: 12 |
| | | subtotals: '' |
| | | width: 145 |
| | | } |
| | | column_Notes |
| | | { |
| | | columnId: 'Notes' |
| | | dataPath: 'Notes' |
| | | dataType: 'string' |
| | | title: 'æä½è¯¦æ
' |
| | | index: 13 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_FormOrderLock |
| | | { |
| | | title: 'QTIANMA_JITUAN::FormOrderLock' |
| | | shown: true |
| | | componentID: 'QLibMacroPlannerWebUI::FormScenariosKPIsComparison' |
| | | componentID: 'QTIANMA_JITUAN::FormOrderLock' |
| | | layout |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 1 |
| | | rowSpan: 16 |
| | | columnPosition: 6 |
| | | columnSpan: 7 |
| | | rowSpan: 13 |
| | | columnPosition: 1 |
| | | columnSpan: 12 |
| | | } |
| | | components |
| | | { |
| | | FormScenariosKPIsComparison_MatrixEditorFinancialKPIs |
| | | FormOrderLock_PanelOrderLock |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOrderLock_PanelOrderLockHeader |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOrderLock_PanelOrderLockOrder |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOrderLock_ListOrderLock |
| | | { |
| | | } |
| | | FormOrderLock_DataSetLevelOrderLock |
| | | { |
| | | groupDepth: -1 |
| | | sort: 'StartDate' |
| | | column_OrderID |
| | | { |
| | | columnId: 'OrderID' |
| | | dataPath: 'OrderID' |
| | | dataType: 'string' |
| | | title: '订åå·' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_ProductID |
| | | { |
| | | columnId: 'ProductID' |
| | | dataPath: 'ProductID' |
| | | dataType: 'string' |
| | | title: 'ç©æå·' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_SalesSegmentName |
| | | { |
| | | columnId: 'SalesSegmentName' |
| | | dataPath: 'SalesSegmentName' |
| | | dataType: 'string' |
| | | title: 'éå®é¨é¨' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_StockingPointID |
| | | { |
| | | columnId: 'StockingPointID' |
| | | dataPath: 'StockingPointID' |
| | | dataType: 'string' |
| | | title: 'åºåç¹' |
| | | index: 3 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_CustomerName |
| | | { |
| | | columnId: 'CustomerName' |
| | | dataPath: 'CustomerName' |
| | | dataType: 'string' |
| | | title: '客æ·åç§°' |
| | | index: 4 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Quantity |
| | | { |
| | | columnId: 'Quantity' |
| | | dataPath: 'Quantity' |
| | | dataType: 'real' |
| | | index: 5 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_UnitOfMeasureName |
| | | { |
| | | columnId: 'UnitOfMeasureName' |
| | | dataPath: 'UnitOfMeasureName' |
| | | dataType: 'string' |
| | | title: 'åä½' |
| | | index: 6 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_Price |
| | | { |
| | | columnId: 'Price' |
| | | dataPath: 'Price' |
| | | dataType: 'real' |
| | | title: 'éå®é¢' |
| | | index: 7 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_StartDate |
| | | { |
| | | columnId: 'StartDate' |
| | | dataPath: 'StartDate' |
| | | dataType: 'date' |
| | | title: '客æ·éæ±æ¶é´' |
| | | index: 8 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_IsLocked |
| | | { |
| | | columnId: 'IsLocked' |
| | | dataPath: 'IsLocked' |
| | | dataType: 'boolean' |
| | | title: 'ç¶æ' |
| | | index: 9 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_First_AsPlanningBaseSalesDemandInPeriod_End |
| | | { |
| | | columnId: 'First.AsPlanningBaseSalesDemandInPeriod.End' |
| | | dataPath: 'First.AsPlanningBaseSalesDemandInPeriod.End' |
| | | dataType: 'datetime' |
| | | title: '计åäº¤ä»æ¶é´' |
| | | index: 10 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_LastModify |
| | | { |
| | | columnId: 'LastModify' |
| | | dataPath: 'LastModify' |
| | | dataType: 'string' |
| | | title: 'æåæä½äºº' |
| | | index: 11 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | column_LastModifyTime |
| | | { |
| | | columnId: 'LastModifyTime' |
| | | dataPath: 'LastModifyTime' |
| | | dataType: 'datetime' |
| | | title: 'æåæä½æ¶é´' |
| | | index: 12 |
| | | subtotals: '' |
| | | width: 150 |
| | | } |
| | | } |
| | | FormOrderLock_PanelOrderLockPlanning |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOrderLock_PanelMatrix |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormOrderLock_MatrixEditorProductPlanning |
| | | { |
| | | gridColor: '#c4c4c4' |
| | | totalHeaderWidth: 200 |
| | | attributeHeaderWidthRatio: 0.6 |
| | | nameHeaderWidthRatio: 0.4 |
| | | totalHeaderWidth: 427 |
| | | attributeHeaderWidthRatio: 0.325989701966572 |
| | | nameHeaderWidthRatio: 0.674010298033429 |
| | | columnWidth: 100 |
| | | horizontalGrid: true |
| | | verticalGrid: true |
| | | backendState |
| | | { |
| | | componentId: 'QLibMacroPlannerWebUI::FormScenariosKPIsComparison.MatrixEditorFinancialKPIs' |
| | | componentId: 'QTIANMA_JITUAN::FormOrderLock.MatrixEditorProductPlanning' |
| | | state |
| | | { |
| | | cells |
| | | { |
| | | attributes |
| | | { |
| | | attribute_DisplayValue |
| | | attribute_DisplaySupplyQuantity |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 0 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'DisplayValue' |
| | | attribute: 'DisplaySupplyQuantity' |
| | | } |
| | | attribute_DependentDemandAndSalesDemandQuantity |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 1 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'DependentDemandAndSalesDemandQuantity' |
| | | } |
| | | attribute_TargetInventoryLevel |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 2 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'TargetInventoryLevel' |
| | | } |
| | | attribute_InventoryLevelEnd |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 3 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'InventoryLevelEnd' |
| | | } |
| | | attribute_StockLevelInDays |
| | | { |
| | | type: 'MatrixEditorWebApiCellDataModelInterest' |
| | | index: 4 |
| | | rowsubtotal: '' |
| | | columnsubtotal: '' |
| | | attribute: 'StockLevelInDays' |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | sorting |
| | | { |
| | | criteria: '' |
| | | criteria: "datamember:'Start'" |
| | | } |
| | | } |
| | | rows |
| | | { |
| | | sorting |
| | | { |
| | | criteria: "datamember:'KPISetting.DisplayIndex'" |
| | | criteria: "datamember:'Product_MP.DisplayIndex';datamember:'Name'" |
| | | } |
| | | } |
| | | } |
| | |
| | | userconfigurableinformation |
| | | { |
| | | } |
| | | index: 2 |
| | | image: 'DOCUMENT_LOCK' |
| | | page: 'applicationDevelopmentActionBarPageDef' |
| | | group: '' |
| | | index: 2 |
| | | image: 'DOCUMENT_LOCK' |
| | | description: '' |
| | | } |
| | | formatversion: 2 |
| | |
| | | ProjectProperties |
| | | { |
| | | ApplicationComponentName: 'ApplicationMacroPlanner' |
| | | BuildVersion: '2022.3.0.113' |
| | | BuildVersion: '2022.3.0.32' |
| | | Description: 'Quintiq Macro Planner' |
| | | ProjectKind: 'WebClient' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | { |
| | | SelectableAttributes |
| | | { |
| | | ID |
| | | { |
| | | attribute: 'ID' |
| | | isactive: true |
| | | } |
| | | IsLocked |
| | | { |
| | | attribute: 'IsLocked' |
| | | isactive: true |
| | | } |
| | | } |
| | | meta_ |
| | | { |
| | | type: 'CustomerOrder' |
| | | } |
| | | } |