Pārlūkot izejas kodu

批量调拨明细打印功能

金隅分支
zhangli pirms 3 gadiem
vecāks
revīzija
9752269f44
7 mainītis faili ar 36 papildinājumiem un 11 dzēšanām
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Form.cshtml
  2. +10
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Print.cshtml
  3. +7
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/AssetsFormView.cshtml
  4. +13
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/AssetsFormView.js
  5. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/AssetsIndex.js
  6. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Form.cshtml
  7. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Print.cshtml

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Form.cshtml Parādīt failu

@@ -32,7 +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="打印明细" />
@*<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>


+ 10
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Print.cshtml Parādīt failu

@@ -72,7 +72,7 @@
if (tempdatra[i].AAIStock != 'undefined') {
num += tempdatra[i].AAIStock;
}
pricenum += tempdatra[i].AAIPrice * tempdatra[i].AAIStock;
//单位
var AAIUnit = '';
@@ -92,7 +92,9 @@
key: tempdatra[i].AAIUseDeptId,
keyId: 'id',
callback: function (_data) {
AAIUseDeptName = _data['name'];
if (_data['name'] && _data['name'] != 'undefined') {
AAIUseDeptName = _data['name'];
}
}
});
//放置地点
@@ -102,7 +104,9 @@
key: tempdatra[i].AAIStorageId,
keyId: 'sid',
callback: function (_data) {
AAIStorage += _data['sname'];
if (_data['sname'] && _data['sname'] != 'undefined') {
AAIStorage += _data['sname'];
}
}
});
top.learun.clientdata.getAsync('custmerData', {
@@ -110,7 +114,9 @@
key: tempdatra[i].AAIStoragePosition,
keyId: 'rid',
callback: function (_data) {
AAIStorage += _data['rname'];
if (_data['rname'] && _data['rname'] != 'undefined') {
AAIStorage += _data['rname'];
}
}
});
//使用人


+ 7
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/AssetsFormView.cshtml Parādīt failu

@@ -8,7 +8,7 @@
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="Ass_AssetsOutApply">
<div class="lr-form-item-title">调拨单流水号</div>
<input id="AOCode" type="text" class="form-control" />
<input id="AOCode" type="text" class="form-control" />
</div>
@*<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsOutApply">
<div class="lr-form-item-title">出库总价</div>
@@ -55,7 +55,12 @@
<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/AssetsFormView.js Parādīt failu

@@ -112,6 +112,19 @@ var bootstrap = function ($, learun) {
});
$('#AOStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' });


//打印
$('#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/AssetsIndex.js Parādīt failu

@@ -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/AssetsFormView?keyValue=' + keyValue,
width: 1000,


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Form.cshtml Parādīt failu

@@ -44,7 +44,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="打印明细" />
@*<input id="detailprint" type="button" class="btn btn-success" value="打印明细" />*@
</div>
<div class="col-xs-12 lr-form-item lr-form-item-grid">


+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/Print.cshtml Parādīt failu

@@ -66,6 +66,7 @@

$(function () {
var tempdatra = top["layer_formAss_AssetsOutApply"].tempdatra;
//console.log(tempdatra);
if (tempdatra) {
var html = '';
var num = 0, pricenum = 0;
@@ -83,7 +84,7 @@
key: tempdatra[i].AOIOldDepartment,
keyId: 'id',
callback: function (_data) {
if (_data['sname'] && _data['sname'] != 'undefined') {
if (_data['name'] && _data['name'] != 'undefined') {
AOIOldDepartment = _data['name'];
}
}
@@ -119,7 +120,7 @@
key: tempdatra[i].AOINewDepartment,
keyId: 'id',
callback: function (_data) {
if (_data['sname'] && _data['sname'] != 'undefined') {
if (_data['name'] && _data['name'] != 'undefined') {
AOINewDepartment = _data['name'];
}
}


Notiek ielāde…
Atcelt
Saglabāt