Пример #1
0
 public void DeleteManageMember()
 {
     try
     {
         bool result = blc.ManageMembers(memberId, txtMemberName.Text, txtMemberAddress.Text, txtConatctNumber.Text, txtEmailAddress.Text, cmbGender.Text, Convert.ToDateTime(dtpDateOfBirth.Text), Convert.ToDateTime(dtpDateOfJoin.Text), txtDesignation.Text, Assitantclass.imageConverter(pbProfilePicture), 3);
         if (result == true)
         {
             MessageBox.Show("Member successfully deleted");
             dgvManageMember.DataSource = mcl.getAllMembers();
             Assitantclass.makeFieldsBlank(pnlMemberInformation);
             pbProfilePicture.Image = null;
         }
         else
         {
             MessageBox.Show("Error");
             dgvManageMember.DataSource = mcl.getAllMembers();
             Assitantclass.makeFieldsBlank(pnlMemberInformation);
             pbProfilePicture.Image = null;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #2
0
 public void AddManageMember()
 {
     try
     {
         bool result = blc.ManageMembers(0, txtMemberName.Text, txtMemberAddress.Text, txtConatctNumber.Text, txtEmailAddress.Text, cmbGender.Text, Convert.ToDateTime(dtpDateOfBirth.Text), Convert.ToDateTime(dtpDateOfJoin.Text), txtDesignation.Text, Assitantclass.imageConverter(pbProfilePicture), 1);
         if (result == true)
         {
             MessageBox.Show("NEW MEMBER HAS SUCCESSFULLY CREATED");
             dgvManageMember.DataSource = mcl.getAllMembers();
             Assitantclass.makeFieldsBlank(pnlMemberInformation);
             pbProfilePicture.Image = null;
         }
         else
         {
             MessageBox.Show("ERROR IN CREATING MEMBER");
             dgvManageMember.DataSource = mcl.getAllMembers();
             Assitantclass.makeFieldsBlank(pnlMemberInformation);
             pbProfilePicture.Image = null;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 public void AddBugSolution()
 {
     try
     {
         bool result = blc.manageBugSolutions(0, Convert.ToDateTime(dtpDate.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");
             Assitantclass.makeFieldsBlank(gbRegisterBugSolution);
             dgvRegBugSolution.DataSource = rbs.getAllBugSolutions();
             dtpDate.Focus();
         }
         else
         {
             MessageBox.Show("ERROR IN REGISTERING BUG SOLUTION");
             dgvRegBugSolution.DataSource = rbs.getAllBugSolutions();
             Assitantclass.makeFieldsBlank(gbRegisterBugSolution);
             dtpDate.Focus();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #4
0
        public void AddRegisterBug()
        {
            try
            {
                bool result = blc.manageBugs(0, Convert.ToDateTime(dtpBugIdentityDate.Text), Convert.ToInt32(cmbIdentityBy.SelectedValue.ToString()), Convert.ToInt32(cmbProjectName.SelectedValue.ToString()), txtClassLibrary.Text, txtClass.Text, txtMethod.Text, txtBlock.Text, txtLineNumber.Text, txtBugDetails.Text, Assitantclass.imageConverter(pbPictureImages), txtCode1.Rtf, 1);
                if (result == true)
                {
                    MessageBox.Show("NEW BUG RECORD HAS BEEN ADDED");
                    dgvRegisterBug.DataSource = rbc.getAllBugs();
                    Assitantclass.makeFieldsBlank(pnlManageBugInformation);
                    pbPictureImages.Image = null;
                }
                else
                {
                    MessageBox.Show("ERROR IN ADDING BUG RECORD");
                    dgvRegisterBug.DataSource = rbc.getAllBugs();
                    Assitantclass.makeFieldsBlank(pnlManageBugInformation);
                    pbPictureImages.Image = null;
                }
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Пример #5
0
 public void DeleteRegBug()
 {
     try
     {
         bool result = blc.manageBugs(bugId, Convert.ToDateTime(dtpBugIdentityDate.Text), Convert.ToInt32(cmbIdentityBy.SelectedValue.ToString()), Convert.ToInt32(cmbProjectName.SelectedValue.ToString()), txtClassLibrary.Text, txtClass.Text, txtMethod.Text, txtBlock.Text, txtLineNumber.Text, txtBugDetails.Text, Assitantclass.imageConverter(pbPictureImages), txtCode1.Rtf, 3);
         if (result == true)
         {
             MessageBox.Show("NEW BUG RECORD HAS BEEN SUCCESSFULLY DELETED");
             dgvRegisterBug.DataSource = rbc.getAllBugs();
             Assitantclass.makeFieldsBlank(pnlManageBugInformation);
             pbPictureImages.Image = null;
         }
         else
         {
             MessageBox.Show("ERROR IN ADDING BUG RECORD");
             dgvRegisterBug.DataSource = rbc.getAllBugs();
             Assitantclass.makeFieldsBlank(pnlManageBugInformation);
             pbPictureImages.Image = null;
         }
     }
     catch (System.NullReferenceException)
     {
         MessageBox.Show("Some fields cann't be null");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #6
0
        public void AddProjectMember()
        {
            bool result = blc.manageProjectMembers(0, Convert.ToInt32(cmbProject.SelectedValue.ToString()), Convert.ToInt32(cmbMember.SelectedValue.ToString()), cmbMemberRole.Text, txtResonse.Text, 1);

            if (result == true)
            {
                MessageBox.Show("NEW MEMBER HAS BEEN ADDED TO THE PROJECT");
                dgvProjectMember.DataSource = pm.getAllMembersInProject();
                Assitantclass.makeFieldsBlank(gbAssignMemberForTheProject);
            }
            else
            {
                MessageBox.Show("ERROR IN ADDING MEMBER IN THE PROJECT");
                dgvProjectMember.DataSource = pm.getAllMembersInProject();
                Assitantclass.makeFieldsBlank(gbAssignMemberForTheProject);
            }
        }
Пример #7
0
        public void DeleteMemberProject()
        {
            bool result = blc.manageProjectMembers(projectmemberid, Convert.ToInt32(cmbProject.SelectedValue.ToString()), Convert.ToInt32(cmbMember.SelectedValue.ToString()), cmbMemberRole.Text, txtResonse.Text, 3);

            if (result == true)
            {
                MessageBox.Show("PROJECT MEMBER HAS BEEN DELETED");
                dgvProjectMember.DataSource = pm.getAllMembersInProject();
                Assitantclass.makeFieldsBlank(gbAssignMemberForTheProject);
            }
            else
            {
                MessageBox.Show("ERROR IN DELETING PROJECT MEMBER FROM THE PROJECT");
                dgvProjectMember.DataSource = pm.getAllMembersInProject();
                Assitantclass.makeFieldsBlank(gbAssignMemberForTheProject);
            }
        }
Пример #8
0
        public void UpdateProjectMember()
        {
            bool result = blc.manageProjectMembers(projectmemberid, Convert.ToInt32(cmbProject.SelectedValue.ToString()), Convert.ToInt32(cmbMember.SelectedValue.ToString()), cmbMemberRole.Text, txtResonse.Text, 2);

            if (result == true)
            {
                MessageBox.Show("MEMBER INFORMATION IN THE PROJECT HAS BEEN MODIFIED");
                dgvProjectMember.DataSource = pm.getAllMembersInProject();
                Assitantclass.makeFieldsBlank(gbAssignMemberForTheProject);
            }
            else
            {
                MessageBox.Show("ERROR IN MODIFYING MEMBER INFORMATION OF THE PROJECT");
                dgvProjectMember.DataSource = pm.getAllMembersInProject();
                Assitantclass.makeFieldsBlank(gbAssignMemberForTheProject);
            }
        }
 public void deleteBugSolution()
 {
     try
     {
         bool result = blc.manageBugSolutions(Id, Convert.ToDateTime(dtpDate.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("BUG SOLUTION HAS BEEN DELETED");
             Assitantclass.makeFieldsBlank(gbRegisterBugSolution);
             dtpDate.Focus();
         }
         else
         {
             MessageBox.Show("ERROR IN DELETING BUG SOLUTION");
             Assitantclass.makeFieldsBlank(gbRegisterBugSolution);
             dtpDate.Focus();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #10
0
        /// <summary>

        /// </summary> create Function
        public void AddManageUser()
        {
            try
            {
                bool result = blc.manageUsers(0, Convert.ToInt32(cmbUserRole.SelectedValue.ToString()), Convert.ToInt32(cmbfirstname.SelectedValue.ToString()), txtusername.Text, txtpassword.Text, 1);
                if (result == true)
                {
                    MessageBox.Show("NEW USER HAS BEEN ADDED");
                    dgvManageUser.DataSource = muc.getAllUsers();
                    Assitantclass.makeFieldsBlank(pnlUserInfo);
                }
                else
                {
                    MessageBox.Show("ERROR ON ADDING NEW USER");
                    dgvManageUser.DataSource = muc.getAllUsers();
                    Assitantclass.makeFieldsBlank(pnlUserInfo);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Пример #11
0
 public void DeleteManageUser()
 {
     try
     {
         bool result = blc.manageUsers(userId, Convert.ToInt32(cmbUserRole.SelectedValue.ToString()), Convert.ToInt32(cmbfirstname.SelectedValue.ToString()), txtusername.Text, txtpassword.Text, 3);
         if (result == true)
         {
             MessageBox.Show("User has been deleted");
             dgvManageUser.DataSource = muc.getAllUsers();
             Assitantclass.makeFieldsBlank(pnlUserInfo);
         }
         else
         {
             MessageBox.Show("Error");
             dgvManageUser.DataSource = muc.getAllUsers();
             Assitantclass.makeFieldsBlank(pnlUserInfo);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #12
0
 public void UpdateManageRole()
 {
     try
     {
         bool result = blc.ManageRole(id, txtUserRole.Text, txtDescription.Text, 2);
         if (result == true)
         {
             MessageBox.Show("NEW USER ROLE HAS BEEN updated");
             dgvManageRole.DataSource = m.getAllUserRoles();
             Assitantclass.makeFieldsBlank(pnlManageUserRole);
         }
         else
         {
             MessageBox.Show("ERROR IN ADDING USER ROLE");
             dgvManageRole.DataSource = m.getAllUserRoles();
             Assitantclass.makeFieldsBlank(pnlManageUserRole);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #13
0
 public void addProject()
 {
     try
     {
         bool result = blc.manageProjects(0, txtProjectName.Text, Convert.ToDateTime(dtpStartDate.Text), Convert.ToDateTime(dtpEndDate.Text), txtProjectDescription.Text, 1);
         if (result == true)
         {
             MessageBox.Show("NEW PROJECT HAS BEEN SUCCESSFULLY ADDED");
             dgvProjectManagement.DataSource = pmc.getAllProjects();
             Assitantclass.makeFieldsBlank(pnlManageProject);
         }
         else
         {
             MessageBox.Show("ERROR ON ADDING NEW PROJECT");
             dgvProjectManagement.DataSource = pmc.getAllProjects();
             Assitantclass.makeFieldsBlank(pnlManageProject);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #14
0
 public void deleteProject()
 {
     try
     {
         bool result = blc.manageProjects(projectId, txtProjectName.Text, Convert.ToDateTime(dtpStartDate.Text), Convert.ToDateTime(dtpEndDate.Text), txtProjectDescription.Text, 3);
         if (result == true)
         {
             MessageBox.Show("PROJECT INFORMATION HAS BEEN SUCCESSFULLY DELETED");
             dgvProjectManagement.DataSource = pmc.getAllProjects();
             Assitantclass.makeFieldsBlank(pnlManageProject);
         }
         else
         {
             MessageBox.Show("ERROR ON DELETING PROJECT INFORMATION");
             dgvProjectManagement.DataSource = pmc.getAllProjects();
             Assitantclass.makeFieldsBlank(pnlManageProject);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }