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"); }
public JsonResult Conditionofitemshow() { var conditionofitemlst = conditionOfItemServices.GetAll(); return(Json(conditionofitemlst, JsonRequestBehavior.AllowGet)); }
// GET: ConditionOfItem public ActionResult Index() { var data = ConditionOfItemServices.GetAll(); return(View(data)); }