A
Anonymous

Theater Production Manager - Copy this Html, Bootstrap Component to your project

Estou sem criatividade nenhuma, poderia me sugerir um solução de layout com uma ou mais telas que melhor comporte o cadastro das classes abaixo? Tenha as seguintes classes: public abstract class SolicitanteEmprestimo { public int Id { get; set; } public int EscolaId { get; set; } public Escola Escola { get; set; } public List<PedidoEmprestimo> PedidosEmprestimo { get; set; } protected SolicitanteEmprestimo() { PedidosEmprestimo = new List<PedidoEmprestimo>(); } } public class Producao : SolicitanteEmprestimo { public string Descricao { get; set; } public DateTime Incio { get; set; } public DateTime Fim { get; set; } public bool Desativado { get; set; } public List<ProducaoDetalhe> ProducaoDetalhes { get; set; } public Producao() : base() { ProducaoDetalhes = new List<ProducaoDetalhe>(); } } public class ProducaoDetalhe { public int Id { get; set; } public required string Titulo { get; set; } public required string Descricao { get; set; } public int ProducaoId { get; set; } public Producao? Producao { get; set; } } public class PedidoEmprestimo { public int Id { get; set; } public DateTime DataPedido { get; set; } = DateTime.Now; public DateTime? DataRenovacao { get; set; } public DateTime DataPrevistaRetirada { get; set; } public DateTime DataPrevistaDevolucao { get; set; } private StatusPedidoEmprestimo _statuspedidoemprestimo; public StatusPedidoEmprestimo Statuspedidoemprestimo { get { return _statuspedidoemprestimo; } set { if (value == StatusPedidoEmprestimo.Cancelado && _statuspedidoemprestimo == StatusPedidoEmprestimo.Fechado) { throw new InvalidOperationException("Não é possível cancelar este pedido!"); } _statuspedidoemprestimo = value; } } public int SolicitanteEmprestimoId { get; set; } public SolicitanteEmprestimo? SolicitanteEmprestimo { get; set; } public List<Emprestimo> Emprestimos { get; set; } } public class Emprestimo { public int Id { get; set; } public DateTime? DataDevolucao { get; set; } public DateTime? DataRetirada { get; set; } public StatusEmprestimo Statusemprestimo { get; set; } public int VestuarioId { get; set; } public Vestuario? Vestuario { get; set; } public int PedidoEmprestimoId { get; set; } public PedidoEmprestimo? PedidoEmprestimo { get; set; } } A produção em questão diz respeito a produção teatral. As produções possuem detalhes associados a ela. É possível também registrar os vestuários utilizados na produção, essa associação é mapeada por meio da relação empréstimo.

Prompt
Component Preview

About

Theater Production Manager - Manage theater productions, details, and wardrobe loans seamlessly. Built with HTML and Bootstrap. Get instant access!

Share

Last updated 1 month ago