Exemple #1
0
        /// <summary>
        /// Allows to register a new TiqueteNacional
        /// </summary>
        /// <param name="t">Object type TiqueteNacional which will be registered</param>
        public void registrarTiqueteNac(TiqueteNacional d)
        {
            validarTiqNac(d);
            TiquetesDAL x = new TiquetesDAL();

            x.registrarTiqNac(d);
        }
Exemple #2
0
        /// <summary>
        /// Allows to register a new international ticket
        /// </summary>
        /// <param name="z">Object Type TiqueteInternacional</param>
        public void registrarTiqInt(TiqueteInternacional z)
        {
            validarTiqInter(z);
            TiquetesDAL x = new TiquetesDAL();

            x.registrarTiqInter(z);
        }
Exemple #3
0
        /// <summary>
        /// Allows to generate the consecutive number of each cash register
        /// </summary>
        /// <returns>num of the consecutive cash register </returns>
        public int numeroCorte()
        {
            TiquetesDAL x = new TiquetesDAL();
            int         a = x.numeroCorte() + 1;

            return(a);
        }
Exemple #4
0
        /// <summary>
        /// Allows to charge a list of all sold national tickets  in a specific date to make an cash register
        /// </summary>
        /// <param name="info"> Object type CierreCaja to find the specific tickets</param>
        /// <returns>list of national tickets</returns>
        public List <TiqueteNacional> cargarTiquetesArq(CierreCaja info)
        {
            TiquetesDAL            x = new TiquetesDAL();
            List <TiqueteNacional> d = x.cargarTiquetesNacArq(info);

            return(d);
        }
Exemple #5
0
        /// <summary>
        /// Allows to register a new Passenger
        /// </summary>
        /// <param name="d">Object Type Pasajero</param>
        public void registrarPasajero(Pasajero d)
        {
            validarPasajero(d);
            TiquetesDAL x = new TiquetesDAL();

            x.registrarPasajero(d);
        }
Exemple #6
0
        /// <summary>
        /// Allows to register a new cash register
        /// </summary>
        /// <param name="d">Object type CorteCaja</param>
        public void registrarCorteCaja(CorteCaja d)
        {
            validarCorte(d);
            TiquetesDAL x = new TiquetesDAL();

            x.registrarCorteCaja(d);
        }
Exemple #7
0
        /// <summary>
        /// Allows to generate the amount of money that a user has generate during the day
        /// </summary>
        /// <param name="user">Username who will do the cahs register </param>
        public double CierreCaja(string user)
        {
            TiquetesDAL x = new TiquetesDAL();
            double      d = x.MontoUsuario(user);

            d += 20000;
            return(d);
        }
Exemple #8
0
        /// <summary>
        /// Allows to charge the availables bus seats for a specific date
        /// </summary>
        /// <param name="fec">specific date </param>
        /// <param name="hora">specific Hour </param>
        /// <returns>List of numbers of the available bus seats</returns>
        public List <int> camposDisponibles(string fec, string hora)
        {
            TiquetesDAL x = new TiquetesDAL();
            List <int>  c = x.camposDisponibles(fec, hora);
            List <int>  a = x.camposDisponiblesInter(fec, hora);

            foreach (int az in a)
            {
                c.Add(az);
            }
            return(c);
        }
Exemple #9
0
        /// <summary>
        /// Allows to charge the availables bus seats for a specific date
        /// </summary>
        /// <param name="fec">specific date </param>
        /// <param name="v">specific Hour </param>
        /// <returns>List of numbers of the available bus seats</returns>
        public List <int> camposDisponiblesInter(string fec, string v)
        {
            TiquetesDAL x = new TiquetesDAL();
            List <int>  c = x.camposDisponiblesInter(fec, v);
            List <int>  a = x.camposDisponibles(fec, v);

            foreach (int za in a)
            {
                c.Add(za);
            }
            return(c);
        }
Exemple #10
0
        /// <summary>
        /// Allows to register a new arqueoCaja
        /// </summary>
        /// <param name="d">Object type CierreCaja to generate a new arqueoCaja</param>
        public void arqueoDeCaja(CierreCaja d)
        {
            TiquetesDAL x = new TiquetesDAL();

            x.arqueoDeCaja(d);
        }
Exemple #11
0
        /// <summary>
        /// Allows to register a new cash register
        /// </summary>
        /// <param name="d">Username who do the cash register </param>
        public void registrarCierreCaja(CierreCaja d)
        {
            TiquetesDAL x = new TiquetesDAL();

            x.registrarCierreCaja(d);
        }