Exemplo n.º 1
0
 public string UserBlock(users_Prop userprop)
 {
     try
     {
         return(SqlHelper.ExecuteDataset(com.con, "usp_Users_Block", new object[] { userprop.UserName }).Tables[0].Rows[0][0].ToString());
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemplo n.º 2
0
 public string UserUpdatePassword(users_Prop userprop)
 {
     try
     {
         return(SqlHelper.ExecuteDataset(com.con, "usp_Users_UpdatePassword", new object[] { userprop.UserName, userprop.Password }).Tables[0].Rows[0][0].ToString());
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemplo n.º 3
0
 public DataTable UserSelect(users_Prop userprop)
 {
     try
     {
         return(SqlHelper.ExecuteDataset(com.con, "usp_Users_Select", new object[] { userprop.UserName }).Tables[0]);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemplo n.º 4
0
 public string Logout(users_Prop userprop)
 {
     try
     {
         return(SqlHelper.ExecuteDataset(com.con, "usp_GetLoginLogout", new object[] { userprop.UserName, "OUT" }).Tables[0].Rows[0][0].ToString());
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemplo n.º 5
0
 public string UserUpdatePassword(users_Prop userprop)
 {
     try
     {
         userdal = new users_dal();
         string strMsg = userdal.UserUpdatePassword(userprop);
         return(strMsg);
     }
     catch (Exception e)
     {
         ErrMessage = e.Message;
         return("");
     }
 }
Exemplo n.º 6
0
 public DataTable UserSelect(users_Prop userprop)
 {
     try
     {
         userdal = new users_dal();
         DataTable dt = userdal.UserSelect(userprop);
         return(dt);
     }
     catch (Exception e)
     {
         ErrMessage = e.Message;
         return(null);
     }
 }
Exemplo n.º 7
0
 public string UserCheckLogin(users_Prop userprop)
 {
     try
     {
         userdal = new users_dal();
         string strMsg = userdal.UsersCheckLogin(userprop);
         return(strMsg);
     }
     catch (Exception e)
     {
         ErrMessage = e.Message;
         return("");
     }
 }
Exemplo n.º 8
0
 public string LogOut(users_Prop userprop)
 {
     try
     {
         userdal = new users_dal();
         string strMsg = userdal.Logout(userprop);
         return(strMsg);
     }
     catch (Exception e)
     {
         ErrMessage = e.Message;
         return("");
     }
 }
Exemplo n.º 9
0
 public string UsersCheckLogin(users_Prop userprop)
 {
     try
     {
         DataSet ds = SqlHelper.ExecuteDataset(com.con, "usp_Users_checklogin", new object[] { userprop.UserName, userprop.Password });
         if (ds.Tables.Count > 1)
         {
             return(ds.Tables[1].Rows[0][0].ToString());
         }
         else
         {
             return(ds.Tables[0].Rows[0][0].ToString());
         }
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemplo n.º 10
0
 public string UsersUpdate(users_Prop userprop)
 {
     try
     {
         return(SqlHelper.ExecuteDataset(com.con, "usp_Users_update", new object[] {
             userprop.UserName
             , userprop.FirstName
             , userprop.LastName
             , userprop.StateID
             , userprop.GroupID
             , userprop.PhoneNo
             , userprop.EmailID
         }).Tables[0].Rows[0][0].ToString());
     }
     catch (Exception e)
     {
         throw e;
     }
 }