コード例 #1
0
ファイル: CsController.cs プロジェクト: HanB2/CSharpPractice
        // GET: Cs C/S 문의 사항 관리
        public ActionResult CsQna(string searchString, string msg)
        {
            //권한 체크===================================================
            if (!chk.chkPermission("CsQna", "PER_SELECT"))
            {
                return(RedirectToAction("Index", "Home", new { msg = chk.alertStr }));
            }
            //===========================================================

            TempData["PublicMsg"] = null;
            if (!string.IsNullOrEmpty(msg))
            {
                TempData["PublicMsg"] = msg;
            }

            CsDbModels  act   = new CsDbModels();
            CsQnaModels model = new CsQnaModels();

            //페이징 설정 초기화
            model.Paging.page    = 1;
            model.Paging.pageNum = 10;
            model.sortKey        = "SEQNO";

            //리스트 가져오기
            model = act.GetCsQnaList(model);

            ViewData["pageing"] = comM.setPaging(model.Paging);                //페이징 HTML 만들기

            return(View(model));
        }