예제 #1
0
 public JsonResult LoadConditionOfItem()
 {
     if (Session["strUserId"] == null)
     {
         return(Json(new
         {
             redirectUrl = Url.Action("Login", "Account"),
             isRedirect = true
         }));
     }
     else
     {
         var data = ConditionOfItemServices.GetAll();
         return(Json(data, JsonRequestBehavior.AllowGet));
     }
 }
        public void LoadAll(string strStoreId)
        {
            var StoreList = TransferService.GETALLBRANCHSTORE(strStoreId);

            ViewBag.StoreList = new SelectList(StoreList, "SID", "Name");

            var ItemList = ItemServices.GetDropDown();

            ViewBag.ItemList = new SelectList(ItemList, "ItemId", "ItemName");

            var TransferTypeList = TransferTypeServices.GetAll();

            ViewBag.TransferTypeList = new SelectList(TransferTypeList, "TransferTypeId", "TransferTypeName");

            var ConditionList = ConditionOfItemServices.GetAll();

            ViewBag.ConditionList = new SelectList(ConditionList, "ConditionOfItemId", "ConditionOfItemName");
        }
예제 #3
0
        public JsonResult Conditionofitemshow()
        {
            var conditionofitemlst = conditionOfItemServices.GetAll();

            return(Json(conditionofitemlst, JsonRequestBehavior.AllowGet));
        }
예제 #4
0
        // GET: ConditionOfItem
        public ActionResult Index()
        {
            var data = ConditionOfItemServices.GetAll();

            return(View(data));
        }