public FrmArqueos(System.Data.SqlClient.SqlConnection Connection, string RutaReportes) { InitializeComponent(); _connection = Connection; _RutaReportes = RutaReportes; objArqueo = new Arqueo.Arqueos(_connection); objArqueo.ConsultaArqueos(dtpFArqueo.Value); lvwArqueo1.DataSource = objArqueo.DSArqueo.Tables["Arqueo"]; lvwArqueo1.AutoColumnHeader(); lvwArqueo1.DataAdd(); }
private void FrmCapturaArqueo_Load(object sender, System.EventArgs e) { pnlArqueo.Width = this.Width - 20; lvwArqueo1.DataSource = objArqueo.DSArqueo; lvwArqueo1.AutoColumnHeader(); lvwArqueo1.DataAdd(); //Event handlers this.cboEmpleado.SelectedValueChanged += new System.EventHandler(this.cboEmpleado_SelectedValueChanged); this.lvwArqueo1.ListViewContentChanged += new Arqueo._listViewContentChanged(this.panelMsg); this.cboRuta.SelectedIndexChanged += new System.EventHandler(this.cboRuta_SelectedIndexChanged); this.FInicio.ValueChanged += new System.EventHandler(this.FInicio_ValueChanged); this.FFin.ValueChanged += new System.EventHandler(this.FFin_ValueChanged); objArqueo.Empleado = Convert.ToInt32(cboEmpleado.SelectedValue); objArqueo.FInicio = FInicio.Value; objArqueo.FFin = FFin.Value; cboRuta.Enabled = chkRuta.Checked; }