Sfoglia il codice sorgente

支出预算打印

金隅分支
zhangli 3 anni fa
parent
commit
d7f9289cb6
10 ha cambiato i file con 765 aggiunte e 24 eliminazioni
  1. +39
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FD_PayManageController.cs
  2. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/AmountConversion.js
  3. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Form.cshtml
  4. +27
    -17
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Index.js
  5. +59
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.cshtml
  6. +247
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.js
  7. +63
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.cshtml
  8. +290
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.js
  9. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  10. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_PayManage/FD_PayManageService.cs

+ 39
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FD_PayManageController.cs Vedi File

@@ -3,6 +3,7 @@ using System.Data;
using Learun.Application.TwoDevelopment.ReceiveSendFeeManagement;
using System.Web.Mvc;
using System.Collections.Generic;
using Learun.Application.WorkFlow;

namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
{
@@ -17,7 +18,7 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
{
private FD_PayManageIBLL fD_PayManageIBLL = new FD_PayManageBLL();
private FD_IncomeManageIBLL fD_IncomeManageIBLL = new FD_IncomeManageBLL();
private NWFTaskIBLL nWFTaskIBLL = new NWFTaskBLL();
#region 视图功能

/// <summary>
@@ -38,6 +39,25 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
{
return View();
}
/// <summary>
/// 打印
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult PrintSpecial()
{
return View();
}
/// <summary>
/// 打印
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult PrintPublic()
{
return View();
}
#endregion

#region 获取数据
@@ -79,7 +99,24 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
};
return Success(jsonData);
}

