コード例 #1
0
#include <QDialog>
#include <QUrl>

#include <openreports.h>
#include <parameter.h>
#include <xsqlquery.h>

#include "file.h"
#include "imageview.h"
#include "imageAssignment.h"
#include "documents.h"


const Documents::DocumentMap Documents::_documentMap[] =
{
  DocumentMap( Uninitialized,     " "   ),
  DocumentMap( Address,           "ADDR"),
  DocumentMap( BBOMHead,          "BBH" ),
  DocumentMap( BBOMItem,          "BBI" ),
  DocumentMap( BOMHead,           "BMH" ),
  DocumentMap( BOMItem,           "BMI" ),
  DocumentMap( BOOHead,           "BOH" ),
  DocumentMap( BOOItem,           "BOI" ),
  DocumentMap( CRMAccount,        "CRMA"),
  DocumentMap( Contact,           "T"   ),
  DocumentMap( Customer,          "C"   ),
  DocumentMap( Employee,          "EMP" ),
  DocumentMap( Incident,          "INCDT"),
  DocumentMap( Item,              "I"   ),
  DocumentMap( ItemSite,          "IS"  ),
  DocumentMap( ItemSource,        "IR"  ),
コード例 #2
0
ファイル: documents.cpp プロジェクト: NemoDevel/qt-client
#include <parameter.h>
#include <xsqlquery.h>
#include <metasql.h>
#include "mqlutil.h"

#include "documents.h"
#include "errorReporter.h"
#include "imageview.h"
#include "imageAssignment.h"
#include "docAttach.h"

// CAUTION: This will break if the order of this list does not match
//          the order of the enumerated values as defined.
const Documents::DocumentMap Documents::_documentMap[] =
{
  DocumentMap( Uninitialized,     " "   ),
  DocumentMap( Address,           "ADDR"),
  DocumentMap( BBOMHead,          "BBH" ),
  DocumentMap( BBOMItem,          "BBI" ),
  DocumentMap( BOMHead,           "BMH",   "bomhead_id", "bom"           ),
  DocumentMap( BOMItem,           "BMI" ),
  DocumentMap( BOOHead,           "BOH" ),
  DocumentMap( BOOItem,           "BOI" ),
  DocumentMap( CRMAccount,        "CRMA",  "crmacct_id", "crmaccount"    ),
  DocumentMap( Contact,           "T",     "cntct_id",   "contact"       ),
  DocumentMap( Contract,          "CNTR",  "contrct_id", "contrct"       ),
  DocumentMap( CreditMemo,        "CM",    "cmhead_id",  "creditMemo"    ),
  DocumentMap( CreditMemoItem,    "CMI" ),
  DocumentMap( Customer,          "C",     "cust_id",    "customer"      ),
  DocumentMap( Employee,          "EMP",   "emp_id",     "employee"      ),
  DocumentMap( Incident,          "INCDT", "incdt_id",   "incident"      ),