| | |
| | | res.Name = report.Name; |
| | | res.ContractQuotationOrNotC = report.Contract_quotation_or_not__c; |
| | | res.PaymentPlanSumFirstC = report.Payment_Plan_Sum_First__c; |
| | | res.RecordTypeId1 = Schema.SObjectType.Maintenance_Contract__c.getRecordTypeInfosByName().get('服务合同').getRecordTypeId(); |
| | | System.debug(LoggingLevel.INFO, '*** res: ' + res); |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | |
| | | 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 ]; |
| | | res = [SELECT Id from Maintenance_Contract_Estimate__c where Maintenance_Contract__c=:recordId]; |
| | | }catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |