コード例 #1
0
ファイル: Mappings.cs プロジェクト: equinor/RPA_Functions
        /**
         * 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);
        }
コード例 #2
0
ファイル: Mappings.cs プロジェクト: equinor/RPA_Functions
        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);
        }