Beispiel #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;
     }
 }
Beispiel #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;
     }
 }
Beispiel #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;
     }
 }
Beispiel #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;
     }
 }
Beispiel #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("");
     }
 }
Beispiel #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);
     }
 }
Beispiel #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("");
     }
 }
Beispiel #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("");
     }
 }
Beispiel #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;
     }
 }
Beispiel #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;
     }
 }