Exemplo n.º 1
0
        protected void IniGrid()
        {
            Maticsoft.BLL.tArticleType BLL = new Maticsoft.BLL.tArticleType();
            DataTable table = null;

            if (ddlfatherId.SelectedValue == "")
            {
                table = BLL.GetList(" Id >0 order by FatherID,Sort desc").Tables[0];
            }
            else
            {
                table = BLL.GetList(string.Format(" FatherID={0} order by FatherID, Sort desc", ddlfatherId.SelectedValue)).Tables[0];
            }
            GridMenu.DataSource = table;
            GridMenu.DataBind();
        }
Exemplo n.º 2
0
        protected void GetFen()
        {
            ddlfatherId.Items.Clear();
            Maticsoft.BLL.tArticleType bll = new Maticsoft.BLL.tArticleType();
            DataTable table = bll.GetList(" FatherID=0 order by Sort desc").Tables[0];

            ddlfatherId.DataTextField  = "Name";
            ddlfatherId.DataValueField = "Id";
            ddlfatherId.DataSource     = table;
            ddlfatherId.DataBind();
            ddlfatherId.Items.Insert(0, new FineUIPro.ListItem("加载全部", ""));
            ddlfatherId.SelectedIndex = 0;
        }