예제 #1
0
        public IList <string> Ejecutar()
        {
            ReporteSQLServer acceso = new ReporteSQLServer();

            _cargo = acceso.ObtenerCargo();
            return(_cargo);
        }
        /// <summary>Método que implementa la ejecución del comando 'FacturasEmitidas'.</summary>

        public Cargo Ejecutar()
        {
            ReporteSQLServer bd = new ReporteSQLServer();

            Cargo _cargo = bd.ConsultarEmpleadoCargoAnual(cargo);

            return(_cargo);
        }
        public void TestConsultarGastoxFecha()
        {
            Gasto         gasto  = new Gasto();
            DateTime      fechai = Convert.ToDateTime("01/01/2010");
            DateTime      fechaf = Convert.ToDateTime("30/01/2010");
            IList <Gasto> gastos = new ReporteSQLServer().ConsultarGastoFecha(fechai, fechaf);

            Assert.AreEqual(gastos.Count, 1);
        }
예제 #4
0
        public IList <Empleado> Ejecutar()
        {
            ReporteSQLServer empleado = new ReporteSQLServer();

            IList <Empleado> Empleados;
            IList <Cargo>    Cargos;

            if (_tipo == "Cedula")
            {
                Empleados = empleado.ConsultaEmpleadosCIEmp(_data);
                //            Cargos= empleado.ConsultaEmpleadosCICar(_data);
            }
            else
            {
                Empleados = empleado.ConsultaEmpleadosNombreEmp(_data);
                //            Cargos= empleado.ConsultaEmpleadosNombreCar(_data);
            }
            return(Empleados);
        }