public ActionResult AjaxForm() { var model = new StorageFreightWarehouseItem(); if (DoAction == ActionType.Edit) { model = _api.GetStorageFreightWarehousesItem(ArrId.FirstOrDefault()); } ViewBag.UserID = UserItem.UserId; ViewBag.User = UserItem.UserName; ViewBag.Action = DoAction; ViewBag.agency = _agencyApi.GetAll(UserItem.EnterprisesID ?? 0); return(View(model)); }
public ActionResult AjaxForm() { var model = new AreaItem(); if (DoAction == ActionType.Edit) { model = _api.GetAreaItem(ArrId.FirstOrDefault()); } ViewBag.AgencyId = _agencyApi.GetAll(UserItem.EnterprisesID ?? 0); ViewBag.listCity = _cityApi.GetAll(); ViewBag.Action = DoAction; ViewBag.ActionText = ActionText; return(View(model)); }
public ActionResult AjaxForm() { var model = new DocumentItem(); ViewBag.Action = DoAction; ViewBag.ActionText = ActionText; ViewBag.Drawer = _dnDrawerApi.GetListSimple(); ViewBag.agencyId = _agencyApi.GetAll(UserItem.EnterprisesID ?? 0); ViewBag.UserId = _dnUserApi.GetAll(UserItem.AgencyID); ViewBag.SupId = _supplieApi.GetList(UserItem.AgencyID); if (DoAction == ActionType.Edit) { model = _documentApi.GetItemsByID(ArrId.FirstOrDefault()); } return(View(model)); }
public ActionResult Index() { ViewBag.listagency = _agencyApi.GetAll(UserItem.EnterprisesID ?? 0); return(View()); }
public ActionResult Index() { return(View(_agencyApi.GetAll(EnterprisesItem.ID))); }