Bläddra i källkod

资产 管理部门改为使用人所在的部门字段

金隅分支
zhangli 3 år sedan
förälder
incheckning
ee529921f0
5 ändrade filer med 41 tillägg och 34 borttagningar
  1. +6
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Form.cshtml
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/FormView.cshtml
  3. +12
    -12
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js
  4. +12
    -12
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/IndexTwo.js
  5. +10
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/QRPrint.cshtml

+ 6
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Form.cshtml Visa fil

@@ -48,14 +48,14 @@
<div class="lr-form-item-title">资产状态</div>
<div id="AIASSState"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem">
<div class="lr-form-item-title">管理部门</div>
<input id="AdministrativeDepartment" type="text" class="form-control" />
</div>
@*<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem">
<div class="lr-form-item-title">部门</div>
<div id="AIDepartment"></div>
<div class="lr-form-item-title">管理部门</div>
<input id="AdministrativeDepartment" type="text" class="form-control" />
</div>*@
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem">
<div class="lr-form-item-title">部门</div>
<div id="AIDepartment"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem">
<div class="lr-form-item-title">使用人</div>
<div id="AIUsePeople"></div>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/FormView.cshtml Visa fil

@@ -65,7 +65,7 @@
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem">
<div class="lr-form-item-title">管理部门</div>
<input id="AdministrativeDepartment" readonly="readonly" type="text" class="form-control" />
<div id="AIDepartment" readonly="readonly"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItem">
<div class="lr-form-item-title">使用人</div>


+ 12
- 12
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js Visa fil

@@ -296,18 +296,18 @@ var bootstrap = function ($, learun) {
});
}
},
{ 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: "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) {


+ 12
- 12
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/IndexTwo.js Visa fil

@@ -145,18 +145,18 @@ var bootstrap = function ($, learun) {
});
}
},
{ 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: "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) {


+ 10
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/QRPrint.cshtml Visa fil

@@ -29,7 +29,7 @@
<div id="top">
<div id="qrcode" style="float: left; font-size: 12px;"></div>
<div id="roghtDiv" style="float: right; line-height: 25px; padding: 5px;">
<div id="AdministrativeDepartment" style="height: 25px;"></div>
<div id="AIDepartment" style="height: 25px;"></div>
<div id="AIUsePeople" style="height: 25px;"></div>
<div id="AIIStorageAndRoom" style="height: 25px;"></div>
</div>
@@ -63,6 +63,14 @@
async: true,
success: function (res) {
var data = res.data.Ass_AssetsInfoItem;
//部门
var AIDepartment = "";
top.learun.clientdata.getAsync('department', {
key: data.AIDepartment,
callback: function (_data) {
AIDepartment = _data.name;
}
});
//使用人
var AIUsePeople = "";
top.learun.clientdata.getAsync('custmerData',
@@ -96,14 +104,13 @@
AIIStoragePosition = _data['rcode'];
}
});
$('#AdministrativeDepartment').html(data.AdministrativeDepartment);
$('#AIDepartment').html(AIDepartment);
$('#AIUsePeople').html(AIUsePeople);
if (AIIStoragePosition) {
$('#AIIStorageAndRoom').html(AIIStorage + "-" + AIIStoragePosition);
} else {
$('#AIIStorageAndRoom').html(AIIStorage);
}
$('#AdministrativeDepartment').html(data.AdministrativeDepartment);
$('#AICodeNumJY').html(data.AICodeNumJY);
$('#AIASSName').html(data.AIASSName);



Laddar…
Avbryt
Spara