private List <menuitem> BuildTimeSheetAdminMenu()
        {
            List <menuitem> menu = new List <menuitem>();

            menuitem timesheetsmenu = new menuitem();

            timesheetsmenu.linkname         = "Timesheets";
            timesheetsmenu.linkpath         = "/timesheet/admindashboard";
            timesheetsmenu.enableactivecode = 5;
            timesheetsmenu.isparentmenuitem = true;
            timesheetsmenu.hasChildren      = false;
            timesheetsmenu.hasParent        = false;
            timesheetsmenu.childmenus       = null;
            timesheetsmenu.childumenusettag = "timesheets";
            menu.Add(timesheetsmenu);



            menuitem usersmenu = new menuitem();

            usersmenu.linkname         = "Users";
            usersmenu.linkpath         = "/users";
            usersmenu.enableactivecode = 7;
            usersmenu.isparentmenuitem = true;
            usersmenu.hasChildren      = false;
            usersmenu.hasParent        = false;
            usersmenu.childmenus       = null;
            usersmenu.childumenusettag = "users";
            menu.Add(usersmenu);


            return(menu);
        }
        private List <menuitem> BuildJobUserMenu()
        {
            List <menuitem> menu = new List <menuitem>();

            menuitem jobsmenu = new menuitem();

            jobsmenu.linkname         = "Jobs";
            jobsmenu.linkpath         = "/jobs";
            jobsmenu.enableactivecode = 1;
            jobsmenu.isparentmenuitem = true;
            jobsmenu.hasChildren      = false;
            jobsmenu.hasParent        = false;
            jobsmenu.childmenus       = null;
            jobsmenu.childumenusettag = "jobs";
            menu.Add(jobsmenu);

            menuitem contactsmenu = new menuitem();

            contactsmenu.linkname         = "Contacts";
            contactsmenu.linkpath         = "/contacts";
            contactsmenu.enableactivecode = 2;
            contactsmenu.isparentmenuitem = true;
            contactsmenu.hasChildren      = false;
            contactsmenu.hasParent        = false;
            contactsmenu.childmenus       = null;
            contactsmenu.childumenusettag = "contacts";
            menu.Add(contactsmenu);

            menuitem mailinglistmenu = new menuitem();

            mailinglistmenu.linkname         = "Mailing Lists";
            mailinglistmenu.linkpath         = "/lists";
            mailinglistmenu.enableactivecode = 3;
            mailinglistmenu.isparentmenuitem = true;
            mailinglistmenu.hasChildren      = false;
            mailinglistmenu.hasParent        = false;
            mailinglistmenu.childmenus       = null;
            mailinglistmenu.childumenusettag = "mailinglist";
            menu.Add(mailinglistmenu);

            menuitem communicationmenu = new menuitem();

            communicationmenu.linkname         = "Communication";
            communicationmenu.linkpath         = "/communication";
            communicationmenu.enableactivecode = 4;
            communicationmenu.isparentmenuitem = true;
            communicationmenu.hasChildren      = false;
            communicationmenu.hasParent        = false;
            communicationmenu.childmenus       = null;
            communicationmenu.childumenusettag = "communication";
            menu.Add(communicationmenu);
            return(menu);
        }
        private List<menuitem> BuildConsultantMenu()
        {
            List<menuitem> menu = new List<menuitem>();

            menuitem timesheetsmenu = new menuitem();
            timesheetsmenu.linkname = "Timesheets";
            timesheetsmenu.linkpath = "/timesheet/dashboard";
            timesheetsmenu.enableactivecode = 5;
            timesheetsmenu.isparentmenuitem = true;
            timesheetsmenu.hasChildren = false;
            timesheetsmenu.hasParent = false;
            timesheetsmenu.childmenus = null;
            timesheetsmenu.childumenusettag = "timesheets";
            menu.Add(timesheetsmenu);
            return menu;
        }
        private List <menuitem> BuildConsultantMenu()
        {
            List <menuitem> menu = new List <menuitem>();


            menuitem timesheetsmenu = new menuitem();

            timesheetsmenu.linkname         = "Timesheets";
            timesheetsmenu.linkpath         = "/timesheet/dashboard";
            timesheetsmenu.enableactivecode = 5;
            timesheetsmenu.isparentmenuitem = true;
            timesheetsmenu.hasChildren      = false;
            timesheetsmenu.hasParent        = false;
            timesheetsmenu.childmenus       = null;
            timesheetsmenu.childumenusettag = "timesheets";
            menu.Add(timesheetsmenu);
            return(menu);
        }
        private List<menuitem> BuildJobUserMenu()
        {
            List<menuitem> menu = new List<menuitem>();

            menuitem jobsmenu = new menuitem();

            jobsmenu.linkname = "Jobs";
            jobsmenu.linkpath = "/jobs";
            jobsmenu.enableactivecode = 1;
            jobsmenu.isparentmenuitem = true;
            jobsmenu.hasChildren = false;
            jobsmenu.hasParent = false;
            jobsmenu.childmenus = null;
            jobsmenu.childumenusettag = "jobs";
            menu.Add(jobsmenu);

            menuitem contactsmenu = new menuitem();
            contactsmenu.linkname = "Contacts";
            contactsmenu.linkpath = "/contacts";
            contactsmenu.enableactivecode = 2;
            contactsmenu.isparentmenuitem = true;
            contactsmenu.hasChildren = false;
            contactsmenu.hasParent = false;
            contactsmenu.childmenus = null;
            contactsmenu.childumenusettag = "contacts";
            menu.Add(contactsmenu);

            menuitem mailinglistmenu = new menuitem();
            mailinglistmenu.linkname = "Mailing Lists";
            mailinglistmenu.linkpath = "/lists";
            mailinglistmenu.enableactivecode = 3;
            mailinglistmenu.isparentmenuitem = true;
            mailinglistmenu.hasChildren = false;
            mailinglistmenu.hasParent = false;
            mailinglistmenu.childmenus = null;
            mailinglistmenu.childumenusettag = "mailinglist";
            menu.Add(mailinglistmenu);

            menuitem communicationmenu = new menuitem();
            communicationmenu.linkname = "Communication";
            communicationmenu.linkpath = "/communication";
            communicationmenu.enableactivecode = 4;
            communicationmenu.isparentmenuitem = true;
            communicationmenu.hasChildren = false;
            communicationmenu.hasParent = false;
            communicationmenu.childmenus = null;
            communicationmenu.childumenusettag = "communication";
            menu.Add(communicationmenu);
            return menu;
        }
        private List<menuitem> BuildTimeSheetAdminMenu()
        {
            List<menuitem> menu = new List<menuitem>();

            menuitem timesheetsmenu = new menuitem();
            timesheetsmenu.linkname = "Timesheets";
            timesheetsmenu.linkpath = "/timesheet/admindashboard";
            timesheetsmenu.enableactivecode = 5;
            timesheetsmenu.isparentmenuitem = true;
            timesheetsmenu.hasChildren = false;
            timesheetsmenu.hasParent = false;
            timesheetsmenu.childmenus = null;
            timesheetsmenu.childumenusettag = "timesheets";
            menu.Add(timesheetsmenu);

            menuitem usersmenu = new menuitem();
            usersmenu.linkname = "Users";
            usersmenu.linkpath = "/users";
            usersmenu.enableactivecode = 7;
            usersmenu.isparentmenuitem = true;
            usersmenu.hasChildren = false;
            usersmenu.hasParent = false;
            usersmenu.childmenus = null;
            usersmenu.childumenusettag = "users";
            menu.Add(usersmenu);

            return menu;
        }
        private List<menuitem> BuildSuperAdminMenu()
        {
            List<menuitem> menu = new List<menuitem>();

            menuitem jobsmenu = new menuitem();

            jobsmenu.linkname = "Jobs";
            jobsmenu.linkpath = "/jobs";
            jobsmenu.enableactivecode = 1;
            jobsmenu.isparentmenuitem = true;
            jobsmenu.hasChildren = false;
            jobsmenu.hasParent = false;
            jobsmenu.childmenus = null;
            jobsmenu.childumenusettag = "jobs";
            menu.Add(jobsmenu);

            menuitem contactsmenu = new menuitem();
            contactsmenu.linkname = "Contacts";
            contactsmenu.linkpath = "/contacts";
            contactsmenu.enableactivecode = 2;
            contactsmenu.isparentmenuitem = true;
            contactsmenu.hasChildren = false;
            contactsmenu.hasParent = false;
            contactsmenu.childmenus = null;
            contactsmenu.childumenusettag = "contacts";
            menu.Add(contactsmenu);

            menuitem mailinglistmenu = new menuitem();
            mailinglistmenu.linkname = "Mailing Lists";
            mailinglistmenu.linkpath = "/lists";
            mailinglistmenu.enableactivecode = 3;
            mailinglistmenu.isparentmenuitem = true;
            mailinglistmenu.hasChildren = false;
            mailinglistmenu.hasParent = false;
            mailinglistmenu.childmenus = null;
            mailinglistmenu.childumenusettag = "mailinglist";
            menu.Add(mailinglistmenu);

            menuitem communicationmenu = new menuitem();
            communicationmenu.linkname = "Communication";
            communicationmenu.linkpath = "/communication";
            communicationmenu.enableactivecode = 4;
            communicationmenu.isparentmenuitem = true;
            communicationmenu.hasChildren = false;
            communicationmenu.hasParent = false;
            communicationmenu.childmenus = null;
            communicationmenu.childumenusettag = "communication";
            menu.Add(communicationmenu);

            menuitem timesheetsmenu = new menuitem();
            timesheetsmenu.linkname = "Timesheets";
            timesheetsmenu.linkpath = "/timesheet/dashboard";
            timesheetsmenu.enableactivecode = 5;
            timesheetsmenu.isparentmenuitem = true;
            timesheetsmenu.hasChildren = false;
            timesheetsmenu.hasParent = false;
            timesheetsmenu.childmenus = null;
            timesheetsmenu.childumenusettag = "timesheets";
            menu.Add(timesheetsmenu);

            menuitem candidatesmenu = new menuitem();
            candidatesmenu.linkname = "Candidates";
            candidatesmenu.linkpath = "/candidate";
            candidatesmenu.enableactivecode = 6;
            candidatesmenu.isparentmenuitem = true;
            candidatesmenu.hasChildren = false;
            candidatesmenu.hasParent = false;
            candidatesmenu.childmenus = null;
            candidatesmenu.childumenusettag = "candidates";
            menu.Add(candidatesmenu);

            menuitem usersmenu = new menuitem();
            usersmenu.linkname = "Users";
            usersmenu.linkpath = "/users";
            usersmenu.enableactivecode = 7;
            usersmenu.isparentmenuitem = true;
            usersmenu.hasChildren = false;
            usersmenu.hasParent = false;
            usersmenu.childmenus = null;
            usersmenu.childumenusettag = "users";
            menu.Add(usersmenu);

            menuitem suppliermenu = new menuitem();
            suppliermenu.linkname = "Suppliers";
            suppliermenu.linkpath = "/suppliers";
            suppliermenu.enableactivecode = 8;
            suppliermenu.isparentmenuitem = true;
            suppliermenu.hasChildren = false;
            suppliermenu.hasParent = false;
            suppliermenu.childmenus = null;
            suppliermenu.childumenusettag = "suppliers";
            menu.Add(suppliermenu);

            return menu;
        }
        private List <menuitem> BuildSuperAdminMenu()
        {
            List <menuitem> menu = new List <menuitem>();

            menuitem jobsmenu = new menuitem();

            jobsmenu.linkname         = "Jobs";
            jobsmenu.linkpath         = "/jobs";
            jobsmenu.enableactivecode = 1;
            jobsmenu.isparentmenuitem = true;
            jobsmenu.hasChildren      = false;
            jobsmenu.hasParent        = false;
            jobsmenu.childmenus       = null;
            jobsmenu.childumenusettag = "jobs";
            menu.Add(jobsmenu);

            menuitem contactsmenu = new menuitem();

            contactsmenu.linkname         = "Contacts";
            contactsmenu.linkpath         = "/contacts";
            contactsmenu.enableactivecode = 2;
            contactsmenu.isparentmenuitem = true;
            contactsmenu.hasChildren      = false;
            contactsmenu.hasParent        = false;
            contactsmenu.childmenus       = null;
            contactsmenu.childumenusettag = "contacts";
            menu.Add(contactsmenu);

            menuitem mailinglistmenu = new menuitem();

            mailinglistmenu.linkname         = "Mailing Lists";
            mailinglistmenu.linkpath         = "/lists";
            mailinglistmenu.enableactivecode = 3;
            mailinglistmenu.isparentmenuitem = true;
            mailinglistmenu.hasChildren      = false;
            mailinglistmenu.hasParent        = false;
            mailinglistmenu.childmenus       = null;
            mailinglistmenu.childumenusettag = "mailinglist";
            menu.Add(mailinglistmenu);

            menuitem communicationmenu = new menuitem();

            communicationmenu.linkname         = "Communication";
            communicationmenu.linkpath         = "/communication";
            communicationmenu.enableactivecode = 4;
            communicationmenu.isparentmenuitem = true;
            communicationmenu.hasChildren      = false;
            communicationmenu.hasParent        = false;
            communicationmenu.childmenus       = null;
            communicationmenu.childumenusettag = "communication";
            menu.Add(communicationmenu);

            menuitem timesheetsmenu = new menuitem();

            timesheetsmenu.linkname         = "Timesheets";
            timesheetsmenu.linkpath         = "/timesheet/dashboard";
            timesheetsmenu.enableactivecode = 5;
            timesheetsmenu.isparentmenuitem = true;
            timesheetsmenu.hasChildren      = false;
            timesheetsmenu.hasParent        = false;
            timesheetsmenu.childmenus       = null;
            timesheetsmenu.childumenusettag = "timesheets";
            menu.Add(timesheetsmenu);

            menuitem candidatesmenu = new menuitem();

            candidatesmenu.linkname         = "Candidates";
            candidatesmenu.linkpath         = "/candidate";
            candidatesmenu.enableactivecode = 6;
            candidatesmenu.isparentmenuitem = true;
            candidatesmenu.hasChildren      = false;
            candidatesmenu.hasParent        = false;
            candidatesmenu.childmenus       = null;
            candidatesmenu.childumenusettag = "candidates";
            menu.Add(candidatesmenu);

            menuitem usersmenu = new menuitem();

            usersmenu.linkname         = "Users";
            usersmenu.linkpath         = "/users";
            usersmenu.enableactivecode = 7;
            usersmenu.isparentmenuitem = true;
            usersmenu.hasChildren      = false;
            usersmenu.hasParent        = false;
            usersmenu.childmenus       = null;
            usersmenu.childumenusettag = "users";
            menu.Add(usersmenu);

            menuitem suppliermenu = new menuitem();

            suppliermenu.linkname         = "Suppliers";
            suppliermenu.linkpath         = "/suppliers";
            suppliermenu.enableactivecode = 8;
            suppliermenu.isparentmenuitem = true;
            suppliermenu.hasChildren      = false;
            suppliermenu.hasParent        = false;
            suppliermenu.childmenus       = null;
            suppliermenu.childumenusettag = "suppliers";
            menu.Add(suppliermenu);


            return(menu);
        }