| | |
| | | convertCurrency(RANK_D_inc_tax__c), convertCurrency(RANK_E_inc_tax__c), |
| | | Today_Rate__c, Trade__c, convertCurrency(Forecast_Amount_All_F__c), convertCurrency(ShippedAmount__c), |
| | | Opp_Actual_ThousandY__c, BO_Forecast_ThousandY__c, |
| | | OP_ThousandY__c, Opp_Forecast_ThousandY__c, |
| | | Opportunity_ThousandY__c, Amount_Without_Tax_Thousand_F__c, |
| | | // 20220722 ljh SWAG-CE6A58 update start |
| | | // OP_ThousandY__c, Opp_Forecast_ThousandY__c, |
| | | // Opportunity_ThousandY__c, Amount_Without_Tax_Thousand_F__c, |
| | | OP_ThousandY_Target__c, Opp_Forecast_ThousandY__c, |
| | | Opportunity_ThousandY_Target__c, Amount_Without_Tax_Thousand_F__c, |
| | | // 20220722 ljh SWAG-CE6A58 update end |
| | | Hospital__c, Department_Class__c |
| | | , OCSM_RMB_Without_Tax_1000TR__c//20220111 SWAG-C8MBB6 加7.询价 lt |
| | | from Opportunity |
| | |
| | | |
| | | Decimal o1 = opp.Opp_Actual_ThousandY__c == null ? 0 : opp.Opp_Actual_ThousandY__c; |
| | | Decimal o2 = opp.BO_Forecast_ThousandY__c == null ? 0 : opp.BO_Forecast_ThousandY__c; |
| | | Decimal o3 = opp.OP_ThousandY__c == null ? 0 : opp.OP_ThousandY__c; |
| | | // 20220722 ljh SWAG-CE6A58 update start |
| | | // Decimal o3 = opp.OP_ThousandY__c == null ? 0 : opp.OP_ThousandY__c; |
| | | Decimal o3 = opp.OP_ThousandY_Target__c == null ? 0 : opp.OP_ThousandY_Target__c; |
| | | // 20220722 ljh SWAG-CE6A58 update end |
| | | Decimal o4 = opp.Opp_Forecast_ThousandY__c == null ? 0 : opp.Opp_Forecast_ThousandY__c; |
| | | Decimal o5 = opp.Opportunity_ThousandY__c == null ? 0 : opp.Opportunity_ThousandY__c; |
| | | // 20220722 ljh SWAG-CE6A58 update start |
| | | // Decimal o5 = opp.Opportunity_ThousandY__c == null ? 0 : opp.Opportunity_ThousandY__c; |
| | | Decimal o5 = opp.Opportunity_ThousandY_Target__c == null ? 0 : opp.Opportunity_ThousandY_Target__c; |
| | | // 20220722 ljh SWAG-CE6A58 update end |
| | | Decimal o6 = opp.Amount_Without_Tax_Thousand_F__c == null ? 0 : opp.Amount_Without_Tax_Thousand_F__c; |
| | | //20220111 SWAG-C8MBB6 加7.询价 lt start |
| | | Decimal o7 = opp.OCSM_RMB_Without_Tax_1000TR__c == null ? 0 : opp.OCSM_RMB_Without_Tax_1000TR__c; |
| | |
| | | acc.Asset_Cnt_TB__c = 0; |
| | | acc.Asset_Cnt_USG400__c = 0; |
| | | //SWAG-BSC5WP you-20201021 end |
| | | //20220601 WLIG-CEWDWS you start |
| | | acc.Asset_Cnt_TB_0520__c = 0; |
| | | acc.Asset_Cnt_TB_0535__c = 0; |
| | | //20220601 WLIG-CEWDWS you end |
| | | |
| | | //20200825 ljh SWAG-BRY6PF add start |
| | | for (Integer columnNameInt = targetmonth + intMonth; columnNameInt <= targetmonth; columnNameInt++) { |
| | |
| | | acc.Opp_Actual_ThousandY__c = 0; |
| | | acc.BO_Forecast_ThousandY__c = 0; |
| | | acc.OP_ThousandY__c = 0; |
| | | |
| | | acc.Opp_Forecast_ThousandY__c = 0; |
| | | acc.Opportunity_ThousandY__c = 0; |
| | | acc.Amount_Without_Tax_Thousand__c = 0; |
| | |
| | | acc.Opp_cnt_OTVS300__c = 0; |
| | | acc.Opp_cnt_ESG400__c = 0; |
| | | acc.Opp_cnt_TB__c = 0; |
| | | //20220601 WLIG-CEWDWS you start |
| | | acc.Opp_cnt_TB_0520__c = 0; |
| | | acc.Opp_cnt_TB_0535__c = 0; |
| | | //20220601 WLIG-CEWDWS you end |
| | | |
| | | acc.Delivery_cnt_290MiroBF__c = 0; |
| | | acc.Delivery_cnt_290MiroGI__c = 0; |
| | |
| | | acc.Delivery_cnt_OTVS300__c = 0; |
| | | acc.Delivery_cnt_ESG400__c = 0; |
| | | acc.Delivery_cnt_TB__c = 0; |
| | | //20220601 WLIG-CEWDWS you start |
| | | acc.Delivery_cnt_TB_0520__c = 0; |
| | | acc.Delivery_cnt_TB_0535__c = 0; |
| | | //20220601 WLIG-CEWDWS you end |
| | | |
| | | acc.Order_cnt_290MiroBF__c = 0; |
| | | acc.Order_cnt_290MiroGI__c = 0; |
| | |
| | | acc.Order_cnt_OTVS300__c = 0; |
| | | acc.Order_cnt_ESG400__c = 0; |
| | | acc.Order_cnt_TB__c = 0; |
| | | //20220601 WLIG-CEWDWS you start |
| | | acc.Order_cnt_TB_0520__c = 0; |
| | | acc.Order_cnt_TB_0535__c = 0; |
| | | //20220601 WLIG-CEWDWS you end |
| | | |
| | | acc.OPD_USG400__c = 0; |
| | | acc.OPD_OTV_S400__c = 0; |
| | |
| | | acc.OPD_ESG400__c = 0; |
| | | acc.OPD_TB__c = 0; |
| | | // SWAG-BQ75WE 20200609 End |
| | | //20220601 WLIG-CEWDWS you start |
| | | acc.OPD_TB_0520__c = 0; |
| | | acc.OPD_TB_0535__c = 0; |
| | | //20220601 WLIG-CEWDWS you end |
| | | |
| | | } |
| | | |
| | |
| | | when '18' {acc.Asset_Cnt_OTVS190__c += tmpCnt;} |
| | | when '28' {acc.Asset_Cnt_ESG400__c += tmpCnt;} |
| | | when '29' {acc.Asset_Cnt_USG400__c += tmpCnt;} |
| | | when '30' {acc.Asset_Cnt_TB__c += tmpCnt;} |
| | | //20220601 WLIG-CEWDWS you start |
| | | //when '30' {acc.Asset_Cnt_TB__c += tmpCnt;} |
| | | when '20' {acc.Asset_Cnt_TB_0535__c += tmpCnt;} |
| | | when '21' {acc.Asset_Cnt_TB_0520__c += tmpCnt;} |
| | | //20220601 WLIG-CEWDWS you end |
| | | when else { |
| | | system.debug('=====setAssetCount else:' + tmpKey + '_x_' + tmpCnt); |
| | | } |
| | |
| | | filedNameMap.put('9', '290Miro_BF__c'); |
| | | filedNameMap.put('14', 'OTV_S400__c'); |
| | | filedNameMap.put('15', 'OTV_S300__c'); |
| | | |
| | | filedNameMap.put('16', 'CV_170__c'); |
| | | filedNameMap.put('17', 'CV_190__c'); |
| | | |
| | | // 20210602 SWAG-C3K6L7 Start |
| | | //filedNameMap.put('18', 'OTV_S190__c'); |
| | | // 20210602 SWAG-C3K6L7 End |
| | | filedNameMap.put('28', 'ESG400__c'); |
| | | filedNameMap.put('29', 'USG400__c'); |
| | | filedNameMap.put('30', 'TB__c'); |
| | | filedNameMap.put('29', 'USG400__c'); //记录you 上财年没有29 ,只不过没有注释,今年有,所以不用动 |
| | | //20220601 WLIG-CEWDWS you start |
| | | //filedNameMap.put('30', 'TB__c'); |
| | | filedNameMap.put('20', 'TB_0535__c'); |
| | | filedNameMap.put('21', 'TB_0520__c'); |
| | | //20220601 WLIG-CEWDWS you end |
| | | |
| | | } else { |
| | | filedNameMap = new Map<String,String>(); |
| | | filedNameMap.put('1', 'CV290__c'); |
| | |
| | | filedNameMap.put('9', '290MiroBF__c'); |
| | | filedNameMap.put('14', 'OTVS400__c'); |
| | | filedNameMap.put('15', 'OTVS300__c'); |
| | | |
| | | filedNameMap.put('16', 'CV170__c'); |
| | | filedNameMap.put('17', 'CV190__c'); |
| | | |
| | | // 20210602 SWAG-C3K6L7 Start |
| | | //filedNameMap.put('18', 'OTVS190__c'); |
| | | // 20210602 SWAG-C3K6L7 End |
| | | filedNameMap.put('28', 'ESG400__c'); |
| | | filedNameMap.put('29', 'USG400__c'); |
| | | filedNameMap.put('30', 'TB__c'); |
| | | //20220601 WLIG-CEWDWS you start |
| | | //filedNameMap.put('30', 'TB__c'); |
| | | filedNameMap.put('20', 'TB_0535__c'); |
| | | filedNameMap.put('21', 'TB_0520__c'); |
| | | //20220601 WLIG-CEWDWS you end |
| | | // } |
| | | |
| | | } |
| | |
| | | allList.add(onlyCountDepList); |
| | | // 20210602 SWAG-C3K6L7 Start |
| | | //}else if(i == '14' || i == '15' || i == '17' || i == '18' || i == '29' || i == '28' || i == '30'){ |
| | | } else if(i == '14' || i == '15' || i == '17' || i == '29' || i == '28' || i == '30'){ |
| | | //} else if(i == '14' || i == '15' || i == '17' || i == '29' || i == '28' || i == '30'){ |
| | | // 20210602 SWAG-C3K6L7 End |
| | | //20220601 WLIG-CEWDWS you start |
| | | } else if(i == '14' || i == '15' || i == '17' || i == '29' || i == '28' || i == '20' || i == '21'){ |
| | | //20220601 WLIG-CEWDWS you end |
| | | // 这里是需要修改的 start |
| | | allCountDepList.add(departmentGS); // 都计算在普外科里 |
| | | // noCountDepList.add() 这里没有不需要计算的科室 |