/** * DailyGasInjectionWells */ public static List <DailyGiWells> ObjectToDailyGasInjectionWellList(dynamic newDailyGasInjectionWellsList, int dailyReportTotalId) { List <DailyGiWells> dailyGasInjectionWellList = new List <DailyGiWells>(); foreach (dynamic newDailyGasInjectionWell in newDailyGasInjectionWellsList) { DailyGiWells dailyGasInjectionWell = ObjectToDailyGasInjectionWell(newDailyGasInjectionWell, dailyReportTotalId); dailyGasInjectionWellList.Add(dailyGasInjectionWell); } return(dailyGasInjectionWellList); }
private static DailyGiWells ObjectToDailyGasInjectionWell(dynamic newDailyGasInjectionWell, int dailyReportTotalId) { DailyGiWells dailyGasInjectionWell = new DailyGiWells(); dailyGasInjectionWell.DailyreportId = dailyReportTotalId; dailyGasInjectionWell.WellName = Convert.ToString(newDailyGasInjectionWell.well_name); dailyGasInjectionWell.OnlineTime = convertToDecimal(newDailyGasInjectionWell.online_time); dailyGasInjectionWell.ChokeOpening = convertToDecimal(newDailyGasInjectionWell.choke_opening); dailyGasInjectionWell.Whp = convertToDecimal(newDailyGasInjectionWell.WHP); dailyGasInjectionWell.Wht = convertToDecimal(newDailyGasInjectionWell.WHT); dailyGasInjectionWell.Bhp = convertToDecimal(newDailyGasInjectionWell.BHP); dailyGasInjectionWell.Bht = convertToDecimal(newDailyGasInjectionWell.BHT); dailyGasInjectionWell.GasInjectionAllocated = convertToDecimal(newDailyGasInjectionWell.gas_injection_allocated); dailyGasInjectionWell.GasInjectionTarget = convertToDecimal(newDailyGasInjectionWell.gas_injection_target); dailyGasInjectionWell.GasInjectionMeasured = convertToDecimal(newDailyGasInjectionWell.gas_injection_measured); return(dailyGasInjectionWell); }