⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 data.h

📁 一款收款机C源代码!因为是几年前的代码了
💻 H
📖 第 1 页 / 共 4 页
字号:
extern	byte					work_mode;				/* The Retail mode or the Restaurant mode flag.
																	0x55: Retail mode
																	0xAA:	Restaurant mode
																	*/
extern	word					Max_Table_No;			/* The max table number, used in the restaurant function */
extern	byte					currtable;				/* The current table number */
extern	byte					bakwaiterno;			/* Backup the waiter number */
extern	byte					waiter_input_flag;	/* Input the waiters password flag
																	0: Not the inputing waiters password
																	1: Inputing the waiters password
																	*/
extern	byte					Open_flag;				/* The table open wait the clerk password input flag,
																	this flag judge the clerk password input is 
																	in the open table mode or not
																	1:	In the open table mode
																	0:	Not in the open table mode
																	*/
extern	byte					prn_LstSpndAmt_flag;	/* Print the last suspend amount flag
																	1: print
																	0: not print
																	*/
extern	byte					bak_dec_flag;			/* Backup the dec_flag */
#endif	/* End VER_RSNT */

#ifdef	SCANNER			/* Support the scanner function */
extern 	byte   				CodeBuf[];   		// the bar code buffer which is used for original data
extern 	byte   				BarCnt;        		// the digits count of received bar code               
extern	byte					BarCnt_bak;				/* Backup the BarCnt */
extern	byte					CodeBuf_Bak[];			/* Backup the CodeBuf */
extern 	byte   				BarRecFlag ;   		// 1:  Bar code is received; 0:No bar code received   
extern 	byte   				ProgBar;       		// 1: indicates the Bar code number is programming
extern	byte					BarInFlag;				/* The manual bar code input flag
																	1: In the GetIn function, has input the bar number
																	0:	In the GetIn function, did not input the bar number
																	*/
extern 	byte 					BCDbuf[];
extern 	byte 					Barbuf[];
extern 	int 					Sindex[];
#endif /* End SCANNER */

#ifdef	AUTO_PER				/* Support the department auto percent function */
extern	byte					Auto_Per_Flag;			/* When do the department or PLU transaction, the auto
																	percent is doing or not flag.
																	1:	Doing the auto percent.
																	0: not doing the auto percent.
																	*/
extern	long					bak_trans_amount;		/* Backup the trans.amount */
#endif /* End AUTO_PER */

extern const char Crncy_Symvol[];

/*************************************************************************
					The constant variables
*************************************************************************/
extern 	const word      Modify_Key_Tabl[];
extern 	const byte      Modify_Key_Color_Tabl[];        /* The key can be used in free function key function. */

extern 	const word      digit_code_table[];
extern 	const char      *Prn_Digit_code_Tabl[];

extern 	const word      Fixed_Key_Table[];
extern 	const char      Fixed_Key_Color_Table[];

extern  const word      Rpt_Key_Table[];
extern  const char      Rpt_Key_Color_Table[];
extern  const char      *Prn_Rpt_Key_Table[];

extern  const word      key_logic[];			/* The logical key code table */
extern  const word      Dft_POS_Key_Tabl[];

extern	const word      *Ts_Key_Tab;
extern	const byte      *Ts_Key_Table_Size;
extern	const word      *Bak_Ts_Key_Tab;			/* The current key table */
extern	const byte      *Bak_Ts_Key_Table_Size;
extern	const int Func_Btn_Posi[][4];
extern	const byte Func_Btn_Color[][2];

extern 	const CHR  			cw_data[];
extern	const word			Version;
extern	const char			Ver_Date[];
extern	const char			Ver_Prn[];
extern	const char			Str_Curr_Ver[];
extern 	const char 			Bit_Point[];

