eis/inc/dao/MatStructDBAX.h

203 lines
7.9 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.

/*********************************************************************
*
* 文 件: MatStructDBAX.h //TODO请概述文件功能
*
* 版权所有: Shanghai Baosight Software Co., Ltd.
*
* 概述://TODO请添加本文件包含功能详细描述
* //TODO
* //TODO
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
* %USER%
*********************************************************************/
#ifndef _MatStruct_DBAXH
#define _MatStruct_DBAXH
#include <iDA/iDA.h>
#include "dbinc/T_MUR.h"
#include "dbinc/T_MU.h"
#include "dbinc/T_TRK_DIV.h"
using namespace iPlature;
namespace baosight{
class MatStruct;
class MatStructDBAX
{
//attributes
public:
long oracleSqlCode; // sqlcode of last operation
long oracleRowsProcessed; // number of executed rows
private:
char where[1000],order[1000];
long orgMuId;
char orgMuCreator[3];
short orgMusId;
T_MUR murLogicals[MAX_NO_LOGICALS];
//
// constructor
private:
iDA::Command cmd;
public:
/**********************************************************************
* 概述: 构造函数
* 函数名: MatStructDBAX
* 返回值: //TODO:返回值描述
* 参数列表: 参数类型 取值范围 描述
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
*
**********************************************************************/
MatStructDBAX();
public:
/**********************************************************************
* 概述: 析构函数
* 函数名: MatStructDBAX
* 返回值: //TODO:返回值描述
* 参数列表: 参数类型 取值范围 描述
* muCode : [IN/OUT] MU_CODE & //TODO:参数取值范围 <//TODO:参数描述>
* dbObj : [IN/OUT] MatStruct & //TODO:参数取值范围 <//TODO:参数描述>
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
*
**********************************************************************/
MatStructDBAX( MU_CODE &muCode , MatStruct &dbObj );
private:
/**********************************************************************
* 概述: set database keys
* 函数名: setKey
* 返回值: void //TODO:返回值描述
* 参数列表: 参数类型 取值范围 描述
* muCode : [IN/OUT] MU_CODE & //TODO:参数取值范围 <//TODO:参数描述>
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
*
**********************************************************************/
void setKey( MU_CODE &muCode );
/**********************************************************************
* 概述: set DB keys for partent material
* 函数名: setParentKey
* 返回值: void //TODO:返回值描述
* 参数列表: 参数类型 取值范围 描述
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
*
**********************************************************************/
void setParentKey( );
/**********************************************************************
* 概述: set muCodes from Oracle variables
* 函数名: setMuCode
* 返回值: void //TODO:返回值描述
* 参数列表: 参数类型 取值范围 描述
* muCode : [IN/OUT] MU_CODE & //TODO:参数取值范围 <//TODO:参数描述>
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
*
**********************************************************************/
void setMuCode( MU_CODE &muCode );
/**********************************************************************
* 概述: set keys for join select
* 函数名: setJoinKey
* 返回值: void //TODO:返回值描述
* 参数列表: 参数类型 取值范围 描述
* murObj : [IN/OUT] T_MUR & //TODO:参数取值范围 <//TODO:参数描述>
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
*
**********************************************************************/
void setJoinKey( T_MUR &murObj );
/**********************************************************************
* 概述: compare MUs
* 函数名: compareMUs
* 返回值: bool //TODO:返回值描述
* 参数列表: 参数类型 取值范围 描述
* muId : [IN/OUT] long //TODO:参数取值范围 <//TODO:参数描述>
* muCreator : [IN/OUT] char * //TODO:参数取值范围 <//TODO:参数描述>
* mesId : [IN/OUT] short //TODO:参数取值范围 <//TODO:参数描述>
* murObj : [IN/OUT] T_MUR & //TODO:参数取值范围 <//TODO:参数描述>
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
*
**********************************************************************/
bool compareMUs( long muId , char* muCreator , short mesId , T_MUR &murObj );
/**********************************************************************
* 概述: found MasterCoil
* 函数名: getMasterCoil
* 返回值: char* //TODO:返回值描述
* 参数列表: 参数类型 取值范围 描述
* muCode : [IN/OUT] MU_CODE & //TODO:参数取值范围 <//TODO:参数描述>
* tMu : [IN/OUT] T_MU //TODO:参数取值范围 <//TODO:参数描述>
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
*
**********************************************************************/
char* getMasterCoil( MU_CODE &muCode , T_MU tMu);
/**********************************************************************
* 概述: found all logical material units of a Master Coil
* 函数名: getLogicalMUs
* 返回值: char* //TODO:返回值描述
* 参数列表: 参数类型 取值范围 描述
* cntLogs : [IN/OUT] int & //TODO:参数取值范围 <//TODO:参数描述>
* dbObj : [IN/OUT] MatStruct & //TODO:参数取值范围 <//TODO:参数描述>
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
*
**********************************************************************/
char* getLogicalMUs( int &cntLogs , MatStruct &dbObj );
/**********************************************************************
* 概述: found all order materials of all logical units of a Master Coil
* 函数名: getOrderMUs
* 返回值: char* //TODO:返回值描述
* 参数列表: 参数类型 取值范围 描述
* cntLogs : [IN/OUT] int & //TODO:参数取值范围 <//TODO:参数描述>
* cntOrders : [IN/OUT] int & //TODO:参数取值范围 <//TODO:参数描述>
* dbObj : [IN/OUT] MatStruct & //TODO:参数取值范围 <//TODO:参数描述>
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
*
**********************************************************************/
char* getOrderMUs( int &cntLogs , int &cntOrders , MatStruct &dbObj );
/**********************************************************************
* 概述: set database keys
* 函数名: getRecord
* 返回值: char* //TODO:返回值描述
* 参数列表: 参数类型 取值范围 描述
*
* 版本历史
* 1.0 2011-06-10 fuxiandong //TODO请添加本次主要修改内容
*
**********************************************************************/
char* getRecord();
}; // end of class
}
#endif