示例#1
0
    /// <summary>
    /// 加载字典项
    /// </summary>
    /// <param name="AttrNameId"></param>
    /// <param name="newIndex"></param>
    protected void AttrValBind(string AttrNameId, int newIndex)
    {
        string strWhere = string.Empty;
        string Sort     = string.Empty;

        this.lblMsg.Visible = false;

        if (AttrNameId != "")
        {
            strWhere = " DefID='" + AttrNameId + "'";
        }
        if (newIndex < 0)
        {
            Sort = "SortIndex desc";
        }
        else
        {
            Sort = "SortIndex asc";
        }

        List <Hi.Model.BD_DefDoc_B> l = AttrValBLL.GetList("", strWhere, Sort);

        this.dgAttrVal.DataSource = l;
        this.dgAttrVal.DataBind();
    }