Sfoglia il codice sorgente

党文收文

同煤学院(新)
yxq 10 ore fa
parent
commit
2d95830476
3 ha cambiato i file con 108 aggiunte e 293 eliminazioni
  1. +103
    -293
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Print.cshtml
  2. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/static/css/print.css
  3. BIN
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/static/img/printBg.png

+ 103
- 293
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Print.cshtml Vedi File

@@ -13,22 +13,13 @@
<link href="/Content/pace/pace-theme-minimal.css" rel="stylesheet" />
<link href="/Content/font/css/font-awesome.min.css" rel="stylesheet" />
<link href="/Content/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="~/Content/static/css/print.css" rel="stylesheet" />

<script src="/Content/pace/pace.min.js"></script>
<script src="/Content/jquery/jquery-1.10.2.min.js"></script>
<script src="/Content/bootstrap/bootstrap.min.js"></script>
<script src="/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js"></script>
<style>
/*.btn {
width: 100px;
height: 34px;
line-height: 34px;
text-align: center;
margin: 30px auto;
border: 1px solid #ccc;
cursor: pointer;
border-radius: 4px;
}*/
.lr-query-btn {
position: absolute;
width: 122px;
@@ -46,310 +37,128 @@
font-size: 18px;
}

.table {
width: 90%;
margin: 30px auto;
}

* {
padding: 0;
margin: 0;
font-weight: bold;
}

i,
em {
font-style: normal
}

