Settlement.cs 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.Data.Linq.Mapping;
  4. using PTMIBase.Entity;
  5. namespace DongGuanWI.Entity.Inpatient
  6. {
  7. class SettlementInput:EntityBase
  8. {
  9. /// <summary>
  10. /// 交易号
  11. /// 类型:string, 长度:20, 不允许为空
  12. /// </summary>
  13. [Column(Name = "function_id", Storage = null, DbType = "VarChar(20)", CanBeNull = false)]
  14. [Required(ErrorMessage = "交易号不能为空")]
  15. [StringLength(20, ErrorMessage = "交易号长度不能超过20个字符")]
  16. public string function_id { get; set; }
  17. /// <summary>
  18. /// 医疗机构编码
  19. /// 类型:string, 长度:20, 不允许为空
  20. /// </summary>
  21. [Column(Name = "akb020", Storage = null, DbType = "VarChar(20)", CanBeNull = false)]
  22. [Required(ErrorMessage = "医疗机构编码不能为空")]
  23. [StringLength(20, ErrorMessage = "医疗机构编码长度不能超过20个字符")]
  24. public string akb020 { get; set; }
  25. /// <summary>
  26. /// 就医登记号
  27. /// 类型:string, 长度:20, 不允许为空
  28. /// </summary>
  29. [Column(Name = "aaz218", Storage = null, DbType = "VarChar(20)", CanBeNull = false)]
  30. [Required(ErrorMessage = "就医登记号不能为空")]
  31. [StringLength(20, ErrorMessage = "就医登记号长度不能超过20个字符")]
  32. public string aaz218 { get; set; }
  33. /// <summary>
  34. /// 完成人工号
  35. /// 类型:string, 长度:20, 不允许为空
  36. /// </summary>
  37. [Column(Name = "bka046", Storage = null, DbType = "VarChar(20)", CanBeNull = false)]
  38. [Required(ErrorMessage = "完成人工号不能为空")]
  39. [StringLength(20, ErrorMessage = "完成人工号长度不能超过20个字符")]
  40. public string bka046 { get; set; }
  41. /// <summary>
  42. /// 完成人
  43. /// 类型:string, 长度:50, 不允许为空
  44. /// </summary>
  45. [Column(Name = "bka047", Storage = null, DbType = "VarChar(50)", CanBeNull = false)]
  46. [Required(ErrorMessage = "完成人不能为空")]
  47. [StringLength(50, ErrorMessage = "完成人长度不能超过50个字符")]
  48. public string bka047 { get; set; }
  49. }
  50. class SettlementOUtuput : EntityBase
  51. {
  52. /// <summary>
  53. /// 医院编号
  54. /// 类型:string, 长度:20, 默认可空
  55. /// </summary>
  56. [Column(Name = "akb020", Storage = null, DbType = "VarChar(20)", CanBeNull = true)]
  57. [StringLength(20, ErrorMessage = "医院编号长度不能超过20个字符")]
  58. public string akb020 { get; set; }
  59. /// <summary>
  60. /// 就医登记号
  61. /// 类型:string, 长度:20, 默认可空
  62. /// </summary>
  63. [Column(Name = "aaz218", Storage = null, DbType = "VarChar(20)", CanBeNull = true)]
  64. [StringLength(20, ErrorMessage = "就医登记号长度不能超过20个字符")]
  65. public string aaz218 { get; set; }
  66. /// <summary>
  67. /// 医疗总费用
  68. /// 类型:string, 长度:12, 默认可空
  69. /// 计算公式:akc264 = bka831 + bka832,精确到小数点后2位
  70. /// </summary>
  71. [Column(Name = "akc264", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  72. [StringLength(12, ErrorMessage = "医疗总费用长度不能超过12个字符")]
  73. public string akc264 { get; set; }
  74. /// <summary>
  75. /// 个人自付
  76. /// 类型:string, 长度:12, 默认可空
  77. /// 计算公式:bka831 = akb067 + akb066 + bka839,精确到小数点后2位
  78. /// </summary>
  79. [Column(Name = "bka831", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  80. [StringLength(12, ErrorMessage = "个人自付长度不能超过12个字符")]
  81. public string bka831 { get; set; }
  82. /// <summary>
  83. /// 工伤保险支付
  84. /// 类型:string, 长度:12, 默认可空
  85. /// 计算公式:bka832 = ake039 + ake035 + ake026 + ake029 + bka841 + bka842 + bka840 + bka821,精确到小数点后2位
  86. /// </summary>
  87. [Column(Name = "bka832", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  88. [StringLength(12, ErrorMessage = "工伤保险支付长度不能超过12个字符")]
  89. public string bka832 { get; set; }
  90. /// <summary>
  91. /// 全自费费用
  92. /// 类型:string, 长度:12, 默认可空
  93. /// 精确到小数点后2位
  94. /// </summary>
  95. [Column(Name = "bka825", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  96. [StringLength(12, ErrorMessage = "全自费费用长度不能超过12个字符")]
  97. public string bka825 { get; set; }
  98. /// <summary>
  99. /// 部分自费费用
  100. /// 类型:string, 长度:12, 默认可空
  101. /// 精确到小数点后2位
  102. /// </summary>
  103. [Column(Name = "bka826", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  104. [StringLength(12, ErrorMessage = "部分自费费用长度不能超过12个字符")]
  105. public string bka826 { get; set; }
  106. /// <summary>
  107. /// 起付线费用
  108. /// 类型:string, 长度:12, 默认可空
  109. /// 精确到小数点后2位
  110. /// </summary>
  111. [Column(Name = "aka151", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  112. [StringLength(12, ErrorMessage = "起付线费用长度不能超过12个字符")]
  113. public string aka151 { get; set; }
  114. /// <summary>
  115. /// 超共付段费用个人自付
  116. /// 类型:string, 长度:12, 默认可空
  117. /// 精确到小数点后2位
  118. /// </summary>
  119. [Column(Name = "bka838", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  120. [StringLength(12, ErrorMessage = "超共付段费用个人自付长度不能超过12个字符")]
  121. public string bka838 { get; set; }
  122. /// <summary>
  123. /// 个人现金支付
  124. /// 类型:string, 长度:12, 默认可空
  125. /// 精确到小数点后2位
  126. /// </summary>
  127. [Column(Name = "akb067", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  128. [StringLength(12, ErrorMessage = "个人现金支付长度不能超过12个字符")]
  129. public string akb067 { get; set; }
  130. /// <summary>
  131. /// 个人账户支付
  132. /// 类型:string, 长度:12, 默认可空
  133. /// 精确到小数点后2位
  134. /// </summary>
  135. [Column(Name = "akb066", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  136. [StringLength(12, ErrorMessage = "个人账户支付长度不能超过12个字符")]
  137. public string akb066 { get; set; }
  138. /// <summary>
  139. /// 民政救助金支付
  140. /// 类型:string, 长度:12, 默认可空
  141. /// 精确到小数点后2位
  142. /// </summary>
  143. [Column(Name = "bka821", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  144. [StringLength(12, ErrorMessage = "民政救助金支付长度不能超过12个字符")]
  145. public string bka821 { get; set; }
  146. /// <summary>
  147. /// 其他支付
  148. /// 类型:string, 长度:12, 默认可空
  149. /// 精确到小数点后2位
  150. /// </summary>
  151. [Column(Name = "bka839", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  152. [StringLength(12, ErrorMessage = "其他支付长度不能超过12个字符")]
  153. public string bka839 { get; set; }
  154. /// <summary>
  155. /// 工伤保险统筹基金支付
  156. /// 类型:string, 长度:12, 默认可空
  157. /// 精确到小数点后2位
  158. /// </summary>
  159. [Column(Name = "ake039", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  160. [StringLength(12, ErrorMessage = "工伤保险统筹基金支付长度不能超过12个字符")]
  161. public string ake039 { get; set; }
  162. /// <summary>
  163. /// 公务员医疗补助基金支付
  164. /// 类型:string, 长度:12, 默认可空
  165. /// 精确到小数点后2位
  166. /// </summary>
  167. [Column(Name = "ake035", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  168. [StringLength(12, ErrorMessage = "公务员医疗补助基金支付长度不能超过12个字符")]
  169. public string ake035 { get; set; }
  170. /// <summary>
  171. /// 企业补充工伤保险基金支付
  172. /// 类型:string, 长度:12, 默认可空
  173. /// 精确到小数点后2位
  174. /// </summary>
  175. [Column(Name = "ake026", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  176. [StringLength(12, ErrorMessage = "企业补充工伤保险基金支付长度不能超过12个字符")]
  177. public string ake026 { get; set; }
  178. /// <summary>
  179. /// 大额医疗费用补助基金支付
  180. /// 类型:string, 长度:12, 默认可空
  181. /// 精确到小数点后2位
  182. /// </summary>
  183. [Column(Name = "ake029", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  184. [StringLength(12, ErrorMessage = "大额医疗费用补助基金支付长度不能超过12个字符")]
  185. public string ake029 { get; set; }
  186. /// <summary>
  187. /// 单位支付
  188. /// 类型:string, 长度:12, 默认可空
  189. /// 精确到小数点后2位
  190. /// </summary>
  191. [Column(Name = "bka841", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  192. [StringLength(12, ErrorMessage = "单位支付长度不能超过12个字符")]
  193. public string bka841 { get; set; }
  194. /// <summary>
  195. /// 医院垫付
  196. /// 类型:string, 长度:12, 默认可空
  197. /// 精确到小数点后2位
  198. /// </summary>
  199. [Column(Name = "bka842", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  200. [StringLength(12, ErrorMessage = "医院垫付长度不能超过12个字符")]
  201. public string bka842 { get; set; }
  202. /// <summary>
  203. /// 其他基金支付
  204. /// 类型:string, 长度:12, 默认可空
  205. /// 精确到小数点后2位
  206. /// </summary>
  207. [Column(Name = "bka840", Storage = null, DbType = "VarChar(12)", CanBeNull = true)]
  208. [StringLength(12, ErrorMessage = "其他基金支付长度不能超过12个字符")]
  209. public string bka840 { get; set; }
  210. }
  211. }