读书人

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

发布时间: 2012-09-03 09:48:39 作者: rapoo

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

//点ì?击??注á?é册¨¢时o?à间?触?£¤发¤?é

protected void RegisterClt_Click(objectsender, 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>

///帐¨o户?ì登ì?出?判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,decimalTokenCut,string SerialNumber,stringPayMethod)

交易纪录

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 MOrderGetVRecord(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


检测用户是否存在

ECustomeCustom= 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

读书人网 >开源软件

热点推荐