📄 fileintf_js.h
字号:
/*-----------------------------------------------------------------
fileIntf.h Functions for files operation
2002/05/21
Started by zoohoo@163.com
-----------------------------------------------------------------*/
#ifndef __FILE_INTF_JS_H
#define __FILE_INTF_JS_H
#include "global.h"
#include <ptclib/ftp.h>
#define COLUMN_NUMBER 10 // the number of column in CDR files
#define FSUCCESS "success.tmp" // The temporary for success cdr
#define FFAILURE "failure.tmp" // The temporary for failure cdr
#define FIELD_LEN 50
#define INT_LEN 8
// combine the functions for operating files
// into class
class CSheet_JS
{
public:
char businessId[18];
char serviceId[18];
char customType[INT_LEN+1];
char areaNo[6];
char teleNumber[13];
char oldTeleNum[13];
char operateType[INT_LEN+1]; //0 开户,1 消户,2 号码变更,
//3 产品类型变更, 4 捆绑电话,5 解捆绑电话, 6 修改捆绑电话
char productType[INT_LEN+1];
char oldProductType[INT_LEN+1];
char genTime[20]; //YYYYMMDDHHMMSS
char endTime[20];
char flag[INT_LEN+1]; //暂时未用 btrmg noted
char levels[INT_LEN+1]; //暂时未用 btrmg noted
char addStrings[256];
char groupList[71];
char protocolType[2];
void PrintItem(void);
};
class CFileIntf_JS
{
private:
int JudgeTimeType(char * datetime, int size);
void AddDateDelimiter(char * datetime, char * desDatetime, int size);
public:
UserInterface userInterface;
CSheet_JS sheet;
// the function for ftp
int GetValueFromLine(PString line);
int GetValueFromLine_TD(PString line);
void SetBackFileName(PString * filename, PString chr);
// the function for share directory
int SaveToFile(PString filename);
int SheetToUserInterface(void);
};
///////////////add by wxp///////
class CSheet_ChD
{
public:
char flowNo[18];//流水号,17B
char OperateType[4];//处理类型,3B
char oldTel[13];//原号
char newTel[13];//新号
char BusinessNo[3];//行业编号2B
char nodeCity[3];//地区2B
char Date[9];//日期8B
char Time[7];//时间 6B
//加包头#,消息标志1B+消息长度4+包尾1B共0061字节
char groupList[2];//集团号
char protocolType[2];
char MsgFlag[2];//消息标志
//void PrintItem(void);
void GetDate(char* chDate);//得到日期,在chDate中
void GetTime(char* chTime);//得到时间,在chTime中
};
class CFileIntf_ChD
{
public:
UserInterface userInterface;
int SheetToUserInterface(void);
};
#endif /* __FILE_LITF_H */
int GetValueFromMsg(PString line,int socketno);
int GetValueFromMsg_ChD(PString line,int socketno);
//void changetimeformat(char * datetime, char * desDatetime, int size);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -