// GET: Ets 배송 배송 라벨 출력 public ActionResult EtsLabel(EtsLabelModels model, string msg) { //권한 체크=================================================== if (!chk.chkPermission("EtsLabel", "PER_SELECT")) { return(RedirectToAction("Index", "Home", new { msg = chk.alertStr })); } //=========================================================== TempData["PublicMsg"] = null; if (!string.IsNullOrEmpty(msg)) { TempData["PublicMsg"] = msg; } model = act.EtsLabelSetBase(model); //셀렉트박스 세팅 model.arrayENation = act.GetNationCodeSelectBox(); //페이징 설정 초기화 model.Paging.page = 1; model.Paging.pageNum = 10; model.sortKey = "WAYBILLNO"; //리스트 가져오기 model = act.GetEtsLabelList(model); ViewData["pageing"] = comM.setPaging(model.Paging); //페이징 HTML 만들기 return(View(model)); }
public ActionResult EtsLabel(EtsLabelModels model) { //권한 체크=================================================== if (!chk.chkPermission("EtsLabel", "PER_SELECT")) { return(RedirectToAction("Index", "Home", new { msg = chk.alertStr })); } //=========================================================== // 선택 삭제일 경우 if (model.act_type == "delChk") { //권한 체크=================================================== if (!chk.chkPermission("EtsLabel", "PER_DELETE")) { return(RedirectToAction("EtsLabel", 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.EtsLabelSetBase(model); model = act.GetEtsLabelList(model); //페이징 HTML 만들기 ViewData["pageing"] = comM.setPaging(model.Paging); return(View(model)); }