Hidistro.UI.SaleSystem.CodeBehind/VBeginVote.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using ControlPanel.Promotions;
using Hidistro.Entities.Promotions;
using Hidistro.UI.Common.Controls;


namespace Hidistro.UI.SaleSystem.CodeBehind
{
    public class VBeginVote : VMemberTemplatedWebControl
    {
        private string htmlTitle = string.Empty;
        private HiImage imgVoteItem;
        private HiLiteral lVoteCount;
        private HiLiteral lVoteDate;
        private HiLiteral lVoteDescription;
        private HiLiteral lVoteTitle;
        private HiLiteral lVoteType;
        private VshopTemplatedRepeater rptVoteItem;
        private long voteId = 1L;

        protected override void AttachChildControls()
        {
            VoteInfo vote = VoteHelper.GetVote(this.voteId);
            this.imgVoteItem = (HiImage)this.FindControl("imgVoteItem");
            this.lVoteTitle = (HiLiteral)this.FindControl("lVoteTitle");
            this.lVoteDescription = (HiLiteral)this.FindControl("lVoteDescription");
            this.lVoteCount = (HiLiteral)this.FindControl("lVoteCount");
            this.rptVoteItem = (VshopTemplatedRepeater)this.FindControl("rptVoteItem");
            this.lVoteDate = (HiLiteral)this.FindControl("lVoteDate");
            this.lVoteType = (HiLiteral)this.FindControl("lVoteType");
            if (vote != null)
            {
                this.htmlTitle = vote.VoteName;
                this.lVoteTitle.Text = vote.VoteName;
                this.imgVoteItem.ImageUrl = vote.ImageUrl;
                this.lVoteDescription.Text = vote.Description;
                this.lVoteCount.Text = vote.VoteAttends.ToString();
                this.lVoteDate.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss} 至 {1:yyyy-MM-dd  HH:mm:ss} ", vote.StartDate, vote.EndDate);
                if (vote.IsMultiCheck)
                {
                    this.lVoteType.Text = "多选";
                    this.rptVoteItem.TemplateFile = "/Tags/Skin-Common-BeginVoteItemCheckBox.ascx";
                }
                else
                {
                    this.lVoteType.Text = "单选";
                    this.rptVoteItem.TemplateFile = "/Tags/Skin-Common-BeginVoteItem.ascx";
                }
                this.rptVoteItem.DataSource = vote.VoteItems;
                this.rptVoteItem.DataBind();
            }
            else
            {
                base.GotoResourceNotFound("");
            }
            PageTitle.AddSiteNameTitle(this.htmlTitle);
        }

        protected override void OnInit(EventArgs e)
        {
后面还有 17 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。