Beispiel #1
0
    //右侧默认页面
    public string Hy_Rightlink()
    {
        string ls_retrun = "";
        if (this.Request.QueryString["mid"] != null)
        {
            if (this.Request.QueryString["mid"].ToString() == "dbsy")
            {
                ls_retrun = "/system/list_dbsy.aspx";

            }
            if (this.Request.QueryString["mid"].ToString() == "mail")
            {
                ls_retrun = "/system/list_mail_sjx.aspx";

            }
            if (this.Request.QueryString["mid"].ToString() == "rwdb")
            {
                ls_retrun = "/list_rwdb_qc.aspx?mid=rwdb&tableid=81176f65-d959-4fb9-a313-174f82cdc227";

            }
            if (this.Request.QueryString["mid"].ToString() == "zsgl")
            {
                ls_retrun = "/list.aspx?mid=zsgl&tableid=4682e856-efa0-447b-8180-59602f042f42";

            }
            if (this.Request.QueryString["mid"].ToString() == "ldrcap")
            {
                ls_retrun = "/ldrcap/list_ldrcap.aspx";

            }
            if (this.Request.QueryString["mid"].ToString() == "dxx")
            {
                ls_retrun = "/system/list_sms_df.aspx?mid=dxx";
            }
            if (this.Request.QueryString["mid"].ToString() == "xtsz")
            {
                ls_retrun = "/system/list_mudel.aspx?mid=&tableid=";
            }
            if (this.Request.QueryString["mid"].ToString() == "rsgl")
            {
                ls_retrun = "/rsgl/list.aspx?mid=" + this.Request.QueryString["mid"].ToString();
                ls_retrun += "&tableid=6047076e-6a95-4fb8-aec8-5551d3900590";
            }
            if (this.Request.QueryString["mid"].ToString() == "tzgg")
            {
                ls_retrun = "/tzgg/list.aspx?mid=" + this.Request.QueryString["mid"].ToString();
                HyoaClass.Hyoa_tableconfig Hyoa_tableconfig = new HyoaClass.Hyoa_tableconfig();
                DataTable dt = Hyoa_tableconfig.Getflowtablebymudelid(this.Request.QueryString["mid"].ToString());
                if (dt.Rows.Count > 0)
                    ls_retrun += "&tableid=" + dt.Rows[0]["ID"].ToString();
            }

            //投票管理
            if (this.Request.QueryString["mid"].ToString() == "moduletpgl")
            {
                ls_retrun = "/tpgl/list_tpgl_wytp.aspx";

            }
            ////群教专利
            //if (this.Request.QueryString["mid"].ToString() == "moduleqjzl")
            //{
            //    ls_retrun = "/list_tpgl_wytp.aspx";

            //}
            ////党建工作
            //if (this.Request.QueryString["mid"].ToString() == "moduletpgl")
            //{
            //    ls_retrun = "/tpgl/list_tpgl_wytp.aspx";

            //}
            if (ls_retrun == "")
            {
                ls_retrun = "/list.aspx?mid=" + this.Request.QueryString["mid"].ToString();
                //得到当前模块的第一张表ID
                HyoaClass.Hyoa_tableconfig Hyoa_tableconfig = new HyoaClass.Hyoa_tableconfig();
                DataTable dt = Hyoa_tableconfig.GetTablesbymudelid(this.Request.QueryString["mid"].ToString());
                if (dt.Rows.Count > 0)
                    ls_retrun += "&tableid=" + dt.Rows[0]["ID"].ToString();
            }
        }
        else
        {
            ls_retrun = "/index_right.aspx";
        }
        return ls_retrun;
    }