示例#1
0
    public void BindALSubquestions(string alSysnumber)
    {
        DataTable dtSubs = new NGShop.Bll.TableObject(" T_Test_Queston").Util_GetList("*", "isSubQuestion=1 and mainQuestionSysnumber='" + alSysnumber + "'", "orderBy asc");

        this.rptSubQuestions.DataSource = dtSubs;
        this.rptSubQuestions.DataBind();
    }
示例#2
0
    //分类权限,动态隐藏
    protected bool HasTKAuth(string categoryid)
    {
        if (IsAdmin())
        {
            return(true);
        }
        DataTable dt = new NGShop.Bll.TableObject("t_base_tkset").Util_GetList("sysnumber", "usercode='" + this.UserName + "' and categoryid='" + categoryid + "'");

        return(dt.Rows.Count > 0 ? true : false);
    }
示例#3
0
    protected void AddIntoSJ(string sjid, string tiid)
    {
        DataTable dt = new NGShop.Bll.TableObject("T_Test_day").Util_GetList("*", "sysnumber='" + sjid + "'");

        if (dt.Rows.Count > 0)
        {
            string questions = dt.Rows[0]["questions"].ToString();
            if (questions.IndexOf(tiid) == -1)
            {
                questions += tiid + ",";
            }
            new NGShop.Bll.TableObject("T_Test_day").Util_UpdateBat("questions='" + questions + "'", "sysnumber='" + sjid + "'");
        }
    }
示例#4
0
    protected void BindType()
    {
        //DataTable dtP = new BllCourseCategory().ListAllCategory();
        //this.ddlPCategory.DataTextField = "categoryName";
        //this.ddlPCategory.DataValueField = "categoryId";
        //this.ddlPCategory.DataSource = dtP;
        //this.ddlPCategory.DataBind();
        //this.ddlPCategory.Items.Insert(0, new ListItem("全部", ""));


        //this.ddlPCategory2.DataTextField = "categoryName";
        //this.ddlPCategory2.DataValueField = "categoryId";
        //this.ddlPCategory2.DataSource = dtP;
        //this.ddlPCategory2.DataBind();
        //this.ddlPCategory2.Items.Insert(0, new ListItem("全部", ""));

        DataTable dt = new NGShop.Bll.TableObject("T_Base_UserType").Util_GetList("*", "1=1", "orderBy");

        this.CheckBoxList1.DataTextField  = "typeName";
        this.CheckBoxList1.DataValueField = "typeId";
        this.CheckBoxList1.DataSource     = dt;
        this.CheckBoxList1.DataBind();
        this.CheckBoxList1.Items.Add(new ListItem("全部", "9999"));
    }