public ActionResult StocList(StocListModels model) { //권한 체크=================================================== if (!chk.chkPermission("StocList", "PER_SELECT")) { return(RedirectToAction("Index", "Home", new { msg = chk.alertStr })); } //=========================================================== model = act.StocListBase(model); ProdDbModels actProd = new ProdDbModels(); EtsDbModels actEtc = new EtsDbModels(); EtsReqModels tmpModel = new EtsReqModels(); tmpModel.AjaxEseCode = (string)Session["ESE_CODE"]; tmpModel.AjaxNationCode = model.schNation; model.arrayStation = actEtc.EtsReqChkStation(tmpModel); model.cateList1 = actProd.GetCategorySelectBox(1, 0); //1차 카테고리 가져오기 model.cateList2 = actProd.GetCategorySelectBox(2, model.cate1); model.cateList3 = actProd.GetCategorySelectBox(3, model.cate2); model.cateList4 = actProd.GetCategorySelectBox(4, model.cate3); model = act.GetStocList(model); //리스트 가져오기 ViewData["pageing"] = comM.setPaging(model.Paging); //페이징 HTML 만들기 return(View(model)); }
//재고 조회========================================================================================= // GET: Stoc 재고조회 public ActionResult StocList() { //권한 체크=================================================== if (!chk.chkPermission("StocList", "PER_SELECT")) { return(RedirectToAction("Index", "Home", new { msg = chk.alertStr })); } //=========================================================== StocListModels model = new StocListModels(); model = act.StocListBase(model); //페이징 설정 초기화 model.Paging.page = 1; model.Paging.pageNum = 10; model.sortKey = "BARCODE"; //리스트 가져오기 model = act.GetStocList(model); ViewData["pageing"] = comM.setPaging(model.Paging); //페이징 HTML 만들기 return(View(model)); }
public ActionResult StocListExcel(StocListModels model) { MemoryStream stream = act.GetStocListExcel(model); return(File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "SearchResult.xlsx")); }