public BE_SUN_UNIMED TraerRegistro(int n_IdRegistro) { BE_SUN_UNIMED entAlmacen = new BE_SUN_UNIMED(); CD_sun_unimed miFun = new CD_sun_unimed(); miFun.mysConec = mysConec; entAlmacen = miFun.TraerRegistro(n_IdRegistro); return(entAlmacen); }
public bool Eliminar(int n_Id) { CD_sun_unimed miFun = new CD_sun_unimed(); bool booOk = false; miFun.mysConec = mysConec; booOk = miFun.Eliminar(n_Id); booOcurrioError = miFun.booOcurrioError; StrErrorMensaje = miFun.StrErrorMensaje; IntErrorNumber = miFun.IntErrorNumber; return(booOk); }
public DataTable Listar() { DataTable dtResul = new DataTable(); CD_sun_unimed miFun = new CD_sun_unimed(); miFun.mysConec = mysConec; dtResul = miFun.Listar(); if (dtResul == null) { booOcurrioError = miFun.booOcurrioError; StrErrorMensaje = miFun.StrErrorMensaje; IntErrorNumber = miFun.IntErrorNumber; } return(dtResul); }
public bool Actualizar(BE_SUN_UNIMED entUniMed) { BE_SUN_UNIMED entNuevoUniMed = new BE_SUN_UNIMED(); CD_sun_unimed miFun = new CD_sun_unimed(); bool booOk = false; miFun.mysConec = mysConec; entNuevoUniMed.n_id = entUniMed.n_id; entNuevoUniMed.c_codsun = entUniMed.c_codsun; entNuevoUniMed.c_des = entUniMed.c_des; entNuevoUniMed.c_abr = entUniMed.c_abr; booOk = miFun.Actualizar(entUniMed); booOcurrioError = miFun.booOcurrioError; StrErrorMensaje = miFun.StrErrorMensaje; IntErrorNumber = miFun.IntErrorNumber; return(booOk); }