Пример #1
0
 public DbPreferences(
     int preferenceId,
     string userId,
     MonthGoalType monthGoalType,
     int monthFixedGoal,
     int yearGoal,
     double yearStartAmount)
 {
     PreferenceId    = preferenceId;
     UserId          = userId;
     MonthGoalType   = monthGoalType;
     MonthFixedGoal  = monthFixedGoal;
     YearGoal        = yearGoal;
     YearStartAmount = yearStartAmount;
 }
Пример #2
0
 public CurrentMonth(
     int monthId,
     int?previousMonthId,
     DateTime startDate,
     string monthName,
     int goal,
     int monthFixedGoal,
     int monthCalculatedGoal,
     MonthGoalType monthGoalType,
     double grossCredits,
     double grossDebits,
     double startAmount,
     List <double> ajustments,
     int year,
     DateTime yearStartDate,
     double yearStartAmount,
     int yearGoal,
     bool isCurrentYear,
     double yearSaved,
     double monthSaved,
     double balance,
     double amountLeftToSave,
     List <string> categories)
 {
     MonthId             = monthId;
     PreviousMonthId     = previousMonthId;
     StartDate           = startDate;
     MonthName           = monthName;
     Goal                = goal;
     MonthFixedGoal      = monthFixedGoal;
     MonthCalculatedGoal = monthCalculatedGoal;
     MonthGoalType       = monthGoalType;
     GrossCredits        = grossCredits;
     GrossDebits         = grossDebits;
     StartAmount         = startAmount;
     Adustments          = ajustments;
     Year                = year;
     YearStartDate       = yearStartDate;
     YearStartAmount     = yearStartAmount;
     YearGoal            = yearGoal;
     IsCurrentMonth      = isCurrentYear;
     YearSaved           = yearSaved;
     MonthSaved          = monthSaved;
     Balance             = balance;
     AmountLeftToSave    = amountLeftToSave;
     Categories          = categories;
 }