public getReportData ( int country, int phase, int paLibId, int concern, string actors, int kingdom, int taxonId ) : DataSet | ||
country | int | |
phase | int | |
paLibId | int | |
concern | int | |
actors | string | |
kingdom | int | |
taxonId | int | |
Результат | DataSet |
public ActionResult GenericReport(FormCollection collection) { int i = 10; IGenericRepository generics = new GenericRepository(); int country = int.Parse(collection["countries"].ToString()); int paLibId = int.Parse(collection["paragraphs"].ToString()); int concern = int.Parse(collection["concerns"].ToString()); int phase = int.Parse(collection["phases"].ToString()); string actors = collection["actors"].ToString(); int taxonid = 0; string reportkingdom = collection["reportkingdom"]; if (collection["species"] == null) taxonid = -1; else taxonid = int.Parse(collection["species"].ToString()); int kingdom = 0; switch(reportkingdom) { case UpdateUtils.ALL_KINGDOM: kingdom = 0; break; case UpdateUtils.ANIMALS: kingdom = 1; break; case UpdateUtils.PLANTS: kingdom = 2; break; } //DataSet dataTest = SPs.SpGetReportByCountries(country).GetDataSet(); actors = actors.Equals("-1") ? actors : Membership.GetUser(actors).ProviderUserKey.ToString(); DataSet dataTest = generics.getReportData(country, phase,paLibId, concern,actors, kingdom, taxonid); DataRowCollection colResults = dataTest.Tables[0].Rows; int count = colResults.Count; TempData["reportData"] = dataTest; return RedirectToAction("CountryView"); return View(); }