コード例 #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;
 }
 public BudgetCashflowUnitDto(BudgetCashflowTypeModel cashflowType, BudgetCashflowCategoryModel cashflowCategory, BudgetCashflowSubCategoryModel cashflowSubCategory, BudgetCashflowUnitModel cashflowUnit)
 {
     CashflowType        = cashflowType;
     CashflowCategory    = cashflowCategory;
     CashflowSubCategory = cashflowSubCategory;
     CashflowUnit        = cashflowUnit;
 }
コード例 #3
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;
 }
コード例 #4
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;
 }
コード例 #5
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>();
 }
コード例 #6
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 BudgetCashflowMasterDto(BudgetCashflowTypeModel cashflowType, BudgetCashflowCategoryModel cashflowTypeWithCategory, BudgetCashflowSubCategoryModel cashflowCategoryWithSubCategory)
        {
            CashflowType            = cashflowType.Name;
            CashflowTypeId          = cashflowType.Id;
            CashflowTypeLayoutOrder = cashflowType.LayoutOrder;


            if (cashflowTypeWithCategory != null)
            {
                CashflowCategoryId          = cashflowTypeWithCategory.Id;
                CashType                    = cashflowTypeWithCategory.Type.ToDescriptionString();
                CashflowCategory            = cashflowTypeWithCategory.Name;
                CashflowCategoryLayoutOrder = cashflowTypeWithCategory.LayoutOrder;
            }

            if (cashflowCategoryWithSubCategory != null)
            {
                CashflowSubCategoryId          = cashflowCategoryWithSubCategory.Id;
                CashflowSubCategory            = cashflowCategoryWithSubCategory.Name;
                CashflowSubCategoryLayoutOrder = cashflowCategoryWithSubCategory.LayoutOrder;
            }
        }
 public void SetCashflowType(BudgetCashflowTypeModel cashflowType)
 {
     CashflowType = cashflowType;
 }
コード例 #9
0
 public BudgetCashflowDivisionItemDto(BudgetCashflowTypeModel cashflowType)
 {
     CashflowType = cashflowType;
 }
コード例 #10
0
 public BudgetCashflowDivisionItemDto(BudgetCashflowTypeModel cashflowType, CashType type) : this(cashflowType)
 {
     Type = type;
 }
 public DivisionTemporaryRowDto(BudgetCashflowTypeModel cashflowType, CashType type, BudgetCashflowCategoryModel cashflowCategory, BudgetCashflowSubCategoryModel cashflowSubCategory, CurrencyDto currency) : this(cashflowType, type, cashflowCategory)
 {
     Currency            = currency;
     CashflowSubCategory = cashflowSubCategory;
 }
 public DivisionTemporaryRowDto(BudgetCashflowTypeModel cashflowType, CashType type, BudgetCashflowCategoryModel cashflowCategory) : this()
 {
     CashflowType     = cashflowType;
     Type             = type;
     CashflowCategory = cashflowCategory;
 }