/// <summary>
        /// Entity转Model
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        private V_tm_pm_userinfo EntityToModel(tm_pm_userinfo entity)
        {
            if (entity != null)
            {
                V_tm_pm_userinfo model = new V_tm_pm_userinfo()
                {
                    USERID = entity.USERID,
                    OWNERID = entity.OWNERID,
                    ISDELETED = entity.ISDELETED,
                    CREATEUSERNAME = entity.CREATEUSERNAME,
                    EDITUSERNAME = entity.EDITUSERNAME,
                    OWNERNAME = entity.OWNERNAME,
                    USERTYPE = entity.USERTYPE,
                    LOGINNAME = entity.LOGINNAME,
                    LOGINPWD = entity.LOGINPWD,
                    MOBILEPHONE = entity.MOBILEPHONE,
                    EMAIL = entity.EMAIL,
                    CREATEUSERID = entity.CREATEUSERID,
                    CREATEDATETIME = entity.CREATEDATETIME,
                    EDITUSERID = entity.EDITUSERID,
                    EDITDATETIME = entity.EDITDATETIME,
                };

                return model;
            }

            return null;
        }
        /// <summary>
        /// Model转Entity
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        private tm_pm_userinfo ModelToEntity(V_tm_pm_userinfo model)
        {
            if (model != null)
            {
                tm_pm_userinfo entity = new tm_pm_userinfo()
                {
                    USERID = model.USERID,
                    OWNERID = model.OWNERID,
                    ISDELETED = model.ISDELETED,
                    CREATEUSERNAME = model.CREATEUSERNAME,
                    EDITUSERNAME = model.EDITUSERNAME,
                    OWNERNAME = model.OWNERNAME,
                    USERTYPE = model.USERTYPE,
                    LOGINNAME = model.LOGINNAME,
                    LOGINPWD = model.LOGINPWD,
                    MOBILEPHONE = model.MOBILEPHONE,
                    EMAIL = model.EMAIL,
                    CREATEUSERID = model.CREATEUSERID,
                    CREATEDATETIME = model.CREATEDATETIME,
                    EDITUSERID = model.EDITUSERID,
                    EDITDATETIME = model.EDITDATETIME,
                };

                return entity;
            }
            return null;
        }