//INSERTAR private void InsertaRegistro() { string Rta = string.Empty; try { Rta = NacfINVp_Inventario.Insertar( this.txtINVid.Text , this.txtINVdescripcion.Text , this.dtINVfechainicio.Text , this.txtINVfechacierre.Text , this.cbActivo.Checked , this.txtINVrespon.Text , this.txtINVperiodo.Text); if (Rta.Equals("OK")) { this.MensajeOk("Registro Agregado Correctamente"); } else { this.MensajeError(Rta); } } catch (Exception ex) { MessageBox.Show(ex.Message + ex.StackTrace); } }
//----------------------------------------------------------------------------------- // Inserta Registros //----------------------------------------------------------------------------------- private void InsertaRegistro() { string Rta = string.Empty; try { Rta = NacfINVp_Inventario.Insertar(this.txtINVid.Text, this.txtINVdetalle.Text, this.txtINVinicio.Text, this.txtINVcierre.Text, false, this.txtINVactivo.Text, this.txtINVactivo.Text); if (Rta.Equals("OK")) { this.MensajeOk("Regsitro Acgregado Correctamente"); } else { this.MensajeError("Error al Insertar Registro "); } } catch (Exception ex) { MessageBox.Show(ex.Message + ex.StackTrace); } }