Преглед на файлове

资产验收、调拨申请明细打印页面

金隅分支
zhangli преди 3 години
родител
ревизия
286af1581f
променени са 17 файла, в които са добавени 647 реда и са изтрити 159 реда
  1. +11
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AcceptanceController.cs
  2. +11
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsOutApplyController.cs
  3. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Form.cshtml
  4. +13
    -25
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Form.js
  5. +8
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormView.cshtml
  6. +14
    -119
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormView.js
  7. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Index.js
  8. +167
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Print.cshtml
  9. +87
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Print.css
  10. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Form.cshtml
  11. +14
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Form.js
  12. +11
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/FormView.cshtml
  13. +13
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/FormView.js
  14. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Index.js
  15. +200
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Print.cshtml
  16. +87
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Print.css
  17. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 11
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AcceptanceController.cs Целия файл

@@ -70,6 +70,16 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Print()
{
ViewBag.Date = DateTime.Now.ToString("yyyy年MM月dd日");
return View();
}

#endregion

@@ -173,7 +183,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity, string strass_Ass_AcceptanceList)
{
{
Ass_AcceptanceMainEntity entity = strEntity.ToObject<Ass_AcceptanceMainEntity>();
if (string.IsNullOrEmpty(keyValue))
{


+ 11
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsOutApplyController.cs Целия файл

@@ -91,6 +91,17 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers
ViewBag.AOCode = "CKSQ_" + CommonHelper.CreateNo();
return View();
}

/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Print()
{
ViewBag.Date = DateTime.Now.ToString("yyyy年MM月dd日");
return View();
}
#endregion

#region 获取数据


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Form.cshtml Целия файл

@@ -32,6 +32,7 @@
<input id="detailadd" type="button" class="btn btn-success" value="新增明细" />
<input id="detailedit" type="button" class="btn btn-warning" value="编辑明细" />
<input id="detaildel" type="button" class="btn btn-danger" value="移除明细" />
<input id="detailprint" type="button" class="btn btn-success" value="打印明细" />
</div>
<div class="col-xs-12 lr-form-item lr-form-item-grid">
<div id="Ass_Acceptance"></div>


+ 13
- 25
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Form.js Целия файл

@@ -105,24 +105,7 @@ var bootstrap = function ($, learun) {
});
}
});
//$("#detaildel").on('click', function () {
// var keyValue = $('#Ass_Acceptance').jfGridValue('Id');
// if (learun.checkrow(keyValue)) {
// learun.layerConfirm('是否确认删除该项!', function (res, index) {
// if (res) {
// $.each(tempdatra, function (key, val) {
// if (tempdatra[key].MainId === keyValue) {
// pricecount -= tempdatra[key].TotalPrice;
// tempdatra.splice(key, 1);
// }
// });
// $("#Price").val(pricecount);
// $('#Ass_Acceptance').jfGridSet('refreshdata', tempdatra.sort(sortNumber));
// top.layer.close(index);
// }
// });
// }
//});
page.bind();
page.initData();
},
@@ -147,13 +130,7 @@ var bootstrap = function ($, learun) {
},
{
label: '单位', name: 'AAIUnit', width: 80, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'sldw',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
@@ -280,6 +257,17 @@ var bootstrap = function ($, learun) {
reloadSelected: false
});

//打印
$('#detailprint').on('click', function () {
learun.layerForm({
id: 'print',
title: '北京金隅科技学校固定资产验收单',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Acceptance/Print',
width: 1100,
height: 800,
btn: null
});
});
},
initData: function () {
if (!!keyValue) {


+ 8
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormView.cshtml Целия файл

@@ -11,10 +11,10 @@
<input id="Code" type="text" class="form-control" readonly="readonly" />
</div>
@*<div class="col-xs-12 lr-form-item" data-table="Ass_AcceptanceMain">
<div class="lr-form-item-title">申请名称</div>
<input id="Name" type="text" class="form-control" readonly/>
</div>*@
<div class="lr-form-item-title">申请名称</div>
<input id="Name" type="text" class="form-control" readonly/>
</div>*@
<div class="col-xs-12 lr-form-item" data-table="Ass_AcceptanceMain">
<div class="lr-form-item-title">总价</div>
<input id="TotalPrice" type="text" class="form-control" readonly="readonly" />
@@ -27,6 +27,10 @@
<div class="lr-form-item-title">申请人</div>
<input id="CreateUserId" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">明细操作</div>
<input id="detailprint" type="button" class="btn btn-success" value="打印明细" />
</div>
<div class="col-xs-12 lr-form-item lr-form-item-grid">
<div id="Ass_Acceptance"></div>
</div>


+ 14
- 119
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormView.js Целия файл

@@ -98,15 +98,7 @@ var bootstrap = function ($, learun) {
$('#CreateUserId')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;

$('#CreateUserId').val(learun.clientdata.get(['userinfo']).realName);
//$('#CreateDeptId').lrselect({
// type: 'tree',
// // 展开最大高度
// maxHeight: 200,
// // 是否允许搜索
// allowSearch: true,
// // 访问数据接口地址
// url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree'
//});
$('#Ass_Acceptance').jfGrid({
headData: [
{
@@ -192,116 +184,19 @@ var bootstrap = function ($, learun) {
mainId: 'AAIId',
reloadSelected: false
});
//$('#Ass_Acceptance').jfGrid({
// headData: [
// {
// label: '资产编号', name: 'AAICode', width: 150, align: 'left'
// },
// {
// label: '资产名称', name: 'AAIName', width: 150, align: 'left'
// },
// {
// label: '资产类别', name: 'AAITId', width: 150, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('custmerData', {
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_AssetsType',
// key: value,
// keyId: 'atid',
// callback: function (_data) {
// callback(_data['aname']);
// }
// });
// }
// },
// {
// label: '资产来源', name: 'AAISource', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('dataItem', {
// key: value,
// code: 'zcly',
// callback: function (_data) {
// callback(_data.text);
// }
// });
// }
// },
// {
// label: '单价', name: 'AAIPrice', width: 100, align: 'left'
// },
// {
// label: '数量', name: 'AAIStock', width: 80, align: 'left'
// },
// {
// label: '单位', name: 'AAIUnit', width: 80, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('dataItem', {
// key: value,
// code: 'sldw',
// callback: function (_data) {
// callback(_data.text);
// }
// });
// }
// },
// {
// label: '生成资产明细', name: 'AAIHasDetail', width: 80, align: 'left', formatter: function (cellvalue) {
// return (cellvalue === true || cellvalue === "true") ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
// }
// },
// {
// label: '库房', name: 'AAIStorageId', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('custmerData', {
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_StorageData',
// key: value,
// keyId: 'sid',
// callback: function (_data) {
// callback(_data['sname']);
// }
// });
// }
// },
// {
// label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left',
// formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('custmerData', {
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room',
// key: value,
// keyId: 'rid',
// callback: function (_data) {
// callback(_data['rname']);
// }
// });
// }
// },
// {
// label: '英文名称', name: 'AAIEName', width: 100, align: 'left'
// },
// {
// label: '资产型号', name: 'AAIModel', width: 100, align: 'left'
// },
// {
// label: '生产厂家', name: 'AAIManufacturer', width: 100, align: 'left'
// },
// {
// label: '资产规格', name: 'AAISpecification', width: 100, align: 'left'
// },
// {
// label: '用途', name: 'AAIUse', width: 100, align: 'left'
// },
// {
// label: '供应商', name: 'AAISupplierId', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('custmerData', {
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_SupplierData',
// key: value,
// keyId: 'sid',
// callback: function (_data) {
// callback(_data['sname']);
// }
// });
// }
// }
// ],
// height: 400,
// mainId: 'AAIId',
// reloadSelected: false
//});


//打印
$('#detailprint').on('click', function () {
learun.layerForm({
id: 'print',
title: '北京金隅科技学校固定资产验收单',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Acceptance/Print',
width: 1100,
height: 800,
btn: null
});
});
},
initData: function () {
if (!!keyValue) {


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Index.js Целия файл

@@ -26,7 +26,7 @@ var bootstrap = function ($, learun) {
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
id: 'formAss_Acceptance',
title: '新增',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Acceptance/Form',
width: 1000,
@@ -55,7 +55,7 @@ var bootstrap = function ($, learun) {
return;
}
learun.layerForm({
id: 'form',
id: 'formAss_Acceptance',
title: '编辑',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Acceptance/Form?keyValue=' + keyValue,
width: 1000,
@@ -81,7 +81,7 @@ var bootstrap = function ($, learun) {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
id: 'formAss_Acceptance',
title: '查看',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Acceptance/FormView?keyValue=' + keyValue,
width: 1000,


+ 167
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Print.cshtml Целия файл

@@ -0,0 +1,167 @@

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>教职工基本信息登记表</title>
@Html.AppendCssFile("/Areas/AssetManagementSystem/Views/Ass_Acceptance/Print.css")
</head>
<body>
<div id="table">
<div class="tableBox">
<div class="tableT">北京金隅科技学校固定资产验收单</div>
<div>
<span>项目名称:<span id="name"></span></span>
<span style="margin-right: 20px;float: right;">日期:@ViewBag.Date</span>
</div>
<table class="table">
<tr>
<td>序号</td>
<td>设备名称</td>
<td>规格型号</td>
<td>单位</td>
<td>数量</td>
<td>单价(元)</td>
<td>总价(元)</td>
<td>使用部门</td>
<td>放置地点</td>
<td>使用人</td>
<td>备注</td>
</tr>
<tbody id="t_tbody"></tbody>
</table>
<p></p>
<table class="t_option" style="border: none">
<tr>
<td> 部门资产管理员(签字):</td>
<td></td>
<td> 部门负责人(签字):</td>
<td></td>
<td> 财务负责人(签字):</td>
<td></td>
</tr>
<tr><td></td> </tr>
<tr>
<td> 设备管理员(签字):</td>
<td></td>
<td> 设备管理负责人(签字):</td>
<td></td>
<td> 校领导审核(签字):</td>
<td></td>
</tr>
</table>
</div>

</div>
<div class="btn">打印</div>
<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>
$('.btn').click(function () {
$('.tableBox').jqprint();
})

$(function () {
var tempdatra = top["layer_formAss_Acceptance"].tempdatra;
if (tempdatra) {
var html = '';
var num = 0, pricenum = 0;
for (var i = 0; i < tempdatra.length; i++) {
if (tempdatra[i].AAIStock != 'undefined') {
num += tempdatra[i].AAIStock;
}
pricenum += tempdatra[i].AAIPrice * tempdatra[i].AAIStock;
//单位
var AAIUnit = '';
top.learun.clientdata.getAsync('dataItem', {
key: tempdatra[i].AAIUnit,
code: 'sldw',
callback: function (_data) {
if (_data.text && _data.text != 'undefined') {
AAIUnit = _data.text;
}
}
});
//使用部门
var AAIUseDeptName = '';
top.learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: tempdatra[i].AAIUseDeptId,
keyId: 'id',
callback: function (_data) {
AAIUseDeptName = _data['name'];
}
});
//放置地点
var AAIStorage = '';
top.learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_StorageData',
key: tempdatra[i].AAIStorageId,
keyId: 'sid',
callback: function (_data) {
AAIStorage += _data['sname'];
}
});
top.learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room',
key: tempdatra[i].AAIStoragePosition,
keyId: 'rid',
callback: function (_data) {
AAIStorage += _data['rname'];
}
});
//使用人
var AAIUseUser = '';
top.learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
key: tempdatra[i].AAIUseUserId,
keyId: 'f_userid',
callback: function (_data) {
AAIUseUser = _data['f_realname'];
}
});
html += '<tr>';
html += '<td>' + i + '</td>';
html += '<td>' + tempdatra[i].AAIName + '</td>';
html += '<td>' + tempdatra[i].AAISpecification + '</td>';
html += '<td>' + AAIUnit + '</td>';
html += '<td>' + tempdatra[i].AAIStock + '</td>';
html += '<td>' + tempdatra[i].AAIPrice + '</td>';
html += '<td>' + tempdatra[i].AAIPrice * tempdatra[i].AAIStock + '</td>';
html += '<td>' + AAIUseDeptName + '</td>';
html += '<td>' + AAIStorage + '</td>';
html += '<td>' + AAIUseUser + '</td>';
var ARemark = '';
if (tempdatra[i].ARemark && tempdatra[i].ARemark != 'null') {
ARemark = tempdatra[i].ARemark;
}
html += '<td>' + ARemark + '</td>';

html += '</tr>';
}

html += '<tr>';
html += '<td></td>';
html += '<td>合计</td>';
html += '<td></td>';
html += '<td></td>';
html += '<td>' + num + '</td>';
html += '<td></td>';
html += '<td>' + pricenum + '</td>';
html += '<td></td>';
html += '<td></td>';
html += '<td></td>';
html += '<td></td>';
html += '</tr>';

//$('.table tbody').empty().append(html);
$('#t_tbody').html(html);
}
});

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

+ 87
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Print.css Целия файл

@@ -0,0 +1,87 @@
table,
tr,
td {
padding: 0;
margin: 0;
border-collapse: collapse;
}

table {
table-layout: fixed;
font-size: 14px;
}

.tableT {
text-align: center;
font-size: 20px;
margin-bottom: 15px;
}

.table {
width: 100%;
text-align: center;
border-top: 1px solid #000;
border-right: 1px solid #000;
}

.table tr {
border-bottom: 1px solid #000;
}

.table td {
border-left: 1px solid #000;
line-height: 20px;
padding: 8px 5px;
}

.tableImg {
height: 0;
overflow: hidden;
padding-bottom: 140%;
}

.table img {
width: 100%;
}

.tableTxt {
text-align: left;
}

.table .table {
border: 0;
}

.table .table tr:last-child {
border-bottom: 0;
}

.table .table td:first-child {
border-left: 0;
}

.btn {
width: 100px;
height: 34px;
line-height: 34px;
text-align: center;
margin: 30px auto;
border: 1px solid #ccc;
cursor: pointer;
border-radius: 4px;
}

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


.t_option td {
width: 18%;
line-height: 45px;
}

#table {
/* display: none; */
}

+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Form.cshtml Целия файл

@@ -44,6 +44,8 @@
<input id="detailadd" type="button" class="btn btn-success" value="新增明细" />
<input id="detailedit" type="button" class="btn btn-warning" value="编辑明细" />
<input id="detaildel" type="button" class="btn btn-danger" value="移除明细" />
<input id="detailprint" type="button" class="btn btn-success" value="打印明细" />
</div>
<div class="col-xs-12 lr-form-item lr-form-item-grid">
<div id="Ass_AssetsOutItemApply"></div>


+ 14
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Form.js Целия файл

@@ -259,6 +259,20 @@ var bootstrap = function ($, learun) {
mainId: 'AOIId',
reloadSelected: false
});


//打印
$('#detailprint').on('click', function () {
learun.layerForm({
id: 'print',
title: '固定资产调拨单',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/Print',
width: 1100,
height: 800,
btn: null
});
});

},
initData: function () {
if (!!keyValue) {


+ 11
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/FormView.cshtml Целия файл

@@ -12,13 +12,13 @@
<input id="AOPrice" type="text" class="form-control" readonly="readonly" />
</div>
@*<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsOutApply">
<div class="lr-form-item-title">出库原因</div>
<div id="AOReasonType" readonly="readonly"></div>
</div>*@
<div class="lr-form-item-title">出库原因</div>
<div id="AOReasonType" readonly="readonly"></div>
</div>*@
@*<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsOutApply">
<div class="lr-form-item-title">部门</div>
<div id="AODepartment"></div>
</div>*@
<div class="lr-form-item-title">部门</div>
<div id="AODepartment"></div>
</div>*@
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsOutApply">
<div class="lr-form-item-title">申请时间</div>
<input id="AOCreateTime" type="text" readonly class="form-control currentInfo lr-currentInfo-time" />
@@ -31,6 +31,11 @@
<div class="lr-form-item-title">项目名称</div>
<input id="AOProjectName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">明细操作</div>
<input id="detailprint" type="button" class="btn btn-success" value="打印明细" />

</div>
<div class="col-xs-12 lr-form-item lr-form-item-grid">
<div id="Ass_AssetsOutItemApply"></div>
</div>


+ 13
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/FormView.js Целия файл

@@ -41,6 +41,19 @@ var bootstrap = function ($, learun) {
param: {}
});
$('#AOCreateUserId').val(learun.clientdata.get(['userinfo']).realName);

//打印
$('#detailprint').on('click', function () {
learun.layerForm({
id: 'print',
title: '固定资产调拨单',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/Print',
width: 1100,
height: 800,
btn: null
});
});

$('#Ass_AssetsOutItemApply').jfGrid({
headData: [
{


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Index.js Целия файл

@@ -109,7 +109,7 @@ var bootstrap = function ($, learun) {
var keyValue = $('#gridtable').jfGridValue('AOId');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'formAss_AssetsInfoApply',
id: 'formAss_AssetsOutApply',
title: '查看调拨申请',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/FormView?keyValue=' + keyValue,
width: 1000,


+ 200
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Print.cshtml Целия файл

@@ -0,0 +1,200 @@

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>固定资产调拨单</title>
@Html.AppendCssFile("/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Print.css")
</head>
<body>
<div id="table">
<div class="tableBox">
<div class="tableT">固定资产调拨单</div>
<div>
@*<span>项目名称:<span id="name"></span></span>*@
<span style="margin-right: 20px;float: right;">日期:@ViewBag.Date</span>
</div>
<table class="table">
<tr>
<td style="width: 40px;">序号</td>
<td style="width: 150px;">资产编码</td>
<td>资产名称</td>
<td>规格型号</td>
<td style="width: 45px;">数量</td>
<td>调出部门</td>
<td>调出存放地点</td>
<td>调入部门</td>
<td>调入存放地点</td>
<td>备注</td>
</tr>
<tbody id="t_tbody"></tbody>
</table>
<p></p>
<table class="t_option" style="border: none">
<tr>
<td> 调出部门设备管理人(签字):</td>
<td></td>
<td> 调入部门设备管理人(签字):</td>
<td></td>
</tr>
<tr><td></td> </tr>
<tr>
<td> 调出部门负责人(签字):</td>
<td></td>
<td> 调入部门负责人(签字):</td>
<td></td>
</tr>
<tr>
<td> 设备部门负责人(签字):</td>
<td></td>
<td> 财务部门负责人(签字):</td>
<td></td>
</tr>
</table>
</div>

</div>
<div class="btn">打印</div>
<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>
$('.btn').click(function () {
$('.tableBox').jqprint();
})

$(function () {
var tempdatra = top["layer_formAss_AssetsOutApply"].tempdatra;
if (tempdatra) {
var html = '';
var num = 0, pricenum = 0;
for (var i = 0; i < tempdatra.length; i++) {
var AAIStock = tempdatra[i].AAIStock;
if (AAIStock && AAIStock != 'undefined') {
num += AAIStock;
} else {
AAIStock = '';
}
//调出部门
var AOIOldDepartment = '';
top.learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: tempdatra[i].AOIOldDepartment,
keyId: 'id',
callback: function (_data) {
if (_data['sname'] && _data['sname'] != 'undefined') {
AOIOldDepartment = _data['name'];
}
}
});
//调出存放地点
var AAIStorage = '';
top.learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_StorageData',
key: tempdatra[i].AOIStorageId,
keyId: 'sid',
callback: function (_data) {
if (_data['sname'] && _data['sname'] != 'undefined') {
AAIStorage += _data['sname'] + ' ';
}
}
});
top.learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room',
key: tempdatra[i].AOIRoomId,
keyId: 'rid',
callback: function (_data) {
if (_data['rcode'] && _data['rcode'] != 'undefined') {
AAIStorage += _data['rcode'];
}
}
});


//调入部门
var AOINewDepartment = '';
top.learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: tempdatra[i].AOINewDepartment,
keyId: 'id',
callback: function (_data) {
if (_data['sname'] && _data['sname'] != 'undefined') {
AOINewDepartment = _data['name'];
}
}
});
//调出存放地点
var AOINewStorage = '';
top.learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_StorageData',
key: tempdatra[i].AOINewStorageId,
keyId: 'sid',
callback: function (_data) {
if (_data['sname'] && _data['sname'] != 'undefined') {
AOINewStorage += _data['sname'] + ' ';
}
}
});
top.learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room',
key: tempdatra[i].AOINewRoomId,
keyId: 'rid',
callback: function (_data) {
if (_data['rcode'] && _data['rcode'] != 'undefined') {
AOINewStorage += _data['rcode'];
}
}
});

//使用人
var AAIUseUser = '';
top.learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
key: tempdatra[i].AAIUseUserId,
keyId: 'f_userid',
callback: function (_data) {
AAIUseUser = _data['f_realname'];
}
});
html += '<tr>';
html += '<td>' + i + '</td>';
html += '<td>' + tempdatra[i].AOICode + '</td>';
html += '<td>' + tempdatra[i].AOIName + '</td>';
html += '<td>' + tempdatra[i].AOISpecification + '</td>';

html += '<td>' + AAIStock + '</td>';
html += '<td>' + AOIOldDepartment + '</td>';
html += '<td>' + AAIStorage + '</td>';
html += '<td>' + AOINewDepartment + '</td>';
html += '<td>' + AOINewStorage + '</td>';
var AOIContent = '';
if (tempdatra[i].AOIContent && tempdatra[i].AOIContent != 'null') {
AOIContent = tempdatra[i].AOIContent;
}
html += '<td>' + AOIContent + '</td>';

html += '</tr>';
}

html += '<tr>';
html += '<td></td>';
html += '<td>合计</td>';
html += '<td></td>';
html += '<td></td>';
html += '<td>' + num + '</td>';
html += '<td></td>';
html += '<td></td>';
html += '<td></td>';
html += '<td></td>';
html += '<td></td>';
html += '</tr>';

