Booking.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. public:
  55. enum { IDD = IDD_DLGBooking };
  56. CListBox m_listbox1;
  57. CNumEdit m_numedit4;
  58. CNumEdit m_numedit3;
  59. CDateEdit m_datectrl2;
  60. CDateEdit m_datectrl1;
  61. CDateEdit m_datectrl3;
  62. CNumEdit m_edit2;
  63. CNumEdit m_edit1;
  64. CComboBox m_comboarea;
  65. CComboBox m_combobm;
  66. CComboBox m_combotype;
  67. CComboBox m_comborenyuan;
  68. CComboBox m_comboid;
  69. CEditListCtrl m_List3;
  70. CEditListCtrl m_List1;
  71. CStatic m_static1;
  72. CComboBox m_combotaoxiname;
  73. CString m_taoxijiage;
  74. CString taoxiname;
  75. CString m_zs;
  76. CString m_discount;
  77. CString m_money1;
  78. CString m_money2;
  79. CString m_money3;
  80. CString m_name1;
  81. CString m_name2;
  82. CString m_payed1;
  83. CString m_payed2;
  84. CString m_payed3;
  85. CString m_payed4;
  86. CString m_payed5;
  87. CString m_time1;
  88. CString m_time2;
  89. CString m_time3;
  90. CString m_bz;
  91. CString m_clothescount;
  92. CString m_clothescount2;
  93. CString m_outside;
  94. CString m_outside2;
  95. CString m_style;
  96. CString m_waiter6;
  97. public:
  98. void SaveCard2Data();
  99. void CalculateCost2();
  100. void CalculateCost();
  101. void SetSPName2();
  102. void ClearCtrl();
  103. void SetSPName3();
  104. void SetSPName1();
  105. CString GetSPNameFromId(CString id);
  106. float GetSPPriceFromId(CString id);
  107. float GetSPPriceFromId3(CString id);
  108. CString GetSPPriceFromId2(CString id);
  109. void GetData();
  110. void FillGrid();
  111. public:
  112. virtual void OnInitialUpdate();
  113. virtual BOOL PreTranslateMessage(MSG* pMsg);
  114. protected:
  115. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  116. protected:
  117. virtual ~Booking();
  118. #ifdef _DEBUG
  119. virtual void AssertValid() const;
  120. virtual void Dump(CDumpContext& dc) const;
  121. #endif
  122. afx_msg void OnBUTsave();
  123. afx_msg void OnBUTclose();
  124. afx_msg void OnSelchangeCOMBOtaoxiname();
  125. afx_msg void OnBUTspbox();
  126. afx_msg void OnTimer(UINT nIDEvent);
  127. afx_msg void OnChangeEDITtaoxijiage();
  128. afx_msg void OnChangeEDITdiscount();
  129. afx_msg void OnChangeEDITpayed1();
  130. afx_msg void OnDropdownCOMBObm();
  131. afx_msg void OnDropdownCOMBOrenyuan();
  132. afx_msg void OnSelchangeCOMBObm();
  133. afx_msg void OnDropdownCOMBOid();
  134. afx_msg void OnSelchangeCOMBOid();
  135. afx_msg void OnBUTWaiter();
  136. afx_msg void OnButton1();
  137. afx_msg void OnBUTprint();
  138. afx_msg void OnBUTstyle();
  139. afx_msg void OnBUTdel();
  140. afx_msg void OnBUTdelall();
  141. afx_msg void OnBUTspbox2();
  142. afx_msg void OnBUTdel3();
  143. afx_msg void OnBUTdelall2();
  144. afx_msg void OnBUTaddjd();
  145. afx_msg void OnBUTdeljd();
  146. afx_msg void OnBUTinfo1(); // ¿ÍÈË×ÊÁÏ
  147. afx_msg void OnBUTinfo2();
  148. afx_msg void OnBUTinfo3();
  149. DECLARE_MESSAGE_MAP()
  150. };
  151. #endif