public BudgetCashflowUnitDto(BudgetCashflowUnitDto cashflowItem) { CashflowTypeId = cashflowItem.CashflowTypeId; CashflowTypeName = cashflowItem.CashflowTypeName; CashflowCategoryId = cashflowItem.CashflowCategoryId; CashflowCategoryName = cashflowItem.CashflowCategoryName; CashflowSubCategoryId = cashflowItem.CashflowSubCategoryId; CashflowSubCategoryName = cashflowItem.CashflowSubCategoryName; TypeName = cashflowItem.TypeName; IsReadOnly = cashflowItem.IsReadOnly; }
public BudgetCashflowItemDivisionDto(bool isShowSubCategoryLabel, BudgetCashflowUnitDto item, List <CurrencyDto> currencies) { var currency = currencies.FirstOrDefault(element => element.Id == item.CashflowUnit.CurrencyId); IsShowSubCategoryLabel = isShowSubCategoryLabel; SubCategoryId = item.CashflowSubCategory.Id; SubCategoryName = item.CashflowSubCategory.Name; Currency = currency; //Nominal = item.CashflowUnit.Nominal; //CurrencyNominal = item.CashflowUnit.CurrencyNominal; //Total = item.CashflowUnit.Total; }
public BudgetCashflowUnitDto(BudgetCashflowUnitDto cashflowItem, bool isFirst) : this(cashflowItem) { IsShowLabel = isFirst; }