Example #1
0
        // Button Functionality

        // Update Project
        private void ProjectPageUpdateButton_Click(object sender, EventArgs e)
        {
            //dbconn = new DBConn();
            //conn = dbconn.Dbsetup();
            //edit.Setup(conn);
            int flag  = 0;
            int hours = 0;

            edit.EditProject(projectPagePNumBox.Text, projectPageDescriptionBox.Text, projectPageDueDateBox.Text, projectPagePhaseBox.Text, projectPageDeliverablesBox.Text, hours, projectPageStatusBox.Text, eID, flag);
        }
Example #2
0
        } //end project page update hours button

        private void ProjectPageUpdateButton_Click(object sender, EventArgs e)
        {
            if (projectPagePNumBox.Text == "" || projectPagePNumBox.Text == null)
            {
                MessageBox.Show("Must enter project number");
            }
            else
            {
                edit.SetCompleteIncomplete(completeCheckBox);
                edit.EditProject(projectPagePNumBox, projectPageDescriptionBox, projectPageDeliverablesBox, projectPageHoursBox, projectPageStatusBox, eID);

                testPrjNo = projectPagePNumBox.Text;
                edit.EditID(testPrjNo);
                edit.ListPhases(phasesGrid);
                edit.AutoDisplay(projectPagePNumBox, projectPageDescriptionBox, projectPageLeaderLNameBox, projectPageLeaderFNameBox, projectPageDeliverablesBox, projectPageHoursBox, testPrjNo, completeCheckBox);
                edit.HoursDisplay(projectHoursLabel2);
                edit.DisplayNotes(notesGridView);
                edit.DisplayEmployees(projectPageAssignmentGrid, projectPageOnProjectGrid);
                edit.SetFlag(1);
            }
        } //end project page update button