示例#1
0
        /// <summary>
        /// 查询待办事宜列表
        /// 添加人:周 鹏
        /// 添加时间:2017-03-20
        /// </summary>
        /// <param name="userId">用户编号</param>
        /// <param name="worktype">查询类型</param>
        /// <param name="pageIndex">当前索引页</param>
        /// <param name="pageSize">每页显示条数</param>
        /// <param name="approveType">事项类型</param>
        /// <returns></returns>
        public int GetMobileSerchWorkCount(string userId, string worktype, int pageIndex, int pageSize, string approveType)
        {
            var qtype = (WorkListType)Enum.Parse(typeof(WorkListType), worktype);
            int totalRecords;
            var data = new CrmMessageWorkDal().GetMobileSearchWork(userId, qtype, pageIndex, pageSize, out totalRecords, approveType);

            return(totalRecords);
        }
示例#2
0
 /// <summary>
 /// 查询消息列表
 /// 添加人:周 鹏
 /// 添加时间:2014-12-23
 /// </summary>
 /// <history>
 /// 修改描述:时间+作者+描述
 /// </history>
 /// <param name="userId">用户编号</param>
 /// <param name="worktype">查询类型</param>
 /// <param name="pageIndex">当前索引页</param>
 /// <param name="pageSize">每页显示条数</param>
 /// <param name="totalRecords">总条数</param>
 /// <returns></returns>
 public DataTable GetSearchWork(string userId, string worktype, int pageIndex, int pageSize, out int totalRecords)
 {
     try
     {
         var qtype = (WorkListType)Enum.Parse(typeof(WorkListType), worktype);
         var data  = new CrmMessageWorkDal().GetSearchWork(userId, qtype, pageIndex, pageSize, out totalRecords);
         data.TableName = "WorklistDT";
         return(data);
     }
     catch (Exception ex)
     {
         totalRecords = 0;
         return(null);
     }
 }
示例#3
0
 public CrmMessageWorkBll()
 {
     BaseDal = new CrmMessageWorkDal();
 }