| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <%@ page language="java" contentType="text/html; charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=GBK">
- <link href="main.css" rel="stylesheet" type="text/css"></link>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="controls/print/plugPrint.js"></script>
- <link rel="stylesheet" type="text/css" href="controls/print/print.css">
- <!--media=print 这个属性可以在打印时有效-->
- <style media=print>
- .Noprint {
- display: none;
- }
- .PageNext {
- page-break-after: always;
- }
- </style>
- <style type="text/css">
- table{
- width:100%;
- }
- .print td{
- padding-top:2px;
- height:30px;
- text-align:center;
- }
- .commont{
- height:30px;
- margin-top:30px;
- text-align:left;
- font-weight:bold;
- font-size:15px;
- }
- .fncBtn {
- width: 100%;
- background: #e5ecf9;
- height: 30px;
- padding-top: 3px;
- text-align:center;
- }
- .btn {
- height: 25px;
- line-height: 20px;
- }
- </style>
- <title>工程内业资料清单打印</title>
- <script language="javascript" type="text/javascript">
- //****************************************************************
- //* 名 称:formPrintit
- //* 功 能:打印
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPrintit(isZong, isSelectPrinter) {
- setupHeaderAndFooter("", "");
- setupMargin("1", "28", "28", "28", "28");
- printit(isZong, isSelectPrinter);
- }
- //****************************************************************
- //* 名 称:formPageSetup
- //* 功 能:打印设置
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPageSetup() {
- setupHeaderAndFooter("", "");
- setupMargin("1", "28", "28", "28", "28");
- popPageSetup();
- }
- //****************************************************************
- //* 名 称:formPreview
- //* 功 能:打印预览
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPreview() {
- setupHeaderAndFooter("", "");
- setupMargin("1", "28", "28", "28", "28");
- popPreview();
- }
- function printWindow() {
- factory.printing.header = "This is MeadCo";
- factory.printing.footer = "Printing by ScriptX";
- factory.printing.portrait = false;
- factory.printing.leftMargin = 1.0;
- factory.printing.topMargin = 1.0;
- factory.printing.rightMargin = 1.0;
- factory.printing.bottomMargin = 1.0;
- // factory.printing.Print(false);
- factory.printing.Preview();
- }
- </script>
- </head>
- <body>
- <div class="fncBtn Noprint"> <object id="factory" viewastext style="display: none"
- classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
- codebase="${pageContext.request.contextPath}/controls/print/smsx.cab#Version=7,0,0,8">
- </object> <input type=button value="选择打印" onclick="formPrintit(false, true)" class="btn">
- <input type=button value="直接打印" onclick="formPrintit(true, false)" class="btn">
- <input type=button value="页面设置" onclick="formPageSetup()" class="btn">
- <input type=button value="打印预览" onclick="formPreview()" class="btn">
- </div>
- <div style="width:100%;text-align:center">
- <div style="margin:0 auto;width:90%">
- <table class="print">
- <tr>
- <td colspan="6" >
- <h6 style="font-size:30px;">
- 分公司基本资料存档清单
- </h6>
- </td>
- </tr>
- <tr>
- <td style="font-size:15px;">分公司全称</td>
- <td style="font-size:15px;text-align: left;" colspan="5" >${requestScope.filialeInfo.filiale_name }</td>
- </tr>
- <tr>
- <td style="font-size:15px;" >分公司负责人</td>
- <td style="font-size:15px;" colspan="2" >${requestScope.filialeInfo.filiale_principal }</td>
- <td style="font-size:15px;" >联系电话</td>
- <td style="font-size:15px;" colspan="2">${requestScope.filialeInfo.filiale_principal_phone }</td>
- </tr>
- <tr>
- <td style="font-size:15px;" >办公地址</td>
- <td style="font-size:15px;text-align: left;" colspan="5" >${requestScope.filialeInfo.filiale_address }</td>
- </tr>
- <tr>
- <td style="font-size:15px;" >联系人</td>
- <td style="font-size:15px;" >${requestScope.filialeInfo.filiale_linkman }</td>
- <td style="font-size:15px;" >联系电话</td>
- <td style="font-size:15px;">${requestScope.filialeInfo.filiale_linkman_phone }</td>
- <td style="font-size:15px;">传真</td>
- <td style="font-size:15px;">${requestScope.filialeInfo.filiale_linkman_fax }</td>
- </tr>
- <tr>
- <td style="font-size:15px;" >序号</td>
- <td style="font-size:15px;" colspan="4">资料名称</td>
- <td style="font-size:15px;" >备注</td>
- </tr>
-
- <c:forEach var="list" items="${listFilialeDetail}" varStatus="status">
- <tr>
- <td style="font-size:15px;" >${status.index + 1}</td>
- <td style="font-size:15px;text-align: left;" colspan="4">${list.filiale_data_name }</td>
- <td style="font-size:15px;" >${list.filiale_data_remark }</td>
- </tr>
- </c:forEach>
-
- </table>
-
- </div>
- </div>
- </body>
- </html>
|