public ActionResult checkall(int agencyid) { _dnUser.GetListAllAgency(agencyid); var listItem = _dnAgencyApi.GetItemById(agencyid); return(Json(listItem, JsonRequestBehavior.AllowGet)); }
public ActionResult AjaxForm() { var model = new FormCashAdvanceItem { ObjItem = (DoAction == ActionType.Edit) ? _api.GetCashAdvanceItem(ArrId.FirstOrDefault()) : new CashAdvanceItem(), Action = DoAction.ToString(), AgencyId = UserItem.AgencyID, UserId = UserItem.UserId, Users = _userApi.GetListAllAgency(UserItem.AgencyID), Users1 = _userApi.GetAll(UserItem.AgencyID) }; return View(model); }
public ActionResult AjaxForm() { var model = new FormReceiptPaymentItem { ObjItem = (DoAction == ActionType.Edit) ? _api.GetPaymentItem(ArrId.FirstOrDefault()) : new ReceiptPaymentItem(), Action = DoAction.ToString(), AgencyId = UserItem.AgencyID, UserId = UserItem.UserId, Users = _userApi.GetListAllAgency(UserItem.AgencyID), CostTypeItems = _costTypeApi.GetList(UserItem.AgencyID, (int)Vouchers.Payment) }; return(View(model)); }
public ActionResult AjaxForm() { var model = new ReceiptPaymentItem(); if (DoAction == ActionType.Edit) { model = _api.GetReceiptItem(ArrId.FirstOrDefault()); } ViewBag.CostType = _costTypeApi.GetList(UserItem.AgencyID, (int)Vouchers.Receipt); ViewBag.Action = DoAction; ViewBag.AgencyId = UserItem.AgencyID; ViewBag.UserCreate = UserItem.UserId; ViewBag.User = _userApi.GetListAllAgency(UserItem.AgencyID); return(View(model)); }