//机构类型 private void SelectIndustry() { Tz888.BLL.BusinesProcess bll = new Tz888.BLL.BusinesProcess(); this.DropIndustry.DataSource = bll.SelectIndustry(0); this.DropIndustry.DataTextField = "StructureName"; this.DropIndustry.DataValueField = "StructureID"; this.DropIndustry.DataBind(); }
public DataTable GetSmallTypes(string BigType) { if (BigType == "" || BigType == "0") { return(null); } else { DataTable dt = new DataTable(); Tz888.BLL.BusinesProcess bll = new Tz888.BLL.BusinesProcess(); int big = Convert.ToInt32(BigType); dt = bll.SelectBig(big).Tables[0]; int i = dt.Rows.Count; return(dt); } }
private void BigClass() { Tz888.BLL.BusinesProcess bll = new Tz888.BLL.BusinesProcess(); DataSet ds = bll.SelectBig(0); if (ds != null) { this.slServerBDrop.DataSource = ds; this.slServerBDrop.DataTextField = "ServiesBName"; this.slServerBDrop.DataValueField = "ServiesBID"; this.slServerBDrop.DataBind(); this.slServerBDrop.Items.Add("请选择服务大类"); this.slServerBDrop.Items[this.slServerBDrop.Items.Count - 1].Value = "0"; this.slServerBDrop.SelectedIndex = this.slServerBDrop.Items.Count - 1; this.slServerMDrop.Items.Add("请选择服务小类"); this.slServerMDrop.Items[this.slServerMDrop.Items.Count - 1].Value = "0"; this.slServerMDrop.SelectedIndex = this.slServerMDrop.Items.Count - 1; } }