Ejemplo n.º 1
0
        public DataTable GetMenu(int ind)
        {
            PL_Login pl = new PL_Login();

            pl.Ind = ind;
            DataTable dt = new DataTable();

            dt = objdllogin.GetMenu(pl);
            return(dt);
        }
Ejemplo n.º 2
0
        public DataSet GetLockList(int Ind)
        {
            PL_Login pl = new PL_Login();

            pl.Ind = Ind;
            DataSet ds = new DataSet();

            ds = objdllogin.GetLockList(pl);
            return(ds);
        }
Ejemplo n.º 3
0
        public DataTable InsertUserLevel(int Ind, string ItemDesc)
        {
            PL_Login pl = new PL_Login();

            pl.Ind      = Ind;
            pl.ItemDesc = ItemDesc;
            DataTable dt = new DataTable();

            dt = objdllogin.InsertUserLevel(pl);
            return(dt);
        }
Ejemplo n.º 4
0
        public DataTable GetMenu(PL_Login objpllogin)
        {
            cmd             = new SqlCommand("SPGetAllMaster", con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@Ind", objpllogin.Ind);
            da = new SqlDataAdapter(cmd);
            DataTable dt = new DataTable();

            da.Fill(dt);
            return(dt);
        }
Ejemplo n.º 5
0
        public DataSet GetLockList(PL_Login pl)
        {
            DataSet ds = new DataSet();

            cmd             = new SqlCommand("SPLoginDetails", con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@Ind", 9);
            da = new SqlDataAdapter(cmd);
            da.Fill(ds);
            return(ds);
        }
Ejemplo n.º 6
0
        public DataTable DeleteProfileCreation(int ind, int UserTypeId)
        {
            PL_Login pl = new PL_Login();

            pl.Ind        = ind;
            pl.UserTypeId = UserTypeId;
            DataTable dt = new DataTable();

            dt = objdllogin.DeleteProfileCreation(pl);
            return(dt);
        }
Ejemplo n.º 7
0
        public DataTable UpdateUserLevel(int ind, string ItemDesc, int ItemID)
        {
            PL_Login pl = new PL_Login();

            pl.Ind      = ind;
            pl.ItemDesc = ItemDesc;
            pl.ItemID   = ItemID;
            DataTable dt = new DataTable();

            dt = objdllogin.UpdateUserLevel(pl);
            return(dt);
        }
Ejemplo n.º 8
0
        public DataTable InsertProfileCreation(int ind, int UserTypeId, int ItemID)
        {
            PL_Login pl = new PL_Login();

            pl.Ind        = ind;
            pl.UserTypeId = UserTypeId;
            pl.ItemID     = ItemID;
            DataTable dt = new DataTable();

            dt = objdllogin.InsertProfileCreation(pl);
            return(dt);
        }
Ejemplo n.º 9
0
        public DataTable GetusertypeID(int ind, int UserTypeId)
        {
            PL_Login pl = new PL_Login();

            pl.Ind        = ind;
            pl.UserTypeId = UserTypeId;

            DataTable dt = new DataTable();

            dt = objdllogin.GetusertypeID(pl);
            return(dt);
        }
Ejemplo n.º 10
0
        public DataTable GetLogoutPassword(PL_Login objpllogin)
        {
            cmd             = new SqlCommand("SPLoginDetails", con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@Ind", 17);
            cmd.Parameters.AddWithValue("@UserId", objpllogin.UserId);
            da = new SqlDataAdapter(cmd);
            DataTable dt = new DataTable();

            da.Fill(dt);
            return(dt);
        }
Ejemplo n.º 11
0
        public DataTable UpdateActiveStatus(PL_Login pl)
        {
            cmd             = new SqlCommand("SPLoginDetails", con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@Ind", pl.Ind);
            cmd.Parameters.AddWithValue("@UserId", pl.UserId);
            da = new SqlDataAdapter(cmd);
            DataTable dt = new DataTable();

            da.Fill(dt);
            return(dt);
        }
Ejemplo n.º 12
0
        public DataTable UpdateLockUnlock(int Ind, int UserInd, int UserId, string Remark)
        {
            PL_Login pl = new PL_Login();

            pl.Ind     = Ind;
            pl.UserInd = UserInd;
            pl.UserId  = UserId;
            pl.Remark  = Remark;
            DataTable dt = new DataTable();

            dt = objdllogin.UpdateLockUnlock(pl);
            return(dt);
        }
Ejemplo n.º 13
0
        public DataSet GetUserLoginID(PL_Login pl)
        {
            DataSet ds = new DataSet();

            cmd             = new SqlCommand("SPLoginDetails", con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@Ind", 12);
            cmd.Parameters.AddWithValue("@LoginId", pl.UserLoginId);
            cmd.Parameters.AddWithValue("@MacAddress", pl.MacAddress);
            da = new SqlDataAdapter(cmd);
            da.Fill(ds);
            return(ds);
        }
Ejemplo n.º 14
0
        public DataTable InsertUserLevel(PL_Login pl)
        {
            DataTable dt = new DataTable();

            cmd             = new SqlCommand("SPGetAllMaster", con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@Ind", pl.Ind);
            cmd.Parameters.AddWithValue("@ItemDesc", pl.ItemDesc);
            SqlDataAdapter da = new SqlDataAdapter(cmd);

            da.Fill(dt);
            return(dt);
        }
Ejemplo n.º 15
0
        public DataTable InsertProfileCreation(PL_Login objpllogin)
        {
            cmd             = new SqlCommand("SPGetAllMaster", con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@Ind", objpllogin.Ind);
            cmd.Parameters.AddWithValue("@ItemID", objpllogin.ItemID);
            cmd.Parameters.AddWithValue("@UserTypeId", objpllogin.UserTypeId);
            da = new SqlDataAdapter(cmd);
            DataTable dt = new DataTable();

            da.Fill(dt);
            return(dt);
        }
Ejemplo n.º 16
0
        public DataTable FinalLogin(int Ind, string UserLoginId, string LoginPwd, string MacAddress)
        {
            PL_Login pl = new PL_Login();

            pl.Ind         = Ind;
            pl.UserLoginId = UserLoginId;
            pl.LoginPwd    = LoginPwd;
            pl.MacAddress  = MacAddress;
            DataTable dt = new DataTable();

            dt = objdllogin.FinalLogin(pl);
            return(dt);
        }
Ejemplo n.º 17
0
        public DataTable FinalLogin(PL_Login pl)
        {
            cmd             = new SqlCommand("SPLoginDetails", con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@Ind", pl.Ind);
            cmd.Parameters.AddWithValue("@LoginId", pl.UserLoginId);
            cmd.Parameters.AddWithValue("@LoginPwd", pl.LoginPwd);
            cmd.Parameters.AddWithValue("@MacAddress", pl.MacAddress);
            DataTable      dt = new DataTable();
            SqlDataAdapter da = new SqlDataAdapter(cmd);

            da.Fill(dt);
            return(dt);
        }
Ejemplo n.º 18
0
        public DataTable UpdateLockUnlock(PL_Login pl)
        {
            DataTable dt = new DataTable();

            cmd             = new SqlCommand("SPLoginDetails", con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@Ind", pl.Ind);
            cmd.Parameters.AddWithValue("@UserInd", pl.UserInd);
            cmd.Parameters.AddWithValue("@UserId", pl.UserId);
            cmd.Parameters.AddWithValue("@Remark", pl.Remark);
            SqlDataAdapter da = new SqlDataAdapter(cmd);

            da.Fill(dt);
            return(dt);
        }
Ejemplo n.º 19
0
        public int CheckLockInd(PL_Login pl)
        {
            int i = 0;

            try
            {
                cmd             = new SqlCommand("SPLoginDetails", con);
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.AddWithValue("@Ind", pl.Ind);
                cmd.Parameters.AddWithValue("@LoginId", pl.UserLoginId);
                con.Open();
                i = Convert.ToInt32(cmd.ExecuteScalar());
                con.Close();
            }
            catch (Exception ex) { msg = ex.Message; } return(i);
        }
Ejemplo n.º 20
0
 public DataTable GetLoginDetails(PL_Login pl)
 {
     try
     {
         cmd             = new SqlCommand("SPLoginDetails", con);
         cmd.CommandType = CommandType.StoredProcedure;
         cmd.Parameters.AddWithValue("@Ind", pl.Ind);
         cmd.Parameters.AddWithValue("@LoginId", pl.UserLoginId);
         cmd.Parameters.AddWithValue("@LoginPwd", pl.LoginPwd);
         da = new SqlDataAdapter(cmd);
         dt = new DataTable();
         da.Fill(dt);
     }
     catch (Exception ex)
     {
         msg = ex.Message;
     }
     return(dt);
 }
Ejemplo n.º 21
0
        public DataTable GetAllRegister(PL_Login pl, int Ind)
        {
            try
            {
                cmd             = new SqlCommand("SPGetAllMaster", con);
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.AddWithValue("@Ind", Ind);
                if (Ind == 6)
                {
                    cmd.Parameters.AddWithValue("@ItmId", pl.ItemID);
                }

                da = new SqlDataAdapter(cmd);
                dt = new DataTable();
                da.Fill(dt);
            }
            catch (Exception ex)
            {
                msg = ex.Message;
            }
            return(dt);
        }