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

📄 d300.h

📁 170话费查询系统
💻 H
📖 第 1 页 / 共 2 页
字号:
*	参数:	cn = 通道号,number = 读键个数(默认参数,不指定则
*		等于1。
*   
************************************************************************/
int  post_read_command_to_board(int cn, int number=1);
/*************************************************************************
*   FUNC:	int  read_the_key(int cn)
*   
*	说明:	读接收到的键
*	参数:	cn = 通道号,
*   
************************************************************************/
int	read_the_key(int cn);

/*************************************************************************
*   FUNC:	int  end_this_read(int cn)
*   
*	说明:	结束读键命令,清空读键缓冲区
*	参数:	cn = 通道号
*   
************************************************************************/
void    end_this_read(int cn);

/*************************************************************************
*   FUNC:	int  verify_the_key(int cn, THREAD * go_thread,  STATE * go_state)
*   
*	说明:	根据io参数表校验读键
*	参数:	cn = 通道号
*		go_thread = 键值有效的下一线程
*		go_state  = 键值有效的下一状态
*	返回:	1: 读键有效, 2:读键无效
*   
************************************************************************/
int  verify_the_key(int cn, THREAD * go_thread,  STATE * go_state);

/*************************************************************************
*   FUNC:	void	play_query_hint(int cn)
*   
*	说明:	根据 Main.UserOp 的值,播放不同的查询提示音
*	参数:	cn = 通道号
*   
************************************************************************/
void	play_query_hint(int cn);
/***********************************************************************
*   FUNC:	int check_month_digits(int cn)
*   
*	说明:	验证月份数字是否有效
*	参数:	cn = 通道号
*   返回:	-1: 数字错误  0:该月无数据  >0 : 月份数字,且有数据。
************************************************************************/
int  check_month_digits(int cn);

/*************************************************************************
*   FUNC:	clear_read_buffer(int cn)
*   
*	说明:	单键输入清除例程
*	
*   
************************************************************************/
int clear_read_buffer(int cn);

/*************************************************************************
*   函数:	check_commu_status(int cn,long evt_handle)
*   
*	功能:	检测通道cn的通话状态(来话、挂机)
*	参数:	cn 				: 通道号
*			evt_handle		: 事件句柄
*   说明:	当通道产生 DTEV_SIG 类型事件时调用此函数。
************************************************************************/
check_commu_status(int cn,long evt_handle);

/************************************************************************************************
*	FUNCTION: RegiterGCA(void)
*   参数:无
*	说明:向全局通讯区注册程序主窗口名。
************************************************************************************************/
bool	RegisterGCA(void);

/************************************************************************************************
*	FUNCTION: PostQueryCommad(int chn, char * QueryDemand, char * month, char * index_value)
*   参数:chn		  :  通道号
*         QueryDemand : 查询方法名,如 Query_CTXD, Query_BDWXD, etc.
*		  month		  : 查询月份	对于 Query_QF 模式此参数无效。
*         index_value : 索引值,
*   返回:1 成功发送查询请求, 0 失败
*	说明:向全局通讯区注册程序主窗口名。
************************************************************************************************/
int		PostQueryCommand(int chn, char * QueryDemand, char * month, char * index_value);

/************************************************************************************************
*	函数: post_retrieve_command(int cn)
*   参数:chn		  :  通道号
*    
*   返回:1 成功发送查询请求, 0 失败
*	说明:访问数据库。
************************************************************************************************/
int		post_retrieve_command(int cn);

/*************************************************************************
*   函数:	stop_timing(int cn)
*   
*	功能:	终止通道的超时计算
*	参数:  cn		: 通道号
*
*   
************************************************************************/
int stop_timing(int cn);
/*************************************************************************
*   函数:	start_timing(int cn, int  second, STATE evt_put)
*   
*	功能:	启动通道的超时计算
*	参数:  cn		: 通道号
*			second	: 时限(以秒为单位)
*			evt_put : 超时后通道上写的事件
*   
************************************************************************/
start_timing(int cn, int  second, STATE evt_put);

/*************************************************************************
*   FUNC:	start_sys_event_dispatcher() 
*   
*	说明:	启动事件分发线程
*	
*   
************************************************************************/
void start_sys_event_dispatcher();

/************************************************************************************************
*	函数: int reset_voice_chain(int cn)
*   
*	功能:	通知数据服务程序重置语音链
*	参数:	cn =  通道号
*    	
************************************************************************************************/
void reset_voice_chain(int cn);

/******************************************************************************
*	Name: printts()
*	Function: 显示 RX 和 TX 字节
*
******************************************************************************/
int printts(int cn);

/*************************************************************************
*   FUNC:	int play_result_prex(int cn)
*   
*	说明:	在播放查询结果之前播放提示语音
*
*	长途详单:		"您xx月的""长途使用情况是"
*	本地详单:		"您xx月的""本地网使用情况是"
*	声讯详单:		"您xx月的""声讯电话使用情况是"
*	单机单月话费:	"您xx月的""话费组成情况是"
*	托收用户话费:	"您xx月的""的托收费用组成情况是"
*	欠费查询:		"您的欠费情况是"
*   
************************************************************************/
int play_result_prex(int cn);

/************************************************************************************************
*	FUNCTION: WriteSystemLog(int chn)
*   参数:chn		  :  通道号
*
*   返回:1 成功发送查询请求, 0 失败
*	说明:向查询程序发送写日志消息
************************************************************************************************/
int		WriteSystemLog(int cn);

/************************************************************************************************
*	函数: int voice_to_cvca(int cn, char * svoice)
*   
*	功能:	将通道语音字符串转换到CVCA中。
*	参数:	cn =  通道号
*           svoice  = 语音字符串
*   
************************************************************************************************/
int voice_to_cvca(int cn, char * svoice);

/************************************************************************************************
*	函数: int demand_next_voice_chain(int cn)
*   
*	功能:	请求DBCX解析下一条语音数据
*********************************************************************************************/
int demand_next_voice_chain(int cn);
/************************************************************************************************
*	函数: int CopyVFIT(void)
*   
*	功能:	将语音文件从内存共享文件复制到本地
*	
*   
************************************************************************************************/
void  CopyVFIT(void);

////////////////////////////////////////////////////////////////
//                 
//   函数  int VerifyMonth(char * smonth)
//   说明:验证查询月份是否有效
//   month			: 月份
//   返回			:1-有效 0-无效
//   本函数用于替换使用myvc.dll中的VerifyMonth(),它将不再读GCA
////////////////////////////////////////////////////////////////
int DoVerifyMonth(int month);

/*************************************************************************
 *        函数 : set_system_info()
 *		  描叙 : 设置程序的共享信息
 *					  
 *************************************************************************/
int set_system_info(void);

////////////////////////////////////////////////////////////////
//                 
//   函数  int update_month(int start, int end)
//   说明:更新查询月份
//   start			: 开始月份
//   end			: 结束
////////////////////////////////////////////////////////////////
int update_month(int start, int end);

/************************************************************************************************
*	函数: int CopyRefuseCall(void)
*   
*	功能:	将拒绝服务号码表从GCA复制到本地
*	
*   
************************************************************************************************/
void  CopyRefuseCall(void);

////////////////////////////////////////////////////////////////
//                 
//   函数  int DoVerifyAni(char * ani)
//   说明:验证主叫号码是否有效  
//   ani			: 主叫号码
//   返回			:1-有效 0-无效
//   函数用于替代myvc.dll中的VerifyAni,它不需要访问GCA中的拒绝服务号码表
////////////////////////////////////////////////////////////////
extern "C" _declspec ( dllexport ) int PASCAL DoVerifyAni(char * ani);

/************************************************************************************************
*	函数: int CopyQSSA(void)
*   
*	功能:	将查询语法区从共享文件复制到本地
*	
*   
************************************************************************************************/
void  CopyRefuseQSSA(void);
/***********************************************************************************************
	函数: LPVOID DoReadQSSA(char * qname, char * key)
	说明: 从本地读取QSSA的值
	qname    : 查询方法
	key		 : 项目
************************************************************************************************/
LPVOID DoReadQSSA(char *qname, char * key);



////////////////////////////////////////////////////////////////
//                 
//   函数  int update_qf_table(int new_table)
//   说明:更新查询月份
//   new_table		: 新的当前查询表编号(1,2)
//
////////////////////////////////////////////////////////////////
int update_qf_table(int new_table);

int  get_system_time(char * dt);

⌨️ 快捷键说明

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