Booking.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. #if !defined(AFX_Booking_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_Booking_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Booking.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // Booking form view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. #include "EditListCtrl.h"
  14. class Booking : public CFormView
  15. {
  16. CArray<CStringArray, CStringArray>m_List1array;
  17. CArray<CStringArray, CStringArray>m_List2array;
  18. CArray<CStringArray, CStringArray>m_List3array;
  19. CArray<CStringArray, CStringArray>m_sparray;
  20. CStringArray m_renyuanarray;
  21. CString m_taoxiid;
  22. CString m_waiter1;
  23. CString m_waiter2;
  24. CString m_waiter3;
  25. CString m_waiter4;
  26. CString m_choosephotomoney;
  27. CString m_takephotomoney;
  28. int m_nFocusPos;
  29. protected:
  30. Booking(); // protected constructor used by dynamic creation
  31. DECLARE_DYNCREATE(Booking)
  32. // Form Data
  33. public:
  34. //{{AFX_DATA(Booking)
  35. #ifdef MODERN_VERSION
  36. enum { IDD = IDD_DLGBooking2 };
  37. #else
  38. enum { IDD = IDD_DLGBooking };
  39. #endif
  40. CNumEdit m_numedit3;
  41. CDateEdit m_datectrl2;
  42. CDateEdit m_datectrl1;
  43. CNumEdit m_edit2;
  44. CNumEdit m_edit1;
  45. CComboBox m_combobm;
  46. CComboBox m_comborenyuan;
  47. CComboBox m_comboid;
  48. CEditListCtrl m_List3;
  49. CEditListCtrl m_List2;
  50. CEditListCtrl m_List1;
  51. CStatic m_static1;
  52. CComboBox m_combotaoxiname;
  53. CString m_taoxijiage;
  54. CString m_zs;
  55. CString m_discount;
  56. CString m_money1;
  57. CString m_money2;
  58. CString m_money3;
  59. CString m_name1;
  60. CString m_name2;
  61. CString m_payed1;
  62. CString m_payed2;
  63. CString m_payed3;
  64. CString m_payed4;
  65. CString m_payed5;
  66. CString m_time1;
  67. CString m_time2;
  68. CString m_time3;
  69. CString m_bz;
  70. CString m_clothescount;
  71. CString m_clothescount2;
  72. CString m_outside;
  73. CString m_outside2;
  74. CString m_style;
  75. CString m_waiter6;
  76. //}}AFX_DATA
  77. // Attributes
  78. public:
  79. // Operations
  80. public:
  81. void SetSPName2();
  82. void ClearCtrl();
  83. void SetSPName3();
  84. void SetSPName1();
  85. CString GetSPNameFromId(CString id);
  86. float GetSPPriceFromId(CString id);
  87. void GetData();
  88. void FillGrid();
  89. // Overrides
  90. // ClassWizard generated virtual function overrides
  91. //{{AFX_VIRTUAL(Booking)
  92. public:
  93. virtual void OnInitialUpdate();
  94. virtual BOOL PreTranslateMessage(MSG* pMsg);
  95. protected:
  96. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  97. //}}AFX_VIRTUAL
  98. // Implementation
  99. protected:
  100. virtual ~Booking();
  101. #ifdef _DEBUG
  102. virtual void AssertValid() const;
  103. virtual void Dump(CDumpContext& dc) const;
  104. #endif
  105. // Generated message map functions
  106. //{{AFX_MSG(Booking)
  107. afx_msg void OnBUTsave();
  108. afx_msg void OnBUTclose();
  109. afx_msg void OnSelchangeCOMBOtaoxiname();
  110. afx_msg void OnBUTspbox();
  111. afx_msg void OnTimer(UINT nIDEvent);
  112. afx_msg void OnChangeEDITtaoxijiage();
  113. afx_msg void OnChangeEDITdiscount();
  114. afx_msg void OnChangeEDITpayed1();
  115. afx_msg void OnDropdownCOMBObm();
  116. afx_msg void OnDropdownCOMBOrenyuan();
  117. afx_msg void OnSelchangeCOMBObm();
  118. afx_msg void OnDropdownCOMBOid();
  119. afx_msg void OnSelchangeCOMBOid();
  120. afx_msg void OnBUTclient();
  121. afx_msg void OnBUTWaiter();
  122. afx_msg void OnButton1();
  123. afx_msg void OnBUTprint();
  124. afx_msg void OnBUTstyle();
  125. afx_msg void OnBUTdel();
  126. afx_msg void OnBUTdelall();
  127. afx_msg void OnBUTspbox2();
  128. afx_msg void OnBUTdel3();
  129. afx_msg void OnBUTdelall2();
  130. //}}AFX_MSG
  131. DECLARE_MESSAGE_MAP()
  132. };
  133. /////////////////////////////////////////////////////////////////////////////
  134. //{{AFX_INSERT_LOCATION}}
  135. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  136. #endif // !defined(AFX_Booking_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)