private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (cmbUserRole.Text == "")
     {
         MessageBox.Show("Please Select User Role");
     }
     else if (txtDescription.Text == "")
     {
         MessageBox.Show("Please Provide Description");
     }
     else
     {
         try
         {
             bool result = businessLogicClass.manageUserRole(userRoleId, cmbUserRole.Text, txtDescription.Text, 2);
             if (result == true)
             {
                 MessageBox.Show("NEW USER HAS BEEN UPDATED");
                 dgvUserRoleInformation.DataSource = userRoleClass.getAllUserRoles();
                 AssistantClass.makeFieldsBlank(pnlUserInformation);
             }
             else
             {
                 MessageBox.Show("ERROR ON ADDING NEW UPDAED");
                 dgvUserRoleInformation.DataSource = userRoleClass.getAllUserRoles();
                 AssistantClass.makeFieldsBlank(pnlUserInformation);
             }
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }
Пример #2
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (cmbProject.Text == "")
     {
         MessageBox.Show("Please Provide Project Name");
     }
     else if (cmbMember.Text == "")
     {
         MessageBox.Show("Please Select Member");
     }
     else if (cmbMemberRole.Text == "")
     {
         MessageBox.Show("Please Select Member Role");
     }
     else if (txtDescription.Text == "")
     {
         MessageBox.Show("Please Provide Description");
     }
     else
     {
         bool result = businessligicClass.manageProjectMembers(projetID, Convert.ToInt32(cmbProject.SelectedValue.ToString()), Convert.ToInt32(cmbMember.SelectedValue.ToString()), cmbMemberRole.Text, txtDescription.Text, 2);
         if (result == true)
         {
             MessageBox.Show("EXISTING MEMBER HAS BEEN UPDATED TO THE PROJECT");
             dgvMemberProjectInformation.DataSource = memberprojectClass.getAllMembersInProject();
             AssistantClass.makeFieldsBlank(gbMemberInProject);
         }
         else
         {
             MessageBox.Show("ERROR IN UPDATING MEMBER IN THE PROJECT");
             dgvMemberProjectInformation.DataSource = memberprojectClass.getAllMembersInProject();
             AssistantClass.makeFieldsBlank(gbMemberInProject);
         }
     }
 }
Пример #3
0
        private void btnDel_Click(object sender, EventArgs e)
        {
            try
            {
                bool result = businessligicClass.manageBugs(BugID, Convert.ToDateTime(dateDate.Text), Convert.ToInt32(cmbIdentifiedBy.SelectedValue.ToString()), Convert.ToInt32(cmbProject.SelectedValue.ToString()), txtClassLibrary.Text, txtClass.Text, txtMethod.Text, txtBlock.Text, txtLineNumber.Text, txtBugDetails.Text, AssistantClass.imageConverter(picSnap), txtCode.Rtf, 3);
                if (result == true)
                {
                    MessageBox.Show("EXISTING BUG RECORD HAS BEEN DELETED");
                    dgvBugEntryInformation.DataSource = bugentryclass.getAllBugs();
                    AssistantClass.makeFieldsBlank(pnlBugDetails);
                    picSnap.Image = null;
                }
                else
                {
                    MessageBox.Show("ERROR IN DELETING BUG RECORD");
                    dgvBugEntryInformation.DataSource = bugentryclass.getAllBugs();
                    AssistantClass.makeFieldsBlank(pnlBugDetails);
                    picSnap.Image = null;
                }
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Пример #4
0
 private void btnDel_Click(object sender, EventArgs e)
 {
     try
     {
         bool result = businessLogicClass.manageMembers(memberId, txtFname.Text, txtAdd.Text, tctContact.Text, txtEmail.Text, cmbGender.Text, Convert.ToDateTime(dateDOB.Text), Convert.ToDateTime(dateDOJ.Text), txtDescription.Text, AssistantClass.imageConverter(picBrowse), 3);
         if (result == true)
         {
             MessageBox.Show("MEMBER HAS BEEN SUCCESSFULLY DELETED");
             dgvMemberInformation.DataSource = memberClass.getAllMembers();
             AssistantClass.makeFieldsBlank(gbMemberDetails);
             picBrowse.Image = null;
         }
         else
         {
             MessageBox.Show("ERROR IN DELETING MEMBER");
             dgvMemberInformation.DataSource = memberClass.getAllMembers();
             AssistantClass.makeFieldsBlank(gbMemberDetails);
             picBrowse.Image = null;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        private void btnAdd_Click_1(object sender, EventArgs e)
        {
            if (cmbProject.Text == "")
            {
                MessageBox.Show("Please Provide Project Name");
            }
            else if (dateDate.Text == "")
            {
                MessageBox.Show("Please Select Date");
            }
            else if (cmbBugDetails.Text == "")
            {
                MessageBox.Show("Please Select Big Details");
            }
            else if (cmbbugsolvedby.Text == "")
            {
                MessageBox.Show("Please select Member NAme");
            }
            else if (txtCode.Rtf == "")
            {
                MessageBox.Show("Please Provide Code");
            }
            else if (picSnap.Image == null)
            {
                MessageBox.Show("Please Upload Screenshot of Bug Occured");
            }
            else
            {
                try
                {
                    bool result = businesslogicclass.manageBugSolutions(0, Convert.ToDateTime(dateDate.Text), Convert.ToInt32(cmbProject.SelectedValue.ToString()), Convert.ToInt32(cmbBugDetails.SelectedValue.ToString()), Convert.ToInt32(cmbbugsolvedby.SelectedValue.ToString()), txtSolutionDetails.Text, txtCode.Rtf, 1);
                    if (result == true)
                    {
                        MessageBox.Show("NEW BUG SOLUTION HAS BEEN REGISTERED");
                        AssistantClass.makeFieldsBlank(pnlBugSolnInfo);
                        AssistantClass.makeFieldsBlank(picSnap);

                        dgvBugSolutionInformation.DataSource = bugSolutionEntryClass.getAllBugSolutions();
                        dateDate.Focus();
                    }
                    else
                    {
                        MessageBox.Show("ERROR IN REGISTERING BUG SOLUTION");
                        dgvBugSolutionInformation.DataSource = bugentryclass.getAllBugs();
                        AssistantClass.makeFieldsBlank(pnlBugSolnInfo);
                        AssistantClass.makeFieldsBlank(picSnap);
                        dateDate.Focus();
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
Пример #6
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (cmbUserRole.Text == "")
            {
                MessageBox.Show("Please Select User Role");
            }
            else if (cmbFullName.Text == "")
            {
                MessageBox.Show("Please Select Member");
            }
            else if (txtUserName.Text == "")
            {
                MessageBox.Show("Please Provide username");
            }
            else if (txtPassword.Text == "")
            {
                MessageBox.Show("Please Provide Password");
            }

            else if (txtCPassword.Text == "")
            {
                MessageBox.Show("Please Provide Confirm Password");
            }

            else if (txtCPassword.Text != txtPassword.Text)
            {
                MessageBox.Show("Password didnot Match");
            }

            else
            {
                try
                {
                    bool result = businessLogicClass.manageUsers(0, Convert.ToInt32(cmbUserRole.SelectedValue.ToString()), Convert.ToInt32(cmbFullName.SelectedValue.ToString()), txtUserName.Text, txtPassword.Text, 1);
                    if (result == true)
                    {
                        MessageBox.Show("NEW USER HAS BEEN ADDED");
                        dgvUserInformation.DataSource = userClass.getAllUsers();
                        AssistantClass.makeFieldsBlank(groupBox1);
                    }
                    else
                    {
                        MessageBox.Show("ERROR ON ADDING NEW USER");
                        dgvUserInformation.DataSource = userClass.getAllUsers();
                        AssistantClass.makeFieldsBlank(groupBox1);
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
Пример #7
0
        private void btnDel_Click(object sender, EventArgs e)
        {
            bool result = businessligicClass.manageProjectMembers(projetID, Convert.ToInt32(cmbProject.SelectedValue.ToString()), Convert.ToInt32(cmbMember.SelectedValue.ToString()), cmbMemberRole.Text, txtDescription.Text, 3);

            if (result == true)
            {
                MessageBox.Show("EXISTING MEMBER HAS BEEN DELETED FROM THE PROJECT");
                dgvMemberProjectInformation.DataSource = memberprojectClass.getAllMembersInProject();
                AssistantClass.makeFieldsBlank(gbMemberInProject);
            }
            else
            {
                MessageBox.Show("ERROR IN DELETING MEMBER FROM THE PROJECT");
                dgvMemberProjectInformation.DataSource = memberprojectClass.getAllMembersInProject();
                AssistantClass.makeFieldsBlank(gbMemberInProject);
            }
        }
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (txtPName.Text == "")
     {
         MessageBox.Show("Please Provide Project Name");
     }
     else if (dateStart.Text == "")
     {
         MessageBox.Show("Please Select Start Date");
     }
     else if (dateEnd.Text == "")
     {
         MessageBox.Show("Please Select End Date");
     }
     else if (txtDescription.Text == "")
     {
         MessageBox.Show("Please Provide Description");
     }
     else
     {
         try
         {
             bool result = businesslogicclass.manageProjects(ProjectId, txtPName.Text, Convert.ToDateTime(dateStart.Text), Convert.ToDateTime(dateEnd.Text), txtDescription.Text, 2);
             if (result == true)
             {
                 MessageBox.Show(" PROJECT HAS BEEN SUCCESSFULLY UPDATED");
                 dgvProjectInformation.DataSource = projectclass.getAllProjects();
                 AssistantClass.makeFieldsBlank(pnlProjectInformation);
             }
             else
             {
                 MessageBox.Show("ERROR ON UPDATING EXISTING PROJECT");
                 dgvProjectInformation.DataSource = projectclass.getAllProjects();
                 AssistantClass.makeFieldsBlank(pnlProjectInformation);
             }
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }
 private void btnDel_Click(object sender, EventArgs e)
 {
     try
     {
         bool result = businessLogicClass.manageUserRole(userRoleId, cmbUserRole.Text, txtDescription.Text, 3);
         if (result == true)
         {
             MessageBox.Show("NEW USER HAS BEEN DELETED");
             dgvUserRoleInformation.DataSource = userRoleClass.getAllUserRoles();
             AssistantClass.makeFieldsBlank(pnlUserInformation);
         }
         else
         {
             MessageBox.Show("ERROR ON ADDING NEW DELETED");
             dgvUserRoleInformation.DataSource = userRoleClass.getAllUserRoles();
             AssistantClass.makeFieldsBlank(pnlUserInformation);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void btnDel_Click(object sender, EventArgs e)
 {
     try
     {
         bool result = businesslogicclass.manageProjects(ProjectId, txtPName.Text, Convert.ToDateTime(dateStart.Text), Convert.ToDateTime(dateEnd.Text), txtDescription.Text, 3);
         if (result == true)
         {
             MessageBox.Show(" PROJECT INFORMATION HAS BEEN SUCCESSFULLY DELETED");
             dgvProjectInformation.DataSource = projectclass.getAllProjects();
             AssistantClass.makeFieldsBlank(pnlProjectInformation);
         }
         else
         {
             MessageBox.Show("ERROR ON DELETING EXISTING PROJECT");
             dgvProjectInformation.DataSource = projectclass.getAllProjects();
             AssistantClass.makeFieldsBlank(pnlProjectInformation);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void btnDel_Click_1(object sender, EventArgs e)
 {
     try
     {
         bool result = businesslogicclass.manageBugSolutions(RegBugID, Convert.ToDateTime(dateDate.Text), Convert.ToInt32(cmbProject.SelectedValue.ToString()), Convert.ToInt32(cmbBugDetails.SelectedValue.ToString()), Convert.ToInt32(cmbbugsolvedby.SelectedValue.ToString()), txtSolutionDetails.Text, txtCode.Rtf, 3);
         if (result == true)
         {
             MessageBox.Show("EXISTING BUG SOLUTION HAS BEEN DELETED");
             dgvBugSolutionInformation.DataSource = bugSolutionEntryClass.getAllBugSolutions();
             AssistantClass.makeFieldsBlank(pnlBugSolnInfo);
         }
         else
         {
             MessageBox.Show("ERROR IN DELETING EXISTING BUG SOLUTION");
             dgvBugSolutionInformation.DataSource = bugSolutionEntryClass.getAllBugSolutions();
             AssistantClass.makeFieldsBlank(pnlBugSolnInfo);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #12
0
 private void btnDel_Click(object sender, EventArgs e)
 {
     try
     {
         bool result = businessLogicClass.manageUsers(userId, Convert.ToInt32(cmbUserRole.SelectedValue.ToString()), Convert.ToInt32(cmbFullName.SelectedValue.ToString()), txtUserName.Text, txtPassword.Text, 3);
         if (result == true)
         {
             MessageBox.Show("NEW USER HAS BEEN DELETED");
             dgvUserInformation.DataSource = userClass.getAllUsers();
             AssistantClass.makeFieldsBlank(groupBox1);
         }
         else
         {
             MessageBox.Show("ERROR ON ADDING NEW DELETED");
             dgvUserInformation.DataSource = userClass.getAllUsers();
             AssistantClass.makeFieldsBlank(groupBox1);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #13
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (cmbProject.Text == "")
            {
                MessageBox.Show("Please Provide Project Name");
            }
            else if (dateDate.Text == "")
            {
                MessageBox.Show("Please Select Date");
            }
            else if (cmbIdentifiedBy.Text == "")
            {
                MessageBox.Show("Please Select Member");
            }
            else if (txtClassLibrary.Text == "")
            {
                MessageBox.Show("Please Provide Class Library");
            }
            else if (txtClass.Text == "")
            {
                MessageBox.Show("Please Provide Class");
            }
            else if (txtMethod.Text == "")
            {
                MessageBox.Show("Please Provide Method");
            }
            else if (txtLineNumber.Text == "")
            {
                MessageBox.Show("Please Provide Line Number");
            }
            else if (txtBlock.Text == "")
            {
                MessageBox.Show("Please Provide Block");
            }
            else if (txtLineNumber.Text == "")
            {
                MessageBox.Show("Please Provide Description");
            }
            else if (txtBugDetails.Text == "")
            {
                MessageBox.Show("Please Provide Method");
            }
            else if (txtCode.Text == "")
            {
                MessageBox.Show("Please Provide Code");
            }
            else if (picSnap.Image == null)
            {
                MessageBox.Show("Please Upload Screenshot of Bug Occured");
            }
            else
            {
                try
                {
                    bool result = businessligicClass.manageBugs(0, Convert.ToDateTime(dateDate.Text), Convert.ToInt32(cmbIdentifiedBy.SelectedValue.ToString()), Convert.ToInt32(cmbProject.SelectedValue.ToString()), txtClassLibrary.Text, txtClass.Text, txtMethod.Text, txtBlock.Text, txtLineNumber.Text, txtBugDetails.Text, AssistantClass.imageConverter(picSnap), txtCode.Rtf, 1);
                    if (result == true)
                    {
                        MessageBox.Show("NEW BUG RECORD HAS BEEN ADDED");
                        dgvBugEntryInformation.DataSource = bugentryclass.getAllBugs();
                        AssistantClass.makeFieldsBlank(pnlBugDetails);
                        picSnap.Image = null;
                    }
                    else
                    {
                        MessageBox.Show("ERROR IN ADDING BUG RECORD");
                        dgvBugEntryInformation.DataSource = bugentryclass.getAllBugs();
                        AssistantClass.makeFieldsBlank(pnlBugDetails);
                        picSnap.Image = null;
                    }
                }

                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
Пример #14
0
        // Update Member Details
        private void btnUpdate_Click_1(object sender, EventArgs e)
        {
            if (txtFname.Text == "")
            {
                MessageBox.Show("Please Select Full Name");
            }
            else if (txtAdd.Text == "")
            {
                MessageBox.Show("Please Provide Address");
            }
            else if (tctContact.Text == "")
            {
                MessageBox.Show("Please Provide Contact Details");
            }
            else if (txtDescription.Text == "")
            {
                MessageBox.Show("Please Provide Description");
            }
            else if (txtEmail.Text == "")
            {
                MessageBox.Show("Please Provide Email Address");
            }
            else if (cmbGender.Text == "")
            {
                MessageBox.Show("Please Select Gender");
            }
            else if (dateDOB.Text == "")
            {
                MessageBox.Show("Please Provide Date of Birth");
            }
            else if (dateDOJ.Text == "")
            {
                MessageBox.Show("Please Provide DAte of Join");
            }
            else if (picBrowse.Image == null)
            {
                MessageBox.Show("Please Upload");
            }

            else
            {
                try
                {
                    bool result = businessLogicClass.manageMembers(memberId, txtFname.Text, txtAdd.Text, tctContact.Text, txtEmail.Text, cmbGender.Text, Convert.ToDateTime(dateDOB.Text), Convert.ToDateTime(dateDOJ.Text), txtDescription.Text, AssistantClass.imageConverter(picBrowse), 2);
                    if (result == true)
                    {
                        MessageBox.Show("MEMBER HAS BEEN SUCCESSFULLY UPDATED");
                        dgvMemberInformation.DataSource = memberClass.getAllMembers();
                        AssistantClass.makeFieldsBlank(gbMemberDetails);
                        picBrowse.Image = null;
                    }
                    else
                    {
                        MessageBox.Show("ERROR IN UPDATING MEMBER");
                        dgvMemberInformation.DataSource = memberClass.getAllMembers();
                        AssistantClass.makeFieldsBlank(gbMemberDetails);
                        picBrowse.Image = null;
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }