看板质量验收数据汇总
This commit is contained in:
@@ -8,12 +8,14 @@ using System.Linq;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Model.Customization;
|
||||
using System.Net.PeerToPeer;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public static class HJGLData_HJGLService
|
||||
{
|
||||
public static SUBQHSEDB db = Funs.DB;
|
||||
public static List<string> BeUnderConstructionList = ProjectService.GetProjectWorkList().Where(x => (x.ProjectAttribute == "GONGCHENG" || x.ProjectAttribute == null)).Select(x => x.ProjectId).ToList();
|
||||
|
||||
#region 获取列表
|
||||
|
||||
@@ -389,5 +391,89 @@ namespace BLL
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取焊工总数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<WelderOutput> GetWelderNum()
|
||||
{
|
||||
var result = (from x in Funs.DB.BS_Welder
|
||||
where BeUnderConstructionList.Contains(x.ProjectId) && x.WED_IfOnGuard == true
|
||||
select new Model.WelderOutput()
|
||||
{
|
||||
ProjectId = x.ProjectId,
|
||||
UnitId = x.WED_Unit,
|
||||
WEDCode = x.WED_Code,
|
||||
WEDName = x.WED_Name
|
||||
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
|
||||
}).ToList();
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取焊工总数(异步)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static async Task<List<WelderOutput>> GetWelderNumAsync()
|
||||
{
|
||||
return await Task.Run(GetWelderNum);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取总达因数和完成达因数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<WeldDineOutput> GetDineInfo()
|
||||
{
|
||||
var result = (from x in Funs.DB.PW_JointInfo
|
||||
where BeUnderConstructionList.Contains(x.ProjectId)
|
||||
select new Model.WeldDineOutput()
|
||||
{
|
||||
Id = x.JOT_ID,
|
||||
ProjectId = x.ProjectId,
|
||||
Size = x.JOT_Size,
|
||||
DoneDin = x.JOT_DoneDin
|
||||
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
|
||||
}).ToList();
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取总达因数(异步)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static async Task<List<WeldDineOutput>> GetDineInfoAsync()
|
||||
{
|
||||
return await Task.Run(GetDineInfo);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取焊接检查信息
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<CHCheckItemOutput> GetCHCheckItem()
|
||||
{
|
||||
var result = (from x in Funs.DB.CH_CheckItem
|
||||
join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
||||
where BeUnderConstructionList.Contains(y.ProjectId)
|
||||
select new Model.CHCheckItemOutput()
|
||||
{
|
||||
Id = x.CHT_CheckItemID,
|
||||
ProjectId = y.ProjectId,
|
||||
UnitId = y.UnitId,
|
||||
CHT_TotalFilm = x.CHT_TotalFilm,
|
||||
CHT_PassFilm = x.CHT_PassFilm
|
||||
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
|
||||
}).ToList();
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取焊接检查信息(异步)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static async Task<List<CHCheckItemOutput>> GetCHCheckItemAsync()
|
||||
{
|
||||
return await Task.Run(GetCHCheckItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user