public M_PEP Isertar(M_PEP obj) { using (MonitorOperacionesEntities db = new MonitorOperacionesEntities()) { db.M_PEP.Add(obj); db.SaveChanges(); return(obj); } }
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(); } }
public void Eliminar(M_PEP obj) { using (MonitorOperacionesEntities db = new MonitorOperacionesEntities()) { db.M_PEP.Attach(obj); db.M_PEP.Remove(obj); db.SaveChanges(); } }
public static void Elimiar(M_PEP obj) { dmPEP.Eliminar(obj); }
public static void Actualizar(M_PEP obj) { dmPEP.Actualizar(obj); }
public static M_PEP Insertar(M_PEP obj) { return(dmPEP.Isertar(obj)); }
//************** // 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(); }