📄 pcs_snd_ys_p.h
字号:
#ifndef PCS_SND_YS_P
#define PCS_SND_YS_P
#define SJFL_ZDYS '1'
#define SJFL_PDYS '2'
#define YSSM_MSG_LEN 109
#define YSSJ_MSG_LEN 25
#define MID_LEN 100
#define SHORT_LEN 10
#define SENDED '3'
#define HZ_SENDED '2'
#define ERROR_LOG_FILE "/usr/bkfx/log/errlog"
#define LOG_NORMAL "LOG_NORMAL "
#define LOG_ERROR "LOG_ERROR "
#define END ""
#define DEFAULT_TIMEINTERVAL 10
#define INIT_INTERVAL 360
/*
#define DEBUG
*/
char *message;
int iTInterval;
char BSBH[3];
int ERROR;
struct stZDYSSMDBRec
{
char bkdh[8];
char yslx[2];
char wjbh[3];
int qdqa;
char kq[7];
float dingj;
long dyzs;
float dyk;
long lszs;
float lsk;
int nf;
long int xh;
};
struct stZDYSSMDBRec_id
{
short qdqa;
short dingj;
short dyzs;
short dyk;
short lszs;
short lsk;
};
struct stZDYSDBRec
{
long int yffs;
long int qzlss;
char zfjbh[9];
long int xh;
};
struct stPDYSSMDBRec
{
char bkdh[8];
char yslx[2]; /*//modified*/
char wjbh[3];
int qdqa;
int qdqb;
int zdqa;
int zdqb;
char kq[7];
float dingj;
long dyzs;
float dyk;
long lszs;
float lsk;
int nf;
long int xh;
};
struct stPDYSSMDBRec_id
{
short qdqa;
short qdqb;
short zdqa;
short zdqb;
short dingj;
short dyzs;
short dyk;
short lszs;
short lsk;
};
struct stPDYSDBRec
{
long int zjfs;
long int lszjfs;
char zfjbh[9];
long int xh;
};
void sqlerror(void);
void ErrorEnded(long int *key,char *dt);
void trim(char *CAline);
int sbh_format(char *tempstr);
int InitPcsSndYSP( void );
int myapi_ReadString(char *Pstring,char *Cstring,int m,int n);
int UpdateSndLogRecStatus( long int lg_Key );
int myapi_ReadALinefromF( char *cALine,FILE *hTable );
int GetTimeInterval(char *);
int GetBSBH(void);
void itoa(long The_int_data, char* The_out_string, int j);
void ftoa(float The_float_data, char *The_out_string, int m, int j);
void getsbh(char *bkdh,char *tempstring);
void str_format(char *str,int n);
void ProcessError(char *,char *,char *);
void PutintoF(char *);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -