/// <summary> /// 子对象对象转换 /// </summary> /// <param name="wmsPullingOrderInfo"></param> /// <returns></returns> private static BFDAJisPullOrderDetailInfo GetSrmJisPullOrderDetailInfo(SrmJisPullOrderDetailInfo srmJisPullOrderDetailInfo) { BFDAJisPullOrderDetailInfo detailInfo = new BFDAJisPullOrderDetailInfo { ///订单号 OrderCode = srmJisPullOrderDetailInfo.OrderCode, ///车辆序号 VehicleSeqNo = srmJisPullOrderDetailInfo.VehicleSeqNo.GetValueOrDefault().ToString(), ///物料编号 PartNo = srmJisPullOrderDetailInfo.PartNo, ///收容数 SNP = srmJisPullOrderDetailInfo.PartQty.GetValueOrDefault().ToString(), ///数量 PartQty = srmJisPullOrderDetailInfo.PartQty.GetValueOrDefault().ToString(), ///车型代码 VehicleModelNo = srmJisPullOrderDetailInfo.VehicleModelNo, ///VIN号 VINCode = srmJisPullOrderDetailInfo.Vincode, ///备注 Remark = srmJisPullOrderDetailInfo.Remark }; /// return(detailInfo); }
/// <summary> /// Create SrmJisPullOrderDetailInfo /// </summary> /// <param name="loginUser"></param> /// <returns>SrmJisPullOrderDetailInfo</returns> public static SrmJisPullOrderDetailInfo CreateSrmJisPullOrderDetailInfo(string loginUser) { SrmJisPullOrderDetailInfo info = new SrmJisPullOrderDetailInfo(); ///ID info.Id = 0; ///FID info.Fid = Guid.NewGuid(); ///ORDER_FID info.OrderFid = null; ///ROW_NO info.RowNo = null; ///ORDER_CODE info.OrderCode = null; ///VEHICLE_SEQ_NO info.VehicleSeqNo = null; ///PART_NO info.PartNo = null; ///PART_QTY info.PartQty = null; ///VEHICLE_MODEL_NO info.VehicleModelNo = null; ///VINCODE info.Vincode = null; ///CHECK_MODE info.CheckMode = null; ///REMARK info.Remark = null; ///PROCESS_FLAG info.ProcessFlag = null; ///PROCESS_TIME info.ProcessTime = null; ///VALID_FLAG info.ValidFlag = true; ///CREATE_DATE info.CreateDate = DateTime.Now; ///CREATE_USER info.CreateUser = loginUser; ///MODIFY_DATE info.ModifyDate = null; ///MODIFY_USER info.ModifyUser = null; ///COMMENTS info.Comments = null; return(info); }
/// <summary> /// MaterialPullingOrderDetailInfo-->SrmJisPullOrderDetailInfo /// </summary> /// <param name="materialPullingOrderDetailInfo"></param> /// <param name="info"></param> public static void GetSrmJisPullOrderDetailByMaterial(MaterialPullingOrderDetailInfo materialPullingOrderDetailInfo, ref SrmJisPullOrderDetailInfo info) { ///VEHICLE_SEQ_NO info.VehicleSeqNo = materialPullingOrderDetailInfo.DayVehicheSeqNo.GetValueOrDefault(); ///PART_NO info.PartNo = materialPullingOrderDetailInfo.PartNo; ///PART_QTY info.PartQty = materialPullingOrderDetailInfo.RequirePartQty; ///VEHICLE_MODEL_NO info.VehicleModelNo = materialPullingOrderDetailInfo.VehicheModelNo; ///VINCODE info.Vincode = materialPullingOrderDetailInfo.Vin; ///CHECK_MODE TODO:CHECK_MODE? info.CheckMode = null; ///COMMENTS info.Comments = materialPullingOrderDetailInfo.Comments; ///PROCESS_FLAG info.ProcessFlag = (int)ProcessFlagConstants.Untreated; }
/// <summary> /// InsertInfo /// </summary> /// <param name="info">对象</param> /// <returns></returns> public long InsertInfo(SrmJisPullOrderDetailInfo info) { return(dal.Add(info)); }
/// <summary> /// SrmJisPullOrderInfo-->SrmJisPullOrderDetailInfo /// </summary> /// <param name="srmJisPullOrderInfo"></param> /// <param name="info"></param> public static void GetSrmJisPullOrderDetailByOrder(SrmJisPullOrderInfo srmJisPullOrderInfo, ref SrmJisPullOrderDetailInfo info) { //ORDER_FID info.OrderFid = srmJisPullOrderInfo.Fid.GetValueOrDefault(); ///ORDER_CODE info.OrderCode = srmJisPullOrderInfo.OrderCode; }