public BudgetCashflowDivisionUnitItemDto(DivisionDto division, UnitDto divisionUnit, double nominal, double currencyNominal, double actual)
 {
     Division        = division;
     Unit            = divisionUnit;
     Nominal         = nominal;
     CurrencyNominal = currencyNominal;
     Actual          = actual;
 }
 public BudgetCashflowDivisionUnitItemDto(BudgetCashflowUnitModel cashflowUnit, UnitDto divisionUnit)
 {
     CashflowUnit = cashflowUnit;
     if (cashflowUnit != null)
     {
         Nominal         = cashflowUnit.Nominal;
         CurrencyNominal = cashflowUnit.CurrencyNominal;
         Actual          = cashflowUnit.Total;
     }
     Unit = divisionUnit;
 }
Exemple #3
0
 public DivisionTemporaryDivisionUnitDto(BudgetCashflowTypeModel cashflowType, CashType type, BudgetCashflowCategoryModel cashflowCategory, BudgetCashflowSubCategoryModel cashflowSubCategory, CurrencyDto currency, DivisionDto division, UnitDto unit, BudgetCashflowUnitModel cashflowUnit)
 {
     CashflowType        = cashflowType;
     Type                = type;
     CashflowCategory    = cashflowCategory;
     CashflowSubCategory = cashflowSubCategory;
     Currency            = currency;
     Division            = division;
     Unit                = unit;
     CashflowUnit        = cashflowUnit;
 }
 public BudgetCashflowDivisionUnitItemDto(BudgetCashflowUnitModel cashflowUnit, UnitAccountingDto divisionUnit)
 {
     CashflowUnit = cashflowUnit;
     if (cashflowUnit != null)
     {
         Nominal         = cashflowUnit.Nominal;
         CurrencyNominal = cashflowUnit.CurrencyNominal;
         Actual          = cashflowUnit.Total;
     }
     Unit = new UnitDto {
         Code       = divisionUnit.Code,
         DivisionId = divisionUnit.DivisionId,
         Id         = divisionUnit.Id,
         Name       = divisionUnit.Name
     };
 }
Exemple #5
0
 public DivisionTemporaryDivisionUnitDto(BudgetCashflowTypeModel cashflowType, CashType type, BudgetCashflowCategoryModel cashflowCategory, BudgetCashflowSubCategoryModel cashflowSubCategory, CurrencyDto currency, DivisionDto division, UnitAccountingDto unitAccounting, BudgetCashflowUnitModel cashflowUnit)
 {
     CashflowType        = cashflowType;
     Type                = type;
     CashflowCategory    = cashflowCategory;
     CashflowSubCategory = cashflowSubCategory;
     Currency            = currency;
     Division            = division;
     Unit                = new UnitDto {
         Code       = unitAccounting.Code,
         DivisionId = unitAccounting.DivisionId,
         Id         = unitAccounting.Id,
         Name       = unitAccounting.Name
     };
     CashflowUnit = cashflowUnit;
 }