//----Metodo para registrar Perfiles public EProfiles RegistrarProfiles(//string sPerfil_id, string sTipoPerfil_id, string sRolid, string sLevel, string sPerfilName, string dModuloId, string sPerfilDescription, int idChannel, bool bPerfilStatus, string sPerfilCreateBy, string sPerfilDateBy, string sPerfilModiBy, string sPerfilDateModiBy) { Lucky.Data.Common.Application.DProfiles odrperfiles = new Lucky.Data.Common.Application.DProfiles(); EProfiles oeperfiles = odrperfiles.registrarPerfilesPK(//sPerfil_id, sTipoPerfil_id, sRolid, sLevel, sPerfilName, dModuloId, sPerfilDescription, idChannel, bPerfilStatus, sPerfilCreateBy, sPerfilDateBy, sPerfilModiBy, sPerfilDateModiBy); odrperfiles = null; return(oeperfiles); }
//---Metodo de Consulta de Perfiles public DataTable BuscarPerfiles( string sPerfilName, string sRolid, int idChannel, string sLevel /*, string sTipPerfil*/) { DataTable dtperfiles = null; try { Lucky.Data.Common.Application.DProfiles odsperfiles = new Lucky.Data.Common.Application.DProfiles(); dtperfiles = odsperfiles.ObtenerPerfiles(sPerfilName, sRolid, idChannel, sLevel /*, sTipPerfil*/); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine("Error: " + ex.Message.ToString()); messages = "Error: " + ex.Message.ToString(); } return(dtperfiles); }
//----Metodo para registrar Perfiles public EProfiles Actualizar_Perfiles( string sPerfilid, string sTipPerfilid, string sRolid, string sLevel, string sPerfilName, string dModuloId, string sPerfilDescription, int idChannel, bool bPerfilStatus, string sPerfilModiBy) { Lucky.Data.Common.Application.DProfiles odaperfiles = new Lucky.Data.Common.Application.DProfiles(); EProfiles oeaperfiles = odaperfiles.Actualizar_Perfiles( sPerfilid , sTipPerfilid , sRolid , sLevel , sPerfilName , dModuloId , sPerfilDescription , idChannel , bPerfilStatus , sPerfilModiBy); odaperfiles = null; return(oeaperfiles); }