UserAccountRecordUtil.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using Library;
  2. using MySystem.Service.Main;
  3. using System;
  4. using System.Collections.Generic;
  5. namespace MySystem
  6. {
  7. /// <summary>
  8. /// 收支明细工具类
  9. /// </summary>
  10. public class UserAccountRecordUtil
  11. {
  12. #region 预发机撤回退还小分仓押金
  13. /// <summary>
  14. /// 预发机撤回退还小分仓押金
  15. /// </summary>
  16. /// <param name="Remark">备注</param>
  17. /// <param name="ChangeType">变动类型</param>
  18. /// <param name="BeforeBalanceAmount">变更前小分仓押金</param>
  19. /// <param name="AfterBalanceAmount">变更后小分仓押金</param>
  20. /// <param name="ChangeAmount">变动金额</param>
  21. /// <param name="UserId"></param>
  22. public static void AddRecordForCanclePos(string Remark,int ChangeType,decimal BeforeBalanceAmount,decimal AfterBalanceAmount,decimal ChangeAmount,int UserId)
  23. {
  24. Dictionary<string, object> infoData = new Dictionary<string, object>();
  25. infoData.Add("Remark", Remark);
  26. infoData.Add("ChangeType", ChangeType);
  27. infoData.Add("BeforeBalanceAmount", BeforeBalanceAmount);
  28. infoData.Add("AfterBalanceAmount", AfterBalanceAmount);
  29. infoData.Add("ChangeAmount", ChangeAmount);
  30. infoData.Add("UserId", UserId);
  31. UserAccountRecordService.Add(infoData);
  32. }
  33. #endregion
  34. }
  35. }