private void ManagerAssginFrm_Load(object sender, EventArgs e)
        {
            //Get and set priority value
            cbPriority.DataSource = System.Enum.GetNames(typeof(Priority));
            cbPriority.Text       = jobcurrent.priority.ToString();

            //Get and set worker value
            IList <UserInfor> userlist = UserInforBLL.GetAllWorkers(user.outlet);

            foreach (UserInfor worker in userlist)
            {
                ItemData item = new ItemData(worker.UserName, worker);
                cbWoker.Items.Add(item);
                if (jobcurrent.worker != null && jobcurrent.worker.UserId == worker.UserId)
                {
                    cbWoker.SelectedItem = item;
                }
            }

            if (jobcurrent.worker != null)
            {
                cbWoker.Text = jobcurrent.worker.UserName.ToString();
            }
            else
            {
                cbWoker.Text = "Plese select";
            }
        }
        private void ManagerSearchFrm_Load(object sender, EventArgs e)
        {
            //Get job status
            cbJobStatus.DataSource   = System.Enum.GetNames(typeof(JobStatus));
            cbJobStatus.SelectedText = "All Status";

            //Get resolve job list
            cb_resolve.DataSource   = System.Enum.GetNames(typeof(ResolveStatus));
            cb_resolve.SelectedText = "All Resolve";

            //Get and set worker value
            IList <UserInfor> userlist = UserInforBLL.GetAllWorkers(user.outlet);

            foreach (UserInfor worker in userlist)
            {
                ItemData item = new ItemData(worker.UserName, worker);
                cbWoker.SelectedItem  = item;
                cbWoker.SelectedIndex = worker.UserId;
            }

            //Load jobs table
            IList <JobInfo> jobs = JobInfoManager.GetAllJobByUid();

            RefreshJobList(jobs);
        }