|
|
@@ -139,6 +139,25 @@ namespace Learun.Application.WorkFlow |
|
|
|
string keyword = queryParam["keyword"].ToString(); |
|
|
|
expression = expression.And(t => t.F_Title.Contains(keyword) || t.F_SchemeName.Contains(keyword) || t.F_CreateUserName.Contains(keyword)); |
|
|
|
} |
|
|
|
// 状态 |
|
|
|
if (!queryParam["F_EnabledMark"].IsEmpty()) // 1:未完成 2:已完成 |
|
|
|
{ |
|
|
|
if (queryParam["F_EnabledMark"].ToString() == "1") |
|
|
|
{ |
|
|
|
//运行中 |
|
|
|
expression = expression.And(t => t.F_EnabledMark == 1); |
|
|
|
} |
|
|
|
else if (queryParam["F_EnabledMark"].ToString() == "2") |
|
|
|
{ |
|
|
|
//作废 |
|
|
|
expression = expression.And(t => t.F_EnabledMark != 1); |
|
|
|
} |
|
|
|
else if (queryParam["F_EnabledMark"].ToString() == "3") |
|
|
|
{ |
|
|
|
//结束 已完成 |
|
|
|
expression = expression.And(t => t.F_IsFinished == 1); |
|
|
|
} |
|
|
|
} |
|
|
|
expression = expression.And(t => t.F_EnabledMark != 2); |
|
|
|
expression = expression.And(t => t.F_IsChild == 0); |
|
|
|
|
|
|
@@ -325,7 +344,7 @@ namespace Learun.Application.WorkFlow |
|
|
|
DateTime endTime = queryParam["EndTime"].ToDate(); |
|
|
|
strSql.Append(" and CONVERT(varchar, zb.lc_accept) >= CONVERT(varchar, '" + startTime + "') and CONVERT(varchar, zb.LC_accept) <= CONVERT(varchar, '" + endTime + "')"); |
|
|
|
} |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<LC_docx2Entity>(strSql.ToString(), dp,pagination); |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<LC_docx2Entity>(strSql.ToString(), dp, pagination); |
|
|
|
|
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|