Example #1
0
        //查找不能够被分配case的项目
        private HashSet <int?> FindCouldNotAllocateEmps()
        {
            HashSet <int?> empsIdsHashSet          = new HashSet <int?>();
            List <Record>  empCouldNotAllocateList = null;

            try
            {
                OleDbConnection con = recordDao.Begin();
                empCouldNotAllocateList = recordDao.FindCouldNotAllocateDAO(con);
                recordDao.Commit();
                foreach (Record record in empCouldNotAllocateList)
                {
                    empsIdsHashSet.Add(record.M_asign);
                }


                return(empsIdsHashSet);
            }
            catch (Exception)
            {
                empDao.RollBack();
                throw;
            }
            finally
            {
                empDao.Close();
            }
        }