SGGL_SHJ/SGGL/BLL/ZHGL/RealName/RealName_ProjectService.cs

40 lines
1.0 KiB
C#
Raw Permalink Normal View History

2022-09-05 16:36:31 +08:00
using System.Collections.Generic;
using System.Linq;
namespace BLL
{
public static class RealName_ProjectService
{
2022-09-05 16:36:31 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public static List<Model.RealName_Project> GetRealName_ProjectList()
{
return (from x in Funs.DB.RealName_Project orderby x.ProCode select x).ToList();
}
/// <summary>
///
/// </summary>
/// <param name="proCode"></param>
/// <returns></returns>
public static string GeJTproCodeByproCode(string proCode)
{
string code = string.Empty;
var project = Funs.DB.RealName_Project.FirstOrDefault(e => e.ProCode == proCode);
if (project != null)
{
code = project.JTproCode;
if (string.IsNullOrEmpty(code))
{
code = project.ProCode;
}
}
return code;
}
}
}