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");
        }
Beispiel #2
0
        public ActionResult Added()
        {
            var bloodGrp         = _bloodGroupService.GetAll().Data.ToList();
            var gender           = _genderService.GetAll().Data.ToList();
            var maritalStatus    = _maritalStatusService.GetAll().Data.ToList();
            var disabilityStatus = _disabilityStatusService.GetAll().Data.ToList();

            ViewBag.BloodGrpList         = new SelectList(bloodGrp, "KanGrupId", "KanGrubu");
            ViewBag.GenderList           = new SelectList(gender, "CinsiyetId", "Cinsiyeti");
            ViewBag.MaritalStatusList    = new SelectList(maritalStatus, "MedeniHalId", "MedeniHali");
            ViewBag.DisabilityStatusList = new SelectList(disabilityStatus, "OzelDurumId", "OzelDurumu");
            return(View());
        }
Beispiel #3
0
        private List <SelectListItem> GetBloodGroupSelectList()
        {
            // blood group select list
            List <SelectListItem> resultList = new List <SelectListItem>();

            try
            {
                resultList = _bloodGroupService.GetAll().OrderBy(r => r.Name).Select(r => new SelectListItem()
                {
                    Value = r.Id.ToString(), Text = r.Name
                }).ToList();
            }
            catch
            {
                resultList = new List <SelectListItem>();
            }
            return(resultList);
        }
 public IEnumerable <Master_Bloodgroup> GetAll(Master_Bloodgroup obj, string[] param, string spName)
 {
     return(_IBloodGroupService.GetAll(obj, param, spName));
 }