2023-10-18 15:35:34 +00:00
|
|
|
|
using System;
|
2024-02-12 14:43:00 +00:00
|
|
|
|
using System.Collections.Generic;
|
2023-10-18 15:35:34 +00:00
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
|
|
|
|
|
|
namespace FarmmapsKPI.Models
|
|
|
|
|
{
|
|
|
|
|
public class KPIOutput
|
|
|
|
|
{
|
|
|
|
|
public string id { get; set; }
|
|
|
|
|
public KPIOutputData data { get; set; }
|
|
|
|
|
public string type { get; set; }
|
|
|
|
|
public string unit { get; set; }
|
|
|
|
|
public string value { get; set; }
|
|
|
|
|
public string duration { get; set; }
|
|
|
|
|
public string quantity { get; set; }
|
|
|
|
|
public string parentName { get; set; }
|
|
|
|
|
public string targetValue { get; set; }
|
|
|
|
|
public string thresholdValue { get; set; }
|
2024-03-07 09:37:27 +00:00
|
|
|
|
|
|
|
|
|
public List<string> A1elements; //TtD
|
2024-02-12 14:43:00 +00:00
|
|
|
|
public List<string> B1elements;
|
|
|
|
|
public List<string> B2elements;
|
2024-03-07 09:37:27 +00:00
|
|
|
|
public List<string> C1elements;
|
2024-02-12 14:43:00 +00:00
|
|
|
|
public KPIOutput()
|
|
|
|
|
{
|
2024-03-07 09:37:27 +00:00
|
|
|
|
this.A1elements = new List<string>() { "yield", "strawYield" }; //TtD
|
|
|
|
|
this.B1elements = new List<string>() { "nHarvestedKgHa", "nHarvestedStrawKgHa", "nFixationNKgHa", "nDepositionNKgHa","nFertilizerNKgHa","sowPlantingNKgHa" }; //TtD
|
|
|
|
|
this.B2elements = new List<string>() { "pHarvestedKgHa", "pHarvestedStrawKgHa", "pFertillizerPKgHa", "sowPlantingPKgHa" }; //TtD
|
|
|
|
|
this.C1elements = new List<string>() { "fertilizerEom", "greenManureEom", "cropLeftoversEom" }; //TtD to do rename
|
2024-02-12 14:43:00 +00:00
|
|
|
|
}
|
2023-10-18 15:35:34 +00:00
|
|
|
|
}
|
|
|
|
|
public class KPIOutputData
|
|
|
|
|
{
|
|
|
|
|
public string area { get; set; }
|
|
|
|
|
public string cropTypeCode { get; set; }
|
|
|
|
|
public string cropTypeName { get; set; }
|
2024-03-11 13:35:03 +00:00
|
|
|
|
public string yield { get; set; }
|
|
|
|
|
public string strawYield { get; set; }
|
|
|
|
|
|
2024-02-12 14:43:00 +00:00
|
|
|
|
public KPIelementsOfBalance values { get; set; }
|
2023-11-22 15:16:59 +00:00
|
|
|
|
public KPIenvironmentMeasureData[] environmentMeasureData { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public class KPIenvironmentMeasureData
|
|
|
|
|
{
|
|
|
|
|
public string date { get; set; }
|
|
|
|
|
public string productCode { get; set; }
|
|
|
|
|
public string productName { get; set; }
|
|
|
|
|
public string quantity { get; set; }
|
|
|
|
|
public string unitCode { get; set; }
|
|
|
|
|
public string soilLife { get; set; }
|
|
|
|
|
public string aquaticLife { get; set; }
|
|
|
|
|
public string groundWater { get; set; }
|
2023-10-18 15:35:34 +00:00
|
|
|
|
}
|
2024-02-12 14:43:00 +00:00
|
|
|
|
public class KPIelementsOfBalance
|
|
|
|
|
{
|
2024-03-07 09:37:27 +00:00
|
|
|
|
public string yield { get; set; } //TtD
|
|
|
|
|
public string strawYield { get; set; } //TtD
|
|
|
|
|
public string nHarvestedKgHa { get; set; } //TtD
|
|
|
|
|
public string nHarvestedStrawKgHa { get; set; } //TtD
|
2024-02-12 14:43:00 +00:00
|
|
|
|
public string nFixationNKgHa { get; set; }
|
|
|
|
|
public string nDepositionNKgHa { get; set; }
|
|
|
|
|
public string nFertilizerNKgHa { get; set; }
|
|
|
|
|
public string sowPlantingNKgHa { get; set; }
|
2024-03-07 09:37:27 +00:00
|
|
|
|
public string pHarvestedKgHa { get; set; } //TtD
|
|
|
|
|
public string pHarvestedStrawKgHa { get; set; } //TtD
|
|
|
|
|
public string pFertillizerPKgHa { get; set; } //TtD
|
|
|
|
|
public string sowPlantingPKgHa { get; set; } //TtD
|
2024-02-16 11:58:00 +00:00
|
|
|
|
public string fertilizerEom { get; set; } //TtD
|
|
|
|
|
public string greenManureEom { get; set; } //TtD
|
2024-03-07 09:37:27 +00:00
|
|
|
|
public string cropLeftoversEom { get; set; } //TtD tamara: rename
|
2024-02-12 14:43:00 +00:00
|
|
|
|
}
|
2023-10-18 15:35:34 +00:00
|
|
|
|
}
|