示例#1
0
 public BudgetCashflowDivisionItemDto(BudgetCashflowTypeModel cashflowType, CurrencyDto currency, bool isShowDifferenceLabel) : this(cashflowType)
 {
     IsDifference          = true;
     IsShowDifferenceLabel = isShowDifferenceLabel;
     DifferenceLabel       = $"Surplus/Deficit-Kas dari {cashflowType.Name}";
     Currency = currency;
 }
示例#2
0
 public void SetSubCategory(BudgetCashflowSubCategoryModel cashflowSubCategory, CurrencyDto currency, bool isShowSubCategoryLabel)
 {
     CashflowSubCategory    = cashflowSubCategory;
     Currency               = currency;
     IsSubCategory          = true;
     IsShowSubCategoryLabel = isShowSubCategoryLabel;
 }
示例#3
0
 public BudgetCashflowDivisionItemDto(string currencyRateLabel, CurrencyDto currency, bool isShowCurrencyLabel)
 {
     CurrencyRateLabel   = currencyRateLabel;
     IsShowCurrencyLabel = isShowCurrencyLabel;
     IsCurrencyRate      = true;
     Currency            = currency;
 }
示例#4
0
 public BudgetCashflowDivisionItemDto(string generalSummaryLabel, bool isGeneralSummary, bool isShowGeneralSummaryLabel, CurrencyDto currency)
 {
     GeneralSummaryLabel       = generalSummaryLabel;
     IsGeneralSummary          = isGeneralSummary;
     IsShowGeneralSummaryLabel = isShowGeneralSummaryLabel;
     Items    = new List <BudgetCashflowDivisionUnitItemDto>();
     Currency = currency;
 }
 internal void SetNominal(CurrencyDto currency, double currencyNominal, double nominal, double total)
 {
     Currency        = currency;
     CurrencyNominal = currencyNominal;
     Nominal         = nominal;
     Total           = total;
     IsecondLevel    = true;
 }
示例#6
0
 public DivisionTemporaryDivisionUnitDto(BudgetCashflowTypeModel cashflowType, CashType type, BudgetCashflowCategoryModel cashflowCategory, BudgetCashflowSubCategoryModel cashflowSubCategory, CurrencyDto currency, DivisionDto division)
 {
     CashflowType        = cashflowType;
     Type                = type;
     CashflowCategory    = cashflowCategory;
     CashflowSubCategory = cashflowSubCategory;
     Currency            = currency;
     Division            = division;
 }
示例#7
0
 public BudgetCashflowDivisionItemDto(BudgetCashflowTypeModel cashflowType, CashType type, CurrencyDto currency, bool isShowSummaryLabel)
 {
     CashflowType       = cashflowType;
     Type               = type;
     SummaryLabel       = type == CashType.In ? $"Total Penerimaan {cashflowType.Name}" : $"Total Pengeluaran {cashflowType.Name}";
     Currency           = currency;
     IsSummary          = true;
     IsShowSummaryLabel = isShowSummaryLabel;
 }
 public BudgetCashflowItemDto(bool isShowSummaryLabel, string label, CurrencyDto currency, double nominal, double currencyNominal, double actual, bool isShowSummary)
 {
     Currency           = currency;
     Nominal            = nominal;
     CurrencyNominal    = currencyNominal;
     IsShowSummaryLabel = isShowSummaryLabel;
     IsShowSummary      = isShowSummary;
     Total        = actual;
     SummaryLabel = label;
 }
        public BudgetCashflowItemDto(bool isShowSubCategoryLabel, BudgetCashflowSubCategoryModel subCategory, CurrencyDto currency)
        {
            IsShowSubCategoryLabel = isShowSubCategoryLabel;
            SubCategoryId          = subCategory.Id;
            SubCategoryName        = subCategory.Name;
            IsReadOnly             = subCategory.IsReadOnly;
            Currency = currency;

            Items = new List <UnitItemDto>();
        }
 public BudgetCashflowItemDto(bool isShowRealCashDifferenceLabel, string label, CurrencyDto currency, double nominal, double currencyNominal, double total)
 {
     Currency                      = currency;
     Nominal                       = nominal;
     CurrencyNominal               = currencyNominal;
     Total                         = total;
     RealCashDifferenceLabel       = label;
     IsShowRealCashDifferenceLabel = isShowRealCashDifferenceLabel;
     IsShowRealCashDifference      = true;
 }
 public BudgetCashflowItemDto(bool isShowRealCashBalanceLabel, RealCashBalanceModel realCashBalance, CurrencyDto currency)
 {
     Currency = currency;
     IsShowRealCashBalanceLabel = isShowRealCashBalanceLabel;
     Currency          = currency;
     Nominal           = realCashBalance.Nominal;
     CurrencyNominal   = realCashBalance.CurrencyNominal;
     Total             = realCashBalance.Total;
     IsRealCashBalance = true;
 }
 public BudgetCashflowItemDto(bool isShowSummaryBalance, string label, CurrencyDto currency, double nominal, double currencyNominal, double total, bool isSummaryBalance, string type = "summary", bool isReadOnly = false)
 {
     IsShowSummaryBalance = isShowSummaryBalance;
     SummaryBalanceLabel  = label;
     IsSummaryBalance     = isSummaryBalance;
     IsReadOnly           = isReadOnly;
     Currency             = currency;
     Nominal         = nominal;
     CurrencyNominal = currencyNominal;
     Total           = total;
 }
