?? pc_comm.h
字號:
void Do_Regi_Desc_Up(void);
void Do_KP_RP_Flag_Up(void);
#ifdef ELEC_JRNL
void Do_Sale_Jrnl_Up(void);
void Do_Dc_Jrnl_Up(void);
void Do_Rm_Jrnl_Up(void);
void Do_Sale_Jrnl_Up2(void);
void Do_Dc_Jrnl_Up2(void);
void Do_Rm_Jrnl_Up2(void);
#endif
void Do_Full_Rpt_Up(void);
void Do_PLU_Rpt_Up(void);
void Do_Clerk_Rpt_Up(void);
#ifdef VER_RSNT /* Support the restaurant function */
void Do_Table_Rpt_Up(void);
#endif /* End VER_RSNT */
void Do_Hourly_Rpt_Up(void);
#ifdef VER_RSNT /* Support the restaurant function */
void Do_Active_Table_Up(void);
void Do_Waiter_Rpt_Up(void);
#endif /* end VER_RSNT */
void Do_PLU_relation_tabl_Up(void);
#ifdef ELEC_SCALE
void Do_Scale_PLU_Para_Up(void);
void Do_Scale_PLU_Data_Up(void);
#endif
/*------------------------------------------------*
The communication data structure define.
*------------------------------------------------*/
typedef struct{ /* PLU structure */
byte Bar_Code [BAR_BUFF_LEN];/* Bar code, compressed BCD code */
/* Note: when changed the bar code, the quantity and the amount must be void.
This is used for the user's wrong operation. */
byte Dept_link;
#ifdef REST_PLU_FUNC
PATTRDEF Attribute;
#endif
byte Pre_Price [3]; /* Price, compressed BCD code */
byte Desc [MAX_DESC_LEN_EX+1]; /* Description, ASCII code */
} PLU_STRU;
#ifdef STOCK /* Support the stock function */
typedef struct{ /* Transfer 50 PLUs inventory at a time */
long inventory; /* The PLU inventory */
} STOCK_STRU;
#endif /* End STOCK */
typedef struct{
byte Description [MAX_DESC_LEN]; /* Description, ASCII code */
byte Sec_CODE [2]; /* Secret, compressed BCD code */
} CLERK_STRU;
typedef struct{
byte Pre_Price [4]; /* Price, compressed BCD code */
byte Auto_Per_Rate [3]; /* Auto percent rate, compressed BCD code */
byte Attribute [3];
byte Desc [MAX_DESC_LEN_EX+1]; /* Description, ASCII code */
} DEPT_STRU;
typedef struct{
byte Rate [3]; /* Rate, compressed BCD code */
byte Attr;
byte Desc [MAX_DESC_LEN]; /* Description, ASCII code */
} PER_STRU;
typedef struct{
byte Rate [3];
byte Desc [MAX_DESC_LEN];
} VAT_TAX_STRU;
typedef struct{
byte Pre_Price [3]; /* Rate, compressed BCD code */
byte Desc [MAX_DESC_LEN]; /* Description, ASCII code */
} PCASH_STRU;
#ifdef FCE_FUNC /* Support the FCE function */
typedef struct{
byte Rate [5]; /* 0~9999.99999, 5 decimals */
byte Attribute;
byte Dot;
byte Desc [MAX_DESC_LEN];
} FCE_STRU;
#endif /* End FCE_FUNC */
#ifdef VER_RSNT /* Support the restaurant function */
typedef struct{
byte Logi_Code [3];
byte Desc [MAX_DESC_LEN];
} TABLE_STRU;
typedef struct{
byte Description [MAX_DESC_LEN];
byte Sec_CODE [2];
} WAITER_STRU;
#endif /* End VER_RSNT */
typedef struct{
// byte Out_Print_Kind; /* The external printer kind */
byte port_sel1; /* The used of port1 */
byte Out_Print_Model; /* The external printer model */
// byte Port_Use; /* Serial port choice for the external printer */
byte port_sel2; /* The used of port2 */
byte Handshake_Method; /* Handshaking method between the ECR and the external printer */
byte KP_Feed_Lines; /* The kitchen feed lines */
byte KP_Auto_Cut; /* The kitchen printer auto cut the paper function */
}KP_RP_FLAG_STRU;
typedef struct{
int Main_PLU_No;
int Slave_PLU_No;
}PLUTAB_STRU;
typedef struct{
char tax_round: 2;
char xCount_round: 2;
char sysdots: 2;
char datefmt: 2;
}Sys_Flag1;
typedef struct{
char tax_shift_mode: 1;
char Tax_System: 1;
char z_reset_rcpt_no: 1;
char prn_table_detail: 1;
char check_clerk: 1;
char Prn_Bar_Flag: 1;
char zero_skip: 1;
char clerk_mode: 1;
}Sys_Flag2;
typedef struct{
char fl_wmotor: 1;
char Rcpt_prn: 1;
char dept_shift: 1;
char RPLDP_flag: 1;
char NS_switch: 1;
char BackLight: 1;
char PLU_Stock_Flag: 1;
char Subt_PressPrn: 1;
}Sys_Flag3;
typedef struct{
char Waiter_Sure_Flag: 1;
char Waiter_Must_Flag: 1;
char Elec_Jrnl_VAT_Flag: 1;
char Auto_Per_Prn_Flag: 1;
char Auto_Per_Use_Flag: 1;
char soft_lock_flag: 1;
char Input_Bar_Mode: 1;
char Btm_Msg_Flag: 1;
}Sys_Flag4;
typedef struct{
char kp_font: 3;
char LogoPosi_Flag: 1;
char PrnAdj_Flag: 1;
char zero_trans_flag: 1;
char Udt_Stock_Mode: 2;
}Sys_Flag5;
typedef struct{
char res_bit0: 1;
char res_bit1: 1;
char res_bit2: 1;
char prn_tab_pre_posi: 2;
char Security: 1;
char res_bit3: 1;//Compulsory_clerk: 1;
char Log_Atv_Flag: 1;
}Sys_Flag6;
typedef union{
Sys_Flag1 SF1;
Sys_Flag2 SF2;
Sys_Flag3 SF3;
Sys_Flag4 SF4;
Sys_Flag5 SF5;
Sys_Flag6 SF6;
byte SF;
}SYSFLAGDEF;
typedef struct{ /* The department or the PLU's structure define */
long quantity; /* The reports quantity */
long amount; /* The reports amount */
}DEPT_PLU_AtvTbl_RPT_STRU;
typedef struct{ /* The clerk or the table structure define */
word count; /* The reports count */
long amount; /* The reports amount */
}CLERK_TABLE_HOURLY_RPT_STRU;
typedef struct{
word count; /* Sales count */
long ttlindwr; /* FCEx total in drawer */
long chg; /* The change of the local currency */
}FCE_RPT_STRU;
typedef struct{
word count;
long amount;
word TipInCount;
long TipInAmount;
word TipOutCount;
long TipOutAmount;
}WAITER_RPT_STRU;
typedef struct{ /* The full report define */
long NetAmt; /* Net sales amount */
long NetSale; /* Net sales amount exclude tax */
long CashTotal; /* Cash total in drawer */
long MiscTotal; /* Misc total in drawer */
long CheckTotal[MAX_CHECK_NUM]; /* Check1~5 total in drawer */
long TVATAble[MAX_VAT_NUM+3]; /* VAT or tax sales able amount, tax only use 2 cells */
long TVATAmt[MAX_VAT_NUM+3]; /* VAT or tax value, tax only use 2 cells */
long CashAmt; /* Cash sales amount */
long MiscAmt; /* MISC sales amount */
long CheckAmt[MAX_CHECK_NUM]; /* Check1~5 sales amount */
long ChargeAmt[MAX_CHARGE_NUM]; /* Charge 1~5 sales amount */
long VDamount; /* VOID operation amount */
long RMquantity; /* Return Merchandise quantity */
long RMamount; /* Return Merchandise amount */
long Per_Item_Amt[MAX_PER_NUM]; /* Percent after item amount */
long Per_SubTtl_Amt[MAX_PER_NUM]; /* Percent after subttl amount */
long RF_Item_amount; /* Refund after item amount */
long RF_SubTtl_amount; /* Refund after subttl amount */
long RF_Item_Qty; /* Refund after item quantity */
long RF_SubTtl_Qty; /* Refund after sub total quantity */
long ECamount; /* Error correct amount */
long TSVDamount; /* Transaction void operation total amount */
long RAamount; /* Received on account amount */
long POamount; /* Paid out amount */
/*54*4 = 216byte*/
WORD NetNum; /* Net sales number of customers */
WORD CashCount; /* cash sales count */
WORD MiscCount; /* MISC sales count */
WORD CheckCount[MAX_CHECK_NUM]; /* Check1~5 sales count */
WORD ChargeCount[MAX_CHARGE_NUM]; /* Charge1~5 sales count */
WORD NScount; /* No Sales count */
WORD VDcount; /* VOID operation count */
WORD Per_Item_Cnt[MAX_PER_NUM]; /* Percent after item count */
WORD Per_SubTtl_Cnt[MAX_PER_NUM]; /* Percent after subttl count */
WORD ECcount; /* Error Correct count */
WORD TSVDcount; /* Transaction void operation total count */
WORD RACount; /* Received on account count */
WORD POCount; /* Paid out count */
/*25*2 = 50byte*/
byte NRGT[7]; /* BCD code, 13 digits, The high 4 bits of NRGT[6] used for the NRGT sign flag, 0: POSITIVE, 1: NEGATIVE */
DEPT_PLU_AtvTbl_RPT_STRU dept[MAX_DEPT_CNT];/* Fix 50 departments */
FCE_RPT_STRU fce[MAX_FCE_CNT]; /* FCE report */
/**************************************************************************
!!!!!!!!!new add structure:
**************************************************************************/
long Chk1Total; /* Check1 total in drawer */
long RAMISCAmt; /* MISC RA amount */
long RAChk1Amt; /* Check1 RA amount */
long RACrg1Amt; /* Charge1 RA amount */
long POMISCAmt; /* MISC PO amount */
long POChk1Amt; /* Check1 PO amount */
long POCrg1Amt; /* Charge1 PO amount */
/*************************************************************************/
}FULL_RPT_DEF; /* 234+400 bytes */
/**********************************************************************/
#endif /* End PC_COMM */
/* End of the file */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -