| | |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try{ |
| | | Maintenance_Contract__c report = [SELECT MC_approval_status__c,Payment_Plan_Sum_First__c,Contract_quotation_or_not__c,Name,notRenew__c,Contract_print_completed__c,Maintenance_Contract_No__c,upload_to_sap_time__c,old_Is_RecognitionModel__c,upload_to_RM_time__c,Is_Recognition_Model_True__c,Id,URF_Contract_F__c,RecordType_DeveloperName__c,Estimate_Target__c FROM Maintenance_Contract__c WHERE Id =: recordId LIMIT 1]; |
| | | Maintenance_Contract__c report = [SELECT URF_Contract__c,RecordTypeId,Is_RecognitionModel__c,Status__c,MC_approval_status__c,Payment_Plan_Sum_First__c, |
| | | Contract_quotation_or_not__c,Name,notRenew__c,Contract_print_completed__c,Maintenance_Contract_No__c, |
| | | upload_to_sap_time__c,old_Is_RecognitionModel__c,upload_to_RM_time__c,Is_Recognition_Model_True__c, |
| | | Id,URF_Contract_F__c,RecordType_DeveloperName__c,Estimate_Target__c FROM Maintenance_Contract__c WHERE Id =: recordId LIMIT 1]; |
| | | System.debug(LoggingLevel.INFO, '*** opp: ' + report); |
| | | res.StatusC = report.Status__c; |
| | | res.IsRecognitionModelC = report.Is_RecognitionModel__c; |
| | | res.RecordTypeId = report.RecordTypeId; |
| | | res.URFContractC = report.URF_Contract__c; |
| | | res.MCApprovalStatusC = report.MC_approval_status__c; |
| | | res.MaintenanceContractNoC = report.Maintenance_Contract_No__c; |
| | | res.uploadToSapTimeC = report.upload_to_sap_time__c; |
| | |
| | | List<Lost_Report__c> res = new List<Lost_Report__c>(); |
| | | try{ |
| | | res = [SELECT Id,Status__c,Other_Reasons__c,Other__c,Third_Party_Company__c,Third_Party_Contract_Price__c,To_Where__c,Specific_Reasons__c,Maintenance_Contract__c from Lost_Report__c where Maintenance_Contract__c =: recordId ]; |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | // 查找维修合同报价 |
| | | @AuraEnabled |
| | | public static List<Maintenance_Contract_Estimate__c> selectMaintenanceContractEstimate(String recordId){ |
| | | List<Maintenance_Contract_Estimate__c> res = new List<Maintenance_Contract_Estimate__c>(); |
| | | try{ |
| | | res = [SELECT RecordTypeId from Maintenance_Contract_Estimate__c ]; |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | |
| | | public String ContractQuotationOrNotC; |
| | | @AuraEnabled |
| | | public Double PaymentPlanSumFirstC; |
| | | @AuraEnabled |
| | | public String StatusC; |
| | | @AuraEnabled |
| | | public Boolean IsRecognitionModelC; |
| | | @AuraEnabled |
| | | public String RecordTypeId; |
| | | @AuraEnabled |
| | | public Boolean URFContractC; |
| | | } |
| | | } |