Beispiel #1
0
        public JsonResult EtsReqChkBarcode(EtsReqModels model)
        {
            model.AjaxEseCode = (string)Session["ESE_CODE"];

            model = act.EtsReqChkBarcode(model);
            return(Json(model.InItem));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        // GET: Ets 배송 일반 배송 신청
        public ActionResult EtsReq(EtsReqModels model, string msg)
        {
            model = act.EtsReqSetBase(model);

            if (model.act_type == "updt")
            {
                model = act.EtsReqGetInfo(model);
            }
            else
            {
                model.act_type = "ins";
            }


            return(View(model));
        }
Beispiel #4
0
        public ActionResult EtsReq(EtsReqModels model)
        {
            string resultStr = "";

            StringSplitOptions option = new StringSplitOptions();

            string[] divideGoods = new string[1];
            divideGoods[0] = "^||^";

            string[] divideAttr = new string[1];
            divideAttr[0] = "^|^";

            string[] tmpGoods = model.goodsLst.Split(divideGoods, option);

            int itemSno = 0;

            foreach (var tmpItem in tmpGoods)
            {
                if (tmpItem != "")
                {
                    string[] tmpData = tmpItem.Split(divideAttr, option);

                    OrdGoods tmpGood = new OrdGoods();
                    tmpGood.ITEMSN       = itemSno;
                    tmpGood.BARCODE      = tmpData[0];
                    tmpGood.GOODS_NAME   = tmpData[1];
                    tmpGood.BRAND        = tmpData[2];
                    tmpGood.PRICE        = int.Parse(tmpData[3]);
                    tmpGood.QTY          = int.Parse(tmpData[4]);
                    tmpGood.PURCHASE_URL = tmpData[5];
                    tmpGood.HSCODE       = tmpData[6];
                    model.Items.Add(tmpGood);
                    itemSno++;
                }
            }

            resultStr = act.EtsReqIns(model);

            return(RedirectToAction("EtsLabel", "Ets", new { msg = resultStr }));
        }
Beispiel #5
0
        public JsonResult EtsReqChkStation(EtsReqModels model)
        {
            model.AjaxEseCode = (string)Session["ESE_CODE"];

            return(Json(act.EtsReqChkStation(model)));
        }