///// <summary>
        ///// 获取资源类型
        ///// </summary>
        ///// <returns></returns>
        //protected List<ResourceTypeOption> GetResType()
        //{
        //    List<ResourceTypeOption> ResTypeList = new List<ResourceTypeOption>();
        //    ResTypeList.Add(ResourceTypeOption.Soft);
        //    ResTypeList.Add(ResourceTypeOption.Theme);
        //    ResTypeList.Add(ResourceTypeOption.Ring);
        //    ResTypeList.Add(ResourceTypeOption.Picture);
        //    ResTypeList.Add(ResourceTypeOption.CopyrightedSoft);
        //    ResTypeList.Add(ResourceTypeOption.EZine);
        //    ResTypeList.Add(ResourceTypeOption.EBook);
        //    ResTypeList.Add(ResourceTypeOption.Music);
        //    ResTypeList.Add(ResourceTypeOption.Video);
        //    ResTypeList.Add(ResourceTypeOption.College91);
        //    ResTypeList.Add(ResourceTypeOption.ItuneApp);
        //    ResTypeList.Add(ResourceTypeOption.ItuneFreeApp);
        //    ResTypeList.Add(ResourceTypeOption.WinPhone);
        //    ResTypeList.Add(ResourceTypeOption.General);
        //    ResTypeList.Add(ResourceTypeOption.Ad);
        //    ResTypeList.Add(ResourceTypeOption.PandaHomeChannelSoft);
        //    ResTypeList.Add(ResourceTypeOption.PandaHomeThemeModule);
        //    return ResTypeList;
        //}

        /// <summary>
        /// 获取资源类型html
        /// </summary>
        protected string GetResTypeHtml(int defaultvalue = -1)
        {
            StringBuilder sb = new StringBuilder();

            net91com.Reports.UserRights.URLoginService loginService = new net91com.Reports.UserRights.URLoginService();

            foreach (net91com.Reports.UserRights.ResourceType resType in loginService.GetResourceTypes())
            {
                if (resType.TypeID == defaultvalue)
                {
                    sb.AppendFormat("<option value='{0}' selected='selected'>{1}</option>", resType.TypeID, resType.TypeName);
                }
                else
                {
                    sb.AppendFormat("<option value='{0}'>{1}</option>", resType.TypeID, resType.TypeName);
                }
            }

            return(sb.ToString());
        }
        protected string GetResTypeHtml(List <int> lst)
        {
            StringBuilder sb = new StringBuilder();

            net91com.Reports.UserRights.URLoginService loginService = new net91com.Reports.UserRights.URLoginService();
            bool flag = true;

            foreach (net91com.Reports.UserRights.ResourceType resType in loginService.GetResourceTypes())
            {
                if (lst.Contains(resType.TypeID))
                {
                    if (flag)
                    {
                        sb.AppendFormat("<option value='{0}' selected='selected'>{1}</option>", resType.TypeID, resType.TypeName);
                        flag = false;
                    }
                    else
                    {
                        sb.AppendFormat("<option value='{0}'>{1}</option>", resType.TypeID, resType.TypeName);
                    }
                }
            }
            return(sb.ToString());
        }