| <apex:page showHeader="true" sidebar="true" id="allPage" title="MergeAgencyActivity" controller="MergeAgencyActivityController"> | 
| <head> | 
| <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> | 
| <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> | 
| <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> | 
| </head> | 
|   | 
| <script type="text/javascript"> | 
|     function startJobJs() { | 
|         if (j$("input[name$='oldAgencyCode']").val()  | 
|             && j$("input[name$='newAgencyCode']").val()) { | 
|             blockme(); | 
|             startJob(); | 
|         } else { | 
|             alert("请输入参数"); | 
|             return | 
|         } | 
|     } | 
| </script> | 
|   | 
| <apex:form id="allForm"> | 
| <apex:actionFunction name="startJob" action="{!startJob}" rerender="allForm" onComplete="unblockUI()" /> | 
| <apex:outputPanel id="message"> | 
|     <apex:pageMessages /> | 
| </apex:outputPanel> | 
| <table> | 
|     <tr> | 
|         <td colspan="2"> | 
|             <font>经销商更名</font> | 
|         </td> | 
|     </tr> | 
|     <tr> | 
|         <td>旧经销商管理编码 : </td> | 
|         <td><apex:inputText id="oldAgencyCode" value="{!oldAgencyCode}"/></td> | 
|     </tr> | 
|     <tr> | 
|         <td>新经销商管理编码 : </td> | 
|         <td><apex:inputText id="newAgencyCode" value="{!newAgencyCode}"/></td> | 
|     </tr> | 
|     <tr> | 
|         <td>允许新经销商下存在数据 : </td> | 
|         <td><apex:inputCheckbox id="forceFlg" value="{!forceFlg}"/></td> | 
|     </tr> | 
|     <tr> | 
|         <td><input type="button" value="确定" onclick="startJobJs();return false;" /></td> | 
|     </tr> | 
|     <tr> | 
|         <td colspan="2"> | 
|             <apex:outputPanel layout="none" rendered="{!startFlg}"> | 
|             <!-- <font>经销商更名</font> --> | 
|                 <font>已经开始Batch</font><a href="/apexpages/setup/listAsyncApexJobs.apexp">点此</a><font>查看具体信息</font> | 
|             </apex:outputPanel> | 
|         </td> | 
|     </tr> | 
| </table> | 
| </apex:form> | 
|   | 
| </apex:page> |