LR-20210131IOQH\Administrator
2021-09-17 8d824926bbb3346eb1046b9f1ab8d95b6a60ba17
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CorporateClientsVisit.aspx.cs" Inherits="CY.WebForm.Pages.business.CorporateClientsVisit" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>查看合作客户资料</title>
    <uc:CMSHead ID="CMSHead1" runat="server" />
      <script type="text/javascript">
 
          function printview() {
              bdhtml = window.document.body.innerHTML;
              sprnstr = "<!--startprint-->"; //开始打印标识字符串有17个字符
              eprnstr = "<!--endprint-->"; //结束打印标识字符串
              prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17); //从开始打印标识之后的内容
              prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); //截取开始标识和结束标识之间的内容
              window.document.body.innerHTML = prnhtml; //把需要打印的指定内容赋给body.innerHTML
              window.print(); //调用浏览器的打印功能打印指定区域
 
              window.document.body.innerHTML = bdhtml;//重新给页面内容赋值;
          }
        
      </script>
</head>
<body>
    <form runat="server" id="form1" class="form">
           
            <table class="TableNewStyle" width="100%">
                <tr>
                     
                <tr>
                    
                    <td>
                        
                         <input type="button" class="button" value="打印" onclick="printview();" />
                    </td>
                </tr>
            </table>
         
          <fieldset>
                <legend>维护记录</legend>
              <!--startprint-->
               <table class="tableStyle" style="margin-bottom:10px;">
                
                <tr>
                    
                    <td class="ali03 " style="width:10%">客户单位:</td>
                    <td style="width:30%">
                    <span  id="spanCompanyName" runat="server" ></span>
                    </td>
                    <td class="ali03 " style="width:10%">业务经理:</td><td style="width:20%"><span  id="spanBusinessManagerId" runat="server" ></span></td>
                    <td class="ali03 " style="width:10%">打印日期:</td><td style="width:20%"><span  id="spanprintdate" runat="server" ></span></td>
                </tr>
            </table>
              
            <asp:Repeater ID="RepClientList" runat="server">
                <HeaderTemplate>
                    <table class="tableStyle" useclick="false" usecheckbox="true" sortmode="true"  border="1" cellspacing="0" cellpadding="0" style="text-align: center;">
                        <tr>
                          <th style="text-align: center;width:10px;">
                                序号
                            </th>
                            <th style="text-align: center;">
                                维护日期
                            </th>
                            <th style="text-align: center;">
                                维护记录
                            </th>
                             <th style="text-align: center;">
                                维护人
                            </th>
                           
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                      
                        <td>
                             <%# Container.ItemIndex + 1%>
                        </td>
                        <td>
                            <%#Eval("VisitTime", "{0:yyyy-MM-dd}")%>
                        </td>
                         <td>
                            <%#Eval("Remark")%>
                        </td>
                         <td>
                            <%#Eval("CreaterName")%>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
             <!--endprint-->
          </fieldset>
    </form>
</body>
</html>