public FinanceRecordViewModel(ClassPaymentModel classPayment, Color recordColor, FinanceStatisticBussiness bussiness) { _statisticType = StatisticTypeEnum.ClassFee; AccountID = classPayment.PaymentID; _classPayment = classPayment; _recordColor = recordColor; RecordItem = bussiness.GetItemName(classPayment); RecordDate = _classPayment.PaymentDate.ToString("yyyy年MM月dd日"); RecordAmount = classPayment.TotalCost.ToString(); ChangeSelectState(false); }
public FinanceRecordViewModel(TeacherFeeModel teacherFee, Color recordColor, FinanceStatisticBussiness bussiness) { _statisticType = StatisticTypeEnum.TeacherFee; AccountID = teacherFee.TeacherFeeID; _teacherFee = teacherFee; _recordColor = recordColor; RecordItem = bussiness.GetItemName(teacherFee); RecordDate = _teacherFee.PaymentDate.ToString("yyyy年MM月dd日"); RecordAmount = teacherFee.Amount.ToString(); ChangeSelectState(false); }