Esempio n. 1
0
    /// <summary>
    /// 设置具体的一个功能信息
    /// </summary>
    /// <param name="temp">要设置的功能模块</param>
    private void SetFuncion(FunctionModular temp)
    {
        //中文期刊
        if (temp.id.Equals("zhongwenqikan"))
        {
            this.zwqkCheckBox.Checked = true;
            return;
        }
        //外文期刊
        if (temp.id.Equals("waiwenqikan"))
        {
            this.wwqkCheckBox.Checked = true;
            return;
        }
        //中文会议
        if (temp.id.Equals("zhongwenhuiyi"))
        {
            this.zwhyCheckBox.Checked = true;
            return;
        }
        //外文会议
        if (temp.id.Equals("waiwenhuiyi"))
        {
            this.wwhyCheckBox.Checked = true;
            return;
        }
        //国电法规
        if (temp.id.Equals("guodianfagui"))
        {
            this.gdfgCheckBox.Checked = true;
            return;
        }
        //国家标准
        if (temp.id.Equals("guojiabiaozhun"))
        {
            this.gjbzCheckBox.Checked = true;
            return;
        }
        //国际标准
        if (temp.id.Equals("guojibiaozhun"))
        {
            this.gjibzcheckBox.Checked = true;
            return;
        }
        //行业标准
        if (temp.id.Equals("hangyebiaozhun"))
        {
            this.hybzCheckBox.Checked = true;
            return;
        }
        //考察报告
        if (temp.id.Equals("kaochabaogao"))
        {
            this.kcbgCheckBox.Checked = true;
            return;
        }
        //国研报告
        if (temp.id.Equals("guoyanbaogao"))
        {
            this.gybgCheckBox.Checked = true;
            return;
        }
        //科技报告
        if (temp.id.Equals("kejibaogao"))
        {
            this.kjbgCheckBox.Checked = true;
            return;
        }
        //能源报告
        if (temp.id.Equals("nengyuanbaogao"))
        {
            this.nybgCheckBox.Checked = true;
            return;
        }
        //学位论文
        if (temp.id.Equals("xueweilunwen"))
        {
            this.xwlwCheckBox.Checked = true;
            return;
        }
        //中国成果
        if (temp.id.Equals("zhongguochengguo"))
        {
            this.zgcgCheckBox.Checked = true;
            return;
        }
        //科技成果
        if (temp.id.Equals("kejichengguo"))
        {
            this.kjcgCheckBox.Checked = true;
            return;
        }
        //自产文献
        if (temp.id.Equals("zichanwenxian"))
        {
            this.zcwxCheckBox.Checked = true;
            return;
        }
        //电力报刊
        if (temp.id.Equals("dianlibaokan"))
        {
            this.dlbkCheckBox.Checked = true;
            return;
        }
        //科技报刊
        if (temp.id.Equals("kejibaokan"))
        {
            this.kjbkCheckBox.Checked = true;
            return;
        }
        //经济报刊
        if (temp.id.Equals("jingjibaokan"))
        {
            this.jjbkcheckBox.Checked = true;
            return;
        }
        //综合报刊
        if (temp.id.Equals("zonghebaokan"))
        {
            this.zhbkcheckBox.Checked = true;
            return;
        }
        //图书手册
        if (temp.id.Equals("tushushouce"))
        {
            this.tsscCheckBox.Checked = true;
            return;
        }

        //经管期刊
        if (temp.id.Equals("zhongwenqikanjingguan"))
        {
            this.zwqkjgCheckBox.Checked = true;
            return;
        }
    }