/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPrintData(string keyValue,string processId)
{
var FD_PayManageData = fD_PayManageIBLL.GetFD_PayManageEntity(keyValue);
var TaskLogList = (List<NWFTaskLogEntity>) nWFTaskIBLL.GetLogList(processId);
var jsonData = new
{
FD_PayManage = FD_PayManageData,
TaskLogList= TaskLogList
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// </summary>


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/AmountConversion.js Vedi File

@@ -0,0 +1,29 @@

function smalltoBIG(n) {
var fraction = ['角', '分'];
var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
var unit = [
['元', '万', '亿'],
['', '拾', '佰', '仟']
];
var head = n < 0 ? '欠' : '';
n = Math.abs(n);

var s = '';

for (var i = 0; i < fraction.length; i++) {
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
}
s = s || '整';
n = Math.floor(n);

for (var i = 0; i < unit[0].length && n > 0; i++) {
var p = '';
for (var j = 0; j < unit[1].length && n > 0; j++) {
p = digit[n % 10] + unit[1][j] + p;
n = Math.floor(n / 10);
}
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
}
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整');
}

+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Form.cshtml Vedi File

@@ -48,12 +48,12 @@
<textarea id="PPurpose" class="form-control" style="height:80px;" ></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="FD_PayManage" >
<div class="lr-form-item-title">资金支出来源<font face="宋体">*</font></div>
<div id="PTopSource" isvalid="yes" checkexpession="NotNull" ></div>
<div class="lr-form-item-title">资金支出来源</div>
<div id="PTopSource" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="FD_PayManage" >
<div class="lr-form-item-title">财政专项名称<font face="宋体">*</font></div>
<div id="PIncomeId" isvalid="yes" checkexpession="NotNull" ></div>
<div class="lr-form-item-title">财政专项名称</div>
<div id="PIncomeId" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="FD_PayManage" >
<div class="lr-form-item-title">支出金额<font face="宋体">*</font></div>


+ 27
- 17
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Index.js Vedi File

@@ -30,7 +30,7 @@ var bootstrap = function ($, learun) {
id: 'form',
title: '新增',
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/Form',
width: 700,
width: 800,
height: 600,
callBack: function (id) {
top[id].save();
@@ -51,7 +51,7 @@ var bootstrap = function ($, learun) {
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/Form?keyValue=' + keyValue,
width: 700,
width: 800,
height: 600,
callBack: function (id) {
top[id].save();
@@ -80,7 +80,21 @@ var bootstrap = function ($, learun) {
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
//$('#gridtable').jqprintTable();
var keyValue = $('#gridtable').jfGridValue('PId');
var processId = $('#gridtable').jfGridValue('PProcessId');
if (learun.checkrow(keyValue)) {
var type = $('#gridtable').jfGridValue('PType');
//PType 1:基本承包经费外支出--专用经费报销流程; 2:基本承包经费支出--公用经费报销流程
if (type == '1') {
//基本承包经费外支出
learun.frameTab.open({ F_ModuleId: keyValue, F_Icon: 'fa magic', F_FullName: '打印【基本承包经费外支出】', F_UrlAddress: '/ReceiveSendFeeManagement/FD_PayManage/PrintSpecial?keyValue=' + keyValue + "&processId=" + processId });
}
else {
learun.frameTab.open({ F_ModuleId: keyValue, F_Icon: 'fa magic', F_FullName: '打印【基本承包经费支出】', F_UrlAddress: '/ReceiveSendFeeManagement/FD_PayManage/PrintPublic?keyValue=' + keyValue + "&processId=" + processId });
}
}
});
//  提交
$('#lr_submit').on('click', function () {
@@ -91,20 +105,13 @@ var bootstrap = function ($, learun) {
learun.alert.warning("当前项目已提交,请耐心等待审批!");
return;
}
var pTopSource = $('#gridtable').jfGridValue('PTopSource');
var PType = $('#gridtable').jfGridValue('PType');
var type = '';
if (pTopSource == '1' || pTopSource == '2') {
type = '1';
//学校经费和部门专项经费都从公用经费扣除
} else {
type = '2';//专项经费
}
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
processId = learun.newGuid();
learun.postForm(top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/ChangeStatusById', { keyValue: keyValue, processId: processId }, function (res) {
refreshGirdData(res, {}, type);
refreshGirdData(res, {}, PType);
});
}
});
@@ -119,7 +126,7 @@ var bootstrap = function ($, learun) {
{
label: "报销类型",
name: "PType",
width: 100,
width: 160,
align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem',
@@ -216,14 +223,15 @@ var bootstrap = function ($, learun) {
//refreshGirdData = function () {
// $('#gridtable').jfGridSet('reload');
//};
refreshGirdData = function (res, postData, type) {
refreshGirdData = function (res, postData, PType) {
if (res && res.code && res.code == 200) {
// 发起流程
var schemeCode = '';
if (type == '1')
schemeCode = 'publicFunds';
else
//PType 1:基本承包经费外支出--专用经费报销流程; 2:基本承包经费支出--公用经费报销流程
if (PType == '1')
schemeCode = 'specialUseFunds';
else
schemeCode = 'publicFunds';

if (schemeCode) {
var postData = {
@@ -241,3 +249,5 @@ var bootstrap = function ($, learun) {
};
page.init();
}



+ 59
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.cshtml Vedi File

@@ -0,0 +1,59 @@
@{
ViewBag.Title = "支出预算管理";
Layout = "~/Views/Shared/_SimpleForm.cshtml";
}
<style>
.list span{
display: inline-block;
padding-left:25px;
}
.textEm{
padding-left: 25px;
}
h5,p{
text-align: center;
padding: 0;
margin: 0;
}
h5{
font-size: 28px;
margin: 10px 0;
}
p{
font-size: 18px;
margin-bottom: 10px;
}
tr{
height: 33px;
}
.lr-query-btn {
position: absolute;
width: 122px;
height: 40px;
line-height: 40px;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 4px;
text-align: center;
color: #fff;
background-color: #039cfd;
border-color: #039cfd;
right: 80px;
top: 40px;
font-size: 18px;
}
</style>


<div id="content">
<h5>北京金隅科技学校资金支出报销单</h5>
<p>(基本承包经费支出)</p>
<table border="1" height="800" width="90%" cellspacing="0" align="right" id="t1">

</table>


</div>
<div class="lr-query-btn" id="lr_print">打印</div>
@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.js", "/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/AmountConversion.js")

+ 247
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.js Vedi File

@@ -0,0 +1,247 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-05-28 14:18
* 描 述:支出预算管理
*/
var acceptClick;
var keyValue = request('keyValue');
var processId = request('processId');
// 设置权限
var setAuthorize;
// 设置表单数据
var setFormData;
// 验证数据是否填写完整
var validForm;
// 保存数据
var save;
var tableData;
var processInfo;
var html = '';
var processhtml = '';
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();

},
bind: function () {
// 打印
$('#lr_print').on('click', function () {
$('#content').jqprint();

});

},
initData: function () {
$('#t1').html('');
page.getTableData(keyValue, function (data) {
if (data && data.FD_PayManage) {
tableData = data.FD_PayManage;
//部门
var deptName = '';
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: tableData.PDept,
keyId: 'id',
callback: function (_data) {
deptName = _data['name'];
}
});
//付款方式
var PPayType = '';
learun.clientdata.getAsync('dataItem',
{
key: tableData.PPayType,
code: 'fdPayType',
callback: function (_data) {
PPayType = _data.text;
}
});

//资金支出来源
var topSource = '';
learun.clientdata.getAsync('dataItem',
{
key: tableData.PTopSource,
code: 'fdPaySource',
callback: function (_data) {
topSource = _data.text;
}
});
//财政专项名称
var pIncome = '';
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'incomeList',
key: tableData.PIncomeId,
keyId: 'iid',
callback: function (_data) {
pIncome = _data['iname'];
}
});

html += '<tr align="center">';
html += '<td>报销部门</td>';
html += '<td colspan=4 style="width: 35%;">' + deptName + '</td>';
html += '<td style="width: 300px;">报销日期</td>';
html += '<td colspan=2 >' + tableData.PTime + '</td >';
html += '</tr >';
html += '<tr align="center">';
html += '<td>付款方式</td>';
html += '<td colspan=6>' + PPayType + '</td>';
html += '</tr>';
html += '<tr align="center"><td>汇款信息</td><td colspan=3>汇 入 收 款 单 位</td>';
html += '<td>汇款信息</td><td colspan=2>汇 入 个 人 账 户</td>';
html += '</tr>';
html += '<tr align="center">';
html += '<td>单位名称</td><td colspan=3>' + tableData.PPayee + '</td>';
html += '<td>收 款 人</td><td colspan=2>' + tableData.PCollectionUser + '</td>';
html += '</tr>';
html += '<tr align="center">';
html += '<td>开户银行</td><td colspan=3>' + tableData.PPayeeBank + '</td>';
html += '<td>开卡银行</td>';
html += '<td style="width: 300px;">' + tableData.PCollectionBank1 + '</td><td style="width: 450px;padding:0;margin: 0;">' + tableData.PCollectionBank2 + '</td>';
html += '</tr>';
html += '<tr align="center">';
html += '<td>账&nbsp;&nbsp;&nbsp;&nbsp;号</td><td colspan=3>' + tableData.PPayeeBankAccount + '</td>';
html += '<td>卡&nbsp;&nbsp;&nbsp;&nbsp;号</td><td>' + tableData.PCollectionBankAccount1 + '</td><td>' + tableData.PCollectionBankAccount2 + '</td>';
html += '</tr>';

html += '<tr>';
html += '<td align="center" style="width: 250px;">资金支出用途</td><td colspan=6 class="textEm">' + tableData.PPurpose + '</td>';
html += '</tr>';
html += '<tr>';
html += '<td align="center">报销金额</td>';
html += '<td colspan=4 class="textEm">大写:' + smalltoBIG(tableData.PAmount) + '</td>';
html += '<td colspan=2 class="textEm">小写¥:' + tableData.PAmount + '</td>';
html += '</tr>';
html += '<tr>';
html += '<td align="center" rowspan="3">报销审批</td>';
if (tableData.PRemarks == null || tableData.PRemarks == 'null') {
tableData.PRemarks = '';
}
html += '<td colspan=4 class="textEm">补充说明:' + tableData.PRemarks + '</td>';
html += '<td colspan=2 class="textEm">经 办 人:' + tableData.PUserName + '</td>';
html += '</tr>';

$('#t1').append(html);
}
if (data && data.TaskLogList) {
processInfo = data.TaskLogList;
console.log(processInfo);
//部门领导
var bmld = '';
var bmldyj = '';
var cwcz = '';
var cwczyj = '';
processInfo.forEach((item, index) => {
if (item && item.F_NodeId) {
//部门领导
if (item.F_NodeId == '14c32eaf-9394-4d78-370f-e82e4fc9c73b') {
bmld = item.F_TaskUserName;
if (item.F_Des) {
bmldyj = item.F_Des;
} else {
bmldyj = item.F_OperationName;
}
}
//财务处长审核
if (item.F_NodeId == '0edd8daa-59ce-60f7-9a99-2f9ed7e62db3') {
cwcz = item.F_TaskUserName;
if (item.F_Des) {
cwczyj = item.F_Des;
} else {
cwczyj = item.F_OperationName;
}
}
}
});

processhtml += '<tr>';
processhtml += '<td colspan=4 class="textEm">审核意见:' + bmldyj + '</td>';
processhtml += '<td colspan=2 class="textEm">部门领导:' + bmld + '</td>';
processhtml += '</tr>';

processhtml += '<tr>';
processhtml += '<td colspan=4 class="textEm">支付意见:' + cwczyj + '</td>';
processhtml += '<td colspan=2 class="textEm">财务处长:' + cwcz + '</td>';
processhtml += '</tr>';
processhtml += '<tr>';
processhtml += '<td rowspan="2" align="center">所附单据:</td>';
processhtml += '<td colspan=6 class="list"><span>1.申请 &nbsp;&nbsp;份</span><span>2.发票 &nbsp;&nbsp;张</span><span>3.真伪查验 &nbsp;&nbsp; 张</span><span>4.入库单 &nbsp;&nbsp;张</span><span>5.资产验收单&nbsp;&nbsp; 张</span>';
processhtml += '</td></tr>';

processhtml += '<tr>';
processhtml += '<td colspan=6 class="list" class="textEm">';
processhtml += '<span>6.差旅费保修单 &nbsp;&nbsp; 张</span><span>7.其他 &nbsp;&nbsp; 张</span>';
processhtml += '</td></tr>';
processhtml += '<tr>';
processhtml += '<td align="center">资金支付</td>';
processhtml += '<td colspan=4 style="border-right:0;width: 30%;" class="textEm"><span>出纳:</span></td>';
processhtml += '<td colspan=2 style="border-left:0 ;"><span>复核:</span></td>';
processhtml += '</tr>';

$('#t1').append(processhtml);
}
});

},
getTableData: function (keyValue, callback) {
learun.httpAsync('GET', top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/GetPrintData', { keyValue: keyValue, processId: processId }, function (data) {
callback && callback(data);
});
}
};
// 设置表单数据
setFormData = function (processId, param, callback) {
callback && callback();
}
// 验证数据是否填写完整
validForm = function () {
if (!$('body').lrValidform()) {
return false;
}
return true;
};
// 保存数据
save = function (processId, callBack, i) {
};

page.init();
function smalltoBIG(n) {
var fraction = ['角', '分'];
var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
var unit = [
['元', '万', '亿'],
['', '拾', '佰', '仟']
];
var head = n < 0 ? '欠' : '';
n = Math.abs(n);

var s = '';

for (var i = 0; i < fraction.length; i++) {
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
}
s = s || '整';
n = Math.floor(n);

for (var i = 0; i < unit[0].length && n > 0; i++) {
var p = '';
for (var j = 0; j < unit[1].length && n > 0; j++) {
p = digit[n % 10] + unit[1][j] + p;
n = Math.floor(n / 10);
}
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
}
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整');
}
}

+ 63
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.cshtml Vedi File

@@ -0,0 +1,63 @@
@{
ViewBag.Title = "支出预算管理";
Layout = "~/Views/Shared/_SimpleForm.cshtml";
}
<style>
.list span {
display: inline-block;
padding-left: 25px;
/* width: 15%; */
}

.textEm {
padding-left: 25px;
}

h5, p {
text-align: center;
padding: 0;
margin: 0;
}

h5 {
font-size: 28px;
margin: 10px 0;
}

p {
font-size: 18px;
margin-bottom: 10px;
}

tr {
height: 33px;
}
.lr-query-btn {
position: absolute;
width: 122px;
height: 40px;
line-height: 40px;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 4px;
text-align: center;
color: #fff;
background-color: #039cfd;
border-color: #039cfd;
right: 80px;
top: 40px;
font-size: 18px;
}
</style>

<div id="content">
<h5>北京金隅科技学校资金支出报销单</h5>
<p>(基本承包经费外支出)</p>
<table border="1" height="800" width="90%" cellspacing="0" align="right" id="t1">

</table>
</div>
<div class="lr-query-btn" id="lr_print">打印</div>
@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.js", "/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/AmountConversion.js")

+ 290
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.js Vedi File

@@ -0,0 +1,290 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-05-28 14:18
* 描 述:支出预算管理
*/
var acceptClick;
var keyValue = request('keyValue');
var processId = request('processId');
// 设置权限
var setAuthorize;
// 设置表单数据
var setFormData;
// 验证数据是否填写完整
var validForm;
// 保存数据
var save;
var tableData;
var processInfo;
var html = '';
var processhtml = '';
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();

},
bind: function () {
$('#PType').lrDataItemSelect({ code: 'payReimburseType' });
$('#PPayType').lrDataItemSelect({ code: 'fdPayType' });
$('#PTopSource').lrDataItemSelect({
code: 'fdPaySource', select: function (item) {
var budgetType = '';
var financeBudgetType = '';
if (item) {
if (item.text == '学校经费' || item.text == '部门专项经费') {
budgetType = '0';
financeBudgetType = '1';
} else if (item.text == '财政专项经费') {
budgetType = '0';
financeBudgetType = '2';
} else {
budgetType = '2';
}
}

//财政专项名称
$('#PIncomeId').lrselectRefresh({
placeholder: "请选择财政专项名称",
allowSearch: true,
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/GetIncomeList?budgetType=' + budgetType + '&financeBudgetType=' + financeBudgetType,
value: 'value',
text: 'text'
});
}
});

//财政专项名称
$('#PIncomeId').lrselect({
placeholder: "请选择财政专项名称",
allowSearch: true,
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/GetIncomeList?budgetType=&financeBudgetType=',
value: 'value',
text: 'text'
});

// 打印
$('#lr_print').on('click', function () {
$('#content').jqprint();

});

},
initData: function () {
$('#t1').html('');
page.getTableData(keyValue, function (data) {
if (data && data.FD_PayManage) {
tableData = data.FD_PayManage;
//部门
var deptName = '';
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: tableData.PDept,
keyId: 'id',
callback: function (_data) {
deptName = _data['name'];
}
});
//付款方式
var PPayType = '';
learun.clientdata.getAsync('dataItem',
{
key: tableData.PPayType,
code: 'fdPayType',
callback: function (_data) {
PPayType = _data.text;
}
});

//资金支出来源
var topSource = '';
learun.clientdata.getAsync('dataItem',
{
key: tableData.PTopSource,
code: 'fdPaySource',
callback: function (_data) {
topSource = _data.text;
}
});
//财政专项名称
var pIncome = '';
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'incomeList',
key: tableData.PIncomeId,
keyId: 'iid',
callback: function (_data) {
pIncome = _data['iname'];
}
});

html += '<tr align="center">';
html += '<td>报销部门</td>';
html += '<td colspan=3 style="width: 35%;">' + deptName + '</td>';
html += '<td style="width: 300px;">报销日期</td>';
html += '<td colspan=2 >' + tableData.PTime + '</td >';
html += '</tr >';
html += '<tr align="center">';
html += '<td>付款方式</td>';
html += '<td colspan=6>' + PPayType + '</td>';
html += '</tr>';
html += '<tr align="center"><td>汇款信息</td><td colspan=3> 汇 入 收 款 单 位 </td>';
html += '<td>汇款信息</td><td colspan=2>汇 入 个 人 账 户</td>';
html += '</tr>';
html += '<tr align="center">';
html += '<td>单位名称</td><td colspan=3>' + tableData.PPayee + '</td>';
html += '<td>收 款 人</td><td colspan=2>' + tableData.PCollectionUser + '</td>';
html += '</tr>';
html += '<tr align="center">';
html += '<td>开户银行</td><td colspan=3>' + tableData.PPayeeBank + '</td>';
html += '<td>开卡银行</td>';
html += '<td style="width: 300px;">' + tableData.PCollectionBank1 + '</td><td style="width: 450px;padding:0;margin: 0;">' + tableData.PCollectionBank2 + '</td>';
html += '</tr>';
html += '<tr align="center">';
html += '<td>账&nbsp;&nbsp;&nbsp;&nbsp;号</td><td colspan=3>' + tableData.PPayeeBankAccount + '</td>';
html += '<td>卡&nbsp;&nbsp;&nbsp;&nbsp;号</td><td>' + tableData.PCollectionBankAccount1 + '</td><td>' + tableData.PCollectionBankAccount2 + '</td>';
html += '</tr>';

html += '<tr>';
html += '<td align="center" style="width: 250px;">资金支出用途</td><td colspan=6 class="textEm">' + tableData.PPurpose + '</td>';
html += '</tr>';
html += '<tr>';
html += '<td align="center">资金支出来源</td><td colspan=6 class="textEm">' + topSource + '</td>';
html += '</tr>';
html += '<tr>';
html += '<td align="center">财政专项名称</td><td colspan=6 class="textEm">' + pIncome + '</td>';
html += '</tr>';
html += '<tr>';
html += '<td align="center">支付金额</td>';
html += '<td colspan=4 class="textEm">大写:' + smalltoBIG(tableData.PAmount) + '</td>';
html += '<td colspan=2 class="textEm">小写¥:' + tableData.PAmount + '</td>';
html += '</tr>';
html += '<tr>';
html += '<td align="center" rowspan="5">报销审批</td>';
if (tableData.PRemarks == null || tableData.PRemarks == 'null') {
tableData.PRemarks = '';
}
html += '<td colspan=4 class="textEm">补充说明:' + tableData.PRemarks + '</td>';
html += '<td colspan=2 class="textEm">经 办 人:' + tableData.PUserName + '</td>';
html += '</tr>';

$('#t1').append(html);
}
if (data && data.TaskLogList) {
processInfo = data.TaskLogList;
//部门领导
var bmld = '';
var bmldyj = '';
var zgxz = '';
var zgxzyj = '';
var cwcz = '';
var cwczyj = '';
var xz = '';
var xzyj = '';
processInfo.forEach((item, index) => {
if (item && item.F_NodeId) {
//部门领导
if (item.F_NodeId == '4dff56c9-2a91-af36-a384-9da4c6ae85df') {
bmld = item.F_TaskUserName;
if (item.F_Des) {
bmldyj = item.F_Des;
} else {
bmldyj = item.F_OperationName;
}
}
//主管校长审核
if (item.F_NodeId == '1eb9fdfc-279b-f95f-0696-cd6cfabfb21a') {
zgxz = item.F_TaskUserName;
if (item.F_Des) {
zgxzyj = item.F_Des;
} else {
zgxzyj = item.F_OperationName;
}
}
//财务处长审核
if (item.F_NodeId == '1d0a2118-e461-9600-e3f4-2a6a6dce7a04') {
cwcz = item.F_TaskUserName;
if (item.F_Des) {
cwczyj = item.F_Des;
} else {
cwczyj = item.F_OperationName;
}
}
//校长审核
if (item.F_NodeId == 'd96de9d6-8a9c-6142-0cbf-1089e39a5189') {
xz = item.F_TaskUserName;
if (item.F_Des) {
xzyj = item.F_Des;
} else {
xzyj = item.F_OperationName;
}
}
}
});

processhtml += '<tr>';
processhtml += '<td colspan=4 class="textEm">审核意见:' + bmldyj + '</td>';
processhtml += '<td colspan=2 class="textEm">部门领导:' + bmld + '</td>';
processhtml += '</tr>';

processhtml += '<tr>';
processhtml += '<td colspan=4 class="textEm">审核意见:' + zgxzyj + '</td>';
processhtml += '<td colspan=2 class="textEm">主管校长:' + zgxz + '</td>';
processhtml += '</tr>';
processhtml += '<tr>';
processhtml += '<td colspan=4 class="textEm"> 支付意见:' + cwczyj + '</td>';
processhtml += '<td colspan=2 class="textEm"> 财务处长:' + cwcz + '</td>';
processhtml += '</tr>';

processhtml += '<tr>';
processhtml += '<td colspan=4 class="textEm">校长批示:' + xzyj + '</td>';
processhtml += '<td colspan=2 class="textEm">校&nbsp;&nbsp;&nbsp;&nbsp;长:' + xz + '</td>';
processhtml += '</tr>';
processhtml += '<tr>';
processhtml += '<td rowspan="2" align="center">所附单据:</td>';
processhtml += '<td colspan=6 class="list"><span>1.申请 &nbsp;&nbsp;份</span><span>2.合同 &nbsp;&nbsp;张</span><span>3.发票 &nbsp;&nbsp;张</span><span>4.证伪查验 &nbsp; 张</span><span>5.入库单 &nbsp;&nbsp;&nbsp;&nbsp;张</span>';
processhtml += '</td></tr>';

processhtml += '<tr>';
processhtml += '<td colspan=6 class="list" class="textEm">';
processhtml += '<span>6.资产验收单&nbsp;&nbsp; 张</span><span>7.差旅费保修单 &nbsp; 张</span><span>8.其他 &nbsp;&nbsp;张</span>';
processhtml += '</td></tr>';
processhtml += '<tr>';
processhtml += '<td align="center">资金支付</td>';
processhtml += '<td colspan=4 style="border-right:0;width: 30%;" class="textEm"><span>出纳:</span></td>';
processhtml += '<td colspan=2 style="border-left:0 ;"><span>复核:</span></td>';
processhtml += '</tr>';

$('#t1').append(processhtml);
}
});

},
getTableData: function (keyValue, callback) {
learun.httpAsync('GET', top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/GetPrintData', { keyValue: keyValue, processId: processId }, function (data) {
callback && callback(data);
});
}
};
// 设置表单数据
setFormData = function (processId, param, callback) {
callback && callback();
}
// 验证数据是否填写完整
validForm = function () {
if (!$('body').lrValidform()) {
return false;
}
return true;
};
// 保存数据
save = function (processId, callBack, i) {
};