//$('.table tbody').empty().append(html);
$('#t_tbody').html(html);
}
});

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

+ 87
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Print.css Целия файл

@@ -0,0 +1,87 @@
table,
tr,
td {
padding: 0;
margin: 0;
border-collapse: collapse;
}

table {
table-layout: fixed;
font-size: 14px;
}

.tableT {
text-align: center;
font-size: 20px;
margin-bottom: 15px;
}

.table {
width: 100%;
text-align: center;
border-top: 1px solid #000;
border-right: 1px solid #000;
}

.table tr {
border-bottom: 1px solid #000;
}

.table td {
border-left: 1px solid #000;
line-height: 20px;
padding: 8px 5px;
}

.tableImg {
height: 0;
overflow: hidden;
padding-bottom: 140%;
}

.table img {
width: 100%;
}

.tableTxt {
text-align: left;
}

.table .table {
border: 0;
}

.table .table tr:last-child {
border-bottom: 0;
}

.table .table td:first-child {
border-left: 0;
}

.btn {
width: 100px;
height: 34px;
line-height: 34px;
text-align: center;
margin: 30px auto;
border: 1px solid #ccc;
cursor: pointer;
border-radius: 4px;
}

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


.t_option td {
width: 18%;
line-height: 45px;
}

#table {
/* display: none; */
}

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Целия файл

@@ -855,6 +855,7 @@
<Content Include="Areas\AssetManagementSystem\Views\AssScrap\Index.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_Acceptance\FormView.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_Acceptance\Form.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_Acceptance\Print.css" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_Acceptance\ViewForm.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AllocationItem\Form.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AllocationItem\Index.js" />
@@ -896,6 +897,7 @@
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsOutApply\AssetsIndex.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsOutApply\Index.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsOutApply\IndexTwo.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsOutApply\Print.css" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsOutItemApply\Form.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsOutItemApply\Index.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsType\Form.js" />
@@ -7360,6 +7362,8 @@
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsOutApply\AssetsForm.cshtml" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsOutApply\IndexTwo.cshtml" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsOutApply\AssetsFormView.cshtml" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_Acceptance\Print.cshtml" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsOutApply\Print.cshtml" />
<None Include="Areas\EducationalAdministration\Views\SchoolNews\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\StuTuition.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\IsHelpForm.cshtml" />


Зареждане…
Отказ
Запис