/// <summary> /// 平台待办分页接口 /// </summary> /// <param name="msgParams"></param> /// <param name="IsAutofresh"></param> /// <param name="HaveNewTask"></param> /// <param name="rowCount"></param> /// <param name="pageCount"></param> /// <returns></returns> public List<T_FLOW_ENGINEMSGLIST> PendingTasksParmsPageIndex(MsgParms msgParams, ref bool IsAutofresh, ref bool HaveNewTask, ref int rowCount, ref int pageCount) { EngineServicesDAL dal = new EngineServicesDAL(); try { HaveNewTask = TaskCache.CurrentUserTaskStatus(msgParams.UserID, true); //Tracer.Debug("获取缓存状态Page:" + HaveNewTask + "||索引页:" + msgParams.PageIndex + "||IsAutofresh:" + IsAutofresh); if (!IsAutofresh)//主动切换 { List<T_FLOW_ENGINEMSGLIST> List = dal.MsgListByPaging(msgParams.PageIndex, msgParams.PageSize, msgParams.UserID, msgParams.Status, msgParams.MessageBody, msgParams.BeginDate, msgParams.EndDate, ref rowCount, ref pageCount); //Tracer.Debug("手动获取缓存状态1:" + HaveNewTask + msgParams.UserID + " RowCount:" + List.Count); return List; } else//如果是自动刷新 { List<T_FLOW_ENGINEMSGLIST> List = new List<T_FLOW_ENGINEMSGLIST>(); if (HaveNewTask)//判断是否有待办任务变更 { List = dal.MsgListByPaging(msgParams.PageIndex, msgParams.PageSize, msgParams.UserID, msgParams.Status, msgParams.MessageBody, msgParams.BeginDate, msgParams.EndDate, ref rowCount, ref pageCount); //Tracer.Debug("自动获取缓存状态2:" + HaveNewTask + msgParams.UserID + " RowCount:" + List.Count); } return List; } } catch { return null; } }
/// <summary> //待办任务分页查询 /// </summary> /// <param name="msgParams"></param> /// <param name="rowCount"></param> /// <param name="pageCount"></param> /// <returns></returns> public List<T_FLOW_ENGINEMSGLIST> PendingTasksParmsPageIndex(MsgParms msgParams, ref int rowCount, ref int pageCount) { EngineServicesDAL dal = new EngineServicesDAL(); try { return dal.MsgListByPaging(msgParams.PageIndex, msgParams.PageSize, msgParams.UserID, msgParams.Status, msgParams.MessageBody, msgParams.BeginDate, msgParams.EndDate, ref rowCount, ref pageCount); } catch { return null; } }