private void BindAreaDP() { List <RSSMWeb.Code.Utils.CustomClass> mylist = Utils.GetUserList(); RSSMWeb.Code.Utils.CustomClass tmp = new RSSMWeb.Code.Utils.CustomClass("0", "无", "0"); List <RSSMWeb.Code.Utils.CustomClassForDropdownlist> mylist_username_dpt = Utils.GetUserListForDropdownlist_dpt(); mylist.Insert(0, tmp); DropDownList7.EnableSimulateTree = true; DropDownList7.DataTextField = "Name"; DropDownList7.DataValueField = "ID"; DropDownList7.DataSource = mylist; DropDownList7.DataSimulateTreeLevelField = "Group"; DropDownList7.DataEnableSelectField = "Enableselect"; DropDownList7.DataSource = mylist_username_dpt; DropDownList7.DataBind(); DropDownList7.SelectedValue = "0"; DropDownList6.EnableSimulateTree = true; DropDownList6.DataTextField = "Name"; DropDownList6.DataValueField = "ID"; DropDownList6.DataSimulateTreeLevelField = "Group"; DropDownList6.DataEnableSelectField = "Enableselect"; DropDownList6.DataSource = mylist_username_dpt; DropDownList6.DataBind(); DropDownList6.SelectedValue = "0"; }
private void BindAreaDP() { List <RSSMWeb.Code.Utils.CustomClass> mylist = Utils.GetUserList(); RSSMWeb.Code.Utils.CustomClass tmp = new RSSMWeb.Code.Utils.CustomClass("0", "无", "0"); List <RSSMWeb.Code.Utils.CustomClassForDropdownlist> mylist_username_dpt = Utils.GetUserListForDropdownlist_dpt(); mylist.Insert(0, tmp); //NextUser.DataTextField = "Name"; //NextUser.DataValueField = "ID"; //NextUser.DataSource = mylist; //NextUser.DataBind(); NextUser.EnableSimulateTree = true; NextUser.DataTextField = "Name"; NextUser.DataValueField = "ID"; NextUser.DataSimulateTreeLevelField = "Group"; NextUser.DataEnableSelectField = "Enableselect"; NextUser.DataSource = mylist_username_dpt; NextUser.DataBind(); NextUser.SelectedValue = "0"; //DropDownList1.DataTextField = "Name"; //DropDownList1.DataValueField = "ID"; //DropDownList1.DataSource = mylist; //DropDownList1.DataBind(); DropDownList1.EnableSimulateTree = true; DropDownList1.DataTextField = "Name"; DropDownList1.DataValueField = "ID"; DropDownList1.DataSimulateTreeLevelField = "Group"; DropDownList1.DataEnableSelectField = "Enableselect"; DropDownList1.DataSource = mylist_username_dpt; DropDownList1.DataBind(); DropDownList1.SelectedValue = "0"; mylist.Clear(); mylist = Utils.GetPJList(); tmp.ID = "0"; tmp.Name = "无"; mylist.Insert(0, tmp); BugBelongPJ.DataTextField = "Name"; BugBelongPJ.DataValueField = "ID"; BugBelongPJ.DataSource = mylist; BugBelongPJ.DataBind(); mylist.Clear(); mylist = Utils.GetPDList(); tmp.ID = "0"; tmp.Name = "无"; mylist.Insert(0, tmp); BugBelongPD.DataTextField = "Name"; BugBelongPD.DataValueField = "ID"; BugBelongPD.DataSource = mylist; BugBelongPD.DataBind(); OccurTime.SelectedDate = DateTime.Now; }