Esempio n. 1
0
 protected void POC_Type1_SelectedIndexChanged(object sender, EventArgs e)
 {
     POC_Type2.DataSource     = WebBLL.Tbl_ClassManager.GetTbl_ClassByParentID(Convert.ToInt32(POC_Type1.SelectedValue));
     POC_Type2.DataTextField  = "ClassName";
     POC_Type2.DataValueField = "ID";
     POC_Type2.DataBind();
     POC_Type2.Items.Insert(0, new ListItem("选择单位子类", ""));
 }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //绑定项目
                ProjectID.DataSource     = WebBLL.Tbl_ClassManager.GetTbl_ClassByParentID(56);
                ProjectID.DataTextField  = "ClassName";
                ProjectID.DataValueField = "ClassName";
                ProjectID.DataBind();
                ProjectID.Items.Insert(0, new ListItem("选择项目类别", ""));
                ProjectName.Items.Insert(0, new ListItem("选择项目", ""));
                //单位类型
                POC_Type1.DataSource     = WebBLL.Tbl_ClassManager.GetTbl_ClassByParentID(97);
                POC_Type1.DataTextField  = "ClassName";
                POC_Type1.DataValueField = "ID";
                POC_Type1.DataBind();
                POC_Type1.Items.Insert(0, new ListItem("选择单位类型", ""));
                foreach (ListItem li in POC_Type1.Items)
                {
                    if (li.Text.Contains(Request.QueryString["limit"]))
                    {
                        li.Selected = true;
                        break;
                    }
                }
                POC_Type1.Enabled        = false;
                POC_Type2.DataSource     = WebBLL.Tbl_ClassManager.GetTbl_ClassByParentID(Convert.ToInt32(POC_Type1.SelectedValue));
                POC_Type2.DataTextField  = "ClassName";
                POC_Type2.DataValueField = "ID";
                POC_Type2.DataBind();
                POC_Type2.Items.Insert(0, new ListItem("选择单位子类", ""));
                PO_CompanyID.Items.Insert(0, new ListItem("选择单位", ""));
            }

            Title = WebCommon.Public.ToString(Request.QueryString["limit"]);
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                POC_Type1.DataSource     = WebBLL.Tbl_ClassManager.GetTbl_ClassByParentID(97);
                POC_Type1.DataTextField  = "ClassName";
                POC_Type1.DataValueField = "ID";
                POC_Type1.DataBind();
                POC_Type1.Items.Insert(0, new ListItem("选择单位类型", ""));
                foreach (ListItem li in POC_Type1.Items)
                {
                    if (li.Text.Contains(Request.QueryString["limit"]))
                    {
                        li.Selected = true;
                        break;
                    }
                }

                POC_Type2.DataSource     = WebBLL.Tbl_ClassManager.GetTbl_ClassByParentID(Convert.ToInt32(POC_Type1.SelectedValue));
                POC_Type2.DataTextField  = "ClassName";
                POC_Type2.DataValueField = "ID";
                POC_Type2.DataBind();
            }
        }