/// <summary> /// Used for Pollantant Transfer Summary /// </summary> /// <param name="air"></param> /// <returns></returns> private static EPRTRT.DataContracts.WasteTransfers PopulateChartDataContract(List <Summary.Quantity> air) { EPRTRT.DataContracts.WasteTransfers myWasteTransfer = new EPRTRT.DataContracts.WasteTransfers(); myWasteTransfer = new EPRTRT.DataContracts.WasteTransfers(); foreach (var myAir in air) { EPRTRT.DataContracts.WasteTransfer wt = new EPRTRT.DataContracts.WasteTransfer(); wt.Total = myAir.QuantityValue.ToString().Replace(",", "."); wt.FromCountry = myAir.Name; myWasteTransfer.Add(wt); } return(myWasteTransfer); }
/// <summary> /// Poluntant Release Area Comparison /// </summary> private static EPRTRT.DataContracts.WasteTransfers PopulateChartDataContract(List <PollutantReleases.AreaComparison> waste) { EPRTRT.DataContracts.WasteTransfers myWasteTransfer = new EPRTRT.DataContracts.WasteTransfers(); foreach (var myWaste in waste) { EPRTRT.DataContracts.WasteTransfer wt = new EPRTRT.DataContracts.WasteTransfer(); //wt.Total = myWaste.Percent.ToString().Replace(",", "."); wt.Total = myWaste.Percent.ToString().Replace(",", "."); wt.DoubleCounting = myWaste.Quantity.ToString().Replace(",", "."); wt.Facilities = myWaste.Facilities.ToString().Replace(",", "."); wt.FromCountry = myWaste.Area; myWasteTransfer.Add(wt); } return(myWasteTransfer); }
/// <summary> /// PopulateChartDataContract /// </summary> private static EPRTRT.DataContracts.WasteTransfers PopulateChartDataContract(List <Summary.WastePieChart> waste) { EPRTRT.DataContracts.WasteTransfers myWasteTransfer = new EPRTRT.DataContracts.WasteTransfers(); foreach (var myWaste in waste) { EPRTRT.DataContracts.WasteTransfer wt = new EPRTRT.DataContracts.WasteTransfer(); wt.Total = myWaste.Percent.ToString().Replace(",", "."); wt.FromCountry = myWaste.Text; wt.Id = myWaste.Id; myWasteTransfer.Add(wt); } return(myWasteTransfer); }