Booking.h 3.8 KB

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