示例#13
0
 public BudgetCashflowDivisionItemDto(BudgetCashflowTypeModel cashflowType, CashType type, BudgetCashflowCategoryModel cashflowCategory, BudgetCashflowSubCategoryModel cashflowSubCategory, CurrencyDto currency, bool isShowSubCategoryLabel) : this(cashflowType, type)
 {
     CashflowType           = cashflowType;
     Type                   = type;
     TypeName               = type.ToDescriptionString();
     CashflowCategory       = cashflowCategory;
     CashflowSubCategory    = cashflowSubCategory;
     Currency               = currency;
     IsSubCategory          = true;
     IsShowSubCategoryLabel = isShowSubCategoryLabel;
     Items                  = new List <BudgetCashflowDivisionUnitItemDto>();
 }
示例#14
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;
 }
 public BudgetCashflowItemDto(List <UnitItemDto> items, int cashflowTypeId, string cashflowTypeName, bool isUseSection, int sectionRowSpan, bool isUseGroup, int groupRowSpan, CashType type, string typeName, bool isLabelOnly, int cashflowCategoryId, string cashflowCategoryName, bool isShowSubCategoryLabel, int subCategoryId, string subCategoryName, bool isReadOnly, CurrencyDto currency, bool isShowCurrencyRateLabel, bool isShowCurrencyRate, bool isShowRealCashBalanceLabel, double nominal, double currencyNominal, bool isShowSummaryLabel, bool isShowSummary, string equivalentDifferenceLabel, bool isEquivalentDifference, double total, bool isRealCashBalance, string realCashDifferenceLabel, bool isShowRealCashDifferenceLabel, bool isShowRealCashDifference, string summaryLabel, bool isShowDifference, bool isShowTotalLabel, string totalLabel, bool isShowDifferenceLabel, string differenceLabel, bool isShowSummaryBalance, string summaryBalanceLabel, bool isSummaryBalance)
 {
     Items                         = items;
     CashflowTypeId                = cashflowTypeId;
     CashflowTypeName              = cashflowTypeName;
     IsUseSection                  = isUseSection;
     SectionRowSpan                = sectionRowSpan;
     IsUseGroup                    = isUseGroup;
     GroupRowSpan                  = groupRowSpan;
     Type                          = type;
     TypeName                      = typeName;
     IsLabelOnly                   = isLabelOnly;
     CashflowCategoryId            = cashflowCategoryId;
     CashflowCategoryName          = cashflowCategoryName;
     IsShowSubCategoryLabel        = isShowSubCategoryLabel;
     SubCategoryId                 = subCategoryId;
     SubCategoryName               = subCategoryName;
     IsReadOnly                    = isReadOnly;
     Currency                      = currency;
     IsShowCurrencyRateLabel       = isShowCurrencyRateLabel;
     IsShowCurrencyRate            = isShowCurrencyRate;
     IsShowRealCashBalanceLabel    = isShowRealCashBalanceLabel;
     Nominal                       = nominal;
     CurrencyNominal               = currencyNominal;
     IsShowSummaryLabel            = isShowSummaryLabel;
     IsShowSummary                 = isShowSummary;
     EquivalentDifferenceLabel     = equivalentDifferenceLabel;
     IsEquivalentDifference        = isEquivalentDifference;
     Total                         = total;
     IsRealCashBalance             = isRealCashBalance;
     RealCashDifferenceLabel       = realCashDifferenceLabel;
     IsShowRealCashDifferenceLabel = isShowRealCashDifferenceLabel;
     IsShowRealCashDifference      = isShowRealCashDifference;
     SummaryLabel                  = summaryLabel;
     IsShowDifference              = isShowDifference;
     IsShowTotalLabel              = isShowTotalLabel;
     TotalLabel                    = totalLabel;
     IsShowDifferenceLabel         = isShowDifferenceLabel;
     DifferenceLabel               = differenceLabel;
     IsShowSummaryBalance          = isShowSummaryBalance;
     SummaryBalanceLabel           = summaryBalanceLabel;
     IsSummaryBalance              = isSummaryBalance;
 }
 public BudgetCashflowItemDto(bool isShowCurrencyRateLabel, CurrencyDto currency)
 {
     Currency = currency;
     IsShowCurrencyRateLabel = isShowCurrencyRateLabel;
     IsShowCurrencyRate      = true;
 }
 public DivisionTemporaryRowDto(BudgetCashflowTypeModel cashflowType, CashType type, BudgetCashflowCategoryModel cashflowCategory, BudgetCashflowSubCategoryModel cashflowSubCategory, CurrencyDto currency) : this(cashflowType, type, cashflowCategory)
 {
     Currency            = currency;
     CashflowSubCategory = cashflowSubCategory;
 }