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

📄 structdefine.h

📁 linux环境下结合ncurse库
💻 H
字号:
#ifndef STRUCTDEFINE_H_
#define STRUCTDEFINE_H_


/*配置文件信息结构*/
typedef struct _ConfigInfo
{
	char DataBaseUserName[10];
	char DataBasePassword[10];
	char Datasid[10];
}ConfigInfo;

/*用户输入帐户信息*/
typedef struct _UserInfo
{
	char username[7];
	char password[12];
}UserInfo;
/*帐户信息结构*/
typedef struct _StaffInfo
{
	char staff_id[7];
	char staff_name[16];
	char staff_pwd[17];
	int staff_type;
	char staff_remark[31];
}StaffInfo;

/*商品信息结构体*/
typedef struct _Goods
{
	char bar_code[9];
	char product_name[31];
	char unit[17];
	char spec[17];
	float sale_price;
	float purchase_price;
	int count;
	float discount;
}Goods;

/*购买时商品结构体信息*/
typedef struct _SellGoods
{
	char bar_code[9];
	char product_name[31];
	char spec[17];
	char unit[17];
	float sale_price;
	int product_count;
	float sum_money;
	float discount;
}SellGoods;

/*SALE 表里面字段相对应的结构体*/
typedef struct _sale
{
	char sale_id[19];
	char trans_id[5];
	char staff_id[7];
	char sale_date[11];
	float give_sum;
	float real_sum;
	float money;
	float change;
	int sale_state;
}SaleTableInfo;

/* 明细表对应结构*/
typedef struct _detail
{
	char detail_id[19];
	char sale_id[19];
	char bar_code[9];
	int count;
	float sale_price;
	int sale_state;
}SaleDetailInfo;

typedef struct _money
{
	float give_sum;
	float real_sum;
	float money;
	float change;
}KindMoney;

#endif

⌨️ 快捷键说明

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