PrintGDCXView.cs 2.5 KB

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