public ActionResult ItemAttribute() { //ViewBag.items = DropDownHandler.Item(); ViewBag.ItemType = DropDownHandler.ItemAttribute(); return(PartialView("~/Views/Inventory/_IttemAttribute.cshtml")); }
public ActionResult AddNewAdmin() { int cid = Convert.ToInt32(Session["Cid"]); ViewBag.Designation1 = DropDownHandler.Designation(cid); return(View()); }
public ActionResult AddStocks(int id = 0) { ViewBag.item = DropDownHandler.Item(); var data = db.BranchStocks.Where(m => m.Id == id).FirstOrDefault(); return(PartialView("~/Views/BranchInventory/_AddStock.cshtml", data)); }
public ActionResult AddNewStaff(int id = 0) { if (id > 0) { var data = db.Users.Where(m => m.id == id).FirstOrDefault(); StaffHandler.Update(data.id, data); TempData["deactive"] = "User Succesfully DeActivated"; return(RedirectToAction("StaffList")); } else { int cid = Convert.ToInt32(Session["BranchCompanyid"]); ViewBag.Dept = DropDownHandler.Dept(cid); ViewBag.Designation = DropDownHandler.Designation(cid); return(View()); } }
public ActionResult NewInv(int id = 0) { for (int i = 1; i < 100; i++) { Session["AccessoryNullOrNot" + i] = ""; } ViewBag.Cat = DropDownHandler.Category(); // ViewBag.Model = DropDownHandler.Model(); ViewBag.ItemAttribute = DropDownHandler.ItemAttribute(); ViewBag.Manfacturer = DropDownHandler.Manfacturer(); ViewBag.AccesoriesItems = DropDownHandler.Item(); if (id > 0) { Session["edithide"] = "edt"; var dta = db.inventryItems.Where(m => m.id == id).FirstOrDefault(); //var subCat = db.SubCategories.Where(o => o.id == dta.CatID).FirstOrDefault(); //SubjectByClassJs(subCat.CatId); Session["UpdatCatName"] = dta.SubCategory.Category.Catgory; Session["UpdateSubcatName"] = dta.SubCategory.SubCat; Session["updateModel"] = dta.Model.Models; //InventoryItemCustom inventoryItemCustom = new InventoryItemCustom(); //inventoryItemCustom.inventryItem = dta; //inventoryItemCustom.SubCategory = subCat; return(View(dta)); } else { Session["edithide"] = "new"; return(View()); } }
public ActionResult ManufacturerLoad() { return(Json(DropDownHandler.Manfacturer(), JsonRequestBehavior.AllowGet)); }
public ActionResult CatLoad() { return(Json(DropDownHandler.Category(), JsonRequestBehavior.AllowGet)); }