//绑定所有下拉选框 private void DPDataBind() { DataTable dt = proBll.Sel(); proDP.DataSource = dt; proDP.DataTextField = "ProcedureName"; proDP.DataValueField = "ID"; proDP.DataBind(); proDP.Items.Insert(0, new ListItem("自由流程", "0")); //机密等下拉选框绑定 Secret.DataSource = OAConfig.StrToDic(OAConfig.Secret); Secret.DataValueField = "Key"; Secret.DataTextField = "Value"; Secret.DataBind(); Urgency.DataSource = OAConfig.StrToDic(OAConfig.Urgency); Urgency.DataValueField = "Key"; Urgency.DataTextField = "Value"; Urgency.DataBind(); Importance.DataSource = OAConfig.StrToDic(OAConfig.Importance); Importance.DataValueField = "Key"; Importance.DataTextField = "Value"; Importance.DataBind(); }