예제 #1
0
        private void linkLabelAddNewAction_LinkClicked(object sender, EventArgs e)
        {
            frmMasterUserList frm = new frmMasterUserList();

            frm.Text             = "Add Action of Business Schdeule Call";
            frm.MASTERCategoryID = (int)APP_MASTER_CATEGORIES.CALL_SCHEDULE_ACTIONS;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                cboActions.DataSource    = _UNIT.MasterService.GetAllScheduleCallActions();
                cboActions.DisplayMember = "Description";
                cboActions.ValueMember   = "ID";
                cboActions.SelectedItem  = ((List <SelectListItem>)cboActions.DataSource).Where(x => x.ID == frm.ID).FirstOrDefault();
            }
        }
예제 #2
0
 private void btnEditMasterCategoryValue_Click(object sender, EventArgs e)
 {
     try
     {
         frmMasterUserList frm = new frmMasterUserList(_SelectedMasterCategoryValueID);
         frm.MASTERCategoryID = _SelectedMasterCategoryID;
         frm.Text             = string.Format("Modify {0} Value", _SelectedMasterCategoryName);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateMasterCategoryValuesGrid();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "PageUserLists::btnEditMasterCategoryValue_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #3
0
 private void btnAddLeadSource_Click(object sender, EventArgs e)
 {
     try
     {
         frmMasterUserList frm = new frmMasterUserList();
         frm.Text             = "Add new Source of Lead";
         frm.MASTERCategoryID = (int)APP_ADMIN_CATEGORIES.LEAD_SOURCE;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateLeadSourceDropdown();
             cboLeadSources.SelectedItem = ((List <SelectListItem>)cboLeadSources.DataSource).Where(x => x.ID == frm.MASTERCategoryID).FirstOrDefault();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "btnAddLeadSource_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #4
0
 private void btnAddProjectSector_Click(object sender, EventArgs e)
 {
     try
     {
         frmMasterUserList frm = new frmMasterUserList();
         frm.Text             = "Add new Project Sector";
         frm.MASTERCategoryID = (int)APP_ADMIN_CATEGORIES.PROJECT_SECTOR;
         // frm.Text = string.Format("Add New {0} Value", _SelectedMasterCategoryName);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateProjectSectorDropdown();
             cboProjectSector.SelectedItem = ((List <SelectListItem>)cboProjectSector.DataSource).Where(x => x.ID == frm.MASTERCategoryID).FirstOrDefault();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "btnAddProjectSector_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #5
0
 private void btnEditCheckPoint_Click(object sender, EventArgs e)
 {
     try
     {
         frmMasterUserList frm = new frmMasterUserList(this.SelectedProjectCheckPointID);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateCheckPointsGrid();
         }
     }
     catch (Exception ex)
     {
         string errMessage = ex.Message;
         if (ex.InnerException != null)
         {
             errMessage += string.Format("\n{0}", ex.InnerException.Message);
         }
         MessageBox.Show(errMessage, "pageProjectChecklist::btnEditCheckPoint_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #6
0
 private void btnAddNewCheckPoint_Click(object sender, EventArgs e)
 {
     try
     {
         frmMasterUserList frm = new frmMasterUserList();
         frm.MASTERCategoryID = Program.LIST_DEFAULTS.Where(x => x.ID == (int)APP_DEFAULT_VALUES.ProjectChecklistPointCategory).FirstOrDefault().DEFAULT_VALUE;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateCheckPointsGrid();
         }
     }
     catch (Exception ex)
     {
         string errMessage = ex.Message;
         if (ex.InnerException != null)
         {
             errMessage += string.Format("\n{0}", ex.InnerException.Message);
         }
         MessageBox.Show(errMessage, "pageProjectChecklist::btnAddNewCheckPoint_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #7
0
 private void AddQuestionCategory_Click(object sender, EventArgs e)
 {
     try
     {
         frmMasterUserList frm = new frmMasterUserList();
         frm.Text             = "Add a New Questionnaire Category";
         frm.MASTERCategoryID = (new ServiceSalesQuestionnaire()).QUESTION_CATEGORY_MASTER_ID;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateCategoriesList();
         }
     }
     catch (Exception ex)
     {
         string errMessage = ex.Message;
         if (ex.InnerException != null)
         {
             errMessage += string.Format("\n{0}", ex.InnerException.Message);
         }
         MessageBox.Show(errMessage, "pageQuestionnaire::AddQuestionCategory_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #8
0
 private void btnEditRelatedTo_Click(object sender, EventArgs e)
 {
     try
     {
         frmMasterUserList frm = new frmMasterUserList(this.selectedRelatedToID);
         frm.Text             = "Edit Related To Category for Questionnaire";
         frm.MASTERCategoryID = (new ServiceSalesQuestionnaire()).QUESTION_RELATEDTO_MASTER_ID;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateRelatedToList();
         }
     }
     catch (Exception ex)
     {
         string errMessage = ex.Message;
         if (ex.InnerException != null)
         {
             errMessage += string.Format("\n{0}", ex.InnerException.Message);
         }
         MessageBox.Show(errMessage, "pageQuestionnaire::btnEditRelatedTo_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #9
0
 private void btnNewService_Click(object sender, EventArgs e)
 {
     try
     {
         frmMasterUserList frm = new frmMasterUserList();
         frm.MASTERCategoryID = (int)APP_MASTER_CATEGORIES.SERVICES_CATEGORY;
         frm.kryptonHeaderGroup1.ValuesPrimary.Heading = "Add a New Service";
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateServicesGrid();
         }
     }
     catch (Exception ex)
     {
         string errMessage = ex.Message;
         if (ex.InnerException != null)
         {
             errMessage += string.Format("\n{0}", ex.InnerException.Message);
         }
         MessageBox.Show(errMessage, "frmAddEditBOQDesign::btnNewService_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #10
0
 private void btnAddSuspectCategory_Click(object sender, EventArgs e)
 {
     try
     {
         frmMasterUserList frm = new frmMasterUserList();
         frm.Text = "Add/Edit Suspect Info. Category";
         frm.kryptonHeaderGroup1.ValuesPrimary.Heading = "Suspect Category Name";
         frm.MASTERCategoryID = (int)APP_ADMIN_CATEGORIES.SUSPECTING_INFO;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateSuspectInfoControls();
         }
     }
     catch (Exception ex)
     {
         string errMessage = ex.Message;
         if (ex.InnerException != null)
         {
             errMessage += string.Format("\n{0}", ex.InnerException.Message);
         }
         MessageBox.Show(errMessage, "ctrlSuspectInfo::btnAddSuspectCategory_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }