71 lines
1.8 KiB
C++
71 lines
1.8 KiB
C++
#pragma once
|
|
#include <time.h>
|
|
#include <string>
|
|
#include "LayerStatus.h"
|
|
#include "../external/SQLiteCpp/SQLiteCpp.h"
|
|
using namespace std;
|
|
class JobBean
|
|
{
|
|
public:
|
|
JobBean();
|
|
~JobBean();
|
|
static void CreateIfNoExist(SQLite::Database* db);
|
|
|
|
public:
|
|
long m_Id;
|
|
time_t m_InsertTime;
|
|
string m_TaskID;
|
|
string m_Uid;
|
|
string m_Name;
|
|
string m_RecordID;
|
|
time_t m_StartTime;
|
|
time_t m_LastPauseTime;
|
|
time_t m_StopTime;
|
|
unsigned int m_DeoxygenSecond;
|
|
unsigned int m_SpendSecond;
|
|
unsigned int m_PrintSecond;
|
|
uint32_t m_FirstStartIndex;
|
|
float m_StartMoldPos;
|
|
double m_MoldPos;
|
|
unsigned int m_PrintedLayerIndex;
|
|
bool m_IsFinished;
|
|
bool m_IsContinue;
|
|
bool m_IsInvalid;
|
|
//LayerStatusMaximum m_Maximum;
|
|
double m_CurrentPrintedTime;
|
|
double m_EveryPrintedTime;
|
|
int m_YearBelong;
|
|
|
|
public:
|
|
static const string JOB_TABLE_NAME;
|
|
static const string JOB_FIELD_ID;
|
|
static const string JOB_FIELD_INSERT_TIME;
|
|
static const string JOB_TASK_ID;
|
|
static const string JOB_FIELD_UID;
|
|
static const string JOB_FIELD_NAME;
|
|
static const string JOB_FIELD_RECORD_ID;
|
|
static const string JOB_FIELD_START_TIME;
|
|
static const string JOB_FIELD_LAST_PAUSE_TIME;
|
|
static const string JOB_FIELD_STOP_TIME;
|
|
static const string JOB_FIELD_DEOXYGEN_SECOND;
|
|
static const string JOB_FIELD_SPEND_SECOND;
|
|
static const string JOB_FIELD_PRINT_SECOND;
|
|
static const string JOB_FIELD_FIRST_START_INDEX;
|
|
static const string JOB_FIELD_START_MOLD_POS;
|
|
static const string JOB_FIELD_MOLD_POS;
|
|
static const string JOB_FIELD_PRINTED_LAYER_INDEX;
|
|
static const string JOB_FIELD_IS_FINISH;
|
|
static const string JOB_FIELD_IS_CONTINUE;
|
|
static const string JOB_FIELD_IS_INVALID;
|
|
};
|
|
|
|
class JobStatistics {
|
|
public:
|
|
JobStatistics();
|
|
~JobStatistics();
|
|
public:
|
|
float m_MinValue;
|
|
float m_MaxValue;
|
|
float m_MinIndex;
|
|
float m_MaxIndex;
|
|
}; |