page.init();
}

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

@@ -1417,6 +1417,9 @@
<Content Include="Areas\PersonnelManagement\Views\StuSaverecord\IndexForTeacher.js" />
<Content Include="Areas\PersonnelManagement\Views\VisitorInfo\ExamineForm.js" />
<Content Include="Areas\PersonnelManagement\Views\VisitorInfo\fromAdd.css" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_PayManage\AmountConversion.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_PayManage\PrintPublic.js" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_PayManage\PrintSpecial.js" />
<Content Include="Areas\StudentWork\Views\SW_Ask_Main\AnswerIndex.js" />
<Content Include="Areas\StudentWork\Views\SW_Ask_Main\AnswerQuery.js" />
<Content Include="Areas\StudentWork\Views\SW_Ask_Main\Form.js" />
@@ -7290,6 +7293,8 @@
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\LeaderLeaveFilingMonitor.cshtml" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\LeaveFilingMonitor.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\VisitorInfo\ExamineForm.cshtml" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_PayManage\PrintSpecial.cshtml" />
<Content Include="Areas\ReceiveSendFeeManagement\Views\FD_PayManage\PrintPublic.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" />


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_PayManage/FD_PayManageService.cs Vedi File

@@ -47,7 +47,8 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
t.PTopSource,
t.PIncomeId,
t.PAmount,
t.PStatus
t.PStatus,
t.PProcessId
");
strSql.Append(" FROM FD_PayManage t ");
strSql.Append(" WHERE 1=1 and PIsDelete<>1");


Caricamento…
Annulla
Salva