private void DropList() { var genderGrp = _genderService.GetAll().Data.ToList(); var bloodGrp = _bloodGroupService.GetAll().Data.ToList(); var maritalGrp = _maritalStatusService.GetAll().Data.ToList(); var disabilityGrp = _privateStatusService.GetAll().Data.ToList(); var serviceGrp = _serviceInfoService.GetAll().Data.ToList(); var currentGrp = _currentStatusService.GetAll().Data.ToList(); var workingStatusGrp = _workingStatusService.GetAll().Data.ToList(); var shiftInfoGrp = _shiftInfoService.GetAll().Data.ToList(); var workPlaceGrp = _workplaceService.GetAll().Data.ToList(); var adminStatusGrp = _adminStatusService.GetAll().Data.ToList(); var provinceGrp = _provinceService.GetAll().Data.ToList(); var tisJobGrp = _tisJobCodeService.GetAll().Data.ToList(); ViewBag.AdminStatusGrpList = new SelectList(adminStatusGrp, "IdarecilikDurumId", "IdarecilikDurumu"); ViewBag.WorkPlaceGrpList = new SelectList(workPlaceGrp, "IsYeriId", "IsYeriAdi"); ViewBag.GenderGrpList = new SelectList(genderGrp, "CinsiyetId", "Cinsiyeti"); ViewBag.BloodGrpList = new SelectList(bloodGrp, "KanGrupId", "KanGrubu"); ViewBag.MaritalStatusGrpList = new SelectList(maritalGrp, "MedeniHalId", "MedeniHali"); ViewBag.DisabilityStatusGrpList = new SelectList(disabilityGrp, "OzelDurumId", "OzelDurumu"); ViewBag.ServiceStatusGrpList = new SelectList(serviceGrp, "ServisBilgiId", "ServisBilgisi"); ViewBag.CurrentStatusGrpList = new SelectList(currentGrp, "MevcutStatuId", "MevcutStatu"); ViewBag.WorkingStatusGrpList = new SelectList(workingStatusGrp, "IstihtamDurumId", "IstihtamDurumu"); ViewBag.ShiftInfoGrpList = new SelectList(shiftInfoGrp, "VardiyaBilgiId", "VardiyaBilgisi"); ViewBag.ProvinceGrpList = new SelectList(provinceGrp, "IlId", "IlAdi"); ViewBag.TisJobGrpList = new SelectList(tisJobGrp, "TisMeslekKodId", "TisMeslekAdi"); }
private void DropBoxItem() { var workplaceGrp = _workplaceService.GetAll().Data.ToList(); var workplaceHeadquartersGrp = _workplaceHeadquartersService.GetAll().Data.ToList(); var priceTypeGrp = _priceTypeService.GetAll().Data.ToList(); var tisJobCodeGrp = _tisJobCodeService.GetAll().Data.ToList(); var adminStatusGrp = _adminStatusService.GetAll().Data.ToList(); var dailyWorkingTimeGrp = _dailyWorkingTimeService.GetAll().Data.ToList(); var disabilityStatusGrp = _privateStatusService.GetAll().Data.ToList(); var maritalStatusGrp = _maritalStatusService.GetAll().Data.ToList(); var genderGrp = _genderService.GetAll().Data.ToList(); var workingStatusGrp = _workingStatusService.GetAll().Data.ToList(); ViewBag.WorkingStatusGrpList = new SelectList(workingStatusGrp, "IstihtamDurumId", "IstihtamDurumu"); ViewBag.GenderGrpList = new SelectList(genderGrp, "CinsiyetId", "Cinsiyeti"); ViewBag.MaritalStatusGrpList = new SelectList(maritalStatusGrp, "MedeniHalId", "MedeniHali"); ViewBag.DisabilityStatusGrpList = new SelectList(disabilityStatusGrp, "OzelDurumId", "OzelDurumu"); ViewBag.DailyWorkingTimeGrpList = new SelectList(dailyWorkingTimeGrp, "GunlukCalismaSureId", "GunlukCalismaSuresi"); ViewBag.AdminStatusGrpList = new SelectList(adminStatusGrp, "IdarecilikDurumId", "IdarecilikDurumu"); ViewBag.PriceTypeGrpList = new SelectList(priceTypeGrp, "UcretTurId", "UcretTuru"); ViewBag.TisJobCodeGrpList = new SelectList(tisJobCodeGrp, "TisMeslekKodId", "TisMeslekAdi"); ViewBag.WorkplaceGrpList = new SelectList(workplaceGrp, "IsYeriId", "IsYeriAdi"); ViewBag.WorkplaceHeadquartersGrpList = new SelectList(workplaceHeadquartersGrp, "GenelMudurlukId", "GenelMudurluk"); }
public ActionResult WorkingStatusGetAll() { var result = _workingStatusService.GetAll().Data.ToList(); return(View("WorkingStatusGetAll", result)); }