private void bttResumenProduccion_Click(object sender, EventArgs e) { PopUpForm popUp = new PopUpForm("Lote", "Esccriba el lote a consultar", 0); popUp.ShowDialog(); if (popUp.DialogResult == DialogResult.OK) { string lote = popUp.Answer; VisorDeReportes visor = new VisorDeReportes(this.conexion); visor.LoteDetalle(lote); } else { MessageBox.Show("Necesita capturar un lote"); } }
public void guardarPeso() { try { if (this.tipoPeso == 2) { this.numeroCanal = Convert.ToInt32(this.txtNumeroCanal.Text); } this.command = new SqlCommand("SELECT ISNULL(MAX(idLoteDetalle), 0) AS idLoteDetalle FROM LotesDetalle", this.conexion); int ultimoId = Convert.ToInt32(this.command.ExecuteScalar()); this.command = new SqlCommand("INSERT INTO LotesDetalle VALUES (" + (ultimoId + 1) + ", " + this.idLote + ", " + this.tipoPeso + ", " + this.numeroCanal + ", " + this.txtPeso.Text + ", " + "null)", this.conexion); this.command.ExecuteNonQuery(); if (this.tipoPeso == 1) { VisorDeReportes visor = new VisorDeReportes(this.conexion); visor.Pulsera(this.lote, this.numeroCanal); } limpiar(); MessageBox.Show("Peso digitalizado"); validarProduccion(); this.bttGuardar.Focus(); } catch (SqlException ex) { MessageBox.Show(ex.Message); } }
private void bttOrdenesHistorico_Click(object sender, EventArgs e) { VisorDeReportes visor = new VisorDeReportes(this.conexion); visor.OrdenesHistorico(); }
private void imprimirBoleta() { VisorDeReportes visor = new VisorDeReportes(this.conexion); visor.Boleta(this.idBoleta); }