Merge branch 'dev' of http://47.101.211.7:10101/r/TIANMA_JITUAN into dev_lhj
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation ManufactureLTImputation_GlobalOTDTable_GlobalOTDTable_ManufactureLTImputation |
| | | { |
| | | #keys: '1[414384.0.964611377]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide GlobalOTDTable |
| | | { |
| | | #keys: '3[414384.0.964611379][414384.0.964611378][414384.0.964611380]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: ManufactureLTImputation |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide ManufactureLTImputation |
| | | { |
| | | #keys: '3[414384.0.964611382][414384.0.964611381][414384.0.964611383]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: GlobalOTDTable |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
| | |
| | | productCodeList := selectuniquevalues( macroPlan, Product_MP, item, item.ID() ); |
| | | debuginfo( "productCodeList : " + [String]productCodeList.Size() ); |
| | | |
| | | this.Global_MappingAnnualBudgetData( relflush ); |
| | | if( this.Global_MappingAnnualBudgetData( relsize ) = 0 ) { |
| | | debuginfo( "create Global_MappingAnnualBudgetData test data" ); |
| | | id := 1; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method InitTestDataByYear ( |
| | | MacroPlan macroPlan, |
| | | CapacityAndSaleBudgeFilterYears years |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Oct-7-2023 (created) |
| | | productCodeList := selectuniquevalues( macroPlan, Product_MP, item, item.ID() ); |
| | | debuginfo( "productCodeList : " + [String]productCodeList.Size() ); |
| | | |
| | | this.Global_MappingAnnualBudgetData( relflush ); |
| | | debuginfo( "create Global_MappingAnnualBudgetData test data" ); |
| | | id := 1; |
| | | traverse( years, Elements, year ) { |
| | | for( i := 1; i <= productCodeList.Size(); i := i + 1 ) { |
| | | productCode := productCodeList.Element( i - 1 ); |
| | | mappingAnnualBudget := this.Global_MappingAnnualBudgetData( relnew, |
| | | ID := [String]id, |
| | | YearNo := [String]year.YearNo(), |
| | | BusinessType := "äºä¸é¨" + [String](productCode.Length() mod 3), |
| | | ProductID := productCode); |
| | | id := id + 1; |
| | | mappingAnnualBudget.MonthlyModCapacity1( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlyModCapacity2( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlyModCapacity3( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlyModCapacity4( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlyModCapacity5( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlyModCapacity6( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlyModCapacity7( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlyModCapacity8( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlyModCapacity9( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlyModCapacity10( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlyModCapacity11( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlyModCapacity12( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity1( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity2( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity3( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity4( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity5( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity6( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity7( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity8( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity9( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity10( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity11( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySheetCapacity12( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales1( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales2( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales3( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales4( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales5( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales6( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales7( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales8( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales9( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales10( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales11( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | mappingAnnualBudget.MonthlySales12( [String]Real::Random( 20000.0, 30000.0 ) ); |
| | | } |
| | | } |
| | | result2 := selectset( this, Global_MappingAnnualBudgetData, item, true ); |
| | | debuginfo( "test MappingAnnualBudget size : " + [String]result2.Size() ); |
| | | *] |
| | | } |
| | |
| | | MaterialType:= ObjProduct.ParentID(); |
| | | MaterialName:=ObjProduct.Name(); |
| | | } |
| | | ObjUnit:= H_FunctionClass::SM_GetUnitBySKU( Owner,Obj.ComponentCode()); |
| | | ObjUnit:= H_FunctionClass::SM_GetUnitBySKU( Owner,Obj.ComponentCode(),GlobData); |
| | | if( not isnull( ObjUnit)) |
| | | { |
| | | StockPoint:= ObjUnit.Name(); |
| | |
| | | // 没æBOM æ·»å æµè¯æ°æ® |
| | | else |
| | | { |
| | | //error( "BOM æ°æ®è·åå¤±è´¥ï¼æ æ³æ©å±åææä¿¡æ¯ï¼"); |
| | | 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 |
| | |
| | | #parent: #root |
| | | StaticMethod SM_GetUnitBySKU ( |
| | | MacroPlan Owner, |
| | | String SKU |
| | | String SKU, |
| | | GlobalOTDTable GlobData |
| | | ) as Unit |
| | | { |
| | | Description: 'éè¿SKUè·ååºåç¹ä¿¡æ¯' |
| | |
| | | Obj :=null( Unit,constcontent ); |
| | | if( not isnull( Owner) and SKU.Length()>0) |
| | | { |
| | | OrgCode := select( Owner,MappingBOM,ObjM,ObjM.ProductCode()=SKU); |
| | | OrgCode := select( GlobData,Global_MappingOperationBOM,ObjM,ObjM.ProductCode()=SKU); |
| | | if( not isnull( OrgCode)) |
| | | { |
| | | Obj := select( Owner,Unit,ObjU,ObjU.ID()= OrgCode.OrganCode()); |
| | |
| | | *å建人ï¼yunying |
| | | *å建æ¶é´ï¼20230-09-24 |
| | | *æè¿°ï¼ç³»ç»å
订åå²åè°ç¨å½æ°ï¼IsNew=trueæ¶ï¼éæ°å¤ç颿µä¿¡æ¯ï¼IsNew=falseæ¶ï¼ç¨é¢æµç´¯è®¡ä¿¡æ¯ã |
| | | *åæ°ï¼IsNew æ¯å¦æ¶æ°ç计ç®è¡¨ç¤º |
| | | * Operator æä½äºº |
| | | * OperatorType æä½ç±»å[åç¾,ææ,ERP订å]ï¼è¿éåºè¯¥æ¯ERP订å |
| | | *夿³¨ï¼å®¢æ·å
¨é¨ä½¿ç¨å®¢æ·åç§°ï¼ä¸è¦ä½¿ç¨å®¢æ·IDï¼é¢æµåå§æ°æ®æ²¡æå®¢æ·IDä¿¡æ¯ |
| | | *****************************************************************************/ |
| | | // åå§åç»æ |
| | | bStatus := false; |
| | |
| | | nHaveForecastQty :=0; //æé¢æµæ°é |
| | | nNoHaveForecastQty:=0;//äºé¢æµæ°é |
| | | OrderQuantity := 0; //å©ä½è®¢åæ°é |
| | | // è·å颿µæ°éï¼å®¢æ·+SKU+æä»½ çè®ºæ¯æ²¡æç©æé¢æµï¼ |
| | | // è·å颿µæ°éï¼å®¢æ·åç§°+SKU+æä»½ çè®ºæ¯æ²¡æç©æé¢æµï¼ |
| | | OrderForecast := select(Owner, H_OrderForecastRealQty , Obj, Obj.SKU() = ObjOrder.ProductID() |
| | | and Obj.CustomCode() = ObjOrder.CustomerName() |
| | | and Obj.CustomName() = ObjOrder.CustomerName() |
| | | and Obj.Month().Format( "YM2") =ObjOrder.EndDate().Format( "YM2")); |
| | | if ( not isnull(OrderForecast)) |
| | | { |
| | |
| | | nReverseQtyOld := ObjReverse.ReverseRealQty(); |
| | | nReverseQtyNew := nReverseQtyOld; |
| | | } |
| | | // è·åæææ°éï¼å®¢æ·ID+SKUï¼ |
| | | // è·åæææ°éï¼å®¢æ·åç§°+SKUï¼ |
| | | ObjAuthorize := select(Owner, H_AuthorizeRealQty , Obj, Obj.SKU() = ObjOrder.ProductID() |
| | | and Obj.CustomID() = ObjOrder.CustomerName()); |
| | | and Obj.CustomName() = ObjOrder.CustomerName()); |
| | | if ( not isnull(ObjAuthorize)) |
| | | { |
| | | nAuthorizeQtyOld := ObjAuthorize.AuthorizeRealQty(); |
| | |
| | | { |
| | | strMsg :="填产å订åå²ååçé误ï¼è¯·è系系ç»ç®¡çåï¼"; |
| | | // è®°å½é误æ¥å¿ |
| | | // Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_OrderHedgingEx", |
| | | // DeveloperInformation := e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(), |
| | | // GeneralInformation := e.GeneralInformation()); |
| | | Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_OrderHedgingEx", |
| | | DeveloperInformation := e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(), |
| | | GeneralInformation := e.GeneralInformation()); |
| | | } |
| | | return JSON::Object().Add( "Status",bStatus) |
| | | .Add( "Count",nCount) |
| | |
| | | if( count - [Number](count/1000) * 1000 = 0 or count = totalcount ){ |
| | | info( "Now is dealing with the " + count.AsQUILL() + "ActualPISPIP " + "( " + count.AsQUILL() + "/" + totalcount.AsQUILL() + " ) " + (count/totalcount*100).Round( 1 ).AsQUILL() + "%" ); |
| | | } |
| | | product := select( this,MappingProduct,product,product.ID() = actual.ProductID() and product.KeyProduct() = nuclear,true); |
| | | product := select( globalOTDTable,Global_MappingProduct_MP,product,product.ID() = actual.ProductID() and product.KeyProduct() = nuclear,true); |
| | | if( not isnull( product)){ |
| | | if( not isnull(businessTypes)){ |
| | | |
| | |
| | | } |
| | | if( createPurchaseSupplyMaterial ) { |
| | | toCreateBomList := selectuniquevalues( bomList, Elements, item, |
| | | item.ComponentType() = "P", item.OrganCode() + item.ComponentCode()); |
| | | item.ComponentType() = "P" and keyProductList.Find( item.ComponentCode())>=0, item.OrganCode() + item.ComponentCode()); |
| | | traverse( toCreateBomList, Elements, key ) { |
| | | boms := selectset( bomList, Elements, item, item.ComponentType() = "P" and item.OrganCode() + item.ComponentCode() = key ); |
| | | bom := boms.First(); |
| | |
| | | // yypsybs Aug-15-2023 (created) |
| | | |
| | | defaultOld := UnitOfMeasure_MP::FindDefault( this ); |
| | | defaultNew := select( this, MappingUnitOfMeasure, item, true, item.IsDefault() ); |
| | | defaultNew := select( globalotdtable, Global_MappingUnitOfMeasure_MP, item, true, item.IsDefault() ); |
| | | |
| | | if( not isnull( defaultOld ) and not isnull( defaultNew ) |
| | | and defaultOld.Name() <> defaultNew.Name() ) { |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Apply ( |
| | | ManufactureLTImputations toApply |
| | | ManufactureLTImputations toApply, |
| | | MacroPlan macroPlan |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | // yypsybs Aug-28-2023 (created) |
| | | traverse( toApply, Elements, parent ) { |
| | | traverse( parent, ManufactureLTProcessSection, child ) { |
| | | ManufactureLTProcessSection::Apply( child ); |
| | | ManufactureLTProcessSection::Apply( child, macroPlan ); |
| | | } |
| | | } |
| | | *] |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CreateOrUpdate ( |
| | | MacroPlan macroPlan, |
| | | GlobalOTDTable parent, |
| | | String orgCode, |
| | | String productId, |
| | | String desc |
| | |
| | | TextBody: |
| | | [* |
| | | // yypsybs Aug-25-2023 (created) |
| | | value := select( macroPlan, ManufactureLTImputation, item, item.OrgCode() = orgCode and item.SkuID() = productId ); |
| | | value := select( parent, ManufactureLTImputation, item, item.OrgCode() = orgCode and item.SkuID() = productId ); |
| | | if( isnull( value ) ) { |
| | | value := macroPlan.ManufactureLTImputation( relnew, OrgCode := orgCode, SkuID := productId, Describe := desc ); |
| | | value := parent.ManufactureLTImputation( relnew, OrgCode := orgCode, SkuID := productId, Describe := desc ); |
| | | } else { |
| | | value.Describe( desc ); |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Refresh ( |
| | | ManufactureLTImputations toRefresh |
| | | ManufactureLTImputations toRefresh, |
| | | MacroPlan macroPlan |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | // yypsybs Aug-28-2023 (created) |
| | | traverse( toRefresh, Elements, parent ) { |
| | | traverse( parent, ManufactureLTProcessSection, child ) { |
| | | ManufactureLTProcessSection::Apply( child ); |
| | | ManufactureLTProcessSection::Apply( child, macroPlan ); |
| | | } |
| | | } |
| | | *] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Transfer ( |
| | | MacroPlan macroPlan, |
| | | GlobalOTDTable parent |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Oct-11-2023 (created) |
| | | traverse( macroPlan, Routing.RoutingStep.Operation, item ) { |
| | | ManufactureLTProcessSection::CreateOrUpdate( item, parent ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Apply ( |
| | | ManufactureLTProcessSection toApply |
| | | ManufactureLTProcessSection toApply, |
| | | MacroPlan macroPlan |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Aug-28-2023 (created) |
| | | parent := toApply.ManufactureLTImputation(); |
| | | toUpdate := select( toApply, ManufactureLTImputation.MacroPlan.Routing.RoutingStep.Operation, op, |
| | | toUpdate := select( macroPlan, Routing.RoutingStep.Operation, op, |
| | | op.RoutingID() = parent.OrgCode() + "_" + parent.SkuID() |
| | | and op.RoutingStepName() = toApply.ProcessSection() + "_" + toApply.Sequence() |
| | | and op.Name() = ifexpr( toApply.Line() <> "", |
| | |
| | | toUpdate.UserLeadTime( Duration::Days( toApply.EditLT() ) ); |
| | | toApply.SystemLT( toApply.EditLT() ); |
| | | } else { |
| | | info( "operation to update not found" ); |
| | | debuginfo( "operation to update not found" ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Apply ( |
| | | ManufactureLTProcessSections toApply |
| | | ManufactureLTProcessSections toApply, |
| | | MacroPlan macroPlan |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Aug-28-2023 (created) |
| | | traverse( toApply, Elements, child ) { |
| | | ManufactureLTProcessSection::Apply( child ); |
| | | ManufactureLTProcessSection::Apply( child, macroPlan ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CreateOrUpdate ( |
| | | Operation op |
| | | Operation op, |
| | | GlobalOTDTable parent |
| | | ) as ManufactureLTProcessSection |
| | | { |
| | | TextBody: |
| | |
| | | } |
| | | child := null( ManufactureLTProcessSection ); |
| | | //if( orgCode <> "" and productId <> "" and processStep <> "" and sequence <> "" ) { |
| | | // parent := ManufactureLTImputation::CreateOrUpdate( op.RoutingStep().Routing().MacroPlan(), orgCode, productId, "" ); |
| | | // info( "DaysAsReal : " + [String]op.UserLeadTime().DaysAsReal() ); |
| | | // child := ManufactureLTProcessSection::CreateOrUpdate( parent, processStep, false, sequence, line, op.UserLeadTime().DaysAsReal(), 0.0, "" ); |
| | | ltParent := ManufactureLTImputation::CreateOrUpdate( parent, orgCode, productId, "" ); |
| | | info( "DaysAsReal : " + [String]op.UserLeadTime().DaysAsReal() ); |
| | | child := ManufactureLTProcessSection::CreateOrUpdate( ltParent, processStep, false, sequence, line, op.UserLeadTime().DaysAsReal(), 0.0, "" ); |
| | | //} else { |
| | | // info( "skip operation" ); |
| | | //} |
| | | return child; |
| | | *] |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CreateOrUpdate ( |
| | | GlobalOTDTable parent, |
| | | MacroPlan macroPlan, |
| | | String orgCode, |
| | | String productId, |
| | |
| | | TextBody: |
| | | [* |
| | | // yypsybs Aug-25-2023 (created) |
| | | parent := select( macroPlan, ManufactureLTImputation, item, item.OrgCode() = orgCode and item.SkuID() = productId ); |
| | | if( isnull( parent ) ) { |
| | | parent := macroPlan.ManufactureLTImputation( relnew, OrgCode := orgCode, SkuID := productId, Describe := parentDesc ); |
| | | ltParent := select( parent, ManufactureLTImputation, item, item.OrgCode() = orgCode and item.SkuID() = productId ); |
| | | if( isnull( ltParent ) ) { |
| | | ltParent := parent.ManufactureLTImputation( relnew, OrgCode := orgCode, SkuID := productId, Describe := parentDesc ); |
| | | } else { |
| | | parent.Describe( parentDesc ); |
| | | ltParent.Describe( parentDesc ); |
| | | } |
| | | child := select( parent, ManufactureLTProcessSection, item, item.ProcessSection() = processSection and item.Sequence() = seq and item.Line() = line ); |
| | | child := select( ltParent, ManufactureLTProcessSection, item, item.ProcessSection() = processSection and item.Sequence() = seq and item.Line() = line ); |
| | | if( isnull( child ) ) { |
| | | child := parent.ManufactureLTProcessSection( relnew, |
| | | child := ltParent.ManufactureLTProcessSection( relnew, |
| | | ProcessSection := processSection, Sequence := seq, Line := line, SystemLT := systemLt, |
| | | Edited := edited, EditLT := editLt, Describe := childDesc ); |
| | | } else { |
| | |
| | | [* |
| | | // Disabled button to prevent the possibility of multiple firing |
| | | |
| | | macroPlanOld := MacroPlan; |
| | | //macroPlanOld := MacroPlan; |
| | | |
| | | btnOK.Enabled( false, '' ) |
| | | |
| | |
| | | } |
| | | |
| | | macroPlanNew := MacroPlan; |
| | | ManufactureLTImputation::Transfer( macroPlanOld, macroPlanNew ); |
| | | //ManufactureLTImputation::Transfer( macroPlanOld, macroPlanNew ); |
| | | |
| | | // sync data |
| | | if( data.EnableSync() ) { |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MPSync ); |
| | | return not isnull( GlobalOTDTable ); |
| | | *] |
| | | QuillAction |
| | | { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ButtonGenerateTestData |
| | | Response OnClick () id:Response_FormCapacityAndSaleBudge_ButtonGenerateTestData_OnClick |
| | | { |
| | | #keys: '[414384.0.971540692]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | GlobalOTDTable.InitTestDataByYear( MacroPlan, DataHolderCapacityAndSaleBudgeFilterYear.Data() ); |
| | | Global_MappingAnnualBudgetData::SetOrgCodeFromForecast( GlobalOTDTable ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | [* |
| | | MPSync::TestData( MPSync, MacroPlan ); |
| | | GlobalOTDTable.InitTestData(); |
| | | GlobalOTDTable.InitTestData( MacroPlan ); |
| | | Global_MappingAnnualBudgetData::SetOrgCodeFromForecast( GlobalOTDTable ); |
| | | GlobalOTDTable.RefreshCapacityAndSaleBudgeFilter( true ); |
| | | *] |
| | | } |
| | |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Label: '导åº' |
| | | Taborder: 0 |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component ButtonExportTest |
| | |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Label: 'å¯¼åºæµè¯' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | Visible: false |
| | | ] |
| | | } |
| | | Component ButtonGenerateTestData |
| | | { |
| | | #keys: '[414384.0.971540693]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'IMPORT1' |
| | | Label: 'æ ¹æ®çéæä»½çææµè¯æ°æ®' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | DataType: 'GlobalOTDTable' |
| | | Source: 'GlobalOTDTable' |
| | | Taborder: 0 |
| | | Transformation: 'ManufactureLTImputation' |
| | | ] |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | Taborder: 1 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ButtonLoad_657 |
| | | Response OnClick () id:Response_PanelPRDataButton_ButtonLoad_OnClick_417 |
| | | { |
| | | #keys: '[414384.0.967076760]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | ManufactureLTImputation::Transfer( MacroPlan, GlobalOTDTable ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListManufactureLT_943 |
| | | Response OnClick ( |
| | | structured[ManufactureLTImputation] selection |
| | | ) id:Response_ListManufactureLT_943_MenuApply_OnClick |
| | | { |
| | | #keys: '[414384.0.967590502]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListManufactureLT_943/Responsedef_ListManufactureLT_943_WebMenu_OnClick |
| | | GroupServerCalls: true |
| | | Initiator: 'MenuApply' |
| | | Precondition: |
| | | [* |
| | | return not isnull( MacroPlan ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | ManufactureLTImputation::Apply( selection, MacroPlan ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | Children: |
| | | [ |
| | | #child: ListManufactureLT_943 |
| | | Component ButtonLoad id:ButtonLoad_657 |
| | | { |
| | | #keys: '[414384.0.967076761]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'THICK_ARROW_DOWN_BLUE' |
| | | Label: 'éæ°å è½½' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | { |
| | | viewcontents |
| | | { |
| | | forms |
| | | { |
| | | form_legacy_1 |
| | | { |
| | | title: 'Scenario manager' |
| | | shown: true |
| | | componentID: 'FormScenarioManager' |
| | | layout |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 1 |
| | | rowSpan: 8 |
| | | columnPosition: 1 |
| | | columnSpan: 5 |
| | | } |
| | | components |
| | | { |
| | | FormScenarioManager_ListScenario |
| | | { |
| | | } |
| | | FormScenarioManager_DataSetLevelScenario |
| | | { |
| | | groupDepth: -1 |
| | | column_All_constraints |
| | | { |
| | | columnId: 'All constraints' |
| | | dataPath: 'All constraints' |
| | | dataType: 'string' |
| | | title: 'All constraints' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 90 |
| | | } |
| | | column_Name |
| | | { |
| | | columnId: 'Name' |
| | | dataPath: 'Name' |
| | | dataType: 'string' |
| | | title: 'åç§°' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 197 |
| | | } |
| | | column_ChangedBy |
| | | { |
| | | columnId: 'ChangedBy' |
| | | dataPath: 'ChangedBy' |
| | | dataType: 'string' |
| | | title: 'Changed by' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 91 |
| | | } |
| | | column_ChangedOn |
| | | { |
| | | columnId: 'ChangedOn' |
| | | dataPath: 'ChangedOn' |
| | | dataType: 'datetime' |
| | | title: 'Changed on' |
| | | index: 3 |
| | | subtotals: '' |
| | | width: 99 |
| | | } |
| | | column_StorageMode |
| | | { |
| | | columnId: 'StorageMode' |
| | | dataPath: 'StorageMode' |
| | | dataType: 'string' |
| | | title: 'StorageMode' |
| | | index: 4 |
| | | subtotals: '' |
| | | width: 40 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_FormOptimizerPuzzles |
| | | { |
| | | title: 'Optimizer Puzzles' |
| | | shown: false |
| | | componentID: 'FormOptimizerPuzzles' |
| | | layout |
| | | { |
| | | mode: 'dockright' |
| | | index: 0 |
| | | } |
| | | components |
| | | { |
| | | FormOptimizerPuzzles_ListOptimizerPuzzles |
| | | { |
| | | } |
| | | FormOptimizerPuzzles_DataSetLevelOptimizerPuzzles |
| | | { |
| | | groupDepth: -1 |
| | | column_All_constraints |
| | | { |
| | | columnId: 'All constraints' |
| | | dataPath: 'All constraints' |
| | | dataType: 'string' |
| | | title: 'All constraints' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 32 |
| | | } |
| | | column_Name |
| | | { |
| | | columnId: 'Name' |
| | | dataPath: 'Name' |
| | | dataType: 'string' |
| | | title: 'åç§°' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 109 |
| | | } |
| | | column_Description |
| | | { |
| | | columnId: 'Description' |
| | | dataPath: 'Description' |
| | | dataType: 'string' |
| | | title: 'æè¿°' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 207 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_FormKPI |
| | | { |
| | | title: 'KPI Dashboard' |
| | | shown: false |
| | | componentID: 'FormKPI' |
| | | layout |
| | | { |
| | | mode: 'dockright' |
| | | index: 1 |
| | | } |
| | | components |
| | | { |
| | | FormKPI_PanelKPI |
| | | { |
| | | sizeRatio: 1 |
| | | activeChild: 'PanelKPISelection' |
| | | } |
| | | FormKPI_PanelKPIDashboard |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormKPI_PanelKPISelection |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | FormKPI_ListKPISelection |
| | | { |
| | | QuillViewData |
| | | { |
| | | Food_KPISetting: 'Cost of sales;Fulfillment;Fulfillment target;Inventory holding cost;Labor cost;Margin;Safety stock;Sales;Sourcing cost;Total CO2 emission;Transportation cost;Volume' |
| | | } |
| | | } |
| | | FormKPI_DataSetLevelKPISelection |
| | | { |
| | | groupDepth: -1 |
| | | column_All_constraints |
| | | { |
| | | columnId: 'All constraints' |
| | | dataPath: 'All constraints' |
| | | dataType: 'string' |
| | | title: 'All constraints' |
| | | index: 0 |
| | | subtotals: '' |
| | | width: 32 |
| | | } |
| | | column_Name |
| | | { |
| | | columnId: 'Name' |
| | | dataPath: 'Name' |
| | | dataType: 'string' |
| | | title: 'åç§°' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 200 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | form_SWF_DialogWorkflowParameter |
| | | { |
| | | title: 'S&OP Workflow Parameters' |
| | | shown: true |
| | | componentID: 'SWF_DialogWorkflowParameter' |
| | | layout |
| | | { |
| | | mode: 'dockright' |
| | | index: 2 |
| | | } |
| | | components |
| | | { |
| | | SWF_DialogWorkflowParameter_PanelCurrentDate |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | SWF_DialogWorkflowParameter_PanelIntegration |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | SWF_DialogWorkflowParameter_PanelSynchronizeRoles |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | SWF_DialogWorkflowParameter_PanelRequestDatasetSync |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | SWF_DialogWorkflowParameter_PanelKickQueues |
| | | { |
| | | sizeRatio: 1 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | userconfigurableinformation |
| | | { |
| | | } |
| | | page: 'ActionBarPageData' |
| | | group: '' |
| | | index: 1 |
| | | image: 'CODE_LINE' |
| | | description: 'å¶é LT' |
| | | } |
| | | formatversion: 2 |
| | | id: 'ManufactureLT' |
| | | name: 'ManufactureLT' |
| | | isglobal: false |
| | | isroot: true |
| | | } |