Esempio n. 1
0
        public void GetFBODetailsByICAO_FBO_Admin(string icao, string fbo, int clientId)
        {
            List <SqlParameter> parameters = new List <SqlParameter>();

            parameters.Add(new SqlParameter("@ICAO", icao));
            parameters.Add(new SqlParameter("@FBO", fbo));
            parameters.Add(new SqlParameter("@AdminClientID", clientId));
            using (SqlDataReader reader = ExecutionHelper.ExecuteReader("up_Select_FBODetailsByAndICAOAndFBOAndAdminClientID", parameters))
            {
                if (reader == null)
                {
                    return;
                }
                if (reader.Read())
                {
                    //SetProperties(reader);
                    //AcukwikFBO = new AcukwikFBOHandlerDetail();
                    //AcukwikFBO.SetProperties(reader);
                    //Airports = new AcukwikAirports();
                    //CustomFields = new FBODetailCustomFieldsCollection();
                    //CustomFields.GetCustomFields(fbo, icao, clientId);
                    FBOPriceMargins margin = new FBOPriceMargins();
                    margin.SetProperties(reader);
                    margin.AcukwikFBO = new AcukwikFBOHandlerDetail();
                    margin.AcukwikFBO.SetProperties(reader);
                    margin.Airports = new AcukwikAirports();
                    margin.Airports.SetProperties(reader);
                    margin.CustomFields = new FBODetailCustomFieldsCollection();
                    margin.CustomFields.GetCustomFields(fbo, icao, clientId);
                }
            }
        }
Esempio n. 2
0
        public static FBOPriceMargins GetFBODetailsWithCustomFields(string icao, string fbo, int clientId)
        {
            FBOPriceMargins collection = new FBOPriceMargins();

            collection.GetFBODetailsByICAO_FBO_Admin(icao, fbo, clientId);
            return(collection);
        }