using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.UI;
|
using System.Web.UI.WebControls;
|
using CY.Model;
|
using CY.BLL.EC;
|
using CY.BLL;
|
using CY.Infrastructure.Common;
|
namespace CY.WebForm.Pages.webmanage
|
{
|
public partial class PrizeInfoDetail : BasePage
|
{
|
EC_PrizeInfoBLL _EC_PrizeInfoBLL = null;
|
EC_PrizeInfo prizeInfo = null;
|
public PrizeInfoDetail()
|
{
|
_EC_PrizeInfoBLL = new EC_PrizeInfoBLL();
|
prizeInfo = new EC_PrizeInfo();
|
}
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
bindPrizeInfo();
|
}
|
|
}
|
/// <summary>
|
/// 显示详细奖品信息
|
/// </summary>
|
public void bindPrizeInfo()
|
{
|
prizeInfo = _EC_PrizeInfoBLL.getOnePrizeInfo(Request["Keyid"].ToInt32());
|
this.spanRemark.InnerText = prizeInfo.Remark;
|
this.spnAllCount.InnerText = prizeInfo.AllCount.ToString2();
|
this.spnCommoditycode.InnerText = prizeInfo.Commoditycode.ToString2();
|
this.spnExchangedCount.InnerText = prizeInfo.ExchangedCount.ToString2();
|
this.spnIsUsed.InnerText = true.Equals(prizeInfo.IsUsed)?"是":"否";
|
this.spnLastUpdateTime.InnerText = prizeInfo.LastUpdateTime.ToString2();
|
|
this.spnNeedIntegral.InnerText = prizeInfo.NeedIntegral.ToString2();
|
this.spnOperator.InnerText = prizeInfo.Operator;
|
this.spnOrderCode.InnerText = prizeInfo.OrderCode;
|
this.spnPrizeName.InnerText = prizeInfo.PrizeName;
|
this.spnSingleExCount.InnerText = prizeInfo.ExchangedCount.ToString2();
|
this.spnPrizeAddress.InnerText = prizeInfo.PrizeReciveAddress.Address;
|
this.FileId.Src = string.IsNullOrEmpty(prizeInfo.FileId) ? "~/images/Upload/暂无图片.jpg" : prizeInfo.FileId;
|
|
|
|
|
|
|
}
|
}
|
}
|