private void BindDropDown() { DropDownList ddl_QNAProject = (DropDownList)pl_detail.FindControl("CAT_Activity_RelateQuestionnaire"); if (ddl_QNAProject != null) { ddl_QNAProject.DataSource = QNA_ProjectBLL.GetModelList("Classify = 3 AND Enabled='Y'"); ddl_QNAProject.DataTextField = "Name"; ddl_QNAProject.DataValueField = "ID"; ddl_QNAProject.DataBind(); ddl_QNAProject.Items.Insert(0, new ListItem("请选择...", "0")); } IList <AC_AccountTitle> lists; if (ConfigHelper.GetConfigInt("ActivityFeeAccountTitle2") == 0) { lists = AC_AccountTitleBLL.GetListByFeeType(ConfigHelper.GetConfigInt("HDM-CATFeeType")); } else { lists = AC_AccountTitleBLL.GetModelList("(ID = 1 OR SuperID=" + ConfigHelper.GetConfigString("ActivityFeeAccountTitle2") + ") AND MCS_SYS.dbo.UF_Spilt2('MCS_Pub.dbo.AC_AccountTitle',ExtPropertys,'IsDisable')<>'Y'"); } ddl_AccountTitle.DataSource = lists; ddl_AccountTitle.DataBind(); ddl_Brand.DataSource = PDT_BrandBLL.GetModelList("IsOpponent=1"); ddl_Brand.DataBind(); ddl_Brand.Items.Insert(0, new ListItem("请选择...", "0")); }