|
|
@@ -6,8 +6,10 @@ |
|
|
|
*/ |
|
|
|
var refreshGirdData; |
|
|
|
var AId = request("AId"); |
|
|
|
var TreeAIASSClass = ''; |
|
|
|
var currentUser = request("currentUser");//我的资产需要用到 |
|
|
|
var IsDelete = request("IsDelete");//报废资产需要使用 |
|
|
|
var exportWhere = ''; |
|
|
|
var bootstrap = function ($, learun) { |
|
|
|
"use strict"; |
|
|
|
var page = { |
|
|
@@ -29,18 +31,48 @@ var bootstrap = function ($, learun) { |
|
|
|
// page.search({ AIAssType: item.value }); |
|
|
|
// } |
|
|
|
//}); |
|
|
|
|
|
|
|
$('#dataTree').lrtree({ |
|
|
|
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetTree', |
|
|
|
nodeClick: function (item) { |
|
|
|
if (item && item.value) { |
|
|
|
TreeAIASSClass = item.value; |
|
|
|
} |
|
|
|
page.search({ AIASSClass: item.value }); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { |
|
|
|
exportWhere = queryJson; |
|
|
|
page.search(queryJson); |
|
|
|
}, 400, 400); |
|
|
|
$('#AIIStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); |
|
|
|
}, 500, 400); |
|
|
|
$('#AIIStorageId').lrselect({ |
|
|
|
type: 'tree', |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetTree', |
|
|
|
param: {}, |
|
|
|
select: function (val) { |
|
|
|
var storageId = ""; |
|
|
|
if (val) { |
|
|
|
storageId = val.value; |
|
|
|
} |
|
|
|
$('#AIIStoragePosition').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetListForStorageId?storageId=' + storageId, |
|
|
|
text: "RCode", |
|
|
|
value: "RId", allowSearch: true |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
//房间 |
|
|
|
$('#AIIStoragePosition').lrselect({ value: 'RId', text: 'RCode', allowSearch: true }); |
|
|
|
//$('#AIIStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); |
|
|
|
$('#REnabled').lrDataItemSelect({ code: 'YesOrNoBit' }); |
|
|
|
$('#AIASSState').lrDataItemSelect({ code: 'AssState' }); |
|
|
|
$('#AIDepartment').lrDepartmentSelect(); |
|
|
|
$('#AIDepartment').lrDepartmentSelect({ |
|
|
|
select: function (val) { |
|
|
|
$('#AIUsePeople').lrselectRefresh({ url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentId?departmentId=' + val.value, text: 'F_RealName', value: 'F_UserId' }) |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#AIUsePeople').lrselect({ allowSearch: true, text: 'F_RealName', value: 'F_UserId' }); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
@@ -65,6 +97,7 @@ var bootstrap = function ($, learun) { |
|
|
|
height: 80 |
|
|
|
}); |
|
|
|
$("#lr_printBar").on('click', function () { |
|
|
|
var AIId = $('#gridtable').jfGridValue('AIId'); |
|
|
|
var keyValue = $('#gridtable').jfGridValue('AICode'); |
|
|
|
var AName = $('#gridtable').jfGridValue('AIASSName'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
@@ -86,11 +119,12 @@ var bootstrap = function ($, learun) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'formcardprint', |
|
|
|
title: '打印二维码', |
|
|
|
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/QRPrint?keyValue=' + keyValue+'&aName='+escape(AName), |
|
|
|
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/QRPrint?keyValue=' + keyValue + '&aName=' + escape(AName) + '&AIId=' + AIId, |
|
|
|
width: 700, |
|
|
|
height: 300, |
|
|
|
btn: null, |
|
|
|
end: function () { refreshGirdData(); } |
|
|
|
end: function () { //refreshGirdData(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
@@ -184,53 +218,151 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$('#lr_exportexcel').on('click', function () { |
|
|
|
page.exportExcel(); |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 初始化列表 |
|
|
|
initGird: function () { |
|
|
|
$('#gridtable').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: "明细编号", name: "AICode", width: 200, align: "left" }, |
|
|
|
//{ label: "明细编号", name: "AICode", width: 200, align: "left" }, |
|
|
|
//{ label: "序号", name: "AICodeNum", width: 100, align: "left" }, |
|
|
|
{ label: "资产编号", name: "AICodeNumJY", width: 200, align: "left" }, |
|
|
|
{ label: "名称", name: "AIASSName", width: 200, align: "left" }, |
|
|
|
{ |
|
|
|
label: "部门", name: "AIDepartment", width: 100, align: "left", |
|
|
|
label: "楼宇名称", name: "AIIStorageId", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('department', { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_StorageData', |
|
|
|
key: value, |
|
|
|
keyId: 'sid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.name); |
|
|
|
callback(_data['sname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "使用人员", name: "AIUsePeople", width: 100, align: "left", |
|
|
|
label: "房间号", name: "AIIStoragePosition", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room', |
|
|
|
key: value, |
|
|
|
keyId: 'f_userid', |
|
|
|
keyId: 'rid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_realname']); |
|
|
|
callback(_data['rcode']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "所在库房", name: "AIIStorageId", width: 100, align: "left", |
|
|
|
label: "房间功能", name: "RFunction", width: 150, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "房间面积", name: "RArea", width: 100, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "房间状态", name: "REnabled", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'RoomState', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "资产名称", name: "AIASSName", width: 200, align: "left" }, |
|
|
|
{ |
|
|
|
label: '资产分类', name: 'AIASSClass', width: 150, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_StorageData', |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_AssetsType', |
|
|
|
key: value, |
|
|
|
keyId: 'sid', |
|
|
|
keyId: 'atid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['sname']); |
|
|
|
callback(_data['aname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
//{ label: "资产品牌", name: "AISpecification", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "规格型号", name: "AISpecificationtype", width: 100, align: "left" |
|
|
|
}, |
|
|
|
//***************数量 |
|
|
|
{ |
|
|
|
label: "计量单位", name: "AIUnits", width: 100, 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: "AIASSState", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'AssState', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "所在库位", name: "AIIStoragePosition", width: 100, align: "left" }, |
|
|
|
//{ label: "管理部门", name: "AdministrativeDepartment", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "管理部门", name: "AIDepartment", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('department', { |
|
|
|
key: value, |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.name); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "使用人", name: "AIUsePeople", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', |
|
|
|
key: value, |
|
|
|
keyId: 'f_userid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_realname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "存放地点", name: "AIPlace", width: 100, align: "left" }, |
|
|
|
{ label: "资产原价值", name: "AIAssValue", width: 100, align: "left" }, |
|
|
|
{ label: "入账日期", name: "AIAddTime", width: 100, align: "left" }, |
|
|
|
{ label: "备注", name: "AIRemark", width: 100, align: "left" }, |
|
|
|
{ label: "折旧方法", name: "DepreciationMethod", width: 100, align: "left" }, |
|
|
|
{ label: "折旧状态", name: "DepreciationStatus", width: 100, align: "left" }, |
|
|
|
{ label: "折旧年限", name: "UsefulLife", width: 100, align: "left" }, |
|
|
|
{ label: "月折旧额", name: "MonthlyDepreciation", width: 100, align: "left" }, |
|
|
|
{ label: "已提折旧月数", name: "MonthsOfDepreciation", width: 100, align: "left" }, |
|
|
|
{ label: "月折旧率", name: "MonthlyDepreciationRate", width: 100, align: "left" }, |
|
|
|
{ label: "累计折旧", name: "AccumulatedDepreciation", width: 100, align: "left" }, |
|
|
|
{ label: "净值", name: "NetWorth", width: 100, align: "left" }, |
|
|
|
{ label: "车辆行驶证所有人", name: "VehicleLicenseUser", width: 100, align: "left" }, |
|
|
|
{ label: "车辆识别号", name: "AIVehicleNumber", width: 100, align: "left" }, |
|
|
|
{ label: "车牌号", name: "AIPlateNumber", width: 100, align: "left" }, |
|
|
|
{ label: "面积", name: "AIBuiltArea", width: 100, align: "left" }, |
|
|
|
{ label: "权属证号", name: "AIOwnership", width: 100, align: "left" }, |
|
|
|
{ label: "土地使用权类型", name: "LandUseType", width: 100, align: "left" }, |
|
|
|
{ label: "土地使用权人/房屋所有权人", name: "LandUseUser", width: 200, align: "left" } |
|
|
|
|
|
|
|
//{ |
|
|
|
// label: "报废时间", name: "AIIStoragePosition", width: 100, align: "left", formatter: function (cellvalue, row) { |
|
|
|
|
|
|
@@ -279,117 +411,102 @@ var bootstrap = function ($, learun) { |
|
|
|
|
|
|
|
// } |
|
|
|
//}, |
|
|
|
{ |
|
|
|
label: "资产型号", name: "AISpecificationtype", width: 100, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "资产属性", name: "AIAssType", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'AssType', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "计量单位", name: "AIUnits", width: 100, 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: "AIAssValue", width: 100, align: "left" }, |
|
|
|
{ label: "购置日期", name: "AIAddTime", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "资产分类", name: "AIASSClass", width: 100, 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: "AIASSState", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'AssState', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "增加方式", name: "AIAddType", 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: "AIManufacturer", width: 100, align: "left" }, |
|
|
|
{ label: "资产规格", name: "AISpecification", width: 100, align: "left" }, |
|
|
|
{ label: "用途", name: "AIUse", width: 100, align: "left" }, |
|
|
|
{ label: "采购组织形式", name: "ProcurementOrganizationForm", width: 100, align: "left" }, |
|
|
|
{ label: "预算项目编号", name: "BudgetItemNo", width: 100, align: "left" }, |
|
|
|
{ label: "取得方式", name: "MethodOfAcquisition", width: 100, align: "left" }, |
|
|
|
{ label: "取得日期", name: "TimeOfAcquisition", width: 100, align: "left" }, |
|
|
|
{ label: "产品序列号", name: "ProjectID", width: 100, align: "left" }, |
|
|
|
{ label: "销售商", name: "Seller", width: 100, align: "left" }, |
|
|
|
{ label: "合同编号", name: "ContractNo", width: 100, align: "left" }, |
|
|
|
{ label: "发票号", name: "InvoiceNumber", width: 100, align: "left" }, |
|
|
|
{ label: "配置标准分类名称", name: "ConfigurationName", width: 100, align: "left" }, |
|
|
|
{ label: "保修截止日期", name: "GuaranteeEndTime", width: 100, align: "left" }, |
|
|
|
{ label: "入账形式", name: "EntryForm", width: 100, align: "left" }, |
|
|
|
{ label: "价值类型", name: "ValueType", width: 100, align: "left" }, |
|
|
|
{ label: "财政拨款", name: "FinancialAllocation", width: 100, align: "left" }, |
|
|
|
{ label: "非财政拨款", name: "NonFinancialAppropriation", width: 100, align: "left" }, |
|
|
|
{ label: "使用状况", name: "Usage", width: 100, align: "left" }, |
|
|
|
{ label: "投入使用日期", name: "DateOfCommissioning", width: 100, align: "left" }, |
|
|
|
{ label: "管理部门", name: "AdministrativeDepartment", width: 100, align: "left" }, |
|
|
|
{ label: "折旧状态", name: "DepreciationStatus", width: 100, align: "left" }, |
|
|
|
{ label: "折旧方法", name: "DepreciationMethod", width: 100, align: "left" }, |
|
|
|
{ label: "已提折旧月数", name: "MonthsOfDepreciation", width: 100, align: "left" }, |
|
|
|
{ label: "累计折旧", name: "AccumulatedDepreciation", width: 100, align: "left" }, |
|
|
|
{ label: "折旧年限(月)", name: "UsefulLife", width: 100, align: "left" }, |
|
|
|
{ label: "月折旧额", name: "MonthlyDepreciation", width: 100, align: "left" }, |
|
|
|
{ label: "残值率", name: "ResidualValueRate", width: 100, align: "left" }, |
|
|
|
|
|
|
|
//{ |
|
|
|
// label: "资产属性", name: "AIAssType", width: 100, align: "left", |
|
|
|
// formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
// learun.clientdata.getAsync('dataItem', { |
|
|
|
// key: value, |
|
|
|
// code: 'AssType', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data.text); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}, |
|
|
|
//{ |
|
|
|
// label: "资产分类", name: "AIASSClass", width: 100, 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: "AIAddType", 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: "AIManufacturer", width: 100, align: "left" }, |
|
|
|
//{ label: "用途", name: "AIUse", width: 100, align: "left" }, |
|
|
|
//{ label: "采购组织形式", name: "ProcurementOrganizationForm", width: 100, align: "left" }, |
|
|
|
//{ label: "预算项目编号", name: "BudgetItemNo", width: 100, align: "left" }, |
|
|
|
//{ label: "取得方式", name: "MethodOfAcquisition", width: 100, align: "left" }, |
|
|
|
//{ label: "取得日期", name: "TimeOfAcquisition", width: 100, align: "left" }, |
|
|
|
//{ label: "产品序列号", name: "ProjectID", width: 100, align: "left" }, |
|
|
|
//{ label: "销售商", name: "Seller", width: 100, align: "left" }, |
|
|
|
//{ label: "合同编号", name: "ContractNo", width: 100, align: "left" }, |
|
|
|
//{ label: "发票号", name: "InvoiceNumber", width: 100, align: "left" }, |
|
|
|
//{ label: "配置标准分类名称", name: "ConfigurationName", width: 100, align: "left" }, |
|
|
|
//{ label: "保修截止日期", name: "GuaranteeEndTime", width: 100, align: "left" }, |
|
|
|
//{ label: "入账形式", name: "EntryForm", width: 100, align: "left" }, |
|
|
|
//{ label: "价值类型", name: "ValueType", width: 100, align: "left" }, |
|
|
|
//{ label: "财政拨款", name: "FinancialAllocation", width: 100, align: "left" }, |
|
|
|
//{ label: "非财政拨款", name: "NonFinancialAppropriation", width: 100, align: "left" }, |
|
|
|
//{ label: "使用状况", name: "Usage", width: 100, align: "left" }, |
|
|
|
//{ label: "投入使用日期", name: "DateOfCommissioning", width: 100, align: "left" }, |
|
|
|
//{ label: "管理部门", name: "AdministrativeDepartment", width: 100, align: "left" }, |
|
|
|
//{ label: "残值率", name: "ResidualValueRate", width: 100, align: "left" }, |
|
|
|
], |
|
|
|
mainId: 'AIId', |
|
|
|
isMultiselect: true, |
|
|
|
isPage: true, |
|
|
|
sidx: 'AICodeNum' |
|
|
|
sidx: 'AICodeNum', |
|
|
|
rows: 20 |
|
|
|
}); |
|
|
|
page.search(); |
|
|
|
}, |
|
|
|
search: function (param) { |
|
|
|
param = param || {}; |
|
|
|
param.AId = AId; |
|
|
|
param.AIASSClass = TreeAIASSClass; |
|
|
|
if (currentUser) { |
|
|
|
var userInfo = top.learun.clientdata.get(['userinfo']); |
|
|
|
param.userId = userInfo.userId; |
|
|
|
} |
|
|
|
param.AIIsScrap = false; |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
}, |
|
|
|
exportExcel: function () { |
|
|
|
|
|
|
|
var param = exportWhere || {}; |
|
|
|
param.AId = AId; |
|
|
|
param.AIASSClass = TreeAIASSClass; |
|
|
|
if (currentUser) { |
|
|
|
var userInfo = top.learun.clientdata.get(['userinfo']); |
|
|
|
param.userId = userInfo.userId; |
|
|
|
} |
|
|
|
param.AIIsScrap = false; |
|
|
|
learun.download({ |
|
|
|
method: "POST", |
|
|
|
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/ExportList', |
|
|
|
param: { |
|
|
|
queryJson: JSON.stringify(param) |
|
|
|
} |
|
|
|
}); |
|
|
|
//$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|
refreshGirdData = function () { |
|
|
|