/// <summary> /// 绑定工艺 /// </summary> void BindTechnology() { DataSet ds = bllTechnology.GetList(0, "StateInfo=1 and ParentId=0", "SortNum desc,Id asc"); repTechnology.DataSource = ds; repTechnology.DataBind(); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { HiddenField hidId = repTechnology.Items[i].FindControl("hidId") as HiddenField; Repeater repSubTechnology = repTechnology.Items[i].FindControl("repSubTechnology") as Repeater; repSubTechnology.DataSource = bllTechnology.GetList(0, "StateInfo=1 and ParentId=" + ds.Tables[0].Rows[i]["Id"].ToString(), "SortNum desc,Id asc"); repSubTechnology.DataBind(); } }
/// <summary> /// 绑定直接客户 /// </summary> void BindParentCompany() { DataSet ds = bll.GetList(0, "ParentId=0 and StateInfo=1", "SortNum desc, AddTime asc"); foreach (DataRow item in ds.Tables[0].Rows) { ListItem list = new ListItem(); list.Text = item["NameInfo"].ToString(); list.Value = item["Id"].ToString(); ddlTechnology.Items.Add(list); } }
/// <summary> /// 绑定工艺列表 /// </summary> void BindRepList() { repList.DataSource = bll.GetList(0, "", "SortNum desc,AddTime asc"); repList.DataBind(); }