Exemple #1
0
        private void ResetControls()
        {
            int intCounter;
            int intNumberOfRecords;

            try
            {
                TheEmployeeDateEntryClass.InsertIntoEmployeeDateEntry(MainWindow.TheVerifyLogonDataSet.VerifyLogon[0].EmployeeID, "New Blue Jay ERP // Sorted Work Task Report");

                cboSelectBusinessLine.Items.Clear();
                cboSelectBusinessLine.Items.Add("Select Business Line");

                TheFindSortedCustomerLinesDataSEt = TheDepartmentClass.FindSortedCustomerLines();

                intNumberOfRecords = TheFindSortedCustomerLinesDataSEt.FindSortedCustomerLines.Rows.Count;

                for (intCounter = 0; intCounter < intNumberOfRecords; intCounter++)
                {
                    cboSelectBusinessLine.Items.Add(TheFindSortedCustomerLinesDataSEt.FindSortedCustomerLines[intCounter].Department);
                }

                cboSelectBusinessLine.SelectedIndex = 0;

                TheFindWorkTaskByDepartmentDataSet = TheWorkTaskClass.FindWorkTaskByDepartment(-1);

                dgrWorkTasks.ItemsSource = TheDepartmentWorkTaskDataSet.worktask;
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "New Blue Jay ERP // Sorted Work Task Report // Reset Controls " + Ex.Message);

                TheMessagesClass.ErrorMessage(Ex.ToString());
            }
        }
Exemple #2
0
        private void ResetControls()
        {
            int intCounter;
            int intNumberOfRecords;

            try
            {
                TheFindSortedCustomerLinesDataSet = TheDepartmentClass.FindSortedCustomerLines();

                cboSelectDepartment.Items.Clear();
                cboSelectDepartment.Items.Add("Select Customer");

                intNumberOfRecords = TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines.Rows.Count;

                for (intCounter = 0; intCounter < intNumberOfRecords; intCounter++)
                {
                    cboSelectDepartment.Items.Add(TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines[intCounter].Department);
                }

                cboSelectDepartment.SelectedIndex = 0;
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "New Blue Jay ERP // Department Project Open List // Reset Controls " + Ex.Message);

                TheMessageClass.ErrorMessage(Ex.ToString());
            }
        }
Exemple #3
0
        private void ResetControls()
        {
            //setting up the variabvles
            int intCounter;
            int intNumberOfRecords;

            txtAssignedProjectID.Text = "";
            txtCustomerProjectID.Text = "";
            ClearRadioButtons();
            ClearDateEntryControls();
            SetControlsReadOnly(false);
            gblnDoNotRun = false;

            //loading up the combo boxes
            cboSelectManager.Items.Clear();

            TheFindProductionManagersDataSet = TheEmployeeClass.FindProductionManagers();
            cboSelectManager.Items.Add("Select Manager");
            intNumberOfRecords = TheFindProductionManagersDataSet.FindProductionManagers.Rows.Count - 1;

            for (intCounter = 0; intCounter <= intNumberOfRecords; intCounter++)
            {
                cboSelectManager.Items.Add(TheFindProductionManagersDataSet.FindProductionManagers[intCounter].FullName);
            }

            cboSelectManager.SelectedIndex = 0;

            cboSelectDepartment.Items.Clear();
            cboSelectDepartment.Items.Add("Select Department");

            TheFindSortedCustomerLinesDataSet = TheDepartmentClass.FindSortedCustomerLines();

            intNumberOfRecords = TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines.Rows.Count - 1;

            for (intCounter = 0; intCounter <= intNumberOfRecords; intCounter++)
            {
                cboSelectDepartment.Items.Add(TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines[intCounter].Department);
            }

            cboSelectDepartment.SelectedIndex = 0;

            cboSelectOffice.Items.Clear();
            cboSelectOffice.Items.Add("Select Office");

            TheFindWarehousesDataSet = TheEmployeeClass.FindWarehouses();
            intNumberOfRecords       = TheFindWarehousesDataSet.FindWarehouses.Rows.Count - 1;

            for (intCounter = 0; intCounter <= intNumberOfRecords; intCounter++)
            {
                cboSelectOffice.Items.Add(TheFindWarehousesDataSet.FindWarehouses[intCounter].FirstName);
            }

            cboSelectOffice.SelectedIndex   = 0;
            expAddEditProjectInfo.IsEnabled = false;
        }
