Ejemplo n.º 1
0
    private DataTable GetDeparmentsByParent(string parent)
    {
        DeptManageDb deptManageDb = new DeptManageDb();
        DataView     defaultView  = deptManageDb.GetAllDepartment().DefaultView;

        defaultView.RowFilter = string.Format("i_sjdm = {0}", parent);
        return(defaultView.ToTable());
    }
Ejemplo n.º 2
0
    private void TViewDept_Create(int iSysID)
    {
        this.TViewDept.Nodes.Clear();
        DeptManageDb deptManageDb  = new DeptManageDb();
        DataTable    allDepartment = deptManageDb.GetAllDepartment();

        this.TViewDept_Generate(this.TViewDept.Nodes, allDepartment, "0", iSysID);
    }