MagicSmoke  $VERSION$
orderstab.cpp File Reference
#include "centbox.h"
#include "main.h"
#include "misc.h"
#include "msinterface.h"
#include "orderwin.h"
#include "customerdlg.h"
#include "orderstab.h"
#include <TimeStamp>
#include <Zip>
#include "MTGetOrder"
#include "MTGetOrderList"
#include "MTGetMyOrders"
#include "MTGetOrderByBarcode"
#include "MTGetOrdersByCustomer"
#include "MTGetOrdersByEvents"
#include "MTGetOrdersByUser"
#include "MTGetAllUsers"
#include <QBoxLayout>
#include <QCheckBox>
#include <QComboBox>
#include <QDateTimeEdit>
#include <QDebug>
#include <QDomDocument>
#include <QDomElement>
#include <QFormLayout>
#include <QInputDialog>
#include <QLabel>
#include <QMenu>
#include <QMessageBox>
#include <QPushButton>
#include <QSettings>
#include <QSpinBox>
#include <QStandardItemModel>
#include <QTableView>
#include <QFileDialog>

Macros

#define ORDERALL   0xff
 
#define ORDERNONE   0
 
#define ORDEROPEN   0xf
 
#define ORDERPAY   1
 
#define ORDERREFUND   2
 
#define ORDERRESERVE   8
 
#define ORDERUNSENT   4
 

Functions

static bool candoUpdateOrders (int omode, const MOOrderInfo &ord)
 
static void exportTable (QDomDocument &doc, QDomElement &sheet, QStandardItemModel *model, QString title)
 
static const QByteArray odsmetainf ("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n""<manifest:manifest xmlns:manifest=\"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0\" manifest:version=\"1.2\">\n"" <manifest:file-entry manifest:full-path=\"/\" manifest:version=\"1.2\" manifest:media-type=\"application/vnd.oasis.opendocument.spreadsheet\"/>\n"" <manifest:file-entry manifest:full-path=\"content.xml\" manifest:media-type=\"text/xml\"/>\n""</manifest:manifest>")
 

Macro Definition Documentation

#define ORDERALL   0xff
#define ORDERNONE   0

Referenced by MOrdersTab::MOrdersTab().

#define ORDEROPEN   0xf

Referenced by MOrdersTab::MOrdersTab().

#define ORDERPAY   1
#define ORDERREFUND   2
#define ORDERRESERVE   8
#define ORDERUNSENT   4

Function Documentation

static bool candoUpdateOrders ( int  omode,
const MOOrderInfo ord 
)
inlinestatic
static void exportTable ( QDomDocument &  doc,
QDomElement &  sheet,
QStandardItemModel *  model,
QString  title 
)
inlinestatic
static const QByteArray odsmetainf ( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n""<manifest:manifest xmlns:manifest=\"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0\" manifest:version=\"1.2\">\n"" <manifest:file-entry manifest:full-path=\"/\" manifest:version=\"1.2\" manifest:media-type=\"application/vnd.oasis.opendocument.spreadsheet\"/>\n"" <manifest:file-entry manifest:full-path=\"content.xml\" manifest:media-type=\"text/xml\"/>\n""</manifest:manifest>"  )
static