protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int id = Convert.ToInt32( Request.Params["id"]);
                BLL.wx_vote_base basebll = new BLL.wx_vote_base();
                DataSet dr = basebll.GetListByid(id);
                if (dr.Tables[0].Rows.Count > 0)
                {
                    this.title.Text = dr.Tables[0].Rows[0]["title"].ToString();
                    this.votepic.Text = dr.Tables[0].Rows[0]["votepic"].ToString();
                    this.picdisplay.SelectedValue = dr.Tables[0].Rows[0]["picdisplay"].ToString();
                    this.txtactContent.InnerText = dr.Tables[0].Rows[0]["votecontent"].ToString();

                    this.Radio.SelectedValue = dr.Tables[0].Rows[0]["isRadio"].ToString();
                    this.begindate.Text = dr.Tables[0].Rows[0]["beginTime"].ToString();
                    this.enddate.Text = dr.Tables[0].Rows[0]["endTime"].ToString();
                    this.resultShowtype.SelectedValue = dr.Tables[0].Rows[0]["resultShowtype"].ToString();
                    this.actUrl.Text = dr.Tables[0].Rows[0]["actUrl"].ToString();
                }


                BLL.wx_vote_item itembll = new BLL.wx_vote_item();
                DataSet dritem = itembll.GetListByid(id);

                IList<Model.wx_vote_item> itemlist = iBll.GetModelList("baseid=" + id + " order by sid asc");
                if (itemlist != null && itemlist.Count > 0)
                {
                    int count = itemlist.Count;
                    TextBox xuanxtitle;
                    TextBox Sortid;
                    TextBox pic_ur;
                    TextBox pic_jump;
                    HiddenField toupiaoTimes;
                    Model.wx_vote_item itemEntity = new Model.wx_vote_item();
                    for (int i = 1; i <= count; i++)
                    {
                        itemEntity = itemlist[(i - 1)];
                        xuanxtitle = this.FindControl("xuanxtitle" + i) as TextBox;
                        Sortid = this.FindControl("Sortid" + i) as TextBox;
                        pic_ur = this.FindControl("pic_ur" + i) as TextBox;
                        pic_jump = this.FindControl("pic_jump" + i) as TextBox;
                        toupiaoTimes = this.FindControl("toupiaoTimes" + i) as HiddenField;

                        xuanxtitle.Text = itemEntity.title.ToString();
                        Sortid.Text = itemEntity.sort_id.ToString();
                        pic_ur.Text = itemEntity.pic_url.ToString();
                        pic_jump.Text = itemEntity.pic_jump.ToString();
                        toupiaoTimes.Value = itemEntity.tpTimes == null ? "0" : itemEntity.tpTimes.Value.ToString();

                    }

                }

            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int id = Convert.ToInt32(Request.Params["id"]);
                BLL.wx_vote_base basebll = new BLL.wx_vote_base();
                DataSet          dr      = basebll.GetListByid(id);
                if (dr.Tables[0].Rows.Count > 0)
                {
                    this.title.Text               = dr.Tables[0].Rows[0]["title"].ToString();
                    this.votepic.Text             = dr.Tables[0].Rows[0]["votepic"].ToString();
                    this.picdisplay.SelectedValue = dr.Tables[0].Rows[0]["picdisplay"].ToString();
                    this.txtactContent.InnerText  = dr.Tables[0].Rows[0]["votecontent"].ToString();

                    this.Radio.SelectedValue          = dr.Tables[0].Rows[0]["isRadio"].ToString();
                    this.begindate.Text               = dr.Tables[0].Rows[0]["beginTime"].ToString();
                    this.enddate.Text                 = dr.Tables[0].Rows[0]["endTime"].ToString();
                    this.resultShowtype.SelectedValue = dr.Tables[0].Rows[0]["resultShowtype"].ToString();
                    this.actUrl.Text = dr.Tables[0].Rows[0]["actUrl"].ToString();
                }


                BLL.wx_vote_item itembll = new BLL.wx_vote_item();
                DataSet          dritem  = itembll.GetListByid(id);

                IList <Model.wx_vote_item> itemlist = iBll.GetModelList("baseid=" + id + " order by sid asc");
                if (itemlist != null && itemlist.Count > 0)
                {
                    int                count = itemlist.Count;
                    TextBox            xuanxtitle;
                    TextBox            Sortid;
                    TextBox            pic_ur;
                    TextBox            pic_jump;
                    HiddenField        toupiaoTimes;
                    Model.wx_vote_item itemEntity = new Model.wx_vote_item();
                    for (int i = 1; i <= count; i++)
                    {
                        itemEntity   = itemlist[(i - 1)];
                        xuanxtitle   = this.FindControl("xuanxtitle" + i) as TextBox;
                        Sortid       = this.FindControl("Sortid" + i) as TextBox;
                        pic_ur       = this.FindControl("pic_ur" + i) as TextBox;
                        pic_jump     = this.FindControl("pic_jump" + i) as TextBox;
                        toupiaoTimes = this.FindControl("toupiaoTimes" + i) as HiddenField;

                        xuanxtitle.Text    = itemEntity.title.ToString();
                        Sortid.Text        = itemEntity.sort_id.ToString();
                        pic_ur.Text        = itemEntity.pic_url.ToString();
                        pic_jump.Text      = itemEntity.pic_jump.ToString();
                        toupiaoTimes.Value = itemEntity.tpTimes == null ? "0" : itemEntity.tpTimes.Value.ToString();
                    }
                }
            }
        }
