Schedule / Roster - Vehicle Rental / Fleet Control Example

Tuesday, September 27, 2011

1. Introduction

2. Toolbar buttons

1. Introduction:

The vehicle rental/fleet control example demonstrates how to use ActiveGantt for a variety of applications that involve scheduling. The schedule itself depicts an imaginary car rental company with a limited amount of data (that can be expanded and limited only to the database's capacity) and this example can be used as the basis for creating schedules or rosters for almost any application. This example, the complete source code and database tables are provided free of charge with the demo for the ActiveGantt component in a variety of programming languages.

The schedule receives and updates it's data to and from the following tables: tb_CR_Rows, tb_CR_Rentals, tb_CR_Car_Types, tb_CR_ACRISS_Codes, tb_CR_Taxes_Surcharges_Options and tb_CR_US_States in the ActiveGanttExamples.mdb Microsoft Access 2003 database. Some additional tables in the database are also used to provide example user input.

Every row in the schedule can have multiple task objects (rentals). Weekends are marked with recurring time block objects that do not generate conflicts. The control is in grid mode, but nevertheless node objects are used to collapse or show cars under the responsibility or control of a branch. Nodes are also used to determine the type of image to be displayed at the lower left hand corner of a branch row (plus/minus signs).

Cars can be added and deleted along with their associated rentals (tasks). The cars can also be moved from one branch to another. The characteristics of any car or branch can also be edited and updated.

Once a task is created a screen comes up that determines the nature of the rental and calculates the approximate amount.

Three types of tasks can be created: reservation, rental and maintenance. A reservation (blue) will be created by simply clicking and dragging over an empty area. A rental (red) will be created by following the same procedure but at the same time pressing and holding the R Key (replaced by the F2 key in version 2.8.7 and above). A maintenance task requires the M Key to be pressed (replaced by the F3 key in version 2.8.7 and above).

A reservation task can also be upgraded to rental by right clicking on the task.

By moving tasks from one row to another, or changing the size of the task, pricing and conditions will be recalculated, and a comparison can established.

The above estimated price is 570.37 USD for a Focus CL Hatch.

Moving it up to a Chrysler 300 will change the estimated price to 907.18 USD.

2. Toolbar buttons:

Button Function
Pressing the print button will bring up the fPrintDialog form where you will be able to preview and print the chart. fPrintDialog, fPrintPreview and fSchedulePrintSettings include code that can be reused in your application to implement printing for the ActiveGantt component.
  The magnifier buttons enable you to zoom in and zoom out of the chart.
  Pressing on the plus green plus button will add a vehicle and pressing on the plus red button will add a branch.
      Pressing any of the buttons will allow you to navigate forward or backwards in time.
Pressing the help button will bring up this help topic.

 

All trademarks are property of their respective holders, and are only used to directly describe the products and services being provided. Their use in no way indicates any relationship or endorsement between The Source Code Store LLC and the holders of said trademarks.