public static void ForgotPassword(string userid, string emailAddress, string password) { string NewPassword = password; DBManagerPSICMisc dbMan = new DBManagerPSICMisc(); Fn.Exec("UPDATE Login SET Password = '******' where UserName = '******' AND Emp_Id = '" + userid + "'"); //Fn.SendEmail(emailAddress, "New Password", dbMan.ForgotPasswordEmailBody(emailAddress, NewPassword), dbMan.UserEmail(UserID)); }
public static string CreateNewLogin(string password, string userid, string emailAddress) { string strPass = Encryptor.Encrypt(password); string sss = Fn.ExenID("usp_CreateNewLogin @Password = '******' ,@userid = '" + userid + "', @EmpID = '" + CreateLogin.UserID + "', @username = '******'"); DBManagerPSICMisc dbMan = new DBManagerPSICMisc(); string emailBody = dbMan.NewAccountEmailBody(emailAddress, password); Fn.SendEmail(emailAddress, "New Login Created", emailBody, dbMan.UserEmail(CreateLogin.UserID)); return(string.Empty); }
public static string CreateInstallments(string fromDate, string toDate, string Amount, string NoOfInstallments) { DBManagerPSICMisc dbMan = new DBManagerPSICMisc(); return(dbMan.EstatePlotInstallmentsCreate(fromDate, toDate, Amount, NoOfInstallments)); }
public static string DisplayChartOfAccount() { DBManagerPSICMisc dbMan = new DBManagerPSICMisc(); return(dbMan.GetChartOfAccount()); }