/***********************************************/
extern 	const char 			X_Daily_Rpt[];
extern 	const char 			Z_Daily_Rpt[];
extern 	const char 			X_PTD_Rpt[];
extern 	const char 			Z_PTD_Rpt[];
extern 	const char 			X_Daily_Dept_Rpt[];
extern 	const char 			X_PTD_Dept_Rpt[];
extern 	const char 			X_Daily_Dept_Group_Rpt[];
extern 	const char 			X_PTD_Dept_Group_Rpt[];
extern 	const char 			X_Hourly_Rpt[];
extern 	const char 			Z_Hourly_Rpt[];
extern 	const char 			X_Daily_Clerk_Rpt[];
extern 	const char 			Z_Daily_Clerk_Rpt[];
extern 	const char 			X_PTD_Clerk_Rpt[];
extern 	const char 			Z_PTD_Clerk_Rpt[];
extern 	const char 			X_Dept_Idvul_Rpt[];
extern 	const char 			X_PLU_Idvul_Rpt[];
extern 	const char 			X_Clerk_Idvul_Rpt[];
extern 	const char 			Z_Daily_PLU_Rpt[];
extern 	const char 			X_Daily_PLU_Rpt[];
extern 	const char 			Z_PTD_PLU_Rpt[];
extern 	const char 			X_PTD_PLU_Rpt[];
extern 	const char 			X_Daily_PLU_Group_Rpt[];
extern 	const char 			X_PTD_PLU_Group_Rpt[];
extern 	const char 			X_Daily_PLU_Area_Rpt[];
extern	const char 			X_PLU_Stock_Rpt[];

extern 	const char 			Dept_Prn_Head[];
extern 	const char 			PLU_Prn_Head[];
extern 	const char 			PLU_Group_Prn_Head[];
extern 	const char 			Clerk_Prn_Head[];
extern	const char 			Waiter_Prn_Head[];
extern 	const char 			FFkey_Prn_Head[];
extern 	const char 			Time_Date_Prn_Head[];
extern 	const char 			Check_Prn_Head[];
extern 	const char 			Tax_Prn_Head[];
extern 	const char 			VAT_Prn_Head[];
extern 	const char 			Charge_Prn_Head[];
extern 	const char 			PCash_Prn_Head[];
extern 	const char 			Per_Prn_Head[];
extern 	const char 			Wlcm_Msg_Prn_Head[];
extern 	const char 			Btm_Msg_Prn_Head[];
extern 	const char 			Rfnd_Prn_Head[];
extern 	const char 			Sys_Para_Prn_Head[];
/*---------------------------------------------*/
extern 	const char 			Str_Null[];
extern 	const char 			Str_Subttl[];
extern 	const char 			Str_Cash[];
extern 	const char 			Str_Check[];
extern 	const char 			Str_Misc[];
extern 	const char 			Str_Change[];
extern 	const char 			Str_RA[];
extern 	const char 			Str_PO[];
extern 	const char 			Str_EC[];
extern 	const char 			Str_VOID[];
extern 	const char 			Str_NS[];
extern 	const char 			Str_RM[];
extern 	const char 			Str_Item[];
extern 	const char 			Str_SubTtl[];
extern 	const char 			Str_TSVD[];
extern 	const char 			Str_RPLDP[];
extern 	const char 			Str_Trmnl_Stus[];
extern 	const char 			Str_McheNum[];
extern 	const char 			Str_RcptNum[];
extern 	const char 			Str_HaloNum[];
extern	const char			Str_WlcmMsg1[];
extern	const char			Str_WlcmMsg2[];
#ifdef ROYAL
extern	const char        Str_RoyalMsg[6][24+1]; 
#endif
extern	const char			Str_LogoNo[];
extern	const char 			Str_Date[];
extern	const char 			Str_Time[];
extern	const char 			Str_Clerk[];
extern	const char			Str_Charge[];
extern	const char			Str_PCASHpce[];
extern	const char 			Str_ZNum[];
extern	const char 			Str_Group[];
extern	const char 			Str_TotQty[];
extern	const char 			Str_PLU_VD_No[];
extern	const char 			Str_Trng_Head[];
extern	const char 			Str_Heat_Time[];

extern 	const char 			Str_NetNum[];
extern 	const char 			Str_NetAmt[];
extern 	const char 			Str_CashTotal[];
extern 	const char 			Str_Dept_TtlCount[];
extern 	const char 			Str_NScount[];
extern 	const char 			Str_MiscTotal[];
extern 	const char 			Str_GndTtlClr[];
extern	const char 			Str_NetSale[];
extern	const char			Str_AbleAmt[];
extern	const char 			Str_Amt[];
extern	const char			Str_TaxTotAmt[];
extern	const char			Str_VATTotAmt[];

extern	const char			Str_Cmpltd[];

extern 	const char 			Str_Pwr_Dwn_Info[];
extern 	const char 			Str_Protest[];

/*-----------------------------------------------------------------*
				The extend versions
 *-----------------------------------------------------------------*/
#ifdef VER_RSNT			/* Support the restaurant function */
extern	const char 			Str_Alloc[];
extern	const char 			Str_Table_Free[];
extern	const char 			Table_Prn_Head[];
extern	const char 			Str_L[];
extern	const char 			Str_TableNo[];
extern	const char 			Str_LstSpndAmt[];
extern	const char 			Str_SpndAmt[];
extern	const char 			Str_Tnsfer[];
extern	const char 			X_Table_Idvul_Rpt[];
extern	const char 			Str_Active[];
extern	const char 			X_Table_Rpt[];
extern	const char 			X_Table_Active_Rpt[];
extern	const char 			Z_Table_Rpt[];
#endif /* end VER_RSNT */

extern	const char			Str_Auto_Per[];
extern	const char 			Str_Auto_Per_Rate[];
#ifdef AUTO_PER			/* Support the department auto percent function */
#endif /* End AUTO_PER */


/************************************************************************
************************************************************************/
extern	const char Str_FFkey_Const[];
extern	const char Str_Table_Alloc[];
extern	const char Str_Dept_Desc[];
extern	const char Str_PLU_Desc[];
extern	const char Str_Clerk_Desc[];
extern	const char Str_Waiter_Desc[];
extern	const char Str_Refund_Desc[];
extern	const char Str_Per_Desc[];
extern	const char Str_Check_Desc[];
extern	const char Str_Charge_Desc[];
extern	const char Str_Credit_Desc[];
extern  const char STr_MISC_Desc[];
extern	const char Str_FCE_Desc[];
extern	const char Str_Table_Desc[];
extern	const char Str_Hour_Rpt_Arrow[];
extern	const char Str_PLU_Range_Rpt[];



/***********************************************/

extern	const char			Logo1[];
extern	const char			Logo2[];
extern	const char			Logo3[];
extern	const char			Logo4[];
extern	const char			Logo5[];
extern	const char			Logo6[];
extern	const char			Logo7[];
extern	const char			Logo8[];
extern	const char			Logo9[];
extern	const char			Logo10[];
extern	char 					RAM_Logo[];				/* The logo stored in the SRAM area */


/*----------------------------------------------------------------------*
						The new added:
 *----------------------------------------------------------------------*/
extern	word					BaudRate;				/* Store the baud rate settings(PORT0) */
extern	word					wmtor_timmer;
extern	const char 			Str_PLU_VOID[];

extern	const char 			Str_Rpt_Head[];
extern	const char 			Str_Total[];
extern	const char 			Str_RM_Rpt[]; 
extern	const char 			Str_EC_Rpt[];
extern	const char 			Str_VOID_Rpt[];
extern	const char 			Str_TSVD_Rpt[];
extern	const char 			Str_Cash_Rpt[];
extern   const char 			Str_MISC_Rpt[];
extern	const char 			Str_RA_Rpt[];
extern	const char 			Str_PO_Rpt[];

extern	byte					PPLU_Group_Flag;		/* Program the PLU group flag
																	1: In the Program PLU group mode.
																	0: Not in the program PLU group mode.
															*/
#ifdef RCPT_REPRN			/* Support the receipt reprint function */
extern	byte					Rcpt_RePrn_Cnt;		/* The receipt reprint counter */
extern	byte					Rcpt_Reprn_Flag;		/* Doing the receipt reprint operation or not
																	1: Doing the receipt reprint.
																	0: Not in doing the receipt reprint
																	*/
