InfoSet.h
上传用户:czfddz
上传日期:2013-03-20
资源大小:1517k
文件大小:9k
源码类别:

酒店行业

开发平台:

C/C++

  1. #if !defined(AFX_INFOSET_H__E53BBFDD_D2A5_436A_91F9_A5659FFC24BE__INCLUDED_)
  2. #define AFX_INFOSET_H__E53BBFDD_D2A5_436A_91F9_A5659FFC24BE__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // InfoSet.h : header file
  7. //
  8. #include<afxdb.h>
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CGuestInfoSet recordset
  11. class CGuestInfoSet : public CRecordset
  12. {
  13. public:
  14. CGuestInfoSet(CDatabase* pDatabase = NULL);
  15. DECLARE_DYNAMIC(CGuestInfoSet)
  16. // Field/Param Data
  17. //{{AFX_FIELD(CGuestInfoSet, CRecordset)
  18. CString m_HandCode;
  19. CString m_Name;
  20. CString m_GuestType;
  21. CString m_Sex;
  22. CString m_Certificate;
  23. CString m_CertifyCode;
  24. // CString m_StartTime;
  25. BOOL m_IsMember;
  26. BOOL m_IsMaster;
  27. CString m_GroupID;
  28. long m_GuestNum;
  29. CString m_RoomNum;
  30. CString m_RoomCode;
  31. //}}AFX_FIELD
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CGuestInfoSet)
  35. public:
  36. virtual CString GetDefaultConnect();    // Default connection string
  37. virtual CString GetDefaultSQL();    // Default SQL for Recordset
  38. virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. #ifdef _DEBUG
  42. virtual void AssertValid() const;
  43. virtual void Dump(CDumpContext& dc) const;
  44. #endif
  45. };
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CRoomInfoSet recordset
  48. class CRoomInfoSet : public CRecordset
  49. {
  50. public:
  51. CRoomInfoSet(CDatabase* pDatabase = NULL);
  52. DECLARE_DYNAMIC(CRoomInfoSet)
  53. // Field/Param Data
  54. //{{AFX_FIELD(CRoomInfoSet, CRecordset)
  55. CString m_RoomCode;
  56. CString m_RoomType;
  57. int m_Floor;
  58. CString m_Phone;
  59. CString m_RoomStatus;
  60. BOOL m_PriceType;
  61. float m_Price;
  62. //}}AFX_FIELD
  63. // Overrides
  64. // ClassWizard generated virtual function overrides
  65. //{{AFX_VIRTUAL(CRoomInfoSet)
  66. public:
  67. virtual CString GetDefaultConnect();    // Default connection string
  68. virtual CString GetDefaultSQL();    // Default SQL for Recordset
  69. virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  70. //}}AFX_VIRTUAL
  71. // Implementation
  72. #ifdef _DEBUG
  73. virtual void AssertValid() const;
  74. virtual void Dump(CDumpContext& dc) const;
  75. #endif
  76. };
  77. class CCreateBillCode: public CObject  
  78. {
  79. public:
  80. CString GenereBillCodeForCheckOut();
  81. CString GenereBillCode();//自动产生帐单号码函数
  82. CCreateBillCode();
  83. virtual ~CCreateBillCode();
  84. };
  85. /////////////////////////////////////////////////////////////////////////////
  86. // CBillInfoSet recordset
  87. class CBillInfoSet : public CRecordset
  88. {
  89. public:
  90. CBillInfoSet(CDatabase* pDatabase = NULL);
  91. DECLARE_DYNAMIC(CBillInfoSet)
  92. // Field/Param Data
  93. //{{AFX_FIELD(CBillInfoSet, CRecordset)
  94. CString m_BillCode;
  95. CString m_HandCode;
  96. long m_Sum;
  97. long m_Paid;
  98. CString m_Rebate;
  99. BOOL m_Striked;
  100. //}}AFX_FIELD
  101. // Overrides
  102. // ClassWizard generated virtual function overrides
  103. //{{AFX_VIRTUAL(CBillInfoSet)
  104. public:
  105. virtual CString GetDefaultConnect();    // Default connection string
  106. virtual CString GetDefaultSQL();    // Default SQL for Recordset
  107. virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  108. //}}AFX_VIRTUAL
  109. // Implementation
  110. #ifdef _DEBUG
  111. virtual void AssertValid() const;
  112. virtual void Dump(CDumpContext& dc) const;
  113. #endif
  114. };
  115. /////////////////////////////////////////////////////////////////////////////
  116. // CServerInfoSet recordset
  117. class CServerInfoSet : public CRecordset
  118. {
  119. public:
  120. CServerInfoSet(CDatabase* pDatabase = NULL);
  121. DECLARE_DYNAMIC(CServerInfoSet)
  122. // Field/Param Data
  123. //{{AFX_FIELD(CServerInfoSet, CRecordset)
  124. CString m_ServerName;
  125. float m_ServerPrice;
  126. //}}AFX_FIELD
  127. // Overrides
  128. // ClassWizard generated virtual function overrides
  129. //{{AFX_VIRTUAL(CServerInfoSet)
  130. public:
  131. virtual CString GetDefaultConnect();    // Default connection string
  132. virtual CString GetDefaultSQL();    // Default SQL for Recordset
  133. virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  134. //}}AFX_VIRTUAL
  135. // Implementation
  136. #ifdef _DEBUG
  137. virtual void AssertValid() const;
  138. virtual void Dump(CDumpContext& dc) const;
  139. #endif
  140. };
  141. /////////////////////////////////////////////////////////////////////////////
  142. // CFoodInfoSet recordset
  143. class CFoodInfoSet : public CRecordset
  144. {
  145. public:
  146. CFoodInfoSet(CDatabase* pDatabase = NULL);
  147. DECLARE_DYNAMIC(CFoodInfoSet)
  148. // Field/Param Data
  149. //{{AFX_FIELD(CFoodInfoSet, CRecordset)
  150. CString m_FoodName;
  151. float m_FoodPrice;
  152. //}}AFX_FIELD
  153. // Overrides
  154. // ClassWizard generated virtual function overrides
  155. //{{AFX_VIRTUAL(CFoodInfoSet)
  156. public:
  157. virtual CString GetDefaultConnect();    // Default connection string
  158. virtual CString GetDefaultSQL();    // Default SQL for Recordset
  159. virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  160. //}}AFX_VIRTUAL
  161. // Implementation
  162. #ifdef _DEBUG
  163. virtual void AssertValid() const;
  164. virtual void Dump(CDumpContext& dc) const;
  165. #endif
  166. };
  167. /////////////////////////////////////////////////////////////////////////////
  168. // CEmployerInfoSet recordset
  169. class CEmployerInfoSet : public CRecordset
  170. {
  171. public:
  172. CEmployerInfoSet(CDatabase* pDatabase = NULL);
  173. DECLARE_DYNAMIC(CEmployerInfoSet)
  174. // Field/Param Data
  175. //{{AFX_FIELD(CEmployerInfoSet, CRecordset)
  176. CString m_EmployerCode;
  177. CString m_Name;
  178. CString m_Depart;
  179. //}}AFX_FIELD
  180. // Overrides
  181. // ClassWizard generated virtual function overrides
  182. //{{AFX_VIRTUAL(CEmployerInfoSet)
  183. public:
  184. virtual CString GetDefaultConnect();    // Default connection string
  185. virtual CString GetDefaultSQL();    // Default SQL for Recordset
  186. virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  187. //}}AFX_VIRTUAL
  188. // Implementation
  189. #ifdef _DEBUG
  190. virtual void AssertValid() const;
  191. virtual void Dump(CDumpContext& dc) const;
  192. #endif
  193. };
  194. /////////////////////////////////////////////////////////////////////////////
  195. // CBillContentInfoSet recordset
  196. class CBillContentInfoSet : public CRecordset
  197. {
  198. public:
  199. CBillContentInfoSet(CDatabase* pDatabase = NULL);
  200. DECLARE_DYNAMIC(CBillContentInfoSet)
  201. // Field/Param Data
  202. //{{AFX_FIELD(CBillContentInfoSet, CRecordset)
  203. CString m_BillCode;
  204. CString m_BillContent;
  205. //}}AFX_FIELD
  206. // Overrides
  207. // ClassWizard generated virtual function overrides
  208. //{{AFX_VIRTUAL(CBillContentInfoSet)
  209. public:
  210. virtual CString GetDefaultConnect();    // Default connection string
  211. virtual CString GetDefaultSQL();    // Default SQL for Recordset
  212. virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  213. //}}AFX_VIRTUAL
  214. // Implementation
  215. #ifdef _DEBUG
  216. virtual void AssertValid() const;
  217. virtual void Dump(CDumpContext& dc) const;
  218. #endif
  219. };
  220. /////////////////////////////////////////////////////////////////////////////
  221. // CBillCheckoutInfoSet recordset
  222. class CBillCheckoutInfoSet : public CRecordset
  223. {
  224. public:
  225. CBillCheckoutInfoSet(CDatabase* pDatabase = NULL);
  226. DECLARE_DYNAMIC(CBillCheckoutInfoSet)
  227. // Field/Param Data
  228. //{{AFX_FIELD(CBillCheckoutInfoSet, CRecordset)
  229. CString m_BillCode;//帐单号码
  230. CString m_HandCode;//手牌号码
  231. CTime m_StartTime;//开始入住时间
  232. CTime m_EndTime;  //离开时间
  233. CString m_Sum;      //应付总费用
  234. //}}AFX_FIELD
  235. // Overrides
  236. // ClassWizard generated virtual function overrides
  237. //{{AFX_VIRTUAL(CBillCheckoutInfoSet)
  238. public:
  239. virtual CString GetDefaultConnect();    // Default connection string
  240. virtual CString GetDefaultSQL();    // Default SQL for Recordset
  241. virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  242. //}}AFX_VIRTUAL
  243. // Implementation
  244. #ifdef _DEBUG
  245. virtual void AssertValid() const;
  246. virtual void Dump(CDumpContext& dc) const;
  247. #endif
  248. };
  249. /////////////////////////////////////////////////////////////////////////////
  250. // CRoomDestineSet recordset
  251. /////////////////////////////////////////////////////////////////////////////
  252. // CDestineRoomSet recordset
  253. class CDestineRoomSet : public CRecordset
  254. {
  255. public:
  256. CDestineRoomSet(CDatabase* pDatabase = NULL);
  257. DECLARE_DYNAMIC(CDestineRoomSet)
  258. // Field/Param Data
  259. //{{AFX_FIELD(CDestineRoomSet, CRecordset)
  260. CString m_BillCode;
  261. CString m_Certificate;
  262. CString m_CeritifyCode;
  263. CString m_DestinerName;
  264. CString m_DestinerSex;
  265. CString m_DestineMoney;
  266. CString m_DestineTime;
  267. CString m_DestineEndTime;
  268. CString m_DestineRoomCode;
  269. //}}AFX_FIELD
  270. // Overrides
  271. // ClassWizard generated virtual function overrides
  272. //{{AFX_VIRTUAL(CDestineRoomSet)
  273. public:
  274. virtual CString GetDefaultConnect();    // Default connection string
  275. virtual CString GetDefaultSQL();    // Default SQL for Recordset
  276. virtual void DoFieldExchange(CFieldExchange* pFX);  // RFX support
  277. //}}AFX_VIRTUAL
  278. // Implementation
  279. #ifdef _DEBUG
  280. virtual void AssertValid() const;
  281. virtual void Dump(CDumpContext& dc) const;
  282. #endif
  283. };
  284. //{{AFX_INSERT_LOCATION}}
  285. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  286. #endif // !defined(AFX_INFOSET_H__E53BBFDD_D2A5_436A_91F9_A5659FFC24BE__INCLUDED_)