/*Name: Michael Figueroa
         * Function Name: EditButton_Click
         * Purpose: Event handler for edit button click
         * Parameters: Auto-generated
         * Return Value: None
         * Local Variables: DataRowView priorBySystemRow
         * Algorithm: The DataRow in which the Edit button was clicked is retrieved, and the EditRecord form is opened using that DataRowView in the constructor
         * Version: 2.0.0.4
         * Date modified: Prior to 1/1/20 - This method will be simplified by Mike at a later date
         * Assistance Received: N/A
         */
        private void EditRecord_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                //On Edit Button click, pulls the data from that row of the datagrid, and stores it as a DataRowView object
                reportRow = (DataRowView)((Button)e.Source).DataContext;
                List <int> IDList = Helper.FillIDList(WeeklyQuery());

                // this PrioritizeBySystemPage, is being passed so it can be updated
                //priorBySystemRow is a DataRowView object containing the data from that row of PBS datagrid
                WeeklyReviewApps weeklyReviewApps = new WeeklyReviewApps(arr, reportRow, IDList);
                weeklyReviewApps.FormLabel.Text = "Weekly Review";
                weeklyReviewApps.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }
Example #2
0
        private void Submit_Click(object sender, RoutedEventArgs e)
        {
            string     sysString = SysFilter.Text.ToString();
            string     query     = WeeklyReviewApps.GetWeeklyAppsQuery(sysString, inc_pri_num_ovr_300);
            List <int> id_List   = Helper.FillIDList(query);

            try
            {
                WeeklyReviewApps editRecord = new WeeklyReviewApps(arr, sysString, Helper.FillIDList(query), inc_pri_num_ovr_300);
                editRecord.Show();
                this.Close();
            }

            catch
            {
                if (id_List.Count == 0)
                {
                    MessageBox.Show("There Are No Open Items for This System");
                }
            }
        }
Example #3
0
 //weekly review w/apps with a system chosen
 public WeeklyReviewApps(string[] user_data, string system, List <int> IDListOriginal, bool include_300_pri)
 {
     InitializeComponent();
     arr              = user_data;
     IDList           = IDListOriginal;
     sys              = system;
     include_300s     = include_300_pri;
     priorBySystemRow = WeeklyReviewApps.FillWeeklyRow(system, include_300_pri).DefaultView[0];
     firstIssue       = FillWeeklyRow(system, include_300_pri);
     SetTotalIssuesText();
     SetInitialIDTextBox();
     SelectIssueData(GetIssueID());
     FillInForm();
     BindDataGrid(GetIssueID());
     Helper.FillSystemComboBoxNoAll(SystemComboBox);
     SystemComboBox.Items.Add("Test");
     FillStatusComboBox();
     FillImpactComboBox();
     FillCategoryComboBox();
     SetMgrNotesRights();
     Updated.Visibility = Visibility.Collapsed;
 }