Web/Gift/GetGift.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#region license
/**********************************************
* CopyRight (c) 2009-2010 HangJing Teconology. All Rights Re* Function :
* at 2011-4-25 14:11:47.
* E-Mail: jijunjian@iWMPT.com
*********************************************** */
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WMPT.SQLServerDAL;
using WMPT.Common;
using WMPT.Model;
public partial class Gift_getGift1 : System.Web.UI.Page
{
ECustomer dal = new ECustomer();
protected void Page_Load(object sender, EventArgs e)
{
UserHelp.IsLogin(Request.Url.PathAndQuery);
if (!Page.IsPostBack)
{
int Id = HjNetHelper.GetQueryInt("id", 0);
Gifts bll = new Gifts();
InitUser();
GiftsInfo info = new GiftsInfo();
info = bll.GetModel(Id);
lbGiftName.Text = info.Gname;
lbprice.Text = ""+info.GiftsPrice.ToString("#0.0");
lbPoint.Text = info.NeedIntegral.ToString();
lbstocks.Text = info.Stocks.ToString();
ECustomerInfo user1 = UserHelp.GetUser();
if (user1 != null)
{
string sql = "UserID =" + user1.DataID;
IList<EAddressInfo> list = new EAddress().GetList(1, 1, sql, "pri", 1);
if (list.Count > 0)
{
string phone = list[0].Phone == "" ? "" : "/" + list[0].Phone;
tbPerson.Text = list[0].Receiver + phone;
tbPhone.Text = list[0].Mobilephone ;
tbAddress.Text = list[0].Address;
}
}
if (Request["buy"] != null && Request["buy"].ToString() == "1")
{
lipoint.Style["display"] = "none";
}
else
{
liprice.Style["display"] = "none";
}
}
}
后面还有 80 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
