//设置业务部门 public static void SetDepart(ListControl drop1, string blankValue) { U_UserNameBU user1 = new U_UserNameBU(); string[] arr = user1.GetZcJobDepart(); if (arr != null) { for (int i = 0; i < arr.Length; i++) { ListItem list1 = new ListItem(arr[i], arr[i]); drop1.Items.Add(list1); } if (blankValue != null && blankValue != "") { ListItem list1 = new ListItem(blankValue, ""); drop1.Items.Insert(0, list1); } } user1.Close(); }