已重命名2个文件
已复制2个文件
已添加30个文件
已修改13个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation CapacityAndSaleBudgeChartRowProduct_CapacityAndSaleBudgeChartRow_CapacityAndSaleBudgeChartRow_CapacityAndSaleBudgeChartRowProduct |
| | | { |
| | | #keys: '1[414384.0.852471810]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide CapacityAndSaleBudgeChartRow |
| | | { |
| | | #keys: '3[414384.0.852471812][414384.0.852471811][414384.0.852471813]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: CapacityAndSaleBudgeChartRowProduct |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide CapacityAndSaleBudgeChartRowProduct |
| | | { |
| | | #keys: '3[414384.0.852471815][414384.0.852471814][414384.0.852471816]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: CapacityAndSaleBudgeChartRow |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation CapacityAndSaleBudgeChartRow_ScenarioManager_ScenarioManager_CapacityAndSaleBudgeChartRow |
| | | { |
| | | #keys: '1[414384.0.852471828]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide ScenarioManager |
| | | { |
| | | #keys: '3[414384.0.852471830][414384.0.852471829][414384.0.852471831]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: CapacityAndSaleBudgeChartRow |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide CapacityAndSaleBudgeChartRow |
| | | { |
| | | #keys: '3[414384.0.852471833][414384.0.852471832][414384.0.852471834]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: ScenarioManager |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method GetCapacityInPCSInYear () as Real |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-18-2023 (created) |
| | | result := 0.0; |
| | | for( i := 1; i <= 12; i := i + 1 ) { |
| | | field := Reflection::FindAttribute( "CapacityAndSaleBudge", "CapacityInPCSInMonth" + [String]i ); |
| | | result := result + field.GetReal( this ); |
| | | } |
| | | return result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method GetCapacityInSheetInHalfYear ( |
| | | Number halfNo |
| | | ) as Real |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-18-2023 (created) |
| | | result := 0.0; |
| | | fromMonth := 1 + ( halfNo - 1 ) * 6; |
| | | toMonth := 6 + ( halfNo - 1 ) * 6; |
| | | for( i := fromMonth; i <= toMonth; i := i + 1 ) { |
| | | field := Reflection::FindAttribute( "CapacityAndSaleBudge", "CapacityInSheetInMonth" + [String]i ); |
| | | result := result + field.GetReal( this ); |
| | | } |
| | | return result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method GetCapacityInSheetInSeason ( |
| | | Number seasonNo |
| | | ) as Real |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-18-2023 (created) |
| | | result := 0.0; |
| | | fromMonth := 1 + ( seasonNo - 1 ) * 3; |
| | | toMonth := 3 + ( seasonNo - 1 ) * 3; |
| | | for( i := fromMonth; i <= toMonth; i := i + 1 ) { |
| | | field := Reflection::FindAttribute( "CapacityAndSaleBudge", "CapacityInSheetInMonth" + [String]i ); |
| | | result := result + field.GetReal( this ); |
| | | } |
| | | return result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetSheetByHalfYear ( |
| | | Strings productNo, |
| | | GlobalOTDTable parent, |
| | | Number yearNo, |
| | | Number halfNo |
| | | ) as Real |
| | | { |
| | | Description: 'äº§è½ - 宿°å¤§å¼ ' |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-18-2023 (created) |
| | | result := sum( parent, |
| | | CapacityAndSaleBudge, |
| | | item, |
| | | productNo.Find( item.ProductCode() ) > -1, |
| | | item.GetCapacityInSheetInHalfYear( halfNo ) ); |
| | | return result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetSheetBySeason ( |
| | | Strings productNo, |
| | | GlobalOTDTable parent, |
| | | Number yearNo, |
| | | Number seasonNo |
| | | ) as Real |
| | | { |
| | | Description: 'äº§è½ - 宿°å¤§å¼ ' |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-18-2023 (created) |
| | | result := sum( parent, |
| | | CapacityAndSaleBudge, |
| | | item, |
| | | productNo.Find( item.ProductCode() ) > -1, |
| | | item.GetCapacityInSheetInSeason( seasonNo ) ); |
| | | return result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Create ( |
| | | ScenarioManager parent, |
| | | String timeStringAndScenarioName, |
| | | String businessTypeOrOrgCode, |
| | | Real quantity |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-20-2023 (created) |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute BusinessType |
| | | { |
| | | #keys: '3[414384.0.850180080][414384.0.850180079][414384.0.850180081]' |
| | | Description: 'äºä¸é¨' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute PlaceOfProductionOfArray |
| | | { |
| | | #keys: '3[414384.0.850180083][414384.0.850180082][414384.0.850180084]' |
| | | Description: 'ç»ç»ç¼ç ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: BusinessType |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method GetProductCodes () as owning Strings |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-18-2023 (created) |
| | | return selectuniquevalues( this, CapacityAndSaleBudgeChartRowProduct, item, item.ProductCode() ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CreateIfNotExist ( |
| | | ScenarioManager scenarioManager, |
| | | String businessType, |
| | | String placeOfProductionOfArray |
| | | ) as CapacityAndSaleBudgeChartRow |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-18-2023 (created) |
| | | value := select( scenarioManager, CapacityAndSaleBudgeChartRow, row, row.BusinessType() = businessType and row.PlaceOfProductionOfArray() = placeOfProductionOfArray ); |
| | | if( isnull( value ) ) { |
| | | value := scenarioManager.CapacityAndSaleBudgeChartRow( relnew, BusinessType := businessType, PlaceOfProductionOfArray := placeOfProductionOfArray ); |
| | | } |
| | | return value; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetProductCodesByBusinessType ( |
| | | CapacityAndSaleBudgeChartRows list, |
| | | String businessTyoe |
| | | ) as owning Strings |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-20-2023 (created) |
| | | return selectuniquevalues( list, Elements, item, |
| | | item.BusinessType() = businessTyoe, |
| | | item.BusinessType() ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetProductCodesByPlaceOfProductionOfArray ( |
| | | CapacityAndSaleBudgeChartRows list, |
| | | String placeOfProductionOfArray |
| | | ) as owning Strings |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-20-2023 (created) |
| | | return selectuniquevalues( list, Elements, item, |
| | | item.PlaceOfProductionOfArray() = placeOfProductionOfArray, |
| | | item.PlaceOfProductionOfArray() ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type CapacityAndSaleBudgeChartRow |
| | | { |
| | | #keys: '5[414384.0.852471790][414384.0.852471788][0.0.0][414384.0.852471789][414384.0.852471791]' |
| | | BaseType: Object |
| | | StructuredName: 'CapacityAndSaleBudgeChartRows' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProductCode |
| | | { |
| | | #keys: '3[414384.0.852471849][414384.0.852471848][414384.0.852471850]' |
| | | Description: '产åç¼ç ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: ProductCode |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CreateIfNotExist ( |
| | | CapacityAndSaleBudgeChartRow parent, |
| | | String productCode |
| | | ) as CapacityAndSaleBudgeChartRowProduct |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-18-2023 (created) |
| | | value := select( parent, CapacityAndSaleBudgeChartRowProduct, item, item.ProductCode() = productCode ); |
| | | if( isnull( value ) ) { |
| | | parent.CapacityAndSaleBudgeChartRowProduct( relnew, ProductCode := productCode ); |
| | | } |
| | | return value; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type CapacityAndSaleBudgeChartRowProduct |
| | | { |
| | | #keys: '5[414384.0.852471769][414384.0.852471767][0.0.0][414384.0.852471768][414384.0.852471770]' |
| | | BaseType: Object |
| | | StructuredName: 'CapacityAndSaleBudgeChartRowProducts' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method GetCallJSONString () as String |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-20-2023 (created) |
| | | conv := DateTimeToString::StandardConverter(); |
| | | conv.SetCustomConversion(); |
| | | conv.CustomFormatString( 'yyyyMMdd' ); |
| | | |
| | | requestJSON := JSON::Object(); |
| | | requestJSON.Add( "BusinessType", this.BusinessType() ); |
| | | requestJSON.Add( "DataID", this.DataID() ); |
| | | requestJSON.Add( "DeliveryDate", conv.Convert( this.DeliveryDate().DateTime() ) ); |
| | | requestJSON.Add( "MRPCalverNo", this.MRPCalverNo() ); |
| | | requestJSON.Add( "OrganCode", this.OrganCode() ); |
| | | requestJSON.Add( "ProductID", this.ProductID() ); |
| | | requestJSON.Add( "ProductName", this.ProductName() ); |
| | | requestJSON.Add( "ProvideCode", this.ProviderCode() ); |
| | | requestJSON.Add( "ProviderName", this.ProviderName() ); |
| | | requestJSON.Add( "Quantity", this.Quantity() ); |
| | | requestJSON.Add( "StockingPointID", this.StockingPointID() ); |
| | | requestJSON.Add( "UnitOfMeasure", this.UnitOfMeasure() ); |
| | | |
| | | return requestJSON.AsString(); |
| | | *] |
| | | } |
| | |
| | | info( "CapacityAndSaleBudge::InitTestData" ) |
| | | this.CapacityAndSaleBudge( relflush ); |
| | | for( i := 1; i < 100; i := i + 1 ) { |
| | | this.CapacityAndSaleBudge( relnew, |
| | | row := this.CapacityAndSaleBudge( relnew, |
| | | PlaceOfProductionOfArray := "颿¿åºå°" + [String]Number::Random( 1, 10 ), |
| | | BusinessType := "äºä¸é¨" + [String]Number::Random( 1, 10 ), |
| | | CapacityInPCSInMonth1 := Number::Random( 1, 10000 ), |
| | |
| | | SaleAmountInMonth11 := Number::Random( 1, 10000 ), |
| | | SaleAmountInMonth12 := Number::Random( 1, 10000 ) |
| | | ); |
| | | row.CapacityInPCSTotal( row.GetCapacityInPCSInYear() ); |
| | | row.CapacityInSheetTotal( row.GetCapacityInSheetInYear() ); |
| | | row.SaleAmountTotal( row.GetSaleAmountInYear() ); |
| | | } |
| | | *] |
| | | } |
ÎļþÃû´Ó _Main/BL/Type_MappingForecast/StaticMethod_GetByMonth.qbl ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetByMonth ( |
| | | StaticMethod GetBalanceByMonth ( |
| | | Strings productCodes, |
| | | MacroPlan parent, |
| | | Number monthNo, |
| | | Number yearNo |
| | | Number yearNo, |
| | | Number monthNo |
| | | ) as Real |
| | | { |
| | | Description: 'todo changeParent' |
ÎļþÃû´Ó _Main/BL/Type_MappingForecast/StaticMethod_GetByYear.qbl ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetByYear ( |
| | | StaticMethod GetBalanceByYear ( |
| | | Strings productCodes, |
| | | MacroPlan parent, |
| | | Number yearNo |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetQuantityByHalfYear ( |
| | | Strings productCodes, |
| | | MacroPlan parent, |
| | | Number yearNo, |
| | | Number halfNo |
| | | ) as Real |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-19-2023 (created) |
| | | value := 0.0; |
| | | |
| | | startMonth := 1 + ( halfNo - 1 ) * 6; |
| | | endMonth := 6 + ( halfNo - 1 ) * 6; |
| | | |
| | | for( monthNo := startMonth; monthNo <= endMonth; monthNo := monthNo + 1 ) { |
| | | value := value + MappingForecast::GetQuantityByMonth( productCodes, parent, yearNo, monthNo ); |
| | | } |
| | | |
| | | return value; |
| | | *] |
| | | } |
copy from _Main/BL/Type_MappingForecast/StaticMethod_GetByMonth.qbl
copy to _Main/BL/Type_MappingForecast/StaticMethod_GetQuantityByMonth.qbl
Îļþ´Ó _Main/BL/Type_MappingForecast/StaticMethod_GetByMonth.qbl ¸´ÖÆ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetByMonth ( |
| | | StaticMethod GetQuantityByMonth ( |
| | | Strings productCodes, |
| | | MacroPlan parent, |
| | | Number monthNo, |
| | | Number yearNo |
| | | Number yearNo, |
| | | Number monthNo |
| | | ) as Real |
| | | { |
| | | Description: 'todo changeParent' |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-19-2023 (created) |
| | |
| | | MappingForecast, |
| | | item, |
| | | productCodes.Find( item.ProductID() ) > -1 and yearNo = item.StartDate().Year() and monthNo = item.StartDate().Month(), |
| | | item.Price() * item.Quantity() ); |
| | | item.Quantity() ); |
| | | return value; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetQuantityBySeason ( |
| | | Strings productCodes, |
| | | MacroPlan parent, |
| | | Number yearNo, |
| | | Number seasonNo |
| | | ) as Real |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-19-2023 (created) |
| | | value := 0.0; |
| | | |
| | | startMonth := 1 + ( seasonNo - 1 ) * 3; |
| | | endMonth := 3 + ( seasonNo - 1 ) * 3; |
| | | |
| | | for( monthNo := startMonth; monthNo <= endMonth; monthNo := monthNo + 1 ) { |
| | | value := value + MappingForecast::GetQuantityByMonth( productCodes, parent, yearNo, monthNo ); |
| | | } |
| | | |
| | | return value; |
| | | *] |
| | | } |
copy from _Main/BL/Type_MappingForecast/StaticMethod_GetByYear.qbl
copy to _Main/BL/Type_MappingForecast/StaticMethod_GetQuantityByYear.qbl
Îļþ´Ó _Main/BL/Type_MappingForecast/StaticMethod_GetByYear.qbl ¸´ÖÆ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetByYear ( |
| | | StaticMethod GetQuantityByYear ( |
| | | Strings productCodes, |
| | | MacroPlan parent, |
| | | Number yearNo |
| | |
| | | MappingForecast, |
| | | item, |
| | | productCodes.Find( item.ProductID() ) > -1 and yearNo = item.StartDate().Year(), |
| | | item.Price() * item.Quantity() ); |
| | | item.Quantity() ); |
| | | return value; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method PrintCall ( |
| | | GlobalOTDTable globalData, |
| | | String callBy |
| | | ) as String |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-11-2023 (created) |
| | | result := globalData.PRHistoryData( relnew ); |
| | | |
| | | // ç
§æ¬é¨å |
| | | result.AuthorizationStatus( this.AuthorizationStatus() ); |
| | | result.BusinessType( this.BusinessType() ); |
| | | result.DataID( this.DataID() ); |
| | | result.DeliverToRequestorId( this.DeliverToRequestorId() ); |
| | | result.DestinationOrganizationID( this.DestinationOrganizationID() ); |
| | | result.DestinationTypeCode( this.DestinationTypeCode() ); |
| | | result.HeaderDescription( this.HeaderDescription() ); |
| | | result.LineAttribute1( this.LineAttribute1() ); |
| | | result.LineAttribute6( this.LineAttribute6() ); |
| | | result.LineType( this.LineType() ); |
| | | result.LineTypeId( this.LineTypeId() ); |
| | | result.MRPCalverNo( this.MRPCalverNo() ); |
| | | result.OrganCode( this.OrganCode() ); |
| | | result.OrgId( this.OrgId() ); |
| | | result.PlannerCode( this.PlannerCode() ); |
| | | result.PreparerId( this.PreparerId() ); |
| | | result.ProduceRequiredDate( this.ProduceRequiredDate() ); |
| | | result.ProductID( this.ProductID() ); |
| | | result.ProductName( this.ProductName() ); |
| | | result.ProviderCode( this.ProviderCode() ); |
| | | result.ProviderName( this.ProviderName() ); |
| | | result.Quantity( this.Quantity() ); |
| | | result.RequisitionType( this.RequisitionType() ); |
| | | result.StockingPointID( this.StockingPointID() ); |
| | | result.UnitOfMeasure( this.UnitOfMeasure() ); |
| | | result.UnitPrice( this.UnitPrice() ); |
| | | |
| | | // 请æ±é¨å |
| | | request := ERPRequestOfPR::Create( result ); |
| | | retult := request.GetCallJSONString(); |
| | | request.Delete(); |
| | | return retult; |
| | | *] |
| | | } |
| | |
| | | erpData := "ææ "; |
| | | |
| | | // æ ¹æ®pispip |
| | | result.MRPCalverNo( pispip.MRPCalverNo() ); |
| | | result.MRPCalverNo( ifexpr( pispip.MRPCalverNo() = "", "ææ ", pispip.MRPCalverNo() ) ); |
| | | result.Quantity( pispip.NewSupplyQuantity() ); |
| | | |
| | | // æ ¹æ®product |
| | |
| | | Date::Today(), (result.ProduceRequiredDate() - Duration::Days( 7 )).Date() ) ); |
| | | |
| | | // æ ¹æ® ç©æå±æ§æ ç¾è®¾å®&ç©æè®¡åçç¥ |
| | | result.IsPanelMaterial(); |
| | | result.IsPanelMaterial( "ææ " ); |
| | | if( isnull( matAttrSetting ) ) { |
| | | result.IsGenericMaterial( "ææ " ); |
| | | result.IsLongLeadItem( "ææ " ); |
| | | result.MaterialMRPType( "ææ " ); |
| | | } else { |
| | | result.IsGenericMaterial( matAttrSetting.FlagGeneric() ); |
| | | result.IsLongLeadItem( matAttrSetting.FlagLongTerm() ); |
| | | result.MaterialMRPType( ifexpr( matAttrSetting.PlanningStrategyCustom() <> "", matAttrSetting.PlanningStrategyCustom(), matAttrSetting.PlanningStrategyAuto() ) ); |
| | | } |
| | | |
| | | |
| | | // æ ¹æ®productä¸é´è¡¨ |
| | | if( isnull( mappingProduct ) ) { |
| | | result.BusinessType( "ææ " ); |
| | | result.OrganCode( "ææ " ); |
| | | result.UnitOfMeasure( "ææ " ); |
| | | } else { |
| | | result.BusinessType( mappingProduct.BusinessType() ); |
| | | result.OrganCode( mappingProduct.OrgCode() ); |
| | | result.UnitOfMeasure( mappingProduct.UnitOfMeasureName() ); |
| | | } |
| | | |
| | | // æ ¹æ®ä¾åºåè½åä¸é´è¡¨ |
| | | result.ProviderCode( mappingProviderCapacity ); |
| | |
| | | item.MRPCalverNo() = mrpCalverNo ); |
| | | if( isnull( oldRecords ) or oldRecords.Size() = 0 ) { |
| | | pispips := ProductInStockingPointInPeriod::GetByMRPCalverNo( macroPlan, mrpCalverNo ); |
| | | traverse( pispips, Elements, item ) { |
| | | traverse( pispips, Elements, item, item.NewSupplyQuantity() > 0 ) { |
| | | PRData::FromSupplyPlanning( otdTable, macroPlan, mappingRoot, item ); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method PrintCall ( |
| | | String callBy |
| | | ) as String |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-20-2023 (created) |
| | | result := this.GlobalOTDTable().PRHistoryData( relcopy, this ); |
| | | |
| | | // æ´æ°é¨å |
| | | result.PRDataReleaseDate( Date::Today() ); |
| | | result.ReleaseBy( callBy ); |
| | | result.SendTime( DateTime::Now() ); |
| | | |
| | | // è¯·æ± |
| | | request := ERPRequestOfPR::Create( result ); |
| | | callString := request.GetCallJSONString(); |
| | | request.Delete(); |
| | | return callString; |
| | | *] |
| | | } |
| | |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | | result := construct( ProductInStockingPointInPeriods ); |
| | | if( mrpCalverNo <> "" ) { |
| | | result := selectset( parent, Product_MP.ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, |
| | | pispip.ProductInStockingPoint_MP().Product_MP().ID().StartsWith( "E" ) |
| | | and pispip.MRPCalverNo() = mrpCalverNo ); |
| | | and pispip.MRPCalverNo() = mrpCalverNo |
| | | ); |
| | | } else { |
| | | result := selectset( parent, Product_MP.ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, |
| | | true |
| | | ); |
| | | } |
| | | return &result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetNewSupplyByHalfYear ( |
| | | Strings productNo, |
| | | MacroPlan macroPlan, |
| | | Number yearNo, |
| | | Number halfNo |
| | | ) as Real |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-18-2023 (created) |
| | | fromMonth := 1 + ( halfNo - 1 ) * 6; |
| | | toMonth := 6 + ( halfNo - 1 ) * 6; |
| | | result := 0.0; |
| | | for( i := fromMonth; i <= toMonth; i := i + 1 ) { |
| | | result := result + Product_MP::GetNewSupplyByMonth( productNo, macroPlan, yearNo, i ); |
| | | } |
| | | return result; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetNewSupplyBySeason ( |
| | | Strings productNo, |
| | | MacroPlan macroPlan, |
| | | Number yearNo, |
| | | Number seasonNo |
| | | ) as Real |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-18-2023 (created) |
| | | fromMonth := 1 + ( seasonNo - 1 ) * 3; |
| | | toMonth := 3 + ( seasonNo - 1 ) * 3; |
| | | result := 0.0; |
| | | for( i := fromMonth; i <= toMonth; i := i + 1 ) { |
| | | result := result + Product_MP::GetNewSupplyByMonth( productNo, macroPlan, yearNo, i ); |
| | | } |
| | | return result; |
| | | *] |
| | | } |
| | |
| | | MacroPlans macroPlans, |
| | | Boolean isCapacity, |
| | | String groupBy, |
| | | String byBusinessTypeOrByOrgCodde, |
| | | String businessType, |
| | | String orgCode, |
| | | String byBusinessTypeOrByOrgCode, |
| | | String businessTypeChosen, |
| | | String placeOfProductionOfArrayChosen, |
| | | String year, |
| | | MPSync mpSync, |
| | | GlobalOTDTable otdTable, |
| | |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-19-2023 (created) |
| | | // true, false |
| | | info( isCapacity ); |
| | | // æ;å£åº¦;åå¹´;å¹´ |
| | | info( groupBy ); |
| | | // 颿¿åºå°;äºä¸é¨ |
| | | info( byBusinessTypeOrByOrgCode ); |
| | | info( businessTypeChosen ); |
| | | info( placeOfProductionOfArrayChosen ); |
| | | info( year ); |
| | | |
| | | // ====æ¸
çæ§æ°æ®==== |
| | | this.CapacityAndSaleBudgeChartRow( relflush ); |
| | | this.CapacityAndSaleBudgeChartElement( relflush ); |
| | | |
| | | info( isCapacity ); |
| | | info( groupBy ); |
| | | info( byBusinessTypeOrByOrgCodde ); |
| | | info( businessType ); |
| | | info( orgCode ); |
| | | info( year ); |
| | | // ====æé¢æ¿åºå°åäºä¸é¨å¯¹äº§åè¿è¡çéåç»==== |
| | | historyData := selectset( otdTable, CapacityAndSaleBudge, item, true ); |
| | | if( placeOfProductionOfArrayChosen <> "" ) { |
| | | historyData := selectset( historyData, Elements, item, item.PlaceOfProductionOfArray() = placeOfProductionOfArrayChosen ); |
| | | } |
| | | if( businessTypeChosen <> "" ) { |
| | | historyData := selectset( historyData, Elements, item, item.BusinessType() = businessTypeChosen ); |
| | | } |
| | | traverse( historyData, Elements, item ) { |
| | | row := CapacityAndSaleBudgeChartRow::CreateIfNotExist( this, item.BusinessType(), item.PlaceOfProductionOfArray() ); |
| | | // è®°å½æ¯è¡å
å«åªäºproduct |
| | | CapacityAndSaleBudgeChartRowProduct::CreateIfNotExist( row, item.ProductCode() ); |
| | | } |
| | | rows := selectset( this, CapacityAndSaleBudgeChartRow, item, true ); |
| | | placeOfProductionOfArrayList := selectuniquevalues( historyData, Elements, item, item.PlaceOfProductionOfArray() ); |
| | | businessTypeList := selectuniquevalues( historyData, Elements, item, item.BusinessType() ); |
| | | // çæå¾è¡¨å
ç´ |
| | | if( byBusinessTypeOrByOrgCode = "颿¿åºå°" and groupBy = "å¹´" ) { |
| | | // ç®æ |
| | | traverse( placeOfProductionOfArrayList, Elements, placeOfProductionOfArray ) { |
| | | productCodeList := CapacityAndSaleBudgeChartRow::GetProductCodesByPlaceOfProductionOfArray( rows, placeOfProductionOfArray ); |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-ç®æ ", |
| | | BusinessTypeOrOrgCode := placeOfProductionOfArray, |
| | | Quantity := ifexpr( isCapacity, |
| | | CapacityAndSaleBudge::GetSheetByYear( productCodeList, otdTable, [Number]year ), |
| | | MappingForecast::GetQuantityByYear( productCodeList, mappingParent, [Number]year ) ) |
| | | ); |
| | | // S&OP |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-" + macroPlan.ScenarioName(), |
| | | BusinessTypeOrOrgCode := placeOfProductionOfArray, |
| | | Quantity := ifexpr( isCapacity, |
| | | Product_MP::GetNewSupplyByYear( productCodeList, macroPlan, [Number]year ), |
| | | 0.0 ) |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | if ( byBusinessTypeOrByOrgCode = "颿¿åºå°" and groupBy = "åå¹´" ) { |
| | | for( halfNo := 1; halfNo <= 2; halfNo := halfNo + 1 ) { |
| | | traverse( placeOfProductionOfArrayList, Elements, placeOfProductionOfArray ) { |
| | | productCodeList := CapacityAndSaleBudgeChartRow::GetProductCodesByPlaceOfProductionOfArray( rows, placeOfProductionOfArray ); |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-" + ifexpr( halfNo = 1, "ä¸", "ä¸" ) + "åå¹´-ç®æ ", |
| | | BusinessTypeOrOrgCode := placeOfProductionOfArray, |
| | | Quantity := ifexpr( isCapacity, |
| | | CapacityAndSaleBudge::GetSheetByHalfYear( productCodeList, otdTable, [Number]year, halfNo ), |
| | | MappingForecast::GetQuantityByHalfYear( productCodeList, mappingParent, [Number]year, halfNo ) ) |
| | | ); |
| | | // S&OP |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-" + ifexpr( halfNo = 1, "ä¸", "ä¸" ) + "åå¹´-" + macroPlan.ScenarioName(), |
| | | BusinessTypeOrOrgCode := placeOfProductionOfArray, |
| | | Quantity := ifexpr( isCapacity, |
| | | Product_MP::GetNewSupplyByHalfYear( productCodeList, macroPlan, [Number]year, halfNo ), |
| | | 0.0 ) |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if ( byBusinessTypeOrByOrgCode = "颿¿åºå°" and groupBy = "å£åº¦" ) { |
| | | for( seasonNo := 1; seasonNo <= 4; seasonNo := seasonNo + 1 ) { |
| | | traverse( placeOfProductionOfArrayList, Elements, placeOfProductionOfArray ) { |
| | | productCodeList := CapacityAndSaleBudgeChartRow::GetProductCodesByPlaceOfProductionOfArray( rows, placeOfProductionOfArray ); |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-第" + [String]seasonNo + "å£åº¦-ç®æ ", |
| | | BusinessTypeOrOrgCode := placeOfProductionOfArray, |
| | | Quantity := ifexpr( isCapacity, |
| | | CapacityAndSaleBudge::GetSheetBySeason( productCodeList, otdTable, [Number]year, seasonNo ), |
| | | MappingForecast::GetQuantityBySeason( productCodeList, mappingParent, [Number]year, seasonNo ) ) |
| | | ); |
| | | // S&OP |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-第" + [String]seasonNo + "å£åº¦-" + macroPlan.ScenarioName(), |
| | | BusinessTypeOrOrgCode := placeOfProductionOfArray, |
| | | Quantity := ifexpr( isCapacity, |
| | | Product_MP::GetNewSupplyBySeason( productCodeList, macroPlan, [Number]year, seasonNo ), |
| | | 0.0 ) |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if ( byBusinessTypeOrByOrgCode = "颿¿åºå°" and groupBy = "æ" ) { |
| | | for( monthNo := 1; monthNo <= 12; monthNo := monthNo + 1 ) { |
| | | traverse( placeOfProductionOfArrayList, Elements, placeOfProductionOfArray ) { |
| | | productCodeList := CapacityAndSaleBudgeChartRow::GetProductCodesByPlaceOfProductionOfArray( rows, placeOfProductionOfArray ); |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-第" + [String]monthNo + "æ-ç®æ ", |
| | | BusinessTypeOrOrgCode := placeOfProductionOfArray, |
| | | Quantity := ifexpr( isCapacity, |
| | | CapacityAndSaleBudge::GetSheetByMonth( productCodeList, otdTable, [Number]year, monthNo ), |
| | | MappingForecast::GetQuantityByMonth( productCodeList, mappingParent, [Number]year, monthNo ) ) |
| | | ); |
| | | // S&OP |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-第" + [String]monthNo + "æ-" + macroPlan.ScenarioName(), |
| | | BusinessTypeOrOrgCode := placeOfProductionOfArray, |
| | | Quantity := ifexpr( isCapacity, |
| | | Product_MP::GetNewSupplyByMonth( productCodeList, macroPlan, [Number]year, monthNo ), |
| | | 0.0 ) |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if( byBusinessTypeOrByOrgCode = "äºä¸é¨" and groupBy = "å¹´" ) { |
| | | // ç®æ |
| | | traverse( businessTypeList, Elements, businessType ) { |
| | | productCodeList := CapacityAndSaleBudgeChartRow::GetProductCodesByBusinessType( rows, businessType ); |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-ç®æ ", |
| | | BusinessTypeOrOrgCode := businessType, |
| | | Quantity := ifexpr( isCapacity, |
| | | CapacityAndSaleBudge::GetSheetByYear( productCodeList, otdTable, [Number]year ), |
| | | MappingForecast::GetQuantityByYear( productCodeList, mappingParent, [Number]year ) ) |
| | | ); |
| | | // S&OP |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-" + macroPlan.ScenarioName(), |
| | | BusinessTypeOrOrgCode := businessType, |
| | | Quantity := ifexpr( isCapacity, |
| | | Product_MP::GetNewSupplyByYear( productCodeList, macroPlan, [Number]year ), |
| | | 0.0 ) |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | if ( byBusinessTypeOrByOrgCode = "äºä¸é¨" and groupBy = "åå¹´" ) { |
| | | for( halfNo := 1; halfNo <= 2; halfNo := halfNo + 1 ) { |
| | | traverse( businessTypeList, Elements, businessType ) { |
| | | productCodeList := CapacityAndSaleBudgeChartRow::GetProductCodesByBusinessType( rows, businessType ); |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-" + ifexpr( halfNo = 1, "ä¸", "ä¸" ) + "åå¹´-ç®æ ", |
| | | BusinessTypeOrOrgCode := businessType, |
| | | Quantity := ifexpr( isCapacity, |
| | | CapacityAndSaleBudge::GetSheetByHalfYear( productCodeList, otdTable, [Number]year, halfNo ), |
| | | MappingForecast::GetQuantityByHalfYear( productCodeList, mappingParent, [Number]year, halfNo ) ) |
| | | ); |
| | | // S&OP |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-" + ifexpr( halfNo = 1, "ä¸", "ä¸" ) + "åå¹´-" + macroPlan.ScenarioName(), |
| | | BusinessTypeOrOrgCode := businessType, |
| | | Quantity := ifexpr( isCapacity, |
| | | Product_MP::GetNewSupplyByHalfYear( productCodeList, macroPlan, [Number]year, halfNo ), |
| | | 0.0 ) |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if ( byBusinessTypeOrByOrgCode = "äºä¸é¨" and groupBy = "å£åº¦" ) { |
| | | for( seasonNo := 1; seasonNo <= 4; seasonNo := seasonNo + 1 ) { |
| | | traverse( businessTypeList, Elements, businessType ) { |
| | | productCodeList := CapacityAndSaleBudgeChartRow::GetProductCodesByBusinessType( rows, businessType ); |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-第" + [String]seasonNo + "å£åº¦-ç®æ ", |
| | | BusinessTypeOrOrgCode := businessType, |
| | | Quantity := ifexpr( isCapacity, |
| | | CapacityAndSaleBudge::GetSheetBySeason( productCodeList, otdTable, [Number]year, seasonNo ), |
| | | MappingForecast::GetQuantityBySeason( productCodeList, mappingParent, [Number]year, seasonNo ) ) |
| | | ); |
| | | // S&OP |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-第" + [String]seasonNo + "å£åº¦-" + macroPlan.ScenarioName(), |
| | | BusinessTypeOrOrgCode := businessType, |
| | | Quantity := ifexpr( isCapacity, |
| | | Product_MP::GetNewSupplyBySeason( productCodeList, macroPlan, [Number]year, seasonNo ), |
| | | 0.0 ) |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if ( byBusinessTypeOrByOrgCode = "äºä¸é¨" and groupBy = "æ" ) { |
| | | for( monthNo := 1; monthNo <= 12; monthNo := monthNo + 1 ) { |
| | | traverse( businessTypeList, Elements, businessType ) { |
| | | productCodeList := CapacityAndSaleBudgeChartRow::GetProductCodesByBusinessType( rows, businessType ); |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-第" + [String]monthNo + "æ-ç®æ ", |
| | | BusinessTypeOrOrgCode := businessType, |
| | | Quantity := ifexpr( isCapacity, |
| | | CapacityAndSaleBudge::GetSheetByMonth( productCodeList, otdTable, [Number]year, monthNo ), |
| | | MappingForecast::GetQuantityByMonth( productCodeList, mappingParent, [Number]year, monthNo ) ) |
| | | ); |
| | | // S&OP |
| | | traverse( macroPlans, Elements, macroPlan ) { |
| | | this.CapacityAndSaleBudgeChartElement( relnew, |
| | | TimeStringAndScenarioName := [String]year + "å¹´-第" + [String]monthNo + "æ-" + macroPlan.ScenarioName(), |
| | | BusinessTypeOrOrgCode := businessType, |
| | | Quantity := ifexpr( isCapacity, |
| | | Product_MP::GetNewSupplyByMonth( productCodeList, macroPlan, [Number]year, monthNo ), |
| | | 0.0 ) |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | *] |
| | | } |
| | |
| | | cell := columnOrgCode.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := row.OrgCode() ); |
| | | cell.CapacityAndSaleBudgeCompareItemRow( relset, row ); |
| | | } |
| | | // 颿¿åé
é - 年度é¢ç® |
| | | // 颿¿åé
é - 年度é¢ç® (sheets) |
| | | // æ ¼å¼ï¼ 颿¿åé
é - å¹´ - æï¼1-12 & totalï¼ - 年度é¢ç®/scenarioName |
| | | info( "dealing 颿¿åé
é" ) |
| | | if( CapacityAndSaleBudgeFilterItem::Contains( items, "颿¿åé
é" ) ) { |
| | |
| | | traverse( months, Elements, month ) { |
| | | columnMonth := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "对å¤éå®é¢-" + [String]year.YearNo() + "å¹´-" + [String]month.MonthNo() + "æ-" + macroPlan.ScenarioName() ); |
| | | traverse( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | | cellReal := MappingForecast::GetByMonth( row.GetProductCodes(), mappingParent, year.YearNo(), month.MonthNo() ); |
| | | cellReal := MappingForecast::GetBalanceByMonth( row.GetProductCodes(), mappingParent, year.YearNo(), month.MonthNo() ); |
| | | cell := columnMonth.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := [String]cellReal ); |
| | | cell.CapacityAndSaleBudgeCompareItemRow( relset, row ); |
| | | } |
| | | } |
| | | columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "对å¤éå®é¢-" + [String]year.YearNo() + "å¹´-total-" + macroPlan.ScenarioName() ); |
| | | traverse( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | | cellReal := MappingForecast::GetByYear( row.GetProductCodes(), mappingParent, year.YearNo() ); |
| | | cellReal := MappingForecast::GetBalanceByYear( row.GetProductCodes(), mappingParent, year.YearNo() ); |
| | | cell := columnYear.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := [String]cellReal ); |
| | | cell.CapacityAndSaleBudgeCompareItemRow( relset, row ); |
| | | } |
| | |
| | | [ |
| | | Image: 'ARROW_RIGHT' |
| | | Label: 'Send checked PRs' |
| | | Taborder: 0 |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component ButtonExportPR |
| | |
| | | [ |
| | | Image: 'EXPORT1' |
| | | Label: 'æ°æ®å¯¼åº' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component ButtonLoad |
| | | { |
| | | #keys: '[414384.0.859141085]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Image: 'THICK_ARROW_DOWN_BLUE' |
| | | Label: 'Clean & Load' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | ] |
| | |
| | | Title: 'Send selected PRs' |
| | | ] |
| | | } |
| | | Component MenuPrintRequest |
| | | { |
| | | #keys: '[414384.0.859180964]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'MEDIA_PLAY_GREEN' |
| | | Taborder: 4 |
| | | Title: 'Print request' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPRData_844 |
| | | Response OnClick ( |
| | | PRData selection |
| | | ) id:Response_ListPRData_844_MenuPrintRequest_OnClick |
| | | { |
| | | #keys: '[414384.0.859160768]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPRData_844/Responsedef_ListPRData_844_WebMenu_OnClick |
| | | Initiator: 'MenuPrintRequest' |
| | | Precondition: |
| | | [* |
| | | |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | info( selection.PrintCall( GlobalOTDTable, ApplicationMacroPlanner.GetUserName() ) ) |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | if( not isnull( MacroPlan ) ) { |
| | | MacroPlan.PRData( relflush ); |
| | | PRData::TestData( MacroPlan ); |
| | | } |
| | | if( not isnull( GlobalOTDTable ) ) { |
| | | GlobalOTDTable.PRHistoryData( relflush ); |
| | | } |
| | | //if( not isnull( MacroPlan ) ) { |
| | | // MacroPlan.PRData( relflush ); |
| | | // PRData::TestData( MacroPlan ); |
| | | //} |
| | | //if( not isnull( GlobalOTDTable ) ) { |
| | | // GlobalOTDTable.PRHistoryData( relflush ); |
| | | //} |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelPRDataButton/ButtonLoad |
| | | Response OnClick () id:Response_PanelPRDataButton_ButtonLoad_OnClick |
| | | { |
| | | #keys: '[414384.0.859141084]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | MacroPlan.PRData( relflush ); |
| | | PRData::FromSupplyPlanning( GlobalOTDTable, MacroPlan, MacroPlan, "" ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | DropDownTimeGroup.Text(), |
| | | DropDownByBusinessTypeOrByOrgCode.Text(), |
| | | DropDownBusinessTypes.Text(), |
| | | DropDownOrgCodes.Text(), |
| | | DropDownPlaceOfProductionOfArrays.Text(), |
| | | DropDownYears.Text(), |
| | | MPSync, |
| | | GlobalOTDTable, |
| | |
| | | CapacityAndSaleBudgeChartElement::TestData( ScenarioManager ); |
| | | |
| | | DropDownBusinessTypes.Strings( GlobalOTDTable.CapacityAndSaleBudgeBusinessTypeString() ); |
| | | DropDownOrgCodes.Strings( GlobalOTDTable.CapacityAndSaleBudgePlaceOfProductionOfArrayString() ); |
| | | DropDownPlaceOfProductionOfArrays.Strings( GlobalOTDTable.CapacityAndSaleBudgePlaceOfProductionOfArrayString() ); |
| | | DropDownYears.Strings( GlobalOTDTable::CapacityAndSaleBudgeYearsString() ); |
| | | *] |
| | | GroupServerCalls: false |
| | |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'æµè¯ç¨' |
| | | Label: 'çæ' |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component DropDownOrgCodes |
| | | Component DropDownPlaceOfProductionOfArrays |
| | | { |
| | | #keys: '[414384.0.857770736]' |
| | | BaseType: 'WebDropDownStringList' |
| | |
| | | Title: 'Call' |
| | | ] |
| | | } |
| | | Component MenuPrintRequest |
| | | { |
| | | #keys: '[414384.0.860210718]' |
| | | BaseType: 'WebMenu' |
| | | Properties: |
| | | [ |
| | | Image: 'MEDIA_PLAY_GREEN' |
| | | Taborder: 4 |
| | | Title: 'Print request' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: ListPRHistoryData_844 |
| | | Response OnClick ( |
| | | PRHistoryData selection |
| | | ) id:Response_ListPRHistoryData_844_MenuPrintRequest_OnClick |
| | | { |
| | | #keys: '[414384.0.860210608]' |
| | | CanBindMultiple: false |
| | | DefinitionID => /ListPRHistoryData_844/Responsedef_ListPRHistoryData_844_WebMenu_OnClick |
| | | Initiator: 'MenuPrintRequest' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | info( selection.PrintCall( ApplicationMacroPlanner.GetUserName() ) ) |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |