| | |
| | | ,URF_LastMContract1_NO__c,URF_LastMContract2_NO__c,URF_LastMContract3_NO__c,URF_LastMContract4_NO__c,URF_LastMContract5_NO__c |
| | | ,URF_LastMContract1_ConCount__c,URF_LastMContract2_ConCount__c,URF_LastMContract3_ConCount__c,URF_LastMContract4_ConCount__c,URF_LastMContract5_ConCount__c |
| | | // URF限次合同2期 LY 20220811 end |
| | | //贸易合规 you start |
| | | ,Maintenance_Contract__r.AccDealerBlacklist__c |
| | | ,Maintenance_Contract__r.Hospital__r.Name |
| | | ,Maintenance_Contract__r.Dealer__r.Name |
| | | ,CreatedById |
| | | //贸易合规 you end |
| | | FROM Maintenance_Contract_Estimate__c WHERE Id = :this.targetEstimateId]; |
| | | //HWAG-B399Q8 2018/08/20 添加一额外字段 IS_Clone_After_Decide__c end |
| | | decimal PriceSum = (this.estimate.Maintenance_Contract__r.Payment_Plan_Sum_First__c == null ? 0 : this.estimate.Maintenance_Contract__r.Payment_Plan_Sum_First__c) + |
| | |
| | | return new PageReference('/' + this.targetEstimateId + '/e?completion=4'); |
| | | |
| | | } |
| | | //贸易合规 you start |
| | | public PageReference interceptsend(){ |
| | | //String BuchangApprovalManager = this.estimate.BuchangApprovalManager__c; |
| | | //String JingliApprovalManager = this.estimate.JingliApprovalManager__c; |
| | | String fseid = this.estimate.CreatedById; |
| | | String AccDealerBlacklist = this.estimate.Maintenance_Contract__r.AccDealerBlacklist__c; |
| | | String accname = this.estimate.Maintenance_Contract__r.Hospital__r.Name; |
| | | String deaname = this.estimate.Maintenance_Contract__r.Dealer__r.Name; |
| | | //FSE领导 |
| | | String[] FSEStr = new String[] {}; |
| | | //if(String.isNotBlank(BuchangApprovalManager)){ |
| | | // FSEStr.add(BuchangApprovalManager); |
| | | //} |
| | | //if(String.isNotBlank(JingliApprovalManager)){ |
| | | // FSEStr.add(JingliApprovalManager); |
| | | //} |
| | | FSEStr.add(fseid); |
| | | system.debug('==jinlaile====='+FSEStr); |
| | | Boolean reflag = OpportunityWebService.accSendEmailFW(AccDealerBlacklist,accname,deaname,this.targetEstimateId,'decide_con',FSEStr); |
| | | system.debug('==fawanle====='+FSEStr); |
| | | return null; |
| | | } |
| | | //贸易合规 you end |
| | | |
| | | /** |
| | | * Process用のユーザー情報をセット、新規見積もり時用 |
| | |
| | | |
| | | // 2021-02-07 gzw add LJPH-BWY5QB start |
| | | private void setEndUserType(String id) { |
| | | this.contract = [SELECT Id, Name, Status__c, Decided_Estimation__c, Service_Contract_Staff__c, |
| | | //贸易合规 you 20230414 加查询AccDealerBlacklist__c |
| | | this.contract = [SELECT Id, Name,AccDealerBlacklist__c, Status__c, Decided_Estimation__c, Service_Contract_Staff__c, |
| | | Estimate_Num__c, Management_Code__c, Hospital__c, |
| | | Hospital__r.MaintenanceContractUserType__c, |
| | | Contract_Start_Date__c, Contract_End_Date__c |
| | |
| | | // 2021-02-07 gzw add LJPH-BWY5QB end |
| | | |
| | | private void setContractInfo(String id) { |
| | | this.contract = [SELECT Id, Name, Status__c, Decided_Estimation__c, Service_Contract_Staff__c, |
| | | //贸易合规 you 20230414 加查询AccDealerBlacklist__c |
| | | this.contract = [SELECT Id, Name,AccDealerBlacklist__c, Status__c, Decided_Estimation__c, Service_Contract_Staff__c, |
| | | Estimate_Num__c, Management_Code__c, Hospital__c, |
| | | //2021-01-18 mzy add LJPH-BWY5QB 客户上的 维修合同用户类型 为true /false,报价 用户类型为 既有用户 / 新用户 |
| | | // Hospital__r.MaintenanceContractUserType__c, |