Cliente
, Locacao
, Item
and Cacamba
:
public class Cliente
{
public Guid ClienteID { get; set; }
public string Nome { get; set; }
...............
}
public class Locacao
{
public Guid LocacaoID { get; set;}
public Guid ClienteID {get;set;}
public DateTime DataLocacao { get; set; }
public DateTime DataEntrega { get; set; }
public string Endereco { get; set; }
........
}
public class Item
{
public Guid ItemID {get;set;}
public Guid LocacaoID {get;set;}
public Guid CaçambaID {get;set;}
public int Quantidade { get; set; }
}
public class Cacamba
{
public Guid CacambaID{get;set;}
public string NomeCacamba {get;set;}
public string Descricao {get;set;}
public decimal Preco {get;set;}
............
}
What I wanted, if possible, is to be able to do it in just one page, where I load all the clients and select the client, then fill in the data of the location, then select the bucket and already play directly in a table the ID of the bucket, the name, the price and the total value, in the page itself, and at the end I save the data it has in Locacao
and Item
in the bank.