当前位置: 首页>>代码示例>>C#>>正文


C# Users.GetUserInformationByID方法代码示例

本文整理汇总了C#中Users.GetUserInformationByID方法的典型用法代码示例。如果您正苦于以下问题:C# Users.GetUserInformationByID方法的具体用法?C# Users.GetUserInformationByID怎么用?C# Users.GetUserInformationByID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Users的用法示例。


在下文中一共展示了Users.GetUserInformationByID方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: UpdatePwd

    private void UpdatePwd(ref string errMsg)
    {
        string lotteryUserId = Request.Form["lotUserId"];
        string pwd = Request.Form["pwd"];
        
        var userId = 0L;
        long.TryParse(lotteryUserId,out userId);

        if (userId <= 0)
        {
            errMsg = string.Format("请求参数不正确lotUserId={0}",userId);
            return ;
        }

        var _User = new Users(1);
        _User.ID = userId;
        var rs = string.Empty;
        _User.GetUserInformationByID(ref rs);

        
        _User.Password = pwd;

        string ReturnDescription = "";

        if (_User.EditByID(ref ReturnDescription) < 0)
        {
            new Log("Users").Write("同步修改密码失败:" + ReturnDescription);
            errMsg = "同步修改密码失败:" + ReturnDescription;

        }

    }
开发者ID:ichari,项目名称:ichari,代码行数:32,代码来源:updatepwd.aspx.cs

示例2: g_ItemCommand

    protected void g_ItemCommand(object source, DataGridCommandEventArgs e)
    {
        switch (e.CommandName)
        {
            case "MemberDetail":
                {
                    Response.Redirect("CpsUsersList.aspx?ID=" + e.Item.Cells[13].Text + "&UserID=" + e.Item.Cells[14].Text);      //Cps ID
                } break;
            case "IncomeDetail":
                {
                    Response.Redirect("CpsSiteBuyDetail.aspx?ID=" + e.Item.Cells[13].Text);  //Cps ID
                } break;
            case "Stop":
                {
                    string ReturnDescription = "";
                    Users user = new Users(_Site.ID);
                    user.cps.ID = Shove._Convert.StrToLong(e.Item.Cells[13].Text, -1);  //Cps ID
                    user.ID = Shove._Convert.StrToLong(e.Item.Cells[14].Text, -1);      //OwnerUserID
                    user.GetUserInformationByID(ref ReturnDescription);
                    user.isCanLogin = false;

                    if (user.EditByID(ref ReturnDescription) < 0)
                    {
                        Shove._Web.JavaScript.Alert(this.Page, ReturnDescription);

                        return;
                    }

                    Shove._Web.Cache.ClearCache("Cps_Administrator_CpsWebSiteList");
                    BindData();
                } break;
            case "SetInfo":
                {
                    Response.Redirect("BaseInfo.aspx?ID=" + e.Item.Cells[13].Text); //Cps ID
                } break;
            case "SiteLogin":
                {
                    Users users = new Users(_Site.ID);

                    users.ID = Shove._Convert.StrToLong(e.Item.Cells[14].Text,0);

                    Session["CpsAdminPageBase_Users"] = users;
                    string url;
                    url = "Admin/Default.aspx";
                    string script = "<script>window.open('" + url + "')</script>";
                    Response.Write(script);
                } break;
        }
    }
开发者ID:ichari,项目名称:ichari,代码行数:49,代码来源:CpsPromoterList.aspx.cs

示例3: ResponseTailor

    private void ResponseTailor(bool b)
    {
        if (_User.ID < 1)
        {
            PF.GoError(ErrorNumber.Unknow, "请重新登陆", this.GetType().FullName);

            return;
        }

        long userid = Shove._Convert.StrToLong(hfUserID.Value, -1);

        int lotteryid = Shove._Convert.StrToInt(hffLotteryID.Value, -1);

        if (lotteryid < 1)
        {
            PF.GoError(ErrorNumber.Unknow, "参数错误", this.GetType().FullName);

            return;
        }

        int temp = -1;
        if (b)
        {
            temp = lotteryid;
        }
        string headMethod = "followScheme(" + temp + ");$Id(\"iframeFollowScheme\").src=\"../Home/Room/FollowFriendSchemeAdd.aspx?LotteryID=" + temp + "&DzLotteryID=" + temp;

        if (userid < 1)
        {
            PF.GoError(ErrorNumber.Unknow, "参数错误", this.GetType().FullName);

            return;
        }
        if (!new SLS.Lottery().ValidID(lotteryid))
        {
            PF.GoError(ErrorNumber.Unknow, "参数错误!(彩种)", this.GetType().FullName);

            return;
        }

        Users tu = new Users(1);
        tu.ID = userid;
        dingZhi = "&FollowUserID=" + userid + "&FollowUserName=" + HttpUtility.UrlEncode(tu.Name) + "\"";
        string ReturnDescription = "";

        if (tu.GetUserInformationByID(ref ReturnDescription) != 0)
        {

            return;
        }

        dingZhi = Shove._Security.Encrypt.EncryptString(PF.GetCallCert(), headMethod + dingZhi);

        if ((lotteryid != 72) || (lotteryid != 73))
        {
            Response.Redirect("../Lottery/Buy_" + Lotteries[lotteryid] + ".aspx?DZ=" + dingZhi + "");
        }
    }
开发者ID:ichari,项目名称:ichari,代码行数:58,代码来源:Default.aspx.cs

示例4: Page_Load

    protected void Page_Load(object sender, System.EventArgs e)
    {
        bool OnlinePay_CnCard_Status_ON = so["OnlinePay_CnCard_Status_ON"].ToBoolean(false); //&& PF.ValidCert(so["OnlinePay_CnCard_UserNumber"].ToString(), so["OnlinePay_CnCard_ON_Cert"].ToString(), "SPAYC");
        
        if (!OnlinePay_CnCard_Status_ON)
        {
            Response.Write("暂未启用");
            Response.End();
            return;
        }

        if (!this.IsPostBack)
        {
            try
            {
                c_mid = Request["c_mid"].ToString();//1028390
                c_order = Request["c_order"].ToString();//8000000347
                c_orderamount = Request["c_orderamount"].ToString();//1
                c_ymd = Request["c_ymd"].ToString();//20100108
                c_transnum = Request["c_transnum"].ToString();//15256025
                c_succmark = Request["c_succmark"].ToString();//Y
                c_moneytype = Request["c_moneytype"].ToString();//0
                string cause = Request["c_cause"];
                if (cause != null && cause != "")
                {
                    c_cause = cause.ToString();
                }
                c_memo1 = Request["c_memo1"].ToString();//05D20F4166330505E3
                c_memo1_UnEncrypt = Shove._Security.Encrypt.UnEncryptString(PF.GetCallCert(), c_memo1);
                string c_memo2Detail = Request["c_memo2"];
                if(c_memo2Detail != null && c_memo2Detail != "")
                {
                    c_memo2 = c_memo2Detail.ToString();
                }
                c_signstr = Request["c_signstr"].ToString();//fa41a9a74a36b48ae43fbde3e0e85036
            }
            catch
            {
                Shove._Web.JavaScript.Alert(this.Page, "返回参数出现异常");

                return;
            } 

            if (c_mid != so["OnlinePay_CnCard_UserNumber"].ToString(""))
            {
                Shove._Web.JavaScript.Alert(this.Page, "账户校验发生异常");

                return;
            }

            if (c_succmark != "Y" && c_succmark != "N")
            {
                Shove._Web.JavaScript.Alert(this.Page, "订单交易状态返回结果错误");

                return;
            }

            Sites _Site = new Sites()[Shove._Web.Utility.GetUrlWithoutHttp()];

            if (_Site == null)
            {
                Shove._Web.JavaScript.Alert(this.Page, "域名无效,限制访问");

                return;
            }

            Users user = new Users(_Site.ID);
            user.ID = Shove._Convert.StrToInt(c_memo1_UnEncrypt, -1);

            if (user.ID < 0)
            {
                Shove._Web.JavaScript.Alert(this.Page, "异常用户数据");

                return;
            }
            string description = "";
            int Result = user.GetUserInformationByID(ref description);
            if ((Result != 0) && (Result != -3))
            {
                Shove._Web.JavaScript.Alert(this.Page, "帐号信息异常");

                return;
            }
            else
            {
                new Log("System").Write(description);
            }

            string srcStr = c_mid + c_order + c_orderamount + c_ymd + c_transnum + c_succmark + c_moneytype + c_memo1 + c_memo2 + so["OnlinePay_CnCard_MD5"].ToString("");
            if (c_signstr != FormsAuthentication.HashPasswordForStoringInConfigFile(srcStr, "MD5").ToLower())
            {
                Shove._Web.JavaScript.Alert(this.Page, "云网支付平台返回信息不一致");
                return;
            }

            if (c_succmark == "Y")
            {
                WriteUserAccount(user);
            }
            else
//.........这里部分代码省略.........
开发者ID:ichari,项目名称:ichari,代码行数:101,代码来源:Receive.aspx.cs

示例5: ResponseTailor

    private void ResponseTailor(bool b, long userid)
    {
        int lotteryID = _Convert.StrToInt(this.HidLotteryID.Value, -1);
        int num2 = -1;
        if (b)
        {
            num2 = lotteryID;
        }
        string str = string.Concat(new object[] { "followScheme(", num2, ");$Id(\"iframeFollowScheme\").src=\"../Home/Room/FollowFriendSchemeAdd.aspx?LotteryID=", num2, "&DzLotteryID=", num2 });
        if (userid < 1L)
        {
            PF.GoError(1, "参数错误", base.GetType().FullName);
        }
        else if (!new Lottery().ValidID(lotteryID))
        {
            PF.GoError(1, "参数错误!(彩种)", base.GetType().FullName);
        }
        else
        {
            Users users = new Users(base._Site.ID)
            {
                ID = userid
            };
            this.dingZhi = string.Concat(new object[] { "&FollowUserID=", userid, "&FollowUserName=", HttpUtility.UrlEncode(users.Name), "\"" });
            string returnDescription = "";
            if (users.GetUserInformationByID(ref returnDescription) == 0)
            {
                this.dingZhi = Encrypt.EncryptString(PF.GetCallCert(), str + this.dingZhi);
                switch (lotteryID)
                {
                    case 0x1d:
                        base.Response.Redirect("../Lottery/Buy_SSL.aspx?DZ=" + this.dingZhi);
                        return;

                    case 0x3e:
                        base.Response.Redirect("../Lottery/Buy_SYYDJ.aspx?DZ=" + this.dingZhi);
                        return;

                    case 0x3d:
                        base.Response.Redirect("../Lottery/Buy_SSC.aspx?DZ=" + this.dingZhi);
                        return;

                    case 1:
                    case 2:
                    case 15:
                        base.Response.Redirect(string.Concat(new object[] { "../Home/Room/Buy_ZC.aspx?LotteryID=", lotteryID, "&DZ=", this.dingZhi }));
                        return;
                }
                base.Response.Redirect(string.Concat(new object[] { "../Home/Room/Buy.aspx?LotteryID=", lotteryID, "&ID=", lotteryID, "&DZ=", this.dingZhi }));
            }
        }
    }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:52,代码来源:OpenInfoList.aspx.cs

示例6: ResponseTailor

 private void ResponseTailor(string headMethod)
 {
     long num = -1L;
     try
     {
         num = _Convert.StrToLong(Utility.GetRequest("id"), -1L);
     }
     catch
     {
     }
     if (num < 1L)
     {
         PF.GoError(1, "参数错误", base.GetType().FullName);
     }
     else if (!new Lottery().ValidID(this.LotteryID))
     {
         PF.GoError(1, "参数错误!(彩种)", base.GetType().FullName);
     }
     else
     {
         Users users = new Users(base._Site.ID)
         {
             ID = num
         };
         string returnDescription = "";
         if (users.GetUserInformationByID(ref returnDescription) != 0)
         {
             PF.GoError(1, returnDescription, base.GetType().FullName);
         }
         else
         {
             this.dingZhi = Encrypt.EncryptString(PF.GetCallCert(), headMethod + this.dingZhi);
             if (this.LotteryID == 0x1d)
             {
                 base.Response.Redirect("../Room/Buy_SSL.aspx?DZ=" + this.dingZhi);
             }
             else if (this.LotteryID == 0x3e)
             {
                 base.Response.Redirect("../Room/Buy_SYYDJ.aspx?DZ=" + this.dingZhi);
             }
             else if (this.LotteryID == 0x3d)
             {
                 base.Response.Redirect("../Room/Buy_SSC.aspx?DZ=" + this.dingZhi);
             }
             else if (((this.LotteryID == 1) || (this.LotteryID == 2)) || (this.LotteryID == 15))
             {
                 base.Response.Redirect(string.Concat(new object[] { "../Room/Buy_ZC.aspx?LotteryID=", this.LotteryID, "&DZ=", this.dingZhi }));
             }
             else
             {
                 base.Response.Redirect(string.Concat(new object[] { "../Room/Buy.aspx?LotteryID=", this.LotteryID, "&ID=", this.LotteryID, "&DZ=", this.dingZhi }));
             }
         }
     }
 }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:55,代码来源:Score.aspx.cs

示例7: BindData

 private void BindData(long UserID, int LotteryID)
 {
     string returnDescription = "";
     string str2 = "";
     Users users = new Users(base._Site.ID)
     {
         ID = UserID
     };
     if (users.GetUserInformationByID(ref returnDescription) != 0)
     {
         PF.GoError(1, returnDescription, base.GetType().FullName);
     }
     else
     {
         this.labUserName.Text = users.Name;
         this.labUserRegisterTime.Text = users.RegisterTime.ToString("yyyy-MM-dd HH:mm:ss");
         this.labUserType.Text = (users.UserType == 1) ? "普通会员" : ((users.UserType == 3) ? "VIP" : "高级会员");
         this.dingZhi = string.Concat(new object[] { "&FollowUserID=", UserID, "&FollowUserName=", HttpUtility.UrlEncode(users.Name), "\"" });
         DataTable cacheAsDataTable = null;
         if (this.Source == -1)
         {
             cacheAsDataTable = new Tables.T_Lotteries().Open("[ID], [Name]", "[id] = " + LotteryID.ToString(), "");
         }
         else if (this.Source == 1)
         {
             cacheAsDataTable = MSSQL.Select("Select ID,Name from  T_Lotteries where ID=" + LotteryID.ToString(), new MSSQL.Parameter[0]);
         }
         else if (this.Source == 2)
         {
             cacheAsDataTable = MSSQL.Select("Select ID,Name from  T_Lotteries where ID=" + LotteryID.ToString(), new MSSQL.Parameter[0]);
         }
         else
         {
             cacheAsDataTable = new Tables.T_Lotteries().Open("[ID], [Name]", "[id] = " + LotteryID.ToString(), "");
         }
         if (cacheAsDataTable == null)
         {
             PF.GoError(4, "数据库繁忙,请重试", base.GetType().FullName);
         }
         else
         {
             if (this.cbShowWin.Checked)
             {
                 str2 = " where WinMoney>0";
             }
             string key = string.Concat(new object[] { users.ID, "_", LotteryID.ToString(), "_Home_Web_Score_", this.cbShowWin.Checked });
             cacheAsDataTable = Shove._Web.Cache.GetCacheAsDataTable(key);
             if ((cacheAsDataTable == null) || this.IsShow)
             {
                 string str5 = "select * from (";
                 cacheAsDataTable = MSSQL.Select(str5 + this.GetSQL(UserID, LotteryID, "", ",source=1") + ") d  " + str2 + "  order by TopMoney desc,id desc", new MSSQL.Parameter[0]);
                 if (cacheAsDataTable == null)
                 {
                     PF.GoError(4, "数据库繁忙,请重试", base.GetType().FullName);
                     return;
                 }
                 Shove._Web.Cache.SetCache(key, cacheAsDataTable, 300);
             }
             PF.DataGridBindData(this.g, cacheAsDataTable, this.gPager);
             this.gPager.Visible = true;
         }
     }
 }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:63,代码来源:Score.aspx.cs

示例8: ResponseTailor

 private void ResponseTailor(bool b)
 {
     long num = _Convert.StrToLong(this.hfID.Value, -1L);
     int lotteryID = _Convert.StrToInt(this.tbLotteryID.Text, -1);
     int num3 = -1;
     if (b)
     {
         num3 = lotteryID;
     }
     string str = string.Concat(new object[] { "followScheme(", num3, ");$Id(\"iframeFollowScheme\").src=\"../Home/Room/FollowFriendSchemeAdd.aspx?LotteryID=", num3, "&DzLotteryID=", num3 });
     if (num < 1L)
     {
         PF.GoError(1, "参数错误", base.GetType().FullName);
     }
     else if (!new Lottery().ValidID(lotteryID))
     {
         PF.GoError(1, "参数错误!(彩种)", base.GetType().FullName);
     }
     else
     {
         Users users = new Users(base._Site.ID)
         {
             ID = num
         };
         this.dingZhi = string.Concat(new object[] { "&FollowUserID=", num, "&FollowUserName=", HttpUtility.UrlEncode(users.Name), "\"" });
         string returnDescription = "";
         if (users.GetUserInformationByID(ref returnDescription) == 0)
         {
             this.dingZhi = Encrypt.EncryptString(PF.GetCallCert(), str + this.dingZhi);
             base.Response.Redirect("../../Lottery/Buy_" + Lotteries[lotteryID] + ".aspx?DZ=" + this.dingZhi);
         }
     }
 }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:33,代码来源:Scheme.aspx.cs

示例9: BindData

    private void BindData(long UserID, int LotteryID)
    {
        string ReturnDescription = "";
        string IsShowWin = "";
        Users tu = new Users(_Site.ID);
        tu.ID = UserID;

        if (tu.GetUserInformationByID(ref ReturnDescription) != 0)
        {
            PF.GoError(ErrorNumber.Unknow, ReturnDescription, this.GetType().FullName);

            return;
        }

        labUserName.Text = tu.Name;
        labUserRegisterTime.Text = tu.RegisterTime.ToString("yyyy-MM-dd HH:mm:ss");
        labUserType.Text = "普通会员";
        dingZhi = "&FollowUserID=" + UserID + "&FollowUserName=" + HttpUtility.UrlEncode(tu.Name) + "\"";
        DataTable dt = null;

        if (Source == -1)
        {
            dt = new DAL.Tables.T_Lotteries().Open("[ID], [Name]", "[id] = " + LotteryID.ToString(), "");
        }
        else if (Source == 1)
        {
            dt = Shove.Database.MSSQL.Select("Select ID,Name from  T_Lotteries where ID=" + LotteryID.ToString());
        }
        else if (Source == 2)
        {
            dt = Shove.Database.MSSQL.Select("Select ID,Name from  T_Lotteries where ID=" + LotteryID.ToString());
        }
        else 
        {
            dt = new DAL.Tables.T_Lotteries().Open("[ID], [Name]", "[id] = " + LotteryID.ToString(), "");
        }

        if (dt == null)
        {
            PF.GoError(ErrorNumber.DataReadWrite, "数据库繁忙,请重试", this.GetType().FullName);

            return;
        }
        if (cbShowWin.Checked)
        {
            IsShowWin = " where WinMoney>0";
        }
        string CacheKey = tu.ID + "_" + LotteryID.ToString() + "_Home_Web_Score_"+cbShowWin.Checked;

        dt = Shove._Web.Cache.GetCacheAsDataTable(CacheKey);
        if (dt == null || IsShow == true)
        {
            string sqlText = "select * from (";
            
            sqlText += GetSQL(UserID, LotteryID, "", ",source=1") + ") d  " + IsShowWin + "  order by TopMoney desc,id desc";
            dt = Shove.Database.MSSQL.Select(sqlText);

            if (dt == null)
            {
                PF.GoError(ErrorNumber.DataReadWrite, "数据库繁忙,请重试", this.GetType().FullName);

                return;
            }
            Shove._Web.Cache.SetCache(CacheKey, dt, 300);
        }
        PF.DataGridBindData(g, dt, gPager);

        gPager.Visible = true;
    }
开发者ID:ichari,项目名称:ichari,代码行数:69,代码来源:Score.aspx.cs

示例10: ResponseTailor

    private void ResponseTailor(string headMethod)
    {
        long UserID = -1;

        try
        {
            UserID = Shove._Convert.StrToLong(Shove._Web.Utility.GetRequest("id"), -1);
        }
        catch { }

        if (UserID < 1)
        {
            PF.GoError(ErrorNumber.Unknow, "参数错误", this.GetType().FullName);

            return;
        }
        if (!new SLS.Lottery().ValidID(LotteryID))
        {
            PF.GoError(ErrorNumber.Unknow, "参数错误!(彩种)", this.GetType().FullName);

            return;
        }
        Users tu = new Users(_Site.ID);
        tu.ID = UserID;

        string ReturnDescription = "";
        if (tu.GetUserInformationByID(ref ReturnDescription) != 0)
        {
            PF.GoError(ErrorNumber.Unknow, ReturnDescription, this.GetType().FullName);

            return;
        }
        dingZhi = Shove._Security.Encrypt.EncryptString(PF.GetCallCert(), headMethod + dingZhi);
        if (LotteryID == 74)
        {
            Response.Redirect("../../Lottery/Buy_SFC.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 75)
        {
            Response.Redirect("../../Lottery/Buy_SFC_9_D.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 2)
        {
            Response.Redirect("../../Lottery/Buy_JQC.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 15)
        {
            Response.Redirect("../../Lottery/Buy_LCBQC.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 39)
        {
            Response.Redirect("../../Lottery/Buy_CJDLT.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 3)
        {
            Response.Redirect("../../Lottery/Buy_QXC.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 9)
        {
            Response.Redirect("../../Lottery/Buy_22X5.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 63)
        {
            Response.Redirect("../../Lottery/Buy_PL3.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 64)
        {
            Response.Redirect("../../Lottery/Buy_PL5.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 5)
        {
            Response.Redirect("../../Lottery/Buy_SSQ.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 6)
        {
            Response.Redirect("../../Lottery/Buy_3D.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 13)
        {
            Response.Redirect("../../Lottery/Buy_QLC.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 61)
        {
            Response.Redirect("../../Lottery/Buy_SSC.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 62)
        {
            Response.Redirect("../../Lottery/Buy_SYYDJ.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 70)
        {
            Response.Redirect("../../Lottery/Buy_JX11X5.aspx?DZ=" + dingZhi);
        }
        else if (LotteryID == 29)
        {
            Response.Redirect("../../Lottery/Buy_SSL.aspx?DZ=" + dingZhi);
        }
    }
开发者ID:ichari,项目名称:ichari,代码行数:98,代码来源:Score.aspx.cs


注:本文中的Users.GetUserInformationByID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。