From 744f42c5496e656a1f9927740a3b37c0b97a6cba Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 14 七月 2023 14:34:12 +0800
Subject: [PATCH] lexcommunityupload0714
---
force-app/main/default/pages/FollowPage.page | 98 ++++++++++++++++++++++++++++++++----------------
1 files changed, 65 insertions(+), 33 deletions(-)
diff --git a/force-app/main/default/pages/FollowPage.page b/force-app/main/default/pages/FollowPage.page
index d775cbf..4c41d25 100644
--- a/force-app/main/default/pages/FollowPage.page
+++ b/force-app/main/default/pages/FollowPage.page
@@ -1,40 +1,72 @@
-<apex:page controller="StatusPageController" showHeader="false" id="allPage" sidebar="false" action="{!init}" docType="html-5.0">
+<apex:page controller="StatusPageController" showHeader="false" id="allPage" sidebar="false" action="{!init}" docType="html-5.0" lightningStylesheets="true" >
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
-<apex:includeScript value="/soap/ajax/29.0/connection.js"/>
-<apex:includeScript value="/soap/ajax/29.0/apex.js"/>
- <head>
- <title>璺熻繘</title>
- </head>
+<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
+<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
+ <head>
+ <title>璺熻繘</title>
+ </head>
<script type="text/javascript">
- function save(){
- var content = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:content')).value();
- var contentOther = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:contentOther')).value();
- if ((content.trim() == '' || content.trim() == null) && (contentOther.trim() == null || contentOther.trim() == '')) {
- alert('璺熻繘鍐呭涓嶈兘涓虹┖锛�');
+ function save(){
+ var content = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:content')).value();
+ var contentOther = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:contentOther')).value();
+ //20220606 LLIU-CEGCRB you
+ var Redistribution = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:Redistribution')).value();
+ var GotoDepartment = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:GotoDepartment')).value();
+
+ var ProductOwner = j$(escapeVfId('allPage:allForm:pageBlock:pageBlockSection:ProductOwner')).value();
+ /**if ((content == '' || content == null) && (contentOther.trim() == null || contentOther.trim() == '')) {
+ alert('璺熻繘鍐呭涓嶈兘涓虹┖锛�');
return;
- }else{
- blockme();
- allSave();
- }
- }
- function check(){
- window.opener.location.href = "/{!Inquiryform.id}";
- window.close();
- }
+ }else **/if (content == '鍏朵粬' && (contentOther.trim() == '' || contentOther.trim() == null)) {
+ alert('璺熻繘鍐呭锛堝叾浠栵級涓嶈兘涓虹┖锛�');
+ return;
+ }/**else if (content == '' || content == null) {
+ alert('璺熻繘鍐呭涓嶈兘涓虹┖锛�');
+ return;
+ }**/
+ /**20220726 LLIU-CGK3D2 you **/
+ else if(content == '浠呴渶鏈嶅姟瀵瑰簲,钀ヤ笟鏈嶅姟鍏卞悓瀵瑰簲'){
+ alert('浠呴渶鏈嶅姟瀵瑰簲鍜岃惀涓氭湇鍔″叡鍚屽搴斿彧鑳介�夋嫨涓�椤癸紒');
+ return;
+ }else if((Redistribution == '' || Redistribution == null) && (null!=GotoDepartment && ''!=GotoDepartment)){
+ alert('鏈嬀閫夋椂涓嶈兘濉啓杞嚦绉戝!');
+ }else if(('' !=Redistribution && null !=Redistribution) && (null==GotoDepartment || GotoDepartment == '')){
+ alert('鍕鹃�夋椂蹇呴』濉啓杞嚦绉戝!');
+ }else if((content == '' || content == null) && (contentOther.trim() == null || contentOther.trim() == '') && (Redistribution == '' || Redistribution == null) && (null==GotoDepartment || GotoDepartment == '') && (ProductOwner == '' || ProductOwner == null) ){
+ alert('璺熻繘鍐呭鎴栧凡杞崲蹇呴』鏈変竴涓湁鍊�');
+ }else{
+ blockme();
+ allSave();
+ }
+ }
+ function check(){
+ window.opener.location.href = "/{!Inquiryform.id}";
+ window.close();
+ }
</script>
- <apex:form id="allForm">
- <apex:actionfunction action="{!savefo}" name="allSave" onComplete="check();unblockUI();"></apex:actionfunction>
- <apex:pageBlock id="pageBlock">
- <apex:pageBlockSection id="pageBlockSection">
- <apex:inputField id="content" value="{!Inquiryform.Follow_Content__c}" style="width: 155px"/>
- <br />
- <apex:inputField id="contentOther" value="{!Inquiryform.Follow_Content_Other__c}" style="width: 150px"/>
- </apex:pageBlockSection>
- <apex:pageblockbuttons >
- <apex:commandbutton onclick="save();return false;" value="淇濆瓨"></apex:commandbutton>
- </apex:pageblockbuttons>
- </apex:pageBlock>
- </apex:form>
+ <apex:form id="allForm">
+ <apex:actionfunction action="{!savefo}" name="allSave" onComplete="check();unblockUI();"></apex:actionfunction>
+ <apex:pageBlock id="pageBlock">
+ <apex:pageBlockSection id="pageBlockSection">
+ <apex:pageBlockSectionItem ><font color="red">澶囨敞锛氶渶鏈汉瀵瑰簲锛岃鍦ㄦ杩涜鎿嶄綔銆�</font></apex:pageBlockSectionItem><br /><br />
+ <apex:inputField id="content" value="{!Inquiryform.Follow_Content__c}" />
+ <br />
+ <apex:inputField id="contentOther" value="{!Inquiryform.Follow_Content_Other__c}" style="width: 150px"/>
+ <br />
+ <apex:pageBlockSectionItem ><font color="red">澶囨敞锛氶潪鏈汉瀵瑰簲锛岃鍦ㄦ閫夋嫨闇�瀵瑰簲鐨勬垬鐣ョ瀹わ紝杩涜杞垎閰嶃��</font></apex:pageBlockSectionItem><br /><br />
+ <apex:inputField id="Redistribution" value="{!Inquiryform.Redistribution__c}" />
+ <br />
+ <apex:inputField id="GotoDepartment" value="{!Inquiryform.GotoDepartment__c}" style="width: 150px"/>
+ <br />
+ <apex:inputField id="ProductOwner" value="{!Inquiryform.Product_Owner__c}"/>
+ <br />
+ </apex:pageBlockSection>
+
+ <apex:pageblockbuttons location="bottom">
+ <apex:commandButton onclick="save();return false;" value="淇濆瓨"></apex:commandButton>
+ </apex:pageblockbuttons>
+ </apex:pageBlock>
+ </apex:form>
</apex:page>
\ No newline at end of file
--
Gitblit v1.9.1