Web/Gift/ShowGift.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#region license
/**********************************************
* CopyRight (c) 2009-2010 HangJing Teconology. All Rights Re* Function :
* at 2011-4-22 9:36:09.
* 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_ShowGift1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
int Id = HjNetHelper.GetQueryInt("id", 0);
Gifts bll = new Gifts();
GiftsInfo info = new GiftsInfo();
info = bll.GetModel(Id);
imgLogo.ImageUrl = WebUtility.ShowPic(info.Picture);
lbGiftName.Text = info.Gname;
lbPoint.Text = info.NeedIntegral.ToString();
lbHave.Text = info.Stocks.ToString(); ; //库存暂未实现
litIntroduce.Text = info.Content;
Label1.Text ="¥"+info.GiftsPrice.ToString("#0.0");
Page.Title = info.Gname + " - 积分商城 - " + WebUtility.GetWebName();
InitUser();
}
}
protected void GetGift_Click(object sender, ImageClickEventArgs e)
{
//进行兑换
Response.Redirect("GetGift.aspx?id=" + HjNetHelper.GetQueryInt("id", 0).ToString() + "");
}
/// <summary>
/// 需要登入的才能执行的操作则进行判断是否已经登入
/// </summary>
/// <returns></returns>
private void InitUser()
{
ECustomerInfo model = UserHelp.GetUser();
if (model != null)
{
AlertScript.RegScript(Page, UpdatePanel1, "inithead(" + model.Point + ", '" + model.Name + "', '" + WebUtility.ShowPic(model.Picture) + "');");
后面还有 17 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