Beispiel #3
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/json";
            string _action = MyCommFun.QueryString("myact");
            string openid = MyCommFun.RequestOpenid();  //得到微信用户的openid
            Dictionary<string, string> jsonDict = new Dictionary<string, string>();

            if (_action == "commit")
            { //提交投票
                int wid = MyCommFun.RequestInt("wid");
                int baseid = MyCommFun.RequestInt("baseid");
                string itemid = MyCommFun.QueryString("itemid");

                BLL.wx_vote_result resultBll = new BLL.wx_vote_result();
                Model.wx_vote_result result = new Model.wx_vote_result();
                BLL.wx_vote_item iBll = new BLL.wx_vote_item();

                if (MyCommFun.QueryString("isradio") == "true")
                {
                    result.baseid = baseid;
                    result.itemid = Convert.ToInt32(itemid);
                    result.openId = openid;
                    result.createDate = DateTime.Now;
                    resultBll.Add(result);
                    iBll.Update(result.itemid.Value, result.baseid.Value);
                }
                else
                {

                    string[] sArray = itemid.Split(',');
                    for (int i = 0; i < sArray.Length;i++ )
                    {
                        result.baseid = baseid;
                        result.itemid = Convert.ToInt32(sArray[i]);
                        result.openId = openid;
                        result.createDate = DateTime.Now;
                        resultBll.Add(result);
                        iBll.Update(result.itemid.Value, result.baseid.Value);
                    }

                }

                //AddAdminLog(MXEnums.ActionEnum.Add.ToString(), ""); //记录日志


                jsonDict.Add("ret", "ok");
                jsonDict.Add("content", "投票成功");

                context.Response.Write(MyCommFun.getJsonStr(jsonDict));

            }
        }
Beispiel #4
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/json";
            string _action = MyCommFun.QueryString("myact");
            string openid  = MyCommFun.RequestOpenid(); //得到微信用户的openid
            Dictionary <string, string> jsonDict = new Dictionary <string, string>();

            if (_action == "commit")
            { //提交投票
                int    wid    = MyCommFun.RequestInt("wid");
                int    baseid = MyCommFun.RequestInt("baseid");
                string itemid = MyCommFun.QueryString("itemid");

                BLL.wx_vote_result   resultBll = new BLL.wx_vote_result();
                Model.wx_vote_result result    = new Model.wx_vote_result();
                BLL.wx_vote_item     iBll      = new BLL.wx_vote_item();

                if (MyCommFun.QueryString("isradio") == "true")
                {
                    result.baseid     = baseid;
                    result.itemid     = Convert.ToInt32(itemid);
                    result.openId     = openid;
                    result.createDate = DateTime.Now;
                    resultBll.Add(result);
                    iBll.Update(result.itemid.Value, result.baseid.Value);
                }
                else
                {
                    string[] sArray = itemid.Split(',');
                    for (int i = 0; i < sArray.Length; i++)
                    {
                        result.baseid     = baseid;
                        result.itemid     = Convert.ToInt32(sArray[i]);
                        result.openId     = openid;
                        result.createDate = DateTime.Now;
                        resultBll.Add(result);
                        iBll.Update(result.itemid.Value, result.baseid.Value);
                    }
                }

                //AddAdminLog(MXEnums.ActionEnum.Add.ToString(), ""); //记录日志


                jsonDict.Add("ret", "ok");
                jsonDict.Add("content", "投票成功");

                context.Response.Write(MyCommFun.getJsonStr(jsonDict));
            }
        }
Beispiel #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                int              id          = Convert.ToInt32(Request.Params["id"]);
                int              wid         = Convert.ToInt32(Request.Params["wid"]);
                string           txtKeywords = "";
                BLL.wx_vote_base gbll        = new BLL.wx_vote_base();
                gbll.Delete(id, wid);

                BLL.wx_vote_item itembll = new BLL.wx_vote_item();
                itembll.Delete(id);


                AddAdminLog(MXEnums.ActionEnum.Delete.ToString(), "删除投票,id为" + id); //记录日志
                JscriptMsg("删除成功!", Utils.CombUrlTxt("vote_list.aspx", "keywords={0}", txtKeywords), "Success");
            }
        }
Beispiel #6
0
 public void BindData(int wid, int aid, string openid)
 {
     //基本表信息
     BLL.wx_vote_base baseBll = new BLL.wx_vote_base();
     baseinfo = baseBll.GetModel(aid);
     if (baseinfo == null)
     {
         return;
     }
     //投票选项字符串设置\
     BLL.wx_vote_item itemBll = new BLL.wx_vote_item();
     IList<Model.wx_vote_item> itemlist = itemBll.GetModelList("baseid=" + baseinfo.id );
     if (itemlist == null || itemlist.Count <= 0)
     {
         return;
     }
     ItemListStr(itemlist,openid);
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                int id = Convert.ToInt32( Request.Params["id"]);
                int wid = Convert.ToInt32(Request.Params["wid"]);
                string txtKeywords = "";
                BLL.wx_vote_base gbll = new BLL.wx_vote_base();
                gbll.Delete(id, wid);

                BLL.wx_vote_item itembll = new BLL.wx_vote_item();
                itembll.Delete(id);

                AddAdminLog(MXEnums.ActionEnum.Delete.ToString(), "删除投票,id为" + id); //记录日志
                JscriptMsg("删除成功!", Utils.CombUrlTxt("vote_list.aspx", "keywords={0}", txtKeywords), "Success");

            }
        }
Beispiel #8
0
        public void BindData(int wid, int aid, string openid)
        {
            //基本表信息
            BLL.wx_vote_base baseBll = new BLL.wx_vote_base();
            baseinfo = baseBll.GetModel(aid);
            if (baseinfo == null)
            {
                return;
            }
            //投票选项字符串设置\
            BLL.wx_vote_item           itemBll  = new BLL.wx_vote_item();
            IList <Model.wx_vote_item> itemlist = itemBll.GetModelList("baseid=" + baseinfo.id);

            if (itemlist == null || itemlist.Count <= 0)
            {
                return;
            }
            ItemListStr(itemlist, openid);
        }
Beispiel #9
0
        public void BindData(int wid, int aid, string openid)
        {
            //基本表信息
            BLL.wx_vote_base          baseBll = new BLL.wx_vote_base();
            List <Model.wx_vote_base> mlist   = baseBll.GetModelList(string.Format(" id={0} and wid={1} ", aid, wid));

            if (mlist.Count <= 0 || mlist == null)
            {
                return;
            }
            baseinfo = mlist[0];
            //投票选项字符串设置
            BLL.wx_vote_item           itemBll  = new BLL.wx_vote_item();
            IList <Model.wx_vote_item> itemlist = itemBll.GetModelList("baseid=" + baseinfo.id);

            if (itemlist == null || itemlist.Count <= 0)
            {
                return;
            }
            ItemListStr(itemlist, openid);
        }
