Esempio n. 1
0
        // GET: Ets 배송 배송 상태 조회
        public ActionResult EtsList(EtsListModels model, string msg)
        {
            //권한 체크===================================================
            if (!chk.chkPermission("EtsList", "PER_SELECT"))
            {
                return(RedirectToAction("Index", "Home", new { msg = chk.alertStr }));
            }
            //===========================================================

            model = act.EtsListSetBase(model);

            //셀렉트박스 세팅
            model.arrayENation = act.GetNationCodeSelectBox();

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


            //리스트 가져오기
            model = act.GetEtsList(model);
            ViewData["pageing"] = comM.setPaging(model.Paging);             //페이징 HTML 만들기

            return(View(model));
        }
Esempio n. 2
0
        public ActionResult EtsList(EtsListModels model)
        {
            //권한 체크===================================================
            if (!chk.chkPermission("EtsList", "PER_SELECT"))
            {
                return(RedirectToAction("Index", "Home", new { msg = chk.alertStr }));
            }
            //===========================================================

            // 선택 삭제일 경우
            if (model.act_type == "delChk")
            {
                //권한 체크===================================================
                if (!chk.chkPermission("EtsList", "PER_DELETE"))
                {
                    return(RedirectToAction("EtsList", new { msg = chk.alertStr }));
                }
                //===========================================================

                TempData["PublicMsg"] = act.delEtsLabelList(model.delChk);                 //삭제
                model.act_type        = "list";
                model.act_key         = 0;
            }

            model.arrayENation = act.GetNationCodeSelectBox();

            /*
             * foreach (schTypeArray tempS in model.arrayENation)
             * {
             *      if (tempS.opt_key == model.Item.NATION_CODE)
             *      {
             *              model.Item.NATION_NAME = tempS.opt_value;
             *      }
             * }
             */

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

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

            return(View(model));
        }
Esempio n. 3
0
 public ActionResult EtsListView(EtsListModels model)
 {
     return(View(model));
 }
Esempio n. 4
0
        public ActionResult EtsListView()
        {
            EtsListModels model = new EtsListModels();

            return(View());
        }