MxWeiXinPF.Web/admin/vote/vote_picture_add.aspx.cs

(开头部分) 4KB

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

using MxWeiXinPF.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MxWeiXinPF.Web.admin.vote
{
    public partial class vote_picture : Web.UI.ManagePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {


            DateTime begin = DateTime.Parse(begindate.Text.Trim());
            DateTime end = DateTime.Parse(enddate.Text.Trim());
            if (begin >= end)
            {
                JscriptMsg("开始时间必须小于结束时间", "back", "Error");
                return;
            }


            //base表
            Model.wx_userweixin weixin = GetWeiXinCode();
            int wid = weixin.id;

            BLL.wx_vote_base votebaseBll = new BLL.wx_vote_base();

            Model.wx_vote_base votebase = new Model.wx_vote_base();
            votebase.wid = wid;//
            votebase.title = this.title.Text.ToString();//投票说明
            votebase.votepic = this.votepic.Text.ToString();//投票图片
            votebase.picdisplay = Convert.ToBoolean(this.picdisplay.SelectedValue);//是否显示在投票页面
            votebase.votecontent = this.txtactContent.InnerText.ToString();//投票说明
            votebase.isRadio = Convert.ToBoolean(this.Radio.SelectedValue);
            if (this.begindate.Text.ToString() != "")
            {
                votebase.beginTime = Convert.ToDateTime(this.begindate.Text.ToString());
            }
            if (this.enddate.Text.ToString() != "")
            {
                votebase.endTime = Convert.ToDateTime(this.enddate.Text.ToString());
            }
            votebase.resultShowtype = Convert.ToInt32(this.resultShowtype.SelectedValue);
            votebase.actUrl = "";
            votebase.voteType = 2;//图片投票
            votebase.creatDate = DateTime.Now;
            votebase.actUrl = MyCommFun.getWebSite() + "/admin/vote/vote_list.aspx?wid=" + wid + "&aid=";
            int baseid = votebaseBll.Add(votebase);

后面还有 59 行代码,购买后查看完整代码

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

AI 解读

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

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