public List <userinfo> GetUserList(string strUserName, string strPwd, ref string strErrMsg) { userinfo_Bll Bms = new userinfo_Bll(); List <userinfo> listw = Bms.GetByFilter(new List <Filter> { new Filter { Name = "User_No", Op = FilterOp.Equals, Value = strUserName }, new Filter { Name = "User_RoleID", Op = FilterOp.Equals, Value = 0 } }).ToList(); if (listw == null || (listw != null && listw.Count == 0)) { strErrMsg = "1"; return(null); } List <userinfo> listw1 = listw.Where(w => w.User_No == strUserName && w.User_Pwd == Encrypt_MD5.Encrypt(strPwd)).ToList(); if (listw1 == null || (listw1 != null && listw1.Count == 0)) { strErrMsg = "2"; return(null); } strErrMsg = ""; return(listw1); }
protected void Page_Load(object sender, EventArgs e) { UserBll = new userinfo_Bll(); if (Request["method"] != null) { string method = Request["method"]; switch (method) { case "SaveItem": SaveUserItem(); break; case "DelItem": DeleteUserItem(); break; case "QryList": GetUserListInfo(); break; case "ResetPwd": ResetPwd(); break; } } }