@@ -6,7 +6,7 @@ | |||||
<div class="col-xs-6 lr-form-item" data-table="OfficeEquipment"> | <div class="col-xs-6 lr-form-item" data-table="OfficeEquipment"> | ||||
<div class="lr-form-item-title">使用管理人<font face="宋体">*</font></div> | <div class="lr-form-item-title">使用管理人<font face="宋体">*</font></div> | ||||
<div id="Name" isvalid="yes" checkexpession="NotNull"></div> | <div id="Name" isvalid="yes" checkexpession="NotNull"></div> | ||||
<input id="JZGNo" hidden="hidden"/> | |||||
<input id="UserId" hidden="hidden"/> | |||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="OfficeEquipment"> | <div class="col-xs-6 lr-form-item" data-table="OfficeEquipment"> | ||||
<div class="lr-form-item-title">部门<font face="宋体">*</font></div> | <div class="lr-form-item-title">部门<font face="宋体">*</font></div> | ||||
@@ -28,7 +28,7 @@ var bootstrap = function ($, learun) { | |||||
text: 'f_realname', | text: 'f_realname', | ||||
headData: | headData: | ||||
[ | [ | ||||
{ label: "编号", name: "f_encode", width: 100, align: "left" }, | |||||
{ label: "编号", name: "f_userid", width: 100, align: "left", ishide: true}, | |||||
{ label: "姓名", name: "f_realname", width: 100, align: "left" }, | { label: "姓名", name: "f_realname", width: 100, align: "left" }, | ||||
{ | { | ||||
label: "部门", name: "f_departmentid", width: 100, align: "left", | label: "部门", name: "f_departmentid", width: 100, align: "left", | ||||
@@ -47,7 +47,7 @@ var bootstrap = function ($, learun) { | |||||
select: function (item) { | select: function (item) { | ||||
////赋值 | ////赋值 | ||||
$("#Name").val(item.f_realname); | $("#Name").val(item.f_realname); | ||||
$("#JZGNo").val(item.f_encode); | |||||
$("#UserId").val(item.f_userid); | |||||
$("#Department").lrselectSet(item.f_departmentid); | $("#Department").lrselectSet(item.f_departmentid); | ||||
} | } | ||||
}); | }); | ||||
@@ -60,11 +60,6 @@ var bootstrap = function ($, learun) { | |||||
$('#' + id ).jfGridSet('refreshdata', data[id]); | $('#' + id ).jfGridSet('refreshdata', data[id]); | ||||
} | } | ||||
else { | else { | ||||
//console.log(data[id]) | |||||
//if (id == 'OfficeEquipment' && data[id]) { | |||||
// data[id].Name = "任山"; | |||||
//} | |||||
//$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | $('[data-table="' + id + '"]').lrSetFormData(data[id]); | ||||
} | } | ||||
} | } | ||||
@@ -100,12 +100,12 @@ var bootstrap = function ($, learun) { | |||||
url: top.$.rootUrl + '/EducationalAdministration/OfficeEquipment/GetPageList', | url: top.$.rootUrl + '/EducationalAdministration/OfficeEquipment/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ | { | ||||
label: "使用管理人", name: "JZGNo", width: 100, align: "left", | |||||
label: "使用管理人", name: "UserId", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo', | ||||
key: value, | key: value, | ||||
keyId: 'f_encode', | |||||
keyId: 'f_userid', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_realname']); | callback(_data['f_realname']); | ||||
} | } | ||||
@@ -100,12 +100,12 @@ var bootstrap = function ($, learun) { | |||||
url: top.$.rootUrl + '/EducationalAdministration/OfficeEquipment/GetPageList', | url: top.$.rootUrl + '/EducationalAdministration/OfficeEquipment/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ | { | ||||
label: "使用管理人", name: "JZGNo", width: 100, align: "left", | |||||
label: "使用管理人", name: "UserId", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo', | ||||
key: value, | key: value, | ||||
keyId: 'f_encode', | |||||
keyId: 'f_userid', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_realname']); | callback(_data['f_realname']); | ||||
} | } | ||||
@@ -530,10 +530,9 @@ namespace Learun.Application.WebApi.Modules | |||||
if (Types == 0) | if (Types == 0) | ||||
{ | { | ||||
var Data = officeEquipmentIBLL.GetOfficeEquipmentEntity(keyValue); | var Data = officeEquipmentIBLL.GetOfficeEquipmentEntity(keyValue); | ||||
var emp = empinfoIBLL.GetEmpInfoEntityByEmpNo(Data.Name); | |||||
var Unit = dataItemIBLL.GetDetailList("sldw").Where(x => x.F_ItemValue == Data.Unit).FirstOrDefault(); | var Unit = dataItemIBLL.GetDetailList("sldw").Where(x => x.F_ItemValue == Data.Unit).FirstOrDefault(); | ||||
result = "资产名称:" + Data.DeviceName + ";<br>资产编号:" + Data.Code + ";<br>品牌:" + | result = "资产名称:" + Data.DeviceName + ";<br>资产编号:" + Data.Code + ";<br>品牌:" + | ||||
Data.Brand + ";<br>型号:" + Data.Model + ";<br>参数:" + Data.Argument + ";<br>单位:(" + Unit.F_ItemName + ");<br>数量:" + Data.Nuantity + ";<br>使用管理人:" + emp.EmpName + ";<br>备注:" + Data.Remark; | |||||
Data.Brand + ";<br>型号:" + Data.Model + ";<br>参数:" + Data.Argument + ";<br>单位:(" + Unit.F_ItemName + ");<br>数量:" + Data.Nuantity + ";<br>使用管理人:" + Data.Name + ";<br>备注:" + Data.Remark; | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -37,8 +37,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// <summary> | /// <summary> | ||||
/// 姓名 | /// 姓名 | ||||
/// </summary> | /// </summary> | ||||
[Column("JZGNO")] | |||||
public string JZGNo { get; set; } | |||||
[Column("USERID")] | |||||
public string UserId { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// 所属部门 | /// 所属部门 | ||||
/// </summary> | /// </summary> | ||||
@@ -85,7 +85,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
if (!LoginUserInfo.Get().roleIds.Contains("5a6e22b1-2a08-4258-9964-3cb7fbb9ebee")) | if (!LoginUserInfo.Get().roleIds.Contains("5a6e22b1-2a08-4258-9964-3cb7fbb9ebee")) | ||||
{ | { | ||||
strSql.Append(" AND t.Name = '" + LoginUserInfo.Get().account + "' "); | |||||
strSql.Append(" AND t.Name = '" + LoginUserInfo.Get().realName + "' "); | |||||
} | } | ||||
} | } | ||||
return this.BaseRepository("CollegeMIS").FindList<OfficeEquipmentEntity>(strSql.ToString(), dp, pagination); | return this.BaseRepository("CollegeMIS").FindList<OfficeEquipmentEntity>(strSql.ToString(), dp, pagination); | ||||