Esempio n. 1
0
        /// <summary>
        /// 子对象对象转换
        /// </summary>
        /// <param name="wmsPullingOrderInfo"></param>
        /// <returns></returns>
        private static BFDAPartReturnSheetDetailInfo GetSrmPartReturnSheetDetailInfo(SrmPartReturnSheetDetailInfo srmPartReturnSheetDetailInfo)
        {
            BFDAPartReturnSheetDetailInfo detailInfo = new BFDAPartReturnSheetDetailInfo();

            detailInfo.PartNo       = srmPartReturnSheetDetailInfo.PartNo;                                 ///物料编号
            detailInfo.PartCName    = srmPartReturnSheetDetailInfo.PartCname;                              ///物料编号
            detailInfo.PartQty      = srmPartReturnSheetDetailInfo.PartQty.GetValueOrDefault().ToString(); ///收容数
            detailInfo.TargetSLCode = srmPartReturnSheetDetailInfo.TargetSlcode;                           ///车型代码
            detailInfo.Remark       = srmPartReturnSheetDetailInfo.Remark;                                 ///备注
            return(detailInfo);
        }
        /// <summary>
        /// Create SrmPartReturnSheetDetailInfo
        /// </summary>
        /// <param name="loginUser"></param>
        /// <returns>SrmPartReturnSheetDetailInfo</returns>
        public static SrmPartReturnSheetDetailInfo CreateSrmPartReturnSheetDetailInfo(string loginUser)
        {
            SrmPartReturnSheetDetailInfo info = new SrmPartReturnSheetDetailInfo();

            ///ID
            info.Id = 0;
            ///FID
            info.Fid = Guid.NewGuid();
            ///LOG_FID
            info.LogFid = null;
            ///ORDER_CODE
            info.OrderCode = null;
            ///PART_NO
            info.PartNo = null;
            ///PART_CNAME
            info.PartCname = null;
            ///PART_QTY
            info.PartQty = null;
            ///TARGET_SLCODE
            info.TargetSlcode = null;
            ///REMARK
            info.Remark = null;
            ///VALID_FLAG
            info.ValidFlag = true;
            ///CREATE_USER
            info.CreateUser = loginUser;
            ///CREATE_DATE
            info.CreateDate = DateTime.Now;
            ///MODIFY_USER
            info.ModifyUser = null;
            ///MODIFY_DATE
            info.ModifyDate = null;
            ///COMMENTS
            info.Comments = null;
            return(info);
        }
 /// <summary>
 /// InsertInfo
 /// </summary>
 /// <param name="info">对象</param>
 /// <returns></returns>
 public long InsertInfo(SrmPartReturnSheetDetailInfo info)
 {
     return(dal.Add(info));
 }