using System; using System.Collections.Generic; using InABox.Core; namespace Comal.Classes { public class QuoteDataModel : BaseDataModel { public QuoteDataModel(Filter filter) : base(filter) { //AddChildTable(x => x.ID, x => x.EntityLink.ID); //AddChildTable(x => x.ID, x => x.Quote.ID); //AddChildTable(x => x.ID, x => x.Quote.ID); //AddChildTable(x => x.ID, x => x.Quote.ID); AddChildTable( x => x.ID, x => x.Design.ID, parentalias: "Quote_QuoteDesign", childalias: "Quote_QuoteDesign_QuoteDesignItem" ); AddChildTable( x => x.ID, x => x.Quote.ID, parentalias: "Quote", childalias: "Quote_QuoteCostSheet" ); AddChildTable( x => x.ID, x => x.CostSheet.ID, parentalias: "Quote_QuoteCostSheet", childalias: "Quote_QuoteCostSheet_QuoteCostSheetItem" ); //AddChildTable(x => x.ID, x => x.Quote.ID); AddChildTable( x => x.ID, x => x.Proposal.ID, parentalias: "Quote_QuoteProposal", childalias: "Quote_QuoteProposal_QuoteProposalCostSheet" ); AddChildTable( x => x.CostSheet.ID, x => x.CostSheet.ID, isdefault: false, parentalias: "Quote_QuoteProposal_QuoteProposalCostSheet", childalias: "Quote_QuoteProposal_QuoteProposalCostSheet_QuoteCostSheetItem" ); /*AddChildTable( x => x.ID, x => x.Quote.ID, parentalias: "Quote", childalias: "Quote_QuoteContract" );*/ AddChildTable( x => x.ID, x => x.Contract.ID, parentalias: "Quote_QuoteContract", childalias: "Quote_QuoteContract_QuoteContractProposal" ); } public override string Name => "Quotes"; } }