冗余代码清理
This commit is contained in:
@@ -275,7 +275,7 @@
|
||||
/// <returns></returns>
|
||||
public static List<Model.Base_Project> GetProjectByUserIdDropDownList(string userId)
|
||||
{
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId)
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId )
|
||||
{
|
||||
return (from x in Funs.DB.Base_Project
|
||||
orderby x.ProjectCode descending
|
||||
@@ -308,7 +308,7 @@
|
||||
}
|
||||
public static List<Model.Base_Project> GetUnEndProjectByUserIdDropDownList(string userId, string needProjectId)
|
||||
{
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId)
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId )
|
||||
{
|
||||
return (from x in Funs.DB.Base_Project
|
||||
orderby x.ProjectCode descending
|
||||
@@ -349,7 +349,7 @@
|
||||
}
|
||||
public static List<Model.Base_Project> GetShiYeProjectByUserIdDropDownList(string userId, string needProjectId)
|
||||
{
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId)
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId )
|
||||
{
|
||||
return (from x in Funs.DB.Base_Project
|
||||
where x.ProjectAttribute == "SHIYE"
|
||||
@@ -385,7 +385,7 @@
|
||||
public static List<Model.Base_Project> GetUnEndProjectByUserIdDropDownList(string userId, string needProjectId, string ProjectAttribute, string projectState, string projectName = null)
|
||||
{
|
||||
IQueryable<Model.Base_Project> projects = null;
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId)
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId )
|
||||
{
|
||||
projects = from x in Funs.DB.Base_Project
|
||||
where x.ProjectAttribute.Contains(ProjectAttribute) && (x.IsDelete == null || x.IsDelete == false)
|
||||
|
||||
Reference in New Issue
Block a user