SIGES-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Datatypes

Description

 
Synopsis

Documentation

data User Source #

Versão resumida de usuário do sistema. Mantém dados essenciais, mas omite dados sensíveis que não serão necessários.

Constructors

User 

Fields

Instances

Instances details
Eq User Source # 
Instance details

Defined in Datatypes

Methods

(==) :: User -> User -> Bool #

(/=) :: User -> User -> Bool #

Show User Source # 
Instance details

Defined in Handlers.UserHandler

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

Generic User Source # 
Instance details

Defined in Datatypes

Associated Types

type Rep User :: Type -> Type #

Methods

from :: User -> Rep User x #

to :: Rep User x -> User #

ToJSON User Source # 
Instance details

Defined in Handlers.DataHandler

FromJSON User Source # 
Instance details

Defined in Handlers.DataHandler

type Rep User Source # 
Instance details

Defined in Datatypes

type Rep User = D1 ('MetaData "User" "Datatypes" "SIGES-0.1.0.0-FsG69xsmiW77B8YjOPBwKm" 'False) (C1 ('MetaCons "User" 'PrefixI 'True) (S1 ('MetaSel ('Just "nameUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: (S1 ('MetaSel ('Just "emailUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "isAdminUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

data UserFull Source #

Versão completa do usuário do sistema, a ser usada quando se precisa de todas as informações do usuário.

Constructors

UserFull 

Fields

Instances

Instances details
Eq UserFull Source # 
Instance details

Defined in Datatypes

Show UserFull Source # 
Instance details

Defined in Datatypes

Generic UserFull Source # 
Instance details

Defined in Datatypes

Associated Types

type Rep UserFull :: Type -> Type #

Methods

from :: UserFull -> Rep UserFull x #

to :: Rep UserFull x -> UserFull #

ToJSON UserFull Source # 
Instance details

Defined in Handlers.DataHandler

FromJSON UserFull Source # 
Instance details

Defined in Handlers.DataHandler

type Rep UserFull Source # 
Instance details

Defined in Datatypes

type ErrorLog = String Source #

Define o tipo ErrorLog como uma String.

data Screen Source #

As diferentes telas do sistema.

Constructors

ExitScreen

A tela de saída do sistema.

FirstScreen

A tela inicial, quando nenhum administrador foi cadastrado ainda.

StartScreen

A tela inicial do sistema quando já existem usuários cadastrados.

LoginScreen

A tela de Login.

LoggedScreen

A tela após um usuário logar-se no sistema.

AdminScreen

A tela exibida após um administrador fazer login no sistema.

InsertRoomScreen

A tela de cadastrar uma nova sala no sistema

SignUpScreen

A tela de cadastro do usuário.

RemoveUserScreen

A tela de remoção de um usuário.

ViewUserScreen

A tela de visualização de salas específica de um usuário.

ViewScreen

A tela com opções de visualização de salas.

ViewRoomScreen

A tela de visualização de uma sala específica.

ViewFilterScreen

A tela de busca de salas por filtros.

ReportRoomScreen

A tela de exibição de relatório de ocupação para uma sala específica.

ReportDayScreen

A tela de exibição de relatório de ocupação para todas as salas em um determinado dia.

CreateReservationScreen

A tela para se fazer uma nova reserva em uma sala.

EditReservationScreen

A tela para se editar uma reserva previamente feita.

RemoveReservationScreen

A tela para se remover uma reserva previamente feita.

Instances

Instances details
Eq Screen Source # 
Instance details

Defined in Datatypes

Methods

(==) :: Screen -> Screen -> Bool #

(/=) :: Screen -> Screen -> Bool #

Content Screen Source # 
Instance details

Defined in TUI.OutputScreens

Action Screen Source # 
Instance details

Defined in TUI.ScreenListeners

data Room Source #

Uma sala do sistema SIGES.

Constructors

Room 

Fields

Instances

Instances details
Eq Room Source # 
Instance details

Defined in Datatypes

Methods

(==) :: Room -> Room -> Bool #

(/=) :: Room -> Room -> Bool #

Show Room Source # 
Instance details

Defined in Handlers.RoomsHandler

Methods

showsPrec :: Int -> Room -> ShowS #

show :: Room -> String #

showList :: [Room] -> ShowS #

Generic Room Source # 
Instance details

Defined in Datatypes

Associated Types

type Rep Room :: Type -> Type #

Methods

from :: Room -> Rep Room x #

to :: Rep Room x -> Room #

ToJSON Room Source # 
Instance details

Defined in Handlers.DataHandler

FromJSON Room Source # 
Instance details

Defined in Handlers.DataHandler

type Rep Room Source # 
Instance details

Defined in Datatypes

data Reservation Source #

As reservas de salas do sistema.

Constructors

Reservation 

Fields

Instances

Instances details
Eq Reservation Source # 
Instance details

Defined in Datatypes

Ord Reservation Source # 
Instance details

Defined in Handlers.RoomsHandler

Show Reservation Source # 
Instance details

Defined in Handlers.RoomsHandler

Generic Reservation Source # 
Instance details

Defined in Datatypes

Associated Types

type Rep Reservation :: Type -> Type #

ToJSON Reservation Source # 
Instance details

Defined in Handlers.DataHandler

FromJSON Reservation Source # 
Instance details

Defined in Handlers.DataHandler

type Rep Reservation Source # 
Instance details

Defined in Datatypes

type Rep Reservation = D1 ('MetaData "Reservation" "Datatypes" "SIGES-0.1.0.0-FsG69xsmiW77B8YjOPBwKm" 'False) (C1 ('MetaCons "Reservation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "requester") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :*: (S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LocalTime) :*: S1 ('MetaSel ('Just "finishTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LocalTime))))

data RoomCategory Source #

As categorias de sala oferecidas pelo sistema.

Constructors

Laboratory

Sala que funciona como um laboratório.

Auditorium

Sala que funciona como um auditório.

Classroom

Sala que funciona como uma sala de aula.

Office

Sala que funciona como um escritório.

Warehouse

Sala que funciona como um depósito.

Instances

Instances details
Eq RoomCategory Source # 
Instance details

Defined in Datatypes

Show RoomCategory Source # 
Instance details

Defined in Datatypes

Generic RoomCategory Source # 
Instance details

Defined in Datatypes

Associated Types

type Rep RoomCategory :: Type -> Type #

ToJSON RoomCategory Source # 
Instance details

Defined in Handlers.DataHandler

FromJSON RoomCategory Source # 
Instance details

Defined in Handlers.DataHandler

type Rep RoomCategory Source # 
Instance details

Defined in Datatypes

type Rep RoomCategory = D1 ('MetaData "RoomCategory" "Datatypes" "SIGES-0.1.0.0-FsG69xsmiW77B8YjOPBwKm" 'False) ((C1 ('MetaCons "Laboratory" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Auditorium" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Classroom" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Office" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Warehouse" 'PrefixI 'False) (U1 :: Type -> Type))))

data ResourceKind Source #

Os tipos de recursos existentes no sistema.

Constructors

Projector

Projetor ou Datashow.

Microscope

Microscópio.

Desk

Escrivaninha.

Computer

Computador.

Board

Quadro negro ou branco.

AirConditioner

Ar condicionado.

Instances

Instances details
Eq ResourceKind Source # 
Instance details

Defined in Datatypes

Show ResourceKind Source # 
Instance details

Defined in Datatypes

Generic ResourceKind Source # 
Instance details

Defined in Datatypes

Associated Types

type Rep ResourceKind :: Type -> Type #

ToJSON ResourceKind Source # 
Instance details

Defined in Handlers.DataHandler

FromJSON ResourceKind Source # 
Instance details

Defined in Handlers.DataHandler

type Rep ResourceKind Source # 
Instance details

Defined in Datatypes

type Rep ResourceKind = D1 ('MetaData "ResourceKind" "Datatypes" "SIGES-0.1.0.0-FsG69xsmiW77B8YjOPBwKm" 'False) ((C1 ('MetaCons "Projector" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Microscope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Desk" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "Computer" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Board" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AirConditioner" 'PrefixI 'False) (U1 :: Type -> Type))))

data Resource Source #

Os recursos oferecidos pelas salas do sistema.

Constructors

Resource 

Fields

Instances

Instances details
Eq Resource Source # 
Instance details

Defined in Datatypes

Show Resource Source # 
Instance details

Defined in Handlers.RoomsHandler

Generic Resource Source # 
Instance details

Defined in Datatypes

Associated Types

type Rep Resource :: Type -> Type #

Methods

from :: Resource -> Rep Resource x #

to :: Rep Resource x -> Resource #

ToJSON Resource Source # 
Instance details

Defined in Handlers.DataHandler

FromJSON Resource Source # 
Instance details

Defined in Handlers.DataHandler

type Rep Resource Source # 
Instance details

Defined in Datatypes

type Rep Resource = D1 ('MetaData "Resource" "Datatypes" "SIGES-0.1.0.0-FsG69xsmiW77B8YjOPBwKm" 'False) (C1 ('MetaCons "Resource" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceKind") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResourceKind) :*: S1 ('MetaSel ('Just "resourceQuantity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))