UI/Login.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using BLL;
using Model;
public partial class Login : System.Web.UI.Page
{
UserInfoBLL ubll = new UserInfoBLL();
protected void Page_Load(object sender, EventArgs e)
{
//注册ajax
if(!Page.IsPostBack)
{
AjaxPro.Utility.RegisterTypeForAjax(typeof(Login),this.Page);
}
}
//判断用户名密码是否正确
[AjaxPro.AjaxMethod]
public int isRight(string userName, string userPwd)
{
int count = 0;
UserInfoBean u = new UserInfoBean();
u.userid = userName;
u.userPwd= userPwd;
try
{
count = ubll.userIsRight(u);
}
catch (Exception)
{
throw;
}
return count;
}
//判断用户类型
[AjaxPro.AjaxMethod]
public void UserType(string userID)
{
int roletype = ubll.getRoleTypeInfo(userID);
int id = ubll.getIdByUserid(userID);
Number.loginid = id.ToString();
if(roletype==1)
{ //服务员
Number.userid="100";
}
else if(roletype==2)
后面还有 32 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
