Fin_ForeignReceivablesView.cs 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. using OASystem.Domain.Entities.Financial;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.ViewModels.Financial
  8. {
  9. /// <summary>
  10. /// 团组应收款项 View
  11. /// </summary>
  12. public class Fin_ForeignReceivablesView : Fin_ForeignReceivables
  13. {
  14. }
  15. /// <summary>
  16. /// 团组应收款项 info View
  17. /// </summary>
  18. public class ForeignReceivablesInfoView
  19. {
  20. /// <summary>
  21. /// 主键ID
  22. /// </summary>
  23. public int Id { get; set; }
  24. /// <summary>
  25. /// 团组Id
  26. /// </summary>
  27. public int Diid { get; set; }
  28. /// <summary>
  29. /// 费用名称
  30. /// </summary>
  31. public string? PriceName { get; set; }
  32. /// <summary>
  33. /// 费用
  34. /// </summary>
  35. public decimal Price { get; set; }
  36. /// <summary>
  37. /// 数量
  38. /// </summary>
  39. public int Count { get; set; }
  40. /// <summary>
  41. /// 单位
  42. /// </summary>
  43. public string? Unit { get; set; }
  44. /// <summary>
  45. /// 单项总和
  46. /// </summary>
  47. public decimal ItemSumPrice { get; set; }
  48. /// <summary>
  49. /// 付款方
  50. /// </summary>
  51. public string? To { get; set; }
  52. /// <summary>
  53. /// 付款方电话
  54. /// </summary>
  55. public string? ToTel { get; set; }
  56. /// <summary>
  57. /// 付款日期
  58. /// </summary>
  59. public string? PayDate { get; set; }
  60. /// <summary>
  61. /// 付款注意事项
  62. /// </summary>
  63. public string? Attention { get; set; }
  64. /// <summary>
  65. /// 汇率
  66. /// </summary>
  67. public decimal Rate { get; set; }
  68. /// <summary>
  69. /// 币种
  70. /// </summary>
  71. public int Currency { get; set; }
  72. /// <summary>
  73. /// 添加方式
  74. /// 0 - 账单页面添加 1 - 预算成本页面添加
  75. /// </summary>
  76. public int AddingWay { get; set; }
  77. /// <summary>
  78. /// 添加方式描述
  79. /// </summary>
  80. public string? AddingModeName
  81. {
  82. get
  83. {
  84. string str = "";
  85. if (AddingWay == 0) str = "账单模块";
  86. else if (AddingWay == 1) str = "成本预算模块";
  87. return str;
  88. }
  89. }
  90. /// <summary>
  91. /// 备注
  92. /// </summary>
  93. public string? Remark { get; set; }
  94. /// <summary>
  95. /// 创建时间
  96. /// </summary>
  97. public DateTime? CreateTime { get; set; }
  98. }
  99. /// <summary>
  100. /// 团组应收款项 含已收款项
  101. /// </summary>
  102. public class ForeignReceivablesView : ForeignReceivablesInfoView
  103. {
  104. /// <summary>
  105. /// 对应收款账单Id
  106. /// 已收款项 信息
  107. /// </summary>
  108. public List<ProceedsReceivedView>? _ProceedsReceivedDatas { get; set; }
  109. }
  110. #region 不关联已收账单
  111. /// <summary>
  112. /// 团组已收款项Info View
  113. /// </summary>
  114. public class ProceedsReceivedNewView
  115. {
  116. /// <summary>
  117. /// 主键ID
  118. /// </summary>
  119. public int Id { get; set; }
  120. /// <summary>
  121. /// 团组Id
  122. /// </summary>
  123. public int Diid { get; set; }
  124. /// <summary>
  125. /// 费用名称
  126. /// </summary>
  127. public string? PriceName { get; set; }
  128. /// <summary>
  129. /// 费用
  130. /// </summary>
  131. public decimal Price { get; set; }
  132. /// <summary>
  133. /// 数量
  134. /// </summary>
  135. public int Count { get; set; }
  136. /// <summary>
  137. /// 单位
  138. /// </summary>
  139. public string? Unit { get; set; }
  140. /// <summary>
  141. /// 单项总和
  142. /// </summary>
  143. public decimal ItemSumPrice { get; set; }
  144. /// <summary>
  145. /// 付款方
  146. /// </summary>
  147. public string? To { get; set; }
  148. /// <summary>
  149. /// 付款方电话
  150. /// </summary>
  151. public string? ToTel { get; set; }
  152. /// <summary>
  153. /// 付款日期
  154. /// </summary>
  155. public string? PayDate { get; set; }
  156. /// <summary>
  157. /// 付款注意事项
  158. /// </summary>
  159. public string? Attention { get; set; }
  160. /// <summary>
  161. /// 汇率
  162. /// </summary>
  163. public decimal Rate { get; set; }
  164. /// <summary>
  165. /// 币种
  166. /// </summary>
  167. public int Currency { get; set; }
  168. /// <summary>
  169. /// 币种Str
  170. /// </summary>
  171. public string CurrencyStr { get; set; }
  172. /// <summary>
  173. /// 添加方式
  174. /// 0 - 账单模块 1 - 预算成本页面添加
  175. /// </summary>
  176. public int AddingWay { get; set; }
  177. /// <summary>
  178. /// 添加方式描述
  179. /// </summary>
  180. public string? AddingModeName
  181. {
  182. get
  183. {
  184. string str = "";
  185. if (AddingWay == 0) str = "账单模块";
  186. else if (AddingWay == 1) str = "成本预算模块";
  187. else if (AddingWay == 2) str = "实际报价";
  188. return str;
  189. }
  190. }
  191. public int IsAudit { get; set; }
  192. /// <summary>
  193. /// 备注
  194. /// </summary>
  195. public string? Remark { get; set; }
  196. /// <summary>
  197. /// 创建时间
  198. /// </summary>
  199. public DateTime? CreateTime { get; set; }
  200. public int Status { get; set; }
  201. public string AuditorName { get; set; }
  202. public string AuditTime { get; set; }
  203. }
  204. #endregion
  205. #region 应收报表
  206. public class Excel_SyntheticalReceivableByDateRange{
  207. public string No { get; set; }
  208. /// <summary>
  209. /// 团组名称
  210. /// </summary>
  211. public string TeamName { get; set; }
  212. /// <summary>
  213. /// 单位
  214. /// </summary>
  215. public string ClientUnit { get; set; }
  216. /// <summary>
  217. /// 出访时间
  218. /// </summary>
  219. public string VisitDate { get; set; }
  220. /// <summary>
  221. /// 应收
  222. /// </summary>
  223. public string Accounts { get; set; }
  224. /// <summary>
  225. /// 超支
  226. /// </summary>
  227. public string Extra { get; set; }
  228. /// <summary>
  229. /// 应收总计(应收+超支)
  230. /// </summary>
  231. public string ReceivableTotal { get; set; }
  232. /// <summary>
  233. /// 已收
  234. /// </summary>
  235. public string Received { get; set; }
  236. /// <summary>
  237. /// 收款退还
  238. /// </summary>
  239. public string RefundAmount { get; set; }
  240. /// <summary>
  241. /// 已收合计(已收 - 收款退还)
  242. /// </summary>
  243. public string ReceivedTotal { get; set; }
  244. /// <summary>
  245. /// 余款
  246. /// </summary>
  247. public string Balance { get; set; }
  248. /// <summary>
  249. /// 收款进度
  250. /// </summary>
  251. public string Collection { get; set; }
  252. public string Sign { get; set; }
  253. }
  254. public class PostSyntheticalReceivableByDateRangeResultView
  255. {
  256. public string total_fr { get; set; }
  257. public string total_pr { get; set; }
  258. public string total_balance { get; set; }
  259. public List<PostSyntheticalReceivableByDateRangeView> dataList { get; set; }
  260. }
  261. public class PostSyntheticalReceivableByDateRangeView
  262. {
  263. public int No { get; set; }
  264. /// <summary>
  265. /// 团组Id
  266. /// </summary>
  267. public int diid { get; set; }
  268. /// <summary>
  269. /// 团组名称
  270. /// </summary>
  271. public string teamName { get; set; }
  272. /// <summary>
  273. /// 单位
  274. /// </summary>
  275. public string clientUnit { get; set; }
  276. /// <summary>
  277. /// 出访时间
  278. /// </summary>
  279. public string visitDate { get; set; }
  280. /// <summary>
  281. /// 应收
  282. /// </summary>
  283. public string frPrice { get; set; }
  284. /// <summary>
  285. /// 超支
  286. /// </summary>
  287. public string extraPrice { get; set; }
  288. /// <summary>
  289. /// 应收总计(应收+超支)
  290. /// </summary>
  291. public string receivableTotal { get; set; }
  292. /// <summary>
  293. /// 已收
  294. /// </summary>
  295. public string prPrice { get; set; }
  296. /// <summary>
  297. /// 退款-->收款退还
  298. /// </summary>
  299. public string refundAmount { get; set; }
  300. /// <summary>
  301. /// 已收总计(已收-收款退还)
  302. /// </summary>
  303. public string receivedTotal { get; set; }
  304. /// <summary>
  305. /// 余款(应收 - 已收)
  306. /// </summary>
  307. public string balPrice { get; set; }
  308. /// <summary>
  309. /// 收款单位
  310. /// </summary>
  311. public string prClient { get; set; }
  312. /// <summary>
  313. /// 收款进度
  314. /// </summary>
  315. public string schedule { get; set; }
  316. /// <summary>
  317. /// 子项明细
  318. /// </summary>
  319. public List<ClientFeeInfoView>? feeItem { get; set; }
  320. }
  321. /// <summary>
  322. /// 单位应收已收详情 Info View
  323. /// 新增
  324. /// 雷怡 2024-01-08 11:01:55
  325. /// </summary>
  326. public class ClientFeeInfoView
  327. {
  328. /// <summary>
  329. /// 付款单位
  330. /// </summary>
  331. public string client { get; set; }
  332. /// <summary>
  333. /// 金额 - 应收
  334. /// </summary>
  335. public string frMoney { get; set; }
  336. /// <summary>
  337. /// 汇率 - 应收
  338. /// </summary>
  339. public string frRate { get; set; }
  340. /// <summary>
  341. /// 币种 - 应收
  342. /// </summary>
  343. public string frCurrency { get; set; }
  344. /// <summary>
  345. /// 付款类型(转账,刷卡等) - 已收
  346. /// </summary>
  347. public string prReceivablesType { get; set; }
  348. /// <summary>
  349. /// 到款时间 - 已收
  350. /// </summary>
  351. public string prTime { get; set; }
  352. /// <summary>
  353. /// 付款金额 - 已收
  354. /// </summary>
  355. public string prMoney { get; set; }
  356. /// <summary>
  357. /// 付款币种 - 已收
  358. /// </summary>
  359. public string prCurrency { get; set; }
  360. /// <summary>
  361. /// 尾款
  362. /// </summary>
  363. public string balPayment { get; set; }
  364. }
  365. #endregion
  366. }