From 5b5c1e16deaa3a9d6d0ed1ffca390655ed103df7 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 14 七月 2023 14:56:14 +0800
Subject: [PATCH] lex community

---
 force-app/main/default/classes/LexConsumableOrderManageController.cls |   55 +++++++++++++++++++++++++++++--------------------------
 1 files changed, 29 insertions(+), 26 deletions(-)

diff --git a/force-app/main/default/classes/LexConsumableOrderManageController.cls b/force-app/main/default/classes/LexConsumableOrderManageController.cls
index 0f4fc14..2ead3f4 100644
--- a/force-app/main/default/classes/LexConsumableOrderManageController.cls
+++ b/force-app/main/default/classes/LexConsumableOrderManageController.cls
@@ -56,33 +56,36 @@
             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;
+                if(fsm.getFieldPath() == 'Order_ForHospital__c' && agencyProType == 'ET'){
+                }else {
+                    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 {

--
Gitblit v1.9.1