liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
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
59
60
61
62
<apex:page showHeader="true" sidebar="true" id="allPage" title="MergeAgencyActivity" controller="MergeAgencyActivityController" lightningStylesheets="true">
<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>
<div style="padding-left: 36%;padding-top: 30px;">
    <table style="height: 200px">
        <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 style="height: 38.61px;">
            <td>允许新经销商下存在数据 : </td>
            <td><apex:inputCheckbox id="forceFlg" value="{!forceFlg}"/></td>
        </tr>
        <tr>
            <td></td>
            <td><input type="button" value="确定" onclick="startJobJs();return false;" style="float: right;width: 65%;display: inline-block;height: 30px;border-radius: .25rem;color: rgba(1, 118, 211, 1);background-color: white;border-width: 1px;border-color: rgb(201, 201, 201);border-style: double;" /></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>
</div>
 
</apex:form>
 
</apex:page>