已重命名4个文件
已修改56个文件
已添加30个文件
已删除33个文件
| | |
| | | { |
| | | DefaultText: '该ä¼å
级å ååç§°å·²åå¨ï¼' |
| | | } |
| | | InfoMessage PriorityPolicy_NullName |
| | | { |
| | | DefaultText: 'ä¼å
级çç¥åç§°ä¸è½ä¸ºç©ºã' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation PriorityFactor_BusinessType_BusinessType_PriorityFactor |
| | | { |
| | | #keys: '1[414996.0.98150005]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide BusinessType |
| | | { |
| | | #keys: '3[414996.0.98150007][414996.0.98150006][414996.0.98150008]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: PriorityFactor |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide PriorityFactor |
| | | { |
| | | #keys: '3[414996.0.98150010][414996.0.98150009][414996.0.98150011]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: BusinessType |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation PriorityPolicy_BusinessType_BusinessType_PriorityPolicy |
| | | { |
| | | #keys: '1[414996.0.98054699]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide BusinessType |
| | | { |
| | | #keys: '3[414996.0.98054701][414996.0.98054700][414996.0.98054702]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: PriorityPolicy |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide PriorityPolicy |
| | | { |
| | | #keys: '3[414996.0.98054704][414996.0.98054703][414996.0.98054705]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: BusinessType |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
| | |
| | | #keys: '3[414996.0.57846269][414996.0.57846268][414996.0.57846270]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: CustomerOrder |
| | | OwningSide: 'Reference' |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method CalculatePriorityResult ( |
| | | PriorityPolicy priorityPolicy |
| | | ) |
| | | { |
| | | Description: '计ç®customerOrderä¼å
级å¾å' |
| | | TextBody: |
| | | [* |
| | | // Akari Nov-12-2023 (created) |
| | | // å
å é¤åå²çè·å详æ
|
| | | this.PriorityResult(relflush ); |
| | | |
| | | // äºä¸é¨ä¿¡æ¯ |
| | | businessType := priorityPolicy.BusinessType(); |
| | | |
| | | // è·å对åºäºä¸é¨è®¡ç®å
¬å¼ |
| | | formula := priorityPolicy.Formula(); |
| | | |
| | | // éå½å¤ç计ç®å
¬å¼ è·åå½å订åçå¾å |
| | | value := PriorityResult::CalculateScore( formula,this,businessType,0.0); |
| | | // çæä¼å
级å åè·åç»æ |
| | | priorityResult := this.PriorityResult(relnew,CustomerOrderID := this.ID(),Customer := this.CustomerName(),CustomerID := this.CustomerID(), |
| | | DemandDate := this.EndDate(),ProductID := this.ProductID(),Quantity := this.Quantity(),SalesSegmentName := this.SalesSegmentName(), |
| | | StockingPointID := this.StockingPointID(),UnitOfMeasureName := this.UnitOfMeasureName() |
| | | ); |
| | | // 夿æ¯éå¢ è¿æ¯äºä¸é¨ |
| | | if( businessType.BusinessTypeName().FindString( "éå¢",0 ) <> -1){ |
| | | priorityResult.PriorityResultGroupDetail( relnew,Customer := this.CustomerName(),CustomerID := this.CustomerID(), |
| | | DemandDate := this.EndDate(),PriorityPolicyName := priorityPolicy.Name(),PriorityResultScore := value, |
| | | Quantity := this.Quantity(),SalesSegmentName := this.SalesSegmentName(),StockingPointID := this.StockingPointID(), |
| | | UnitOfMeasureName := this.UnitOfMeasureName(),PriorityTotalScore := value |
| | | ); |
| | | }else{ |
| | | priorityResult.PriorityResultBusinessTypeDetail( relnew,Customer := this.CustomerName(),CustomerID := this.CustomerID(), |
| | | DemandDate := this.EndDate(),PriorityPolicyName := priorityPolicy.Name(),PriorityResultScore := value, |
| | | Quantity := this.Quantity(),SalesSegmentName := this.SalesSegmentName(),StockingPointID := this.StockingPointID(), |
| | | UnitOfMeasureName := this.UnitOfMeasureName(),PriorityTotalScore := value |
| | | ); |
| | | } |
| | | |
| | | e := this.PriorityResult(); |
| | | businessTypeScore := max( e,PriorityResultBusinessTypeDetail,p, |
| | | p.PriorityTotalScore() |
| | | ); |
| | | groupScore := max( e,PriorityResultGroupDetail,p, |
| | | p.PriorityTotalScore() |
| | | ); |
| | | value := maxvalue( businessTypeScore,groupScore); |
| | | e.PriorityResultScore( value ); |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitData ( |
| | | MacroPlan owner |
| | | BusinessType businessType |
| | | ) |
| | | { |
| | | Description: 'åå§ååºç¡æ°æ®ï¼æµè¯é¶æ®µä½¿ç¨ï¼' |
| | |
| | | // businessType |
| | | // result := "éå¢é¢æ¿;ä¸ä¸æ¾ç¤ºäºä¸é¨;å¤åCELL;éæ¾;è¿å¨å¥åº·;è¿å¨å¥åº·äºä¸é¨;ææºäºä¸é¨;ç¹ç§æ¾ç¤º;汽车çµåäºä¸é¨;车载æ¾ç¤ºäºä¸é¨;ITäºä¸é¨"; |
| | | |
| | | businessType := ""; |
| | | |
| | | // 妿已ç»åå¨ä¼å
çº§æ°æ® åä¸åå¤ç |
| | | list := selectset( owner,PriorityFactor,p,true); |
| | | if( list.Size() = 0 ) |
| | | { |
| | | list := selectset( businessType,PriorityFactor,p,true); |
| | | if( list.Size() = 0 ){ |
| | | |
| | | // æ·»å äºä¸é¨å¯¹åºçé¢å¶ä¼å
级å åæ°æ® |
| | | owner.PriorityFactor(relnew,Name := "客æ·çç¥" ,Desc := "å°äºä¸é¨è®¡ç®çä¼å
çº§ï¼æè¯¥ç»å项æ¯ä¾é¶æ¢¯ç¡®å®è¯¥é¡¹å¾åãå¦ï¼81%â¤Xâ¤100% 5åï¼61%â¤Xâ¤80% 4å", BusinessType := businessType, Coefficient := 100 ); |
| | | owner.PriorityFactor(relnew,Name := "客æ·ç级" ,Desc := "æ ¹æ®éæ±æ°æ®ä¸å®¢æ·ï¼å¹é
客æ·ç级",BusinessType := businessType, Coefficient := 100); |
| | | owner.PriorityFactor(relnew,Name := "å¤§å¼ ç婿°´å¹³" ,Desc := "1ãè·å客æ·*SKUå¤§å¼ ç婿° 2ãå®ä¹å®¢æ·*SKUå¤§å¼ ç婿°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := businessType, Coefficient := 100 ); |
| | | owner.PriorityFactor(relnew,Name := "ç»åå¸åºç级" ,Desc := "1ãè·å客æ·*SKU对åºç»åå¸åºç级 2ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKU对åºç»åå¸åºè¯åç级ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := businessType, Coefficient := 100 ); |
| | | owner.PriorityFactor(relnew,Name := "éæ±ç±»å" ,Desc := "å¹é
ä¸åéæ±ç§ç±»ï¼å¾å°å¯¹åºå¾å", BusinessType := businessType, Coefficient := 100 ); |
| | | owner.PriorityFactor(relnew,Name := "订åä¸åæ¶é´" ,Desc := "æ ¹æ®éæ±è®¢åä¸ä¸åæ¶é´ä¸éæ±æ¶é´å·®å¼ï¼å¹é
é¶æ¢¯å¾å", BusinessType := businessType, Coefficient := 100 ); |
| | | owner.PriorityFactor(relnew,Name := "产åç级" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := businessType, Coefficient := 100 ); |
| | | owner.PriorityFactor(relnew,Name := "DOI" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := businessType, Coefficient := 100 ); |
| | | owner.PriorityFactor(relnew,Name := "DSI" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := businessType, Coefficient := 100 ); |
| | | businessType.PriorityFactor(relnew,Name := "客æ·çç¥" ,Desc := "å°äºä¸é¨è®¡ç®çä¼å
çº§ï¼æè¯¥ç»å项æ¯ä¾é¶æ¢¯ç¡®å®è¯¥é¡¹å¾åãå¦ï¼81%â¤Xâ¤100% 5åï¼61%â¤Xâ¤80% 4å", Coefficient := 100 ); |
| | | businessType.PriorityFactor(relnew,Name := "客æ·ç级" ,Desc := "æ ¹æ®éæ±æ°æ®ä¸å®¢æ·ï¼å¹é
客æ·ç级", Coefficient := 100); |
| | | businessType.PriorityFactor(relnew,Name := "å¤§å¼ ç婿°´å¹³" ,Desc := "1ãè·å客æ·*SKUå¤§å¼ ç婿° 2ãå®ä¹å®¢æ·*SKUå¤§å¼ ç婿°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", Coefficient := 100 ); |
| | | businessType.PriorityFactor(relnew,Name := "ç»åå¸åºç级" ,Desc := "1ãè·å客æ·*SKU对åºç»åå¸åºç级 2ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKU对åºç»åå¸åºè¯åç级ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", Coefficient := 100 ); |
| | | businessType.PriorityFactor(relnew,Name := "éæ±ç±»å" ,Desc := "å¹é
ä¸åéæ±ç§ç±»ï¼å¾å°å¯¹åºå¾å", Coefficient := 100 ); |
| | | businessType.PriorityFactor(relnew,Name := "订åä¸åæ¶é´" ,Desc := "æ ¹æ®éæ±è®¢åä¸ä¸åæ¶é´ä¸éæ±æ¶é´å·®å¼ï¼å¹é
é¶æ¢¯å¾å", Coefficient := 100 ); |
| | | businessType.PriorityFactor(relnew,Name := "产åç级" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", Coefficient := 100 ); |
| | | businessType.PriorityFactor(relnew,Name := "DOI" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", Coefficient := 100 ); |
| | | businessType.PriorityFactor(relnew,Name := "DSI" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", Coefficient := 100 ); |
| | | |
| | | // ä¼å
级å åç»å |
| | | priorityFactorList := selectset( owner,PriorityFactor,p, |
| | | p.BusinessType() = businessType |
| | | ); |
| | | |
| | | traverse( priorityFactorList,Elements,e) |
| | | traverse( businessType,PriorityFactor,e) |
| | | { |
| | | PriorityFactorDetail::InitData( owner,e); |
| | | PriorityFactorDetail::InitData( businessType,e); |
| | | } |
| | | |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitData ( |
| | | MacroPlan owner, |
| | | BusinessType businessType, |
| | | PriorityFactor priorityFactor |
| | | ) |
| | | { |
| | |
| | | // NBoTk Sep-17-2023 (created) |
| | | |
| | | isBusinessType := false; |
| | | if( priorityFactor.BusinessType() <> "éå¢é¢æ¿" ) |
| | | if( priorityFactor.BusinessType().BusinessTypeName() <> "éå¢é¢æ¿" ) |
| | | { |
| | | isBusinessType := true; |
| | | } |
| | | |
| | | if( priorityFactor.Name() = "å¤§å¼ ç婿°´å¹³" ) |
| | | { |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | IsRange := false,GradingName := "大ç",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | IsRange := false,GradingName := "å°ç",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 0, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 0, |
| | | IsRange := false,GradingName := "æå¹³",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := -3, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := -3, |
| | | IsRange := false,GradingName := "å°äº",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := -5, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := -5, |
| | | IsRange := false,GradingName := "大äº",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | } |
| | | |
| | | if( priorityFactor.Name() = "客æ·çç¥" ) |
| | | { |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | IsRange := false,GradingName := "81%â¤Xâ¤100%",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 4, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 4, |
| | | IsRange := false,GradingName := "61%â¤Xâ¤80%",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | IsRange := false,GradingName := "41%â¤Xâ¤60%",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 2, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 2, |
| | | IsRange := false,GradingName := "21%â¤Xâ¤40%",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | IsRange := false,GradingName := "1%â¤Xâ¤20%",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | } |
| | | |
| | | if( priorityFactor.Name() = "ç»åå¸åºç级" ) |
| | | { |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | IsRange := false,GradingName := "æç¥",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | IsRange := false,GradingName := "éç¹",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | IsRange := false,GradingName := "æ½å",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | } |
| | | |
| | | if( priorityFactor.Name() = "订åä¸åæ¶é´" ) |
| | | { |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | IsRange := false,GradingName := "120",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 4, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 4, |
| | | IsRange := false,GradingName := "90",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | IsRange := false,GradingName := "60",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 2, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 2, |
| | | IsRange := false,GradingName := "30",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | IsRange := false,GradingName := "0",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | } |
| | | |
| | | if( priorityFactor.Name() = "éæ±ç±»å" ) |
| | | { |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | IsRange := false,GradingName := "æé¢æµ",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | IsRange := false,GradingName := "æ 颿µ",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | IsRange := false,GradingName := "çº¯é¢æµ",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | } |
| | | |
| | | if( priorityFactor.Name() = "客æ·ç级" ) |
| | | { |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | IsRange := false,GradingName := "æç¥",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | IsRange := false,GradingName := "éç¹",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | IsRange := false,GradingName := "æ½å",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | } |
| | | |
| | | if( priorityFactor.Name() = "DOI" or priorityFactor.Name() = "DSI") |
| | | { |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | IsRange := false,GradingName := "<7",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | IsRange := false,GradingName := "<15",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | IsRange := false,GradingName := "<30",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetail(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | priorityFactor.PriorityFactorDetail(relnew, IsBusinessType := isBusinessType,GradeTarget := 1, |
| | | IsRange := false,GradingName := ">30",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | } |
| | | *] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute isDefault |
| | | { |
| | | #keys: '3[414996.0.108641097][414996.0.108641096][414996.0.108641098]' |
| | | ValueType: Boolean |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | ISOValue: 'false' |
| | | TargetAttribute: isDefault |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method SetDefault |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Nov-12-2023 (created) |
| | | def := select( this.BusinessType(),PriorityPolicy,pp,pp.isDefault()); |
| | | if( not isnull( def )){ |
| | | def.isDefault( false ); |
| | | } |
| | | this.isDefault( true ); |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetCalcFormula ( |
| | | MacroPlan macroPlan, |
| | | BusinessType businessType, |
| | | String formula |
| | | ) as String |
| | | { |
| | |
| | | TextBody: |
| | | [* |
| | | // NBoTk Oct-7-2023 (created) |
| | | priorityFactor := null( PriorityFactor); |
| | | traverse( macroPlan,PriorityFactor,p) |
| | | { |
| | | if( formula.StartsWith( p.Name()) ) |
| | | { |
| | | priorityFactor := p; |
| | | } |
| | | priorityFactor := select( businessType,PriorityFactor,pf,formula.StartsWith( pf.Name())); |
| | | value := ''; |
| | | if( not isnull( priorityFactor )){ |
| | | value := priorityFactor.Name() + "[" + [String]priorityFactor.Coefficient() +"*L]"; |
| | | } |
| | | value := priorityFactor.Name() + "[" + [String]priorityFactor.Coefficient() +"*L]"; |
| | | return value; |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetCalcStr ( |
| | | MacroPlan macroPlan, |
| | | BusinessType businessType, |
| | | String formula, |
| | | String lastCalcStr |
| | | ) as String |
| | |
| | | if(remindFormula.StartsWith( "+" )) |
| | | { |
| | | remindFormula := remindFormula.SubString( 1,remindFormula.Length()-1); |
| | | calcStr := PriorityPolicy::GetCalcFormula(macroPlan,remindFormula); |
| | | calcStr := PriorityPolicy::GetCalcFormula(businessType,remindFormula); |
| | | calcStr := lastCalcStr + "+" + calcStr; |
| | | |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | PriorityPolicy::GetCalcStr( macroPlan,remindFormula,calcStr); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | PriorityPolicy::GetCalcStr( businessType,remindFormula,calcStr); |
| | | } |
| | | else if( remindFormula.StartsWith( "-" )) |
| | | { |
| | | remindFormula := remindFormula.SubString( 1,remindFormula.Length()-1); |
| | | calcStr := PriorityPolicy::GetCalcFormula(macroPlan,remindFormula); |
| | | calcStr := PriorityPolicy::GetCalcFormula(businessType,remindFormula); |
| | | calcStr := lastCalcStr + "-" + calcStr; |
| | | |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | PriorityPolicy::GetCalcStr( macroPlan,remindFormula,calcStr); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | PriorityPolicy::GetCalcStr( businessType,remindFormula,calcStr); |
| | | } |
| | | else if( remindFormula.StartsWith( "*" ) ) |
| | | { |
| | | remindFormula := remindFormula.SubString( 1,remindFormula.Length()-1); |
| | | calcStr := PriorityPolicy::GetCalcFormula(macroPlan,remindFormula); |
| | | calcStr := PriorityPolicy::GetCalcFormula(businessType,remindFormula); |
| | | calcStr := lastCalcStr + "*" + calcStr; |
| | | |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | PriorityPolicy::GetCalcStr( macroPlan,remindFormula,calcStr); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | PriorityPolicy::GetCalcStr( businessType,remindFormula,calcStr); |
| | | } |
| | | else if( remindFormula.StartsWith( "/" ) ) |
| | | { |
| | | remindFormula := remindFormula.SubString( 1,remindFormula.Length()-1); |
| | | calcStr := PriorityPolicy::GetCalcFormula(macroPlan,remindFormula); |
| | | calcStr := PriorityPolicy::GetCalcFormula(businessType,remindFormula); |
| | | calcStr := lastCalcStr + "/" + calcStr; |
| | | |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | PriorityPolicy::GetCalcStr( macroPlan,remindFormula,calcStr); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | PriorityPolicy::GetCalcStr( businessType,remindFormula,calcStr); |
| | | } |
| | | else if( remindFormula.StartsWith( "(" ) ) |
| | | { |
| | | remindFormula := remindFormula.SubString( 1,remindFormula.Length()-1); |
| | | calcStr := PriorityPolicy::GetCalcFormula(macroPlan,remindFormula); |
| | | calcStr := PriorityPolicy::GetCalcFormula(businessType,remindFormula); |
| | | calcStr := lastCalcStr + "{" + calcStr; |
| | | |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | PriorityPolicy::GetCalcStr( macroPlan,remindFormula,calcStr); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | PriorityPolicy::GetCalcStr( businessType,remindFormula,calcStr); |
| | | } |
| | | else if( remindFormula.StartsWith( ")" ) ) |
| | | { |
| | | remindFormula := remindFormula.SubString( 1,remindFormula.Length()-1); |
| | | calcStr := PriorityPolicy::GetCalcFormula(macroPlan,remindFormula); |
| | | calcStr := PriorityPolicy::GetCalcFormula(businessType,remindFormula); |
| | | calcStr := lastCalcStr + ")" + calcStr; |
| | | |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | PriorityPolicy::GetCalcStr( macroPlan,remindFormula,calcStr); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | PriorityPolicy::GetCalcStr( businessType,remindFormula,calcStr); |
| | | } |
| | | else |
| | | { |
| | | // 䏿¯ç¬¦å· ç´æ¥è·å计ç®åçæ°å¼ |
| | | calcStr := PriorityPolicy::GetCalcFormula(macroPlan,remindFormula); |
| | | calcStr := PriorityPolicy::GetCalcFormula(businessType,remindFormula); |
| | | |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | PriorityPolicy::GetCalcStr( macroPlan,remindFormula,calcStr); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | PriorityPolicy::GetCalcStr( businessType,remindFormula,calcStr); |
| | | } |
| | | |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod RollBackCalcStr ( |
| | | MacroPlan owner, |
| | | String businessType, |
| | | BusinessType businessType, |
| | | String stringData |
| | | ) as String |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | nameList := PriorityFactor::GetDataByBusinessType( owner,""); |
| | | traverse( nameList,Elements,e) |
| | | traverse( businessType,PriorityFactor,priorityFactor) |
| | | { |
| | | nameText := e.Name() + "[" + [String]e.Coefficient() + "*L]" |
| | | nameText := priorityFactor.Name() + "[" + [String]priorityFactor.Coefficient() + "*L]" |
| | | if( stringData.EndsWith( nameText)) |
| | | { |
| | | end := stringData.Length() - nameText.Length(); |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod RollBackStr ( |
| | | MacroPlan owner, |
| | | String businessType, |
| | | BusinessType businessType, |
| | | String stringData |
| | | ) as String |
| | | { |
| | |
| | | value := stringData.SubString( 0,end); |
| | | } |
| | | } |
| | | |
| | | nameList := PriorityFactor::GetDataByBusinessType( owner,""); |
| | | traverse( nameList,Elements,e) |
| | | |
| | | traverse( businessType,PriorityFactor,priorityFactor) |
| | | { |
| | | if( stringData.EndsWith( e.Name())) |
| | | if( stringData.EndsWith( priorityFactor.Name())) |
| | | { |
| | | end := stringData.Length() - e.Name().Length(); |
| | | end := stringData.Length() - priorityFactor.Name().Length(); |
| | | value := stringData.SubString( 0,end); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute OldPriorityName |
| | | { |
| | | #keys: '3[414996.0.111544204][414996.0.111544203][414996.0.111544205]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Point |
| | | { |
| | | #keys: '3[414996.0.108590068][414996.0.108590067][414996.0.108590069]' |
| | | ValueType: Number |
| | | } |
| | |
| | | StaticMethod CalculateBracketScore ( |
| | | String calcStr, |
| | | CustomerOrder customerOrder, |
| | | String businessType, |
| | | MacroPlan macroPlan, |
| | | const GlobalOTDTable globalOTDTable |
| | | BusinessType businessType |
| | | ) as Real |
| | | { |
| | | Description: '计ç®å
¬å¼ä¸æ¬å·å
çæ°æ®' |
| | |
| | | // NBoTk Sep-26-2023 (created) |
| | | |
| | | |
| | | return PriorityResult::CalculateScore( calcStr,customerOrder,businessType,macroPlan,0.0,globalOTDTable); |
| | | return PriorityResult::CalculateScore( calcStr,customerOrder,businessType,0.0); |
| | | *] |
| | | } |
| | |
| | | StaticMethod CalculateScore ( |
| | | String formula, |
| | | CustomerOrder customerOrder, |
| | | String businessType, |
| | | MacroPlan macroPlan, |
| | | Real lastScore, |
| | | const GlobalOTDTable globalOTDTable |
| | | BusinessType businessType, |
| | | Real lastScore |
| | | ) as Real |
| | | { |
| | | Description: 'éå½å¤çä¼å
级çç¥å
¬å¼' |
| | |
| | | // ä»èµ·å§ä½ç½®å¼å§å¹é
|
| | | if(remindFormula.StartsWith( "+" )){ |
| | | remindFormula := remindFormula.SubString( 1,remindFormula.Length()-1); |
| | | score := PriorityResult::GetDetailsValue( customerOrder,remindFormula,macroPlan,globalOTDTable); |
| | | score := PriorityResult::GetDetailsValue( customerOrder,remindFormula,businessType); |
| | | score := lastScore + score; |
| | | |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | score := score + PriorityResult::CalculateScore( remindFormula,customerOrder,businessType,macroPlan,score,globalOTDTable); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | score := score + PriorityResult::CalculateScore( remindFormula,customerOrder,businessType,score); |
| | | }else if( remindFormula.StartsWith( "-" )){ |
| | | remindFormula := remindFormula.SubString( 1,remindFormula.Length()-1); |
| | | score := PriorityResult::GetDetailsValue( customerOrder,remindFormula,macroPlan,globalOTDTable); |
| | | score := PriorityResult::GetDetailsValue( customerOrder,remindFormula,businessType); |
| | | score := lastScore - score; |
| | | |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | score := score + PriorityResult::CalculateScore( remindFormula,customerOrder,businessType,macroPlan,score,globalOTDTable); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | score := score + PriorityResult::CalculateScore( remindFormula,customerOrder,businessType,score); |
| | | }else if( remindFormula.StartsWith( "x" ) ){ |
| | | remindFormula := remindFormula.SubString( 1,remindFormula.Length()-1); |
| | | score := PriorityResult::GetDetailsValue( customerOrder,remindFormula,macroPlan,globalOTDTable); |
| | | score := PriorityResult::GetDetailsValue( customerOrder,remindFormula,businessType); |
| | | score := lastScore * score; |
| | | |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | score := score + PriorityResult::CalculateScore( remindFormula,customerOrder,businessType,macroPlan,score,globalOTDTable); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | score := score + PriorityResult::CalculateScore( remindFormula,customerOrder,businessType,score); |
| | | }else if( remindFormula.StartsWith( "/" ) ){ |
| | | remindFormula := remindFormula.SubString( 1,remindFormula.Length()-1); |
| | | score := PriorityResult::GetDetailsValue( customerOrder,remindFormula,macroPlan,globalOTDTable); |
| | | score := PriorityResult::GetDetailsValue( customerOrder,remindFormula,businessType); |
| | | score := lastScore / score; |
| | | |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | score := score + PriorityResult::CalculateScore( remindFormula,customerOrder,businessType,macroPlan,score,globalOTDTable); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | score := score + PriorityResult::CalculateScore( remindFormula,customerOrder,businessType,score); |
| | | }else if( remindFormula.StartsWith( "(" ) ){ |
| | | // æ¾å°ç¬¬ä¸ä¸ªç»æç ) |
| | | // è®¡ç®æ¬å·ä¸çå
容 |
| | | rightBracket := remindFormula.FindString( ")",0); |
| | | calcStr := remindFormula.SubString( 1,rightBracket); |
| | | PriorityResult::CalculateBracketScore(calcStr,customerOrder,businessType,macroPlan,globalOTDTable); |
| | | PriorityResult::CalculateBracketScore(calcStr,customerOrder,businessType); |
| | | |
| | | // æªå ) åçå符继ç»è¿è¡è®¡ç® |
| | | remindFormula := remindFormula.SubString( rightBracket,remindFormula.Length()-1); |
| | | }else{ |
| | | // 䏿¯ç¬¦å· ç´æ¥è·å计ç®åçæ°å¼ |
| | | score := PriorityResult::GetDetailsValue( customerOrder,remindFormula,macroPlan,globalOTDTable); |
| | | score := PriorityResult::GetDetailsValue( customerOrder,remindFormula,businessType); |
| | | // æªåæå·²ç»è®¡ç®çä¼å
级å å éå½è®¡ç® |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,macroPlan); |
| | | score := PriorityResult::CalculateScore( remindFormula,customerOrder,businessType,macroPlan,score,globalOTDTable); |
| | | remindFormula := PriorityResult::GetRemindFormula( remindFormula,businessType); |
| | | score := PriorityResult::CalculateScore( remindFormula,customerOrder,businessType,score); |
| | | } |
| | | } |
| | | // 没æå¹é
å
¬å¼è®¡ç®å®æ |
| | |
| | | StaticMethod GetDetailsValue ( |
| | | CustomerOrder customerOrder, |
| | | String formula, |
| | | MacroPlan macroPlan, |
| | | const GlobalOTDTable globalOTDTable |
| | | BusinessType businessType |
| | | ) as Real |
| | | { |
| | | Description: '计ç®ä¼å
级å åå¾å' |
| | |
| | | [* |
| | | // NBoTk Sep-26-2023 (created) |
| | | // å½å计ç®ä¼å
级å åç»å 妿è·åä¸å°å
¨é¨å
é»è®¤ä¸º1 |
| | | globalOTDTable := businessType.GlobalOTDTable(); |
| | | |
| | | value := 0.0; |
| | | |
| | | priorityFactor := null( PriorityFactor); |
| | | traverse( macroPlan,PriorityFactor,p) |
| | | { |
| | | if( formula.StartsWith( p.Name()) ) |
| | | { |
| | | priorityFactor := p; |
| | | } |
| | | } |
| | | priorityFactor := select( businessType,PriorityFactor,pf,formula.StartsWith( pf.Name())); |
| | | |
| | | if(isnull( priorityFactor) ) |
| | | { |
| | | if(isnull( priorityFactor) ){ |
| | | value := 1.0; |
| | | } |
| | | else |
| | | { |
| | | if( "客æ·çç¥" = priorityFactor.Name()) |
| | | { |
| | | }else{ |
| | | if( "客æ·çç¥" = priorityFactor.Name()){ |
| | | obj := selectobject( priorityFactor,PriorityFactorDetail,p , p.PriorityFactorName() = "客æ·çç¥" and p.GradingName() = customerOrder.CustomerPolicy()); |
| | | gradeTarget := 1.0; |
| | | if( not isnull( obj ) ) |
| | | { |
| | | if( not isnull( obj ) ){ |
| | | gradeTarget := obj.GradeTarget(); |
| | | } |
| | | value := priorityFactor.Coefficient() * gradeTarget; |
| | | } |
| | | |
| | | if( "å¤§å¼ ç婿°´å¹³" = priorityFactor.Name()) |
| | | { |
| | | if( "å¤§å¼ ç婿°´å¹³" = priorityFactor.Name()){ |
| | | obj := selectobject( priorityFactor,PriorityFactorDetail,p , p.PriorityFactorName() = "å¤§å¼ ç婿°´å¹³" and p.GradingName() = customerOrder.SheetProfitability()); |
| | | gradeTarget := 1.0; |
| | | if( not isnull( obj ) ) |
| | | { |
| | | if( not isnull( obj ) ){ |
| | | gradeTarget := obj.GradeTarget(); |
| | | } |
| | | value := priorityFactor.Coefficient() * gradeTarget; |
| | | } |
| | | |
| | | if( "DOI" = priorityFactor.Name()) |
| | | { |
| | | if( "DOI" = priorityFactor.Name()){ |
| | | // DOIæ°æ® |
| | | obj := selectobject( globalOTDTable,Global_MappingDOI_DSI,doi,doi.ProductID() = customerOrder.ProductID()) |
| | | doi := 1.0; |
| | | if( not isnull( obj ) ) |
| | | { |
| | | if( not isnull( obj ) ){ |
| | | doi := [Real]obj.DOI(); |
| | | } |
| | | value := priorityFactor.Coefficient() * doi; |
| | | } |
| | | |
| | | if( "DSI" = priorityFactor.Name()) |
| | | { |
| | | if( "DSI" = priorityFactor.Name()){ |
| | | // DOIæ°æ® |
| | | obj := selectobject( globalOTDTable,Global_MappingDOI_DSI,doi,doi.ProductID() = customerOrder.ProductID()) |
| | | dsi := 1.0; |
| | | if( not isnull( obj ) ) |
| | | { |
| | | if( not isnull( obj ) ){ |
| | | dsi := [Real]obj.DSI(); |
| | | } |
| | | value := priorityFactor.Coefficient() * dsi; |
| | | } |
| | | |
| | | if( "ç»åå¸åºç级" = priorityFactor.Name()) |
| | | { |
| | | if( "ç»åå¸åºç级" = priorityFactor.Name()){ |
| | | obj := selectobject( priorityFactor,PriorityFactorDetail,p , p.PriorityFactorName() = "ç»åå¸åºç级" and p.GradingName() = customerOrder.SegmentPriority()); |
| | | gradeTarget := 1.0; |
| | | if( not isnull( obj ) ) |
| | | { |
| | | if( not isnull( obj ) ){ |
| | | gradeTarget := obj.GradeTarget(); |
| | | } |
| | | value := priorityFactor.Coefficient() * gradeTarget; |
| | | } |
| | | |
| | | if( "éæ±ç±»å" = priorityFactor.Name()) |
| | | { |
| | | if( "éæ±ç±»å" = priorityFactor.Name()){ |
| | | // æé¢æµ æ 颿µ çº¯é¢æµ |
| | | obj := selectobject( priorityFactor,PriorityFactorDetail,p,p.GradingName() = customerOrder.OrderType()); |
| | | gradeTarget := 1.0; |
| | | if( not isnull( obj ) ) |
| | | { |
| | | if( not isnull( obj ) ){ |
| | | gradeTarget := obj.GradeTarget(); |
| | | } |
| | | value := priorityFactor.Coefficient() * gradeTarget; |
| | | } |
| | | |
| | | if( "客æ·ç级" = priorityFactor.Name()) |
| | | { |
| | | if( "客æ·ç级" = priorityFactor.Name()){ |
| | | // éè¿æ°æ®æ¹è®¡ç®å®¢æ·ç级 |
| | | obj := selectobject( globalOTDTable,Global_MappingCustomerGrade,doi,doi.BusinessType() = customerOrder.BusinessType() and doi.Customer() = customerOrder.CustomerName()) |
| | | customerGrade := 1.0; |
| | | if( not isnull( obj ) ) |
| | | { |
| | | if( not isnull( obj ) ){ |
| | | customerGrade := [Real]obj.CustomerGrade(); |
| | | } |
| | | value := priorityFactor.Coefficient() * customerGrade; |
| | | } |
| | | |
| | | if( "订åä¸åæ¶é´" = priorityFactor.Name()) |
| | | { |
| | | if( "订åä¸åæ¶é´" = priorityFactor.Name()){ |
| | | // ä¸åæ¶é´ |
| | | orderTime := customerOrder.OrderTime(); |
| | | days := orderTime.TotalInDays() - customerOrder.EndDate().TotalInDays(); |
| | | obj := null( PriorityFactorDetail); |
| | | sortDetail := selectsortedset( priorityFactor,PriorityFactorDetail,p,[Number]p.GradingName()); |
| | | traverse( sortDetail,Elements,e ) |
| | | { |
| | | if( days >= [Number]e.GradingName() ) |
| | | { |
| | | traverse( sortDetail,Elements,e ){ |
| | | if( days >= [Number]e.GradingName() ){ |
| | | obj := e; |
| | | } |
| | | } |
| | | //obj := selectobject( priorityFactor,PriorityFactorDetails,p , p.PriorityFactorName() = "订åä¸åæ¶é´" and days >= [Number]p.GradingName()); |
| | | value := 0; |
| | | if( not isnull( obj) ) |
| | | { |
| | | if( not isnull( obj) ){ |
| | | value := priorityFactor.Coefficient() * obj.GradeTarget(); |
| | | } |
| | | |
| | | } |
| | | } |
| | | return value; |
| | |
| | | #parent: #root |
| | | StaticMethod GetRemindFormula ( |
| | | String formula, |
| | | MacroPlan macroPlan |
| | | BusinessType busenessType |
| | | ) as String |
| | | { |
| | | Description: 'ä¼å
级çç¥å
¬å¼æªå' |
| | | TextBody: |
| | | [* |
| | | // NBoTk Sep-26-2023 (created) |
| | | |
| | | str := ""; |
| | | |
| | | traverse( macroPlan,PriorityFactor,p) |
| | | { |
| | | if( formula.StartsWith( p.Name()) ) |
| | | { |
| | | traverse( busenessType,PriorityFactor,p){ |
| | | if( formula.StartsWith( p.Name()) ){ |
| | | // 夿å©ä½å符é¿åº¦ |
| | | if( p.Name().Length() = formula.Length() ) |
| | | { |
| | | if( p.Name().Length() = formula.Length() ){ |
| | | str := "" |
| | | } |
| | | else |
| | | { |
| | | }else{ |
| | | str := formula.SubString( p.Name().Length(),formula.Length() - p.Name().Length()); |
| | | } |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CalculatePriorityResult ( |
| | | String priorityPolicyName, |
| | | MacroPlan macroPlan, |
| | | GlobalOTDTable globalOTDTable |
| | | PriorityPolicy priorityPolicy, |
| | | MacroPlan macroPlan |
| | | ) |
| | | { |
| | | Description: '计ç®customerOrderä¼å
级å¾å' |
| | |
| | | [* |
| | | // NBoTk Sep-26-2023 (created) |
| | | |
| | | // å
å é¤åå²çè·å详æ
|
| | | traverse( macroPlan,PriorityResult,p){ |
| | | p.PriorityResultBusinessTypeDetail(relflush ); |
| | | p.Delete(); |
| | | } |
| | | |
| | | // 计ç®å®¢æ·è®¢åçä¼å
级å¾å åå¡«æéæ°æ® çææ°çPriorityæç»æ°æ® |
| | | traverse( macroPlan,SalesDemand.astype( CustomerOrder ),e){ |
| | | traverse( macroPlan,SalesDemand.astype( CustomerOrder ),customerOrder){ |
| | | // å
å é¤åå²çè·å详æ
|
| | | customerOrder.PriorityResult(relflush ); |
| | | |
| | | // äºä¸é¨ä¿¡æ¯ |
| | | businessType := e.BusinessType(); |
| | | businessType := priorityPolicy.BusinessType(); |
| | | |
| | | // è·å对åºäºä¸é¨è®¡ç®å
¬å¼ |
| | | priorityPolicys := selectobject( macroPlan,PriorityPolicy,p,p.BusinessType() = businessType and p.Name() = priorityPolicyName); |
| | | formula := priorityPolicys.Formula(); |
| | | formula := priorityPolicy.Formula(); |
| | | |
| | | // éå½å¤ç计ç®å
¬å¼ è·åå½å订åçå¾å |
| | | value := PriorityResult::CalculateScore( formula,e,businessType,macroPlan,0.0,globalOTDTable); |
| | | value := PriorityResult::CalculateScore( formula,customerOrder,businessType,0.0); |
| | | // çæä¼å
级å åè·åç»æ |
| | | priorityResult := macroPlan.PriorityResult(relnew,CustomerOrderID := e.ID(),BusinessType := businessType,Customer := e.CustomerName(),CustomerID := e.CustomerID(), |
| | | DemandDate := e.EndDate(),ProductID := e.ProductID(),Quantity := e.Quantity(),SalesSegmentName := e.SalesSegmentName(), |
| | | StockingPointID := e.StockingPointID(),UnitOfMeasureName := e.UnitOfMeasureName() |
| | | priorityResult := customerOrder.PriorityResult(relnew,CustomerOrderID := customerOrder.ID(),Customer := customerOrder.CustomerName(),CustomerID := customerOrder.CustomerID(), |
| | | DemandDate := customerOrder.EndDate(),ProductID := customerOrder.ProductID(),Quantity := customerOrder.Quantity(),SalesSegmentName := customerOrder.SalesSegmentName(), |
| | | StockingPointID := customerOrder.StockingPointID(),UnitOfMeasureName := customerOrder.UnitOfMeasureName() |
| | | ); |
| | | priorityResult.CustomerOrder(relset, e); |
| | | // 夿æ¯éå¢ è¿æ¯äºä¸é¨ |
| | | if( businessType.FindString( "éå¢",0 ) <> -1){ |
| | | priorityResult.PriorityResultGroupDetail( relnew,BusinessType := businessType,Customer := e.CustomerName(),CustomerID := e.CustomerID(), |
| | | DemandDate := e.EndDate(),PriorityPolicyName := priorityPolicyName,PriorityResultScore := value, |
| | | Quantity := e.Quantity(),SalesSegmentName := e.SalesSegmentName(),StockingPointID := e.StockingPointID(), |
| | | UnitOfMeasureName := e.UnitOfMeasureName(),PriorityTotalScore := value |
| | | if( businessType.BusinessTypeName().FindString( "éå¢",0 ) <> -1){ |
| | | priorityResult.PriorityResultGroupDetail( relnew,Customer := customerOrder.CustomerName(),CustomerID := customerOrder.CustomerID(), |
| | | DemandDate := customerOrder.EndDate(),PriorityPolicyName := priorityPolicy.Name(),PriorityResultScore := value, |
| | | Quantity := customerOrder.Quantity(),SalesSegmentName := customerOrder.SalesSegmentName(),StockingPointID := customerOrder.StockingPointID(), |
| | | UnitOfMeasureName := customerOrder.UnitOfMeasureName(),PriorityTotalScore := value |
| | | ); |
| | | }else{ |
| | | priorityResult.PriorityResultBusinessTypeDetail( relnew,BusinessType := businessType,Customer := e.CustomerName(),CustomerID := e.CustomerID(), |
| | | DemandDate := e.EndDate(),PriorityPolicyName := priorityPolicyName,PriorityResultScore := value, |
| | | Quantity := e.Quantity(),SalesSegmentName := e.SalesSegmentName(),StockingPointID := e.StockingPointID(), |
| | | UnitOfMeasureName := e.UnitOfMeasureName(),PriorityTotalScore := value |
| | | priorityResult.PriorityResultBusinessTypeDetail( relnew,Customer := customerOrder.CustomerName(),CustomerID := customerOrder.CustomerID(), |
| | | DemandDate := customerOrder.EndDate(),PriorityPolicyName := priorityPolicy.Name(),PriorityResultScore := value, |
| | | Quantity := customerOrder.Quantity(),SalesSegmentName := customerOrder.SalesSegmentName(),StockingPointID := customerOrder.StockingPointID(), |
| | | UnitOfMeasureName := customerOrder.UnitOfMeasureName(),PriorityTotalScore := value |
| | | ); |
| | | } |
| | | } |
| | | |
| | | // ä¼å
级å åå¤çå®æå æåºåå¡«æ°æ® |
| | | |
| | | traverse( macroPlan,PriorityResult,e){ |
| | | traverse( macroPlan,SalesDemand.astype( CustomerOrder ).PriorityResult,e){ |
| | | businessTypeScore := max( e,PriorityResultBusinessTypeDetail,p, |
| | | p.PriorityTotalScore() |
| | | ); |
| | |
| | | e.PriorityResultScore( value ); |
| | | } |
| | | |
| | | resultList := selectsortedset( macroPlan,PriorityResult,result, |
| | | resultList := selectsortedset( macroPlan,SalesDemand.astype( CustomerOrder ).PriorityResult,result, |
| | | true, |
| | | -result.PriorityResultScore() |
| | | ) |
| | |
| | | for( j := 0;j < subListCopy ; j++){ |
| | | element := resultList.Element( count1 * subListSize + j + flag ); |
| | | element.CustomerOrder().PriorityName( [String]point ); |
| | | element.Point( point ); |
| | | } |
| | | point --; |
| | | count --; |
| | |
| | | point := 10; |
| | | traverse( resultList,Elements,element){ |
| | | element.CustomerOrder().PriorityName([String]point); |
| | | element.Point( point ); |
| | | point --; |
| | | } |
| | | } |
| | |
| | | // NBoTk Sep-21-2023 (created) |
| | | |
| | | |
| | | maxPriorityResult := max( owner,PriorityResult,p, |
| | | maxPriorityResult := max( owner,SalesDemand.astype( CustomerOrder ).PriorityResult,p, |
| | | p.PriorityResultScore() |
| | | ); |
| | | |
| | |
| | | businessTypeDetails.PriorityTotalScore(topScore); |
| | | |
| | | // ä¼å
级å åå¤çå®æå æåºåå¡«æ°æ® |
| | | resultList := selectsortedset( owner,PriorityResult,result, |
| | | resultList := selectsortedset( owner,SalesDemand.astype( CustomerOrder ).PriorityResult,result, |
| | | true, |
| | | result.PriorityResultScore() |
| | | ) |
| | |
| | | { |
| | | #keys: '[414382.0.587601840]' |
| | | BaseType: 'WebButton' |
| | | Children: |
| | | [ |
| | | #child: ContextMenuPriority |
| | | ] |
| | | Properties: |
| | | [ |
| | | Image: 'QUEUE' |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component ContextMenuPriority |
| | | { |
| | | #keys: '[414996.0.112219209]' |
| | | BaseType: 'WebContextMenu' |
| | | Children: |
| | | [ |
| | | Component MenuPriorityFactor |
| | | { |
| | | #keys: '[414996.0.112219210]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | Title: 'ä¼å
级å åé
ç½®' |
| | | ] |
| | | } |
| | | Component MenuPriorityResult |
| | | { |
| | | #keys: '[414996.0.112219249]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | Title: 'ä¼å
çº§ç»æé¡µé¢' |
| | | ] |
| | | } |
| | | Component MenuPriorityPolicy |
| | | { |
| | | #keys: '[414996.0.112219311]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | Title: 'ä¼å
级çç¥é
ç½®' |
| | | ] |
| | | } |
| | | Component MenuBusinessType |
| | | { |
| | | #keys: '[414996.0.112219354]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | Title: 'äºä¸é¨&ç»ç»ç¼ç ç»´æ¤' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | ApplicationScope.ViewManager().ResetUserViewById( "PriorityTest",true); |
| | | // ApplicationScope.ViewManager().ResetUserViewById( "PriorityTest",true); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ContextMenuPriority/MenuBusinessType |
| | | Response OnClick () id:Response_TIANMA_JITUAN_ContextMenuPriority_MenuBusinessType_OnClick |
| | | { |
| | | #keys: '[414996.0.112219829]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | GroupServerCalls: true |
| | | NavigateToAction |
| | | { |
| | | ExpressionParameter.Parameters Data |
| | | { |
| | | } |
| | | ParseableTypeParameter.Parameters Component |
| | | { |
| | | ParameterType: 'internal[WebForm]' |
| | | Value: 'FormBusinessType' |
| | | } |
| | | StringActionParameter.Parameters ShowMode |
| | | { |
| | | Value: 'open' |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ContextMenuPriority/MenuPriorityFactor |
| | | Response OnClick () id:Response_TIANMA_JITUAN_ContextMenuPriority_MenuPriorityFactor_OnClick |
| | | { |
| | | #keys: '[414996.0.112219530]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | GroupServerCalls: true |
| | | NavigateToAction |
| | | { |
| | | ExpressionParameter.Parameters Data |
| | | { |
| | | } |
| | | ParseableTypeParameter.Parameters Component |
| | | { |
| | | ParameterType: 'internal[WebForm]' |
| | | Value: 'FormPriorityFactor' |
| | | } |
| | | StringActionParameter.Parameters ShowMode |
| | | { |
| | | Value: 'open' |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ContextMenuPriority/MenuPriorityPolicy |
| | | Response OnClick () id:Response_TIANMA_JITUAN_ContextMenuPriority_MenuPriorityPolicy_OnClick |
| | | { |
| | | #keys: '[414996.0.112219636]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | GroupServerCalls: true |
| | | NavigateToAction |
| | | { |
| | | ExpressionParameter.Parameters Data |
| | | { |
| | | } |
| | | ParseableTypeParameter.Parameters Component |
| | | { |
| | | ParameterType: 'internal[WebForm]' |
| | | Value: 'FormPriorityPolicy' |
| | | } |
| | | StringActionParameter.Parameters ShowMode |
| | | { |
| | | Value: 'open' |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ContextMenuPriority/MenuPriorityResult |
| | | Response OnClick () id:Response_TIANMA_JITUAN_ContextMenuPriority_MenuPriorityResult_OnClick |
| | | { |
| | | #keys: '[414996.0.112219733]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | GroupServerCalls: true |
| | | NavigateToAction |
| | | { |
| | | ExpressionParameter.Parameters Data |
| | | { |
| | | } |
| | | ParseableTypeParameter.Parameters Component |
| | | { |
| | | ParameterType: 'internal[WebForm]' |
| | | Value: 'FormPriorityResult' |
| | | } |
| | | StringActionParameter.Parameters ShowMode |
| | | { |
| | | Value: 'open' |
| | | } |
| | | } |
| | | } |
| | |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component PriorityPolicyStringList |
| | | { |
| | | #keys: '[414382.0.563131262]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component DataHolderChoosePriorityPolicy |
| | | Component DataHolderBusinessType |
| | | { |
| | | #keys: '[414382.0.563131279]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[PriorityPolicy]*' |
| | | Databinding: 'BusinessType' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component DropDownListPriorityPolicy |
| | | { |
| | | #keys: '[414996.0.100748747]' |
| | | BaseType: 'WebDropDownList' |
| | | Children: |
| | | [ |
| | | Component deContent |
| | | { |
| | | #keys: '[414996.0.100748749]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'BusinessType' |
| | | Source: 'DataHolderBusinessType' |
| | | Taborder: 0 |
| | | Transformation: 'PriorityPolicy' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: 'ä¼å
级çç¥ï¼' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component DataHolderPriorityPolicySelect |
| | | { |
| | | #keys: '[414996.0.104238409]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'PriorityPolicy' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method CalculatePriorityResult ( |
| | | String name |
| | | PriorityPolicy priorityPolicy |
| | | ) id:Method_DialogChoosePriorityPolicy_CalculatePriorityResult |
| | | { |
| | | #keys: '[414382.0.577602130]' |
| | | Body: |
| | | [* |
| | | PriorityResult::CalculatePriorityResult(name,MacroPlan,GlobalOTDTable); |
| | | PriorityResult::CalculatePriorityResult(priorityPolicy,MacroPlan); |
| | | this.Close(); |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method OpenChoose () id:Method_DialogChoosePriorityPolicy_OpenChoose |
| | | Method OpenChoose ( |
| | | String businessType |
| | | ) id:Method_DialogChoosePriorityPolicy_OpenChoose |
| | | { |
| | | #keys: '[414382.0.563950563]' |
| | | Body: |
| | | [* |
| | | ApplicationMacroPlanner.ShowFormModal( this ); |
| | | temp := select( GlobalOTDTable,BusinessType,bt,bt.BusinessTypeName() = businessType); |
| | | DataHolderBusinessType.Data( temp ); |
| | | *] |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | name := PriorityPolicyStringList.Text(); |
| | | priorityPolicy := DataHolderPriorityPolicySelect.Data( ); |
| | | dlg := construct( DialogChoosePriorityPolicy ); |
| | | dlg.CalculatePriorityResult(name); |
| | | dlg.CalculatePriorityResult(priorityPolicy); |
| | | Form.Close(); |
| | | *] |
| | | GroupServerCalls: false |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlContent/DropDownListPriorityPolicy |
| | | Response OnSelectionChanged ( |
| | | PriorityPolicy selection |
| | | ) id:Response_pnlContent_DropDownListPriorityPolicy_OnSelectionChanged |
| | | { |
| | | #keys: '[414996.0.104020395]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDropDownList_OnSelectionChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | DataHolderPriorityPolicySelect.Data( selection ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component EditBusinessType |
| | | { |
| | | #keys: '[414382.0.581576821]' |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderSelectCustomerOrder.Data.BusinessType' |
| | | Label: 'äºä¸é¨' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component EditCustomerPolicy |
| | | { |
| | | #keys: '[414382.0.581576840]' |
| | |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component DropDownStringListBusinessTypeName |
| | | { |
| | | #keys: '[414996.0.103124934]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderSelectCustomerOrder.Data.BusinessType' |
| | | Label: 'äºä¸é¨ï¼' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | data := shadow( selection ); |
| | | |
| | | DataHolderSelectCustomerOrder.Data( &data ); |
| | | businessType := select( GlobalOTDTable,BusinessType,bt,bt.BusinessTypeName() = selection.BusinessType()); |
| | | DataHolderSelectBusinessType.Data( businessType ); |
| | | |
| | | ApplicationMacroPlanner.ShowFormModal( this ); |
| | | *] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlContent/DropDownStringListBusinessTypeName |
| | | Response OnCreated () id:Response_pnlContent_DropDownStringListBusinessTypeName_OnCreated |
| | | { |
| | | #keys: '[414996.0.104591674]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | strings := ''; |
| | | traverse( GlobalOTDTable,BusinessType,bt ){ |
| | | strings := strings + bt.BusinessTypeName() + ';'; |
| | | } |
| | | if( strings.Length() <> 0 ){ |
| | | strings := strings.SubString( 0, strings.Length() - 1 ); |
| | | } |
| | | DropDownStringListBusinessTypeName.Strings( strings ); |
| | | if( DataHolderSelectCustomerOrder.Data( ).BusinessType() = ''){ |
| | | DropDownStringListBusinessTypeName.SetSelectedElementFromString( ""); |
| | | } |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlContent/DropDownStringListBusinessTypeName |
| | | Response OnSelectionChanged () id:Response_pnlContent_DropDownStringListBusinessTypeName_OnSelectionChanged |
| | | { |
| | | #keys: '[414996.0.100715406]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDropDownStringList_OnSelectionChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | businessType := select( GlobalOTDTable,BusinessType,bt,bt.BusinessTypeName() = selection); |
| | | DataHolderSelectBusinessType.Data( businessType ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component DataHolderSelectBusinessType |
| | | { |
| | | #keys: '[414996.0.104406471]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'BusinessType' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | Orientation: 'horizontal' |
| | | Padding: 'true' |
| | | Style: 'footer' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Padding: 'true' |
| | | Taborder: 0 |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | |
| | | data := shadow( selection ); |
| | | |
| | | DataHolderEditPriorityFactor.Data( &data); |
| | | DataHolderBusinessTyoeSelect.Data( selection.BusinessType()); |
| | | ApplicationMacroPlanner.ShowFormModal( this ); |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method New ( |
| | | MacroPlan owner, |
| | | String businessType |
| | | BusinessType owner |
| | | ) id:Method_DialogEditPriorityFactor_New |
| | | { |
| | | #keys: '[414382.0.593002251]' |
| | | Body: |
| | | [* |
| | | data := owner.PriorityFactor(relshadow); |
| | | data.BusinessType(businessType); |
| | | |
| | | DataHolderEditPriorityFactor.Data(&data); |
| | | |
| | | DataHolderBusinessTyoeSelect.Data( owner ); |
| | | |
| | | NewFlag.Checked( true ); |
| | | |
| | | ApplicationMacroPlanner.ShowFormModal( this ); |
| | |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | feedback := Translations::FilllingCapacity_ValidateInput(); |
| | | checkValue := not Coefficient.Text() = '' and not PriorityFactorName.Text() = ''; |
| | | |
| | | if(not checkValue ){ |
| | | feedback := Translations::PriorityFactor_CheckNameValid(); |
| | | editData := DataHolderEditPriorityFactor.Data(); |
| | | checkValue := not PriorityFactor::CheckNameValid( MacroPlan,editData.BusinessType(),[Real]Coefficient.Text(),PriorityFactorName.Text(),Desc.Text()); |
| | | } |
| | | checkValue := true; |
| | | if( PriorityFactorName.Text() = ''){ |
| | | feedback := Translations::PriorityFactor_CheckNameNull(); |
| | | checkValue := false; |
| | | } |
| | | return checkValue |
| | | *] |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | businessType := DataHolderBusinessTyoeSelect.Data( ); |
| | | if( NewFlag.Checked() ){ |
| | | // New |
| | | repeatOne := select( MacroPlan,PriorityFactor,pf,pf.Name() = PriorityFactorName.Text()); |
| | | repeatOne := select( businessType,PriorityFactor,pf,pf.Name() = PriorityFactorName.Text()); |
| | | if( not isnull( repeatOne )){ |
| | | WebMessageBox::Error( Translations::PriorityFactor_CheckNameValid() ); |
| | | }else{ |
| | |
| | | }else { |
| | | if (EditFlag.Checked() and PriorityFactorNameCache.Text() <>PriorityFactorName.Text()){ |
| | | // Edit |
| | | repeatOne:=select(MacroPlan, PriorityFactor, pf, pf.Name() = PriorityFactorName.Text()); |
| | | repeatOne:=select(businessType, PriorityFactor, pf, pf.Name() = PriorityFactorName.Text()); |
| | | if (not isnull(repeatOne)){ |
| | | WebMessageBox::Error (Translations::PriorityFactor_CheckNameValid () ); |
| | | }else{ |
| | |
| | | Databinding: 'shadow[PriorityFactor]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component DataHolderBusinessTyoeSelect |
| | | { |
| | | #keys: '[414996.0.103359298]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'BusinessType' |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method New ( |
| | | MacroPlan owner, |
| | | String businessType |
| | | BusinessType owner |
| | | ) id:Method_DialogNewPriorityPolicy_New |
| | | { |
| | | #keys: '[414382.0.489725864]' |
| | | Body: |
| | | [* |
| | | data := owner.PriorityPolicy(relshadow); |
| | | data.BusinessType(businessType); |
| | | |
| | | DataHolderNewPriorityPolicy.Data(&data); |
| | | |
| | |
| | | { |
| | | #keys: '[414382.0.489474427]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | feedback := Translations::PriorityPolicy_NullName(); |
| | | return PriorityPolicyName.Text() <> ''; |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListBusinessType |
| | | Response OnClick ( |
| | | BusinessType selection |
| | | ) id:Response_ListBusinessType_OnClick |
| | | { |
| | | #keys: '[414996.0.100701217]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebList_OnClick' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | DataHolderBusinessType.Data( selection ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | [ |
| | | #child: ListBusinessType |
| | | #child: PanelBusinessType |
| | | Component DataHolderBusinessType |
| | | { |
| | | #keys: '[414996.0.98261558]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'BusinessType' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 11 |
| | | Title: 'äºä¸é¨ä¼å
级计ç®' |
| | | Taborder: 10 |
| | | Title: 'äºä¸é¨ä¼å
级计ç®(å
¨é¨ï¼' |
| | | ] |
| | | } |
| | | Component MenuEditCustomerOrderPriority |
| | |
| | | Taborder: 13 |
| | | ] |
| | | } |
| | | Component MenuSyncInterfaceData |
| | | Component MenuPriorityResultSingle |
| | | { |
| | | #keys: '[414996.0.32330708]' |
| | | #keys: '[414996.0.100747833]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 10 |
| | | Title: '忥æ¥å£æ°æ®å°Customer orders' |
| | | Taborder: 11 |
| | | Title: 'äºä¸é¨ä¼å
级计ç®' |
| | | ] |
| | | } |
| | | ] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListSalesDemands |
| | | Response OnClick ( |
| | | CustomerOrder selection |
| | | ) id:Response_ListSalesDemands_MenuPriorityResultSingle_OnClick |
| | | { |
| | | #keys: '[414996.0.100748099]' |
| | | CanBindMultiple: false |
| | | DefinitionID => //FormSalesDemands/ListSalesDemands/Responsedef_ListSalesDemands_WebMenu_OnClick |
| | | GroupServerCalls: true |
| | | Initiator: 'MenuPriorityResultSingle' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogChoosePriorityPolicy ); |
| | | dlg.OpenChoose(selection.BusinessType()); |
| | | *] |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | |
| | | dlg := construct( DialogChoosePriorityPolicy ); |
| | | dlg.OpenChoose(); |
| | | // dlg.OpenChoose(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | DataType: 'BusinessType' |
| | | Source: 'DataHolderBusinessTypeSelect' |
| | | Taborder: 0 |
| | | Transformation: 'PriorityFactor' |
| | | ] |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | Taborder: 3 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormPriorityFactorGrading/Component_ListPriorityFactorGrading.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component ListPriorityFactorGrading |
| | | Component ListPriorityFactorGrading id:ListPriorityFactorGrading_667 |
| | | { |
| | | #keys: '[414382.0.479530865]' |
| | | #keys: '[414996.0.108723948]' |
| | | BaseType: 'WebList' |
| | | Children: |
| | | [ |
| | | Component DataExtractorPriorityFactorGrading961 |
| | | { |
| | | #keys: '[414382.0.479530866]' |
| | | #keys: '[414996.0.108723949]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'PriorityFactor' |
| | | Source: 'DataHolderPriorityFactor' |
| | | Source: 'DataHolderPriorityFactorSelect' |
| | | Taborder: 0 |
| | | Transformation: 'PriorityFactorDetail' |
| | | ] |
| | | } |
| | | #child: listActionBarPagePriorityFactorGrading |
| | | #child: listActionBarPagePriorityFactorGrading_1 |
| | | Component DataSetLevelPriorityFactorGrading |
| | | { |
| | | #keys: '[414382.0.479530871]' |
| | | #keys: '[414996.0.108723951]' |
| | | BaseType: 'WebDataSetLevel' |
| | | Children: |
| | | [ |
| | | #child: listContextMenuPriorityFactorGrading |
| | | #child: listContextMenuPriorityFactorGrading_1 |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | Taborder: 5 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListPriorityFactorGrading_WebMenu_OnClick |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListPriorityFactorGrading_667_WebMenu_OnClick |
| | | { |
| | | #keys: '[414382.0.482374475]' |
| | | #keys: '[414996.0.108723941]' |
| | | Initiator: 'WebMenu' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | Component listActionBarPagePriorityFactorGrading id:listActionBarPagePriorityFactorGrading_1 |
| | | { |
| | | #keys: '[414996.0.108723950]' |
| | | BaseType: 'listActionBarPage' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormPriorityFactorGrading/Component_listContextMenuPriorityFactorGrading.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component listContextMenuPriorityFactorGrading |
| | | Component listContextMenuPriorityFactorGrading id:listContextMenuPriorityFactorGrading_1 |
| | | { |
| | | #keys: '[414382.0.479530873]' |
| | | #keys: '[414996.0.108723952]' |
| | | BaseType: 'listContextMenu' |
| | | Children: |
| | | [ |
| | | Component MenuEditPriorityFactorGrading |
| | | { |
| | | #keys: '[414996.0.32342387]' |
| | | #keys: '[414996.0.108723953]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | |
| | | } |
| | | Component MenuDeletePriorityFactorGrading |
| | | { |
| | | #keys: '[414996.0.32342398]' |
| | | #keys: '[414996.0.108723954]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | |
| | | } |
| | | Component MenuNewPriorityFactorGrading |
| | | { |
| | | #keys: '[414996.0.40230778]' |
| | | #keys: '[414996.0.108723955]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: DataHolderBusinessTypeSelect |
| | | Response OnDataChanged () id:Response_FormPriorityFactor_DataHolderBusinessTypeSelect_OnDataChanged |
| | | { |
| | | #keys: '[414996.0.110940955]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | DataHolderPriorityFactorSelect.Data( null( PriorityFactor )); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: DropDownListBusinessType |
| | | Response OnSelectionChanged ( |
| | | BusinessType selection |
| | | ) id:Response_FormPriorityFactor_DropDownListBusinessType_OnSelectionChanged |
| | | { |
| | | #keys: '[414996.0.111638798]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDropDownList_OnSelectionChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | DataHolderBusinessTypeSelect.Data( selection ); |
| | | *] |
| | | } |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormPriorityFactorGrading/Response_ListPriorityFactorGrading_MenuDeletePriorityFactorGrading_OnClick.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPriorityFactorGrading |
| | | #parent: ListPriorityFactorGrading_667 |
| | | Response OnClick ( |
| | | structured[PriorityFactorDetail] selction |
| | | ) id:Response_ListPriorityFactorGrading_MenuDeletePriorityFactorGrading_OnClick |
| | | ) id:Response_ListPriorityFactorGrading_667_MenuDeletePriorityFactorGrading_OnClick |
| | | { |
| | | #keys: '[414996.0.36022233]' |
| | | #keys: '[414996.0.108723946]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPriorityFactorGrading/Responsedef_ListPriorityFactorGrading_WebMenu_OnClick |
| | | DefinitionID => /ListPriorityFactorGrading_667/Responsedef_ListPriorityFactorGrading_667_WebMenu_OnClick |
| | | GroupServerCalls: true |
| | | Initiator: 'MenuDeletePriorityFactorGrading' |
| | | QuillAction |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPriorityFactorGrading_667 |
| | | Response OnClick ( |
| | | PriorityFactorDetail selction |
| | | ) id:Response_ListPriorityFactorGrading_667_MenuEditPriorityFactorGrading_OnClick |
| | | { |
| | | #keys: '[414996.0.108723945]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPriorityFactorGrading_667/Responsedef_ListPriorityFactorGrading_667_WebMenu_OnClick |
| | | GroupServerCalls: true |
| | | Initiator: 'MenuEditPriorityFactorGrading' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogEditPriorityFactorDetail ); |
| | | dlg.Edit( selction ); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPriorityFactorGrading_667 |
| | | Response OnClick () id:Response_ListPriorityFactorGrading_667_MenuNewPriorityFactorGrading_OnClick |
| | | { |
| | | #keys: '[414996.0.108723944]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPriorityFactorGrading_667/Responsedef_ListPriorityFactorGrading_667_WebMenu_OnClick |
| | | GroupServerCalls: true |
| | | Initiator: 'MenuNewPriorityFactorGrading' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogEditPriorityFactorDetail ); |
| | | dlg.New( DataHolderPriorityFactorSelect.Data( )); |
| | | *] |
| | | } |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormPriorityFactorGrading/Response_ListPriorityFactorGrading_OnDoubleClick.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPriorityFactorGrading |
| | | #parent: ListPriorityFactorGrading_667 |
| | | Response OnDoubleClick ( |
| | | PriorityFactorDetail selection |
| | | ) id:Response_ListPriorityFactorGrading_OnDoubleClick |
| | | ) id:Response_ListPriorityFactorGrading_667_OnDoubleClick |
| | | { |
| | | #keys: '[414996.0.62960783]' |
| | | #keys: '[414996.0.108723942]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebList_OnDoubleClick' |
| | | GroupServerCalls: true |
| | |
| | | Body: |
| | | [* |
| | | // åå§åä¼å
级å å |
| | | PriorityFactor::InitData( MacroPlan); |
| | | businessType := DataHolderBusinessTypeSelect.Data( ); |
| | | if( not isnull( businessType )){ |
| | | PriorityFactor::InitData( businessType ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | DefinitionID => /ListPriorityFactor/Responsedef_ListPriorityFactor_WebMenu_OnClick |
| | | GroupServerCalls: true |
| | | Initiator: 'MenuNewPriorityFactor' |
| | | Precondition: |
| | | [* |
| | | busenessType := DataHolderBusinessTypeSelect.Data( ); |
| | | return not isnull( busenessType ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | |
| | | dlg := construct( DialogEditPriorityFactor ); |
| | | dlg.New( MacroPlan,"" ); |
| | | dlg.New( DataHolderBusinessTypeSelect.Data( ) ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebMenu_OnClick' |
| | | GroupServerCalls: true |
| | | Precondition: |
| | | [* |
| | | businessType := DataHolderBusinessTypeSelect.Data( ); |
| | | return not isnull( businessType ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogEditPriorityFactor ); |
| | | dlg.New( MacroPlan,""); |
| | | dlg.New( DataHolderBusinessTypeSelect.Data( )); |
| | | *] |
| | | } |
| | | } |
| | |
| | | Databinding: 'PriorityFactor' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component DropDownStringListBusinessType |
| | | { |
| | | #keys: '[414382.0.461144262]' |
| | | BaseType: 'WebDropDownStringList' |
| | | Properties: |
| | | [ |
| | | Label: 'äºä¸é¨:' |
| | | Taborder: 0 |
| | | Visible: false |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | #child: ListPriorityFactor |
| | | Component DataHolderPriorityFactorDetailsSelect |
| | | Component DataHolderBusinessTypeSelect |
| | | { |
| | | #keys: '[414382.0.482103344]' |
| | | #keys: '[414996.0.98260335]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[PriorityFactorDetail]*' |
| | | Databinding: 'BusinessType' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component DataHolderPriorityFactorBusinessType |
| | | Component DropDownListBusinessType |
| | | { |
| | | #keys: '[414382.0.539205233]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[BusinessType]*' |
| | | #keys: '[414996.0.111638646]' |
| | | BaseType: 'WebDropDownList' |
| | | Children: |
| | | [ |
| | | Component DataExtractorPriorityFactorBusinessType |
| | | Component DataExtractorBusinessType |
| | | { |
| | | #keys: '[414382.0.584060499]' |
| | | #keys: '[414996.0.111638648]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | DisplayField: 'BusinessTypeName' |
| | | Label: 'äºä¸é¨ï¼' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | #child: ListPriorityFactorGrading_667 |
| | | Component LabelPriorityFactor |
| | | { |
| | | #keys: '[414996.0.110901253]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: 'ä¼å
级å åç»åï¼' |
| | | Taborder: 4 |
| | | Text: ' ' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'structured[PriorityPolicy]' |
| | | Source: 'DataHolderPriorityPolicyShowList' |
| | | DataType: 'BusinessType' |
| | | Source: 'DataHolderBusinessTypeSelect' |
| | | Taborder: 0 |
| | | Transformation: 'Elements' |
| | | Transformation: 'PriorityPolicy' |
| | | ] |
| | | } |
| | | #child: listActionBarPagePriorityPolicy |
| | |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderPriorityFactorSelect.Data.Coefficient' |
| | | Label: 'å åçç³»æ°' |
| | | Taborder: 0 |
| | | ] |
| | |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderEditPriorityPolicy.Data.Name' |
| | | Label: 'ä¼å
级çç¥åç§°:' |
| | | Taborder: 0 |
| | | ] |
| | |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderEditPriorityPolicy.Data.Formula' |
| | | Label: 'å
¬å¼:' |
| | | Taborder: 1 |
| | | ] |
| | |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderEditPriorityPolicy.Data.CalculateValue' |
| | | Label: '计ç®å¼:' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | Properties: |
| | | [ |
| | | Label: 'æ·»å ' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component Buttonplus |
| | |
| | | Properties: |
| | | [ |
| | | Label: '+' |
| | | Taborder: 2 |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component ButtonSubtract |
| | |
| | | Properties: |
| | | [ |
| | | Label: '-' |
| | | Taborder: 3 |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component ButtonMultiply |
| | |
| | | Properties: |
| | | [ |
| | | Label: 'x' |
| | | Taborder: 4 |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | Component ButtonDivide |
| | |
| | | Properties: |
| | | [ |
| | | Label: '/' |
| | | Taborder: 5 |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component ButtonLeftParenthesis |
| | |
| | | Properties: |
| | | [ |
| | | Label: '(' |
| | | Taborder: 6 |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | | Component ButtonRightParenthesis |
| | |
| | | Properties: |
| | | [ |
| | | Label: ')' |
| | | Taborder: 7 |
| | | Taborder: 8 |
| | | ] |
| | | } |
| | | Component ButtonRollBack |
| | |
| | | Properties: |
| | | [ |
| | | Label: '<-' |
| | | Taborder: 8 |
| | | Taborder: 9 |
| | | ] |
| | | } |
| | | Component DropDownStringList |
| | | Component DropDownListPriorityFactor |
| | | { |
| | | #keys: '[414382.0.501480353]' |
| | | BaseType: 'WebDropDownStringList' |
| | | #keys: '[414996.0.100761502]' |
| | | BaseType: 'WebDropDownList' |
| | | Children: |
| | | [ |
| | | Component DataExtractorPriorityPolicyOperationButton |
| | | { |
| | | #keys: '[414996.0.100761504]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'BusinessType' |
| | | Source: 'DataHolderBusinessTypeSelect' |
| | | Taborder: 0 |
| | | Transformation: 'PriorityFactor' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: 'ä¼å
级å å' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component DataHolderPriorityFactorSelect |
| | | { |
| | | #keys: '[414996.0.104017667]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'PriorityFactor' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | Title: 'å é¤' |
| | | ] |
| | | } |
| | | Component MenuDefault |
| | | { |
| | | #keys: '[414996.0.112126742]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 6 |
| | | Title: '设为é»è®¤çç¥' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: DataHolderBusinessTypeSelect |
| | | Response OnDataChanged () id:Response_FormPriorityPolicy_DataHolderBusinessTypeSelect_OnDataChanged |
| | | { |
| | | #keys: '[414996.0.112168439]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: DropDownListBusinessType_640 |
| | | Response OnSelectionChanged ( |
| | | BusinessType selection |
| | | ) id:Response_FormPriorityFactor_DropDownListBusinessType_OnSelectionChanged_144 |
| | | { |
| | | #keys: '[414996.0.108713440]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDropDownList_OnSelectionChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | DataHolderBusinessTypeSelect.Data( selection ); |
| | | |
| | | DataHolderEditPriorityPolicy.Data( shadow(null( PriorityPolicy ))) |
| | | DataHolderPriorityFactorSelect.Data( null( PriorityFactor )); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPriorityPolicy |
| | | Response OnClick ( |
| | | PriorityPolicy selection |
| | | ) id:Response_ListPriorityPolicy_MenuDefault_OnClick |
| | | { |
| | | #keys: '[414996.0.112126800]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPriorityPolicy/Responsedef_ListPriorityPolicy_WebMenu_OnClick |
| | | GroupServerCalls: true |
| | | Initiator: 'MenuDefault' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | selection.SetDefault(); |
| | | *] |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | |
| | | selection.Delete(); |
| | | *] |
| | | GroupServerCalls: false |
| | |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogNewPriorityPolicy ); |
| | | businessType := PriorityPolicyBusinessType.Text(); |
| | | dlg.Edit( selection); |
| | | |
| | | PanelPriorityPolicyOperationName.Text(selection.Name()); |
| | | |
| | | businessType := PriorityPolicyBusinessType.Text(); |
| | | str := PriorityFactor::GetNameList( MacroPlan, businessType); |
| | | DropDownStringList.Strings(str); |
| | | |
| | | LabelFormula.Text(selection.Formula()); |
| | | LabelCalculateValue.Text(selection.CalculateValue()); |
| | | |
| | |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPriorityPolicy/Responsedef_ListPriorityPolicy_WebMenu_OnClick |
| | | Initiator: 'MenuNew' |
| | | Precondition: |
| | | [* |
| | | businessType := DataHolderBusinessTypeSelect.Data( ); |
| | | return not isnull( businessType ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogNewPriorityPolicy ); |
| | | businessType := PriorityPolicyBusinessType.Text(); |
| | | dlg.New( MacroPlan, businessType); |
| | | dlg.New( DataHolderBusinessTypeSelect.Data( )); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | PanelPriorityPolicyOperationName.Text(selection.Name()); |
| | | |
| | | businessType := PriorityPolicyBusinessType.Text(); |
| | | str := PriorityFactor::GetNameList( MacroPlan, businessType); |
| | | DropDownStringList.Strings(str); |
| | | |
| | | LabelFormula.Text(selection.Formula()); |
| | | LabelCalculateValue.Text(selection.CalculateValue()); |
| | | |
| | | data := shadow( selection ); |
| | | DataHolderEditPriorityPolicy.Data( &data ); |
| | | DataHolderEditPriorityPolicy.Data(&data); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | DataHolderEditPriorityPolicy.Data().Formula(LabelFormula.Text()); |
| | | DataHolderEditPriorityPolicy.Data().CalculateValue(LabelCalculateValue.Text()); |
| | | DataHolderEditPriorityPolicy.Data().Commit(); |
| | | priorityPolicy := DataHolderEditPriorityPolicy.Data(); |
| | | priorityPolicy.Formula(LabelFormula.Text()); |
| | | priorityPolicy.CalculateValue(LabelCalculateValue.Text()); |
| | | priorityPolicy.Commit(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | feedback := "请å
鿩䏿¡ä¼å
级çç¥ååè¿è¡ç¼è¾å
¬å¼"; |
| | | check := PanelPriorityPolicyOperationName.Text() = ""; |
| | | |
| | | if( not check) |
| | | { |
| | | if( not check){ |
| | | // å¤æè¯¥ä¼å
级å 忝å¦å·²ç»è¢«éæ© |
| | | check := LabelFormula.Text() ~ DropDownStringList.Text(); |
| | | check := LabelFormula.Text() ~ DataHolderPriorityFactorSelect.Data().Name(); |
| | | feedback := "该ä¼å
级å åå·²è¢«éæ©." |
| | | } |
| | | |
| | |
| | | Body: |
| | | [* |
| | | coefficient := LabelPriorityPolicyCoefficient.Text(); |
| | | text := DropDownStringList.Text(); |
| | | text := DataHolderPriorityFactorSelect.Data().Name(); |
| | | |
| | | formulaText := LabelFormula.Text() + text; |
| | | LabelFormula.Text(formulaText); |
| | | |
| | | textCalculate := DropDownStringList.Text() + "[" + coefficient + "*L]"; |
| | | textCalculate := text + "[" + coefficient + "*L]"; |
| | | calculateText := LabelCalculateValue.Text() + textCalculate; |
| | | LabelCalculateValue.Text(calculateText); |
| | | *] |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | businessType := PriorityPolicyBusinessType.Text(); |
| | | formulaText := PriorityPolicy::RollBackStr( MacroPlan,businessType,LabelFormula.Text()); |
| | | businessType := DataHolderBusinessTypeSelect.Data( ); |
| | | formulaText := PriorityPolicy::RollBackStr( businessType,LabelFormula.Text()); |
| | | LabelFormula.Text(formulaText); |
| | | |
| | | calculateTest := PriorityPolicy::RollBackCalcStr( MacroPlan,businessType,LabelCalculateValue.Text()); |
| | | calculateTest := PriorityPolicy::RollBackCalcStr(businessType,LabelCalculateValue.Text()); |
| | | LabelCalculateValue.Text(calculateTest); |
| | | *] |
| | | GroupServerCalls: false |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelPriorityPolicyOperationButton/DropDownListPriorityFactor |
| | | Response OnSelectionChanged ( |
| | | PriorityFactor selection |
| | | ) id:Response_PanelPriorityPolicyOperationButton_DropDownListPriorityFactor_OnSelectionChanged |
| | | { |
| | | #keys: '[414996.0.103947279]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebDropDownList_OnSelectionChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | DataHolderPriorityFactorSelect.Data( selection ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | Component PriorityPolicyBusinessType |
| | | #child: ListPriorityPolicy |
| | | #child: PanelPriorityPolicyOperation |
| | | Component DataHolderBusinessTypeSelect |
| | | { |
| | | #keys: '[414382.0.486330570]' |
| | | BaseType: 'WebDropDownStringList' |
| | | #keys: '[414382.0.585736261]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'BusinessType' |
| | | Properties: |
| | | [ |
| | | Label: 'äºä¸é¨:' |
| | | Taborder: 0 |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component DataHolderPriorityPolicy |
| | | Component DataHolderEditPriorityPolicy |
| | | { |
| | | #keys: '[414382.0.487792124]' |
| | | #keys: '[414996.0.100743970]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[PriorityPolicy]*' |
| | | Children: |
| | | [ |
| | | Component DataExtractorPriorityPolicy216 |
| | | { |
| | | #keys: '[414382.0.593061574]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'PriorityPolicy' |
| | | ] |
| | | } |
| | | ] |
| | | Databinding: 'shadow[PriorityPolicy]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | #child: ListPriorityPolicy |
| | | #child: PanelPriorityPolicyOperation |
| | | Component DataHolderEditPriorityPolicy |
| | | Component DropDownListBusinessType id:DropDownListBusinessType_640 |
| | | { |
| | | #keys: '[414382.0.505995334]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'shadow[PriorityPolicy]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | Component DataHolderPriorityPolicyBusinessType |
| | | { |
| | | #keys: '[414382.0.585736261]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[BusinessType]*' |
| | | #keys: '[414996.0.108713442]' |
| | | BaseType: 'WebDropDownList' |
| | | Children: |
| | | [ |
| | | Component DataExtractorPriorityPolicyBusinessType |
| | | Component DataExtractorBusinessType id:DataExtractorBusinessType_582 |
| | | { |
| | | #keys: '[414382.0.585207663]' |
| | | #keys: '[414996.0.108713443]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component DataHolderPriorityPolicyFactor |
| | | { |
| | | #keys: '[414382.0.585208237]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[PriorityFactor]*' |
| | | Children: |
| | | [ |
| | | Component DataExtractorPriorityPolicyFactor |
| | | { |
| | | #keys: '[414382.0.585705356]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'PriorityFactor' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | | Component DataHolderPriorityPolicyShowList |
| | | { |
| | | #keys: '[414382.0.593062135]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[PriorityPolicy]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | DisplayField: 'BusinessTypeName' |
| | | Label: 'äºä¸é¨ï¼' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | |
| | | DataType: 'MacroPlan' |
| | | Source: 'MacroPlan' |
| | | Taborder: 0 |
| | | Transformation: 'PriorityResult' |
| | | Transformation: 'SalesDemand.astype(CustomerOrder).PriorityResult' |
| | | ] |
| | | } |
| | | #child: listActionBarPagePriorityResult |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SalesSegmentName","title":"SalesSegmentName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SalesSegmentName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockingPointID","title":"StockingPointID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockingPointID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Customer","title":"Customer","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Customer"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"BusinessType","title":"BusinessType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"BusinessType"}},{"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":"DemandDate","title":"DemandDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"DemandDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PriorityResultScore","title":"PriorityResultScore","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PriorityResultScore"}}]' |
| | | Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SalesSegmentName","title":"SalesSegmentName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerOrder.SalesSegmentName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerOrder.ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockingPointID","title":"StockingPointID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerOrder.StockingPointID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Customer","title":"Customer","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Customer"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"BusinessType","title":"BusinessType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerOrder.BusinessType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerOrder.Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"UnitOfMeasureName","title":"UnitOfMeasureName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerOrder.UnitOfMeasureName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"DemandDate","title":"DemandDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"DemandDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PriorityResultScore","title":"PriorityResultScore","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PriorityResultScore"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerOrder.PriorityName","title":"ä¼å
级","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerOrder.PriorityName"}}]' |
| | | ContextMenu: 'listContextMenuPriorityResult' |
| | | Taborder: 2 |
| | | ] |
| | |
| | | [ |
| | | Taborder: 0 |
| | | ] |
| | | ResponseDefinitions: |
| | | [ |
| | | DelegatedResponseDefinition OnClick id:Responsedef_ListPriorityResult_WebMenu_OnClick |
| | | { |
| | | #keys: '[414996.0.110950623]' |
| | | Initiator: 'WebMenu' |
| | | IsInherited: false |
| | | ResponseType: 'OnClick' |
| | | Arguments: |
| | | [ |
| | | ResponseDefinitionArgument selection |
| | | { |
| | | #keys: '[217.0.8298830]' |
| | | Binding: 'this.Selection()' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | |
| | | [ |
| | | Taborder: 1 |
| | | Title: 'ä¼å
çº§ç»ææç»' |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | { |
| | | #keys: '[414382.0.506312202]' |
| | | BaseType: 'listContextMenu' |
| | | Children: |
| | | [ |
| | | Component MenuPriorityResultUrgentPin |
| | | { |
| | | #keys: '[414996.0.106332966]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Description: 'Urgent pin ' |
| | | Taborder: 3 |
| | | Title: 'ç´§æ¥ç½®é¡¶' |
| | | ] |
| | | } |
| | | Component MenuPriorityResultSingle id:MenuPriorityResultSingle_265 |
| | | { |
| | | #keys: '[414996.0.108722831]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | Title: 'ä¼å
级çç¥' |
| | | ] |
| | | } |
| | | Component MenuGetCustomerOrder |
| | | { |
| | | #keys: '[414996.0.115030568]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Description: 'Urgent pin ' |
| | | Taborder: 5 |
| | | Title: 'è·åè®¢åæ°æ®' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPriorityResult |
| | | Response OnClick () id:Response_ListPriorityResult_MenuGetCustomerOrder_OnClick |
| | | { |
| | | #keys: '[414996.0.113920515]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPriorityResult/Responsedef_ListPriorityResult_WebMenu_OnClick |
| | | GroupServerCalls: true |
| | | Initiator: 'MenuGetCustomerOrder' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | traverse( MacroPlan,SalesDemand.astype( CustomerOrder ),co){ |
| | | defaultPriorityPolicy := select( GlobalOTDTable,BusinessType.PriorityPolicy,pp,pp.BusinessType().BusinessTypeName() = co.BusinessType() and pp.isDefault() ); |
| | | if( not isnull( defaultPriorityPolicy )){ |
| | | |
| | | } |
| | | } |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPriorityResult |
| | | Response OnClick ( |
| | | PriorityResult selection |
| | | ) id:Response_ListPriorityResult_MenuPriorityResultSingle_OnClick |
| | | { |
| | | #keys: '[414996.0.108722987]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPriorityResult/Responsedef_ListPriorityResult_WebMenu_OnClick |
| | | GroupServerCalls: true |
| | | Initiator: 'MenuPriorityResultSingle' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dlg := construct( DialogChoosePriorityPolicy ); |
| | | dlg.OpenChoose(selection.CustomerOrder().BusinessType()); |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPriorityResult |
| | | Response OnClick ( |
| | | PriorityResult selection |
| | | ) id:Response_ListPriorityResult_MenuPriorityResultUrgentPin_OnClick |
| | | { |
| | | #keys: '[414996.0.110950641]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPriorityResult/Responsedef_ListPriorityResult_WebMenu_OnClick |
| | | GroupServerCalls: true |
| | | Initiator: 'MenuPriorityResultUrgentPin' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | flag := WebMessageBox::Question( "ç¡®è®¤ç´§æ¥æå®è¯¥éæ±åï¼","Yes|No"); |
| | | if( flag = 0 ){ |
| | | selection.OldPriorityName( selection.CustomerOrder().PriorityName()); |
| | | selection.CustomerOrder().PriorityName( [String]11 ); |
| | | selection.Point( 11 ); |
| | | WebMessageBox::Question( "æåï¼","Yes"); |
| | | } |
| | | *] |
| | | } |
| | | } |
| | |
| | | mode: 'open' |
| | | rowPosition: 1 |
| | | rowSpan: 11 |
| | | columnPosition: 9 |
| | | columnSpan: 4 |
| | | columnPosition: 1 |
| | | columnSpan: 2 |
| | | } |
| | | components |
| | | { |
| | |
| | | layout |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 13 |
| | | rowSpan: 11 |
| | | rowPosition: 12 |
| | | rowSpan: 13 |
| | | columnPosition: 1 |
| | | columnSpan: 4 |
| | | columnSpan: 8 |
| | | } |
| | | components |
| | | { |
| | |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 1 |
| | | rowSpan: 12 |
| | | columnPosition: 1 |
| | | columnSpan: 4 |
| | | rowSpan: 11 |
| | | columnPosition: 3 |
| | | columnSpan: 3 |
| | | } |
| | | components |
| | | { |
| | |
| | | mode: 'open' |
| | | rowPosition: 1 |
| | | rowSpan: 11 |
| | | columnPosition: 5 |
| | | columnSpan: 4 |
| | | columnPosition: 6 |
| | | columnSpan: 3 |
| | | } |
| | | components |
| | | { |
| | |
| | | layout |
| | | { |
| | | mode: 'open' |
| | | rowPosition: 12 |
| | | rowSpan: 14 |
| | | columnPosition: 5 |
| | | columnSpan: 7 |
| | | rowPosition: 1 |
| | | rowSpan: 19 |
| | | columnPosition: 9 |
| | | columnSpan: 6 |
| | | } |
| | | components |
| | | { |
| | |
| | | dataType: 'string' |
| | | index: 1 |
| | | subtotals: '' |
| | | width: 433 |
| | | width: 214 |
| | | } |
| | | column_CalculateValue |
| | | { |
| | |
| | | dataType: 'string' |
| | | index: 2 |
| | | subtotals: '' |
| | | width: 644 |
| | | width: 315 |
| | | } |
| | | column_Desc |
| | | { |
| | |
| | | userconfigurableinformation |
| | | { |
| | | } |
| | | index: 0 |
| | | image: '' |
| | | page: '' |
| | | group: '' |
| | | index: 0 |
| | | description: '' |
| | | } |
| | | formatversion: 2 |