public SqlDataAdapter ListarPerfiles() { CargaParametroMat(); RegSegPerfiles OpLst = new RegSegPerfiles(db); return(OpLst.ListPerfiles()); }
public int ActualizaPerfil() { CargaParametroMat(); RegSegPerfiles OpUp = new RegSegPerfiles(MatParam, db); return(OpUp.UpdatePerfil()); }
public int AgregarPerfil() { CargaParametroMat(); RegSegPerfiles OpRadd = new RegSegPerfiles(MatParam, db); return(OpRadd.AddRegPerfil()); }
public int EliminaPerfil() { //CargaParametroMat(); MatParam = new object[1, 2]; MatParam[0, 0] = "CodPerfil"; MatParam[0, 1] = CodPerfil; RegSegPerfiles OpDel = new RegSegPerfiles(MatParam, db); return(OpDel.DeletePerfil()); }
public DataTable CboPerfiles() { CargaParametroMat(); RegSegPerfiles OpLst = new RegSegPerfiles(db); DataSet Cbo = new DataSet(); OpLst.ComboSPerfiles().Fill(Cbo); return(Cbo.Tables[0]); }
public SqlDataAdapter BuscaPerfil(string buscar) { /* MatParam = new object[4, 2]; * MatParam[0, 0] = "Perfil"; MatParam[0, 1] = buscar; * MatParam[1, 0] = "Descripcion"; MatParam[1, 1] = buscar; * MatParam[2, 0] = "Ubicacion"; MatParam[2, 1] = buscar; * MatParam[3, 0] = "Encargado"; MatParam[3, 1] = buscar; * RegSegPerfiles OpBsq = new RegSegPerfiles(MatParam);/ */ RegSegPerfiles OpBsq = new RegSegPerfiles(db); return(OpBsq.BuscaPerfil(buscar)); }
public void EditarPerfil() { MatParam = new object[1, 2]; MatParam[0, 0] = "CodPerfil"; MatParam[0, 1] = CodPerfil; RegSegPerfiles OpEdit = new RegSegPerfiles(MatParam, db); Datos = OpEdit.RegistroActivo(); DataSet Ds = new DataSet(); Datos.Fill(Ds); object[] ObjA = Ds.Tables[0].Rows[0].ItemArray; CodPerfil = ObjA[0].ToString(); Descripcion = ObjA[1].ToString(); }