.box {
border-left: 2px dotted red;
width: 1100px;
margin-left: 30px;
position: relative;
/* float: right; */
html, body, #content {
width: 100%;
height: 100%;
border: none;
position: relative !important;
}
.zdx {
.printBg {
width: 100%;
position: absolute;
width: 20px;
background: #fff;
top: 40%;
left: -20px;
padding: 10px;
top: 0;
left: 0;
z-index: -1;
opacity: 0.6;
}

.zdx span {
display: inline-block;
margin-top: 10px;
}

h5 {
font-size: 28px;
margin-top: 40px;
margin-bottom: 50px;
text-align: center;
color: red;
.absoluteDivs{
width:100%;
height:100%;
position:relative;
}

span {
color: red;
}

.heder {
height: 184px;
width: 90%;
margin: 0 auto;
border-top: 2px solid red;
border-bottom: 2px solid red;
}

.hederL {
float: left;
}

.hederR {
float: right;
width: 40%;
border-left: 2px solid red;
height: 180px;
padding-left: 50px;
word-wrap: break-word;
word-break: break-all;
}

.hederR p {
margin-top: 10px;
}

.hederR h6 {
color: red;
font-size: 16px;
}

.hederR p:nth-child(2) {
margin-top: 30px;
}

.hederR span, em {
padding: 10px 12px;
}

.hederR span {
display: inline-block;
}

.sy {
width: 90%;
margin: 0 auto;
height: 200px;
border-bottom: 2px solid red;
}

.sy span em {
display: inline-block;
padding: 10px 20px;
}

.yj {
width: 90%;
margin: 0 auto;
height: 185px;
border-bottom: 2px solid red;
}

.yj div {
height: 140px;
}

.yj div span {
display: inline-block;
padding: 10px 20px;
}

.yj p {
float: right;
}

.yj p span {
display: inline-block;
padding: 10px 20px;
}

.ps {
height: auto;
width: 90%;
margin: 0 auto;
}

.ps div {
/*height: 480px;*/
border-bottom: 2px solid red;
}

.ps div span {
display: block;
padding: 10px 20px;
min-height: 235px;
}

.ps p {
float: right;
}

.ps p span {
display: inline-block;
padding: 10px 20px;
margin-bottom: 40px;
}

.ulzp {
text-indent: 32px;
font-size: 14px;
line-height: 30px;
position: relative;
}

.ulzp ul {
width: 50%;
float: left;
}

.ulzp li {
float: left;
padding: 0;
margin: 0;
list-style: none;
}

.ulzp span {
display: inline-block;
width: 80px;
height: 24px;
border-bottom: 1px solid #000;
vertical-align: bottom;
position: relative;
top: -5px;
text-indent: 0;
text-align: center;
}
#mapHeight{
height: 650px;
}
#psMain div {
border: 0;
}
.leftDiv{
float: left;
width: 50%;
.absoluteDivs > * {
position: absolute;
font-size: 1.8vw;
}

</style>
</head>

<body>
<div id="content" class="content">
<div class="box">
<p class="zdx">
<span>装</span>

<span>订</span>

<span>线</span>
</p>
<h5 style="height: 36px;">@Model.DisTitle</h5>
<div class="heder">
<div class="hederL"></div>
<div class="hederR">
<p><em>@Model.DisFrom</em><h6> 来 文 单 位 </h6></p>
<p>
@*<em>@Model.Copies</em>
<span> 份 数 </span>*@
<em>@Model.DisWork</em>
<span>字</span>
<em>@Model.DisMark</em>
<span>号</span>
</p>
<p>
<em>@Model.DisYear</em>
<span>年</span>
<em>@Model.DisMonth</em>
<span>月</span>
<em>@Model.DisDay</em>
<span>日</span>
</p>
</div>
<img class="printBg" src="~/Content/static/img/printBg.png" />
<div class="absoluteDivs">
@*来文单位*@
<div style="left:56.6VW;top:22.5VW;">@Model.DisFrom</div>
@*字*@
<div style="left:70VW;top:20VW;">@Model.DisWork</div>
@*号*@
<div style="left:79VW;top:20VW;">@Model.DisMark</div>
@*年*@
<div style="left:62VW;top:29VW;">@Model.DisYear</div>
@*月*@
<div style="left:71VW;top:29VW;">@Model.DisMonth</div>
@*日*@
<div style="left:79VW;top:29VW;">@Model.DisDay</div>
@*事由*@
<div style="left:28VW;top:37VW;margin-right:10vw">@Model.Reasons</div>
@*附件*@
<div style="left:28VW;top:50VW;margin-right:10vw">@Model.AttachmentName</div>
@*呈送意见*@
<div style="left:28VW;top:64VW;margin-right:10vw">
@Model.Render 某某
@Model.RenderDate.ToShortDateString().ToString().Replace("/", "-")
</div>
<div class="sy">
<span>
<em> 事 </em><em> 由: </em>
<em style="color: #000000">
@Model.Reasons
</em>
</span>
</div>
@*<div class="sy">
<span>
<em> 附 </em><em> 件: </em><em style="color: #000000">@Model.AttachmentName</em>
</span>
</div>*@
<div class="yj">
<div>
<span>呈送意见:<em style="color: #000000">@Model.Render</em></span>
@*批示*@
<div style="left:10VW;top:86VW;margin-right:10vw">
<div style="height: auto;">
@foreach (var item in ViewBag.pSList)
{
<div style="" class="leftDiv">
<em style="display: inline-block; height: 30px; line-height: 30px; margin-left: 60px;">@item</em>
</div>
}
</div>
<p>
<span>
<em style="color: #000000">
@Model.RenderDate.ToShortDateString().ToString().Replace("/", "-")
</em>
</span>
</p>
</div>
<div class="ps">
<div id="mapHeight">
<span>
批 <em> 示:</em>
<em style="color: #000000" id="psMain">
<div style="height: auto;">
@foreach (var item in ViewBag.pSList)
{
<div style="" class="leftDiv">
<em style="display: inline-block; height: 30px; line-height: 30px; margin-left: 60px;">@item</em>
</div>
}
</div>
<div style="display:none">
<em>@Model.DisFrom</em>来 文 单 位

<em>@Model.DisWork</em>
<span>字</span>
<em>@Model.DisMark</em>
<span>号</span>

<em>@Model.DisYear</em>
<span>年</span>
<em>@Model.DisMonth</em>
<span>月</span>
<em>@Model.DisDay</em>
<span>日</span>

<em> 事 </em><em> 由: </em>
<em style="color: #000000">
@Model.Reasons
</em>

<em> 附 </em><em> 件: </em><em style="color: #000000">@Model.AttachmentName</em>

<span>呈送意见:<em style="color: #000000">@Model.Render</em></span>
@Model.RenderDate.ToShortDateString().ToString().Replace("/", "-")

批 <em> 示:</em>
<em style="color: #000000" id="psMain">
<div style="height: auto;">
@foreach (var item in ViewBag.pSList)
{
<div style="" class="leftDiv">
<em style="display: inline-block; height: 30px; line-height: 30px; margin-left: 60px;">@item</em>
</div>
</em>
</span>
@*<div class="ulzp" style="height: 200px; border-bottom:none;">
<ul>
<li>(签字):</li>
<li> <img id="signImg" hidden="hidden"></li>
</ul>
<ul>
<li>(签章):</li>
<li><img id="stampImg" hidden="hidden"></li>
</ul>
</div>*@
</div>
<p>
<em>@Model.DisOffice</em><span> 收 文 单 位 </span>
<em>@Model.DisWork</em><span>字</span>
<em>@Model.DisMark</em><span>号</span>
<em>@Model.DisYear</em><span>年</span>
<em>@Model.DisMonth</em><span>月</span>
<em>@Model.DisDay</em><span>日</span>
</p>
<p style="clear: both;"></p>
}
</div>
</em>

<em>@Model.DisOffice</em><span> 收 文 单 位 </span>
<em>@Model.DisWork</em><span>字</span>
<em>@Model.DisMark</em><span>号</span>
<em>@Model.DisYear</em><span>年</span>
<em>@Model.DisMonth</em><span>月</span>
<em>@Model.DisDay</em><span>日</span>

</div>
</div>
</div>
<div class="lr-query-btn" id="lr_print">打印</div>
@*<input class="lr-query-btn" id="dy" />*@
<script src="~/Content/jquery/jquery-1.10.2.min.js"></script>
<script src="~/Content/jquery/plugin/fullcalendar/js/jquery-1.7.2.min.js"></script>
<script src="~/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js"></script>
<script src="~/Content/signet/jquery.zsign.js"></script>
<script>
<div class="lr-query-btn" id="lr_print">打印</div>
@*<input class="lr-query-btn" id="dy" />*@
<script src="~/Content/jquery/jquery-1.10.2.min.js"></script>
<script src="~/Content/jquery/plugin/fullcalendar/js/jquery-1.7.2.min.js"></script>
<script src="~/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js"></script>
<script src="~/Content/signet/jquery.zsign.js"></script>
<script>
//盖章图片
@*var stampUrl = '/LR_NewWorkFlow/StampInfo/GetImg?keyValue=@ViewBag.StampImg';
var signUrl = '/LR_SystemModule/Img/GetImg?keyValue=@ViewBag.SignImg';
@@ -368,9 +177,10 @@
}*@
$('#lr_print').on('click', function () {
$('#content').jqprint();
//window.print()
});

</script>
</script>
</body>

</html>

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/static/css/print.css Vedi File

@@ -0,0 +1,5 @@
@media print{
.noPrint{
display:none;
}
}

BIN
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/static/img/printBg.png Vedi File

Prima Dopo
Larghezza: 756  |  Altezza: 1069  |  Dimensione: 957 KiB

Caricamento…
Annulla
Salva