protected void btnReportar_Click(object sender, EventArgs e)
 {
     try
     {
         CNBVPreocupantesBean preo = ReportsOperations.Get();
         preo.Nombre          = txtNombre.Text.Trim();
         preo.ApellidoPaterno = txtApellidoPaterno.Text.Trim();
         preo.ApellidoMaterno = txtApellidoMaterno.Text.Trim();
         preo.RazonSocial     = String.Format("{0} {1} {2}", preo.ApellidoPaterno, preo.ApellidoMaterno, preo.Nombre);
         preo.Domicilio       = txtDomicilio.Text.Trim();
         preo.Ciudad          = txtCiudad.Text.Trim();
         preo.Colonia         = txtColonia.Text.Trim();
         preo.Telefono        = txtTelefono.Text.Trim();
         DateTime fechaNacimiento = DateTime.ParseExact(txtFechaNacimiento.Text.Trim(), "dd/MM/yyyy", CultureInfo.InvariantCulture);
         preo.FechaNacimiento = fechaNacimiento.ToString("yyyyMMdd");
         preo.Nacionalidad    = ddlNacionalidad.SelectedItem.Value;
         preo.RFC             = txtRfc.Text.Trim();
         preo.CURP            = txtCurp.Text.Trim();
         preo.TipoPersona     = "1";
         //preo.Localidad = ddlLocalidad.SelectedItem.Text;
         //preo.OrganoSupervisor = ddlSucursal.SelectedItem.Text;
         preo.Razones = txtCausa.Text.Trim();
         ReportsOperations.Save(preo);
         LimpiarCampos();
         MostarMensaje(true);
     }
     catch (Exception ex)
     {
         MostarMensaje(false);
         throw ex;
     }
 }
Beispiel #2
0
 protected void btnReportar_Click(object sender, EventArgs e)
 {
     try
     {
         CNBVInusualesBean data = Session["Object"] as CNBVInusualesBean;
         data.NumeroCuenta         = ddlNumControl.SelectedItem.Text;
         data.Monto                = Convert.ToDecimal(txtMonto.Text.Trim());
         data.Moneda               = ddlMoneda.SelectedItem.Value;
         data.InstrumentoMonetario = ddlInstumentoMonetario.SelectedItem.Value;
         data.TipoOperacion        = ddlTipoOperacion.SelectedItem.Value;
         data.DescripcionOperacion = ddlDescripcionOperacion.SelectedItem.Text;
         data.Razones              = txtCausa.Text.Trim();
         ReportsOperations.Save(data, rblTipoReporte.SelectedValue);
         LimpiarCampos();
         MostarMensaje(true);
     } catch (Exception ex)
     {
         MostarMensaje(false);
         throw ex;
     }
 }