首页修改
This commit is contained in:
@@ -57,14 +57,29 @@ namespace BLL
|
||||
return getDataLists;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取项目列表
|
||||
/// <summary>
|
||||
/// 获取项目列表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.BaseInfoItem> getProjectList()
|
||||
#endregion
|
||||
#region 获取常量
|
||||
/// <summary>
|
||||
/// 获取培训级别
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static Model.Project_ProjectUnit ProjectUnit(string projectUnitId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var getDataLists = from x in db.Project_ProjectUnit
|
||||
where x.ProjectUnitId == projectUnitId
|
||||
select x;
|
||||
return getDataLists.FirstOrDefault();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region 获取项目列表
|
||||
/// <summary>
|
||||
/// 获取项目列表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.BaseInfoItem> getProjectList()
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using EmitMapper;
|
||||
using Model;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@@ -43,7 +44,7 @@ namespace BLL
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var projects = (from x in db.Project_ProjectUser
|
||||
var projects = (from x in db.Project_ProjectUser
|
||||
join y in db.Base_Project on x.ProjectId equals y.ProjectId
|
||||
where x.UserId == userId
|
||||
orderby y.ProjectCode
|
||||
|
||||
Reference in New Issue
Block a user