예제 #1
0
        public ActionResult NewsList()
        {
            ViewBag.Title = "财富金-大学生喜爱的购物平台";
            DataTable dtcfj= new BLL.NewsBase().GetList(" m_ID='8960F09C-EC5A-4F66-8A02-27D6079CFF3B' and n_StatusCode=0 and n_IsDel=0 order by n_IsTop desc,n_Sort desc,n_CreatedOn desc;").Tables[0];
            ViewData["dtcfjlist"] = dtcfj;

            return View();
        }
        public Model.NewsBase GetArticle(string id)
        {
            int nid = 0;
            if (int.TryParse(id, out nid))
            {
                BLL.NewsBase _newsBase = new BLL.NewsBase();
                var model = _newsBase.GetModel(nid);
                return model;
            }

            return null;
        }
예제 #3
0
        public ActionResult NewsDetails()
        {
            string nid = Request.QueryString["nid"];
            Model.NewsBase model = new BLL.NewsBase().GetModel(int.Parse(nid));
            if (model != null)
            {
                ViewBag.Title = model.n_Title+"-书生网shusheng360.com";
            }
            else {
                ViewBag.Title = "新闻详细页-书生网shusheng360.com";
            }

            return View(model);
        }
예제 #4
0
 public ActionResult NewsBaseYouQingLinkAdd()
 {
     Model.NewsBase nb = new Model.NewsBase();
     this.ViewData["otype"] = RequestBase.GetString("otype");
     this.ViewData["mid"] = RequestBase.GetString("mid");
     switch (RequestBase.GetString("otype"))
     {
         case "modify":
             string nid = RequestBase.GetString("n_ID");
             Model.NewsBase model = new BLL.NewsBase().GetModel(int.Parse(nid));
             return View(model);
         default:
             break;
     }
     return View();
 }
예제 #5
0
        private object GetNewsBase(string mID)
        {
            BLL.NewsBase newsBase = new BLL.NewsBase();
            var list = newsBase.GetModelList("m_ID = '" + mID + "' and n_IsTop = 1 and n_IsDel = 0 and n_StatusCode = 0 order by n_Sort");

            return list;
        }
예제 #6
0
 public void caifujin()
 {
     DataTable dtcfj = new BLL.NewsBase().GetList(4, " m_ID='8960F09C-EC5A-4F66-8A02-27D6079CFF3B' and n_StatusCode=0 and n_IsDel=0 ", " n_IsTop desc,n_Sort desc,n_CreatedOn desc; ").Tables[0];
     ViewData["dtcfjlist"] = dtcfj;
 }
예제 #7
0
        public ActionResult vipscore()
        {
            int pageSize = 6;//每一页的行数
            int pageNumber = 1;//当前页数
            DateTime from, to;
            string where = "";
            int mid = 0;
            if (LoginMember != null)
            {
                mid = (CookieEncrypt.DeserializeObject(System.Web.HttpContext.Current.Request.Cookies["UserInfo"].Value) as Model.MemberBase).m_ID;

                Model.MemberBase mmodel = new Model.MemberBase();
                Model.OrderBase omodel = new Model.OrderBase();
                int fen = 0;
                decimal fenj = 0;
                var list = new BLL.OrderBase().GetModelListbypric(" m_ID=" + mid + " and o_StatusCode=4 and o_IsDel=0 order by o_CreateOn desc");
                foreach (var i in list)
                {
                    fen += int.Parse(i.o_Score.ToString());
                }
                var pagelist = list.ToPagedList(pageNumber, pageSize);
                var mlist = new BLL.MemberBase().GetModel(mid);
                ViewData["mScore"] = mlist.m_Score;
                ViewData["mid"] = mid;
                ViewData["count"] = list.Count;
                ViewData["pagerows"] = pageSize;
                ViewData["page"] = pageNumber;
                var jifen = new BLL.NewsBase().GetModelList(" n_Title='积分规则' and n_StatusCode=0 and n_IsDel=0");
                ViewBag.jifen = jifen[0].n_Content;
                ViewBag.orderinfo = pagelist.ToList();
                List<Model.RejectionBase> lvlist = new BLL.RejectionBase().GetModelList("  m_ID=" + mid + " and r_Status=2 and r_Isdelete=0");

                foreach (var i in lvlist)
                {
                    if ((i.r_Price.ToString()).IndexOf('.') > 0)
                    {
                        fenj += int.Parse((i.r_Price.ToString()).Substring(0, (i.r_Price.ToString()).IndexOf('.')));
                    }
                }
                if (fen - int.Parse(fenj.ToString()) > 0)
                {
                    ViewData["jifenshu"] = fen - int.Parse(fenj.ToString());
                }
                else
                {
                    ViewData["jifenshu"] = 0;
                }
                return View(lvlist.ToList());
            }
            else
            {
                Response.Redirect("/Index/Index");
                return View();
            }
        }
예제 #8
0
        //申请退单
        public ActionResult vipApplyForReturnOrder()
        {
            int oid = 0;
            int mid = 0;
            if (LoginMember != null)
            {
                if (!string.IsNullOrEmpty(RequestBase.GetString("oid")))
                {
                    oid = int.Parse(RequestBase.GetString("oid"));
                }
                mid = (CookieEncrypt.DeserializeObject(System.Web.HttpContext.Current.Request.Cookies["UserInfo"].Value) as Model.MemberBase).m_ID;
                //订单信息
                ViewBag.orderinfo = obll.GetModel(oid);
                var tuidanshuoming = new BLL.NewsBase().GetModelList(" n_Title='退单说明' and n_StatusCode=0 and n_IsDel=0");
                ViewBag.shuoming = tuidanshuoming[0].n_Content;

            }
            else
            {
                Response.Redirect("/Index/Index");
                return View();
            }
            return View();
        }