/// <summary> /// 根据条件,获取T_FB_SUBJECTPOST信息 /// </summary> /// <param name="strVacName"></param> /// <param name="strVacYear"></param> /// <param name="strCountyType"></param> /// <param name="strSortKey"></param> /// <returns></returns> public static IQueryable <T_FB_SUBJECTPOST> GetAllSubjectPostRdListByMultSearch(string strFilter, List <object> objArgs, string strSortKey) { SubjectPostDAL dalSubjectPost = new SubjectPostDAL(); string strOrderBy = string.Empty; if (!string.IsNullOrEmpty(strSortKey)) { strOrderBy = strSortKey; } else { strOrderBy = " SUBJECTPOSTID "; } var q = dalSubjectPost.GetSubjectPostRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray()); return(q); }
/// <summary> /// 获取T_FB_SUBJECTPOST信息 /// </summary> /// <param name="strSubjectPostId">主键索引</param> /// <returns></returns> public T_FB_SUBJECTPOST GetSubjectPostByID(string strSubjectPostId) { if (string.IsNullOrEmpty(strSubjectPostId)) { return(null); } SubjectPostDAL dalSubjectPost = new SubjectPostDAL(); StringBuilder strFilter = new StringBuilder(); List <string> objArgs = new List <string>(); if (!string.IsNullOrEmpty(strSubjectPostId)) { strFilter.Append(" SUBJECTPOSTID == @0"); objArgs.Add(strSubjectPostId); } T_FB_SUBJECTPOST entRd = dalSubjectPost.GetSubjectPostRdByMultSearch(strFilter.ToString(), objArgs.ToArray()); return(entRd); }
/// <summary> /// 获取T_FB_SUBJECTPOST信息 /// </summary> /// <param name="strSubjectPostId">主键索引</param> /// <returns></returns> public IQueryable <T_FB_SUBJECTPOST> GetSubjectPostByPostId(string strPostId) { if (string.IsNullOrEmpty(strPostId)) { return(null); } SubjectPostDAL dalSubjectPost = new SubjectPostDAL(); string strFilter = string.Empty; List <object> objArgs = new List <object>(); if (!string.IsNullOrEmpty(strPostId)) { strFilter = " OWNERPOSTID == @0"; objArgs.Add(strPostId); } string strOrderBy = " SUBJECTPOSTID "; var q = dalSubjectPost.GetSubjectPostRdListByMultSearch(strOrderBy, strFilter, objArgs.ToArray()); return(q); }