123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using Library;
- using MySystem.Models.Main;
- using MySystem.Service.Main;
- using System;
- using System.Collections.Generic;
- namespace MySystem
- {
- /// <summary>
- /// 机具库工具类
- /// </summary>
- public class PosMachinesTwoUtil
- {
- #region 修改机具信息(仓库出货)
- /// <summary>
- /// 修改机具信息(仓库出货)
- /// </summary>
- /// <param name="PosId">机具Id</param>
- /// <param name="OrderId">订单Id</param>
- /// <param name="BuyUserId">购买创客Id</param>
- /// <param name="UserId">所属创客Id</param>
- /// <param name="TransferTime">划拨时间</param>
- /// <param name="RecycEndDate">循环截止时间</param>
- /// <param name="PosSnType">机具类型</param>
- /// <param name="LeaderUserId">盟主创客Id</param>
- public static void EditPosInfo(int PosId, int OrderId, int BuyUserId, int UserId, DateTime? TransferTime, DateTime? RecycEndDate, int PosSnType, int LeaderUserId)
- {
- Dictionary<string, object> posData = new Dictionary<string, object>();
- posData.Add("OrderId", OrderId);
- posData.Add("BuyUserId", BuyUserId);
- posData.Add("UserId", UserId);
- posData.Add("TransferTime", TransferTime);
- posData.Add("RecycEndDate", RecycEndDate);
- posData.Add("PosSnType", PosSnType);
- posData.Add("LeaderUserId", LeaderUserId);
- PosMachinesTwoService.Edit(posData, PosId);
- }
- #endregion
- #region 赋值机具预发机所属人信息
- /// <summary>
- /// 赋值机具预发机所属人信息
- /// </summary>
- /// <param name="SnId">机具Id</param>
- /// <param name="PreUserId">预发机所属人</param>
- public static void SetPosMachinesTwoValue(int SnId, int PreUserId)
- {
- PosMachinesTwo pos = new PosMachinesTwo();
- pos.Id = SnId;
- pos.PreUserId = PreUserId; //预发机所属人
- PreSendStockDetailUtil.LPos.Add(pos);
- }
- #endregion
- #region 修改机具预发机所属人标记
- /// <summary>
- /// 修改机具预发机所属人标记
- /// </summary>
- public static void EditPosPreUserIdValue(List<PosMachinesTwo> LPos)
- {
- foreach (var item in LPos)
- {
- Dictionary<string, object> query = new Dictionary<string, object>();
- query.Add("PreUserId", item.PreUserId); //预发机所属人
- PreSendStockDetailService.Edit(query,item.Id);
- }
- }
- #endregion
- }
- }
|