日期:2014-05-17 浏览次数:21070 次
List<Department> departmentList = new List<Department>();
departmentList = new DepartmentBLL().DepartmentAll();
tlt_dept.DataSource = departmentList;
tlt_dept.KeyFieldName = "ID";
tlt_dept.Columns["Name"].Caption = "部门列表";
tlt_dept.Columns["EnterpriseID"].Visible = false;
tlt_dept.ParentFieldName = "SuperiorDeptID";
public class Department
{
public int ID { get; set; }
public string Name { get; set; }
public int SuperiorDeptID { get; set; }
public Enterprise EnterpriseID { get; set; }
}