using EMIS.ViewModel.Cache; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EMIS.ViewModel.FeeManage { public class FinanceReportView { public string ReceiptNo { get; set; } public DateTime? PayTime { get; set; } public string PayTimeOrder { get; set; } public Guid? ClassmajorID { get; set; } public string ClassmajorName { get; set; } public string ExaminationRegistrationConfirmNo { get; set; } public Guid? ExaminationProjectID { get; set; } public string ExaminationProjectName { get; set; } public int? FeeTypeID { get; set; } public decimal? Fee { get; set; } public string FeeTypeName { get { var feeTypeName = IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationProjectFeeType.ToString()) .Where(x => x.Value == FeeTypeID) .Select(x => x.Name).FirstOrDefault(); return (feeTypeName ?? "") + "(" + (Fee ?? 0).ToString("#0.##") + ")"; } } public int? StudentCount { get; set; } public decimal? Amount { get; set; } public string AmountString { get { return (Amount ?? 0).ToString("#0.##"); } } public Guid? Receiver { get; set; } public string ReceiverName { get; set; } } }