Ejemplo n.º 1
0
        public IActionResult Default()
        {
            int             CateID  = DataConverter.CLng(RequestEx["cateid"]);
            string          Skey    = RequestEx["skey"];
            M_GuestBookCate cateMod = cateBll.SelReturnModel(CateID);

            if (cateMod == null)
            {
                cateMod = new M_GuestBookCate()
                {
                    CateID = 0, CateName = "留言信息", NeedLog = 0
                };
            }
            ViewBag.cateMod = cateMod;
            ViewBag.cateDt  = cateBll.SelByGuest();
            ViewBag.needlog = cateMod.NeedLog;
            ViewBag.mu      = buser.GetLogin();
            PageSetting setting = B_GuestBook.SelPage(CPage, PSize, new F_Guest()
            {
                parentId  = 0,
                skey      = Skey,
                cateIds   = cateMod.CateID.ToString(),
                uids      = mu.UserID.ToString(),
                onlyAudit = true
            });

            return(View(setting));
        }
Ejemplo n.º 2
0
        public ActionResult Default()
        {
            int             CateID  = DataConverter.CLng(Request["cateid"]);
            string          Skey    = Request["skey"];
            M_GuestBookCate cateMod = cateBll.SelReturnModel(CateID);

            if (cateMod == null)
            {
                cateMod = new M_GuestBookCate()
                {
                    CateID = 0, CateName = "留言信息", NeedLog = 0
                };
            }
            ViewBag.cateMod = cateMod;
            ViewBag.cateDt  = cateBll.SelByGuest();
            ViewBag.needlog = cateMod.NeedLog;
            ViewBag.mu      = buser.GetLogin();
            PageSetting setting = cateBll.SelPage(CPage, PSize, -100, cateMod.CateID, 0, Skey, buser.GetLogin().UserID, true);

            return(View(setting));
        }
Ejemplo n.º 3
0
 private void MyBind()
 {
     RPT.DataSource = cateBll.SelByGuest();
     RPT.DataBind();
 }
Ejemplo n.º 4
0
        //留言栏目
        public IActionResult CateList()
        {
            DataTable dt = cateBll.SelByGuest();

            return(View("CateList", dt));
        }