| | |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> |
| | | <!-- Add By Li Jun for PIPL 20220225 --> |
| | | <apex:includeScript value="{!URLFOR($Resource.AWSService, 'AWSService.js') }" /> |
| | | <script src="../../soap/ajax/53.0/connection.js" type="text/javascript"></script> |
| | | <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> |
| | | <!-- Add By Li Jun for PIPL 20220225 --> |
| | | <script> |
| | | var ros = '{!$User.State_Hospital__c}'; |
| | |
| | | AWSService.search(staticResources.searchUrl,data,searchCallBack,staticResources.token); |
| | | } |
| | | //Add By Li Jun 20220225 for PIPL End |
| | | |
| | | // 2021-07-29 zyh update start |
| | | function OPDPlan_F(){ |
| | | var cid = document.getElementById('page:form:all:visitSettings:opportunity5111'); |
| | | var cid1 = document.getElementById('page:form:all:visitSettings:opportunity').value; |
| | | var cid2 = document.getElementById('page:form:all:visitSettings:opportunity2').value; |
| | | if (cid.checked == true && cid1 == '' && cid2 == '') { |
| | | if(!confirm("您创建的OPD计划没有关联询价,需要审批到副总裁。")){ |
| | | return; |
| | | } |
| | | // alert('您创建的OPD计划没有关联询价,需要审批到副总裁。'); |
| | | } |
| | | // save(); |
| | | }/* |
| | | function OPDPlan_F1(){ |
| | | var cid = document.getElementById('page:form:all:visitSettings:opportunity5111'); |
| | | var cid1 = document.getElementById('page:form:all:visitSettings:opportunity').value; |
| | | var cid2 = document.getElementById('page:form:all:visitSettings:opportunity2').value; |
| | | if (cid.checked == true && cid1 == '' && cid2 == '') { |
| | | if(!confirm("您创建的OPD计划没有关联询价,需要审批到副总裁。")){ |
| | | return; |
| | | } |
| | | // alert('您创建的OPD计划没有关联询价,需要审批到副总裁。'); |
| | | } |
| | | saveAndNew(); |
| | | }*/ |
| | | // 2021-07-29 zyh update end |
| | | </script> |
| | | <style> |
| | | .visitorplace_results { |
| | |
| | | |
| | | <apex:form id="form"> |
| | | |
| | | <!-- // 2021-07-29 zyh update start --> |
| | | <!-- <apex:actionFunction action="{!save}" name="save" reRender="visitSettings" oncomplete="blockme();unblockUI();"/> |
| | | <apex:actionFunction action="{!saveAndNew}" name="saveAndNew" reRender="visitSettings" oncomplete="blockme();unblockUI();"/> --> |
| | | <!-- // 2021-07-29 zyh update end --> |
| | | <apex:actionFunction name="callHospital" action="{!visitToHospital}" immediate="true" rerender="visitSettings"/> |
| | | <apex:actionFunction name="callAgent" action="{!visitToAgent}" immediate="true" rerender="visitSettings"/> |
| | | <apex:actionFunction name="callTraining" action="{!visitToTraining}" immediate="true" rerender="visitSettings"/> |
| | | <apex:actionFunction name="callCampaign" action="{!visitToCampaign}" immediate="true" rerender="visitSettings"/> |
| | | <apex:actionFunction name="callNone" action="{!visitToNone}" immediate="true" rerender="visitSettings"/> |
| | | |
| | | |
| | | <apex:pageBlock title="事件编辑" mode="edit" id="all"> |
| | | |
| | |
| | | <!--2021-12-23 mzy 备品任务 stat 只有用户拜访时可以勾选 OPD计划--> |
| | | <!-- 10101104 zh SFDC-BUF6KM OPD被动任务 start --> |
| | | <!-- <apex:inputField label="{!$ObjectType.Event.fields.OPDPlan_Flag__c.label}" value="{!targetEvent.OPDPlan_Flag__c}" rendered="True" id="opportunity5111" onFocus="setSuggestOpportunity5();" onchange="resetValue('page:form:all:visitSettings:opportunity5');" /> --> |
| | | <apex:inputField label="{!$ObjectType.Event.fields.OPDPlan_Flag__c.label}" value="{!targetEvent.OPDPlan_Flag__c}" rendered="{!!isOpdDisable && isHospital}" id="opportunity5111" onFocus="setSuggestOpportunity5();" onchange="resetValue('page:form:all:visitSettings:opportunity5');" /> |
| | | <apex:inputField label="{!$ObjectType.Event.fields.OPDPlan_Flag__c.label}" value="{!targetEvent.OPDPlan_Flag__c}" rendered="{!!isOpdDisable && isHospital}" id="opportunity5111" onFocus="setSuggestOpportunity5();" onchange="resetValue('page:form:all:visitSettings:opportunity5');" onclick="OPDPlan_F();" /> |
| | | <apex:inputField label="{!$ObjectType.Event.fields.OPDPlan_Flag__c.label}" value="{!targetEvent.OPDPlan_Flag__c}" rendered="{!isOpdDisable && isHospital}" html-disabled="true" /> |
| | | <!-- 10101104 zh SFDC-BUF6KM OPD被动任务 end --> |
| | | <!--2021-12-23 mzy 备品任务 end 只有用户拜访时可以勾选 OPD计划--> |
| | |
| | | </apex:pageblockSection> |
| | | |
| | | <apex:pageBlockButtons > |
| | | <apex:commandButton value="保存" rerender="all,msgs" action="{!save}" onclick="blockme();" oncomplete="unblockUI();disablePurpose();" /> |
| | | <apex:commandButton value="保存并新建" rerender="all,msgs" action="{!saveAndNew}" onclick="blockme(); disablePurpose();" oncomplete="unblockUI();"/> |
| | | <apex:commandButton value="保存" rerender="all,msgs" action="{!save}" onclick=" blockme();" oncomplete="unblockUI();disablePurpose();" /> |
| | | <apex:commandButton value="保存并新建" rerender="all,msgs" action="{!saveAndNew}" onclick=" blockme(); disablePurpose();" oncomplete="unblockUI();"/> |
| | | <apex:commandButton value="取消" action="{!cancel}" onclick="blockme();" oncomplete="unblockUI();"/> |
| | | </apex:pageBlockButtons> |
| | | |