UserStoreChangeUtil.cs 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 UserStoreChangeUtil
  11. {
  12. #region 添加创客库存变动记录(仓库出货)
  13. /// <summary>
  14. /// 添加创客库存变动记录(仓库出货)
  15. /// </summary>
  16. /// <param name="UserId">创客</param>
  17. /// <param name="BrandId">产品类型</param>
  18. /// <param name="ChangeRecordNo">变更记录单号</param>
  19. /// <param name="TransType">交易类型</param>
  20. /// <param name="SnNo">SN编号</param>
  21. /// <param name="SnType">SN机具类型</param>
  22. /// <param name="StockOpDirect">库存操作方向</param>
  23. /// <param name="DeviceVendor">设备厂商</param>
  24. /// <param name="DeviceType">设备类型</param>
  25. /// <param name="DeviceModel">设备型号</param>
  26. /// <param name="ToUserId">收货创客</param>
  27. /// <param name="ToDate">入库时间</param>
  28. /// <param name="SourceStoreId">源仓库</param>
  29. /// <param name="SnStatus">SN状态</param>
  30. /// <param name="BindStatus">绑定状态</param>
  31. /// <param name="BindMerchantId">绑定商户</param>
  32. /// <param name="ActiveStatus"><激活状态/param>
  33. /// <param name="ActRewardUserId">激活奖励创客</param>
  34. /// <param name="BrandType">品牌类型</param>
  35. public static void AddForTransfer(int UserId, int BrandId, string ChangeRecordNo, int TransType, string SnNo, int SnType, int StockOpDirect, string DeviceVendor, string DeviceType, string DeviceModel, int ToUserId, DateTime? ToDate, int SourceStoreId, int SnStatus, int BindStatus, int BindMerchantId, int ActiveStatus, int ActRewardUserId, string BrandType)
  36. {
  37. Dictionary<string, object> userstore = new Dictionary<string, object>();
  38. userstore.Add("UserId", UserId);//创客
  39. userstore.Add("BrandId", BrandId);//产品类型
  40. userstore.Add("ChangeRecordNo", ChangeRecordNo);//变更记录单号
  41. userstore.Add("TransType", TransType);//交易类型
  42. userstore.Add("SnNo", SnNo);//SN编号
  43. userstore.Add("SnType", SnType);//SN机具类型
  44. userstore.Add("StockOpDirect", StockOpDirect);//库存操作方向
  45. userstore.Add("DeviceVendor", DeviceVendor);//设备厂商
  46. userstore.Add("DeviceType", DeviceType);//设备类型
  47. userstore.Add("DeviceModel", DeviceModel);//设备型号
  48. userstore.Add("ToUserId", ToUserId);//收货创客
  49. userstore.Add("ToDate", DateTime.Now);//入库时间
  50. userstore.Add("SourceStoreId", SourceStoreId);//源仓库
  51. userstore.Add("SnStatus", SnStatus);//SN状态
  52. userstore.Add("BindStatus", BindStatus);//绑定状态
  53. userstore.Add("BindMerchantId", BindMerchantId);//绑定商户
  54. userstore.Add("ActiveStatus", ActiveStatus);//激活状态
  55. userstore.Add("ActRewardUserId", ActRewardUserId);//激活奖励创客
  56. userstore.Add("BrandType", BrandType);//品牌类型
  57. UserStoreChangeService.Add(userstore);
  58. }
  59. #endregion
  60. }
  61. }