using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BLL { public static class RealName_ProjectService { public static Model.SGGLDB db = Funs.DB; /// /// /// /// public static List GetRealName_ProjectList() { return (from x in Funs.DB.RealName_Project orderby x.ProCode select x).ToList(); } /// /// /// /// /// 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; } } }