username@email.com
4 天以前 9f509856cb49f1e36ce370387b2ee7fc6810f414
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OA_DocumentDetail.aspx.cs" Inherits="CY.WebForm.Pages.work.OA_DocumentDetail" %>
 
<!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>
    <script type="text/javascript" src="../../libs/js/jquery.js"></script>
    <script src="../../js/common/util.js" type="text/javascript"></script>
    <link href="../../Styles/Print.css" rel="stylesheet" type="text/css" />
    <script src="../../js/common/Printter.js" type="text/javascript"></script>
    <script src="../../js/common/LodopFuncs.js" type="text/javascript"></script>
    <style type="text/css">
        .tableStyle div { text-align: left; overflow: visible; line-height: 15px; }
        .tableStyle tr, td, th { padding: 0px; height: auto; }
    </style>
        <script type="text/javascript">
            Preview =   function () {
                OnPrint();
                try {
                    LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
                    if ((LODOP == null) || (typeof (LODOP.VERSION) == "undefined")) return;
                    var div_tool = document.getElementById('div_tool');
                    var printparams = div_tool.getAttribute('printparams');
 
                    if (!printparams) {
                        // alert("1");
                        // LODOP.SET_PRINT_PAGESIZE(0, 1700, 1200, "A4");
                    }
                    else {
                        printparams = printparams.toString().split(',');
                        LODOP.SET_PRINT_PAGESIZE(parseInt(printparams[0]), parseInt(printparams[1]), parseInt(printparams[2]), printparams[3]);
                    }
 
 
                    if ($("#div_tool").attr("issideways") == "true") {
                        LODOP.ADD_PRINT_TABLE(30, 30, "95%", "90%", $(document.documentElement).html());
                        LODOP.SET_SHOW_MODE("LANDSCAPE_DEFROTATED", 1);
                    } else if ($("#div_tool").attr("issideways") == "printinfo") {
                        var Oldhtml = "";
                        if (printStyle != "" && printStyle != undefined && printContent !== "") {
                            Oldhtml = printStyle + "<body>" + printContent + "</body>";
                            LODOP.ADD_PRINT_HTM(30, 30, "95%", "90%", Oldhtml);
                        }
                        else {
                            $(".warning").remove();
                            //alert($(document.documentElement).html());
                            LODOP.ADD_PRINT_HTM(30, 43, "95%", "90%", $(document.documentElement).html());
                        }
                    } else {
                        var Oldhtml = "";
                        if (printStyle != "" && printStyle != undefined && printContent !== "") {
                            Oldhtml = printStyle + "<body>" + printContent + "</body>";
                            LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", Oldhtml);
                        }
                        else {
                            $(".warning").remove();
                            /*alert($(document.documentElement).html());*/
                            /* LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", $(document.documentElement).html());*/
 
                            // 获取HTML内容
                            var content = $(document.documentElement).html();
 
                            // 将内容按分页标签分割
                            var pages = content.split('<div class="page-break"></div>');
                            // 遍历每一页的内容
                            for (var i = 0; i < pages.length; i++) {
                                /*  alert(pages[i]);*/
                                if (i > 0) LODOP.NewPage(); // 对于非第一页,添加新页
 
                                // 添加打印内容
                                LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", pages[i]);
                            }
                        }
                    }
                    LODOP.PREVIEW();
 
                } catch (e) {
                    //alertMsg('异常信息:' + e.message);
                }
                OnPrintOver();
            }
        </script>
</head>
<body>
    <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0" height="0">
        <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="/Pages/common/install_lodop32.exe"></embed>
    </object>
    <div id='div_tool' issideways="printinfo" printparams='1,2100,2970, "A4"'>
    </div>
    <form id="form1" class="form2" runat="server">
    <table style="width: 590px; margin-top: 30px; margin: 0 auto;">
        <tr style="height: 130px;">
            <td colspan="2" style="font-size: 40px; color: Red; font-weight: bold; text-align: center;">
                <%--<%=DM_Model.DM_Title.ToString() %></td>--%>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="color: Black; font-size: 16px; text-align: center; padding-top: 55px;">
                <span id="spanDM_DocumentNumber" runat="server"></span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <%--<div style="border-bottom: 2px solid red;">
                </div>--%>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="padding: 90px 0 10px 0; font-size: 24px; text-align: center; font-weight: bold;">
                <span id="spanDM_Title" runat="server"></span>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="padding: 20px 0 50px 0; line-height: 25px; font-size: 16px;">
                <div id="spanDM_Content" runat="server" style="width: 590px; word-wrap: break-word; text-align: justify;">
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" colspan="2" style="padding: 20px 0px 0px 0px; font-size: 16px;">
                <span id="spanDM_PostingFirmName" runat="server"></span>
            </td>
        </tr>
        <tr>
            <td align="right" colspan="2" style="padding: 0px 0px 40px 0px; font-size: 16px;">
                <span id="spanDM_PromulgatedDate" runat="server"></span>
            </td>
        </tr>
        <%=charu %>
        <tr id="tr1" runat = "server">
            <td colspan="2" style="font-size: 16px;">
                <span style="font-weight: bold; font-size: 18px; color: Black;">主题词:</span><span id="spanDM_ThemeWords" runat="server"></span>
            </td>
        </tr>
        <tr id="tr2" runat = "server">
            <td colspan="2">
                <div style="border-bottom: 1px solid black;">
                </div>
            </td>
        </tr>
        <tr id="tr3" runat = "server">
            <td colspan="2" style="font-size: 16px;">
                <span style="font-weight: bold; font-size: 18px; color: Black;">抄&nbsp;&nbsp;&nbsp;&nbsp;送:</span><span id="spanDM_CCUnit" runat="server"></span>
            </td>
        </tr>
        <tr id="tr4" runat = "server">
            <td colspan="2">
                <div style="border-bottom: 1px solid black;">
                </div>
            </td>
        </tr>
        <tr>
            <td style="font-size: 16px;" align="left">
                <span id="spanDM_PostingName" runat="server"></span>
            </td>
            <td style="font-size: 16px;" align="right">
                <%=DateTime.Now.ToLongDateString()%>印发
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div style="border-bottom: 1px solid black;">
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>