示例#1
0
        /// <summary>
        /// 转换分类视图和分类实体
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        private ProductChannelPeriodPrice CovertVMtoEntity(ProductChannelPeriodPriceVM data)
        {
            ProductChannelPeriodPrice msg = data.ConvertVM <ProductChannelPeriodPriceVM, ProductChannelPeriodPrice>();


            msg.CreateUser = new UserInfo {
                SysNo = CPApplication.Current.LoginUser.userSysNo, UserName = CPApplication.Current.LoginUser.LoginName, UserDisplayName = CPApplication.Current.LoginUser.DisplayName
            };
            msg.EditUser = new UserInfo {
                SysNo = CPApplication.Current.LoginUser.userSysNo, UserName = CPApplication.Current.LoginUser.LoginName, UserDisplayName = CPApplication.Current.LoginUser.DisplayName
            };
            msg.AuditUser = new UserInfo {
                SysNo = CPApplication.Current.LoginUser.userSysNo, UserName = CPApplication.Current.LoginUser.LoginName, UserDisplayName = CPApplication.Current.LoginUser.DisplayName
            };

            msg.SysNo = data.SysNo;
            return(msg);
        }