Ejemplo n.º 1
0
 /// <summary>
 /// Thực hiện ghi nhận login vào trong biến tạm thời để xử lý về sau
 /// </summary>
 /// <param name="staff"></param>
 /// <param name="li"></param>
 /// <returns></returns>
 public int login(STAFF_INFO staff, List <STAFFPRIORITY> li)
 {
     Context.Session["STAFF_INFO"]       = staff;
     Context.Session["STAFF_PRIORITY"]   = li;
     Context.Session["g_UNIVERSITYCODE"] = staff.UNIVERSITYCODE;
     return(0);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Check the login status, 0 is logined
        /// </summary>
        /// <returns>-1: not yet, 0 is logged</returns>
        public int isLogin()
        {
            if (Context.Session["STAFF_INFO"] == null)
            {
                return(-1);
            }
            STAFF_INFO staff = (STAFF_INFO)Context.Session["STAFF_INFO"];

            if (staff.CODE == "")
            {
                return(-1);
            }
            return(0);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Check the login status, 0 is logined
        /// </summary>
        /// <returns>-1: not yet, 0 is logged</returns>
        public int isLogin()
        {
            if (System.Web.HttpContext.Current.Session["STAFF_INFO"] == null)
            {
                return(-1);
            }
            STAFF_INFO staff = (STAFF_INFO)System.Web.HttpContext.Current.Session["STAFF_INFO"];

            if (staff.CODE == "")
            {
                return(-1);
            }
            return(0);
        }
Ejemplo n.º 4
0
 public int login(STAFF_INFO staff)
 {
     Context.Session["STAFF_INFO"] = staff;
     //assign for later
     return(0);
 }
Ejemplo n.º 5
0
 public int login(STAFF_INFO staff)
 {
     System.Web.HttpContext.Current.Session["STAFF_INFO"] = staff;
     //assign for later
     return(0);
 }