/// <summary>
        /// Entity转Model
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        private V_tm_pm_post  EntityToModel(tm_pm_post  entity)
        {
            if (entity != null)
            {
                V_tm_pm_post  model = new V_tm_pm_post ()
                {
                                       	POSTID = entity.POSTID,
                                        	POSTDICTIONARYID = entity.POSTDICTIONARYID,
                                        	COMPANYID = entity.COMPANYID,
                                        	DEPARTMENTID = entity.DEPARTMENTID,
                                        	DEPARTMENTNAME = entity.DEPARTMENTNAME,
                                        	POSTNAME = entity.POSTNAME,
                                        	POSTFUNCTION = entity.POSTFUNCTION,
                                        	POSTNUMBER = entity.POSTNUMBER,
                                        	POSTLEVEL = entity.POSTLEVEL,
                                        	POSTCOEFFICIENT = entity.POSTCOEFFICIENT,
                                        	SALARYLEVEL = entity.SALARYLEVEL,
                                        	POSTGOAL = entity.POSTGOAL,
                                        	FATHERPOSTID = entity.FATHERPOSTID,
                                        	UNDERNUMBER = entity.UNDERNUMBER,
                                        	PROMOTEDIRECTION = entity.PROMOTEDIRECTION,
                                        	CHANGEPOST = entity.CHANGEPOST,
                                        	CHECKSTATE = entity.CHECKSTATE,
                                        	EDITSTATE = entity.EDITSTATE,
                                        	CREATEUSERID = entity.CREATEUSERID,
                                        	CREATEDATE = entity.CREATEDATE,
                                        	UPDATEUSERID = entity.UPDATEUSERID,
                                        	UPDATEDATE = entity.UPDATEDATE,
                                        	CREATEPOSTID = entity.CREATEPOSTID,
                                        	CREATEDEPARTMENTID = entity.CREATEDEPARTMENTID,
                                        	CREATECOMPANYID = entity.CREATECOMPANYID,
                                        	OWNERID = entity.OWNERID,
                                        	OWNERPOSTID = entity.OWNERPOSTID,
                                        	OWNERDEPARTMENTID = entity.OWNERDEPARTMENTID,
                                        	OWNERCOMPANYID = entity.OWNERCOMPANYID,
                                    };

                return model;
            }

            return null;
        }
        /// <summary>
        /// Model转Entity
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        private tm_pm_post ModelToEntity(V_tm_pm_post model)
        {
            if (model != null)
            {
                tm_pm_post entity = new tm_pm_post()
                {
                	                    	POSTID = model.POSTID,
                                        	POSTDICTIONARYID = model.POSTDICTIONARYID,
                                        	COMPANYID = model.COMPANYID,
                                        	DEPARTMENTID = model.DEPARTMENTID,
                                        	DEPARTMENTNAME = model.DEPARTMENTNAME,
                                        	POSTNAME = model.POSTNAME,
                                        	POSTFUNCTION = model.POSTFUNCTION,
                                        	POSTNUMBER = model.POSTNUMBER,
                                        	POSTLEVEL = model.POSTLEVEL,
                                        	POSTCOEFFICIENT = model.POSTCOEFFICIENT,
                                        	SALARYLEVEL = model.SALARYLEVEL,
                                        	POSTGOAL = model.POSTGOAL,
                                        	FATHERPOSTID = model.FATHERPOSTID,
                                        	UNDERNUMBER = model.UNDERNUMBER,
                                        	PROMOTEDIRECTION = model.PROMOTEDIRECTION,
                                        	CHANGEPOST = model.CHANGEPOST,
                                        	CHECKSTATE = model.CHECKSTATE,
                                        	EDITSTATE = model.EDITSTATE,
                                        	CREATEUSERID = model.CREATEUSERID,
                                        	CREATEDATE = model.CREATEDATE,
                                        	UPDATEUSERID = model.UPDATEUSERID,
                                        	UPDATEDATE = model.UPDATEDATE,
                                        	CREATEPOSTID = model.CREATEPOSTID,
                                        	CREATEDEPARTMENTID = model.CREATEDEPARTMENTID,
                                        	CREATECOMPANYID = model.CREATECOMPANYID,
                                        	OWNERID = model.OWNERID,
                                        	OWNERPOSTID = model.OWNERPOSTID,
                                        	OWNERDEPARTMENTID = model.OWNERDEPARTMENTID,
                                        	OWNERCOMPANYID = model.OWNERCOMPANYID,
                                    };

                return entity;
            }
            return null;
        }