DESKTOP-0K9VGFE\hp
2022-03-11 6d766b0c8e9b31e7e03ffd344a94c2851aa9beb9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<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>