📄 feeview.h
字号:
// CFeeView.h : interface of the CFeeView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_FEEVIEW_H__130B54C0_71C5_4BA7_A5F1_9F418B3D0FA1__INCLUDED_)
#define AFX_FEEVIEW_H__130B54C0_71C5_4BA7_A5F1_9F418B3D0FA1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define VIEWREALTIMESHOW 1
#define VIEWTELEQUERY 2
#define VIEWLINEQUERY 3
#define VIEWBLACKRISING 4
#define VIEWBLACKSUBQUERY 5
#define VIEWFEEDIRECTIONQUERY 6
#define VIEWFEETIMECHANGEQUERY 7
#define VIEWFEETELEQUERY 8
#define VIEWTALKRECORDDETAILQUERY 9
#define VIEWMGMTQUERY 10
#define VIEWTALKREPORTCDRQUERY 11
#define ID_TIEMR_FRONTFEE_WINDOW 1
#define ID_TIEMR_TELEPHONEQUERY_WINDOW 2
class CFeeDoc;
class CFeeView : public CListView
{
protected: // create from serialization only
CFeeView();
DECLARE_DYNCREATE(CFeeView)
// Attributes
public:
CFeeDoc* GetDocument();
// Operations
public:
long telephonenum ;
unsigned char viewColumnNum;
unsigned int realtimeShowFlag;//D0:1callingnum,D1:1callingregist,D2:1callednum,D3:1calledregist,D4:1talkstart,D5:1 talkendstart,D6 TalkTime,D7:TalkFee
unsigned int realtimeShowNum;
long oldYear,oldMonth,oldDay,oldHour,oldMinute,oldSecond;
long showidx;
unsigned int actViewWindow;//D0:1 realtimeshow;
CString telequeryconditionname,telequeryconditionadr,telequeryconditionnum;
CString telequeyconditionkind,telequeryconditionstatus,telequeryconditionbank;
CString telequeryconditonbankaccount;
static int CALLBACK ListViewCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
CString linequerycondition_outLayoutLine;
CString linequerycondition_outLayoutColumn;
CString linequerycondition_inLayoutLine;
CString linequerycondition_inLayoutColumn;
CString linequerycondition_lineroom;
CString linequerycondition_lineroomKind;
CString linequerycondition_lineteleNum;
CString blacksubquerycondition_telenum;
CString blacksubquerycondition_starttime;
CString blacksubquerycondition_endtime;
CString blacksubquerycondition_talktime;
CString blacksubquerycondition_talkfee;
CString blacksubquerycondition_endtalktime;
CString blacksubquerycondition_endtalkfee;
CString feetelequerycondition_num;
CString feetelequerycondition_rent;
CString feetelequerycondition_rentper;
CString feetelequerycondition_startper;
CString feetelequerycondition_stepper;
CString feetelequerycondition_addper;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFeeView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
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);
//}}AFX_VIRTUAL
// Implementation
public:
void RemoveAll();
void RemoveAllColumn();
void RemovePreTimer();
long availdate(long lyear,long lmonth,long lday);
void frontTimeIni(long year,long month,long day,long hour,long minute,long second);
void TelePhoneQueryList(unsigned int titlemodifyflag,CString tname,CString tadr,CString tnum,CString tkind,CString tstatus,CString tbank,CString tbankaccount);
void teleList(CPoint point);
void lineList(CPoint point);
void feedirectionlist(CPoint point);
void feetimechagelist(CPoint point);
void feetelelist(CPoint point);
void mgmtlist(CPoint point);
void OnTelephonemenuDandM(void);
void OnLinemanagemenuDandM(void);
void OnFeeDirectionmenuDandM(void);
void OnFeeTimemenuDandM(void);
void OnFeeTelemenuDandM(void);
void OnMgmtmenuDandM(void);
void lineQueryList(unsigned int titlemodifyflag,CString oline,CString ocolumn,CString iline,CString icolumn,CString lineroom,CString lrkind,CString linetelenum);
void blacksubQueryList(unsigned int titlemodifyflag,CString telenum,CString starttime,CString endtime,CString talktime,CString endtalktime,CString talkfee,CString endtalkfee);
void feedirectionQueryList(unsigned int titlemodifyflag);
void feetimechangeQueryList(unsigned int titlemodifyflag);
void feeteleQueryList(unsigned int titlemodifyflag,CString feetelenum,CString freeproperty);
void blancesetQueryList(unsigned int titlemodifyflag);
void MgmtQueryList(unsigned int titlemodifyflag);
// float feepro(CString strcallingnum,CString strcallednum,CString strcallstartdate,\
// CString strcallstarttime,CString strcallenddate,CString strcallendtime,\
// CString strtalktime);
//print
int * pDx, * pFormat; // datas about column size and format (center, right ..)
char ** pColTitle; // columns titles
int iItemXPage, iNumCol, iTotItem; // number of item in page, of columns and of tot number of items in list control
CString csFtHead, csFtFoot, csFtPrint; // fonts type names
CRect rcMarginMM; // contain the margins in millimeters
int iFtHead, iFtFoot, iFtPrint; // fonts sizes
CSize szFoot; // internal use
CFont ftPrint, ftHead, ftFoot; // fonts used for printing
CSize szFtPrint, szFtHead, szFtFoot; // sizes of fonts (in device unit)
CString csPageHead; // text of header
CString csPageFooter; // text of footer
CString strTitle;
bool DoPreparePrinting(CPrintInfo* pInfo);
void SubtractMargin(CDC * pDC, CRect &rc);
void OnPrint(CDC* pDC, CPrintInfo* pInfo);
CSize PrintListFoot(CDC * pDC, CRect & rcPage, bool bCalc);
CSize PrintListHead(CDC * pDC, CRect & rcPage, bool bCalc);
CSize PrintPageFoot(CDC * pDC, CRect & rcPage, bool bCalc);
CSize PrintPageHead(CDC * pDC, CRect & rcPage, const int nPage, const int iMaxPage, bool bCalc);
//print
//print month face
BOOL OnPreparePrintingmonthface(CPrintInfo* pInfo);
void OnBeginPrintingmonthface(CDC * pDC, CPrintInfo * pInfo);
void OnPrintSetprintermonthface();
void OnPrintSetfontmonthface() ;
void OnPrintSetmarginmonthface() ;
void OnEndPrintingmonthface(CDC* pDC, CPrintInfo* pInfo);
bool DoPreparePrintingmonthface(CPrintInfo* pInfo);
void SubtractMarginmonthface(CDC * pDC, CRect &rc);
void OnPrintmonthface(CDC* pDC, CPrintInfo* pInfo);
CSize PrintListFootmonthface(CDC * pDC, CRect & rcPage, bool bCalc);
CSize PrintListHeadmonthface(CDC * pDC, CRect & rcPage, bool bCalc);
CSize PrintPageFootmonthface(CDC * pDC, CRect & rcPage, bool bCalc);
CSize PrintPageHeadmonthface(CDC * pDC, CRect & rcPage, const int nPage, const int iMaxPage, bool bCalc);
//print month face
virtual ~CFeeView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
void SetListCtrlStyle();
//{{AFX_MSG(CFeeView)
afx_msg void OnRealtimeshowStart();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnRealtimeshowEnd();
afx_msg void OnTelephoneQuery();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnTelephoneAdd();
afx_msg void OnTelequeryAll();
afx_msg void OnTelequeryCondition();
afx_msg void OnTelephoneDelete();
afx_msg void OnTelephoneModify();
afx_msg void OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnLinequeryMac();
afx_msg void OnLinequerySub();
afx_msg void OnLinequeryAll();
afx_msg void OnLinequeryCondition();
afx_msg void OnLinemanageAdd();
afx_msg void OnLinemanageModify();
afx_msg void OnLinemanageDelete();
afx_msg void OnBlackrisingAll();
afx_msg void OnBlackrisingCondition();
afx_msg void OnBlackqueryAll();
afx_msg void OnBlackqueryCondition();
afx_msg void OnBlackcleanAll();
afx_msg void OnFeeScan();
afx_msg void OnFeeAdd();
afx_msg void OnFeeModify();
afx_msg void OnFeeDelete();
afx_msg void OnAddfeeAdd();
afx_msg void OnAddfeeScan();
afx_msg void OnTelefeeAdd();
afx_msg void OnTelefeeModify();
afx_msg void OnTelefeeDelete();
afx_msg void OnAddfeeModify();
afx_msg void OnAddfeeDelete();
afx_msg void OnBalanceAll();
afx_msg void OnBalanceCondition();
afx_msg void OnTalkrecordDetail();
afx_msg void OnPrintSetprinter();
afx_msg void OnPrintSetfont();
afx_msg void OnPrintSetmargin();
afx_msg void OnMdbBackupSpc();
afx_msg void OnMdbBackupJifei();
afx_msg void OnMdbRetriveSpc();
afx_msg void OnMdbRetriveJifei();
afx_msg void OnMdbDeleteSpc();
afx_msg void OnMdbDeleteJifei();
afx_msg void OnMgmtScan();
afx_msg void OnMgmtAdd();
afx_msg void OnMgmtModify();
afx_msg void OnMgmtDelete();
afx_msg void OnBlackcleanCondition();
afx_msg void OnFeetelequeryAll();
afx_msg void OnFeetelequeryCondition();
afx_msg void OnTalkrecordAll();
afx_msg void OnPrintformatface();
afx_msg void OnPrinttable();
afx_msg void OnPrintmonthface();
afx_msg void OnReportQuery();
afx_msg void OnReportQueryAfterSet();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in feeView.cpp
inline CFeeDoc* CFeeView::GetDocument()
{ return (CFeeDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FEEVIEW_H__130B54C0_71C5_4BA7_A5F1_9F418B3D0FA1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -