75 lines
2.1 KiB
C
75 lines
2.1 KiB
C
|
|
#pragma once
|
|||
|
|
#include "MemRdWt.h"
|
|||
|
|
//#include "BaseFun.h"
|
|||
|
|
#include "GeometryUtils.h"
|
|||
|
|
|
|||
|
|
#include <QDir>
|
|||
|
|
#include <QFileDialog>
|
|||
|
|
#include <QTextStream>
|
|||
|
|
//#include <QMap>
|
|||
|
|
/*struct INFORMATION
|
|||
|
|
{
|
|||
|
|
char Name[80];
|
|||
|
|
int index;
|
|||
|
|
};*/
|
|||
|
|
//whp add 2020.7.10 for <20><><EFBFBD>ݱ<EFBFBD><DDB1>Զ<EFBFBD>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>
|
|||
|
|
/*struct DEFAULTTABLE
|
|||
|
|
{
|
|||
|
|
QString TableName;
|
|||
|
|
int ZdNum;
|
|||
|
|
Slf_TABLE_FIELD *tinfo;
|
|||
|
|
};*/
|
|||
|
|
struct DEFAULTTABLE
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
QString TableName;
|
|||
|
|
QString TableAliasName;
|
|||
|
|
int ZdNum;
|
|||
|
|
Slf_OBJECT_FIELD tinfo[50];//*tinfo;
|
|||
|
|
QString menuinfo[50];
|
|||
|
|
};
|
|||
|
|
//whp add 2020.7.10 for <20><><EFBFBD>ݱ<EFBFBD><DDB1>Զ<EFBFBD>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>
|
|||
|
|
struct ZdInf
|
|||
|
|
{
|
|||
|
|
QString OutZd,InZd,ZdType,ZdLen,ZdAlias;
|
|||
|
|
};
|
|||
|
|
struct TRANTABLEINF
|
|||
|
|
{
|
|||
|
|
QString OutName,InName,AliasName;
|
|||
|
|
int ZdNum;
|
|||
|
|
ZdInf *tinfo;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD>㣬Ӧ<E3A3AC>þ<EFBFBD><C3BE><EFBFBD>tinfo.InZd<5A><64><EFBFBD><EFBFBD>
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD><EFBFBD>(<28><>BTMDEP-THICK<43><4B>EDEP-SDEP)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>ȡ<EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD>InNameList<73><74>
|
|||
|
|
QStringList InNameList;
|
|||
|
|
};
|
|||
|
|
struct OUTINF
|
|||
|
|
{
|
|||
|
|
char OutName[64];//slf<6C>ֶ<EFBFBD><D6B6><EFBFBD>
|
|||
|
|
int CodeType,CodeLen,Pos;
|
|||
|
|
int CodeType2,CodeLen2,Pos2;
|
|||
|
|
char InName1[64],InName2[64];//wis<69>ֶ<EFBFBD><D6B6><EFBFBD>
|
|||
|
|
QString Sep;
|
|||
|
|
};
|
|||
|
|
class WisTableTran
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
WisTableTran();
|
|||
|
|
~WisTableTran();
|
|||
|
|
int m_TranNum;//<2F>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫƥ<D2AA><C6A5><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD>ı<EFBFBD><C4B1><EFBFBD>
|
|||
|
|
TRANTABLEINF *m_TTI;//m_TranTableInf;//<2F>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫƥ<D2AA><C6A5><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD>ı<EFBFBD><C4B1><EFBFBD>Ϣ
|
|||
|
|
DEFAULTTABLE *WisDefTable;
|
|||
|
|
DEFAULTTABLE *SlfDefTable;
|
|||
|
|
inline QStringList GetStringList(QString line,bool IsSpa,bool IsTab,bool IsCom,bool IsSem,bool DelDubSpa);
|
|||
|
|
void GetTTI(TRANTABLEINF &m_TTI,QStringList temp);
|
|||
|
|
//DEFAULTTABLE SetTableInf(QString TableName,int num,QStringList ZdName,QStringList ZdLen,QStringList ZdType,QStringList HzName);
|
|||
|
|
DEFAULTTABLE SetTableInf(QString TableName,QString TableHzName,int num,QStringList ZdName,QStringList HzName,QStringList ZdUnit,QStringList ZdType,QStringList ZdLen,QStringList ZdRes);
|
|||
|
|
bool GetTranTableInf();
|
|||
|
|
bool HaveTranTable();//QStringList TableList);
|
|||
|
|
int GetTranTableNo(QString TableName,int fieldNum,Slf_TABLE_FIELD* tableFieldInfo,bool IsS2W);
|
|||
|
|
OUTINF *outinf;
|
|||
|
|
void GetOutInf(int TranTable);
|
|||
|
|
bool ReadWisDefTable();
|
|||
|
|
bool ReadSlfDefTable();
|
|||
|
|
//void InitDefauleTable(QString fileName,DEFAULTTABLE *DefauleTable);
|
|||
|
|
void InitDefauleTable(bool isWis);
|
|||
|
|
};
|