WellData.cs 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using WebApplication3.Models;
  6. namespace WebApplication3.Clases
  7. {
  8. //public struct TextRates
  9. //{
  10. // string init;
  11. // string finish;
  12. // string rate;
  13. //}
  14. public class WellData
  15. {
  16. public WellData()
  17. {
  18. Rates = new List<TimeSerieInterno>();
  19. //StringRates = new List<TextRates>();
  20. }
  21. public bool ActiveFlag { get; set; }
  22. public string WellName { get; set; }
  23. public string X { get; set; }
  24. public string Y { get; set; }
  25. public string ZMin { get; set; }
  26. public string ZMax { get; set; }
  27. public int ScreenIntervals { get; set; }
  28. public string Bot { get; set; }
  29. public string Top { get; set; }
  30. public int PumpPeriods { get; set; }
  31. public List<TimeSerieInterno> Rates { get; set; }
  32. public Pozo ToPozo(uint acuifero)
  33. {
  34. Pozo p = new Pozo();
  35. p.IdAquifero = acuifero;
  36. p.IdSimulacion = null;
  37. p.Longitud = this.X;
  38. p.Latitud = this.Y;
  39. //p.Maximo = float.Parse(this.ZMax);
  40. p.Maximo = "0";
  41. //p.Minimo = float.Parse(this.ZMin);
  42. p.Minimo = "0";
  43. p.Nombre = this.WellName;
  44. return p;
  45. }
  46. public WellData Copy()
  47. {
  48. WellData wellData = new WellData();
  49. wellData.ActiveFlag = this.ActiveFlag;
  50. wellData.Bot = this.Bot;
  51. wellData.PumpPeriods = this.PumpPeriods;
  52. wellData.Rates = this.Rates;
  53. return wellData;
  54. }
  55. }
  56. }