114 lines
3.7 KiB
C++
114 lines
3.7 KiB
C++
/*********************************************************************
|
|
*
|
|
* 文 件: CopyProcess.h 处理原始数据拷贝
|
|
*
|
|
* 版权所有: Shanghai Baosight Software Co., Ltd.
|
|
*
|
|
* 概述:
|
|
* :
|
|
* :
|
|
*
|
|
* 版本历史
|
|
* 1.0 2010-09-02 echo_li 增加注释
|
|
*
|
|
*********************************************************************/
|
|
#ifndef COPYPROCESS_H_
|
|
#define COPYPROCESS_H_
|
|
|
|
#include <base/DbgStructures.h>
|
|
|
|
namespace baosight{
|
|
|
|
/*********************************************************************
|
|
* 类 名: CopyProcess
|
|
* 版权所有: Shanghai Baosight Software Co., Ltd.
|
|
* 类 职 责:负责原始数据的拷贝
|
|
* :
|
|
* :
|
|
* 版本历史
|
|
* 1.0 2010-09-02 echo_li 增加注释
|
|
*
|
|
*********************************************************************/
|
|
class CopyProcess
|
|
{
|
|
public:
|
|
CopyProcess(void);
|
|
public:
|
|
virtual ~CopyProcess(void);
|
|
|
|
public:
|
|
/**********************************************************************
|
|
* 概述: 拷贝原始数据
|
|
* 函数名: CopyPrimData
|
|
* 返回值: short
|
|
* 参数列表: 参数类型 取值范围 描述
|
|
* oldCoilId: const char * 源卷号
|
|
* newCoilId: const char * 新卷号
|
|
*
|
|
* 版本历史
|
|
* 1.0 2010-09-02 echo_li 增加注释
|
|
*
|
|
**********************************************************************/
|
|
short CopyPrimData(const char* oldCoilId,const char* newCoilId);
|
|
/**********************************************************************
|
|
* 概述: 插入MU数据
|
|
* 函数名: InsertMaterialInfo
|
|
* 返回值: short
|
|
* 参数列表: 参数类型 取值范围 描述
|
|
*
|
|
* 版本历史
|
|
* 1.0 2010-09-02 echo_li 增加注释
|
|
*
|
|
**********************************************************************/
|
|
short InsertMaterialInfo();
|
|
/**********************************************************************
|
|
* 概述: 插入原始数据相关表
|
|
* 函数名: InsertTable
|
|
* 返回值: short
|
|
* 参数列表: 参数类型 取值范围 描述
|
|
* muCode: MU_CODE
|
|
* newMuId1: long
|
|
*
|
|
* 版本历史
|
|
* 1.0 2010-09-02 echo_li 增加注释
|
|
*
|
|
**********************************************************************/
|
|
virtual short InsertTable(MU_CODE muCode,long newMuId1)=0;
|
|
/**********************************************************************
|
|
* 概述: 剪切设定计算
|
|
* 函数名: CalculateDivLen
|
|
* 返回值: void
|
|
* 参数列表: 参数类型 取值范围 描述
|
|
* muCode: const MU_CODE
|
|
*
|
|
* 版本历史
|
|
* 1.0 2010-09-02 echo_li 增加注释
|
|
*
|
|
**********************************************************************/
|
|
virtual void CalculateDivLen(const MU_CODE muCode)=0;
|
|
/**********************************************************************
|
|
* 概述: 处理过渡卷数据
|
|
* 函数名: ProcessDummy
|
|
* 返回值: short
|
|
* 参数列表: 参数类型 取值范围 描述
|
|
* muCode: const MU_CODE
|
|
* matStructEntry: const MAT_STRUCTURE
|
|
*
|
|
* 版本历史
|
|
* 1.0 2010-09-02 echo_li 增加注释
|
|
*
|
|
**********************************************************************/
|
|
virtual short ProcessDummy(const MU_CODE muCode,const MAT_STRUCTURE matStructEntry)=0;
|
|
|
|
private:
|
|
MAT_STRUCTURE material;
|
|
DbgStructures dbgStruct;
|
|
MAT_STRUCTURE entryStructure;
|
|
private:
|
|
char* mp_dbMessage; // Pointer for DB Messages
|
|
|
|
};
|
|
};
|
|
|
|
#endif
|