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

📄 feedef.h

📁 BC3.1编译,小交换机计费系统.使用Dos做出如此好的界面,少有.
💻 H
📖 第 1 页 / 共 3 页
字号:
#ifndef  MAIN
#define  MAIN

#ifdef   MAIN_C
#define  EXTERN
#else
#define  EXTERN		extern
#endif

#include <dir.h>
#include <dos.h>
#include <stdio.h>

#define SC signed char
#define UC unsigned char

#define SI signed int
#define UI unsigned int

#define SL signed long int
#define UL unsigned long int

#define IRQNO	5
#define PORT_NUM 10
#define PhonesPerPort 64

#define MAX_LOCAL     600
#define MAX_INTERN    250
#define MAX_NATION    2250
#define MAX_LAN       60

#define MAX_USERS     (PhonesPerPort*PORT_NUM)
#define MAX_AUTHCD    1000
#define MAX_TRKNO     256
#define MAX_SPECIAL   50

#define SYS_PWD       1
#define DEL_PWD       2
#define CLR_PWD       3
#define CASH_PWD      4

#define LQ1600        1
#define LX800         2
#define INLIB         1
#define OUTLIB        2

#define COLOR         1
#define MONO          2

#define ACCOUNT       1
#define NOACCOUNT     2

#define W_WIDTH       1
#define N_WIDTH       2

#define HOTEL_USR     1
#define NORMAL_USR    2

#define COM1          1
#define COM2          2

#define MES_LEFT      92
#define MES_TOP       455
#define MES_RIGHT     548
#define MES_BOTTOM    479

#define MAIN_MES      0
#define PASS_ERR      1
#define RE_PASS       2
#define RE_PASS_ERR   3
#define NEW_PASS_EN   4
#define TIME_OUT      5
#define IO_ERR        6
#define NO_PAPER      7
#define PRN_ERR       8
#define PHO_FILE_ERR  9
#define SPRING_DAY    10
#define CONN_ERR      11
#define REC_TIMEOUT   12
#define RATE_FILE_ERR 13
#define NO_NOT_EXIST  14
#define CASH_FILE_ERR 15
#define USER_FILE_ERR 16
#define UNO_NOT_EXIST 17
#define TFEE_FILE_ERR 18
#define DTIME_FILE_ERR   19
#define CANCEL_INPUT     20
#define INVALID_INPUT    21
#define AUTHCD_FILE_ERR  22
#define AUTHCD_NOT_EXIST 23
#define ACCTIME_FILE_ERR 24
#define ACCFEE_FILE_ERR  25
#define BANACC_FILE_ERR  26
#define DAYACC_FILE_ERR  27
#define MONACC_FILE_ERR  28
#define YEARACC_FILE_ERR  29
#define HACCFEE_FILE_ERR  30
#define HBANACC_FILE_ERR  31
#define HDAYACC_FILE_ERR  32
#define HMONACC_FILE_ERR  33
#define HYEARACC_FILE_ERR 34
#define NULL_ACCOUNT_ERR  35
#define PCODE_FILE_ERR    36
#define PCODE_ERR         37
#define NULL_CASH_ERR     38

#define SIO_BUF_SIZE  512
#define CMD_BUF_SIZE  128

#define PORT          0

#define LINE          430
#define VERT          420
#define TOP           427
#define LEFT_TOP      421
#define LEFT_COR      425
#define RIGHT_TOP     422
#define RIGHT_COR     426
#define MID           429
#define RIGHT_BOT     424
#define LEFT_BOT      423
#define BOTTOM        428

#define OFF       0
#define ON        1

#define NO        0
#define YES       1

#define NOFRESH  0
#define REFRESH  1

#define ITBL_CLR 5
#define QTBL_CLR GREEN

#define LDD       1
#define DDD       2
#define IDD       3
#define HDD       4

#define IMMED     1
#define BATCH     2

#define INV       1
#define DETL      2

#define WHOLE     1
#define PHONE_NO  2
#define AUTH_CD   3
#define DEPT_NO   4

#define NORMAL    1
#define NONFEE    2
#define OUTRNG    3

#define SINGLE    1
#define MULTY     2

#define SET_PCODE 1
#define SET_IMPRN 2

#define SET_CASH   1
#define INQ_CASH   2
#define INQ_OVCASH 3

#define CASH_OFF   0
#define CASH_ON    1

#define SET_AUTH  0
#define INQ_AUTH  1
#define UNUSED_AUTH	255

#define BACKUP    1
#define INQUIRE   2
#define DELETE    3
#define PRINT     4

#define HIST_F     0
#define CRNT_F     1

#define TOTAL_FEE 1
#define PHONE_FEE 2
#define DEPT_FEE  3
#define AUTH_FEE  4

#define FEE_ACC   1
#define BAN_ACC   2
#define DAY_ACC   3
#define MON_ACC   4
#define YEAR_ACC  5
#define MON_NOACC 6
#define YEAR_NOAC 7
#define FEE_STA   8
#define HFEE_ACC  9
#define HBAN_ACC  10
#define HDAY_ACC  11
#define HMON_ACC  12
#define HYEAR_ACC 13

