eis/inc/cda/SmgDAO.h

134 lines
4.3 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*********************************************************************
*
* 文 件: SendMagDAO.h 电文发送模块数据访问接口
*
* 版权所有: Shanghai Baosight Software Co., Ltd.
*
* 概述:
* :
* :
*
* 版本历史
* 1.0 2010-08-05 echo_li 初次建立
*
*********************************************************************/
#ifndef SENDMAGDAO_H_
#define SENDMAGDAO_H_
#include "T_TEL_SEND.h"
#include <string>
#include <common/BasicStruct.h>
#include <vector>
#include <string>
#include <dao/DbStandardDBAX.h>
using namespace std;
namespace baosight
{
/*********************************************************************
* 类 名: TeleDAO
* 版权所有: Shanghai Baosight Software Co., Ltd.
* 类 职 责:
* :
* :
* 版本历史
* 1.0 2010-08-05 echo_li 初次建立
*
*********************************************************************/
class SmgDAO
{
public:
SmgDAO();
virtual ~SmgDAO();
public:
/**********************************************************************
* 概述: 读取带发送的电文数据
* 函数名: GetSendData
* 返回值: int 成功返回电文的序号,失败返回-1
* 参数列表: 参数类型 取值范围 描述
* sql: string 读取条件
* sendData: string& 返回的电文数据
* eventNo: int & 返回的电文事件号
*
* 版本历史
* 1.0 2010-08-05 echo_li 初次建立
*
**********************************************************************/
virtual int GetSendData(string sql,string& sendData,int& eventNo);
/**********************************************************************
* 概述: 根据电文序号,和电文发送标志,更新电文数据
* 函数名: UpdateSendData
* 返回值: short
* 参数列表: 参数类型 取值范围 描述
* teleSeq: int 电文序号
* flag: short 发送标志
*
* 版本历史
* 1.0 2010-08-05 echo_li 初次建立
*
**********************************************************************/
virtual short UpdateSendData(int teleSeq,short flag);
/**********************************************************************
* 概述: 读取生产实绩理论重量
* 函数名: ReadProdCalcWeight
* 返回值: int
* 参数列表: 参数类型 取值范围 描述
* muCode: const MU_CODE &
* source: const char *
*
* 版本历史
* 1.0 2010-08-12 echo_li 初次建立
*
**********************************************************************/
virtual int ReadProdCalcWeight(const MU_CODE& muCode,const char* source);
/**********************************************************************
* 概述: 读取出口缺陷数据
* 函数名: ReadExitDefects
* 返回值: short
* 参数列表: 参数类型 取值范围 描述
* muCode: const MU_CODE &
* sDefects: S_DEFECTS &
*
* 版本历史
* 1.0 2010-08-13 echo_li 初次建立
*
**********************************************************************/
virtual short ReadExitDefects(const MU_CODE& muCode,S_DEFECTS& sDefects);
/**********************************************************************
* 概述: 读取指定数量的计划如果Number为0则读取所有的计划
* 函数名: ReadScheduleList
* 返回值: short
* 参数列表: 参数类型 取值范围 描述
* coilList: vector<string> & 钢卷号列表
* number: int 钢卷数量
*
* 版本历史
* 1.0 2010-08-18 echo_li 初次建立
*
**********************************************************************/
virtual short ReadScheduleList(vector<string> &coilList,int number = 0);
protected:
/**********************************************************************
* 概述: 初始化数据访问条件
* 函数名: InitMember
* 返回值: void
* 参数列表: 参数类型 取值范围 描述
*
* 版本历史
* 1.0 2010-08-05 echo_li 初次建立
*
**********************************************************************/
void InitMember();
protected:
char* mp_dbMessage;
char m_dbWhere[200];
char m_dbOrder[100];
};
};
#endif