extern	TRANSBUFFDEF		BakTnsBf[];				/* The backup of the transaction buffer */
extern	byte					BakTnsBf_Len;			/* The backup transaction buffer length */
#endif /* End RCPT_REPRN */
extern	const char 			Str_NRGT[];
extern	const char 			Str_Motor_Time[];

// New:
extern	byte					Logo_Prn_Flag;			/* Print the Logo flag in sale mode
																	0: Not print the logo.
																	1: Print the logo
																	*/
extern	const char 			Str_Minus_Line[];
extern	const char 			Str_Trng_Pwr_Dwn[];
#ifdef VER_RSNT		/* Support the restaurant function */
extern	const char 			X_Active_Idvul_Rpt[2][PRN_LEN+1];
extern	const char 			Str_TipIn[];
extern	const char 			Str_TipInSign[];
extern	const char 			Str_TipOut[];
extern	const char 			Str_TipOutSign[];
extern	const char 			Str_Rpt_TipIn[];
extern	const char 			Str_Rpt_TipOut[];
extern	const char 			Str_Total_TipIn[];
extern	const char 			Str_Total_TipOut[];
extern	const char 			Z_Waiter_Rpt[];
extern	const char 			X_Waiter_Rpt[];
extern	const char 			X_Waiter_Idvul_Rpt[];
#endif /* End VER_RSNT */
extern	const char 			Str_PrnInt[];
extern	const char 			Disp_Input_Pass[];
extern	const char 			Str_PassWord[];
extern	byte					pass_flag;				/* Used in the program/Zreport mode, and act in the function 'GetIn'
																	1: Inputing the password, not to dispaly the input digit
																	0: Can display the input digit
																	*/
extern	word					Logi_Code;				/* The logical key code */
extern	byte					mode_disp_flag;		/* Indication dispaly the mode or not
																	0: Not dispaly the working mode
																	1: Displaying the working mode 
																	*/
extern	byte					Feed_Flag;				/* Support feed the paper or not flag
																	0: Not feed the paper
																	1: Feed the paper
																	*/
extern	byte					en_long_dec_input_flag;/* Enable the long decimal dots input flag
																	0: Not enable.
																	1: Enable
																	*/
extern	byte					long_dec_input_len;	/* When the long decimal dots input flag is true, 
																	this variable record the length of the decimal input.
																	*/
#ifdef FCE_FUNC		/* Support the FCE function */
extern	const char 			FCE_Prn_Head[];
extern	const char 			Str_Rcpr[];
extern	const char 			Str_Sale_Cnt[];
extern	const char 			Str_Ttlindwr[];
extern	const char 			Str_Chg[];
#endif /* End FCE_FUNC */
extern	const char         Age_Prn_Head[];
extern	const char         PO_RA_Prn_Head[];
extern  const char         Payment_Prn_Head[];
#ifndef WD1VER			/* The WD1-E version */
extern	const char 			Str_Alloc_Fnsh[];
extern	const char 			Str_Work_Mode[];
extern	const char 			Str_Retail[];
extern	const char 			Str_RSNT[];
extern	const char 			Str_Dept_No[];
extern	const char 			Str_Clerk_No[];
#ifdef VER_RSNT		/* Support the restaurant function */
extern	const char 			Str_Table_No[];
extern	const char 			Str_Waiter_No[];
#endif /* End VER_RSNT */
#ifdef ELEC_JRNL		/* Support the electronic journal function */
extern	const char 			Z_Sale_Jrnl[];
extern	const char 			X_Sale_Jrnl[];
extern	const char 			Z_Dc_Jrnl[];
extern	const char 			X_Dc_Jrnl[];
extern	const char 			Z_Rm_Jrnl[];
extern	const char 			X_Rm_Jrnl[];
extern	const char 			Str_Receipt_Num[];
extern	const char 			Str_Length[];
extern	const char 			Str_Max[];
extern	const char 			Str_Sale_Jrnl_Clr[];
extern	const char 			Str_Dc_Jrnl_Clr[];
extern	const char 			Str_Rm_Jrnl_Clr[];
#endif /* End ELEC_JRNL */
extern	const char 			Str_Direct[];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -