📄 error.h
字号:
#ifdef REST_PLU_FUNC
#define ERR_NUM_INC1 6
#else
#define ERR_NUM_INC1 0
#endif
#ifdef PC_COMM
#define ERR_NUM_INC2 2
#else
#define ERR_NUM_INC2 0
#endif
#ifdef FCE_FUNC
#define ERR_NUM_INC3 3
#else
#define ERR_NUM_INC3 0
#endif
#ifdef ELEC_JRNL
#define ERR_NUM_INC4 4
#else
#define ERR_NUM_INC4 0
#endif
#if SW_VER == SW_NE2
#define ERR_NUM_INC5 7
#else
#define ERR_NUM_INC5 0
#endif
#define ERR_NUM_IC 6
//#define ERR_NUM_INC0 58 // 9 5 16 4 7 8 2 3 1 3
#define ERR_NUM_INC0 62 // 9 5 16 4 7 8 2 3 1 3
#define ERROR_TYPE_NUM (ERR_NUM_INC0 + ERR_NUM_INC1 + ERR_NUM_INC2 + ERR_NUM_INC3 \
+ ERR_NUM_INC4 + ERR_NUM_INC5+ERR_NUM_IC +1)
/*
We sort the error code three types:
1. Warning
2. Error
3. Fatal error
Then, allocate the error code area:
900~999: Fatal error.
000~099: Usual error.
000: The common error. (No used in current version)
001~029: The three mode common error.
030~049: The program mode error.
050~069: The register mode error.
070~089: The report mode error.
090~099: Reserved.
100~199: The restaurant mode error.
100~109 The clerk and waiter error.
110~129 The table error.
130~139 The kitchen printer error.
140~149 Reserved.
150~159 The PLU full function error.
160~199 Reserved.
300~399: The fiscal mode related error.
200~299: The other condition compilation error.
200~209 Reserved.
210~219 The bar code error.
220~229 The PC communication error.
230~239 The calculate error.
240~249 The FCE error.
250~259 The Electronic Journal error.
260~299 Reseved.
400~899: Reserved error.
*/
/*************************************************************************
The usual error type
*************************************************************************/
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The universal error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#define ERR_COMMON 0 /* The universal error, no used, can be used for special case */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
Three mode common error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#define ERR_DIGIT_ILLEGAL 1 /* Input the illegal digit */
#define ERR_KEY_ILLEGAL 2 /* Press the illegal key */
#define ERR_MODE 3 /* Inexistent working mode */
#define ERR_DEC_KEY 4 /* Not allow pressed [.] key */
#define ERR_DEC_PRESS 5 /* The [.] key has pressed */
#define ERR_DEPT_OVER 6 /* Inexistent department */
#define ERR_DEPT_LIMIT 7 /* Max 24 operatable departments */
#define ERR_DPSF_INHT 8 /* [DEPT SHIFT] key was inhibited */
#define ERR_DPLUSF_INHT 9
#define ERR_PRN_NOT_END 10 /* The integral receipt printing no end */
#define ERR_DPLU_OVER 11 /* Inexistent DPLU */
#define ERR_DIGIT_OVER 12 /* the number input is too long */
#define ERR_DIGIT_FMT 15 /*the digit format input error*/
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The program mode error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#define ERR_PROGRAM_NO_END 31 /* The programming no end */
#define ERR_DESC_BLANK 32 /* Input the blank descriptor */
#define ERR_KEY_CODE 33 /* Illegal key code */
#define ERR_HARD_LOCK 34 /* Inexistent the hard control lock */
#define ERR_PLU_GROUP_FULL 35 /* Full PLU group */
#define ERR_PLU_EMPTY 36 /* No useful PLU setted.*/
#define ERR_CM_FULL 40 /*CM program buffer is full*/
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The sale mode error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#define ERR_KEY_SEQ 51 /* Key sequence error */
#define ERR_ZERO_TRANS 52 /* Zero transaction was inhibited */
#define ERR_FULL_ITEM 53 /* The transaction is full */
#define ERR_HALO 54 /* HALO error */
#define ERR_XTIME_QTY 55 /* The multiplication max quantity is 9999.999 */
#define ERR_TRANS_AMT 56 /* The transaction amount is reach to the max */
#define ERR_TRANS_QTY 57 /* The transacton's quantity is reach to the max */
#define ERR_VOID_OVER 58 /* VOID operation, input the digit too big */
#define ERR_RFND_OVER 59 /* Refund operation, input the digit too big */
#define ERR_PER_RATE_ZERO 60 /* The percent rate is 0 */
#define ERR_FLAG_FUNCTION 61 /* The percent or refund operation was inhibited */
#define ERR_SALE_FNSH 62 /* No new sale */
#define ERR_SALE_NO_END 63 /* The sale no end */
#define ERR_PAY_NO_END 64 /* The payment no end */
#define ERR_ZERO_PAY 65 /* Not allowed zero payment */
#define ERR_CID 66 /* The cash total in drawer is over */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The report mode error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#define ERR_IDVUL_NO_END 81 /* Doing the individual report */
#define ERR_RPT_NOT_EMPTY 82 /* The corresponding reports data is not empty */
#define ERR_PLU_RPT_EMPTY 83 /* The PLU report is empty */
#define ERR_Z_MODE 84 /* This operation is not allowed in Z mode */
#define ERR_NO_RPT_DISP 89 /*no report on display*/
#define ERR_FUNC_RES 99 /* Function Reserved */
/*************************************************************************
The clerk and restaurant mode error type
*************************************************************************/
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The clerk and waiter error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#define ERR_CLERK_INHT 101 /* Clerk function was inhibited */
#define ERR_CLERK_PRE 102 /* Not the prevoius opening table clerk */
#define ERR_PASS_ZERO 103 /* The password can't be setted to 0 */
#define ERR_PASS_SAME 104 /* This password has existed */
#define ERR_PASS_EXIST 105 /* Inexistent password */
#define ERR_WAITER_SAME 106 /* Not the prevoius opening table waiter */
#define ERR_WAITER_EXIST 107 /* Existing waiter in this table */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The table error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#define ERR_LOGI_NO_ZERO 111 /* Table logical number can't be setted to 0 */
#define ERR_SAME_LOGI_NO 112 /* This logical number is exist in other table */
#define ERR_LOGI_NO_EXIST 113 /* The logical number not exist */
#define ERR_TBL_OPEN 114 /* Inexistent opened table */
#define ERR_TBL_NOT_ACT 115 /* The select table not active */
#define ERR_OBJ_SRC_TBL_SAME 116 /* The object and source table are the same */
#define ERR_TBL_MERGE_LONG 117 /* The merge length of two tables buffer is too big */
#define ERR_RSNT_MODE 118 /* Not in the Restaurant mode */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The kitchen printer error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#define ERR_KP_ATV 131 /* The kitchen printer not active */
#define ERR_KP_TM_OUT 132 /* Kitchen printer timer out*/
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The PLU full function error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#ifdef REST_PLU_FUNC
#define ERR_PLU_ATTR 151 /* The PLU was inhibit */
#define ERR_NORMAL_ATTR 152 /* Not the normal PLU */
#define ERR_SLAVE_ATTR 153 /* Not the descriptive or gift PLU */
#define ERR_EMPTY_MENU 154 /* This container is empty */
#define ERR_MENU_FULL 155 /* This container is full */
#define ERR_MENU_INBT 156 /* All container item are inhibitted */
#endif
/*************************************************************************
The other condition compilation error type
*************************************************************************/
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The bar code error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#define ERR_BAR_FORMAT 211 /* Not-supported bar code format */
#define ERR_BAR_EXIST 212 /* Find bar code error */
#define ERR_SAME_BAR 213 /* Set the same bar code */
#define ERR_BAR_FULL 214 /* The PLU is full, no any idle PLU*/
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The PC communication error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#ifdef PC_COMM
#define ERR_NO_PC_PORT 221 /* No port used to PC communication */
#define ERR_PLU_DOWN_INT 222 /* The PLU attribute download interrupt */
#endif
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The calculator error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#define ERR_CALC_KEY 231 /* Not calculator key */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The FCE related error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#ifdef FCE_FUNC
#define ERR_FCE_RATE_ZERO 241 /* The FCE rate is 0 */
#define ERR_FCE_XCH_BIG 242 /* The FCE exchange data are too big */
#define ERR_FCE_OVER 243 /* FCE data over */
#endif
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
The Electronic Journal error type
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#ifdef ELEC_JRNL
#define ERR_EJ_ATV 251 /* The EJ is not active */
#define ERR_EJ_EMPTY 252 /* The EJ is empty */
#define ERR_EJ_END_INPUT 253 /* EJ end condition input is illegal */
#define ERR_EJ_ZERO_ITEM 254 /* Not found the item of EJ */
#endif
/*************************************************************************
The fiscal related error type
*************************************************************************/
#if SW_VER == SW_NE2
#define ERR_FM_NOT_EXIST 300 // FM not exist
#define ERR_FIRM_CODE_PRESET 301 // Firm code already preset
#define ERR_INVALID_TURKEY_CHAR 302 // Invalid turkey characters
#define ERR_INPUT_DIGIT 303 // Input digits error
#define ERR_FM_WRITE 304 // Failure to write FM
#define ERR_FIRM_CODE_ZERO 305 // Firm code can't zero
#define ERR_FIRM_CODE_NOT_PRESET 306 // Firm code not preset
#endif
/*************************************************************************
The new add error code:
*************************************************************************/
#define ERR_IC_NO_CARD 402
#define ERR_IC_BAD 403
#define ERR_IC_ADDR_OVER 404
#define ERR_IC_WRITE_FALID 406
#define ERR_PLU_NUM_MATCHED 407
#define ERR_DEPT_NUM_MATCHED 408
/*************************************************************************
The fatal error type
*************************************************************************/
#define ERR_SRAM_WRONG 999 /* The SRAM's data is wrong */
#define ERR_FLASH_EXIST 998 /* The flash is not exist */
#define ERR_FLASH_DAMAGE 997 /* The Flash is damaged */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
New add after 2004-12-6:
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -