Exemple #1
0
        /// <summary>
        /// 获取酒店类型名称
        /// </summary>
        public string GetHotelTypeName(object source)
        {
            int TypeId = source.ToString().ToInt32();

            HotelTypeName value    = (HotelTypeName)TypeId;
            string        typename = DisplayNameExtension.GetDisplayNames(HotelTypeName.HType1, value.ToString());

            return(typename.ToString());
        }
Exemple #2
0
        /// <summary>
        /// 获取客户进度状态
        /// </summary>
        /// <param name="Source"></param>
        /// <returns></returns>
        public string GetCustomerState(object Source)
        {
            if (Source != null)
            {
                int State = Source.ToString().ToInt32();

                CustomerState value = (CustomerState)State;
                string        name  = DisplayNameExtension.GetDisplayNames(CustomerState.NoInvite, value.ToString());
                return(name);
            }
            return("");
        }
Exemple #3
0
        /// <summary>
        /// 获取状态
        /// </summary>
        /// <param name="Source"></param>
        /// <returns></returns>
        public string GetStatusName(object Source)
        {
            if (Source != null)
            {
                int Status = Source.ToString().ToInt32();

                SysStatus value = (SysStatus)Status;
                string    name  = DisplayNameExtension.GetDisplayNames(SysStatus.Enable, value.ToString());
                return(name);
            }
            return("");
        }