示例#1
0
        public AjaxMessage GetEmpTypeById(int TypeId)
        {
            AjaxMessage ajax = new AjaxMessage();

            ajax.IsSuccess = false;
            Sys_EmployeeType empType = _empTypeService.GetByID(TypeId);

            if (empType != null)
            {
                ajax.IsSuccess = true;
                ajax.Value     = empType.TypeName;
                ajax.Id        = empType.EmployeeTypeID;
            }
            return(ajax);
        }
示例#2
0
        /// <summary>
        /// @author;wp
        /// @datetime:2016-08-01
        /// @desc: 获取员工类型
        /// </summary>
        /// <param name="Source">员工类型ID</param>
        /// <returns></returns>
        public string GetEmployeeType(object Source)
        {
            if (Source != null)
            {
                int TypeId = Source.ToString().ToInt32();

                Sys_EmployeeType _empType = _empTypeService.GetByID(TypeId);
                if (_empType != null)
                {
                    return(_empType.TypeName);
                }
            }
            return("");
        }