Exemple #4
0
        private void ResetControls()
        {
            //setting local variables
            int  intCounter;
            int  intNumberOfRecords;
            bool blnFatalError = false;

            try
            {
                txtEnterTask.Text = "";
                cboSelectTask.Items.Clear();
                cboSelectTask.Items.Add("Select Task");
                cboSelectTask.SelectedIndex = 0;

                TheFindSortedCustomerLinesDataSet = TheDepartmentClass.FindSortedCustomerLines();

                intNumberOfRecords = TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines.Rows.Count;
                cboSelectBusinessLine.Items.Clear();
                cboSelectBusinessLine.Items.Add("Select Business Line");

                for (intCounter = 0; intCounter < intNumberOfRecords; intCounter++)
                {
                    cboSelectBusinessLine.Items.Add(TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines[intCounter].Department);
                }

                cboSelectBusinessLine.Items.Add("All");
                cboSelectBusinessLine.SelectedIndex = 0;

                cboSelectDepartment.Items.Clear();
                cboSelectDepartment.Items.Add("Select Department");

                TheFindSortedProductionTypesDataSet = TheDepartmentClass.FindSortedProductionTypes();

                intNumberOfRecords = TheFindSortedProductionTypesDataSet.FindSortedProductionTypes.Rows.Count;

                for (intCounter = 0; intCounter < intNumberOfRecords; intCounter++)
                {
                    cboSelectDepartment.Items.Add(TheFindSortedProductionTypesDataSet.FindSortedProductionTypes[intCounter].Department);
                }

                cboSelectDepartment.Items.Add("All");
                cboSelectDepartment.SelectedIndex = 0;

                blnFatalError = TheEmployeeDateEntryClass.InsertIntoEmployeeDateEntry(MainWindow.TheVerifyLogonDataSet.VerifyLogon[0].EmployeeID, "New Blue Jay ERP // Add Productivity Work Task ");
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "New Blue Jay ERP // Add Productivity Work Task // Reset Controls " + Ex.Message);

                TheSendEmailClass.SendEventLog("New Blue Jay ERP // Add Productivity Work Task // Reset Controls " + Ex.ToString());

                TheMessagesClass.ErrorMessage(Ex.ToString());
            }
        }
        private void ResetControls()
        {
            //setting up local variables
            bool blnFatalError = false;
            int  intCounter;
            int  intNumberOfRecords;

            try
            {
                txtEnterWorkTask.Text = "";

                cboSelectDepartment.Items.Clear();
                cboSelectDepartment.Items.Add("Select Department");
                cboSelectDepartment.Items.Add("Aerial");
                cboSelectDepartment.Items.Add("Underground");
                cboSelectDepartment.Items.Add("Both");
                cboSelectDepartment.SelectedIndex = 0;

                //loading up the business line combo box
                cboSelectBusinesLine.Items.Clear();
                cboSelectBusinesLine.Items.Add("Select Business Line");

                //loading up the data
                TheFindSortedCustomerLinesDataSet = TheDepartmentClass.FindSortedCustomerLines();

                intNumberOfRecords = TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines.Rows.Count;

                for (intCounter = 0; intCounter < intNumberOfRecords; intCounter++)
                {
                    cboSelectBusinesLine.Items.Add(TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines[intCounter].Department);
                }

                cboSelectBusinesLine.SelectedIndex = 0;

                blnFatalError = TheEmployeeDateEntryClass.InsertIntoEmployeeDateEntry(MainWindow.TheVerifyLogonDataSet.VerifyLogon[0].EmployeeID, "New Blue Jay ERP // Add Work Task");

                if (blnFatalError == true)
                {
                    throw new Exception();
                }
            }
            catch (Exception Ex)
            {
                TheSendEmailClass.SendEventLog("New Blue Jay ERP // Add Work Task // Reset Controls " + Ex.Message);

                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "New Blue Jay ERP // Add Work Task // Reset Controls " + Ex.Message);

                TheMessagesClass.ErrorMessage(Ex.ToString());
            }
        }
