public MastersController() { result = new Result(); countryUtil = new CountryUtil(); stateUtil = new StateUtil(); cityUtil = new CityUtil(); }
public JsonController() { Result = new Result(); countryUtil = new CountryUtil(); stateUtil = new StateUtil(); areaUtil = new AreaUtil(); userUtil = new UserUtil(); subareaUtil = new SubAreaUtil(); appointmentTypeUtil = new AppointmentTypeUtil(); currencyUtil = new CurrencyUtil(); dateFormatUtil = new DateFormatUtil(); languageUtil = new LanguageUtil(); religionUtil = new ReligionUtil(); durationDaysUtil = new DurationDaysUtil(); sourceUtil = new SourceUtil(); packageUtil = new PackageUtil(); cityUtil = new CityUtil(); //scoreColumnUtil = new ScoreColumnUtil(); nationalityUtil = new NationalityUtil(); timeFormatUtil = new TimeFormatUtil(); industryUtil = new IndustryUtil(); paymentModeUtil = new PaymentModeUtil(); applicationTemplatePlaceHolderUtil = new ApplicationTemplatePlaceHolderUtil(); jobTypeUtill = new JobTypeUtill(); jobStatusUtill = new JobStatusUtill(); packageTypeUtill = new PackageTypeUtill(); paperTypeUtill = new PaperTypeUtill(); paperSubTypeUtill = new PaperSubTypeUtill(); paymentStatusUtill = new PaymentStatusUtill(); currencyUtil = new CurrencyUtil(); leminationTypeUtill = new LeminationTypeUtill(); }
public ActionResult Country(string country) // the parameter needed to use string interpolation in CountryUtil { RegionInfo myRI = new RegionInfo(country); CountryUtil cu = new CountryUtil(); IndividualSpecies ind = new IndividualSpecies(); var countryspecies = cu.Country(country); //var endangeredSpecies = cu.Country(country).Where(c => c.Category == "EN"); //var extinctSpecies = cu.Country(country).Where(c => c.Category == "EX"); //var extinctWildSpecies = cu.Country(country).Where(c => c.Category == "EW"); //var criticallyEndangeredSpecies = cu.Country(country).Where(c => c.Category == "CR"); //var vulnerableSpecies = cu.Country(country).Where(c => c.Category == "VU"); var allThreatenedSpecies = cu.Country(country).Where(c => c.Category == "EN" || c.Category == "EX" || c.Category == "EW" || c.Category == "CR" || c.Category == "VU"); ViewBag.C = myRI.EnglishName; // Annukka is PROUD of this bit :) ViewBag.RI = myRI; ViewBag.Categories = string.Join("", ind.Category); RestUtil ru = new RestUtil(); //foreach (var item in allThreatenedSpecies) //{ // //string name = ru.SingleSpecies(item.ScientificName).FirstOrDefault()?.MainCommonName; // string name = ru.SingleSpecies(item.ScientificName).FirstOrDefault()?.MainCommonName; // item.CommonName = name; //} return(View(allThreatenedSpecies)); // check what we actually want here!! //return View(countryspecies); }
public MastersController() { result = new Result(); countryUtil = new CountryUtil(); stateUtil = new StateUtil(); cityUtil = new CityUtil(); areaUtil = new AreaUtil(); subareaUtil = new SubAreaUtil(); appointmentTypeUtil = new AppointmentTypeUtil(); currencyUtil = new CurrencyUtil(); dateFormatUtil = new DateFormatUtil(); documentTypeUtil = new DocumentTypeUtil(); languageUtil = new LanguageUtil(); religionUtil = new ReligionUtil(); nationalityUtil = new NationalityUtil(); sourceUtil = new SourceUtil(); durationDaysUtil = new DurationDaysUtil(); packageUtil = new PackageUtil(); // scoreColumnUtil = new ScoreColumnUtil(); timeFormatUtil = new TimeFormatUtil(); industryUtil = new IndustryUtil(); paymentModeUtil = new PaymentModeUtil(); applicationTemplatePlaceHolderUtil = new ApplicationTemplatePlaceHolderUtil(); }
public JsonController() { Result = new Result(); countryUtil = new CountryUtil(); stateUtil = new StateUtil(); userUtil = new UserUtil(); }
public CompanySettingController() { CompanyId = SessionUtil.GetCompanyID(); result = new Result(); companyUtil = new CompanyUtil(); stateUtil = new StateUtil(); countryUtil = new CountryUtil(); packageUtil = new PackageUtil(); }
public ActionResult VUSpecies(string country) { RegionInfo myRI = new RegionInfo(country); CountryUtil cu = new CountryUtil(); var vulnerableSpecies = cu.Country(country).Where(c => c.Category == "VU"); ViewBag.C = myRI.EnglishName; return(View(vulnerableSpecies)); }
public ActionResult CRSpecies(string country) { RegionInfo myRI = new RegionInfo(country); CountryUtil cu = new CountryUtil(); var criticallyEndangeredSpecies = cu.Country(country).Where(c => c.Category == "CR"); ViewBag.C = myRI.EnglishName; return(View(criticallyEndangeredSpecies)); }
public ActionResult EWSpecies(string country) { RegionInfo myRI = new RegionInfo(country); CountryUtil cu = new CountryUtil(); var extinctWildSpecies = cu.Country(country).Where(c => c.Category == "EW"); ViewBag.C = myRI.EnglishName; return(View(extinctWildSpecies)); }
public ActionResult ENSpecies(string country) { RegionInfo myRI = new RegionInfo(country); CountryUtil cu = new CountryUtil(); var endangeredSpecies = cu.Country(country).Where(c => c.Category == "EN"); ViewBag.C = myRI.EnglishName; ViewBag.EN = endangeredSpecies; return(View(endangeredSpecies)); }
public ActionResult EditUser(string id) { user user = new user(); if (id != null && id != "") { ViewBag.Title = "User Edit"; user = db.users.Find(Convert.ToInt32(id)); } else { ViewBag.Title = "User Create"; } countryUtil = new CountryUtil(); userUtil = new Models.UserUtil(); /// ViewBag.parent_user_id = userUtil.ParentUserList(); return(View(user)); }
public ActionResult CompanyInfo(string id) { COMPANY company = new COMPANY(); if (id != null && id != "") { //ViewBag.Title = "Company Edit"; company = db.COMPANies.Find(Convert.ToInt32(id)); } //else //{ // ViewBag.Title = "Company Create"; //} countryUtil = new CountryUtil(); ViewBag.country_id = new SelectList(countryUtil.GetCountry(), "Value", "Text", company != null ? (company.CompanyId > 0 ? company.CITY.STATE.CountryId : 0) : 0); ViewBag.state_id = new SelectList(new StateUtil().GetStateSelectList(company != null ? (company.CityId > 0 ? company.CITY.STATE.CountryId : 0) : 0), "Value", "Text", company != null ? (company.CityId > 0 ? company.CITY.StateId : 0) : 0); ViewBag.CityId = new SelectList(new CityUtil().GetCitySelectList(company != null ? (company.CityId > 0 ? company.CITY.StateId : 0) : 0), "Value", "Text", company != null ? (company.CityId) : 0); ViewBag.TimeZone = BaseUtil.GetTimeZoneInfo(); return(PartialView(company)); }
public ActionResult Create(string id) { //CompanyUser companyUserData = new Models.CompanyUser(); COMPANY company = new COMPANY(); if (id != null && id != "") { ViewBag.Title = "Company Edit"; //companyUserData = companyUtil.GetCompanyData(id); company = db.COMPANies.Find(Convert.ToInt32(id)); } else { ViewBag.Title = "Company Create"; } countryUtil = new CountryUtil(); ViewBag.country_id = new SelectList(countryUtil.GetCountry(), "Value", "Text", company.CompanyId > 0 ? company.CITY.STATE.CountryId : 0); ViewBag.state_id = new SelectList(new StateUtil().GetStateSelectList(company.CityId > 0 ? company.CITY.STATE.CountryId : 0), "Value", "Text", company.CityId > 0 ? company.CITY.StateId : 0); ViewBag.CityId = new SelectList(new CityUtil().GetCitySelectList(company.CityId > 0 ? company.CITY.StateId : 0), "Value", "Text", company.CityId); ViewBag.TimeZone = BaseUtil.GetTimeZoneInfo(); return(View(company)); }
public ActionResult Country(string country) { RegionInfo myRI = new RegionInfo(country); CountryUtil cu = new CountryUtil(); IndividualSpecies ind = new IndividualSpecies(); var countryspecies = cu.Country(country); var allThreatenedSpecies = cu.Country(country).Where(c => c.Category == "EN" || c.Category == "EX" || c.Category == "EW" || c.Category == "CR" || c.Category == "VU"); ViewBag.C = myRI.EnglishName; ViewBag.RI = myRI; ViewBag.Categories = string.Join("", ind.Category); RestUtil ru = new RestUtil(); //TODO: Upload common names to a json from which to query //foreach (var item in allThreatenedSpecies) //{ // //string name = ru.SingleSpecies(item.ScientificName).FirstOrDefault()?.MainCommonName; // string name = ru.SingleSpecies(item.ScientificName).FirstOrDefault()?.MainCommonName; // item.CommonName = name; //} return(View(allThreatenedSpecies)); // check what we actually want here!! }
public CompanyController() { result = new Result(); companyUtil = new CompanyUtil(); countryUtil = new CountryUtil(); }