protected void Page_Load(object sender, EventArgs e)
        {
            Trace.Write("wpOrdersByState Loading");
            //The following code is used for the new javascript dashboard
            if (this.Attributes["mode"] != null)
            {
                int mode = int.Parse(this.Attributes["mode"]);
                switch (mode)
                {
                case 1:
                    _displayOption = eDisplayOption.Last_30_Days;
                    break;

                case 2:
                    _displayOption = eDisplayOption.This_Week;
                    break;

                case 3:
                    _displayOption = eDisplayOption.This_Month;
                    break;

                case 4:
                    _displayOption = eDisplayOption.This_Year;
                    break;
                }
            }
            DisplayChart();
            Trace.Write("wpOrdersByState Complete");
        }
Example #2
0
        private void displayAllVehiclesInGarageWithicenseNumber()
        {
            VehicleTreatmentStatus.eStatus statusOptions = new VehicleTreatmentStatus.eStatus();
            eDisplayOption displayOption = new eDisplayOption();
            int            displayChoice, userChoice = 0;
            string         displayOptionMsg       = string.Format("how to want to filter your search");
            string         PartOfOptionsHeaderMsg = string.Format("which vehicels you want to see");
            bool           displayAll             = false;

            displayChoice = m_InputUI.MakeArrayOfStringFromEnum(displayOptionMsg, displayOption);
            if ((eDisplayOption)displayChoice == eDisplayOption.AllVehicles)
            {
                displayAll = true;
            }
            else
            {
                userChoice = m_InputUI.MakeArrayOfStringFromEnum(PartOfOptionsHeaderMsg, statusOptions);
            }

            m_OutputUI.PrintLicenseNumber(userChoice, m_Garage.AllCarsInGarage, displayAll);
        }
Example #3
0
        private void displayVehiclesInGarageLicensePlates()
        {
            ServiceDetails.eCarStatus statusOptions = new ServiceDetails.eCarStatus();
            eDisplayOption            displayOption = new eDisplayOption();
            int    displayChoice;
            int    userChoice             = 0;
            string displayOptionMsg       = string.Format("how to want to filter your search");
            string PartOfOptionsHeaderMsg = string.Format("which vehicels you want to see");
            bool   displayAll             = false;

            displayChoice = UI.GetSpecificEnumInput(displayOptionMsg, displayOption);
            if ((eDisplayOption)displayChoice == eDisplayOption.AllVehicles)
            {
                displayAll = true;
            }
            else
            {
                userChoice = UI.GetSpecificEnumInput(PartOfOptionsHeaderMsg, statusOptions);
            }

            UI.PrintLicensePlates(userChoice, m_Garage.ServiceDetailsList, displayAll);
        }