Build system changed to Cmake, ORM changed to QxORM, Qt6 compatibility.

This commit is contained in:
2023-04-28 22:25:29 +02:00
parent 30e6180c82
commit d699ce79f7
481 changed files with 2310 additions and 130206 deletions
+20 -4
View File
@@ -1,21 +1,37 @@
#include "accservice.h"
#include <define.h>
QX_REGISTER_CPP_SERVICE(AccService)
namespace qx {
template<> void register_class(QxClass<AccService>& t) {
t.setName("AccService");
t.id(&AccService::m_id, "id");
t.data(&AccService::m_accServiceName, "accServiceName");
t.data(&AccService::m_accServiceCode, "accServiceCode");
t.data(&AccService::m_price, "price");
t.data(&AccService::m_active, "active");
t.data(&AccService::m_salePossible, "salePossible");
t.data(&AccService::m_serviceType, "serviceType");
t.data(&AccService::m_vatType, "vatType");
}
}
AccService::AccService(QObject *parent)
:QObject(parent)
{
m_price = 0;
m_active = 1;
}
int AccService::id() const
long AccService::id() const
{
return m_id;
}
void AccService::setId(int id)
void AccService::setId(long id)
{
m_id = id;
}
QDecDouble AccService::price() const
{
return QDecDouble((double)m_price / DEC_MULTIPLE);