zoukankan      html  css  js  c++  java
  • Answer 3.0 .NET开源网站功能API说明

    Answer 3.0 .NET开源网站功能API说明

     

    注册................................................................................................................................. 1

    登陆................................................................................................................................. 3

    会员中心.......................................................................................................................... 4

    退出登录.......................................................................................................................... 4

    检测用户登录................................................................................................................... 5

    付房租............................................................................................................................. 6

    后台管理.......................................................................................................................... 7

    产品详细.......................................................................................................................... 7

    保存到订单...................................................................................................................... 7

    交易纪录.......................................................................................................................... 7

    获得单条订单纪录............................................................................................................ 8

    提交银行数据字段名........................................................................................................ 8

    获取当前登录用户名及UID.............................................................................................. 8

    检测用户是否存在............................................................................................................ 9

    修改密码.......................................................................................................................... 9

    会员中心左侧菜单........................................................................................................ 9

    订单详细.......................................................................................................................... 9

     

     

     

     

     

    注册

     

    http://localhost:10282/Member/Register.aspx

     

    C:\Users\Administrator\Desktop\Answer 3.0 empty\Ascx\V\Custom\Register.ascx

     

     

      //Ì?¡ÂÁ¡é¨¢º¡À?䣤¤¡é

        protected void RegisterClt_Click(object sender, EventArgse)

       settokenN2welcome(Account, Pword);

     

     

    注册成功后转向WELCOME页面


    登陆

    http://localhost:10282/Member/SignIn.aspx

     

    ~/Ascx/X/Account/SignIn.ascx"

     

     

    C:\Users\Administrator\Desktop\Answer 3.0 empty\App_Code\Data\Extend\XEAccount.cs

    SignIn()

     

    Set tokeyn

     

     

            HttpContext.Current.Response.Cookies[Custom][ " Account"

    ] =HttpContext.Current.Server.UrlEncode(“attilax”);

                HttpContext.Current.Response.Cookies[TableName][ "Pword"

    ] =HttpContext.Current.Server.UrlEncode("670B14728AD9902AECBA32E22FA4F6BD");

     

    Response.Redirect Default.aspx

     

     


    会员中心

     

    http://localhost:10282/Member/Default.aspx

    C:\Users\Administrator\Desktop\Answer 3.0 empty\Member\Default.aspx

    C:\Users\Administrator\Desktop\Answer 3.0 empty\Ascx\V\Custom\Default.ascx

    退出登录

     

    http://localhost:10282/Member/SignOut.aspx

     

    C:\Users\Administrator\Desktop\Answer 3.0 empty\Ascx\X\Account\SignOut.ascx

     

     

    C:\Users\Administrator\Desktop\Answer 3.0 empty\App_Code\Data\Extend\XEAccount.cs

     

        ///<summary>

        ///¨º¡ìÌ??D?

        ///</summary>

        ///<param name="TableName"></param>

        public void SignOut(string TableName, string AccountFieldName, string PasswordFieldName)

        {

            HttpContext.Current.Response.Cookies[TableName][AccountFieldName] ="";

            HttpContext.Current.Response.Cookies[TableName][PasswordFieldName] ="";

     

            CleanCookie(TableName);

        }


    检测用户登录

     

    C:\Users\Administrator\Desktop\Answer 3.0 empty\Member\Default.master.cs

      private void OriginalDataBind()

        {

            if (!xeAccount.ChkAccount("Custom", "Account", "Pword"))

            {

                //¤?®D¡ì®?¡ì

                Response.Redirect("SignIn.aspx?url="+Request.Url.ToString());

                Response.End();

            }

     

     

     

     

    C:\Users\Administrator\Desktop\Answer 3.0 empty\Ascx\C\Controller\Power.ascx

    C:\Users\Administrator\Desktop\Answer 3.0 empty\Controller\Power\Edit.aspx

     


     

    付房租

     

    http://localhost:10282/fudsujyen/fudsujyen.aspx

     

    提交到

    /fudsujyen /SaveLoanApply.aspx

     

    If(userNotLgin)

        Response.Redirect("../Member/SignIn.aspx");

     

         int C_id=xeAccount.GetId("Custom", "Account", "Pword");  //uid

    save oder()

       Response.Redirect("fudsujyen_step3.htm");

     


    后台管理

     

    http://localhost:10282/Controller/SignIn.aspx

    admin ,密码为空

     

    产品详细

     

    http://localhost:10282/Product/Detail.aspx?did=31

     

    C:\Users\Administrator\Desktop\Answer 3.0 empty\Ascx\V\Ware\Detail.ascx

     

     

    添加到购物车

    AddToCart('/Cart/AddToCart.aspx','id','amount','params');

     

    "/Cart/AddToCart.aspx?id=31&amount=1&params="

     

     

    保存到订单

    C:\Users\Administrator\Desktop\Answer 3.0 empty\App_Code\Data\Extend\XECart.cs

      public void CartToOrder(GuidPurchaseID,decimal TokenCut,string SerialNumber,string PayMethod)

     

    交易纪录

    http://localhost:10282/Member/MyOrder.aspx

     

     

    C:\Users\Administrator\Desktop\Answer 3.0 empty\Ascx\V\Order\List.ascx

    C:\Users\Administrator\Desktop\Answer 3.0 empty\Ascx\V\Order\List.ascx.cs


    获得单条订单纪录

     

    C:\Users\Administrator\Desktop\Answer 3.0 empty\App_Code\Data\Extend\EOrder.cs

        ///<summary>

        ///?Ì??Ì£¤?¡é

        ///</summary>

        ///<param name="SerialNumber"></param>

        ///<returns></returns>

        public MOrder GetVRecord(string SerialNumber)

     

     

    提交银行数据字段名

    Land_Bank

    City1 ,sen 

    City2, si

    idLandlordCardNo ,

    idLandlordName ,kaihuren

    idRentPayed,dsujyen

    idDeposit ,yajyen

     

    获取当前登录用户名及UID

           string Account=xeAccount.GetAccount("Custom", "Account");  //cur user

                int C_id=xeAccount.GetId("Custom", "Account", "Pword");  //uid


     

    检测用户是否存在

       ECustom eCustom= new ECustom();

                return eCustom.ChkAccount(0, uname);

     

     

    修改密码

    C:\Users\Administrator\Desktop\Answer 3.0 empty\dsukateo\Ascx\X\Account\Password.ascx.cs

           string NewPassword=xArithmetic.md5(this.Password_New.Text.Trim(), 32);

                xeAccount.UpdPassword(AccountTableName, AccountFieldName, PasswordFieldName, NewPassword);

     

     

    会员中心左侧菜单

    C:\Users\Administrator\Desktop\Answer 3.0 empty\dsukateo\Ascx\X\Custom\Menu.ascx.cs

     

     

    订单详细

    C:\Users\Administrator\Desktop\Answer 3.0 empty\dsukateo\Ascx\V\Order\Show.ascx.cs

  • 相关阅读:
    linux之正则表达式
    ssh远程连接centos
    centOS网络配置
    linux软件包的管理
    linux内存、进程管理
    cent_os_7进行磁盘分区
    linux文件压缩、磁盘分区、vi和软硬链接
    linux用户、群操作命令和文件权限修改
    c#控制台程序
    c#简易程序解释1
  • 原文地址:https://www.cnblogs.com/attilax/p/15199898.html
Copyright © 2011-2022 走看看