private void ViewTaskOfSpecificProject_Load(object sender, EventArgs e)
        {
            ViewProjUC viewtasks = new ViewProjUC();

            viewTasksFlowLayoutPanel.Controls.Add(viewtasks);
            viewtasks.MoreLabelBtn.Visible = false;
        }
Example #2
0
        private void HomeBtn_MouseClick(object sender, MouseEventArgs e)
        {
            ViewProjUC.editProj.Hide();
            ViewProjUC.projInfo.Hide();
            ViewProjUC.tasksPanel.Hide();
            ViewEmpUC.editData.Hide();
            flowLayoutPanel1.Controls.Clear();
            flowLayoutPanel1.BringToFront();
            OnHome.Visible     = true;
            OnAddProj.Visible  = false;
            OnViewEmp.Visible  = false;
            OnViewProj.Visible = false;

            //ProjectClass pro = new ProjectClass();
            //ViewProjUC view = new ViewProjUC(pro);
            // flowLayoutPanel1.Controls.Add(view);

            EmployeeClass       projectlist = new EmployeeClass();
            List <ProjectClass> list        = new List <ProjectClass>();

            projectlist.displayprojects(ref list, empnow.id);
            for (int i = 0; i < list.Count; i++)
            {
                if (list[i].status != "Finish")
                {
                    ViewProjUC view = new ViewProjUC(list[i]);
                    view.ProjectName.Text   = list[i].name;
                    view.TaskEmpLabel.Text  = list[i].manger_name;
                    view.startDuration.Text = "start on " + list[i].start_time.ToString();
                    view.endDuration.Text   = "end on " + list[i].end_time.ToString();
                    flowLayoutPanel1.Controls.Add(view);
                }
            }
        }
Example #3
0
        public ManagerForm(int id)
        {
            InitializeComponent();

            //ProjectClass pro = new ProjectClass();
            flowLayoutPanel1.Controls.Clear();
            OnHome.Visible     = true;
            OnAddProj.Visible  = false;
            OnViewEmp.Visible  = false;
            OnViewProj.Visible = false;

            EmployeeClass       projectlist = new EmployeeClass();
            List <ProjectClass> list        = new List <ProjectClass>();

            projectlist.displayprojects(ref list, id);
            for (int i = 0; i < list.Count; i++)
            {
                if (list[i].status != "Finish")
                {
                    ViewProjUC view = new ViewProjUC(list[i]);
                    view.ProjectName.Text   = list[i].name;
                    view.TaskEmpLabel.Text  = list[i].manger_name;
                    view.startDuration.Text = "start on " + list[i].start_time.ToString();
                    view.endDuration.Text   = "end on " + list[i].end_time.ToString();
                    flowLayoutPanel1.Controls.Add(view);
                }
            }
        }
Example #4
0
        public void HomeBtn_MouseClick(object sender, MouseEventArgs e)
        {
            flowLayoutPanel1.Controls.Clear();
            flowLayoutPanel1.BringToFront();
            OnHome.Visible     = true;
            OnAddMng.Visible   = false;
            OnAddProj.Visible  = false;
            OnViewEmp.Visible  = false;
            OnViewProj.Visible = false;

            AdminClass          projectlist = new AdminClass();
            List <ProjectClass> list        = new List <ProjectClass>();

            projectlist.projectview(ref list);
            for (int i = 0; i < list.Count; i++)
            {
                if (list[i].status != "Finish")
                {
                    ViewProjUC view = new ViewProjUC(list[i]);
                    view.ProjectName.Text   = list[i].name;
                    view.TaskEmpLabel.Text  = list[i].manger_name;
                    view.startDuration.Text = "Start on " + list[i].start_time.Day + " / " + list[i].start_time.Month + " / " + list[i].start_time.Year;
                    view.endDuration.Text   = "End on " + list[i].end_time.Day + " / " + list[i].end_time.Month + " / " + list[i].end_time.Year;
                    flowLayoutPanel1.Controls.Add(view);
                }
            }
        }
Example #5
0
        private void ViewProjBtn_MouseClick(object sender, MouseEventArgs e)
        {
            ViewProjUC.projInfo.Hide();
            ViewProjUC.editProj.Hide();
            ViewEmpUC.editData.Hide();
            ViewProjUC.tasksPanel.Hide();
            flowLayoutPanel1.Controls.Clear();
            flowLayoutPanel1.BringToFront();
            OnHome.Visible     = false;
            OnAddMng.Visible   = false;
            OnAddProj.Visible  = false;
            OnViewEmp.Visible  = false;
            OnViewProj.Visible = true;
            AdminClass          projectlist = new AdminClass();
            List <ProjectClass> list        = new List <ProjectClass>(); projectlist.projectview(ref list);

            for (int i = 0; i < list.Count; i++)
            {
                if (list[i].status == "Finish")
                {
                    ViewProjUC view = new ViewProjUC(list[i]);
                    view.EditLabelBtn.Visible = false;
                    view.ProjectName.Text     = list[i].name;
                    view.TaskEmpLabel.Text    = list[i].manger_name;
                    view.startDuration.Text   = "Start on " + list[i].start_time.Day + " / " + list[i].start_time.Month + " / " + list[i].start_time.Year;
                    view.endDuration.Text     = "End on " + list[i].end_time.Day + " / " + list[i].end_time.Month + " / " + list[i].end_time.Year;
                    flowLayoutPanel1.Controls.Add(view);
                }
            }
            //ProjectClass pro = new ProjectClass();
            //ViewProjUC viewTasks = new ViewProjUC(pro);
            //viewTasks.EditLabelBtn.Visible = false;
            //flowLayoutPanel1.Controls.Add(viewTasks);
        }
Example #6
0
        public AdminForm()
        {
            InitializeComponent();

            flowLayoutPanel1.Controls.Clear();
            OnHome.Visible     = true;
            OnAddMng.Visible   = false;
            OnAddProj.Visible  = false;
            OnViewEmp.Visible  = false;
            OnViewProj.Visible = false;


            AdminClass          projectlist = new AdminClass();
            List <ProjectClass> list        = new List <ProjectClass>();

            projectlist.projectview(ref list);
            for (int i = 0; i < list.Count; i++)
            {
                if (list[i].status != "Finish")
                {
                    ViewProjUC view = new ViewProjUC(list[i]);
                    view.ProjectName.Text   = list[i].name;
                    view.TaskEmpLabel.Text  = list[i].manger_name;
                    view.startDuration.Text = "Start on " + list[i].start_time.Day + " / " + list[i].start_time.Month + " / " + list[i].start_time.Year;
                    view.endDuration.Text   = "End on " + list[i].end_time.Day + " / " + list[i].end_time.Month + " / " + list[i].end_time.Year;
                    flowLayoutPanel1.Controls.Add(view);
                }
            }
        }