Sfoglia il codice sorgente

printview.cshtml找回

中职版本
liangkun 3 anni fa
parent
commit
7913e58338
3 ha cambiato i file con 228 aggiunte e 1 eliminazioni
  1. +147
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.cshtml
  2. +80
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.js
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 147
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.cshtml Vedi File

@@ -0,0 +1,147 @@
@{
ViewBag.Title = "公文发送";
Layout = "~/Views/Shared/_SimpleForm.cshtml";
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
table,
tr,
td {
padding: 0;
margin: 0;
border-collapse: collapse;
}

table {
/* table-layout: fixed; */
font-size: 13px;
}
.tableBox {
width: 90%;
margin: 30px auto;
}
.table {
width: 100%;
border-top: 1px solid #000;
border-right: 1px solid #000;
}
.table th{
font-size: 18px;
border-left: 1px solid #000;
padding: 5px 0;
}
.table tr {
border-bottom: 1px solid #000;
}

.table td {
border-left: 1px solid #000;
line-height: 20px;
padding: 5px 5px;
}
.tableT {
text-align: center;
font-size: 18px;
margin-bottom: 5px;
letter-spacing: 4px;
}
.tableTxt1,.tableTxt2{
border-left: 1px solid #000;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
padding: 5px 10px;
}
.tableTxt1:first-child{
border-top: 1px solid #000;
}
.tableTxt2{
text-align: right;
}



.btn {
width: 100px;
height: 34px;
line-height: 34px;
text-align: center;
margin: 30px auto;
border: 1px solid #ccc;
cursor: pointer;
border-radius: 4px;
}
</style>
</head>
<body>
<div id="table">
<div class="tableBox">
<div class="tableT">北京金隅科技学校</div>
<div class="tableT">收文处理专用纸(收文登记)</div>
<table class="table">
<tr>
<td style="width: 80px;">收文</td>
<td id="RReceiveUnit"></td>
<td style="width: 80px;">字第</td>
<td id="swz"></td>
<td style="width: 80px;">号</td>
<td>收文日期</td>
<td id="RReceiveTime"></td>
</tr>
<tr>
<td>来文</td>
<td id="RSourceUnit"></td>
<td>字第</td>
<td id="lwz"></td>
<td>号</td>
<td></td>
<td></td>
</tr>
<tr>
<td>收文标题</td>
<td colspan="6" id="RTitle"></td>
</tr>
<tr>
<td>处理意见</td>
<td colspan="6" id="yj1"></td>
</tr>
<tr>
<td>领导批示</td>
<td colspan="6">
<div class="tableTxt1" id="yj2"></div>
<div class="tableTxt2" id="xiaozhanginfo"></div>
</td>
</tr>
<tr>
<td>部门处理情况</td>
<td colspan="6" id="yj3">
</td>
</tr>
<tr>
<td>经办人</td>
<td colspan="4" id="SenderId"></td>
<td>办结日期</td>
<td id="overDate"></td>
</tr>
</table>
</div>
</div>
<div class="btn">打印</div>
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/jquery.jqprint-0.3.js"></script>
<script>
$('.btn').click(function(){
$('.tableBox').jqprint();
})
</script>
</body>
</html>

@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.js")

+ 80
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.js Vedi File

@@ -0,0 +1,80 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2019-04-11 10:31
* 描 述:公文发送
*/
var refreshGirdData;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var processId = '';
var page = {
init: function () {
console.log(keyValue);
page.bind();
},
bind: function () {
$.get(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/PrintInfo?keyValue=' + keyValue,
function(data) {
var data = JSON.parse(data).data;
var entityItem = data.entityItem;
console.log(data);
learun.clientdata.getAsync('department', {
key: data.entity.RReceiveUnit,
callback: function (_data) {
console.log(_data);
$('#RReceiveUnit').html(_data.name);
}
});
$('#swz').html(data.entity.swz);
$('#RReceiveTime').html(data.entity.RReceiveTime.substr(0,10));
$('#RSourceUnit').html(data.entity.RSourceUnit);
$('#lwz').html(data.entity.lwz);
$('#RTitle').html(data.entity.RTitle);
$('#yj1').html(entityItem[0].SpecifyReceiver);
$('#yj2').html(entityItem[1].SpecifyReceiver);
learun.clientdata.getAsync('user', {
key: entityItem[1].ReceiverId,
callback: function (_data) {
console.log(_data);
$('#xiaozhanginfo').html(_data.name + ' ' + (entityItem[1].ReadTime || '').substr(0, 10));
}
});


learun.clientdata.getAsync('user', {
key: data.entity.SenderId,
callback: function (_data) {
$('#SenderId').html(_data.name);
}
});


var text = '';
$.each(entityItem,
function(i, item) {
if (i < 2) {return true;}
learun.clientdata.getAsync('user', {
key: item.ReceiverId,
callback: function (_data) {

text += '<div class="tableTxt1">' +
(item.SpecifyReceiver == '' ? '已阅' : item.SpecifyReceiver) +
'</div> <div class="tableTxt2"> '+_data.name+' '+(item.ReadTime || '').substr(0,10)+'</div>';
}
});
});
$('#yj3').html(text);

$('#overDate').html(data.entityItem[data.entityItem.length - 1].ReadTime.substr(0,10));
});

},
};
page.init();
}

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Vedi File

@@ -1017,6 +1017,7 @@
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\IssueForm.js" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\PrintView.js" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\ReadList.js" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveFile\FormParty.js" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveFile\FormReadDocument.js" />
@@ -7144,7 +7145,6 @@
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\StatisticTimeIndex.cshtml" />
<Content Include="Areas\LR_ReportModule\Views\ReportTemplate\NWFSchemeReport.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\PrintView.cshtml" />
<Content Include="Areas\LR_OAModule\Views\Notice\IndexRecycle.cshtml" />
<Content Include="Areas\LR_SystemModule\Views\Log\ApiIndex.cshtml" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\ContractFilingMonitor.cshtml" />
<Content Include="Areas\Permission\Views\Perm_FunctionVisit\IndexForCount.cshtml" />


Caricamento…
Annulla
Salva