//view all outgoing parcels(each route, delivery)

        public void ViewOutGoingParcel()
        {
            branchId = staff.BranchId;
            list = RouteController.GetRoutesForBranch(branchId);

            if (comboBox3.SelectedIndex == 0)
            {
                DataTable dt = ParcelController.GetAllOutgoingParcels(branchId, null);
                DataTable dt1 = new DataTable();

                dt1 = dt.DefaultView.ToTable(
                    true, "tracking_number", "plate_number", "pieces", "weight", "date_created", "sender_name",
                    "sender_phone", "receiver_name", "receiver_phone", "receiver_address",
                    "receiver_location", "receiver_postcode");
                dataGridView1.DataSource = dt1;

                dataGridView1.Columns["plate_number"].DisplayIndex = 2;
                
                endTripBtn.Enabled = true;
            }
            else
            {
                endTripBtn.Enabled = false;
            }
            
            int j = 1;
            for (int i = 0; i < list.Count; i++)
            {
                
                if (comboBox3.SelectedIndex == j)
                {
                    DataTable dt = ParcelController.GetAllOutgoingParcels(branchId, list[i].Id);
                    DataTable dt1 = new DataTable();

                    dt1 = dt.DefaultView.ToTable(
                        true, "tracking_number", "plate_number", "pieces", "weight", "date_created", "sender_name",
                        "sender_phone", "receiver_name", "receiver_phone", "receiver_address",
                        "receiver_location", "receiver_postcode");

                    dataGridView1.DataSource = dt1;
                    
                    dataGridView1.Columns["plate_number"].DisplayIndex = 2;
                }
                j++;
            }
        }