From 49aa73c32acfc151304683103ad633a27c7ab124 Mon Sep 17 00:00:00 2001
From: Li Jun <buli@deloitte.com.cn>
Date: 星期四, 17 三月 2022 22:13:00 +0800
Subject: [PATCH] PIPLFunctionDeployV5

---
 force-app/main/default/pages/NewAndEditQIS.page |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/pages/NewAndEditQIS.page b/force-app/main/default/pages/NewAndEditQIS.page
index 1f2a6ee..05bef34 100644
--- a/force-app/main/default/pages/NewAndEditQIS.page
+++ b/force-app/main/default/pages/NewAndEditQIS.page
@@ -557,7 +557,19 @@
                 if (!{!isNewMode}) {
                     blockme();
                     QuerySobjectFromAWS();
-                }
+                }else{
+                        let ot = jQuery('input[data-id="OwnerId"]');
+                        let oi = document.getElementById(ot.attr("id")+'_lkid');
+                        ot.val('{!CurrentUserName}');
+                        ot.attr("readonly","");
+                        ot.css("background","unset");
+                        ot.css("border","0");
+                        ot.css( "outline","0");
+                        jQuery('a[data-id="OwnerId"]').remove();
+                        if(oi){
+                            oi.value = '{!CurrentUserId}'
+                        }
+                    }
             });
             </script>
             <div class="pbBottomButtons">

--
Gitblit v1.9.1