Ejemplo n.º 1
0
        /// <summary>
        /// 获取累计加入人数
        /// </summary>
        /// <returns></returns>
        public double getLJJRCount()
        {
            B_GrabIphone gi    = new B_GrabIphone();
            int          count = gi.GetRecordCount("");

            return(count);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取当前阶段投资人数
        /// </summary>
        /// <returns></returns>
        public double getLDCount()
        {
            B_GrabIphone gi      = new B_GrabIphone();
            double       count   = Convert.ToDouble(gi.GetRecordCount("LuckDrawState=0"));
            int          ljcount = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["GrabIphone"].ToString());

            return((count / ljcount) * 100);
        }
Ejemplo n.º 3
0
        // GET: activity/T20160910
        public ActionResult Index()
        {
            B_GrabIphone gi = new B_GrabIphone();

            ViewBag.ltrCurrentCount = gi.GetRecordCount("LuckDrawState=0") + "";
            ViewBag.getLDCount      = getLDCount();
            ViewBag.getLJJRCount    = getLJJRCount();
            ViewBag.getCYLIst       = getCYLIst();
            ViewBag.getZJLIst       = getZJLIst();


            return(View());
        }