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; using CY.Infrastructure.Common; using CY.BLL.Sys; using CY.BLL.EC; namespace CY.WebForm.Pages.member { //吴辉 //兑换记录管理 public partial class ExChangePrEdit : BasePage { EC_ExchangeRecordBLL bll_EC_ExchangeRecordBLL = null; Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; EC_PrizeInfoBLL bll_EC_PrizeInfoBLL = null; //初始化 public ExChangePrEdit() { bll_EC_ExchangeRecordBLL = new EC_ExchangeRecordBLL(); bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); bll_EC_PrizeInfoBLL = new EC_PrizeInfoBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InitData(); } } //数据加载 public void InitData() { EC_ExchangeRecord m_EC_ExchangeRecord = bll_EC_ExchangeRecordBLL.GetModelByKeyid(Request["keyid"].ToInt32()); EC_PrizeInfo m_EC_PrizeInfo = bll_EC_PrizeInfoBLL.getOnePrizeInfo(m_EC_ExchangeRecord.PrizeId); this.spanAddress.InnerText = m_EC_ExchangeRecord.AssociateAddress; this.spanCount.InnerText = m_EC_ExchangeRecord.ExchangeCount.ToString2(); this.spanCreatTime.InnerText = m_EC_ExchangeRecord.ExchangeTime.Value.ToString(); this.spanPrizeName.InnerText = m_EC_PrizeInfo.PrizeName; this.spanReciveType.InnerText = m_EC_ExchangeRecord.ShippingMethod; this.spanScore.InnerText = m_EC_ExchangeRecord.AllUseIntegral.ToString2(); this.spanRemarks.InnerText = m_EC_ExchangeRecord.Remark; this.spanStatus.InnerText = bll_Sys_DictionaryBLL.GetNameByMeanValue(m_EC_ExchangeRecord.ExchangeStatus.ToInt32(), "积分奖品兑换状态"); } } }