Exemplo n.º 1
0
 protected void ClassName2_SelectedIndexChanged(object sender, EventArgs e)
 {
     //册
     ClassName3.DataSource     = WebBLL.Tbl_DesignVolumeManager.GetDataTableByPage(100, 1, "classname2='" + ClassName2.SelectedItem.Text + "'", "");
     ClassName3.DataTextField  = "VolumeName";
     ClassName3.DataValueField = "ID";
     ClassName3.DataBind();
     ClassName3.Items.Insert(0, new ListItem("选择册", ""));
 }
 protected void ClassName2_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (PA_Type1.SelectedValue == "项目档案")
     {
         //册
         ClassName3.DataSource     = WebBLL.Tbl_DesignVolumeManager.GetDataTableByPage(100, 1, "classname2='" + this.ClassName2.SelectedValue + "'", "");
         ClassName3.DataTextField  = "VolumeName";
         ClassName3.DataValueField = "VolumeNo";
         ClassName3.DataBind();
         ClassName3.Items.Insert(0, new ListItem("选择册", ""));
     }
     else
     {
         //三级分类
         ClassName3.DataSource     = WebBLL.Tbl_ClassManager.GetTbl_ClassByParentID(Convert.ToInt32(this.ClassName2.SelectedValue));
         ClassName3.DataTextField  = "ClassName";
         ClassName3.DataValueField = "ID";
         ClassName3.DataBind();
         ClassName3.Items.Insert(0, new ListItem("三级分类", ""));
     }
     //PA_Name.Value = this.ClassName3.SelectedValue;
 }