public ResponseStatus GetOtherDetails(HttpRequestBase req, Container_TimeTables_UserBases container_TimeTables_UserBases)
 {
     int id;
     if (!string.IsNullOrEmpty(req.QueryString["xuehao"]))
     {
         id = Convert.ToInt32(req.QueryString["xuehao"]);
     }
     else if (!string.IsNullOrEmpty(req.QueryString["xinming"]))
     {
         id = Convert.ToInt32(req.QueryString["xinming"]);
     }
     else
     {
         id = 0;
     }
     if (id != 0)
     {
         userDal = new UserDAL();
         UserBase ub = userDal.GetUser(id);
         userDal.ReturnUnitToPool();
         container_TimeTables_UserBases.ub = ub;
         return GetDetails(id, container_TimeTables_UserBases);
     }
     else
     {
         return ResponseStatus.INVALID_BEHAVIOUS;
     }
 }
 public ResponseStatus GetSelfDetails(HttpRequestBase req, Container_TimeTables_UserBases container_list_t)
 {
     int id = Convert.ToInt32(req.Cookies[GLB.id].Value);
     return GetDetails(id, container_list_t);
 }
        private ResponseStatus GetDetails(int id, Container_TimeTables_UserBases container_list_t)
        {
            tmTabDal = new TimeTableDAL();

            tmTabDal.GetDetails(id);
            tmTabDal.ReturnUnitToPool();
            container_list_t.list_t = tmTabDal.list_t;

            if (container_list_t.list_t.Count > 0)
            {
                return ResponseStatus.SUCCESS;
            }
            else
            {
                tmTabDal.list_t = null;
                return ResponseStatus.HAVE_NO_TIMETABLE;
            }
        }
 public void UpdateBefore(HttpRequestBase req,Container_TimeTables_UserBases container_listT_listU)
 {
     userDal = new UserDAL();
     container_listT_listU.list_u = userDal.GetUsers(req.Cookies[GLB.userId].Value);
     userDal.ReturnUnitToPool();
 }