protected void btnGuardar_Click(object sender, EventArgs e) { if (this.cbxRemesas.SelectedValue.ToString() == "Seleccione") { this.txtTotalRemesa.Text = "0"; } else { decimal remesa = Convert.ToDecimal(this.txtTotalRemesa.Text) + 1; Transaccion.InsertaRemesaManual(this.txtSubProducto.Text.ToString(), this.txtProducto.Text.ToString(), this.txtNroOperacion.Text.ToString(), this.txtRut.Text.ToString(), this.txtDv.Text.ToString(), this.txtDeudor.Text.ToString(), this.txtDireccion.Text.ToString(), this.txtComuna.Text.ToString(), this.cbxRemesas.SelectedValue.ToString(), this.cbxRemesas.SelectedValue.ToString(), this.hddFechaEntrega.Value.ToString(), remesa, this.Session["Usuario"].ToString(), Convert.ToDateTime(this.txtfechacontabilizacion.Text)); Transaccion.ActualizaRemesaManual(this.cbxRemesas.SelectedValue.ToString(), remesa); this.Page.RegisterClientScriptBlock("Mensaje", "<script>alert('Datos guardados correctamente');</script>"); this.Limpiar(); } }