📄 commucationview.h
字号:
// CommucationView.h : interface of the CCommucationView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_COMMUCATIONVIEW_H__3983050E_EE4C_11D4_84FA_82DB2AA0C63C__INCLUDED_)
#define AFX_COMMUCATIONVIEW_H__3983050E_EE4C_11D4_84FA_82DB2AA0C63C__INCLUDED_
#define WM_NEW_MESSAGE WM_USER+1
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Wzdprtio.h"
#include "Search.h"
#include "Dayreport.h"
#include "Monthreport.h"
typedef struct t_FOREVER
{
int per;
float iPrice;
CTime Start1;
CTime End1;
float Rate1;
CTime Start2;
CTime End2;
float Rate2;
CTime StartTime;
int tTime;
} FOREVER;
typedef struct t_COST
{
int unitprice1;//费率一
int unitprice2;//费率二
int unitprice3;//费率三
int unittime1;//计时单位一
int unittime2;//计时单位二
int unittime3;//计时单位三
int time1;//使用次数一
int time2;//使用次数二
int time3;//使用次数三
int surcharge1;//百分比附加费一
int surcharge2;//百分比附加费二
int surcharge3;//百分比附加费三
int billcharge;//话单附加费
int percharge;//百分比附加费
int countlevel;//统计级
int location;//打折定位
int IsPrint;
int ip;
} COST;
class CCommucationView : public CFormView
{
protected: // create from serialization only
CCommucationView();
DECLARE_DYNCREATE(CCommucationView)
public:
//{{AFX_DATA(CCommucationView)
enum { IDD = IDD_COMMUCATION_FORM };
CButton m_Bitmap9;
CButton m_Bitmap8;
CButton m_Bitmap7;
CButton m_Bitmap6;
CButton m_Bitmap5;
CButton m_Bitmap4;
CButton m_Bitmap16;
CButton m_Bitmap15;
CButton m_Bitmap14;
CButton m_Bitmap13;
CButton m_Bitmap12;
CButton m_Bitmap11;
CButton m_Bitmap10;
CButton m_Bitmap3;
CButton m_Bitmap2;
CButton m_Bitmap1;
//}}AFX_DATA
// Attributes
public:
CCommucationDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCommucationView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
COST GetFeeInfo(CString PhoneNo);
CString GetLevel(CString code1);
float m_Money[16];
void ProcessData(int Pos);
int m_Comm;
virtual ~CCommucationView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
void SignalProcess(int SignalCode);//处理所发出的各种命令
int GetDiscount(CTime StartTime,int Location,int IsIp);//获取打折率
int iButton[16],iTele[16],iStart[16],iTime[16],iSpend[16],iRemain[16];
int test;//判线路是否断开
int iLevel[16];//记录统计级
BOOL m_Retry[16];//判是否在通话阶段获取电话号码
BOOL m_Initial;//判断是否发送时间信号
int m_Report;//判断打印那一种报表
COST m_Data[16];//取出的与号码相关的待处理的数据
int GetSpendTime(UINT m_Number);//获取通话时间
CDaoDatabase m_pDB;
CString NumFlag,PhoneNo[16];
CString SerialNo[16];//打印流水号
CString BeginChat[16];//通话起始时间
UINT m_IsRece;
int j,m,tempTime;
int LevelPos;//报表文件中统计级对应的行
int m_IsView;//是否显示数据
int timetotal[16];
UINT timerID;//时间轮循变量
int hour,minute,second;//通话时间(只在显示数据时用到)
BOOL ComIsOpen;//端口控制开关;
BOOL Clear[16];//判是否要重新获取电话号码信息
CWzdPortIO m_serial;//
CString info;//单片机数据;
CString Bit,Num,Code[16],length;
CString price;//显示通话价格
float backup[16];//通话的话费
float total[16];//提前一秒的话费
float m_Remain[16];//押金
CString PhonePrice[16];//话价
CString PhoneDate[16];//通话日期
int CodeAmount,FeeAmount;
CString code[1000];
CString Fee[100];
//{{AFX_MSG(CCommucationView)
afx_msg void OnButton1();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnButton4();
afx_msg void OnPriceSet();
afx_msg void OnButton16();
afx_msg void OnButton5();
afx_msg void OnButton6();
afx_msg void OnButton7();
afx_msg void OnButton8();
afx_msg void OnButton9();
afx_msg void OnButton10();
afx_msg void OnButton11();
afx_msg void OnButton12();
afx_msg void OnButton13();
afx_msg void OnButton14();
afx_msg void OnButton15();
afx_msg void OnReportPrint();
afx_msg void OnUpdateReportPrint(CCmdUI* pCmdUI);
afx_msg void OnView();
afx_msg void OnPaint();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnViewInfo();
afx_msg void OnDestroy();
afx_msg void OnModifyPasswd();
afx_msg void OnUserManager();
afx_msg void OnDayReport();
afx_msg void OnMonthReport();
//}}AFX_MSG
afx_msg LRESULT OnNewMessage(UINT wParam);
DECLARE_MESSAGE_MAP()
private:
int intValue;
int YearPos;
int DayPos;
int AndTotal;
int RateNum;
//
HBITMAP hClose;
HBITMAP hOpen;
HBITMAP hCounter;
HBITMAP hDial;
HBITMAP hChat;
HBITMAP hAlarm;
BOOL m_Force[16];
BOOL m_Rept[16];
void ProcessTotal(int Pos);
int accumulate[16];
CTime BeginTime[16];
int SearchPos;
int DatePos;//日期打折表的位置
int counter;//计数器
int accumulator[16];//累加器
int time1[16],time2[16];
int check_sum;//检验接收位是否正确时累加和
int check_addend;//检验接收位是否正确时使用的加数
int SendLen;//发送命令串的长度
char SendStr[50];//待发送的字符数组
float m_IsShut[16];//如果押金不够,则关闭用户通话
float AddFee[16];//附加费
CString duty;
BOOL m_Repeat[16];
int sSec,sMin,sHour;//通话起始时间
void ProcessFile(int Pos);
CFont myFont1,myFont2;
int RouteNum;
int SerialNum;
CString CodeView;
RECORD m_Result;
STATISTIC m_Statistic;
STATIS m_Statis;
};
#ifndef _DEBUG // debug version in CommucationView.cpp
inline CCommucationDoc* CCommucationView::GetDocument()
{ return (CCommucationDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_COMMUCATIONVIEW_H__3983050E_EE4C_11D4_84FA_82DB2AA0C63C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -