protected void InitializeGridViewJobType()
        {
            GetMyAccessRights();
            if (myAccessRights.CanAdd == true)
                linkBtnAdd.Visible = true;
            else
                linkBtnAdd.Visible = false;
            JobTypeDepartment jobtypeDepartment = new JobTypeDepartment();
            JobType jobtype = new JobType();
            List<JobType> jobtypeList = new List<JobType>();

            if (dropDownListDepartment.SelectedItem.Text == "All")
                jobtypeList = jobtype.GetJobTypeList();
            else
                jobtypeList = jobtypeDepartment.GetJobTypeList(Convert.ToInt32(dropDownListDepartment.SelectedItem.Value));

            gridViewJobType.DataSource = jobtypeList;
            gridViewJobType.DataBind();
        }
        private void InitializeModalJobType()
        {
            JobType jobType = new JobType();
            List<JobType> jobtypeList = new List<JobType>();
            jobtypeList = jobType.GetJobTypeList();

            modalDropDownJobType.DataSource = jobtypeList;
            modalDropDownJobType.DataValueField = "Id";
            modalDropDownJobType.DataTextField = "Description";
            modalDropDownJobType.DataBind();
        }