📄 statinfo.h
字号:
// 实体类CStatInfo记录收费站需要的统计信息。
// 特别地:本类只记录信息而不直接生成消息,由于不同公路业主对
// 报表的要求不同,收费站软件可能会经常要求我们更改消息格式,
// 为了屏蔽变化,消息的生成由系统界面类CRecordInterface完成,
// 我们的目标是该类的内容对不同的业主尽量保持不变
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_STATINFO_H__05AA8D50_E1BA_4583_85AB_CF684A319B69__INCLUDED_)
#define AFX_STATINFO_H__05AA8D50_E1BA_4583_85AB_CF684A319B69__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CStatInfo
{
public:
void SavePostevs();
UINT PostevsStatDate();
UINT PostevsHour();
UINT PostevsDay();
UINT PostevsMonth();
UINT PostevsYear();
UINT PostevsMinuteOfDay(); //tyj add
UINT PostevsDayCount();//tyj
BOOL HasPrePrint();
void HasPrePrint(BOOL value);
long InvoiceStart(int type);
long EsInvoiceEnd(int type);
long GetInvoiceNow(int type);
void IncInvoiceNow(int type);
void SetInvoiceStart(int type,long nValue);
void SetInvoiceNow(int type,long nValue);
void SetInvoiceEnd(int type,long nValue);
__int64 EndTime();
void EndTime(char *pStr);
ULONG ShiftTime();
void SetShiftTime();
UCHAR WorkMode();
void WorkMode(UCHAR value);
UCHAR LaneStatus();
void LaneStatus(UCHAR status);
UCHAR LastShiftNO();
void LastShiftNO(UCHAR value);
UCHAR ShiftNO();
void ShiftNO(UCHAR value);
BOOL CollectType();
void CollectType(BOOL value);
UINT CollectNO();
void CollectNO(UINT nValue);
void ClearMh();
void ClearEs();
// 以下信息用于生成时报表消息
ULONG MhClassMoney(UCHAR nClass);
UINT MhModifyCount();
UINT MhViolateCount();
UINT MhNormalClassCount(UCHAR nClass);
UINT MhClassCount(UCHAR nClass);
UINT MhTotalCount();
UINT MhLoopCount(); //小时内感应车流数
UINT MhTypeCount(UCHAR nClass); //小时内分车类统计的总车流
UINT MhClassTypeCount(UCHAR nClass,UCHAR nType); //小时内分车型、车类统计的总车流
UINT MhBadInvoiceCount(); //小时内的废票数
UINT MhClassBadInvoiceCount(UCHAR nClass); //小时内分车型统计的废票数
ULONG MhTotalMoney(); //小时总金额
ULONG MhBadMoney(); //小时内废票总金额
UINT EsLoopCount(); //班次内感应车流数
UINT EsTypeCount(UCHAR nClass); //班次内分车类统计的总车流
UINT EsClassTypeCount(UCHAR nClass,UCHAR nType); //班次内分车型、车类统计的总车流
UINT EsBadInvoiceCount(); //班次内的废票数
UINT EsClassBadInvoiceCount(UCHAR nClass); //班次内分车型统计的废票数
ULONG EsClassMoney(UCHAR nClass); //班次内分车型统计的人民币收入
ULONG EsBadMoney(); //班次内废票总金额
ULONG EsClassBadMoney(UCHAR nClass);//班次内分车型统计的废票金额
// 以下信息用于生成交班消息/上班消息
ULONG EsTotalMoney();
UINT EsModifyCount();
UINT EsViolateCount();
UINT EsNormalClassCount(UCHAR nClass);
UINT EsClassCount(UCHAR nClass);
UINT EsTotalCount();
UCHAR CrReason();
void CrReason(UCHAR value);
UCHAR AkStatus();
void AkStatus(UCHAR status);
UCHAR AkIndex();
void AkIndex(UCHAR nIndex);
void IncBusCount(); //车流量++
void IncMoney(); //累计金额
void IncModifyCount(); //更改次数++
void IncBadInvoice(); //费票数++
void IncLoopBusCount(); //感应车流数++
void Initial();
CStatInfo();
private:
void ReadPostevs();
};
#endif // !defined(AFX_STATINFO_H__05AA8D50_E1BA_4583_85AB_CF684A319B69__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -