Esempio n. 1
0
        /**
         * DailyProductionWells
         */
        public static List <DailyWiWells> ObjectToDailyWaterInjectionWellList(dynamic newDailyWaterInjectionWellsList, int dailyReportTotalId)
        {
            List <DailyWiWells> dailyWaterInjectionWellList = new List <DailyWiWells>();

            foreach (dynamic newDailyWaterInjectionWell in newDailyWaterInjectionWellsList)
            {
                DailyWiWells dailyWaterInjectionWell = ObjectToDailyWaterInjectionWell(newDailyWaterInjectionWell, dailyReportTotalId);
                dailyWaterInjectionWellList.Add(dailyWaterInjectionWell);
            }

            return(dailyWaterInjectionWellList);
        }
Esempio n. 2
0
        private static DailyWiWells ObjectToDailyWaterInjectionWell(dynamic newDailyWaterInjectionWell, int dailyReportTotalId)
        {
            DailyWiWells dailyWaterInjectionWell = new DailyWiWells();

            dailyWaterInjectionWell.DailyreportId           = dailyReportTotalId;
            dailyWaterInjectionWell.WellName                = Convert.ToString(newDailyWaterInjectionWell.well_name);
            dailyWaterInjectionWell.OnlineTime              = convertToDecimal(newDailyWaterInjectionWell.online_time);
            dailyWaterInjectionWell.ChokeOpening            = convertToDecimal(newDailyWaterInjectionWell.choke_opening);
            dailyWaterInjectionWell.Whp                     = convertToDecimal(newDailyWaterInjectionWell.WHP);
            dailyWaterInjectionWell.Wht                     = convertToDecimal(newDailyWaterInjectionWell.WHT);
            dailyWaterInjectionWell.Bhp                     = convertToDecimal(newDailyWaterInjectionWell.BHP);
            dailyWaterInjectionWell.BhpLimit                = convertToDecimal(newDailyWaterInjectionWell.BHT_limit);
            dailyWaterInjectionWell.Bht                     = convertToDecimal(newDailyWaterInjectionWell.BHT);
            dailyWaterInjectionWell.WaterInjectionAllocated = convertToDecimal(newDailyWaterInjectionWell.water_injection_allocated);
            dailyWaterInjectionWell.WaterInjectionTarget    = convertToDecimal(newDailyWaterInjectionWell.water_injection_target);
            dailyWaterInjectionWell.WaterInjectionMeasured  = convertToDecimal(newDailyWaterInjectionWell.water_injection_measured);

            return(dailyWaterInjectionWell);
        }