Esempio n. 2
0
    /// <summary>
    /// 获取选择的用户功能模块列表
    /// </summary>
    /// <returns></returns>
    public IList<FunctionModular> GetFunctionModulars()
    {
        IList<FunctionModular> result = new List<FunctionModular>();
        FunctionModular temp = null;

        //中文期刊功能
        if (this.zwqkCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "zhongwenqikan";
            result.Add(temp);
        }

        //外文期刊功能
        if(this.wwqkCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "waiwenqikan";
            result.Add(temp);
        }

        //中文会议功能
        if (this.zwhyCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "zhongwenhuiyi";
            result.Add(temp);
        }

        //外文会议
        if (this.wwhyCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "waiwenhuiyi";
            result.Add(temp);
        }

        //国电法规
         if (this.gdfgCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "guodianfagui";
            result.Add(temp);
        }

          //国家标准
         if (this.gjbzCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "guojiabiaozhun";
            result.Add(temp);
        }

          //国际标准
         if (this.gjibzcheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "guojibiaozhun";
            result.Add(temp);
        }
          //行业标准
         if (this.hybzCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "hangyebiaozhun";
            result.Add(temp);
        }
          //考察报告
         if (this.kcbgCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "kaochabaogao";
            result.Add(temp);
        }
          //国研报告
         if (this.gybgCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "guoyanbaogao";
            result.Add(temp);
        }
          //科技报告
         if (this.kjbgCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "kejibaogao";
            result.Add(temp);
        }
          //能源报告
         if (this.nybgCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "nengyuanbaogao";
            result.Add(temp);
        }
          //学位论文
         if (this.xwlwCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "xueweilunwen";
            result.Add(temp);
        }

          //中国成果
         if (this.zgcgCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "zhongguochengguo";
            result.Add(temp);
        }
          //科技成果
         if (this.kjcgCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "kejichengguo";
            result.Add(temp);
        }
          //自产文献
         if (this.zcwxCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "zichanwenxian";
            result.Add(temp);
        }
          //电力报刊
         if (this.dlbkCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "dianlibaokan";
            result.Add(temp);
        }
          //科技报刊
         if (this.kjbkCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "kejibaokan";
            result.Add(temp);
        }

          //经济报刊
         if (this.jjbkcheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "jingjibaokan";
            result.Add(temp);
        }
          //综合报刊
         if (this.zhbkcheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "zonghebaokan";
            result.Add(temp);
        }
          //图书手册
         if (this.tsscCheckBox.Checked)
        {
            temp = new FunctionModular();
            temp.id = "tushushouce";
            result.Add(temp);
        }

        return result;
    }
