Пример #1
0
    /// <summary>
    /// 绑定内容
    /// </summary>
    public void Bind()
    {
        string where = "select * from sc_Coupon  order by id desc";
        this.AspNetPager1.AlwaysShow  = true;
        this.AspNetPager1.PageSize    = 10;
        this.AspNetPager1.RecordCount = bllorder.GetRecordCount("");
        this.RepeaterDataBind(where);


        Cms.BLL.C_Column cm        = new Cms.BLL.C_Column();
        string           classname = cm.GetModel(86).className;
        bool             bladd     = adminUser.setpurview(classname, "add");
        bool             blEdit    = adminUser.setpurview(classname, "Edit");
        bool             blDelete  = adminUser.setpurview(classname, "Delete");

        if (!bladd)
        {
            btnadd.Visible = false;
        }
        if (!blDelete)
        {
            btnDelete.Visible = false;
        }
    }