#define HAX1001   1
#define HAX1002   2
#define HJD256    3
#define MD110     4
#define BH01      5
#define MECURY    6
#define NTM       7
#define JSQ31     8
#define METEL     9
#define HICOM     10

#define PHONE_CASH 0
#define AUTH_CASH  1

typedef struct
{
  fng_clr;
} COLOR_STRUCT;

typedef struct
{
//    UC pabx_m;    /* pabx model */
    UC prt_m;     /* 9 pin or 24 pin
		       1 for 24 pin
		       2 for 9  pin
		  */
    UC prt_w;     /* paper width
		       1 for 80 col
		       2 for 132 col
		  */
    UC prtflg;     /* DBCS librar flag
		       1 for inner DBCS lib
		  */
    UC com_m[PORT_NUM];     /* SIO port option:
		       1 for COM1 to PABX
		       2 for COM2 to PABX
		  */
//    UC com_cmd1;  /* COM1 data bits */
//    UC com_cmd2;  /* COM1 stop bits */
//    UC com_cmd3;  /* COM1 parity    */
//    UC com_cmd4;  /* COM1 transmite rate */
} SYS_MODE;

typedef struct
{
	UC area_no[9];      /* area No. */
	UC area_name[9];
	UC length;          /* No. len  */
	UC trunk_mark;
	UI first_rate;
	UI first_time;
	UI formal_rate;
	UI formal_time;
	UC add_fee;	    /* additional fee */
} RATE_STRUCT;

typedef struct
{
	UI add_percent;
	UI add_record;
	UI add_rate;
	UI add_time;
} ADD_STRUCT;

typedef struct
{
	UI delay_idd;
	UI delay_ddd;
	UI delay_ldd;
} DELAY_STRUCT;

typedef struct
{
       UC phone_no[9];      /* telephone number */
       UI user_no;          /* accountant No.   */
       UI code;             /* inner code                   */
       UC class;             /* ext telephone class          */
       UC feeflag[5];        /* 0 -- urban call fee flag     */
			     /* 1 -- local call fee flag     */
			     /* 2 -- information call fee flag    */
			     /* 3 -- domestic call fee flag       */
			     /* 4 -- international call fee flag  */
	UC    set_flag;          /* flag of download or not      */
	UC flag;	/* immediate print or not */
	UC max_min;     /* maximum minute permission for one call */

	UL intern_time;
	UL intern_charge;
	UI intern_count;
	UL nation_time;
	UL nation_charge;
	UI nation_count;
	UL local_time;       /* all the time of local call */
	UL local_charge;     /* all charge of local call   */
	UI local_count;      /* all times  of local call   */
	UL month_lease;
	UL addfee[5];        /* 0:new service,
				1:mannul long call,
				2:reparing,
				3:other fee,
				4:all the add fee for records
			      */
} PHONE_STRUCT;

typedef struct
{
    UL auth_code;            /* authority code            */
    UC auth_class;           /* authored class            */
    UC auth_usr_nam[11];     /* authored user name        */
    UC auth_set_flag;
    UI user_no;  	     /* accountant No.   */

    UL intern_time;
    UL intern_charge;
    UI intern_count;
    UL nation_time;
    UL nation_charge;
    UI nation_count;
    UL local_time;       /* all the time of local call */
    UL local_charge;     /* all charge of local call   */
    UI local_count;      /* all times  of local call   */

    UI month_lease;
    UL addfee;
} AUTHCD_STRUCT;

typedef struct
{
	UL intern_time;
	UL intern_charge;
	UL intern_count;
	UL nation_time;
	UL nation_charge;
	UL nation_count;
	UL local_time;       /* all the time of local call */
	UL local_charge;     /* all charge of local call   */
	UL local_count;      /* all times  of local call   */
	UL month_lease;
	UL addfee[5];        /* 0:new service,
				1:manuly long call,
				2:reparing,
				3:other fee,
				4:all the add fee for records
			      */
} FE_STAT_STRUCT;

typedef struct
{
    UC year;
    UC month;
    UC day;
    UC hour;
    UC min;
    UC sec;
}  SERAL_NO_STRUCT;

typedef struct
{
	UL intern_time;
	UL intern_charge;
	UL intern_count;
	UL nation_time;
	UL nation_charge;
	UL nation_count;
	UL local_time;       /* all the time of local call */
	UL local_charge;     /* all charge of local call   */
	UL local_count;      /* all times  of local call   */
	UL month_lease;      /* month lease                */
	UL addfee[5];        /* 0:new service,
				1:manly long call,
				2:reparing,
				3:other fee,
				4:all the add fee for records
			      */
	SERAL_NO_STRUCT seral_no;
	UL phone_no;
	UC flag;             /* 1:fee account,
				2:ban account,
				3:day account,
				4:month account,
				5:year account,
				6:month nonaccount,
				7:year nonaccount,
				8:fee statitcs
			      */
} ACC_STRUCT;

⌨️ 快捷键说明

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