Beispiel #10
0
        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       = 1;//文本投票
            votebase.creatDate      = DateTime.Now;

            votebase.actUrl = MyCommFun.getWebSite() + "/admin/vote/vote_list.aspx?wid=" + wid + "&aid=";
            int baseid = votebaseBll.Add(votebase);



            //item表
            BLL.wx_vote_item voteitemBll = new BLL.wx_vote_item();

            Model.wx_vote_item voteitem = new Model.wx_vote_item();


            int sid = 0;

            TextBox xuanxtitle;
            TextBox Sortid;
            int     totJxNum = 0;

            for (int i = 1; i <= 6; i++)
            {
                xuanxtitle = this.FindControl("xuanxtitle" + i) as TextBox;
                Sortid     = this.FindControl("Sortid" + i) as TextBox;

                if (xuanxtitle.Text.Trim() != "" && Sortid.Text.Trim() != "" && MyCommFun.isNumber(Sortid.Text.Trim()))
                {
                    totJxNum++;
                }
            }

            decimal avgDeg = (decimal)360.0 / (totJxNum + 1);

            for (int i = 1; i <= 6; i++)
            {
                xuanxtitle = this.FindControl("xuanxtitle" + i) as TextBox;
                Sortid     = this.FindControl("Sortid" + i) as TextBox;

                if (xuanxtitle.Text.Trim() != "" && Sortid.Text.Trim() != "" && MyCommFun.isNumber(Sortid.Text.Trim()))
                {
                    sid++;
                    voteitem.sid        = sid;
                    voteitem.baseid     = baseid;
                    voteitem.title      = xuanxtitle.Text.ToString();
                    voteitem.sort_id    = MyCommFun.Str2Int(Sortid.Text.ToString());
                    voteitem.createDate = DateTime.Now;
                    voteitemBll.Add(voteitem);
                }
            }


            // createDate


            AddAdminLog(MXEnums.ActionEnum.Delete.ToString(), "增加文字投票,id为" + baseid); //记录日志
            JscriptMsg("添加成功", "vote_list.aspx", "Success");
        }
