//De AnalisisEspecifico.aspx.cs protected void AgregarCuentaCaptacion(object sender, DirectEventArgs e) { int noSiniestro = Convert.ToInt32(Session["IdSiniestro"]); int idCuenta = Convert.ToInt32(cmbCuentas.SelectedItem.Value); string monto = nmrMonto.Value.ToString(); string ultimoMovimiento = dteFechaUltimoMovimiento.RawValue.ToString(); wsConsultaReportesDA.Error err = reportesDA.InsertSaldosDA(noSiniestro, idCuenta, 11, monto, ultimoMovimiento, string.Empty, string.Empty, string.Empty); CargarCuentasCaptacion(noSiniestro); LimpiaCamposCaptacion(); }
protected void AgregarCuentaColocacion(object sender, DirectEventArgs e) { int noSiniestro = Convert.ToInt32(Session["IdSiniestro"]); int tipoPrestamo = Convert.ToInt32(cmbTipoPrestamo.SelectedItem.Value); string interes = nmrTasaInteres.Value.ToString(); string ultimoMovimiento = dteFechaUltimoMovimientoCol.RawValue.ToString(); string saldo = nmrSaldoPrincipal.Value.ToString(); string fechaPrestamo = datePrestamo.RawValue.ToString(); wsConsultaReportesDA.Error err = reportesDA.InsertSaldosDA(noSiniestro, 7, tipoPrestamo, saldo, ultimoMovimiento, string.Empty, interes, fechaPrestamo); CargarCuentasColocacion(noSiniestro); LimpiaCamposColocacion(); }
private string LoopThroughEachCheckBoxAndInsertThemInToTheDataBaseBecauseNoArrays(int idDocumentacion) { for (int i = 1; i < 17; i++) { Checkbox chk = ComponentManager.Get("chkDoc" + i.ToString()) as Checkbox; if (chk.Checked) { wsConsultaReportesDA.Error err = reportesDA.InsertDetDocuDA(i, idDocumentacion); if (err.Valor) { return(err.Mensaje); } } } return(string.Empty); //fix this bad behavior }