Esempio n. 3
0
    /// <summary>
    /// 获取功能模块对应的超链接
    /// </summary>
    /// <param name="func">功能模块参数</param>
    /// <returns>返回其对应的超链接</returns>
    private HyperLink GetFunctionHyperLink(FunctionModular func)
    {
        HyperLink hy = new HyperLink();
        hy.Target = "mainFrame";
        hy.Height = Unit.Pixel(25);
        hy.Width = Unit.Percentage(100);
        hy.Font.Underline = false;
        hy.Style.Value = "text-align:center;text-valign:middle";
        //中文期刊
        if (func.id.Equals("zhongwenqikan"))
        {
            hy.NavigateUrl = GlobalZWQK.INDEX_PAGE;
            hy.Text = "中文期刊";
            return hy;
        }
        //外文期刊
        if (func.id.Equals("waiwenqikan"))
        {
            hy.NavigateUrl = GlobalWWQK.INDEX_PAGE;
            hy.Text = "外文期刊";
            return hy;
        }
        //中文会议
        if (func.id.Equals("zhongwenhuiyi"))
        {
            hy.NavigateUrl = GlobalZWHY.INDEX_PAGE;
            hy.Text = "中文会议";
            return hy;
        }
        //外文会议
        if (func.id.Equals("waiwenhuiyi"))
        {
            hy.NavigateUrl = GlobalWWHY.INDEX_PAGE;
            hy.Text = "外文会议";
            return hy;
        }
        //国电法规
        if (func.id.Equals("guodianfagui"))
        {
            hy.NavigateUrl = GlobalGDFG.INDEX_PAGE;
            hy.Text = "国电法规";
            return hy;
        }
        //国家标准
        if (func.id.Equals("guojiabiaozhun"))
        {
            hy.NavigateUrl = GlobalGJBZ.INDEX_PAGE;
            hy.Text = "国家标准";
            return hy;
        }
        //国际标准
        if (func.id.Equals("guojibiaozhun"))
        {
            hy.NavigateUrl = GlobalGJIBZ.INDEX_PAGE;
            hy.Text = "国际标准";
            return hy;
        }
        //行业标准
        if (func.id.Equals("hangyebiaozhun"))
        {
            hy.NavigateUrl = GlobalHYBZ.INDEX_PAGE;
            hy.Text = "行业标准";
            return hy;
        }
        //考察报告
        if (func.id.Equals("kaochabaogao"))
        {
            hy.NavigateUrl = GlobalKCBG.INDEX_PAGE;
            hy.Text = "考察报告";
            return hy;
        }
        //国研报告
        if (func.id.Equals("guoyanbaogao"))
        {
            hy.NavigateUrl = GlobalGYBG.INDEX_PAGE;
            hy.Text = "国研报告";
            return hy;
        }
        //科技报告
        if (func.id.Equals("kejibaogao"))
        {
            hy.NavigateUrl = GlobalKJBG.INDEX_PAGE;
            hy.Text = "科技报告";
            return hy;
        }
        //能源报告
        if (func.id.Equals("nengyuanbaogao"))
        {
            hy.NavigateUrl = GlobalNYBG.INDEX_PAGE;
            hy.Text = "能源报告";
            return hy;
        }
        //学位论文
        if (func.id.Equals("xueweilunwen"))
        {
            hy.NavigateUrl = GlobalXWLW.INDEX_PAGE;
            hy.Text = "学位论文";
            return hy;
        }
        //中国成果
        if (func.id.Equals("zhongguochengguo"))
        {
            hy.NavigateUrl = GlobalZGCG.INDEX_PAGE;
            hy.Text = "中国成果";
            return hy;
        }
        //科技成果
        if (func.id.Equals("kejichengguo"))
        {
            hy.NavigateUrl = GlobalKJCG.INDEX_PAGE;
            hy.Text = "科技成果";
            return hy;
        }
        //自产文献
        if (func.id.Equals("zichanwenxian"))
        {
            hy.NavigateUrl = GlobalZCWX.INDEX_PAGE;
            hy.Text = "自产文献";
            return hy;
        }
        //电力报刊
        if (func.id.Equals("dianlibaokan"))
        {
            hy.NavigateUrl = GlobalBDBK.INDEX_PAGE;
            hy.Text = "电力报刊";
            return hy;
        }
        //科技报刊
        if (func.id.Equals("kejibaokan"))
        {

            hy.NavigateUrl = GlobalKJBK.INDEX_PAGE;
            hy.Text = "科技报刊";
            return hy;
        }
        //经济报刊
        if (func.id.Equals("jingjibaokan"))
        {
            hy.NavigateUrl = GlobalJJBK.INDEX_PAGE;
            hy.Text = "经济报刊";
            return hy;
        }
        //综合报刊
        if (func.id.Equals("zonghebaokan"))
        {
            hy.NavigateUrl = GlobalZHBK.INDEX_PAGE;
            hy.Text = "综合报刊";
            return hy;
        }
        //图书手册
        if (func.id.Equals("tushushouce"))
        {
            hy.NavigateUrl = GlobalTSSC.INDEX_PAGE;
            hy.Text = "图书手册";
            return hy;
        }
        //中文期刊-经管类
        if (func.id.Equals("zhongwenqikanjingguan"))
        {
            hy.NavigateUrl = GlobalZWQKJG.INDEX_PAGE;
            hy.Text = "经管期刊";
            return hy;
        }

        //都没有找到就返回null
        return null;
    }