Selaa lähdekoodia

【修改】固定资产优化:排序、使用人与使用部门联动、;

新疆体育高职分支
dyy 1 vuosi sitten
vanhempi
commit
315e790a49
5 muutettua tiedostoa jossa 41 lisäystä ja 20 poistoa
  1. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsType/Index.js
  2. +18
    -8
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssets/Form.js
  3. +16
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssets/FormView.js
  4. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssets/Index.js
  5. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssets/IndexOfTeacher.js

+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsType/Index.js Näytä tiedosto

@@ -114,10 +114,10 @@ var bootstrap = function ($, learun) {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsType/GetList',
headData: [
{ label: "资产类编号", name: "ATCode", width: 200, align: "left" },
{ label: "资产类名称", name: "AName", width: 200, align: "left" },
{ label: "资产类编号", name: "ATCode", width: 200, align: "left" },
{ label: "资产类名称", name: "AName", width: 200, align: "left" },
{
label: "上级资产类", name: "ATPTId", width: 200, align: "left",
label: "上级资产类", name: "ATPTId", width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_AssetsType',


+ 18
- 8
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssets/Form.js Näytä tiedosto

@@ -64,13 +64,23 @@ var bootstrap = function ($, learun) {
$('#ValueType').lrDataItemSelect({ code: 'ValueType' });
$('#GetWay').lrDataItemSelect({ code: 'GetWay' });
$('#UseCondition').lrDataItemSelect({ code: 'AssState' });
$('#UseDepartment').lrDepartmentSelect();
$('#UseDepartment').lrDepartmentSelect({
select: function (item) {
$('#UsePeople').lrselectRefresh({
url: top.$.rootUrl + '/LR_OrganizationModule/User/GetList',
param: { departmentId: item.value }
});
}
});
$('#ManageDepartment').lrDepartmentSelect();
$('#UsePeople').lrformselect({
layerUrl: top.$.rootUrl + '/LR_OrganizationModule/User/SelectOnlyForm',
layerUrlW: 400,
layerUrlH: 300,
dataUrl: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds'
$('#UsePeople').lrselect({
value: 'F_UserId',
text: 'F_RealName',
title: 'F_RealName',
// 展开最大高度
maxHeight: 110,
// 是否允许搜索
allowSearch: true
});
$('#Unit').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
$('#CardStatus').lrDataItemSelect({ code: 'CardStatus' });
@@ -160,7 +170,7 @@ var bootstrap = function ($, learun) {
$('#NetValue').val(netValue);
netValue == 0 ? $('#NetValue').attr('style', 'color:red;') : $('#NetValue').removeAttr('style');
});
//计算:价值数据=财政拨款 + 非财政拨款
let calcValue = function (a, b) {
return Number(a) + Number(b);
@@ -177,7 +187,7 @@ var bootstrap = function ($, learun) {
let calcNetValue = function (a, b) {
return (Number(a) - Number(b)) > 0 ? (Number(a) - Number(b)) : 0;
}
}
};
// 设置表单数据


+ 16
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssets/FormView.js Näytä tiedosto

@@ -64,13 +64,23 @@ var bootstrap = function ($, learun) {
$('#ValueType').lrDataItemSelect({ code: 'ValueType' });
$('#GetWay').lrDataItemSelect({ code: 'GetWay' });
$('#UseCondition').lrDataItemSelect({ code: 'AssState' });
$('#UseDepartment').lrDepartmentSelect();
$('#UseDepartment').lrDepartmentSelect({
select: function (item) {
$('#UsePeople').lrselectRefresh({
url: top.$.rootUrl + '/LR_OrganizationModule/User/GetList',
param: { departmentId: item.value }
});
}
});
$('#ManageDepartment').lrDepartmentSelect();
$('#UsePeople').lrformselect({
layerUrl: top.$.rootUrl + '/LR_OrganizationModule/User/SelectOnlyForm',
layerUrlW: 400,
layerUrlH: 300,
dataUrl: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds'
$('#UsePeople').lrselect({
value: 'F_UserId',
text: 'F_RealName',
title: 'F_RealName',
// 展开最大高度
maxHeight: 110,
// 是否允许搜索
allowSearch: true
});
$('#Unit').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
$('#CardStatus').lrDataItemSelect({ code: 'CardStatus' });
@@ -182,7 +192,6 @@ var bootstrap = function ($, learun) {
};
// 设置表单数据
setFormData = function (processId, param, callback) {
console.log('formview@'+processId);
if (!!processId) {
$.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_FixAssets/GetFormDataByProcessId?processId=' + processId, function (data) {
for (var id in data) {


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssets/Index.js Näytä tiedosto

@@ -392,7 +392,8 @@ var bootstrap = function ($, learun) {
],
mainId: 'FAId',
isPage: true,
sidx: 'CreateTime desc'
sidx: 'FACode,FAName',
sord:'asc'
});
page.search();
},


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssets/IndexOfTeacher.js Näytä tiedosto

@@ -285,7 +285,8 @@ var bootstrap = function ($, learun) {
],
mainId: 'FAId',
isPage: true,
sidx: 'CreateTime desc'
sidx: 'FACode,FAName',
sord: 'asc'
});
page.search();
},


Ladataan…
Peruuta
Tallenna