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

📄 salemang.h

📁 IP电话计费管理系统本地版
💻 H
字号:
//{{AFX_INCLUDES()
#include "msflexgrid.h"
//}}AFX_INCLUDES
#if !defined(AFX_SALEMANG_H__6D247CF3_B00F_4C03_9730_3AF630386139__INCLUDED_)
#define AFX_SALEMANG_H__6D247CF3_B00F_4C03_9730_3AF630386139__INCLUDED_


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SaleMang.h : header file
//
#include "LineCount.h"
#include "SaleChgOper.h"

/////////////////////////////////////////////////////////////////////////////
// CSaleMang dialog

class CSaleMang : public CDialog
{
// Construction
public:
	int nGridCount;
	CLineCount *ldlg;
	void ResetList(int nLine);
	void ControlLine(int nClk,int nLine);
	void GetFeeRate(CString strCalledNum,int nLineNum);//依据被叫号从文件中获取费率

	void CountMoney(int nLine);//结算一次通话的话费
    int nTimeLen[16];
	CSaleMang(CWnd* pParent = NULL);   // standard constructor
    int nCountClk[16];
	// Dialog Data
	//{{AFX_DATA(CSaleMang)
	enum { IDD = IDD_DIALOG_SALE_MANG };
	CListCtrl	m_ListScroll;
	CEdit	m_eCTime;
	CEdit	m_AddMany;
	CEdit	m_AddLine;
	CButton	m_AddMoney;
	CButton	m_LineButton16;
	CButton	m_LineButton15;
	CButton	m_LineButton14;
	CButton	m_LineButton13;
	CButton	m_LineButton12;
	CButton	m_LineButton11;
	CButton	m_LineButton10;
	CButton	m_LineButton9;
	CButton	m_LineButton8;
	CEdit	m_eCName;
	CString	m_strCName;
	CString	m_strCTime;
	CMSFlexGrid	m_SaleGrid;
	CString	m_strCBCount;
	CString	m_strCDCount;
	CString	m_strCDStream;
	CMSFlexGrid	m_HideGrid1;
	//}}AFX_DATA
public:
	BOOL bCanQuit;
	BOOL bQuitSaleMang;
	BOOL bCheckLineCount;
	CString strNum[16];
	void ShowButton();
	void ClickLineCount(int nClickLine);
	int nLineCountFlag;
	void GetFromTemp(CString strLine);
	int nCountFlag;
	CSaleChgOper odlg;
	CString strTimeLen;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSaleMang)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
public:
    double f5[16][4];//优惠时段每分钟费率和折扣保存
	int  nSaleCutLevelFlag[16];
	BOOL bSaleCutIsValid[16];//判断某线打折是否过期
	BOOL bAddKey;//用来判断是否是处理十六路
	BOOL OnClickNum(int nClickNum);
	CString strRestoreTime;
	int nCountMoneyTimes[16];
	int nHolidayCount[16];//节假日计数器
	int nWeekCount[16];//周末计数器
	int nTimeBetweenCount[16];//优惠时段计数器
	int nNoSaleCutCount[16];//无折扣优惠计数器
	void SetAllLineHot();
	BOOL bCountLineAll;
	CString strGFeeRate[16];//费率
	CString strSFeeRate[16];//表示附加费率
	CString strTotalORate[16];//每一线的总附加费
	double fTotalORate[16];
	CString strOFTimeLen[16];//表示附加费率时长
	CString strStartTLen[16];//起计时长
	int OnCountTLen(CString strStart,CString strCurrent);
	virtual void OnCancel();
    int nTempCount[16];//03-31 保存增加时长的计数器,
// Implementation
protected:
    HWND hGrid;
	// Generated message map functions
	//{{AFX_MSG(CSaleMang)
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	virtual void OnOK();
	afx_msg void OnChgoper();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnLineCount();
	afx_msg void OnLineCount1();
	afx_msg void OnLineCount2();
	afx_msg void OnLineCount3();
	afx_msg void OnLineCount4();
	afx_msg void OnLineCount5();
	afx_msg void OnLineCount6();
	afx_msg void OnLineCount7();
	afx_msg void OnLineCount9();
	afx_msg void OnLineCount8();
	afx_msg void OnLineCount10();
	afx_msg void OnLineCount11();
	afx_msg void OnLineCount12();
	afx_msg void OnLineCount13();
	afx_msg void OnLineCount14();
	afx_msg void OnLineCount15();
	afx_msg void OnAddMoney();
	afx_msg void OnLineCountAll();
	afx_msg void OnDblClickMsflexgridSale();
	afx_msg void OnClickListScroll(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnQuitConf();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SALEMANG_H__6D247CF3_B00F_4C03_9730_3AF630386139__INCLUDED_)

⌨️ 快捷键说明

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