日期:2014-05-18 浏览次数:20932 次
lg.Pwd = us.DESEncrypt(txt_PassWord.Text.Trim());
using LTLSysWebVoid.DataDB; using System; using System.Data; namespace LTLSysWebVoid { public class User : BaseSqlHelper { public User(); public bool AddUser(string username, string password, string FRealyName, string FDeptID, string FPopedomID, string FUserID, string FPhoneNumber); public bool DeleteUser(string userid); public string DESDecrypt(string decryptstring); public string DESEncrypt(string encryptstring); public DataTable GetAgencyUser(string FAgencyID); public string GetMaxUserID(); public DataTable GetUserData(string userid); public bool IsExists(string strUserName); public bool IsTrue(int userid, string pwd); public bool LockUser(string userid); public bool LockUserByUserName(string FUserName); public bool UpdateUserORPwd(int userid, string password); public bool UpdateUserORPwd(string userid, string username, string FRealyName, string FDeptID, string FPopedomID, string FPhoneNumber); public bool UpdateUserORPwd(string userid, string username, string password, string FRealyName, string FDeptID, string FPopedomID, string FPhoneNumber); } }