Exemple #6
0
        private void ResetControls()
        {
            //setting up local variables
            int intCounter;
            int intNumberOfRecords;

            try
            {
                txtEnterTaskCode.Text = "";
                txtWorkTask.Text      = "";
                cboSelectTask.Items.Clear();
                cboSelectTask.Items.Add("Select Task");
                cboSelectTask.SelectedIndex = 0;

                //loading up first combo box
                cboSelectFunction.Items.Clear();
                cboSelectFunction.Items.Add("Select Function");
                cboSelectFunction.Items.Add("Aerial");
                cboSelectFunction.Items.Add("Underground");
                cboSelectFunction.Items.Add("Both");
                cboSelectFunction.SelectedIndex = 0;

                TheFindSortedCustomerLinesDataSet = TheDepartmentClass.FindSortedCustomerLines();

                cboSelectBusinessLine.Items.Clear();
                cboSelectBusinessLine.Items.Add("Select Business Line");

                intNumberOfRecords = TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines.Rows.Count;

                for (intCounter = 0; intCounter < intNumberOfRecords; intCounter++)
                {
                    cboSelectBusinessLine.Items.Add(TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines[intCounter].Department);
                }

                cboSelectBusinessLine.SelectedIndex = 0;

                TheWorkTaskAssignedDataSet.worktaskassigned.Rows.Clear();

                dgrWorkTasks.ItemsSource = TheWorkTaskAssignedDataSet.worktaskassigned;

                TheEmployeeDateEntryClass.InsertIntoEmployeeDateEntry(MainWindow.TheVerifyLogonDataSet.VerifyLogon[0].EmployeeID, "New Blue Jay ERP // Assign Work Task Business Line ");
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "New Blue Jay ERP // Assign Work Task Business Line // Reset Controls " + Ex.Message);

                TheMessagesClass.ErrorMessage(Ex.ToString());
            }
        }
Exemple #7
0
        public FindSortedCustomerLinesDataSet FindSortedCustomerLines()
        {
            try
            {
                aFindSortedCustomerLinesDataSet      = new FindSortedCustomerLinesDataSet();
                aFindSortedCustomerLinesTableAdapter = new FindSortedCustomerLinesDataSetTableAdapters.FindSortedCustomerLinesTableAdapter();
                aFindSortedCustomerLinesTableAdapter.Fill(aFindSortedCustomerLinesDataSet.FindSortedCustomerLines);
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Department Class // Find Sorted Customer Lines " + Ex.Message);
            }

            return(aFindSortedCustomerLinesDataSet);
        }
        private void ResetControls()
        {
            int intCounter;
            int intNumberOfRecords;

            try
            {
                TheFindWarehousesDataSet = TheEmployeeClass.FindWarehouses();
                cboSelectOffice.Items.Clear();
                cboSelectOffice.Items.Add("Select Office");

                intNumberOfRecords = TheFindWarehousesDataSet.FindWarehouses.Rows.Count;

                for (intCounter = 0; intCounter < intNumberOfRecords; intCounter++)
                {
                    cboSelectOffice.Items.Add(TheFindWarehousesDataSet.FindWarehouses[intCounter].FirstName);
                }

                cboSelectOffice.SelectedIndex = 0;

                cboSelectBusinessLine.Items.Clear();
                cboSelectBusinessLine.Items.Add("Select Business Line");
                TheFindSortedCustomerLinesDataSet = TheDepartmentClass.FindSortedCustomerLines();

                intNumberOfRecords = TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines.Rows.Count;

                for (intCounter = 0; intCounter < intNumberOfRecords; intCounter++)
                {
                    cboSelectBusinessLine.Items.Add(TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines[intCounter].Department);
                }

                cboSelectBusinessLine.SelectedIndex = 0;
                cboSelectBusinessLine.IsEnabled     = false;
                TheEmployeeDateEntryClass.InsertIntoEmployeeDateEntry(MainWindow.TheVerifyLogonDataSet.VerifyLogon[0].EmployeeID, "New Blue Jay ERP // Office Info Dashboard");
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "New Blue Jay ERP // Office Info Dashboard // Reset Controls " + Ex.Message);

                TheMessagesClass.ErrorMessage(Ex.ToString());
            }
        }
        private void ResetControls()
        {
            int intCounter;
            int intNumberOfRecords;

            try
            {
                cboSelectBusinessLine.Items.Clear();
                cboSelectBusinessLine.Items.Add("Select Business Line");

                TheFindSortedCustomerLinesDataSet = TheDepartmentClass.FindSortedCustomerLines();

                intNumberOfRecords = TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines.Rows.Count;

                for (intCounter = 0; intCounter < intNumberOfRecords; intCounter++)
                {
                    cboSelectBusinessLine.Items.Add(TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines[intCounter].Department);
                }

                cboSelectBusinessLine.SelectedIndex = 0;

                cboSelectDepartment.Items.Clear();
                cboSelectDepartment.Items.Add("Select Department");
                cboSelectDepartment.Items.Add("Aerial");
                cboSelectDepartment.Items.Add("Underground");

                cboSelectDepartment.SelectedIndex = 0;

                TheProductionTasksForSheetsDataSet.productiontasks.Rows.Clear();

                dgrProductionCodes.ItemsSource = TheProductionTasksForSheetsDataSet.productiontasks;
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "New Blue Jay ERP // Create Production Sheet // Reset Controls " + Ex.Message);

                TheMessagesClass.ErrorMessage(Ex.ToString());
            }
        }
