public void GenerarReporte() { crpDocument = new ReportDocument(); crpDocument.Load(@"Reportes\rptProductos.rpt"); crpDocument.SetDataSource(ControladorProductos.getListado()); //crpDocument.SetParameterValue("parUsuario", "Mario"); this.crystalReportViewer1.ReportSource = crpDocument; }
/// <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(); } }
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(); } }
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(); } }
private void CargarCombo() { this.cmbDepartamento.DataSource = ControladorProductos.ListaDepart(true); this.cmbDepartamento.SelectedIndex = this.cmbDepartamento.Items.Count - 1; }