|  |  | 
 |  |  | <apex:page id="Page" showHeader="false" sidebar="false" Controller="SetPersonalTargetController" action="{!init}"> | 
 |  |  | <apex:page id="Page" showHeader="false" sidebar="false" Controller="SetPersonalTargetController" action="{!init}" lightningStylesheets="true"> | 
 |  |  | <head> | 
 |  |  | <title>部门担当者目标设定(医院担当)</title> | 
 |  |  |      | 
 |  |  | 
 |  |  |         unblockUI(); | 
 |  |  |     } | 
 |  |  | } | 
 |  |  | function DisableAllButtons (actionText) { | 
 |  |  |     var button = document.getElementById("Page:Form:headBlock:updateToTarget"); | 
 |  |  |     button.disabled = true; | 
 |  |  |     button.classList.add("btnDisabled"); | 
 |  |  | } | 
 |  |  |     //20200618 SWAG-BQ7CM9   添加UpdateJs 调用Apex 中Update函数 by ljh | 
 |  |  | function UpdateJs(actionText) { | 
 |  |  |     blockme_dark(); | 
 |  |  |     if (window.confirm('确定要反应到目标吗?')) { | 
 |  |  |         Update(); | 
 |  |  |         // j$(escapeVfId('Page:Form:headBlock:updateToTarget')).attr("disabled",true); | 
 |  |  |         // alert('请等待提示【反映到目标成功】在做其他操作'); | 
 |  |  |         DisableAllButtons(actionText); | 
 |  |  |     } else { | 
 |  |  |         unblockUI(); | 
 |  |  |     } | 
 |  |  | } | 
 |  |  | // 20220613 WLIG-CER9NQ you 页面中拿掉改成batch执行 | 
 |  |  | // function DisableAllButtons (actionText) { | 
 |  |  | //     var button = document.getElementById("Page:Form:headBlock:updateToTarget"); | 
 |  |  | //     button.disabled = true; | 
 |  |  | //     button.classList.add("btnDisabled"); | 
 |  |  | // } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | //     //20200618 SWAG-BQ7CM9   添加UpdateJs 调用Apex 中Update函数 by ljh | 
 |  |  | // function UpdateJs(actionText) { | 
 |  |  | //     blockme_dark(); | 
 |  |  | //     if (window.confirm('确定要反应到目标吗?')) { | 
 |  |  | //         Update(); | 
 |  |  | //         // j$(escapeVfId('Page:Form:headBlock:updateToTarget')).attr("disabled",true); | 
 |  |  | //         // alert('请等待提示【反映到目标成功】在做其他操作'); | 
 |  |  | //         DisableAllButtons(actionText); | 
 |  |  | //     } else { | 
 |  |  | //         unblockUI(); | 
 |  |  | //     } | 
 |  |  | // } | 
 |  |  | function nextJs() { | 
 |  |  |     blockme(); | 
 |  |  |     if (j$(escapeVfId('Page:Form:editBlock:changeFlg')).value() == 1) { | 
 |  |  | 
 |  |  |      </apex:actionFunction> | 
 |  |  |     <!--CHAN-BDQBLX  20210125 you end --> | 
 |  |  |     <apex:actionFunction name="save" action="{!saveBtn}" rerender="MessageP,editBlock" oncomplete="unblockUI();" /> | 
 |  |  |     <!--20220613 WLIG-CER9NQ you 页面中拿掉改成batch执行--> | 
 |  |  |     <!-- 20200618 SWAG-BQ7CM9  添加Update action function by ljh --> | 
 |  |  |     <apex:actionFunction name="Update" action="{!UpdateBtn}" rerender="MessageP,dataBlock" oncomplete="unblockUI();Secin();" /> | 
 |  |  |     <!--<apex:actionFunction name="Update" action="{!UpdateBtn}" rerender="MessageP,dataBlock" oncomplete="unblockUI();Secin();" /> --> | 
 |  |  |     <apex:actionFunction name="next" action="{!next}" rerender="Form" oncomplete="unblockUI();"> | 
 |  |  |         <apex:param name="saveFlg" assignTo="{!saveFlg}" value="" /> | 
 |  |  |     </apex:actionFunction> | 
 |  |  | 
 |  |  |                         <apex:inputCheckBox value="{!p.check}" id="post" onchange="searchByFilterJs();return false;"/><apex:outputLabel value="{!p.positionName}" for="post"/>    | 
 |  |  |                     </apex:repeat> | 
 |  |  |                 </td> | 
 |  |  |                 <!-- 20220613 WLIG-CER9NQ you 页面中拿掉改成batch执行 | 
 |  |  |                 <td align="right" width="80"> | 
 |  |  |                     <!-- 20200619 add  反应到目标 按钮 --> | 
 |  |  |                      20200619 add  反应到目标 按钮  | 
 |  |  |                     <apex:commandButton value="反应到目标" id="updateToTarget" style="margin-left: 20px;" rerender="dummy" onclick="UpdateJs(this);return false;" rendered="{!Not(isPast)}"/> | 
 |  |  |                 </td> | 
 |  |  |                --> | 
 |  |  |                 <!--CHAN-BDQBLX  20210125 you start --> | 
 |  |  |                 <td width="80"> | 
 |  |  |                     <apex:commandbutton onclick="exportJs();return false;" id="export" value="导出数据模板"> |