Garmin Fleet Management Controller  2.19.0
CAobrdDriverShipmentsDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CAobrdDriverShipmentsDlg.h
5 *
6 * Copyright 2012 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CAobrdDriverShipmentsDlg_H
11 #define CAobrdDriverShipmentsDlg_H
12 
14 
15 #include "FmiApplicationLayer.h"
16 #include "AobrdDriverItem.h"
17 
18 //----------------------------------------------------------------------
23 //----------------------------------------------------------------------
24 class CAobrdDriverShipmentsDlg : public CDialog
25 {
26  DECLARE_DYNAMIC(CAobrdDriverShipmentsDlg)
27  DECLARE_MESSAGE_MAP()
28 
29 public:
30  static BOOL ShowShipments( CWnd * aParent, AobrdDriverItem * driver );
31 
32  virtual ~CAobrdDriverShipmentsDlg();
33 
34 protected:
35 
37  CWnd * aParent,
38  AobrdDriverItem * aDriver
39  );
40 
41  virtual void DoDataExchange(
42  CDataExchange * pDX
43  );
44 
45  BOOL OnInitDialog();
46  void clearData();
47  void updateListBox();
48  void PostNcDestroy();
49  afx_msg void OnBnClickedNew();
50  afx_msg void OnBnClickedDelete();
51  afx_msg void OnBnClickedSet();
52  afx_msg void OnChangeShipmentData();
53  afx_msg void OnBnClickedOk();
54  afx_msg void OnCancel();
55  afx_msg void OnEnSetfocusLoginEdit();
56  afx_msg void OnEnKillfocusLoginEdit();
57  afx_msg void OnDateTimeCtrlSetFocus( NMHDR * pNotifyStruct, LRESULT * result );
58  afx_msg void OnDateTimeCtrlKillFocus( NMHDR * pNotifyStruct, LRESULT * result );
59  afx_msg void OnLbnSelchangeShipmentList();
60  afx_msg void OnLbnSetfocusShipmentList();
61  afx_msg void OnLbnKillfocusShipmentList();
62 
63 protected:
65  CListBox mListBox;
66 
69 
71  CString mShipperName;
72 
74  CString mDocumentNumber;
75 
77  CString mCommodity;
78 
80  COleDateTime mTimestampDate;
81 
83  COleDateTime mTimestampTime;
84 
86  COleDateTime mStartTimeDate;
87 
89  COleDateTime mStartTimeTime;
90 
92  COleDateTime mEndTimeDate;
93 
95  COleDateTime mEndTimeTime;
96 
99 };
100 
101 #endif
afx_msg void OnBnClickedSet()
Button handler for the Set button.
static BOOL ShowShipments(CWnd *aParent, AobrdDriverItem *driver)
Main entry point for showing the shipments editor.
COleDateTime mEndTimeTime
DDX member: the contents of the End Time Time control.
int mSelectedIndex
Index of the list box item currently selected.
CString mCommodity
DDX member: the contents of the Commodity edit box.
COleDateTime mStartTimeDate
DDX member: the contents of the Start Time Date control.
afx_msg void OnDateTimeCtrlKillFocus(NMHDR *pNotifyStruct, LRESULT *result)
Handles the kill focus event for date time controls.
afx_msg void OnLbnSelchangeShipmentList()
Selection Changed handler for the Shipments List box.
afx_msg void OnBnClickedNew()
Button handler for the New button.
virtual void DoDataExchange(CDataExchange *pDX)
Perform dialog data exchange and validation.
COleDateTime mEndTimeDate
DDX member: the contents of the End Time Date control.
void updateListBox()
Update the shipments list box from the list owned by the driver.
virtual ~CAobrdDriverShipmentsDlg()
Destructor.
COleDateTime mTimestampDate
DDX member: the contents of the Timestamp Date control.
BOOL OnInitDialog()
This function is called when the window is created.
COleDateTime mTimestampTime
DDX member: the contents of the Timestamp Time control.
COleDateTime mStartTimeTime
DDX member: the contents of the Start Time Time control.
afx_msg void OnEnKillfocusLoginEdit()
Handles the kill focus event for the driver ID and password edit boxes.
afx_msg void OnLbnSetfocusShipmentList()
Handles the set focus event for the driver list.
CString mDocumentNumber
DDX member: the contents of the Document Number edit box.
Data structure to holds an AOBRD driver info. Used by the FmiApplicationLayer to validate logins when...
void PostNcDestroy()
Called by MFC after the window has been destroyed; performs final termination activities.
AobrdDriverItem * mDriver
pointer to the driver whose shipments are being edited
afx_msg void OnEnSetfocusLoginEdit()
Handles the set focus event for the driver ID and password edit boxes.
afx_msg void OnBnClickedOk()
Button handler for the OK button.
CListBox mListBox
List box control containing the shipments.
CString mShipperName
DDX member: the contents of the Shipper Name edit box.
afx_msg void OnBnClickedDelete()
Button handler for the Delete button.
afx_msg void OnDateTimeCtrlSetFocus(NMHDR *pNotifyStruct, LRESULT *result)
Handles the set focus event for any date time ctrl.
CAobrdDriverShipmentsDlg(CWnd *aParent, AobrdDriverItem *aDriver)
Constructor.
afx_msg void OnCancel()
Handler for the Cancel action.
void clearData()
Clear values from the editable fields.
Dialog allowing the user to manage AOBRD driver shipments.
afx_msg void OnLbnKillfocusShipmentList()
Handles the kill focus event for the driver list.
afx_msg void OnChangeShipmentData()
Edit/Change handler for the shipment-specific data controls.