Booking.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. #include "MyFormView.h"
  15. #include "BookingPage1.h"
  16. class Booking : public MyFormView
  17. {
  18. BookingPage1 m_page1;
  19. CArray<CStringArray, CStringArray>m_List1array;
  20. CArray<CStringArray, CStringArray>m_List2array;
  21. CArray<CStringArray, CStringArray>m_List3array;
  22. CArray<CStringArray, CStringArray>m_sparray;
  23. CStringArray m_renyuanarray;
  24. CString m_taoxiid;
  25. CString m_waiter1;
  26. CString m_waiter2;
  27. CString m_waiter3;
  28. CString m_waiter4;
  29. CString m_choosephotomoney;
  30. CString m_takephotomoney;
  31. int m_nFocusPos;
  32. float m_cost1;
  33. float m_cost2;
  34. CString m_memberno;
  35. CString m_memberno2;
  36. CString m_memberno2date;
  37. CString m_membernoname;
  38. CString m_membernosex;
  39. CString m_membernophone;
  40. CString m_membernojiage;
  41. int m_type;
  42. CString m_sid;
  43. CString m_phone1;
  44. CString m_phone2;
  45. /*
  46. #ifdef CHILD_VERSION
  47. enum { IDD = IDD_DLGBooking3 };
  48. #else
  49. enum { IDD = IDD_DLGBooking };
  50. #endif*/
  51. protected:
  52. Booking(); // protected constructor used by dynamic creation
  53. DECLARE_DYNCREATE(Booking)
  54. // Form Data
  55. public:
  56. //{{AFX_DATA(Booking)
  57. enum { IDD = IDD_DLGBooking };
  58. CListBox m_listbox1;
  59. CNumEdit m_numedit4;
  60. CNumEdit m_numedit3;
  61. CDateEdit m_datectrl2;
  62. CDateEdit m_datectrl1;
  63. CDateEdit m_datectrl3;
  64. CNumEdit m_edit2;
  65. CNumEdit m_edit1;
  66. CComboBox m_comboarea;
  67. CComboBox m_combobm;
  68. CComboBox m_combotype;
  69. CComboBox m_comborenyuan;
  70. CComboBox m_comboid;
  71. CEditListCtrl m_List3;
  72. CEditListCtrl m_List1;
  73. CStatic m_static1;
  74. CComboBox m_combotaoxiname;
  75. CString m_taoxijiage;
  76. CString taoxiname;
  77. CString m_zs;
  78. CString m_discount;
  79. CString m_money1;
  80. CString m_money2;
  81. CString m_money3;
  82. CString m_name1;
  83. CString m_name2;
  84. CString m_payed1;
  85. CString m_payed2;
  86. CString m_payed3;
  87. CString m_payed4;
  88. CString m_payed5;
  89. CString m_time1;
  90. CString m_time2;
  91. CString m_time3;
  92. CString m_bz;
  93. CString m_clothescount;
  94. CString m_clothescount2;
  95. CString m_outside;
  96. CString m_outside2;
  97. CString m_style;
  98. CString m_waiter6;
  99. //}}AFX_DATA
  100. // Attributes
  101. public:
  102. // Operations
  103. public:
  104. void SaveCard2Data();
  105. void CalculateCost2();
  106. void CalculateCost();
  107. void SetSPName2();
  108. void ClearCtrl();
  109. void SetSPName3();
  110. void SetSPName1();
  111. CString GetSPNameFromId(CString id);
  112. float GetSPPriceFromId(CString id);
  113. float GetSPPriceFromId3(CString id);
  114. CString GetSPPriceFromId2(CString id);
  115. void GetData();
  116. void FillGrid();
  117. // Overrides
  118. // ClassWizard generated virtual function overrides
  119. //{{AFX_VIRTUAL(Booking)
  120. public:
  121. virtual void OnInitialUpdate();
  122. virtual BOOL PreTranslateMessage(MSG* pMsg);
  123. protected:
  124. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  125. //}}AFX_VIRTUAL
  126. // Implementation
  127. protected:
  128. virtual ~Booking();
  129. #ifdef _DEBUG
  130. virtual void AssertValid() const;
  131. virtual void Dump(CDumpContext& dc) const;
  132. #endif
  133. // Generated message map functions
  134. //{{AFX_MSG(Booking)
  135. afx_msg void OnBUTsave();
  136. afx_msg void OnBUTclose();
  137. afx_msg void OnSelchangeCOMBOtaoxiname();
  138. afx_msg void OnBUTspbox();
  139. afx_msg void OnTimer(UINT nIDEvent);
  140. afx_msg void OnChangeEDITtaoxijiage();
  141. afx_msg void OnChangeEDITdiscount();
  142. afx_msg void OnChangeEDITpayed1();
  143. afx_msg void OnDropdownCOMBObm();
  144. afx_msg void OnDropdownCOMBOrenyuan();
  145. afx_msg void OnSelchangeCOMBObm();
  146. afx_msg void OnDropdownCOMBOid();
  147. afx_msg void OnSelchangeCOMBOid();
  148. afx_msg void OnBUTWaiter();
  149. afx_msg void OnButton1();
  150. afx_msg void OnBUTprint();
  151. afx_msg void OnBUTstyle();
  152. afx_msg void OnBUTdel();
  153. afx_msg void OnBUTdelall();
  154. afx_msg void OnBUTspbox2();
  155. afx_msg void OnBUTdel3();
  156. afx_msg void OnBUTdelall2();
  157. afx_msg void OnBUTaddjd();
  158. afx_msg void OnBUTdeljd();
  159. afx_msg void OnBUTinfo1();
  160. afx_msg void OnBUTinfo2();
  161. afx_msg void OnBUTinfo3();
  162. //}}AFX_MSG
  163. DECLARE_MESSAGE_MAP()
  164. };
  165. /////////////////////////////////////////////////////////////////////////////
  166. //{{AFX_INSERT_LOCATION}}
  167. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  168. #endif // !defined(AFX_Booking_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)