Kaynağa Gözat

扫码查看接口

长阳分支中职
ndbs 1 hafta önce
ebeveyn
işleme
5f6cb53e03
1 değiştirilmiş dosya ile 8 ekleme ve 4 silme
  1. +8
    -4
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs

+ 8
- 4
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs Dosyayı Görüntüle

@@ -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");
}
}
}

Yükleniyor…
İptal
Kaydet