Пример #1
0
 public M_PEP Isertar(M_PEP obj)
 {
     using (MonitorOperacionesEntities db = new MonitorOperacionesEntities())
     {
         db.M_PEP.Add(obj);
         db.SaveChanges();
         return(obj);
     }
 }
Пример #2
0
 public void Actualizar(M_PEP obj)
 {
     using (MonitorOperacionesEntities db = new MonitorOperacionesEntities())
     {
         db.M_PEP.Attach(obj);
         db.Entry(obj).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
     }
 }
Пример #3
0
 public void Eliminar(M_PEP obj)
 {
     using (MonitorOperacionesEntities db = new MonitorOperacionesEntities())
     {
         db.M_PEP.Attach(obj);
         db.M_PEP.Remove(obj);
         db.SaveChanges();
     }
 }
Пример #4
0
 public static void Elimiar(M_PEP obj)
 {
     dmPEP.Eliminar(obj);
 }
Пример #5
0
 public static void Actualizar(M_PEP obj)
 {
     dmPEP.Actualizar(obj);
 }
Пример #6
0
 public static M_PEP Insertar(M_PEP obj)
 {
     return(dmPEP.Isertar(obj));
 }
Пример #7
0
        //**************
        // Eventos del formulario
        //**************

        private void Grd_Detalles_CurrentCellChanged(object sender, EventArgs e)
        {
            if (BS_TablaMaestra.Position >= 0)
            {
                switch (Cmb_TablaMaestra.SelectedIndex)
                {
                case 0:      // "Actividad Comercial"
                    r_TablaMaestra0 = BS_TablaMaestra.Current as M_ActivComercial;
                    break;

                case 1:      // "Antigüedad"
                    r_TablaMaestra1 = BS_TablaMaestra.Current as M_Antiguedad;
                    break;

                case 2:      // "Criptomonedas"
                    r_TablaMaestra2 = BS_TablaMaestra.Current as M_Criptomonedas;
                    break;

                case 3:      // "Edad"
                    r_TablaMaestra3 = BS_TablaMaestra.Current as M_Edad;
                    break;

                case 4:      // "Estados"
                    r_TablaMaestra4 = BS_TablaMaestra.Current as M_Estados;
                    break;

                case 5:     // Nivel de Riesgo
                    r_TablaMaestra5 = BS_TablaMaestra.Current as M_NivelRiesgo;
                    break;

                case 6:      // "Pais"
                    r_TablaMaestra6 = BS_TablaMaestra.Current as M_Pais;
                    break;

                case 7:      // "P.E.P."
                    r_TablaMaestra7 = BS_TablaMaestra.Current as M_PEP;
                    break;

                case 8:      // "Productos"
                    r_TablaMaestra8 = BS_TablaMaestra.Current as M_Productos;
                    break;

                case 9:      // "Profesión"
                    r_TablaMaestra9 = BS_TablaMaestra.Current as M_Profesiones;
                    break;

                case 10:      // "Servicios"
                    r_TablaMaestra10 = BS_TablaMaestra.Current as M_Servicios;
                    break;

                case 11:      // "Tipo de Documento Identidad"
                    r_TablaMaestra11 = BS_TablaMaestra.Current as M_TipoDocID;
                    break;

                case 12:      // "Tipo de Estructura"
                    r_TablaMaestra12 = BS_TablaMaestra.Current as M_TipoEstructuraEmpresa;
                    break;

                case 13:      // "Tipo de Persona Jurídica"
                    r_TablaMaestra13 = BS_TablaMaestra.Current as M_TipoPersJuridica;
                    break;

                case 14:      // "Vol. Oper. Pers. Natural"
                    r_TablaMaestra14 = BS_TablaMaestra.Current as M_VolOperPersNat;
                    break;

                case 15:      // "Vol. Oper. Pers. Jurídica"
                    r_TablaMaestra15 = BS_TablaMaestra.Current as M_VolOperPersJur;
                    break;

                case 16:      // "Vol. Oper. Pers. Jurídica"
                    r_TablaMaestra16 = BS_TablaMaestra.Current as M_TipoOrdenes;
                    break;

                case 17:      // "Vol. Oper. Pers. Jurídica"
                    r_TablaMaestra17 = BS_TablaMaestra.Current as M_Titulos;
                    break;
                }
            }
            TSB_ActualizaBotonesNavegacion();
        }