📄 alloc_data.c
字号:
/*
* Module: ALLOC_DATA.C
* Modified by: X.C.Zheng WeiHua
* Modified on: Date: 2004-03-01 10:34
* Copyright(c) WeiHua Tech Ltd.
*/
#include "ecrsys.h"
#ifndef WD1VER /* The version of Wd1-E */
DEPTDEF *dept;
PLUDEF *plu;
CLERKDEF *clerk;
#ifdef VER_RSNT /* Support the restaurant function */
TABLEDEF *table;
WAITERDEF *waiter;
#endif /* End VER_RSNT */
#ifdef ELEC_JRNL /* Suppport the electronic journal function */
TRANSBUFFDEF *sale_jrnl; /* Sale journal */
TRANSBUFFDEF *dc_jrnl; /* Discount journal */
TRANSBUFFDEF *rm_jrnl; /* Return Merchandise journal */
#endif /* End ELEC_JRNL */
byte Max_Dept_No;
word Max_Plu_No;
byte Max_Clerk_No;
#ifdef VER_RSNT /* Support the restaurant function */
word Max_Table_No;
word Real_Table_No; /* 真实的台的数量, 一般情况下, 它的值等于Max_Table_No */
byte Max_Waiter_No;
#endif /* End VER_RSNT */
#ifdef ELEC_JRNL /* Suppport the electronic journal function */
word Max_Sale_Jrnl_No; /* Max sale journals number */
word Max_Dc_Jrnl_No; /* Max discount journals number */
// byte Max_Rm_Jrnl_No; /* Max Return Merchandise journals number */
word Max_Rm_Jrnl_No; /* Max Return Merchandise journals number */
word sale_jrnl_first; /* The sale journals foremost transaction records pointer */
word sale_jrnl_last; /* The sale journals latest transaction records pointer */
word sale_jrnl_len; /* The sale journals length */
word dc_jrnl_first;
word dc_jrnl_last;
word dc_jrnl_len;
// byte rm_jrnl_first;
// byte rm_jrnl_last;
// byte rm_jrnl_len;
word rm_jrnl_first;
word rm_jrnl_last;
word rm_jrnl_len;
byte *sale_jrnl_first_ptr;
byte *sale_jrnl_last_ptr;
byte *dc_jrnl_first_ptr;
byte *dc_jrnl_last_ptr;
byte *rm_jrnl_first_ptr;
byte *rm_jrnl_last_ptr;
#endif /* End ELEC_JRNL */
#else /* Else WD1VER */
DEPTDEF dept[Max_Dept_No];
PLUDEF plu[Max_Plu_No];
CLERKDEF clerk[Max_Clerk_No];
#endif /* End WD1VER */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -