added: now plugin ticket uses a new horizontal table (plugins.ticket)

columns: dir_id, param, value
we are able to build complicated tickets 



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@664 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-10-19 00:31:20 +00:00
parent 33057acd62
commit 1b053c03ba
53 changed files with 1680 additions and 1902 deletions

View File

@@ -10,8 +10,8 @@
#ifndef headerfile_winix_plugins_ticket_ticket
#define headerfile_winix_plugins_ticket_ticket
#include <string>
#include <ctime>
#include <vector>
namespace Ticket
@@ -19,36 +19,28 @@ namespace Ticket
struct Ticket
{
long id;
struct TicketParam
{
int param;
int value;
TicketParam()
{
param = value = 0;
}
};
long dir_id;
long parent_id;
unsigned int type;
unsigned int status;
unsigned int priority;
unsigned int category;
unsigned int expected;
unsigned int progress; // 0 - 100 (percentage)
// the first item (with the content for the ticket)
long item_id;
// an auxiliary object used when sorting a table with tickets
std::vector<TicketParam> par_tab;
// auxiliary object used during sorting
unsigned long sort_id;
void Clear()
{
id = -1;
dir_id = -1;
parent_id = -1;
type = 0;
status = 0;
priority = 0;
category = 0;
expected = 0;
progress = 0;
item_id = -1;
sort_id = 0;
dir_id = -1;
par_tab.clear();
sort_id = 0;
}
@@ -56,7 +48,6 @@ struct Ticket
{
Clear();
}
};