Exemplo n.º 1
0
 public void GenerarReporte()
 {
     crpDocument = new ReportDocument();
     crpDocument.Load(@"Reportes\rptProductos.rpt");
     crpDocument.SetDataSource(ControladorProductos.getListado());
     //crpDocument.SetParameterValue("parUsuario", "Mario");
     this.crystalReportViewer1.ReportSource = crpDocument;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public AdminIngrediente()
        {
            cp = new ControladorProductos();
            cs = new ControladorServicio();

            InitializeComponent();

            service = cs.getConnection();

            if (service != false)
            {
                loadIngredientes();
            }
            else
            {
                ErrorServicio es = new ErrorServicio();
                es.ShowDialog();
            }
        }
Exemplo n.º 3
0
        public AdminPizza()
        {
            cp = new ControladorProductos();
            cs = new ControladorServicio();

            listCheckbox = new List <CheckBox>();
            InitializeComponent();

            connection = cs.getConnection();

            if (connection != false)
            {
                cargarListViewPizzas();
                cargarCheckBoxesIngredientes();
            }
            else
            {
                ErrorServicio es = new ErrorServicio();
                es.ShowDialog();
            }
        }
Exemplo n.º 4
0
        public SelectorPizzas()
        {
            cs   = new ControladorServicio();
            cp   = new ControladorProductos();
            cPed = new ControladorPedidos();
            InitializeComponent();

            Boolean connected = cs.getConnection();

            if (connected != false)
            {
                loadPizzas();
                loadIngredientes();
                loadBebidas();
            }
            else
            {
                ErrorServicio es = new ErrorServicio();
                es.ShowDialog();
            }
        }
Exemplo n.º 5
0
 private void CargarCombo()
 {
     this.cmbDepartamento.DataSource    = ControladorProductos.ListaDepart(true);
     this.cmbDepartamento.SelectedIndex = this.cmbDepartamento.Items.Count - 1;
 }