예제 #1
0
        private List <ConfigRemindItem> GetRemindItem(BizDataContext context, IUserIdentity user, AppFunc appFunc)
        {
            List <ConfigRemindItem>       list         = new List <ConfigRemindItem>();
            IEnumerable <IConfigReminder> allInstances = IocHelper.GetAllInstances <IConfigReminder>();

            foreach (IConfigReminder reminder in allInstances)
            {
                list.AddRange(reminder.GetRemindItems(user, appFunc.AppId, appFunc.FuncId));
            }
            return(list);
        }
예제 #2
0
 private List <T_WorkItemBase> GetWorkTask(BizDataContext context, IUserIdentity user, AppFunc appFunc, List <T_WorkItemBase> workItemList)
 {
     return((from p in workItemList.Where <T_WorkItemBase>(delegate(T_WorkItemBase w) {
         int?classify = null;
         if (w.IsMust == true)
         {
             classify = w.Classify;
         }
         return (((classify.GetValueOrDefault() == 0x3e9) && classify.HasValue) && w.ObjectId.HasValue) && (w.ObjectId.Value == appFunc.FuncId);
     })
             orderby p.WorkSort
             select p).ToList <T_WorkItemBase>());
 }