using System; using System.Collections.Generic; using System.Linq; using System.Text; using Bowin.Common.Utility; namespace EMIS.ViewModel.FeeManage { public class PrintView { public string ReceiptNo { get; set; } public string Classmajor { get; set; } public decimal? Total { get; set; } public string TotalStr { get { return (Total ?? 0).ToString() + "元"; } } public string TenThousand { get { return MathEx.ConvertToChineseBig(Convert.ToInt32(Math.Floor((Total ?? 0) / 10000)) % 10); } } public string Thousand { get { return MathEx.ConvertToChineseBig(Convert.ToInt32(Math.Floor((Total ?? 0) / 1000)) % 10); } } public string Hundred { get { return MathEx.ConvertToChineseBig(Convert.ToInt32(Math.Floor((Total ?? 0) / 100)) % 10); } } public string Ten { get { return MathEx.ConvertToChineseBig(Convert.ToInt32(Math.Floor((Total ?? 0) / 10)) % 10); } } public string Yuan { get { return MathEx.ConvertToChineseBig(Convert.ToInt32(Total) % 10); } } public string Jiao { get { return MathEx.ConvertToChineseBig(Convert.ToInt32(Total * 10) % 10); } } public string Fen { get { return MathEx.ConvertToChineseBig(Convert.ToInt32(Total * 100) % 10); } } public string Operator { get; set; } public DateTime Date { get { return DateTime.Today; } } public int Year { get { return Date.Year; } } public int Month { get { return Date.Month; } } public int Day { get { return Date.Day; } } } }