public ActionResult StocInOut(StocInOutModels model) { //권한 체크=================================================== if (!chk.chkPermission("StocInOut", "PER_SELECT")) { return(RedirectToAction("Index", "Home", new { msg = chk.alertStr })); } //=========================================================== model = act.StocInOutBase(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.GetStocInOut(model); //리스트 가져오기 ViewData["pageing"] = comM.setPaging(model.Paging); //페이징 HTML 만들기 return(View(model)); }
public ActionResult StocInOutView(string barcode) { //권한 체크=================================================== if (!chk.chkPermission("StocList", "PER_SELECT")) { return(RedirectToAction("Index", "Home", new { msg = chk.alertStr })); } //=========================================================== StocInOutModels model = new StocInOutModels(); model.BaseBarcode = barcode; model.BaseEseCode = (string)Session["ESE_CODE"]; //페이징 설정 초기화 model.Paging.page = 1; model.Paging.pageNum = 10; model.sortKey = "BARCODE"; //act.GetStocInOut(model); 참조 검색조건 없이 바코드 + ESE_CODE 검색 model = act.StocInOutView(model); ViewData["pageing"] = comM.setPaging(model.Paging); //페이징 HTML 만들기 return(View(model)); }
//입출고 내역 조회================================================================================================================= // GET: Stoc 입출고 내역 조회 public ActionResult StocInOut() { //권한 체크=================================================== if (!chk.chkPermission("StocInOut", "PER_SELECT")) { return(RedirectToAction("Index", "Home", new { msg = chk.alertStr })); } //=========================================================== StocInOutModels model = new StocInOutModels(); model = act.StocInOutBase(model); //페이징 설정 초기화 model.Paging.page = 1; model.Paging.pageNum = 10; model.sortKey = "BARCODE"; //리스트 가져오기 model = act.GetStocInOut(model); ViewData["pageing"] = comM.setPaging(model.Paging); //페이징 HTML 만들기 return(View(model)); }