12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using Library;
- using MySystem.Service.Main;
- using System;
- using System.Collections.Generic;
- namespace MySystem
- {
- /// <summary>
- /// 机具变动历史工具类
- /// </summary>
- public class StoreChangeHistoryUtil
- {
- #region 添加机具变动历史(仓库出货)
- /// <summary>
- /// 添加机具变动历史(仓库出货)
- /// </summary>
- /// <param name="UserId">创客</param>
- /// <param name="BrandId">产品类型</param>
- /// <param name="ChangeRecordNo">变更记录单号</param>
- /// <param name="TransType">交易类型</param>
- /// <param name="SnNo">SN编号</param>
- /// <param name="SnType">SN机具类型</param>
- /// <param name="StockOpDirect">库存操作方向</param>
- /// <param name="DeviceVendor">设备厂商</param>
- /// <param name="DeviceModel">设备型号</param>
- /// <param name="DeviceType">设备类型</param>
- /// <param name="ToUserId">收货创客</param>
- /// <param name="FromUserId">出货创客</param>
- /// <param name="FromDate">出库时间</param>
- /// <param name="SourceStoreId">源仓库</param>
- /// <param name="StoreId">仓库</param>
- /// <param name="OpId"></param>
- public static void AddForTransfer(int UserId, int BrandId, string ChangeRecordNo, int TransType, string SnNo, int SnType, int StockOpDirect, string DeviceVendor, string DeviceModel, string DeviceType, int ToUserId, int FromUserId, DateTime? FromDate, int SourceStoreId, int StoreId, int OpId)
- {
- Dictionary<string, object> history = new Dictionary<string, object>();
- history.Add("UserId", UserId);//创客
- history.Add("BrandId", BrandId);//产品类型
- history.Add("ChangeRecordNo", ChangeRecordNo);//变更记录单号
- history.Add("TransType", TransType);//交易类型
- history.Add("SnNo", SnNo);//SN编号
- history.Add("SnType", SnType);//SN机具类型
- history.Add("StockOpDirect", StockOpDirect);//库存操作方向
- history.Add("DeviceVendor", DeviceVendor);//设备厂商
- history.Add("DeviceModel", DeviceModel);//设备型号
- history.Add("DeviceType", DeviceType);//设备类型
- history.Add("ToUserId", ToUserId);//收货创客
- history.Add("FromUserId", FromUserId);//出货创客
- history.Add("FromDate", DateTime.Now);//出库时间
- history.Add("SourceStoreId", SourceStoreId);//源仓库
- history.Add("StoreId", StoreId);//仓库
- history.Add("OpId", OpId);//运营中心创客Id
- StoreChangeHistoryService.Add(history);
- }
- #endregion
- }
- }
|