|
|
@@ -2,6 +2,8 @@ |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.IO; |
|
|
|
using System.Linq; |
|
|
|
using System.Net.Http; |
|
|
|
using System.Text; |
|
|
|
using System.Web; |
|
|
|
using Learun.Application.Base.SystemModule; |
|
|
|
using Learun.Application.Organization; |
|
|
@@ -520,7 +522,7 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
return Success(result); |
|
|
|
} |
|
|
|
|
|
|
|
public string GetQRCode(dynamic _) |
|
|
|
public Response GetQRCode(dynamic _) |
|
|
|
{ |
|
|
|
string keyValue = Request.Query["keyValue"]; |
|
|
|
int Types = Request.Query["Types"]; |
|
|
@@ -530,16 +532,18 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
var Data = officeEquipmentIBLL.GetOfficeEquipmentEntity(keyValue); |
|
|
|
var emp = empinfoIBLL.GetEmpInfoEntityByEmpNo(Data.Name); |
|
|
|
var Unit = dataItemIBLL.GetDetailList("sldw").Where(x => x.F_ItemValue == Data.Unit).FirstOrDefault(); |
|
|
|
result = "资产名称:" + Data.DeviceName + ",资产编号:" + Data.Code + ",品牌:" + Data.Brand + ",型号:" + Data.Model + ",参数:" + Data.Argument + ",单位:(" + Unit.F_ItemName + "),参数:" + Data.Nuantity + ",使用管理人:" + emp.EmpName + ",备注:" + Data.Remark; |
|
|
|
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; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
var Data = fixedAssetsIBLL.GetFixedAssetsEntity(keyValue); |
|
|
|
var emp = empinfoIBLL.GetEmpInfoEntityByEmpNo(Data.UsePeople); |
|
|
|
var Unit = dataItemIBLL.GetDetailList("sldw").Where(x => x.F_ItemValue == Data.Unit).FirstOrDefault(); |
|
|
|
result = "资产名称:" + Data.AssetsName + ",资产编号:" + Data.Code + ",品牌:" + Data.Brand + ",型号:" + Data.Model + ",参数:" + Data.Argument + ",单位:(" + Unit.F_ItemName + "),参数:" + Data.Nuantity + ",使用管理人:" + emp.EmpName + ",备注:" + Data.Remark; |
|
|
|
result = "资产名称:" + Data.AssetsName + ";<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; |
|
|
|
} |
|
|
|
return result; |
|
|
|
return Response.AsText(result).WithContentType("text/html;charset=utf-8"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |