实现削峰套利策略的编辑页面

This commit is contained in:
lixiaoyuan
2025-08-26 18:36:25 +08:00
parent 7fe51ea362
commit 8f6c83147b
37 changed files with 1506 additions and 729 deletions

View File

@@ -3,6 +3,15 @@
#include <string>
using namespace std;
///////////////////////////////////////////////////////////////////////////////////////////////////
/// 工作模式定义 表结构字段
namespace DMDefWorkMode
{
const string TABLENAME = "def_work_mode";
const string WORK_MODE_ID = "work_mode_id";
const string NAME = "name";
}
///////////////////////////////////////////////////////////////////////////////////////////////////
/// 用户 表结构字段
namespace DMUser
@@ -80,6 +89,16 @@ namespace DMStation
const string TEL = "tel";
const string CAPACITY = "capacity";
const string STATUS = "status";
const string WORK_MODE_ID = "work_mode_id";
const string POLICY_ID = "policy_id";
}
namespace DMDefDeviceType
{
const string TABLENAME = "def_device_type";
const string DEVICE_TYPE_ID = "device_type_id";
const string NAME = "name";
const string ATTRS = "attrs";
}
namespace DMDevice
@@ -87,7 +106,7 @@ namespace DMDevice
const string TABLENAME = "device";
const string DEVICE_ID = "device_id";
const string STATION_ID = "station_id";
const string TYPE_ID = "type_id";
const string TYPE = "type";
const string NAME = "name";
const string CODE = "code";
const string MODEL = "model";
@@ -100,12 +119,11 @@ namespace DMDevice
const string UPDATE_TIME = "update_time";
}
namespace DMDeviceTypeDef
namespace DMDefPolicyType
{
const string TABLENAME = "def_device_type";
const string TYPE_ID = "type_id";
const string TABLENAME = "def_policy_type";
const string POLICY_TYPE_ID = "policy_type_id";
const string NAME = "name";
const string ATTRS = "attrs";
}
namespace DMPolicy