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

(开头部分) 4KB

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

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

namespace MxWeiXinPF.Web.admin.vote
{


    public partial class vote_result : Web.UI.ManagePage
    {
 

        BLL.wx_vote_item gbll = new BLL.wx_vote_item();
        int aid = 0;
        int wid = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            aid = MyCommFun.RequestInt("aid");
            wid = MyCommFun.RequestInt("wid");
            if (!Page.IsPostBack)
            {
                
                if (aid == 0)
                {
                    JscriptMsg("参数不正确!", "back", "Error");
                    return;
                }
                RptBind("id desc", aid);
            }

        }

        private void RptBind(string _strWhere, int aid)
        {
            _strWhere = "baseid=" + aid;

            DataSet ds = gbll.GetList(_strWhere);
            int ttCount = 0;


            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                ttCount = MyCommFun.Obj2Int(ds.Tables[0].Compute("sum(tpTimes)", "TRUE"));

                DataRow dr;

                int count = ds.Tables[0].Rows.Count;
                for (int i = 0; i < count; i++)
                {
                    dr = ds.Tables[0].Rows[i];
                    //totalnum+= Convert.ToInt32(ds.Tables[0].Rows[i]["tpTimes"]);//总数
                    //百分比totalnum
                    // baifenbi = Convert.ToInt32(ds.Tables[0].Rows[i]["tpTimes"]) / totalnum;
后面还有 104 行代码,购买后查看完整代码

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

AI 解读

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

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