| | |
| | | * 开始方法 |
| | | */ |
| | | public PageReference init(){ |
| | | accOfficeTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Office').getRecordTypeId(); |
| | | Schema.RecordTypeInfo recordTypeValue = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Office'); |
| | | if(recordTypeValue == null){ |
| | | recordTypeValue = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('office'); |
| | | } |
| | | accOfficeTypeId = recordTypeValue.getRecordTypeId(); |
| | | accAgencyTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Agency').getRecordTypeId(); |
| | | accAgencyContactTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('AgencyContact').getRecordTypeId(); |
| | | String RepairSql = makeTextRepairSql(RepairId); |