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

📄 tel2006dlg.h

📁 宾馆程控电话计费系统
💻 H
字号:
// Tel2006Dlg.h : header file
//

#if !defined(AFX_TEL2006DLG_H__39DEE7B6_CF5F_408E_8D2B_312B6E4A97E4__INCLUDED_)
#define AFX_TEL2006DLG_H__39DEE7B6_CF5F_408E_8D2B_312B6E4A97E4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SerialPort.h"
#include "TrueColorToolBar.h"
#include "ADOConn.h"
#include "DataManager.h"

struct structData
{
	CString strID;		// 序号
	CString strCalling;	// 主叫号码
	CString strDescribe;// 描述
	CString strCalled;	// 被叫号码
	CString strTypeID;	// 通话类型编号	
	CString strTypeName;// 通话类型名称
	CString strPlace;	// 通话地址
	CString strDate;	// 通话时间
	CString strTime;	// 通话时长
	CString strTwice;	// 次数
	CString strBasic;	// 基本费用
	CString strAdrate;	// 手续费
	CString strPoundage;// 附加费		
	CString strPrice;	// 总金额
	CString strBillCode;//账单号
	CString strIsAccount;//是否入帐
	CString strRelay;	// 中继
	CString strAuto;	// 自动入帐
	CString strRemark;	// 备注
	CString strBedNo;	//
	CString strParlorCode;
	CString strTableCode;
};

struct structRate
{
	CString strTypeID;
	CString strCode;
	CString strTypeName;
	CString strPlace;
	int		nStaySec;
	int		nFirstSec;
	float	fFirstPrice;
	int		nEverySec;
	float	fEveryPrice;
	float	fAdrate1;
	float	fAdrate2;
	float	fPoundage1;
	float	fPoundage2;
	CString strIsCheapen;
};

struct structFB
{
	CString strPserial;
	CString strParlorCode;
	CString strTableCode;
	CString strCurDate;
	CString strCurTime;
	CString strMenuID;
	CString strPrice;
	CString strBedNo;
	CString strBillCode;
	CString strGfMark;
	CString strBattery;
	CString	strTypeID;
};

/////////////////////////////////////////////////////////////////////////////
// CTel2006Dlg dialog

class CTel2006Dlg : public CDialog
{
	// Construction
public:
	CTel2006Dlg(CWnd* pParent = NULL);	// standard constructor

	ADOConn m_AdoConn;
	//CDataManager* m_manager;
	// Dialog Data
	//{{AFX_DATA(CTel2006Dlg)
	enum { IDD = IDD_TEL2006_DIALOG };
	CStatic	m_staticStorage;
	CListCtrl	m_lstShow;
	CString	m_strData;
	//}}AFX_DATA
	
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTel2006Dlg)
	public:
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
	
	// Implementation
protected:
	HICON m_hIcon;
	
	// Generated message map functions
	//{{AFX_MSG(CTel2006Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnAbout();
	afx_msg void OnExit();
	afx_msg void OnClear();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnShow();
	afx_msg void OnSetcom();
	afx_msg void OnSearch();
	afx_msg void OnPhone();
	afx_msg void OnDept();
	afx_msg void OnRate();
	afx_msg void OnAssgin();
	afx_msg void OnMinisize();
	afx_msg void OnAdrate();
	//}}AFX_MSG
	afx_msg LONG OnCommunication(UINT,LONG);
	DECLARE_MESSAGE_MAP()
private:
	// function
	CString	GetMenuID(CString strParlorCode);
	void	InitStructFB(structFB fb);
	void	InitStructRate(structRate rate);
	void	InitStructData(structData data);
	void	ShowList();
	BOOL	GetLeaveMoney(CString strTableCode,CString &strLeaveMoney);
	void	SubLeaveMoney(CString strBillCode,CString strPrice,CString strLeaveMoney);
	CString	GetCurTime();
	CString	GetCurDate();
	CString	GetPserial();
	void	WriteData(CString strFileName,CString strMsg);
	CString	FormatString(int nNum);
	CString	GetRand();
	void	InsertCallList(structData structData);
	void	InsertPointCardFB(structFB structFB);
	BOOL	GetRPointCardInfo(structFB& structFB);
	void	ProcessString(CString str);
	void	AddList(structData structData);
	CString GetID();
	CString TrimString(CString str);
	CString FormatTime(CString strTime);
	CString FormatDate(CString strDate);
	BOOL	GetRTelPhone(structData& structData,structFB &structFB);
	CString GetLocPath();
	BOOL	FillCallList(structData& structData);
	BOOL	AnalyseString(CString strData,structData &data);
	void	InitList();
	void	ShowSearchData(CString strSearchSQL);
	// data
	CTrueColorToolBar m_ToolBar;
	CSerialPort m_Ports;
	BYTE rxdata[4096];
	int nIndex;
	//structData g_structData;
	CString m_strDataBase;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TEL2006DLG_H__39DEE7B6_CF5F_408E_8D2B_312B6E4A97E4__INCLUDED_)

⌨️ 快捷键说明

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