Exemple #10
0
        private void ResetControls()
        {
            //setting up the variabvles
            int intCounter;
            int intNumberOfRecords;
            int intSelectedIndex = 0;

            txtAssignedProjectID.Text = "";
            txtCustomerProjectID.Text = "";
            ClearDateEntryControls();
            SetControlsReadOnly(false);
            expProecess.IsEnabled = true;

            //loading up the combo boxes
            cboSelectManager.Items.Clear();

            TheFindProductionManagersDataSet = TheEmployeeClass.FindProductionManagers();
            cboSelectManager.Items.Add("Select Manager");
            intNumberOfRecords = TheFindProductionManagersDataSet.FindProductionManagers.Rows.Count - 1;

            for (intCounter = 0; intCounter <= intNumberOfRecords; intCounter++)
            {
                cboSelectManager.Items.Add(TheFindProductionManagersDataSet.FindProductionManagers[intCounter].FullName);
            }

            cboSelectManager.SelectedIndex = 0;

            cboSelectDepartment.Items.Clear();
            cboSelectDepartment.Items.Add("Select Department");

            TheFindSortedCustomerLinesDataSet = TheDepartmentClass.FindSortedCustomerLines();

            intNumberOfRecords = TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines.Rows.Count - 1;

            for (intCounter = 0; intCounter <= intNumberOfRecords; intCounter++)
            {
                cboSelectDepartment.Items.Add(TheFindSortedCustomerLinesDataSet.FindSortedCustomerLines[intCounter].Department);
            }

            cboSelectDepartment.SelectedIndex = 0;

            cboSelectOffice.Items.Clear();
            cboSelectOffice.Items.Add("Select Office");

            TheFindWarehousesDataSet = TheEmployeeClass.FindWarehouses();
            intNumberOfRecords       = TheFindWarehousesDataSet.FindWarehouses.Rows.Count - 1;

            for (intCounter = 0; intCounter <= intNumberOfRecords; intCounter++)
            {
                cboSelectOffice.Items.Add(TheFindWarehousesDataSet.FindWarehouses[intCounter].FirstName);
            }

            cboSelectOffice.SelectedIndex = 0;

            cboSelectStatus.Items.Clear();
            cboSelectStatus.Items.Add("Select Status");

            TheFindWorkOrderStatusSortedDataSet = TheWorkOrderClass.FindWorkOrderStatusSorted();

            cboSelectStatus.IsEnabled = true;

            intNumberOfRecords = TheFindWorkOrderStatusSortedDataSet.FindWorkOrderStatusSorted.Rows.Count - 1;

            for (intCounter = 0; intCounter <= intNumberOfRecords; intCounter++)
            {
                cboSelectStatus.Items.Add(TheFindWorkOrderStatusSortedDataSet.FindWorkOrderStatusSorted[intCounter].WorkOrderStatus);

                if (TheFindWorkOrderStatusSortedDataSet.FindWorkOrderStatusSorted[intCounter].WorkOrderStatus == "OPEN")
                {
                    intSelectedIndex = intCounter + 1;
                }
            }

            cboSelectStatus.SelectedIndex = intSelectedIndex;

            cboSelectStatus.IsEnabled = false;

            rdoOverNo.Visibility  = Visibility.Hidden;
            rdoOverYes.Visibility = Visibility.Hidden;
        }