CB2-20200827ONU\Administrator
2021-09-22 4d584101e46ff34b2694e88af706b9b2e92364bc
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CorporateClientsUpLoadContract.aspx.cs" Inherits="CY.WebForm.Pages.business.CorporateClientsUpLoadContract" %>
<%-- 上传合同页面  廖 20210916增加--%>
<!DOCTYPE html>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.hammer.min.js" type="text/javascript"></script>  
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head  id="Head1"  runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    
 
      <uc:CMSHead ID="CMSHead1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
           <div class="box1" paneltitle="功能面板" roller="false">
            <table class="TableNewStyle">
                <tr>
                      <td class="ali03">新增合同页面:
                        </td>                    
                    <td class="ali03">
                        页码:
                    </td>
 
                    <td>
                        第 <input type="text" runat="server" id="TextPage" /> 页
                    </td>
                     <td class="ali03"></td>
                  
                    <td class="ali03"><input type="file" id="filesel" name="__hetongFile"  keepdefaultstyle="true" multiple="multiple" runat="server"  /></td>
                    <td> <asp:Button ID="UpdateFileNew" Text="新增或者替换该页(上传图片)" runat="server" OnClick="btn_Submit_Click"   OnClientClick="return checkSelFile()" /></td>
                </tr>
            </table>
        </div>
          <div>
  
              <p style="text-align:center"> 已有页面</p>
   
            <asp:repeater id="RepClientList" runat="server" >
                <headertemplate>
                    <table class="tableStyle">
                        <tr>
                           <%-- <th width="25"></th>--%>
                            <th width="60" style="text-align:center">
                                页码
                            </th>
                            <th style="text-align:center" >
                                预览
                            </th>
                           <th style="text-align:center">
                                操作
                            </th>               
                          
                          
                        </tr>
                </headertemplate>        
              
 
                <ItemTemplate>
                        <tr>
                           <%-- <td>
                                <input type="checkbox" class="SelectCheck" value_kid="<%#Eval("Keyid")%>" />
                            </td>--%>
                            <td>
                               第  <%#Eval("PageCode")%> 页                       
                            </td>
                            <td>
                                 
                             <a   title="点击查看原图"   href="<%#Eval("FilePath").ToString() %>" target="view_window">
                                   <img src="<%#Eval("FilePath").ToString() %>"  width="80" height="100"/> </a>
                       
                            </td>
 
 
                           <td>
                                 
                                <a onclick="delelid('<%#Eval("Keyid")%>','<%= Request["Keyid"]%>')">删除当前页面</a>
                           </td>
                           
                            
                          
                         
                            
                          
                           
                        </tr>
                    </ItemTemplate>
                 
 
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                  
 
 
 
 
                </asp:repeater>
                     <div id="page">
                    <uc:UCPager ID="UCPager1" runat="server" />
                </div>
 
               
                 
             
              </div>
       
    </form>
</body>
</html>
<script type="text/javascript">
 
    //查看
    function checkSelFile() {
    
        if (document.getElementById("TextPage").value == "") {
            alertMsg("没有输入页数");
           
            return false;
        }
        var oFile = document.getElementById('filesel');
            if(oFile.value == ""){
                alertMsg('没有选择文件');
                return false;
               
}
 
        return true;
    }
 
    //删除制定合同页面
    function delelid(KeyID,pageID) {
 
        top.Dialog.confirm("是否要删除该合同页面?", function () {
            window.location = "/Pages/business/CorporateClientsUpLoadContract.aspx?deleteKeyIds=" + KeyID + "&Keyid=" + pageID;
        }
        );
    }
            
</script>