BBSService/Users/UserList.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Web;
using System.Web.Services;
using BBS.Model;
using WebApp;
using BBS.BLL;
using BaseConfig;
using System.Data;
using BaseConfig.BaseBLL;
using System.Xml;

[WebService(Namespace = "http://bbs.netluntan.com")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class UserListService : System.Web.Services.WebService
{
    public UserListService()
    {
        //如果使用设计的组件,请取消注释以下行 
        //InitializeComponent(); 
    }

    /// <summary>
    /// 查询条件
    /// </summary>
    /// <returns></returns>
    public string calcWhere()
    {
        string userTel = StringUtil.TBCode(StringUtil.GetNullToString(HttpContext.Current.Request["UserTel"]));//电话
        string compName = StringUtil.TBCode(StringUtil.GetNullToString(HttpContext.Current.Request["ddlAgent"]));  //公司名称
        string storeName = StringUtil.TBCode(StringUtil.GetNullToString(HttpContext.Current.Request["ddlStore"])); //部门名称
        string userName = StringUtil.TBCode(StringUtil.GetNullToString(HttpContext.Current.Request["userName"]));//姓名
        string injob = StringUtil.GetNullToString(HttpContext.Current.Request["inJob"]);
        string strWhere = " 1 = 1 ";

        if (injob == "1")
            strWhere += " AND InJob = 1 ";
        if (compName != "" && compName != "0")
            strWhere += " AND Agent = '" + compName + "'";
        if (storeName != "" && storeName != "0")
            strWhere += " AND Depart = '" + storeName + "'";
        if (userTel != "")
            strWhere += " AND (Phone like '%" + userTel + "%' OR Mobile like '%" + userTel + "%')";
        if (userName != "")
            strWhere += " AND UserName like '%" + userName + "%'";
        return strWhere;
    }

    /// <summary>
    /// 验证登陆
    /// </summary>
    /// <returns></returns>
    [WebMethod(EnableSession = true)]
    public string CheckLogin(string UserName, string UserPass)
    {
        string ip = HttpContext.Current.Request.UserHostAddress;
        UserName = Server.UrlDecode(UserName);
        X_UserInfo user = X_UserInfoManager.GetUserByName(UserName);
        if (user == null)
        {
            return "UserNull";
后面还有 162 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。