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