608 lines
18 KiB
C++
608 lines
18 KiB
C++
// Version: 2014.9.2 16:30:15
|
|
|
|
// File: T_LOV_STEELGRADE.cpp
|
|
|
|
#include "T_LOV_STEELGRADE.h"
|
|
|
|
T_LOV_STEELGRADE::T_LOV_STEELGRADE(){
|
|
// initialise all membervariables
|
|
initial();
|
|
}
|
|
T_LOV_STEELGRADE::~T_LOV_STEELGRADE(){
|
|
}
|
|
void T_LOV_STEELGRADE::initial(){
|
|
// initialise all membervariables
|
|
set_SteelGrade("");
|
|
set_OrderQuality("");
|
|
set_OrderQualityZi(-1);
|
|
set_SteelClass("");
|
|
set_SteelClassZi(-1);
|
|
set_SGCode(0,0);
|
|
set_SGCodeZi(0,-1);
|
|
set_SGCode(1,0);
|
|
set_SGCodeZi(1,-1);
|
|
set_SGCode(2,0);
|
|
set_SGCodeZi(2,-1);
|
|
set_SGCode(3,0);
|
|
set_SGCodeZi(3,-1);
|
|
set_SGCode(4,0);
|
|
set_SGCodeZi(4,-1);
|
|
set_SGCode(5,0);
|
|
set_SGCodeZi(5,-1);
|
|
set_SGCode(6,0);
|
|
set_SGCodeZi(6,-1);
|
|
set_SGCode(7,0);
|
|
set_SGCodeZi(7,-1);
|
|
set_SGCode(8,0);
|
|
set_SGCodeZi(8,-1);
|
|
set_SGCode(9,0);
|
|
set_SGCodeZi(9,-1);
|
|
set_toc("");
|
|
set_tocZi(-1);
|
|
set_tom("");
|
|
set_tomZi(-1);
|
|
set_mop("");
|
|
set_mopZi(-1);
|
|
set_mou("");
|
|
set_mouZi(-1);
|
|
// initialies Primary key members
|
|
set_k_SteelGrade("");
|
|
}
|
|
T_LOV_STEELGRADE::T_LOV_STEELGRADE(const char* arg1)
|
|
{
|
|
initial();
|
|
setPrimKey (arg1);
|
|
//read DB record
|
|
dbAccess = true;
|
|
dbMessage = readDB();
|
|
if ( dbMessage != NULL ) {dbAccess = false;}
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE:: execute(const char* sql , long* count){
|
|
return( db.execute( sql , count ) );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE:: dbCommit(){
|
|
return( db.dbCommit( ) );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE:: dbRollback(){
|
|
return( db.dbRollback( ) );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::readDB(){
|
|
// DB Trace is off
|
|
return( db.readDB(*this) );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::updateDB(){
|
|
// DB Trace is off
|
|
return( db.updateDB(*this) );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::insertDB(){
|
|
// DB Trace is off
|
|
return( db.insertDB(*this) );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::deleteDB(){
|
|
// DB Trace is off
|
|
return( db.deleteDB(*this) );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::deleteDB(const char * where, long* count){
|
|
// DB Trace is off
|
|
return( db.deleteDB( where , count ) );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::openSetDB(const char * where,const char* order){
|
|
// DB Trace is off
|
|
return( db.openSetDB( where , order ) );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::countDB(const char * where, long* count){
|
|
// DB Trace is off
|
|
return( db.countDB( where , count ) );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::getSetDB(){
|
|
// DB Trace is off
|
|
return( db.getSetDB(*this) );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::closeSetDB(){
|
|
// DB Trace is off
|
|
return( db.closeSetDB() );
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::storeDB(){
|
|
char* ret = NULL;
|
|
setKeysFromRecord();
|
|
ret=db.updateDB(*this);
|
|
if(ret != NULL){
|
|
ret=db.insertDB(*this);
|
|
if(ret != NULL){
|
|
dbAccess = false;
|
|
return(ret);
|
|
}
|
|
}
|
|
return(ret);
|
|
}
|
|
|
|
// public methode setPrimKey T_LOV_STEELGRADE
|
|
//
|
|
// this methode stores the unique key attributes
|
|
//
|
|
void T_LOV_STEELGRADE::setPrimKey( const char* arg1 ){
|
|
strncpy( (char*)c_k_SteelGrade , arg1 , sizeof(c_k_SteelGrade) );
|
|
c_k_SteelGrade[sizeof(c_k_SteelGrade)-1] = '\0';
|
|
} // end of methode
|
|
|
|
void T_LOV_STEELGRADE::initInsertKeys( const char* arg1 ){
|
|
setPrimKey ( arg1);
|
|
strncpy( (char*)c_SteelGrade , arg1 , sizeof(c_SteelGrade) );
|
|
c_SteelGrade[sizeof(c_SteelGrade)-1] = '\0';
|
|
} // end of methode
|
|
void T_LOV_STEELGRADE::setKeysFromRecord(){
|
|
set_k_SteelGrade( SteelGrade() );
|
|
} // end of methode
|
|
//
|
|
//O P E R A T O R +
|
|
//===================
|
|
//
|
|
T_LOV_STEELGRADE T_LOV_STEELGRADE::operator+(const T_LOV_STEELGRADE &inst) const{
|
|
T_LOV_STEELGRADE ptrT_LOV_STEELGRADE(*this);
|
|
//----------------------------------------------------------
|
|
ptrT_LOV_STEELGRADE.set_SteelGrade(inst.SteelGrade());
|
|
//----------------------------------------------------------
|
|
if(inst.OrderQualityZi() != -1){
|
|
ptrT_LOV_STEELGRADE.set_OrderQuality(inst.OrderQuality());
|
|
ptrT_LOV_STEELGRADE.set_OrderQualityZi(inst.OrderQualityZi());
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.SteelClassZi() != -1){
|
|
ptrT_LOV_STEELGRADE.set_SteelClass(inst.SteelClass());
|
|
ptrT_LOV_STEELGRADE.set_SteelClassZi(inst.SteelClassZi());
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.SGCodeZi(0) != -1){
|
|
ptrT_LOV_STEELGRADE.set_SGCode(0,inst.SGCode(0));
|
|
ptrT_LOV_STEELGRADE.set_SGCodeZi(0,inst.SGCodeZi(0));
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.SGCodeZi(1) != -1){
|
|
ptrT_LOV_STEELGRADE.set_SGCode(1,inst.SGCode(1));
|
|
ptrT_LOV_STEELGRADE.set_SGCodeZi(1,inst.SGCodeZi(1));
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.SGCodeZi(2) != -1){
|
|
ptrT_LOV_STEELGRADE.set_SGCode(2,inst.SGCode(2));
|
|
ptrT_LOV_STEELGRADE.set_SGCodeZi(2,inst.SGCodeZi(2));
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.SGCodeZi(3) != -1){
|
|
ptrT_LOV_STEELGRADE.set_SGCode(3,inst.SGCode(3));
|
|
ptrT_LOV_STEELGRADE.set_SGCodeZi(3,inst.SGCodeZi(3));
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.SGCodeZi(4) != -1){
|
|
ptrT_LOV_STEELGRADE.set_SGCode(4,inst.SGCode(4));
|
|
ptrT_LOV_STEELGRADE.set_SGCodeZi(4,inst.SGCodeZi(4));
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.SGCodeZi(5) != -1){
|
|
ptrT_LOV_STEELGRADE.set_SGCode(5,inst.SGCode(5));
|
|
ptrT_LOV_STEELGRADE.set_SGCodeZi(5,inst.SGCodeZi(5));
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.SGCodeZi(6) != -1){
|
|
ptrT_LOV_STEELGRADE.set_SGCode(6,inst.SGCode(6));
|
|
ptrT_LOV_STEELGRADE.set_SGCodeZi(6,inst.SGCodeZi(6));
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.SGCodeZi(7) != -1){
|
|
ptrT_LOV_STEELGRADE.set_SGCode(7,inst.SGCode(7));
|
|
ptrT_LOV_STEELGRADE.set_SGCodeZi(7,inst.SGCodeZi(7));
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.SGCodeZi(8) != -1){
|
|
ptrT_LOV_STEELGRADE.set_SGCode(8,inst.SGCode(8));
|
|
ptrT_LOV_STEELGRADE.set_SGCodeZi(8,inst.SGCodeZi(8));
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.SGCodeZi(9) != -1){
|
|
ptrT_LOV_STEELGRADE.set_SGCode(9,inst.SGCode(9));
|
|
ptrT_LOV_STEELGRADE.set_SGCodeZi(9,inst.SGCodeZi(9));
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.tocZi() != -1){
|
|
ptrT_LOV_STEELGRADE.set_toc(inst.toc());
|
|
ptrT_LOV_STEELGRADE.set_tocZi(inst.tocZi());
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.tomZi() != -1){
|
|
ptrT_LOV_STEELGRADE.set_tom(inst.tom());
|
|
ptrT_LOV_STEELGRADE.set_tomZi(inst.tomZi());
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.mopZi() != -1){
|
|
ptrT_LOV_STEELGRADE.set_mop(inst.mop());
|
|
ptrT_LOV_STEELGRADE.set_mopZi(inst.mopZi());
|
|
}
|
|
//----------------------------------------------------------
|
|
if(inst.mouZi() != -1){
|
|
ptrT_LOV_STEELGRADE.set_mou(inst.mou());
|
|
ptrT_LOV_STEELGRADE.set_mouZi(inst.mouZi());
|
|
}
|
|
return (ptrT_LOV_STEELGRADE);
|
|
}
|
|
|
|
//
|
|
//O P E R A T O R =
|
|
//===================
|
|
//
|
|
const T_LOV_STEELGRADE& T_LOV_STEELGRADE::operator=(const T_LOV_STEELGRADE &inst){
|
|
//----------------------------------------------------------
|
|
this->set_SteelGrade(inst.SteelGrade());
|
|
//----------------------------------------------------------
|
|
this->set_OrderQuality(inst.OrderQuality());
|
|
this->set_OrderQualityZi(inst.OrderQualityZi());
|
|
//----------------------------------------------------------
|
|
this->set_SteelClass(inst.SteelClass());
|
|
this->set_SteelClassZi(inst.SteelClassZi());
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(0,inst.SGCode(0));
|
|
this->set_SGCodeZi(0,inst.SGCodeZi(0));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(1,inst.SGCode(1));
|
|
this->set_SGCodeZi(1,inst.SGCodeZi(1));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(2,inst.SGCode(2));
|
|
this->set_SGCodeZi(2,inst.SGCodeZi(2));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(3,inst.SGCode(3));
|
|
this->set_SGCodeZi(3,inst.SGCodeZi(3));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(4,inst.SGCode(4));
|
|
this->set_SGCodeZi(4,inst.SGCodeZi(4));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(5,inst.SGCode(5));
|
|
this->set_SGCodeZi(5,inst.SGCodeZi(5));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(6,inst.SGCode(6));
|
|
this->set_SGCodeZi(6,inst.SGCodeZi(6));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(7,inst.SGCode(7));
|
|
this->set_SGCodeZi(7,inst.SGCodeZi(7));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(8,inst.SGCode(8));
|
|
this->set_SGCodeZi(8,inst.SGCodeZi(8));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(9,inst.SGCode(9));
|
|
this->set_SGCodeZi(9,inst.SGCodeZi(9));
|
|
//----------------------------------------------------------
|
|
this->set_toc(inst.toc());
|
|
this->set_tocZi(inst.tocZi());
|
|
//----------------------------------------------------------
|
|
this->set_tom(inst.tom());
|
|
this->set_tomZi(inst.tomZi());
|
|
//----------------------------------------------------------
|
|
this->set_mop(inst.mop());
|
|
this->set_mopZi(inst.mopZi());
|
|
//----------------------------------------------------------
|
|
this->set_mou(inst.mou());
|
|
this->set_mouZi(inst.mouZi());
|
|
return (*this);
|
|
}
|
|
//
|
|
//C O P Y - C O N S T R U C T O R
|
|
//===================
|
|
//
|
|
T_LOV_STEELGRADE::T_LOV_STEELGRADE(const T_LOV_STEELGRADE &inst){
|
|
//----------------------------------------------------------
|
|
this->set_SteelGrade(inst.SteelGrade());
|
|
//----------------------------------------------------------
|
|
this->set_OrderQuality(inst.OrderQuality());
|
|
this->set_OrderQualityZi(inst.OrderQualityZi());
|
|
//----------------------------------------------------------
|
|
this->set_SteelClass(inst.SteelClass());
|
|
this->set_SteelClassZi(inst.SteelClassZi());
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(0,inst.SGCode(0));
|
|
this->set_SGCodeZi(0,inst.SGCodeZi(0));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(1,inst.SGCode(1));
|
|
this->set_SGCodeZi(1,inst.SGCodeZi(1));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(2,inst.SGCode(2));
|
|
this->set_SGCodeZi(2,inst.SGCodeZi(2));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(3,inst.SGCode(3));
|
|
this->set_SGCodeZi(3,inst.SGCodeZi(3));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(4,inst.SGCode(4));
|
|
this->set_SGCodeZi(4,inst.SGCodeZi(4));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(5,inst.SGCode(5));
|
|
this->set_SGCodeZi(5,inst.SGCodeZi(5));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(6,inst.SGCode(6));
|
|
this->set_SGCodeZi(6,inst.SGCodeZi(6));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(7,inst.SGCode(7));
|
|
this->set_SGCodeZi(7,inst.SGCodeZi(7));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(8,inst.SGCode(8));
|
|
this->set_SGCodeZi(8,inst.SGCodeZi(8));
|
|
//----------------------------------------------------------
|
|
this->set_SGCode(9,inst.SGCode(9));
|
|
this->set_SGCodeZi(9,inst.SGCodeZi(9));
|
|
//----------------------------------------------------------
|
|
this->set_toc(inst.toc());
|
|
this->set_tocZi(inst.tocZi());
|
|
//----------------------------------------------------------
|
|
this->set_tom(inst.tom());
|
|
this->set_tomZi(inst.tomZi());
|
|
//----------------------------------------------------------
|
|
this->set_mop(inst.mop());
|
|
this->set_mopZi(inst.mopZi());
|
|
//----------------------------------------------------------
|
|
this->set_mou(inst.mou());
|
|
this->set_mouZi(inst.mouZi());
|
|
}
|
|
char* T_LOV_STEELGRADE::SteelGrade() const{
|
|
return((char*)c_SteelGrade );
|
|
}
|
|
|
|
|
|
void T_LOV_STEELGRADE::set_SteelGrade( const char* arg ){
|
|
strncpy((char*)c_SteelGrade , arg , sizeof(c_SteelGrade));
|
|
c_SteelGrade[sizeof(c_SteelGrade)-1] = '\0';
|
|
return;
|
|
}
|
|
|
|
|
|
char* T_LOV_STEELGRADE::OrderQuality() const{
|
|
return((char*)c_OrderQuality );
|
|
}
|
|
|
|
short T_LOV_STEELGRADE::OrderQualityZi() const{
|
|
return( s_OrderQualityZi);
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_OrderQuality( const char* arg ){
|
|
strncpy((char*)c_OrderQuality , arg , sizeof(c_OrderQuality));
|
|
c_OrderQuality[sizeof(c_OrderQuality)-1] = '\0';
|
|
s_OrderQualityZi= 0;
|
|
return;
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_OrderQualityZi( short arg ) {
|
|
s_OrderQualityZi = arg;
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::SteelClass() const{
|
|
return((char*)c_SteelClass );
|
|
}
|
|
|
|
short T_LOV_STEELGRADE::SteelClassZi() const{
|
|
return( s_SteelClassZi);
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_SteelClass( const char* arg ){
|
|
strncpy((char*)c_SteelClass , arg , sizeof(c_SteelClass));
|
|
c_SteelClass[sizeof(c_SteelClass)-1] = '\0';
|
|
s_SteelClassZi= 0;
|
|
return;
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_SteelClassZi( short arg ) {
|
|
s_SteelClassZi = arg;
|
|
}
|
|
|
|
int T_LOV_STEELGRADE::SGCodeArraySize(){
|
|
return(10);
|
|
}
|
|
|
|
short T_LOV_STEELGRADE::SGCode(int colInd) const{
|
|
return((short)s_SGCode[colInd] );
|
|
}
|
|
|
|
short T_LOV_STEELGRADE::SGCodeZi(int colInd) const{
|
|
return( s_SGCodeZi[colInd]);
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_SGCode( int colInd, short arg ){
|
|
s_SGCode[colInd] = arg;
|
|
s_SGCodeZi[colInd]= 0;
|
|
return;
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_SGCodeZi( int colInd, short arg ) {
|
|
s_SGCodeZi[colInd] = arg;
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::toc() const{
|
|
return((char*)c_toc );
|
|
}
|
|
|
|
short T_LOV_STEELGRADE::tocZi() const{
|
|
return( s_tocZi);
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_toc( char* arg ){
|
|
strncpy((char*)c_toc , arg , sizeof(c_toc));
|
|
c_toc[sizeof(c_toc)-1] = '\0';
|
|
s_tocZi= 0;
|
|
return;
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_tocZi( short arg ){
|
|
s_tocZi = arg;
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::tom() const{
|
|
return((char*)c_tom );
|
|
}
|
|
|
|
short T_LOV_STEELGRADE::tomZi() const{
|
|
return( s_tomZi);
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_tom( char* arg ){
|
|
strncpy((char*)c_tom , arg , sizeof(c_tom));
|
|
c_tom[sizeof(c_tom)-1] = '\0';
|
|
s_tomZi= 0;
|
|
return;
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_tomZi( short arg ){
|
|
s_tomZi = arg;
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::mop() const{
|
|
return((char*)c_mop );
|
|
}
|
|
|
|
short T_LOV_STEELGRADE::mopZi() const{
|
|
return( s_mopZi);
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_mop( char* arg ){
|
|
strncpy((char*)c_mop , arg , sizeof(c_mop));
|
|
c_mop[sizeof(c_mop)-1] = '\0';
|
|
s_mopZi= 0;
|
|
return;
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_mopZi( short arg ){
|
|
s_mopZi = arg;
|
|
}
|
|
|
|
char* T_LOV_STEELGRADE::mou() const{
|
|
return((char*)c_mou );
|
|
}
|
|
|
|
short T_LOV_STEELGRADE::mouZi() const{
|
|
return( s_mouZi);
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_mou( char* arg ){
|
|
strncpy((char*)c_mou , arg , sizeof(c_mou));
|
|
c_mou[sizeof(c_mou)-1] = '\0';
|
|
s_mouZi= 0;
|
|
return;
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_mouZi( short arg ){
|
|
s_mouZi = arg;
|
|
}
|
|
|
|
// methodes for Primary key
|
|
char* T_LOV_STEELGRADE::k_SteelGrade(){
|
|
return((char*)c_k_SteelGrade );
|
|
}
|
|
|
|
void T_LOV_STEELGRADE::set_k_SteelGrade( char* arg ){
|
|
strncpy((char*)c_k_SteelGrade , arg , sizeof(c_k_SteelGrade));
|
|
c_k_SteelGrade[sizeof(c_k_SteelGrade)-1] = '\0';
|
|
return;
|
|
}
|
|
|
|
//
|
|
// public methode fillStructure
|
|
//
|
|
// this methode filles the classstructue with the private attributes
|
|
//
|
|
void T_LOV_STEELGRADE::fillStructure(){
|
|
strncpy ( structTable.SteelGrade , SteelGrade(),sizeof(structTable.SteelGrade));
|
|
strncpy ( structTable.OrderQuality , OrderQuality(),sizeof(structTable.OrderQuality));
|
|
strncpy ( structTable.SteelClass , SteelClass(),sizeof(structTable.SteelClass));
|
|
structTable.SGCode[0] = SGCode(0);
|
|
structTable.SGCode[1] = SGCode(1);
|
|
structTable.SGCode[2] = SGCode(2);
|
|
structTable.SGCode[3] = SGCode(3);
|
|
structTable.SGCode[4] = SGCode(4);
|
|
structTable.SGCode[5] = SGCode(5);
|
|
structTable.SGCode[6] = SGCode(6);
|
|
structTable.SGCode[7] = SGCode(7);
|
|
structTable.SGCode[8] = SGCode(8);
|
|
structTable.SGCode[9] = SGCode(9);
|
|
strncpy ( structTable.toc , toc(),sizeof(structTable.toc));
|
|
strncpy ( structTable.tom , tom(),sizeof(structTable.tom));
|
|
strncpy ( structTable.mop , mop(),sizeof(structTable.mop));
|
|
strncpy ( structTable.mou , mou(),sizeof(structTable.mou));
|
|
return;
|
|
}
|
|
///////////////////////////////////////////////////
|
|
void T_LOV_STEELGRADE::fillStructureZi(){
|
|
structTableZi.OrderQualityZi = OrderQualityZi();
|
|
structTableZi.SteelClassZi = SteelClassZi();
|
|
structTableZi.SGCodeZi[0] = SGCodeZi(0);
|
|
structTableZi.SGCodeZi[1] = SGCodeZi(1);
|
|
structTableZi.SGCodeZi[2] = SGCodeZi(2);
|
|
structTableZi.SGCodeZi[3] = SGCodeZi(3);
|
|
structTableZi.SGCodeZi[4] = SGCodeZi(4);
|
|
structTableZi.SGCodeZi[5] = SGCodeZi(5);
|
|
structTableZi.SGCodeZi[6] = SGCodeZi(6);
|
|
structTableZi.SGCodeZi[7] = SGCodeZi(7);
|
|
structTableZi.SGCodeZi[8] = SGCodeZi(8);
|
|
structTableZi.SGCodeZi[9] = SGCodeZi(9);
|
|
structTableZi.tocZi = tocZi();
|
|
structTableZi.tomZi = tomZi();
|
|
structTableZi.mopZi = mopZi();
|
|
structTableZi.mouZi = mouZi();
|
|
return;
|
|
}
|
|
///////////////////////////////////////////////////
|
|
void T_LOV_STEELGRADE::setStructure() {
|
|
set_OrderQuality( structTable.OrderQuality);
|
|
set_SteelClass( structTable.SteelClass);
|
|
set_SGCode( 0, structTable.SGCode[0]);
|
|
set_SGCode( 1, structTable.SGCode[1]);
|
|
set_SGCode( 2, structTable.SGCode[2]);
|
|
set_SGCode( 3, structTable.SGCode[3]);
|
|
set_SGCode( 4, structTable.SGCode[4]);
|
|
set_SGCode( 5, structTable.SGCode[5]);
|
|
set_SGCode( 6, structTable.SGCode[6]);
|
|
set_SGCode( 7, structTable.SGCode[7]);
|
|
set_SGCode( 8, structTable.SGCode[8]);
|
|
set_SGCode( 9, structTable.SGCode[9]);
|
|
set_toc(structTable.toc);
|
|
set_tom(structTable.tom);
|
|
set_mop(structTable.mop);
|
|
set_mou(structTable.mou);
|
|
return;
|
|
}
|
|
///////////////////////////////////////////////////
|
|
void T_LOV_STEELGRADE::setStructureZi() {
|
|
set_OrderQualityZi( structTableZi.OrderQualityZi);
|
|
set_SteelClassZi( structTableZi.SteelClassZi);
|
|
set_SGCodeZi( 0, structTableZi.SGCodeZi[0]);
|
|
set_SGCodeZi( 1, structTableZi.SGCodeZi[1]);
|
|
set_SGCodeZi( 2, structTableZi.SGCodeZi[2]);
|
|
set_SGCodeZi( 3, structTableZi.SGCodeZi[3]);
|
|
set_SGCodeZi( 4, structTableZi.SGCodeZi[4]);
|
|
set_SGCodeZi( 5, structTableZi.SGCodeZi[5]);
|
|
set_SGCodeZi( 6, structTableZi.SGCodeZi[6]);
|
|
set_SGCodeZi( 7, structTableZi.SGCodeZi[7]);
|
|
set_SGCodeZi( 8, structTableZi.SGCodeZi[8]);
|
|
set_SGCodeZi( 9, structTableZi.SGCodeZi[9]);
|
|
set_tocZi(structTableZi.tocZi);
|
|
set_tomZi(structTableZi.tomZi);
|
|
set_mopZi(structTableZi.mopZi);
|
|
set_mouZi(structTableZi.mouZi);
|
|
return;
|
|
}
|
|
///////////////////////////////////////////////////
|
|
char* T_LOV_STEELGRADE::getName(){
|
|
return("T_LOV_STEELGRADE");
|
|
}
|
|
///////////////////////////////////////////////////
|
|
int T_LOV_STEELGRADE::getSqlCode(){
|
|
return( db.dbSqlCode);
|
|
}
|
|
int T_LOV_STEELGRADE::getRowsProcessed(){
|
|
return( db.dbRowsProcessed);
|
|
}
|