void cbGZH_Callback(object sender, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e) { string projectcode = e.Parameter; ASPxComboBox box = sender as ASPxComboBox; if (sender == null) { return; } box.DataSource = ProjectFactory.GetDetailsByProjectCode(projectcode); box.TextField = "WORK_CODE"; box.ValueField = "WORK_CODE"; box.DataBind(); //throw new NotImplementedException(); }
void cbGCH_SelectedIndexChanged(object sender, EventArgs e) { ASPxComboBox cbGZH = ASPxPopupControl1.FindControl("LLGZH") as ASPxComboBox; cbGZH.DataSource = new List <ProjectDetailEntity>(); ASPxComboBox cbGCH = ASPxPopupControl1.FindControl("LLGCH") as ASPxComboBox; if (cbGCH.SelectedIndex < 0) { return; } string gch = cbGCH.SelectedItem.Value.ToString(); if (cbGZH != null) { cbGZH.DataSource = ProjectFactory.GetDetailsByProjectCode(gch); cbGZH.TextField = "WORK_CODE"; cbGZH.ValueField = "WORK_CODE"; cbGZH.DataBind(); } //throw new NotImplementedException(); }