Garmin Fleet Management Controller
2.19.0
|
Dialog allowing the user to manage AOBRD driver shipments. More...
#include <CAobrdDriverShipmentsDlg.h>
Public Member Functions | |
virtual | ~CAobrdDriverShipmentsDlg () |
Destructor. More... | |
Static Public Member Functions | |
static BOOL | ShowShipments (CWnd *aParent, AobrdDriverItem *driver) |
Main entry point for showing the shipments editor. More... | |
Protected Member Functions | |
CAobrdDriverShipmentsDlg (CWnd *aParent, AobrdDriverItem *aDriver) | |
Constructor. More... | |
void | clearData () |
Clear values from the editable fields. More... | |
virtual void | DoDataExchange (CDataExchange *pDX) |
Perform dialog data exchange and validation. More... | |
afx_msg void | OnBnClickedDelete () |
Button handler for the Delete button. More... | |
afx_msg void | OnBnClickedNew () |
Button handler for the New button. More... | |
afx_msg void | OnBnClickedOk () |
Button handler for the OK button. More... | |
afx_msg void | OnBnClickedSet () |
Button handler for the Set button. More... | |
afx_msg void | OnCancel () |
Handler for the Cancel action. More... | |
afx_msg void | OnChangeShipmentData () |
Edit/Change handler for the shipment-specific data controls. More... | |
afx_msg void | OnDateTimeCtrlKillFocus (NMHDR *pNotifyStruct, LRESULT *result) |
Handles the kill focus event for date time controls. More... | |
afx_msg void | OnDateTimeCtrlSetFocus (NMHDR *pNotifyStruct, LRESULT *result) |
Handles the set focus event for any date time ctrl. More... | |
afx_msg void | OnEnKillfocusLoginEdit () |
Handles the kill focus event for the driver ID and password edit boxes. More... | |
afx_msg void | OnEnSetfocusLoginEdit () |
Handles the set focus event for the driver ID and password edit boxes. More... | |
BOOL | OnInitDialog () |
This function is called when the window is created. More... | |
afx_msg void | OnLbnKillfocusShipmentList () |
Handles the kill focus event for the driver list. More... | |
afx_msg void | OnLbnSelchangeShipmentList () |
Selection Changed handler for the Shipments List box. More... | |
afx_msg void | OnLbnSetfocusShipmentList () |
Handles the set focus event for the driver list. More... | |
void | PostNcDestroy () |
Called by MFC after the window has been destroyed; performs final termination activities. More... | |
void | updateListBox () |
Update the shipments list box from the list owned by the driver. More... | |
Protected Attributes | |
CString | mCommodity |
DDX member: the contents of the Commodity edit box. More... | |
CString | mDocumentNumber |
DDX member: the contents of the Document Number edit box. More... | |
AobrdDriverItem * | mDriver |
pointer to the driver whose shipments are being edited More... | |
COleDateTime | mEndTimeDate |
DDX member: the contents of the End Time Date control. More... | |
COleDateTime | mEndTimeTime |
DDX member: the contents of the End Time Time control. More... | |
CListBox | mListBox |
List box control containing the shipments. More... | |
int | mSelectedIndex |
Index of the list box item currently selected. More... | |
CString | mShipperName |
DDX member: the contents of the Shipper Name edit box. More... | |
COleDateTime | mStartTimeDate |
DDX member: the contents of the Start Time Date control. More... | |
COleDateTime | mStartTimeTime |
DDX member: the contents of the Start Time Time control. More... | |
COleDateTime | mTimestampDate |
DDX member: the contents of the Timestamp Date control. More... | |
COleDateTime | mTimestampTime |
DDX member: the contents of the Timestamp Time control. More... | |
Dialog allowing the user to manage AOBRD driver shipments.
This dialog allows the user to set up a database of driver shipments that are downloaded to device during driver login.
Definition at line 24 of file CAobrdDriverShipmentsDlg.h.
|
virtual |
Destructor.
Definition at line 97 of file CAobrdDriverShipmentsDlg.cpp.
References DoDataExchange().
|
protected |
Constructor.
aParent | The parent window. |
aDriver | Reference to the driver being edited |
Definition at line 75 of file CAobrdDriverShipmentsDlg.cpp.
Referenced by ShowShipments().
|
protected |
Clear values from the editable fields.
Definition at line 155 of file CAobrdDriverShipmentsDlg.cpp.
|
protectedvirtual |
Perform dialog data exchange and validation.
aDataExchange | The DDX context |
Definition at line 106 of file CAobrdDriverShipmentsDlg.cpp.
References IDC_DRIVER_SHIPMENTS_EDIT_COMMODITY, IDC_DRIVER_SHIPMENTS_EDIT_DOC_NUM, IDC_DRIVER_SHIPMENTS_EDIT_SHIPPER, IDC_DRIVER_SHIPMENTS_END_TIME_DATE, IDC_DRIVER_SHIPMENTS_END_TIME_TIME, IDC_DRIVER_SHIPMENTS_LST_SHIPMENTS, IDC_DRIVER_SHIPMENTS_START_TIME_DATE, IDC_DRIVER_SHIPMENTS_START_TIME_TIME, IDC_DRIVER_SHIPMENTS_TIMESTAMP_DATE, and IDC_DRIVER_SHIPMENTS_TIMESTAMP_TIME.
Referenced by ~CAobrdDriverShipmentsDlg().
|
protected |
Button handler for the Delete button.
Remove the selected driver from the allowed logins.
Definition at line 229 of file CAobrdDriverShipmentsDlg.cpp.
References FALSE, IDC_DRIVER_SHIPMENTS_BTN_DELETE, IDC_DRIVER_SHIPMENTS_BTN_NEW, IDC_DRIVER_SHIPMENTS_BTN_SET, and TRUE.
|
protected |
Button handler for the New button.
Clears the edit controls and list box selection in order to allow a new item to be created
Definition at line 208 of file CAobrdDriverShipmentsDlg.cpp.
References FALSE, IDC_DRIVER_SHIPMENTS_BTN_DELETE, IDC_DRIVER_SHIPMENTS_BTN_NEW, IDC_DRIVER_SHIPMENTS_BTN_SET, and TRUE.
|
protected |
Button handler for the OK button.
Closes the window.
Definition at line 402 of file CAobrdDriverShipmentsDlg.cpp.
|
protected |
Button handler for the Set button.
Saves the new shipment info
Definition at line 297 of file CAobrdDriverShipmentsDlg.cpp.
References convertToTimeType(), FALSE, AobrdShipment::setCommodity(), AobrdShipment::setDocNumber(), AobrdShipment::setServerEndTime(), AobrdShipment::setServerStartTime(), AobrdShipment::setServerTimestamp(), AobrdShipment::setShipperName(), and TRUE.
|
protected |
Handler for the Cancel action.
Closes the window.
Definition at line 411 of file CAobrdDriverShipmentsDlg.cpp.
|
protected |
Edit/Change handler for the shipment-specific data controls.
If any of controls are unset, disables the Set button; if all are specified, enables the Set button.
Definition at line 343 of file CAobrdDriverShipmentsDlg.cpp.
References FALSE, IDC_DRIVER_SHIPMENTS_BTN_SET, and TRUE.
|
protected |
Handles the kill focus event for date time controls.
Sets the default control to the OK button so that it is activated if the user presses the Enter key.
Definition at line 462 of file CAobrdDriverShipmentsDlg.cpp.
|
protected |
Handles the set focus event for any date time ctrl.
Sets the default control to the Set button so that it is activated if the user presses the Enter key.
Definition at line 441 of file CAobrdDriverShipmentsDlg.cpp.
References IDC_DRIVER_SHIPMENTS_BTN_SET.
|
protected |
Handles the kill focus event for the driver ID and password edit boxes.
Sets the default control to the OK button so that it is activated if the user presses the Enter key.
Definition at line 452 of file CAobrdDriverShipmentsDlg.cpp.
|
protected |
Handles the set focus event for the driver ID and password edit boxes.
Sets the default control to the Set button so that it is activated if the user presses the Enter key.
Definition at line 431 of file CAobrdDriverShipmentsDlg.cpp.
References IDC_DRIVER_SHIPMENTS_BTN_SET.
|
protected |
This function is called when the window is created.
This function is called when the window is created. It initializes the shipments list, and sets the initial position of the window.
Definition at line 130 of file CAobrdDriverShipmentsDlg.cpp.
References FALSE, IDC_DRIVER_SHIPMENTS_BTN_DELETE, IDC_DRIVER_SHIPMENTS_BTN_NEW, IDC_DRIVER_SHIPMENTS_EDIT_COMMODITY, IDC_DRIVER_SHIPMENTS_EDIT_DOC_NUM, IDC_DRIVER_SHIPMENTS_EDIT_SHIPPER, and TRUE.
|
protected |
Handles the kill focus event for the driver list.
Sets the default control to the OK button so that it is activated if the user presses the Enter key.
Definition at line 482 of file CAobrdDriverShipmentsDlg.cpp.
|
protected |
Selection Changed handler for the Shipments List box.
Fills in the fields of the dialog with the information from the selected list item, for easy editing.
Definition at line 366 of file CAobrdDriverShipmentsDlg.cpp.
References convertFromTimeType(), FALSE, AobrdShipment::getCommodity(), AobrdShipment::getDocNumber(), AobrdShipment::getServerEndTime(), AobrdShipment::getServerStartTime(), AobrdShipment::getServerTimestamp(), AobrdShipment::getShipperName(), IDC_DRIVER_SHIPMENTS_BTN_DELETE, IDC_DRIVER_SHIPMENTS_BTN_NEW, IDC_DRIVER_SHIPMENTS_LST_SHIPMENTS, and TRUE.
|
protected |
Handles the set focus event for the driver list.
Sets the default control to the Delete button so that it is activated if the user presses the Enter key.
Definition at line 472 of file CAobrdDriverShipmentsDlg.cpp.
References IDC_DRIVER_SHIPMENTS_BTN_DELETE.
|
protected |
Called by MFC after the window has been destroyed; performs final termination activities.
Definition at line 420 of file CAobrdDriverShipmentsDlg.cpp.
|
static |
Main entry point for showing the shipments editor.
aParent | The parent window. |
aDriver | Reference to the driver being edited |
Definition at line 62 of file CAobrdDriverShipmentsDlg.cpp.
References CAobrdDriverShipmentsDlg().
Referenced by CAobrdDriversDlg::OnBnClickedShipments().
|
protected |
Update the shipments list box from the list owned by the driver.
Definition at line 172 of file CAobrdDriverShipmentsDlg.cpp.
References AobrdShipment::getCommodity(), AobrdShipment::getDocNumber(), and AobrdShipment::getShipperName().
|
protected |
DDX member: the contents of the Commodity edit box.
Definition at line 77 of file CAobrdDriverShipmentsDlg.h.
|
protected |
DDX member: the contents of the Document Number edit box.
Definition at line 74 of file CAobrdDriverShipmentsDlg.h.
|
protected |
pointer to the driver whose shipments are being edited
Definition at line 98 of file CAobrdDriverShipmentsDlg.h.
|
protected |
DDX member: the contents of the End Time Date control.
Definition at line 92 of file CAobrdDriverShipmentsDlg.h.
|
protected |
DDX member: the contents of the End Time Time control.
Definition at line 95 of file CAobrdDriverShipmentsDlg.h.
|
protected |
List box control containing the shipments.
Definition at line 65 of file CAobrdDriverShipmentsDlg.h.
|
protected |
Index of the list box item currently selected.
Definition at line 68 of file CAobrdDriverShipmentsDlg.h.
|
protected |
DDX member: the contents of the Shipper Name edit box.
Definition at line 71 of file CAobrdDriverShipmentsDlg.h.
|
protected |
DDX member: the contents of the Start Time Date control.
Definition at line 86 of file CAobrdDriverShipmentsDlg.h.
|
protected |
DDX member: the contents of the Start Time Time control.
Definition at line 89 of file CAobrdDriverShipmentsDlg.h.
|
protected |
DDX member: the contents of the Timestamp Date control.
Definition at line 80 of file CAobrdDriverShipmentsDlg.h.
|
protected |
DDX member: the contents of the Timestamp Time control.
Definition at line 83 of file CAobrdDriverShipmentsDlg.h.