void ProductDefinitionFormationWithSpecifiedSource::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; TAB(level + 1); std::cout << "make_or_buy:" << SourceString() << std::endl; TAB(level); std::cout << "Inherited Attributes:" << std::endl; ProductDefinitionFormation::Print(level + 1); }
void RDSvc::setImportLength(ImportSource src,ImportField field,int len) const { QString fieldname=SourceString(src)+FieldString(field)+"LENGTH"; SetRow(fieldname,len); }
void RDSvc::setImportOffset(ImportSource src,ImportField field,int offset) const { QString fieldname=SourceString(src)+FieldString(field)+"OFFSET"; SetRow(fieldname,offset); }
int RDSvc::importLength(ImportSource src,ImportField field) const { QString fieldname=SourceString(src)+FieldString(field)+"LENGTH"; return RDGetSqlValue("SERVICES","NAME",svc_name,fieldname).toInt(); }
QString RDSvc::preimportCommand(ImportSource src,ImportOs os) const { QString fieldname=SourceString(src)+OsString(os)+"PREIMPORT_CMD"; return RDGetSqlValue("SERVICES","NAME",svc_name,fieldname). toString(); }
void RDSvc::setPreimportCommand(ImportSource src,ImportOs os, const QString &path) const { QString fieldname=SourceString(src)+OsString(os)+"PREIMPORT_CMD"; SetRow(fieldname,path); }
QString RDSvc::importPath(ImportSource src,ImportOs os) const { QString fieldname=SourceString(src)+OsString(os)+"PATH"; return RDGetSqlValue("SERVICES","NAME",svc_name,fieldname). toString(); }
void RDSvc::setImportPath(ImportSource src,ImportOs os,const QString &path) const { QString fieldname=SourceString(src)+OsString(os)+"PATH"; SetRow(fieldname,path); }
void RDSvc::setTrackCart(ImportSource src,const QString &str) { QString fieldname=SourceString(src)+"TRACK_CART"; SetRow(fieldname,str); }
QString RDSvc::trackCart(ImportSource src) const { QString fieldname=SourceString(src)+"TRACK_CART"; return RDGetSqlValue("SERVICES","NAME",svc_name,fieldname).toString(); }
void RDSvc::setLabelCart(ImportSource src,const QString &str) { QString fieldname=SourceString(src)+"LABEL_CART"; SetRow(fieldname,str); }
void RDSvc::setImportTemplate(ImportSource src,const QString &str) const { QString fieldname=SourceString(src)+"IMPORT_TEMPLATE"; SetRow(fieldname,str); }
QString RDSvc::importTemplate(ImportSource src) const { QString fieldname=SourceString(src)+"IMPORT_TEMPLATE"; return RDGetSqlValue("SERVICES","NAME",svc_name,fieldname). toString(); }