PrintView.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Bowin.Common.Utility;
  6. namespace EMIS.ViewModel.FeeManage
  7. {
  8. public class PrintView
  9. {
  10. public string ReceiptNo { get; set; }
  11. public string Classmajor { get; set; }
  12. public decimal? Total { get; set; }
  13. public string TotalStr
  14. {
  15. get
  16. {
  17. return (Total ?? 0).ToString() + "元";
  18. }
  19. }
  20. public string TenThousand
  21. {
  22. get
  23. {
  24. return MathEx.ConvertToChineseBig(Convert.ToInt32(Math.Floor((Total ?? 0) / 10000)) % 10);
  25. }
  26. }
  27. public string Thousand
  28. {
  29. get
  30. {
  31. return MathEx.ConvertToChineseBig(Convert.ToInt32(Math.Floor((Total ?? 0) / 1000)) % 10);
  32. }
  33. }
  34. public string Hundred
  35. {
  36. get
  37. {
  38. return MathEx.ConvertToChineseBig(Convert.ToInt32(Math.Floor((Total ?? 0) / 100)) % 10);
  39. }
  40. }
  41. public string Ten
  42. {
  43. get
  44. {
  45. return MathEx.ConvertToChineseBig(Convert.ToInt32(Math.Floor((Total ?? 0) / 10)) % 10);
  46. }
  47. }
  48. public string Yuan
  49. {
  50. get
  51. {
  52. return MathEx.ConvertToChineseBig(Convert.ToInt32(Total) % 10);
  53. }
  54. }
  55. public string Jiao
  56. {
  57. get
  58. {
  59. return MathEx.ConvertToChineseBig(Convert.ToInt32(Total * 10) % 10);
  60. }
  61. }
  62. public string Fen
  63. {
  64. get
  65. {
  66. return MathEx.ConvertToChineseBig(Convert.ToInt32(Total * 100) % 10);
  67. }
  68. }
  69. public string Operator { get; set; }
  70. public DateTime Date
  71. {
  72. get
  73. {
  74. return DateTime.Today;
  75. }
  76. }
  77. public int Year
  78. {
  79. get
  80. {
  81. return Date.Year;
  82. }
  83. }
  84. public int Month
  85. {
  86. get
  87. {
  88. return Date.Month;
  89. }
  90. }
  91. public int Day
  92. {
  93. get
  94. {
  95. return Date.Day;
  96. }
  97. }
  98. }
  99. }