コード例 #1
0
    // General Options End

    // Dashboard Panel Start
    public void OpenSelectedJob(int choice)
    {
        Debug.Log("Job " + choice + " was selected.");
        selectedWorkOrder = jobs[choice - 1].workOrderParent;

        WorkOrder_Panel.SetActive(true);

        UpdateScreen();
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        WorkOrder_Panel.SetActive(false);
        Job_Panel.SetActive(false);
        CompanyOptions_Panel.SetActive(false);
        Calendar_Panel.SetActive(false);
        SwitchPanel(1);



        branches.Add("Atlanta");
        branches.Add("Miami");
        branches.Add("Chicago");
        branches.Add("Tampa");
        branches.Add("Orlando");

        Branch_Dropdown.ClearOptions();
        Branch_Dropdown.AddOptions(branches);

        jobTypes.Add("HVAC");
        jobTypes.Add("Plumbing");
        jobTypes.Add("Handyman");
        jobTypes.Add("Electrical");
        jobTypes.Add("Gutters");

        JobType_Dropdown.ClearOptions();
        JobType_Dropdown.AddOptions(jobTypes);

        times.Add("1:00 AM");
        times.Add("2:00 AM");
        times.Add("3:00 AM");
        times.Add("4:00 AM");
        times.Add("5:00 AM");
        times.Add("6:00 AM");
        times.Add("7:00 AM");
        times.Add("8:00 AM");
        times.Add("9:00 AM");
        times.Add("10:00 AM");
        times.Add("11:00 AM");
        times.Add("12:00 PM");
        times.Add("1:00 PM");
        times.Add("2:00 PM");
        times.Add("3:00 PM");
        times.Add("4:00 PM");
        times.Add("5:00 PM");
        times.Add("5:00 PM");
        times.Add("6:00 PM");
        times.Add("7:00 PM");
        times.Add("8:00 PM");
        times.Add("9:00 PM");
        times.Add("10:00 PM");
        times.Add("11:00 PM");
        times.Add("12:00 AM");

        Time_Dropdown.ClearOptions();
        Time_Dropdown.AddOptions(times);

        durations.Add("1 hour");
        durations.Add("2 hours");
        durations.Add("3 hours");
        durations.Add("4 hours");
        durations.Add("5 hours");
        durations.Add("6 hours");
        durations.Add("7 hours");
        durations.Add("8 hours");
        durations.Add("9 hours");
        durations.Add("10 hours");

        Duration_Dropdown.ClearOptions();
        Duration_Dropdown.AddOptions(durations);


        for (int d = 1; d <= 31; d++)
        {
            days.Add(d + "");
        }
        Day_Dropdown.ClearOptions();
        Day_Dropdown.AddOptions(days);

        for (int m = 1; m <= 12; m++)
        {
            months.Add(m + "");
        }
        Month_Dropdown.ClearOptions();
        Month_Dropdown.AddOptions(months);

        /*
         * for (int y = 2018; y <= 10; y++)
         * {
         *  years.Add(y + "");
         * }
         */
        years.Add("2018");
        years.Add("2019");
        years.Add("2020");
        years.Add("2021");
        years.Add("2022");
        Year_Dropdown.ClearOptions();
        Year_Dropdown.AddOptions(years);



        // Test Values
        channels.Add("CAH");
        channels.Add("IH");
        channels.Add("Altisource");
        channels.Add("Wells Wargo");

        users.Add(new User("Jonny Bravo"));
        users.Add(new User("Tony Stark"));
        users.Add(new User("Nikita Koba"));

        workOrders.Add(new WorkOrder(new Job("7705333340", "1234 Iron Man St", "30208", "FL", "Miami", "IH", "Miami", "HVAC", "5/21/2018", "2:00 PM", "2 hours", "Tony Stark")));
        workOrders.Add(new WorkOrder(new Job("7705333341", "4500 Gains St", "30509", "GA", "Atlanta", "CAH", "Atlanta", "HVAC", "5/25/2018", "2:00 PM", "6 hours", "Jonny Bravo")));



        statuses.Add("In progress");
        statuses.Add("Completed");
        statuses.Add("Canceled");

        selectedUser = users[0];

        WorkOrderStatus_Dropdown.ClearOptions();
        WorkOrderStatus_Dropdown.AddOptions(statuses);

        JobStatus_Dropdown.ClearOptions();
        JobStatus_Dropdown.AddOptions(statuses);

        UpdateScreen();
    }
コード例 #3
0
    public void CloseWO()
    {
        WorkOrder_Panel.SetActive(false);

        UpdateScreen();
    }