| | |
| | | List<CusCol> cols = new List<CusCol>(); |
| | | for (FieldSetMember fsm : fsmList) { |
| | | //add by Link |
| | | CusCol col = new CusCol(); |
| | | col.label = fsm.getLabel(); |
| | | col.fieldName = fsm.getFieldPath(); |
| | | col.hideDefaultActions = true; |
| | | // col.sortable = true; |
| | | col.wrapText = true; |
| | | if (fsm.getFieldPath() == 'Order_ForHospital__c') { |
| | | col.type = 'url'; |
| | | col.fieldName = 'hosUrl'; |
| | | TypeAttr typeAttributes1 = new TypeAttr(); |
| | | CusLable cusLabel = new CusLable(); |
| | | cusLabel.fieldName = 'hosName'; |
| | | typeAttributes1.label = cusLabel; |
| | | typeAttributes1.target = '_blank'; |
| | | col.typeAttributes = typeAttributes1; |
| | | <<<<<<< HEAD |
| | | if (fsm.getFieldPath() == 'Order_ForHospital__c' && agencyProType == 'ET') { |
| | | } else { |
| | | ======= |
| | | if(fsm.getFieldPath() == 'Order_ForHospital__c' && agencyProType == 'ET'){ |
| | | }else { |
| | | >>>>>>> LEXCommunityLiJun |
| | | CusCol col = new CusCol(); |
| | | col.label = fsm.getLabel(); |
| | | col.fieldName = fsm.getFieldPath(); |
| | | col.hideDefaultActions = true; |
| | | // col.sortable = true; |
| | | col.wrapText = true; |
| | | if (fsm.getFieldPath() == 'Order_ForHospital__c') { |
| | | col.type = 'url'; |
| | | col.fieldName = 'hosUrl'; |
| | | TypeAttr typeAttributes1 = new TypeAttr(); |
| | | CusLable cusLabel = new CusLable(); |
| | | cusLabel.fieldName = 'hosName'; |
| | | typeAttributes1.label = cusLabel; |
| | | typeAttributes1.target = '_blank'; |
| | | col.typeAttributes = typeAttributes1; |
| | | } |
| | | if (fsm.getFieldPath() == 'Name') { |
| | | col.type = 'url'; |
| | | col.fieldName = 'nameUrl'; |
| | | TypeAttr typeAttributes1 = new TypeAttr(); |
| | | CusLable cusLabel = new CusLable(); |
| | | cusLabel.fieldName = 'Name'; |
| | | typeAttributes1.label = cusLabel; |
| | | typeAttributes1.target = '_blank'; |
| | | col.typeAttributes = typeAttributes1; |
| | | } |
| | | cols.add(col); |
| | | } |
| | | if (fsm.getFieldPath() == 'Name') { |
| | | col.type = 'url'; |
| | | col.fieldName = 'nameUrl'; |
| | | TypeAttr typeAttributes1 = new TypeAttr(); |
| | | CusLable cusLabel = new CusLable(); |
| | | cusLabel.fieldName = 'Name'; |
| | | typeAttributes1.label = cusLabel; |
| | | typeAttributes1.target = '_blank'; |
| | | col.typeAttributes = typeAttributes1; |
| | | } |
| | | cols.add(col); |
| | | //update by rentx 2020-12-22 start |
| | | if (fsm.getLabel() == '医院' && agencyProType != null && agencyProType == 'ET') { |
| | | } else { |
| | |
| | | raesList = Database.query(soql); |
| | | //add by rentx 2021-3-10 start |
| | | //为 hasHop 赋值 判断当前经销商下是否有特价医院 |
| | | <<<<<<< HEAD |
| | | List<hospitalprice__c> hopList = [ |
| | | SELECT id, hospital__c |
| | | FROM hospitalprice__c |
| | | WHERE account__c = :accountid |
| | | ]; |
| | | ======= |
| | | List<hospitalprice__c> hopList = [SELECT id, hospital__c FROM hospitalprice__c WHERE account__c = :accountid]; |
| | | >>>>>>> LEXCommunityLiJun |
| | | if (hopList == null || hopList.size() == 0) { |
| | | hasHop = false; |
| | | } else { |
| | |
| | | for (Account acc : contractList) { |
| | | dealIds.add(acc.Id); |
| | | } |
| | | <<<<<<< HEAD |
| | | List<Dealer_Product__c> deList = [ |
| | | SELECT id |
| | | FROM Dealer_Product__c |
| | | WHERE Dealer_Contact__c IN :dealIds |
| | | ]; |
| | | ======= |
| | | List<Dealer_Product__c> deList = [SELECT id FROM Dealer_Product__c WHERE Dealer_Contact__c IN :dealIds]; |
| | | >>>>>>> LEXCommunityLiJun |
| | | if (deList == null || deList.size() == 0) { |
| | | hasSpecial = false; |
| | | } else { |
| | |
| | | @AuraEnabled |
| | | public String fieldName; |
| | | } |
| | | } |
| | | <<<<<<< HEAD |
| | | } |
| | | ======= |
| | | } |
| | | >>>>>>> LEXCommunityLiJun |