Beispiel #11
0
        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;
            }

            int id = Convert.ToInt32(Request.Params["id"]);

            BLL.wx_vote_base   basebll  = new BLL.wx_vote_base();
            Model.wx_vote_base votebase = new Model.wx_vote_base();
            votebase.id          = id;
            votebase.title       = this.title.Text.ToString();
            votebase.votepic     = this.votepic.Text.ToString();
            votebase.picdisplay  = Convert.ToBoolean(this.picdisplay.SelectedValue);
            votebase.votecontent = this.txtactContent.InnerText;
            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         = this.actUrl.Text;
            votebase.voteType       = 1;
            basebll.Update(votebase);


            BLL.wx_vote_item   itembll  = new BLL.wx_vote_item();
            Model.wx_vote_item voteitem = new Model.wx_vote_item();


            // voteitem.sid=
            itembll.Delete(id);//删除
            //编辑

            int sid = 0;

            TextBox     xuanxtitle;
            TextBox     Sortid;
            HiddenField toupiaoTimes;

            for (int i = 1; i <= 6; i++)
            {
                xuanxtitle   = this.FindControl("xuanxtitle" + i) as TextBox;
                Sortid       = this.FindControl("Sortid" + i) as TextBox;
                toupiaoTimes = this.FindControl("toupiaoTimes" + i) as HiddenField;

                if (xuanxtitle.Text.Trim() != "" && Sortid.Text.Trim() != "" && MyCommFun.isNumber(Sortid.Text.Trim()))
                {
                    sid++;
                    voteitem.sid        = sid;
                    voteitem.baseid     = id;
                    voteitem.title      = xuanxtitle.Text.ToString();
                    voteitem.sort_id    = MyCommFun.Str2Int(Sortid.Text.ToString());
                    voteitem.createDate = DateTime.Now;
                    voteitem.tpTimes    = MyCommFun.Str2Int(toupiaoTimes.Value);
                    itembll.Add(voteitem);
                }
            }
            AddAdminLog(MXEnums.ActionEnum.Edit.ToString(), "修改文字投票,id为" + id); //记录日志
            JscriptMsg("修改成功!", Utils.CombUrlTxt("vote_list.aspx", "keywords={0}", ""), "Success");
        }
        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;
            }

            int id = Convert.ToInt32(Request.Params["id"]);
            BLL.wx_vote_base basebll = new BLL.wx_vote_base();
            Model.wx_vote_base votebase = new Model.wx_vote_base();
            votebase.id = id;
            votebase.title = this.title.Text.ToString();
            votebase.votepic = this.votepic.Text.ToString();
            votebase.picdisplay = Convert.ToBoolean(this.picdisplay.SelectedValue);
            votebase.votecontent = this.txtactContent.InnerText;
            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 = this.actUrl.Text;
            votebase.voteType = 1;
            basebll.Update(votebase);


            BLL.wx_vote_item itembll = new BLL.wx_vote_item();
            Model.wx_vote_item voteitem = new Model.wx_vote_item();
        
        
           // voteitem.sid=
            itembll.Delete(id);//删除
            //编辑

            int sid = 0;

            TextBox xuanxtitle;
            TextBox Sortid;
            HiddenField toupiaoTimes;

            for (int i = 1; i <= 6; i++)
            {
                xuanxtitle = this.FindControl("xuanxtitle" + i) as TextBox;
                Sortid = this.FindControl("Sortid" + i) as TextBox;
                toupiaoTimes = this.FindControl("toupiaoTimes" + i) as HiddenField;

                if (xuanxtitle.Text.Trim() != "" && Sortid.Text.Trim() != "" && MyCommFun.isNumber(Sortid.Text.Trim()))
                {
                    sid++;
                    voteitem.sid = sid;
                    voteitem.baseid =id;
                    voteitem.title = xuanxtitle.Text.ToString();
                    voteitem.sort_id = MyCommFun.Str2Int(Sortid.Text.ToString());
                    voteitem.createDate = DateTime.Now;
                    voteitem.tpTimes= MyCommFun.Str2Int( toupiaoTimes.Value);
                    itembll.Add(voteitem);
                }

            }
            AddAdminLog(MXEnums.ActionEnum.Edit.ToString(), "修改文字投票,id为" + id); //记录日志
            JscriptMsg("修改成功!", Utils.CombUrlTxt("vote_list.aspx", "keywords={0}", ""), "Success");
        }
        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 = 1;//文本投票
            votebase.creatDate = DateTime.Now;

            votebase.actUrl = MyCommFun.getWebSite() + "/admin/vote/vote_list.aspx?wid=" + wid + "&aid=";
            int baseid = votebaseBll.Add(votebase);

            //item表
            BLL.wx_vote_item voteitemBll = new BLL.wx_vote_item();

            Model.wx_vote_item voteitem = new Model.wx_vote_item();

               int  sid = 0;

               TextBox xuanxtitle;
               TextBox Sortid;
               int totJxNum = 0;
               for (int i = 1; i <= 6; i++)
               {
               xuanxtitle = this.FindControl("xuanxtitle" + i ) as TextBox;
               Sortid = this.FindControl("Sortid" + i ) as TextBox;

               if (xuanxtitle.Text.Trim() != "" && Sortid.Text.Trim() != "" && MyCommFun.isNumber(Sortid.Text.Trim()))
               {
                   totJxNum++;
               }
               }

               decimal avgDeg = (decimal)360.0 / (totJxNum + 1);

               for (int i = 1; i <= 6; i++)
               {
               xuanxtitle = this.FindControl("xuanxtitle" + i) as TextBox;
               Sortid = this.FindControl("Sortid" + i) as TextBox;

               if (xuanxtitle.Text.Trim() != "" && Sortid.Text.Trim() != "" && MyCommFun.isNumber(Sortid.Text.Trim()))
               {
                   sid++;
                   voteitem.sid = sid;
                   voteitem.baseid = baseid;
                   voteitem.title = xuanxtitle.Text.ToString();
                   voteitem.sort_id = MyCommFun.Str2Int(Sortid.Text.ToString());
                   voteitem.createDate = DateTime.Now;
                   voteitemBll.Add(voteitem);
               }

               }

               // createDate

               AddAdminLog(MXEnums.ActionEnum.Delete.ToString(), "增加文字投票,id为" + baseid); //记录日志
            JscriptMsg("添加成功", "vote_list.aspx", "Success");
        }