已重命名1个文件
已修改32个文件
已添加9个文件
已删除3个文件
| | |
| | | { |
| | | DefaultText: 'Please input validate value !' |
| | | } |
| | | } |
| | | InfoMessage PriorityFactor_CheckNameValid |
| | | { |
| | | DefaultText: '该ä¼å
级å ååç§°å·²åå¨ï¼' |
| | | } |
| | | } |
| | |
| | | #parent: #root |
| | | StaticMethod CreateData ( |
| | | GlobalOTDTable owner, |
| | | MacroPlan macroPlan, |
| | | String businessName |
| | | ) |
| | | { |
| | |
| | | TextBody: |
| | | [* |
| | | // NBoTk Sep-14-2023 (created) |
| | | |
| | | info('test' ) |
| | | fillingCapacityOrders := selectset( owner,FillingCapacityOrder,fillingOrder, |
| | | not fillingOrder.IsFilling() |
| | | ); |
| | |
| | | { |
| | | e.SchemeName(schemeName); |
| | | e.IsFilling(true); |
| | | filllingCapacityOrderScheme.FillingCapacityOrder(relinsert, e); |
| | | } |
| | | |
| | | // çæ¬å· |
| | | verNoOrder := select( filllingCapacityOrderScheme,FillingCapacityOrder,o, |
| | | o.VerNo() <> '' |
| | | ) |
| | | |
| | | // éè¦å°éå®è®¢ååé¢å®è®¢ååæ¶ä¿åå°æ¹æ¡ä¸ |
| | | traverse( owner,CustomerAndForecastOrder,order) |
| | | { |
| | | |
| | | fillingOrder := owner.FillingCapacityOrder(relnew,BusinessType := order.BusinessType(),Customer := order.Customer(),CustomerID := order.CustomerID(), |
| | | DemandDate := order.DemandDate(),ForecastDemandDate := order.ForecastDemandDate(),IsFilling := true, |
| | | OrderType := 'ææ',PanelBigSheetQuantity := order.PanelBigSheetQuantity(),ProductID := order.ProductID(), |
| | | Quantity := order.Quantity(),SalesSegmentName := order.SalesSegmentName(),SalesAmount := order.SalesAmount(), |
| | | SchemeName := schemeName,StockingPointID := order.StockingPointID(),UnitOfMeasureName := order.UnitOfMeasureName(), |
| | | VerNo := verNoOrder.VerNo() |
| | | ); |
| | | |
| | | filllingCapacityOrderScheme.FillingCapacityOrder(relinsert, fillingOrder); |
| | | } |
| | | //traverse( owner,CustomerAndForecastOrder,order) |
| | | //{ |
| | | // |
| | | // fillingOrder := owner.FillingCapacityOrder(relnew,BusinessType := order.BusinessType(),Customer := order.Customer(),CustomerID := order.CustomerID(), |
| | | // DemandDate := order.DemandDate(),ForecastDemandDate := order.ForecastDemandDate(),IsFilling := true, |
| | | // OrderType := 'ææ',PanelBigSheetQuantity := order.PanelBigSheetQuantity(),ProductID := order.ProductID(), |
| | | // Quantity := order.Quantity(),SalesSegmentName := order.SalesSegmentName(),SalesAmount := order.SalesAmount(), |
| | | // SchemeName := schemeName,StockingPointID := order.StockingPointID(),UnitOfMeasureName := order.UnitOfMeasureName(), |
| | | // VerNo := order.VerNo() |
| | | // ); |
| | | // |
| | | // filllingCapacityOrderScheme.FillingCapacityOrder(relinsert, fillingOrder); |
| | | //} |
| | | |
| | | //// æ°å¢åç¾/ææè®¢å 订åä¿¡æ¯å å
¥å¡«äº§ |
| | | //traverse( owner,H_Forecast,hf) |
| | | //{ |
| | | // fillingOrder := owner.FillingCapacityOrder(relnew,BusinessType := hf.Department(),Customer := hf.CustomName(),CustomerID := hf.CustomCode(), |
| | | // DemandDate := Date::Today(),ForecastDemandDate := Date::Today(),IsFilling := true, |
| | | // OrderType := 'ææ',PanelBigSheetQuantity := 0,ProductID := '', |
| | | // Quantity := hf.ForecastQty(),SalesSegmentName := '',SalesAmount := 0, |
| | | // SchemeName := schemeName,StockingPointID := '',UnitOfMeasureName := hf.Util(), |
| | | // VerNo := '' |
| | | // ); |
| | | // |
| | | // filllingCapacityOrderScheme.FillingCapacityOrder(relinsert, fillingOrder); |
| | | //} |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod DeleteDetails ( |
| | | MacroPlan owner, |
| | | String schemeName |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // NBoTk Sep-25-2023 (created) |
| | | |
| | | details := selectset( owner,FillingCapacityOrder,f,true); |
| | | |
| | | traverse( details,Elements,e) |
| | | { |
| | | owner.FillingCapacityOrder(reldelete,e); |
| | | } |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CheckNameValid ( |
| | | MacroPlan owner, |
| | | String businessType, |
| | | Real coefficient, |
| | | String desc, |
| | | String name |
| | | ) as Boolean |
| | | { |
| | | TextBody: |
| | | [* |
| | | // NBoTk Sep-22-2023 (created) |
| | | |
| | | value := true; |
| | | |
| | | // åç§°ç¸åè·³è¿ |
| | | obj := selectobject( owner,PriorityFactor,p, |
| | | p.BusinessType() = businessType and p.Coefficient() = coefficient and p.Name() = name and p.Desc() = desc |
| | | ); |
| | | |
| | | if(not isnull( obj) ) |
| | | { |
| | | value := false; |
| | | } |
| | | |
| | | return value; |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitData ( |
| | | MacroPlan owner |
| | | MacroPlan owner, |
| | | String businessType |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // NBoTk Sep-15-2023 (created) |
| | | |
| | | info(" init PriorutyFactor"); |
| | | |
| | | // businessType |
| | | // result := "éå¢é¢æ¿;ä¸ä¸æ¾ç¤ºäºä¸é¨;å¤åCELL;éæ¾;è¿å¨å¥åº·;è¿å¨å¥åº·äºä¸é¨;ææºäºä¸é¨;ç¹ç§æ¾ç¤º;汽车çµåäºä¸é¨;车载æ¾ç¤ºäºä¸é¨;ITäºä¸é¨"; |
| | | businessTypeList := construct( structured[String]); |
| | | businessTypeList.Add( "éå¢é¢æ¿"); |
| | | businessTypeList.Add( "ä¸ä¸æ¾ç¤ºäºä¸é¨"); |
| | | businessTypeList.Add( "å¤åCELL"); |
| | | businessTypeList.Add( "éæ¾"); |
| | | businessTypeList.Add( "è¿å¨å¥åº·"); |
| | | businessTypeList.Add( "è¿å¨å¥åº·äºä¸é¨"); |
| | | businessTypeList.Add( "ææºäºä¸é¨é¢æ¿"); |
| | | businessTypeList.Add( "ç¹ç§æ¾ç¤º"); |
| | | businessTypeList.Add( "汽车çµåäºä¸é¨é¢æ¿"); |
| | | businessTypeList.Add( "车载æ¾ç¤ºäºä¸é¨"); |
| | | businessTypeList.Add( "ITäºä¸é¨"); |
| | | // æ·»å äºä¸é¨å¯¹åºçé¢å¶ä¼å
级å åæ°æ® |
| | | owner.PriorityFactor(relnew,Name := "客æ·çç¥" ,Desc := "å°äºä¸é¨è®¡ç®çä¼å
çº§ï¼æè¯¥ç»å项æ¯ä¾é¶æ¢¯ç¡®å®è¯¥é¡¹å¾åãå¦ï¼81%â¤Xâ¤100% 5åï¼61%â¤Xâ¤80% 4å", BusinessType := businessType ); |
| | | owner.PriorityFactor(relnew,Name := "客æ·ç级" ,Desc := "æ ¹æ®éæ±æ°æ®ä¸å®¢æ·ï¼å¹é
客æ·ç级",BusinessType := businessType); |
| | | owner.PriorityFactor(relnew,Name := "å¤§å¼ ç婿°´å¹³" ,Desc := "1ãè·å客æ·*SKUå¤§å¼ ç婿° 2ãå®ä¹å®¢æ·*SKUå¤§å¼ ç婿°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := businessType ); |
| | | owner.PriorityFactor(relnew,Name := "ç»åå¸åºç级" ,Desc := "1ãè·å客æ·*SKU对åºç»åå¸åºç级 2ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKU对åºç»åå¸åºè¯åç级ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := businessType ); |
| | | owner.PriorityFactor(relnew,Name := "éæ±ç±»å" ,Desc := "å¹é
ä¸åéæ±ç§ç±»ï¼å¾å°å¯¹åºå¾å", BusinessType := businessType ); |
| | | owner.PriorityFactor(relnew,Name := "订åä¸åæ¶é´" ,Desc := "æ ¹æ®éæ±è®¢åä¸ä¸åæ¶é´ä¸éæ±æ¶é´å·®å¼ï¼å¹é
é¶æ¢¯å¾å", BusinessType := businessType ); |
| | | owner.PriorityFactor(relnew,Name := "产åç级" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := businessType ); |
| | | owner.PriorityFactor(relnew,Name := "DOI" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := businessType ); |
| | | owner.PriorityFactor(relnew,Name := "DSI" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := businessType ); |
| | | |
| | | traverse( businessTypeList,Elements,b) |
| | | // ä¼å
级å åç»å |
| | | priorityFactorList := selectset( owner,PriorityFactor,p, |
| | | p.BusinessType() = businessType |
| | | ); |
| | | |
| | | traverse( priorityFactorList,Elements,e) |
| | | { |
| | | owner.PriorityFactor(relnew,Name := "客æ·çç¥" ,Desc := "å°äºä¸é¨è®¡ç®çä¼å
çº§ï¼æè¯¥ç»å项æ¯ä¾é¶æ¢¯ç¡®å®è¯¥é¡¹å¾åãå¦ï¼81%â¤Xâ¤100% 5åï¼61%â¤Xâ¤80% 4å", BusinessType := b ); |
| | | owner.PriorityFactor(relnew,Name := "客æ·ç级" ,Desc := "æ ¹æ®éæ±æ°æ®ä¸å®¢æ·ï¼å¹é
客æ·ç级",BusinessType := b); |
| | | owner.PriorityFactor(relnew,Name := "å¤§å¼ ç婿°´å¹³" ,Desc := "1ãè·å客æ·*SKUå¤§å¼ ç婿° 2ãå®ä¹å®¢æ·*SKUå¤§å¼ ç婿°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := b ); |
| | | owner.PriorityFactor(relnew,Name := "ç»åå¸åºç级" ,Desc := "1ãè·å客æ·*SKU对åºç»åå¸åºç级 2ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKU对åºç»åå¸åºè¯åç级ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := b ); |
| | | owner.PriorityFactor(relnew,Name := "éæ±ç±»å" ,Desc := "å¹é
ä¸åéæ±ç§ç±»ï¼å¾å°å¯¹åºå¾å", BusinessType := b ); |
| | | owner.PriorityFactor(relnew,Name := "订åä¸åæ¶é´" ,Desc := "æ ¹æ®éæ±è®¢åä¸ä¸åæ¶é´ä¸éæ±æ¶é´å·®å¼ï¼å¹é
é¶æ¢¯å¾å", BusinessType := b ); |
| | | owner.PriorityFactor(relnew,Name := "产åç级" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := b ); |
| | | owner.PriorityFactor(relnew,Name := "DOI" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := b ); |
| | | owner.PriorityFactor(relnew,Name := "DSI" ,Desc := "1ãè·å客æ·*SKU DOI&DSIæ° 2ãå®ä¹å®¢æ·*SKUDOI&DSIæ°é¶æ¢¯å¾å 3ãå¹é
éæ±æ°æ®ä¸å®¢æ·åSKUæ°æ®ï¼å¾å°å¯¹åºé¶æ¢¯å¾å", BusinessType := b ); |
| | | PriorityFactorDetails::InitData( owner,e); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitData ( |
| | | MacroPlan owner |
| | | MacroPlan owner, |
| | | PriorityFactor priorityFactor |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // NBoTk Sep-17-2023 (created) |
| | | |
| | | info(" init PriorutyFactorDetails" ); |
| | | |
| | | |
| | | |
| | | traverse( owner, PriorityFactor , p) |
| | | isBusinessType := false; |
| | | if( priorityFactor.BusinessType() <> "éå¢é¢æ¿" ) |
| | | { |
| | | isBusinessType := false; |
| | | if( p.BusinessType() <> "éå¢é¢æ¿" ) |
| | | { |
| | | isBusinessType := true; |
| | | } |
| | | |
| | | p.PriorityFactorDetails(relnew,BusinessType := p.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | IsRange := false,GradingName := "大ç",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := p.Name()); |
| | | p.PriorityFactorDetails(relnew,BusinessType := p.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | IsRange := false,GradingName := "å°ç",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := p.Name()); |
| | | p.PriorityFactorDetails(relnew,BusinessType := p.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 0, |
| | | IsRange := false,GradingName := "æå¹³",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := p.Name()); |
| | | p.PriorityFactorDetails(relnew,BusinessType := p.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := -3, |
| | | IsRange := false,GradingName := "å°äº",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := p.Name()); |
| | | p.PriorityFactorDetails(relnew,BusinessType := p.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := -5, |
| | | IsRange := false,GradingName := "大äº",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := p.Name()); |
| | | isBusinessType := true; |
| | | } |
| | | |
| | | priorityFactor.PriorityFactorDetails(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 5, |
| | | IsRange := false,GradingName := "大ç",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetails(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 3, |
| | | IsRange := false,GradingName := "å°ç",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetails(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := 0, |
| | | IsRange := false,GradingName := "æå¹³",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetails(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := -3, |
| | | IsRange := false,GradingName := "å°äº",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | priorityFactor.PriorityFactorDetails(relnew,BusinessType := priorityFactor.BusinessType(), IsBusinessType := isBusinessType,GradeTarget := -5, |
| | | IsRange := false,GradingName := "大äº",RangeMin := 0.0,RangeMax := 0.0,PriorityFactorName := priorityFactor.Name()); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod RollBackCalcStr ( |
| | | MacroPlan owner, |
| | | String businessType, |
| | | String stringData |
| | | ) as String |
| | | { |
| | | TextBody: |
| | | [* |
| | | // NBoTk Sep-21-2023 (created) |
| | | value := stringData; |
| | | |
| | | symbolList := construct( structured[String]); |
| | | symbolList.Add( "+") |
| | | symbolList.Add( "-") |
| | | symbolList.Add( "x") |
| | | symbolList.Add( "/") |
| | | symbolList.Add( "(") |
| | | symbolList.Add( ")") |
| | | |
| | | traverse( symbolList,Elements,e) |
| | | { |
| | | if( stringData.EndsWith( e )) |
| | | { |
| | | end := stringData.Length() - e.Length(); |
| | | value := stringData.SubString( 0,end); |
| | | } |
| | | } |
| | | |
| | | nameList := PriorityFactor::GetDataByBusinessType( owner,businessType); |
| | | traverse( nameList,Elements,e) |
| | | { |
| | | nameText := e.Name() + "[" + [String]e.Coefficient() + "*L]" |
| | | if( stringData.EndsWith( nameText)) |
| | | { |
| | | end := stringData.Length() - nameText.Length(); |
| | | value := stringData.SubString( 0,end); |
| | | } |
| | | } |
| | | |
| | | return value; |
| | | *] |
| | | } |
| | |
| | | Image: 'ELEMENT_BLUE' |
| | | Taborder: 0 |
| | | Title: 'å¤åCELL' |
| | | Tooltip: 'Filling Capacity Scheme List' |
| | | Tooltip: 'å¤åCELL' |
| | | ] |
| | | } |
| | | Component MenuSalesFillingSchemeDetail |
| | |
| | | Image: 'ELEMENT_ORANGE' |
| | | Taborder: 1 |
| | | Title: 'å¡«äº§æ¹æ¡å表' |
| | | Tooltip: 'å¡«äº§æ¹æ¡å表' |
| | | ] |
| | | } |
| | | Component MenuSalesFillingSchemeHistorical |
| | |
| | | Image: 'ELEMENT_ORANGE' |
| | | Taborder: 2 |
| | | Title: '填产åå²è®¢åå表' |
| | | Tooltip: '填产åå²è®¢åå表' |
| | | ] |
| | | } |
| | | ] |
| | |
| | | Body: |
| | | [* |
| | | // Open view |
| | | //ApplicationMacroPlanner.OpenView( 'Filling Capacity Scheme List',ButtonSalesFillingCapacity); |
| | | |
| | | ApplicationMacroPlanner.OpenView( 'FillingCapacityOrder', ButtonSalesFillingCapacity ); |
| | | //ApplicationMacroPlanner.OpenView( 'FillingCapacityOrder', ButtonSalesFillingCapacity ); |
| | | ApplicationScope.ViewManager().ResetUserViewById( "FillingCapacityOrder",true); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | // Open view |
| | | //ApplicationMacroPlanner.OpenView( "FillingCapacitySchemeList",ButtonSalesFillingCapacity); |
| | | ApplicationMacroPlanner.OpenView( "FillingCapacityOrderHistorical"); |
| | | ApplicationScope.ViewManager().ResetUserViewById( "FillingCapacityOrderHistorical",true); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | // Open view |
| | | //ApplicationMacroPlanner.OpenView( "FillingCapacitySchemeList",ButtonSalesFillingCapacity); |
| | | ApplicationMacroPlanner.OpenView( "FillingCapacitySchemeList"); |
| | | ApplicationScope.ViewManager().ResetUserViewById( "FillingCapacitySchemeList",true); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | // OnOk |
| | | this.ApplyChanges(); |
| | | |
| | | businessType := DataHolderBusinessType.Data().BusinessTypeName(); |
| | | DataHolderBusinessType.Data().Commit(); |
| | | |
| | | //if( not isnull( DataHolderForm.Data() ) ) |
| | | //{ |
| | | // // Access the form, select the new assumption |
| | | // DataHolderForm.Data().ListAssumptions().SelectByKey( DataHolderDialogData.Data().WrappedInstance().Key() ); |
| | | //} |
| | | // PriorityFactor |
| | | PriorityFactor::InitData( MacroPlan,businessType); |
| | | |
| | | this.Close(); |
| | | *] |
| | |
| | | Precondition: |
| | | [* |
| | | feedback := Translations::FilllingCapacity_ValidateInput(); |
| | | |
| | | checkValue := not Coefficient.Text() = '' |
| | | |
| | | return checkValue; |
| | | if(not checkValue ) |
| | | { |
| | | feedback := Translations::PriorityFactor_CheckNameValid(); |
| | | editData := DataHolderEditPriorityFactor.Data(); |
| | | checkValue := not PriorityFactor::CheckNameValid( MacroPlan,editData.BusinessType(),[Real]Coefficient.Text(),PriorityFactorName.Text(),Desc.Text()); |
| | | |
| | | } |
| | | |
| | | return checkValue |
| | | *] |
| | | QuillAction |
| | | { |
| | |
| | | DataBinding: 'DataHolderEditPriorityFactorDetails.Data.RangeMax' |
| | | Label: 'æå¤§å¼' |
| | | Taborder: 4 |
| | | Visible: false |
| | | ] |
| | | } |
| | | Component RangeMin |
| | |
| | | [ |
| | | DataBinding: 'DataHolderEditPriorityFactorDetails.Data.RangeMin' |
| | | Label: 'æå°å¼' |
| | | Taborder: 5 |
| | | ReadOnly: true |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component GradeDesc |
| | |
| | | FixedSize: false |
| | | Label: 'æè¿°' |
| | | SizeRatio: 3 |
| | | Taborder: 6 |
| | | Taborder: 8 |
| | | ] |
| | | } |
| | | Component PriorityFactorName |
| | |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component RangeMaxTest |
| | | { |
| | | #keys: '[414382.0.523235618]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: 'æå¤§å¼' |
| | | Taborder: 5 |
| | | Visible: false |
| | | ] |
| | | } |
| | | Component RangeMinText |
| | | { |
| | | #keys: '[414382.0.523361009]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | Label: 'æå°å¼' |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | |
| | | if( isRange.Checked() ) |
| | | { |
| | | checkValue := not RangeMax.Text() = '' and not RangeMin.Text() = ''; |
| | | checkValue := not RangeMax.Text() = '' and not RangeMin.Text() = '' and RangeMax.Text() > RangeMin.Text(); |
| | | } |
| | | |
| | | return checkValue; |
| | |
| | | [* |
| | | if( this.Checked()) |
| | | { |
| | | RangeMax.ReadOnly(false); |
| | | RangeMin.ReadOnly(false) |
| | | RangeMax.Visible(true); |
| | | RangeMin.Visible(true); |
| | | RangeMaxTest.Visible(false); |
| | | RangeMinText.Visible(false); |
| | | } |
| | | else{ |
| | | RangeMax.ReadOnly(true); |
| | | RangeMin.ReadOnly(true) |
| | | RangeMax.Visible(false); |
| | | RangeMin.Visible(false); |
| | | RangeMaxTest.Visible(true) |
| | | RangeMaxTest.Text([String]DataHolderEditPriorityFactorDetails.Data().RangeMax()); |
| | | RangeMinText.Visible(true) |
| | | RangeMinText.Text([String]DataHolderEditPriorityFactorDetails.Data().RangeMin()); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pnlContent/isRange |
| | | Response OnCreated () id:Response_pnlContent_isRange_OnCreated |
| | | { |
| | | #keys: '[414382.0.523105450]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( this.Checked()) |
| | | { |
| | | RangeMax.Visible(true); |
| | | RangeMin.Visible(true); |
| | | RangeMaxTest.Visible(false); |
| | | RangeMinText.Visible(false); |
| | | } |
| | | else{ |
| | | RangeMax.Visible(false); |
| | | RangeMin.Visible(false); |
| | | RangeMaxTest.Visible(true) |
| | | RangeMaxTest.Text([String]DataHolderEditPriorityFactorDetails.Data().RangeMax()); |
| | | RangeMinText.Visible(true) |
| | | RangeMinText.Text([String]DataHolderEditPriorityFactorDetails.Data().RangeMin()); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | [ |
| | | AllowEmpty: true |
| | | DataBinding: 'DataHolderFillingCapacityOrder.Data.ProductID' |
| | | Label: 'ProductID' |
| | | Strings: 'productID' |
| | | Label: 'ååç¼ç ' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | AllowEmpty: true |
| | | DataBinding: 'DataHolderFillingCapacityOrder.Data.SalesSegmentName' |
| | | Label: 'SalesSegmentName' |
| | | Strings: 'SalesSagmentName' |
| | | Label: 'éå®é¨é¨' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | AllowEmpty: true |
| | | DataBinding: 'DataHolderFillingCapacityOrder.Data.StockingPointID' |
| | | Label: 'StockPointID' |
| | | Strings: 'StockPointID' |
| | | Label: 'åºåç¹' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | AllowEmpty: true |
| | | DataBinding: 'DataHolderFillingCapacityOrder.Data.Customer' |
| | | Label: 'Customer' |
| | | Strings: 'Customer' |
| | | Label: '客æ·' |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderFillingCapacityOrder.Data.Quantity' |
| | | Label: 'Quantity' |
| | | Label: 'æ°é' |
| | | Mask: 'REAL' |
| | | Taborder: 4 |
| | | ] |
| | |
| | | [ |
| | | AllowEmpty: true |
| | | DataBinding: 'DataHolderFillingCapacityOrder.Data.UnitOfMeasureName' |
| | | Label: 'UnitOfMeasureName' |
| | | Label: 'æ°éåä½' |
| | | Strings: 'UnitName' |
| | | Taborder: 5 |
| | | ] |
| | |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderFillingCapacityOrder.Data.SalesAmount' |
| | | Label: 'SalesAmount' |
| | | Label: 'éå®é¢' |
| | | Mask: 'NUMBER' |
| | | Taborder: 6 |
| | | ] |
| | |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderFillingCapacityOrder.Data.DemandDate' |
| | | Label: 'Demand Date' |
| | | Label: 'éæ±æ¥æ' |
| | | Taborder: 8 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderFillingCapacityOrder.Data.ForecastDemandDate' |
| | | Label: 'Forecast Demand Date' |
| | | Label: 'é¢æéæ±æ¥æ' |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderFilling.Data.VerNo' |
| | | Label: 'VerNo' |
| | | Label: 'çæ¬å·' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | selection.Delete() |
| | | FilllingCapacityOrderScheme::DeleteDetails( MacroPlan,selection.SchemeName()); |
| | | selection.Delete(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListFillingScheme |
| | | Response OnSelectionChanged ( |
| | | FilllingCapacityOrderScheme selection |
| | | ) id:Response_ListFillingScheme_OnSelectionChanged |
| | | { |
| | | #keys: '[414382.0.532640606]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebList_OnSelectionChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | schemeName := selection.SchemeName(); |
| | | list := selectset( MacroPlan,FillingCapacityOrder,order,order.SchemeName() = selection.SchemeName()); |
| | | DataHolderFillingScheme.Data(&list); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | BaseType: 'listContextMenu' |
| | | Children: |
| | | [ |
| | | Component MenuInitData |
| | | { |
| | | #keys: '[414382.0.482890505]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'GEAR' |
| | | Taborder: 3 |
| | | Title: 'Init Data' |
| | | ] |
| | | } |
| | | Component MenuEdit |
| | | { |
| | | #keys: '[414382.0.485622263]' |
| | |
| | | Properties: |
| | | [ |
| | | Image: 'GEAR_EDIT' |
| | | Taborder: 4 |
| | | Taborder: 3 |
| | | Title: 'ç¼è¾' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: DataHolderPriorityFactorBusinessType |
| | | Response OnCreated () id:Response_FormPriorityFactor_DataHolderPriorityFactorBusinessType_OnCreated |
| | | { |
| | | #keys: '[414382.0.539235155]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | businessTypeList := selectset( GlobalOTDTable,BusinessType,b,true); |
| | | this.Data(&businessTypeList); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: DataHolderPriorityFactorBusinessType |
| | | Response OnDataChanged () id:Response_FormPriorityFactor_DataHolderPriorityFactorBusinessType_OnDataChanged |
| | | { |
| | | #keys: '[414382.0.539235291]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | businessTypeList := selectset( GlobalOTDTable,BusinessType,b,true); |
| | | this.Data(&businessTypeList); |
| | | strings := BusinessType::GetBusinessNameStr( GlobalOTDTable ); |
| | | DropDownStringListBusinessType.Strings(strings); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | #parent: DropDownStringListBusinessType |
| | | Response OnCreated () id:Response_FormPriorityFactor_DropDownStringListBusinessType_OnCreated |
| | | { |
| | | #keys: '[414382.0.461201807]' |
| | | #keys: '[414382.0.539375553]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | info( "selection" ); |
| | | list := PriorityFactor::GetDataByBusinessType( MacroPlan, DropDownStringListBusinessType.Text()); |
| | | DataHolderPriorityFactorSelect.Data(&list); |
| | | *] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPriorityFactor |
| | | Response OnSelectionChanged ( |
| | | PriorityFactor selection |
| | | ) id:Response_ListPriorityFactor_OnSelectionChanged |
| | | { |
| | | #keys: '[414382.0.541275298]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebList_OnSelectionChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | info( "selecion change" ); |
| | | detaisls := PriorityFactorDetails::GetDataByPriorityFactor( selection, MacroPlan); |
| | | DataHolderPriorityFactorDetailsSelect.Data(&detaisls); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component DataHolderPriorityFactorBusinessType |
| | | { |
| | | #keys: '[414382.0.539205233]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[BusinessType]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: '宿' |
| | | Label: 'ä¿å' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'æ·»å å å' |
| | | Label: 'æ·»å ' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | selection.Delete(); |
| | | |
| | | selection.Delete(); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | str := PriorityFactor::GetNameList( MacroPlan, businessType); |
| | | DropDownStringList.Strings(str); |
| | | |
| | | LabelFormula.Text(selection.Formula()); |
| | | LabelCalculateValue.Text(selection.CalculateValue()); |
| | | |
| | | data := shadow( selection ); |
| | | DataHolderEditPriorityPolicy.Data( &data ); |
| | | |
| | | //coefficient := PriorityFactor::GetCoeffcientByName( MacroPlan,businessType,DropDownStringList.Text()); |
| | | //LabelPriorityPolicyCoefficient.Text([String]coefficient); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | #keys: '[414382.0.502145449]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | feedback := "该ä¼å
级å åå·²è¢«éæ©." |
| | | |
| | | return not LabelFormula.Text() ~ DropDownStringList.Text(); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | |
| | | formulaText := PriorityPolicy::RollBackStr( MacroPlan,businessType,LabelFormula.Text()); |
| | | LabelFormula.Text(formulaText); |
| | | |
| | | calculateTest := PriorityPolicy::RollBackStr( MacroPlan,businessType,LabelCalculateValue.Text()); |
| | | calculateTest := PriorityPolicy::RollBackCalcStr( MacroPlan,businessType,LabelCalculateValue.Text()); |
| | | LabelCalculateValue.Text(calculateTest); |
| | | *] |
| | | GroupServerCalls: false |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelPriorityPolicyOperationButton/DropDownStringList |
| | | Response OnCreated () id:Response_PanelPriorityPolicyOperationButton_DropDownStringList_OnCreated |
| | | { |
| | | #keys: '[414382.0.539822108]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | strs := PriorityFactor::GetNameList( MacroPlan,DropDownStringList.Text()); |
| | | this.Strings(strs); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | info( "select changeed" ); |
| | | businessType := PriorityPolicyBusinessType.Text(); |
| | | coefficient := PriorityFactor::GetCoeffcientByName( MacroPlan,businessType,DropDownStringList.Text()); |
| | | LabelPriorityPolicyCoefficient.Text([String]coefficient); |
| | | info("coefficient := " + [String]coefficient ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | userconfigurableinformation |
| | | { |
| | | } |
| | | image: '' |
| | | page: '' |
| | | group: '' |
| | | index: 14 |
| | | image: '' |
| | | index: 0 |
| | | description: '' |
| | | } |
| | | formatversion: 2 |
| | |
| | | { |
| | | viewcontents |
| | | { |
| | | image: '' |
| | | page: '' |
| | | group: '' |
| | | index: 0 |
| | | image: '' |
| | | description: '' |
| | | } |
| | | formatversion: 2 |
| | |
| | | userconfigurableinformation |
| | | { |
| | | } |
| | | group: '' |
| | | index: 0 |
| | | image: '' |
| | | page: '' |
| | | group: '' |
| | | description: '' |
| | | } |
| | | formatversion: 2 |
| | |
| | | { |
| | | viewcontents |
| | | { |
| | | userconfigurableinformation |
| | | { |
| | | } |
| | | forms |
| | | { |
| | | form_FormCustomerAndForecastOrder |
| | |
| | | } |
| | | } |
| | | } |
| | | userconfigurableinformation |
| | | { |
| | | } |
| | | page: '' |
| | | group: '' |
| | | index: 15 |
| | | image: '' |
| | | description: '' |
| | | index: 0 |
| | | } |
| | | formatversion: 2 |
| | | id: 'FillingCapacityOrderHistorical' |
| | | name: 'FillingCapacityOrderHistorical' |
| | | isglobal: false |
| | | isroot: true |
| | | isroot: false |
| | | } |