版本1.2
This commit is contained in:
parent
da6f51b873
commit
734a02bcf9
|
|
@ -0,0 +1,179 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* draught_fan.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: draught_fan
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/3/1 14:54:50 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Collections.Generic;
|
||||
using Maticsoft.Common;
|
||||
using DataServer.Model;
|
||||
namespace DataServer.BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// draught_fan
|
||||
/// </summary>
|
||||
public partial class draught_fan
|
||||
{
|
||||
private readonly DataServer.DAL.draught_fan dal=new DataServer.DAL.draught_fan();
|
||||
public draught_fan()
|
||||
{}
|
||||
#region BasicMethod
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string DraughtId)
|
||||
{
|
||||
return dal.Exists(DraughtId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(DataServer.Model.draught_fan model)
|
||||
{
|
||||
return dal.Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(DataServer.Model.draught_fan model)
|
||||
{
|
||||
return dal.Update(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string DraughtId)
|
||||
{
|
||||
|
||||
return dal.Delete(DraughtId);
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string DraughtIdlist )
|
||||
{
|
||||
return dal.DeleteList(DraughtIdlist );
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.draught_fan GetModel(string DraughtId)
|
||||
{
|
||||
|
||||
return dal.GetModel(DraughtId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体,从缓存中
|
||||
/// </summary>
|
||||
public DataServer.Model.draught_fan GetModelByCache(string DraughtId)
|
||||
{
|
||||
|
||||
string CacheKey = "draught_fanModel-" + DraughtId;
|
||||
object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
|
||||
if (objModel == null)
|
||||
{
|
||||
try
|
||||
{
|
||||
objModel = dal.GetModel(DraughtId);
|
||||
if (objModel != null)
|
||||
{
|
||||
int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
|
||||
Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
|
||||
}
|
||||
}
|
||||
catch{}
|
||||
}
|
||||
return (DataServer.Model.draught_fan)objModel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
return dal.GetList(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<DataServer.Model.draught_fan> GetModelList(string strWhere)
|
||||
{
|
||||
DataSet ds = dal.GetList(strWhere);
|
||||
return DataTableToList(ds.Tables[0]);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<DataServer.Model.draught_fan> DataTableToList(DataTable dt)
|
||||
{
|
||||
List<DataServer.Model.draught_fan> modelList = new List<DataServer.Model.draught_fan>();
|
||||
int rowsCount = dt.Rows.Count;
|
||||
if (rowsCount > 0)
|
||||
{
|
||||
DataServer.Model.draught_fan model;
|
||||
for (int n = 0; n < rowsCount; n++)
|
||||
{
|
||||
model = dal.DataRowToModel(dt.Rows[n]);
|
||||
if (model != null)
|
||||
{
|
||||
modelList.Add(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
return modelList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetAllList()
|
||||
{
|
||||
return GetList("");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
return dal.GetRecordCount(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
return dal.GetListByPage( strWhere, orderby, startIndex, endIndex);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
//{
|
||||
//return dal.GetList(PageSize,PageIndex,strWhere);
|
||||
//}
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,179 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* host_control.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: host_control
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/2/29 14:01:24 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Collections.Generic;
|
||||
using Maticsoft.Common;
|
||||
using DataServer.Model;
|
||||
namespace DataServer.BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// host_control
|
||||
/// </summary>
|
||||
public partial class host_control
|
||||
{
|
||||
private readonly DataServer.DAL.host_control dal=new DataServer.DAL.host_control();
|
||||
public host_control()
|
||||
{}
|
||||
#region BasicMethod
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string HostId)
|
||||
{
|
||||
return dal.Exists(HostId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(DataServer.Model.host_control model)
|
||||
{
|
||||
return dal.Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(DataServer.Model.host_control model)
|
||||
{
|
||||
return dal.Update(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string HostId)
|
||||
{
|
||||
|
||||
return dal.Delete(HostId);
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string HostIdlist )
|
||||
{
|
||||
return dal.DeleteList(HostIdlist );
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.host_control GetModel(string HostId)
|
||||
{
|
||||
|
||||
return dal.GetModel(HostId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体,从缓存中
|
||||
/// </summary>
|
||||
public DataServer.Model.host_control GetModelByCache(string HostId)
|
||||
{
|
||||
|
||||
string CacheKey = "host_controlModel-" + HostId;
|
||||
object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
|
||||
if (objModel == null)
|
||||
{
|
||||
try
|
||||
{
|
||||
objModel = dal.GetModel(HostId);
|
||||
if (objModel != null)
|
||||
{
|
||||
int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
|
||||
Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
|
||||
}
|
||||
}
|
||||
catch{}
|
||||
}
|
||||
return (DataServer.Model.host_control)objModel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
return dal.GetList(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<DataServer.Model.host_control> GetModelList(string strWhere)
|
||||
{
|
||||
DataSet ds = dal.GetList(strWhere);
|
||||
return DataTableToList(ds.Tables[0]);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<DataServer.Model.host_control> DataTableToList(DataTable dt)
|
||||
{
|
||||
List<DataServer.Model.host_control> modelList = new List<DataServer.Model.host_control>();
|
||||
int rowsCount = dt.Rows.Count;
|
||||
if (rowsCount > 0)
|
||||
{
|
||||
DataServer.Model.host_control model;
|
||||
for (int n = 0; n < rowsCount; n++)
|
||||
{
|
||||
model = dal.DataRowToModel(dt.Rows[n]);
|
||||
if (model != null)
|
||||
{
|
||||
modelList.Add(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
return modelList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetAllList()
|
||||
{
|
||||
return GetList("");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
return dal.GetRecordCount(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
return dal.GetListByPage( strWhere, orderby, startIndex, endIndex);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
//{
|
||||
//return dal.GetList(PageSize,PageIndex,strWhere);
|
||||
//}
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,179 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* primary_pump.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: primary_pump
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/2/29 17:45:01 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Collections.Generic;
|
||||
using Maticsoft.Common;
|
||||
using DataServer.Model;
|
||||
namespace DataServer.BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// primary_pump
|
||||
/// </summary>
|
||||
public partial class primary_pump
|
||||
{
|
||||
private readonly DataServer.DAL.primary_pump dal=new DataServer.DAL.primary_pump();
|
||||
public primary_pump()
|
||||
{}
|
||||
#region BasicMethod
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string PrimaryId)
|
||||
{
|
||||
return dal.Exists(PrimaryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(DataServer.Model.primary_pump model)
|
||||
{
|
||||
return dal.Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(DataServer.Model.primary_pump model)
|
||||
{
|
||||
return dal.Update(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string PrimaryId)
|
||||
{
|
||||
|
||||
return dal.Delete(PrimaryId);
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string PrimaryIdlist )
|
||||
{
|
||||
return dal.DeleteList(PrimaryIdlist );
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.primary_pump GetModel(string PrimaryId)
|
||||
{
|
||||
|
||||
return dal.GetModel(PrimaryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体,从缓存中
|
||||
/// </summary>
|
||||
public DataServer.Model.primary_pump GetModelByCache(string PrimaryId)
|
||||
{
|
||||
|
||||
string CacheKey = "primary_pumpModel-" + PrimaryId;
|
||||
object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
|
||||
if (objModel == null)
|
||||
{
|
||||
try
|
||||
{
|
||||
objModel = dal.GetModel(PrimaryId);
|
||||
if (objModel != null)
|
||||
{
|
||||
int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
|
||||
Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
|
||||
}
|
||||
}
|
||||
catch{}
|
||||
}
|
||||
return (DataServer.Model.primary_pump)objModel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
return dal.GetList(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<DataServer.Model.primary_pump> GetModelList(string strWhere)
|
||||
{
|
||||
DataSet ds = dal.GetList(strWhere);
|
||||
return DataTableToList(ds.Tables[0]);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<DataServer.Model.primary_pump> DataTableToList(DataTable dt)
|
||||
{
|
||||
List<DataServer.Model.primary_pump> modelList = new List<DataServer.Model.primary_pump>();
|
||||
int rowsCount = dt.Rows.Count;
|
||||
if (rowsCount > 0)
|
||||
{
|
||||
DataServer.Model.primary_pump model;
|
||||
for (int n = 0; n < rowsCount; n++)
|
||||
{
|
||||
model = dal.DataRowToModel(dt.Rows[n]);
|
||||
if (model != null)
|
||||
{
|
||||
modelList.Add(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
return modelList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetAllList()
|
||||
{
|
||||
return GetList("");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
return dal.GetRecordCount(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
return dal.GetListByPage( strWhere, orderby, startIndex, endIndex);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
//{
|
||||
//return dal.GetList(PageSize,PageIndex,strWhere);
|
||||
//}
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,179 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* secondary_pump.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: secondary_pump
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/3/1 10:09:13 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Collections.Generic;
|
||||
using Maticsoft.Common;
|
||||
using DataServer.Model;
|
||||
namespace DataServer.BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// secondary_pump
|
||||
/// </summary>
|
||||
public partial class secondary_pump
|
||||
{
|
||||
private readonly DataServer.DAL.secondary_pump dal=new DataServer.DAL.secondary_pump();
|
||||
public secondary_pump()
|
||||
{}
|
||||
#region BasicMethod
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string SecondaryId)
|
||||
{
|
||||
return dal.Exists(SecondaryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(DataServer.Model.secondary_pump model)
|
||||
{
|
||||
return dal.Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(DataServer.Model.secondary_pump model)
|
||||
{
|
||||
return dal.Update(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string SecondaryId)
|
||||
{
|
||||
|
||||
return dal.Delete(SecondaryId);
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string SecondaryIdlist )
|
||||
{
|
||||
return dal.DeleteList(SecondaryIdlist );
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.secondary_pump GetModel(string SecondaryId)
|
||||
{
|
||||
|
||||
return dal.GetModel(SecondaryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体,从缓存中
|
||||
/// </summary>
|
||||
public DataServer.Model.secondary_pump GetModelByCache(string SecondaryId)
|
||||
{
|
||||
|
||||
string CacheKey = "secondary_pumpModel-" + SecondaryId;
|
||||
object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
|
||||
if (objModel == null)
|
||||
{
|
||||
try
|
||||
{
|
||||
objModel = dal.GetModel(SecondaryId);
|
||||
if (objModel != null)
|
||||
{
|
||||
int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
|
||||
Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
|
||||
}
|
||||
}
|
||||
catch{}
|
||||
}
|
||||
return (DataServer.Model.secondary_pump)objModel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
return dal.GetList(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<DataServer.Model.secondary_pump> GetModelList(string strWhere)
|
||||
{
|
||||
DataSet ds = dal.GetList(strWhere);
|
||||
return DataTableToList(ds.Tables[0]);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<DataServer.Model.secondary_pump> DataTableToList(DataTable dt)
|
||||
{
|
||||
List<DataServer.Model.secondary_pump> modelList = new List<DataServer.Model.secondary_pump>();
|
||||
int rowsCount = dt.Rows.Count;
|
||||
if (rowsCount > 0)
|
||||
{
|
||||
DataServer.Model.secondary_pump model;
|
||||
for (int n = 0; n < rowsCount; n++)
|
||||
{
|
||||
model = dal.DataRowToModel(dt.Rows[n]);
|
||||
if (model != null)
|
||||
{
|
||||
modelList.Add(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
return modelList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetAllList()
|
||||
{
|
||||
return GetList("");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
return dal.GetRecordCount(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
return dal.GetListByPage( strWhere, orderby, startIndex, endIndex);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
//{
|
||||
//return dal.GetList(PageSize,PageIndex,strWhere);
|
||||
//}
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,179 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* terrestrial_source.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: terrestrial_source
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/2/29 16:16:58 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Collections.Generic;
|
||||
using Maticsoft.Common;
|
||||
using DataServer.Model;
|
||||
namespace DataServer.BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// terrestrial_source
|
||||
/// </summary>
|
||||
public partial class terrestrial_source
|
||||
{
|
||||
private readonly DataServer.DAL.terrestrial_source dal=new DataServer.DAL.terrestrial_source();
|
||||
public terrestrial_source()
|
||||
{}
|
||||
#region BasicMethod
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string TerrestrialId)
|
||||
{
|
||||
return dal.Exists(TerrestrialId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(DataServer.Model.terrestrial_source model)
|
||||
{
|
||||
return dal.Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(DataServer.Model.terrestrial_source model)
|
||||
{
|
||||
return dal.Update(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string TerrestrialId)
|
||||
{
|
||||
|
||||
return dal.Delete(TerrestrialId);
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string TerrestrialIdlist )
|
||||
{
|
||||
return dal.DeleteList(TerrestrialIdlist );
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.terrestrial_source GetModel(string TerrestrialId)
|
||||
{
|
||||
|
||||
return dal.GetModel(TerrestrialId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体,从缓存中
|
||||
/// </summary>
|
||||
public DataServer.Model.terrestrial_source GetModelByCache(string TerrestrialId)
|
||||
{
|
||||
|
||||
string CacheKey = "terrestrial_sourceModel-" + TerrestrialId;
|
||||
object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
|
||||
if (objModel == null)
|
||||
{
|
||||
try
|
||||
{
|
||||
objModel = dal.GetModel(TerrestrialId);
|
||||
if (objModel != null)
|
||||
{
|
||||
int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
|
||||
Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
|
||||
}
|
||||
}
|
||||
catch{}
|
||||
}
|
||||
return (DataServer.Model.terrestrial_source)objModel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
return dal.GetList(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<DataServer.Model.terrestrial_source> GetModelList(string strWhere)
|
||||
{
|
||||
DataSet ds = dal.GetList(strWhere);
|
||||
return DataTableToList(ds.Tables[0]);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public List<DataServer.Model.terrestrial_source> DataTableToList(DataTable dt)
|
||||
{
|
||||
List<DataServer.Model.terrestrial_source> modelList = new List<DataServer.Model.terrestrial_source>();
|
||||
int rowsCount = dt.Rows.Count;
|
||||
if (rowsCount > 0)
|
||||
{
|
||||
DataServer.Model.terrestrial_source model;
|
||||
for (int n = 0; n < rowsCount; n++)
|
||||
{
|
||||
model = dal.DataRowToModel(dt.Rows[n]);
|
||||
if (model != null)
|
||||
{
|
||||
modelList.Add(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
return modelList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetAllList()
|
||||
{
|
||||
return GetList("");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
return dal.GetRecordCount(strWhere);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
return dal.GetListByPage( strWhere, orderby, startIndex, endIndex);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
//{
|
||||
//return dal.GetList(PageSize,PageIndex,strWhere);
|
||||
//}
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,382 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* draught_fan.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: draught_fan
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/3/1 14:54:50 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using MySql.Data.MySqlClient;
|
||||
using Maticsoft.DBUtility;//Please add references
|
||||
namespace DataServer.DAL
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据访问类:draught_fan
|
||||
/// </summary>
|
||||
public partial class draught_fan
|
||||
{
|
||||
public draught_fan()
|
||||
{}
|
||||
#region BasicMethod
|
||||
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string DraughtId)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) from draught_fan");
|
||||
strSql.Append(" where DraughtId=@DraughtId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@DraughtId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = DraughtId;
|
||||
|
||||
return DbHelperMySQL.Exists(strSql.ToString(),parameters);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(DataServer.Model.draught_fan model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("insert into draught_fan(");
|
||||
strSql.Append("DraughtId,DraughtName,DeviceNumber,DraughtNumberOne,DraughtNumberTwo,DraughtStateOne,DraughtStateTwo,ClientId,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5)");
|
||||
strSql.Append(" values (");
|
||||
strSql.Append("@DraughtId,@DraughtName,@DeviceNumber,@DraughtNumberOne,@DraughtNumberTwo,@DraughtStateOne,@DraughtStateTwo,@ClientId,@Reserve1,@Reserve2,@Reserve3,@Reserve4,@Reserve5)");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@DraughtId", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DraughtName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DeviceNumber", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DraughtNumberOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DraughtNumberTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DraughtStateOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DraughtStateTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@ClientId", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve1", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve2", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve3", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve4", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve5", MySqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.DraughtId;
|
||||
parameters[1].Value = model.DraughtName;
|
||||
parameters[2].Value = model.DeviceNumber;
|
||||
parameters[3].Value = model.DraughtNumberOne;
|
||||
parameters[4].Value = model.DraughtNumberTwo;
|
||||
parameters[5].Value = model.DraughtStateOne;
|
||||
parameters[6].Value = model.DraughtStateTwo;
|
||||
parameters[7].Value = model.ClientId;
|
||||
parameters[8].Value = model.Reserve1;
|
||||
parameters[9].Value = model.Reserve2;
|
||||
parameters[10].Value = model.Reserve3;
|
||||
parameters[11].Value = model.Reserve4;
|
||||
parameters[12].Value = model.Reserve5;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(DataServer.Model.draught_fan model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("update draught_fan set ");
|
||||
strSql.Append("DraughtName=@DraughtName,");
|
||||
strSql.Append("DeviceNumber=@DeviceNumber,");
|
||||
strSql.Append("DraughtNumberOne=@DraughtNumberOne,");
|
||||
strSql.Append("DraughtNumberTwo=@DraughtNumberTwo,");
|
||||
strSql.Append("DraughtStateOne=@DraughtStateOne,");
|
||||
strSql.Append("DraughtStateTwo=@DraughtStateTwo,");
|
||||
strSql.Append("ClientId=@ClientId,");
|
||||
strSql.Append("Reserve1=@Reserve1,");
|
||||
strSql.Append("Reserve2=@Reserve2,");
|
||||
strSql.Append("Reserve3=@Reserve3,");
|
||||
strSql.Append("Reserve4=@Reserve4,");
|
||||
strSql.Append("Reserve5=@Reserve5");
|
||||
strSql.Append(" where DraughtId=@DraughtId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@DraughtName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DeviceNumber", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DraughtNumberOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DraughtNumberTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DraughtStateOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DraughtStateTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@ClientId", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve1", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve2", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve3", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve4", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve5", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@DraughtId", MySqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.DraughtName;
|
||||
parameters[1].Value = model.DeviceNumber;
|
||||
parameters[2].Value = model.DraughtNumberOne;
|
||||
parameters[3].Value = model.DraughtNumberTwo;
|
||||
parameters[4].Value = model.DraughtStateOne;
|
||||
parameters[5].Value = model.DraughtStateTwo;
|
||||
parameters[6].Value = model.ClientId;
|
||||
parameters[7].Value = model.Reserve1;
|
||||
parameters[8].Value = model.Reserve2;
|
||||
parameters[9].Value = model.Reserve3;
|
||||
parameters[10].Value = model.Reserve4;
|
||||
parameters[11].Value = model.Reserve5;
|
||||
parameters[12].Value = model.DraughtId;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string DraughtId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from draught_fan ");
|
||||
strSql.Append(" where DraughtId=@DraughtId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@DraughtId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = DraughtId;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string DraughtIdlist )
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from draught_fan ");
|
||||
strSql.Append(" where DraughtId in ("+DraughtIdlist + ") ");
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.draught_fan GetModel(string DraughtId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select DraughtId,DraughtName,DeviceNumber,DraughtNumberOne,DraughtNumberTwo,DraughtStateOne,DraughtStateTwo,ClientId,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 from draught_fan ");
|
||||
strSql.Append(" where DraughtId=@DraughtId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@DraughtId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = DraughtId;
|
||||
|
||||
DataServer.Model.draught_fan model=new DataServer.Model.draught_fan();
|
||||
DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters);
|
||||
if(ds.Tables[0].Rows.Count>0)
|
||||
{
|
||||
return DataRowToModel(ds.Tables[0].Rows[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.draught_fan DataRowToModel(DataRow row)
|
||||
{
|
||||
DataServer.Model.draught_fan model=new DataServer.Model.draught_fan();
|
||||
if (row != null)
|
||||
{
|
||||
if(row["DraughtId"]!=null)
|
||||
{
|
||||
model.DraughtId=row["DraughtId"].ToString();
|
||||
}
|
||||
if(row["DraughtName"]!=null)
|
||||
{
|
||||
model.DraughtName=row["DraughtName"].ToString();
|
||||
}
|
||||
if(row["DeviceNumber"]!=null)
|
||||
{
|
||||
model.DeviceNumber=row["DeviceNumber"].ToString();
|
||||
}
|
||||
if(row["DraughtNumberOne"]!=null)
|
||||
{
|
||||
model.DraughtNumberOne=row["DraughtNumberOne"].ToString();
|
||||
}
|
||||
if(row["DraughtNumberTwo"]!=null)
|
||||
{
|
||||
model.DraughtNumberTwo=row["DraughtNumberTwo"].ToString();
|
||||
}
|
||||
if(row["DraughtStateOne"]!=null)
|
||||
{
|
||||
model.DraughtStateOne=row["DraughtStateOne"].ToString();
|
||||
}
|
||||
if(row["DraughtStateTwo"]!=null)
|
||||
{
|
||||
model.DraughtStateTwo=row["DraughtStateTwo"].ToString();
|
||||
}
|
||||
if(row["ClientId"]!=null)
|
||||
{
|
||||
model.ClientId=row["ClientId"].ToString();
|
||||
}
|
||||
if(row["Reserve1"]!=null)
|
||||
{
|
||||
model.Reserve1=row["Reserve1"].ToString();
|
||||
}
|
||||
if(row["Reserve2"]!=null)
|
||||
{
|
||||
model.Reserve2=row["Reserve2"].ToString();
|
||||
}
|
||||
if(row["Reserve3"]!=null)
|
||||
{
|
||||
model.Reserve3=row["Reserve3"].ToString();
|
||||
}
|
||||
if(row["Reserve4"]!=null)
|
||||
{
|
||||
model.Reserve4=row["Reserve4"].ToString();
|
||||
}
|
||||
if(row["Reserve5"]!=null)
|
||||
{
|
||||
model.Reserve5=row["Reserve5"].ToString();
|
||||
}
|
||||
}
|
||||
return model;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select DraughtId,DraughtName,DeviceNumber,DraughtNumberOne,DraughtNumberTwo,DraughtStateOne,DraughtStateTwo,ClientId,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 ");
|
||||
strSql.Append(" FROM draught_fan ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
return DbHelperMySQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取记录总数
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) FROM draught_fan ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
object obj = DbHelperSQL.GetSingle(strSql.ToString());
|
||||
if (obj == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Convert.ToInt32(obj);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("SELECT * FROM ( ");
|
||||
strSql.Append(" SELECT ROW_NUMBER() OVER (");
|
||||
if (!string.IsNullOrEmpty(orderby.Trim()))
|
||||
{
|
||||
strSql.Append("order by T." + orderby );
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql.Append("order by T.DraughtId desc");
|
||||
}
|
||||
strSql.Append(")AS Row, T.* from draught_fan T ");
|
||||
if (!string.IsNullOrEmpty(strWhere.Trim()))
|
||||
{
|
||||
strSql.Append(" WHERE " + strWhere);
|
||||
}
|
||||
strSql.Append(" ) TT");
|
||||
strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
|
||||
return DbHelperMySQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/*
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
{
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@tblName", MySqlDbType.VarChar, 255),
|
||||
new MySqlParameter("@fldName", MySqlDbType.VarChar, 255),
|
||||
new MySqlParameter("@PageSize", MySqlDbType.Int32),
|
||||
new MySqlParameter("@PageIndex", MySqlDbType.Int32),
|
||||
new MySqlParameter("@IsReCount", MySqlDbType.Bit),
|
||||
new MySqlParameter("@OrderType", MySqlDbType.Bit),
|
||||
new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000),
|
||||
};
|
||||
parameters[0].Value = "draught_fan";
|
||||
parameters[1].Value = "DraughtId";
|
||||
parameters[2].Value = PageSize;
|
||||
parameters[3].Value = PageIndex;
|
||||
parameters[4].Value = 0;
|
||||
parameters[5].Value = 0;
|
||||
parameters[6].Value = strWhere;
|
||||
return DbHelperMySQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
|
||||
}*/
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,364 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* host_control.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: host_control
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/2/29 14:01:24 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using MySql.Data.MySqlClient;
|
||||
using Maticsoft.DBUtility;//Please add references
|
||||
namespace DataServer.DAL
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据访问类:host_control
|
||||
/// </summary>
|
||||
public partial class host_control
|
||||
{
|
||||
public host_control()
|
||||
{}
|
||||
#region BasicMethod
|
||||
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string HostId)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) from host_control");
|
||||
strSql.Append(" where HostId=@HostId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@HostId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = HostId;
|
||||
|
||||
return DbHelperMySQL.Exists(strSql.ToString(),parameters);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(DataServer.Model.host_control model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("insert into host_control(");
|
||||
strSql.Append("HostId,HostName,HostNumber,HostLocation,HostState,HostTemperature,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5)");
|
||||
strSql.Append(" values (");
|
||||
strSql.Append("@HostId,@HostName,@HostNumber,@HostLocation,@HostState,@HostTemperature,@Reserve1,@Reserve2,@Reserve3,@Reserve4,@Reserve5)");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@HostId", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@HostName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@HostNumber", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@HostLocation", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@HostState", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@HostTemperature", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve1", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve2", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve3", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve4", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve5", MySqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.HostId;
|
||||
parameters[1].Value = model.HostName;
|
||||
parameters[2].Value = model.HostNumber;
|
||||
parameters[3].Value = model.HostLocation;
|
||||
parameters[4].Value = model.HostState;
|
||||
parameters[5].Value = model.HostTemperature;
|
||||
parameters[6].Value = model.Reserve1;
|
||||
parameters[7].Value = model.Reserve2;
|
||||
parameters[8].Value = model.Reserve3;
|
||||
parameters[9].Value = model.Reserve4;
|
||||
parameters[10].Value = model.Reserve5;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(DataServer.Model.host_control model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("update host_control set ");
|
||||
strSql.Append("HostName=@HostName,");
|
||||
strSql.Append("HostNumber=@HostNumber,");
|
||||
strSql.Append("HostLocation=@HostLocation,");
|
||||
strSql.Append("HostState=@HostState,");
|
||||
strSql.Append("HostTemperature=@HostTemperature,");
|
||||
strSql.Append("Reserve1=@Reserve1,");
|
||||
strSql.Append("Reserve2=@Reserve2,");
|
||||
strSql.Append("Reserve3=@Reserve3,");
|
||||
strSql.Append("Reserve4=@Reserve4,");
|
||||
strSql.Append("Reserve5=@Reserve5");
|
||||
strSql.Append(" where HostId=@HostId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@HostName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@HostNumber", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@HostLocation", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@HostState", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@HostTemperature", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve1", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve2", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve3", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve4", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve5", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@HostId", MySqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.HostName;
|
||||
parameters[1].Value = model.HostNumber;
|
||||
parameters[2].Value = model.HostLocation;
|
||||
parameters[3].Value = model.HostState;
|
||||
parameters[4].Value = model.HostTemperature;
|
||||
parameters[5].Value = model.Reserve1;
|
||||
parameters[6].Value = model.Reserve2;
|
||||
parameters[7].Value = model.Reserve3;
|
||||
parameters[8].Value = model.Reserve4;
|
||||
parameters[9].Value = model.Reserve5;
|
||||
parameters[10].Value = model.HostId;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string HostId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from host_control ");
|
||||
strSql.Append(" where HostId=@HostId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@HostId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = HostId;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string HostIdlist )
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from host_control ");
|
||||
strSql.Append(" where HostId in ("+HostIdlist + ") ");
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.host_control GetModel(string HostId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select HostId,HostName,HostNumber,HostLocation,HostState,HostTemperature,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 from host_control ");
|
||||
strSql.Append(" where HostId=@HostId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@HostId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = HostId;
|
||||
|
||||
DataServer.Model.host_control model=new DataServer.Model.host_control();
|
||||
DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters);
|
||||
if(ds.Tables[0].Rows.Count>0)
|
||||
{
|
||||
return DataRowToModel(ds.Tables[0].Rows[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.host_control DataRowToModel(DataRow row)
|
||||
{
|
||||
DataServer.Model.host_control model=new DataServer.Model.host_control();
|
||||
if (row != null)
|
||||
{
|
||||
if(row["HostId"]!=null)
|
||||
{
|
||||
model.HostId=row["HostId"].ToString();
|
||||
}
|
||||
if(row["HostName"]!=null)
|
||||
{
|
||||
model.HostName=row["HostName"].ToString();
|
||||
}
|
||||
if(row["HostNumber"]!=null)
|
||||
{
|
||||
model.HostNumber=row["HostNumber"].ToString();
|
||||
}
|
||||
if(row["HostLocation"]!=null)
|
||||
{
|
||||
model.HostLocation=row["HostLocation"].ToString();
|
||||
}
|
||||
if(row["HostState"]!=null)
|
||||
{
|
||||
model.HostState=row["HostState"].ToString();
|
||||
}
|
||||
if(row["HostTemperature"]!=null)
|
||||
{
|
||||
model.HostTemperature=row["HostTemperature"].ToString();
|
||||
}
|
||||
if(row["Reserve1"]!=null)
|
||||
{
|
||||
model.Reserve1=row["Reserve1"].ToString();
|
||||
}
|
||||
if(row["Reserve2"]!=null)
|
||||
{
|
||||
model.Reserve2=row["Reserve2"].ToString();
|
||||
}
|
||||
if(row["Reserve3"]!=null)
|
||||
{
|
||||
model.Reserve3=row["Reserve3"].ToString();
|
||||
}
|
||||
if(row["Reserve4"]!=null)
|
||||
{
|
||||
model.Reserve4=row["Reserve4"].ToString();
|
||||
}
|
||||
if(row["Reserve5"]!=null)
|
||||
{
|
||||
model.Reserve5=row["Reserve5"].ToString();
|
||||
}
|
||||
}
|
||||
return model;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select HostId,HostName,HostNumber,HostLocation,HostState,HostTemperature,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 ");
|
||||
strSql.Append(" FROM host_control ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
return DbHelperMySQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取记录总数
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) FROM host_control ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
object obj = DbHelperSQL.GetSingle(strSql.ToString());
|
||||
if (obj == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Convert.ToInt32(obj);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("SELECT * FROM ( ");
|
||||
strSql.Append(" SELECT ROW_NUMBER() OVER (");
|
||||
if (!string.IsNullOrEmpty(orderby.Trim()))
|
||||
{
|
||||
strSql.Append("order by T." + orderby );
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql.Append("order by T.HostId desc");
|
||||
}
|
||||
strSql.Append(")AS Row, T.* from host_control T ");
|
||||
if (!string.IsNullOrEmpty(strWhere.Trim()))
|
||||
{
|
||||
strSql.Append(" WHERE " + strWhere);
|
||||
}
|
||||
strSql.Append(" ) TT");
|
||||
strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
|
||||
return DbHelperMySQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/*
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
{
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@tblName", MySqlDbType.VarChar, 255),
|
||||
new MySqlParameter("@fldName", MySqlDbType.VarChar, 255),
|
||||
new MySqlParameter("@PageSize", MySqlDbType.Int32),
|
||||
new MySqlParameter("@PageIndex", MySqlDbType.Int32),
|
||||
new MySqlParameter("@IsReCount", MySqlDbType.Bit),
|
||||
new MySqlParameter("@OrderType", MySqlDbType.Bit),
|
||||
new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000),
|
||||
};
|
||||
parameters[0].Value = "host_control";
|
||||
parameters[1].Value = "HostId";
|
||||
parameters[2].Value = PageSize;
|
||||
parameters[3].Value = PageIndex;
|
||||
parameters[4].Value = 0;
|
||||
parameters[5].Value = 0;
|
||||
parameters[6].Value = strWhere;
|
||||
return DbHelperMySQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
|
||||
}*/
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,364 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* primary_pump.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: primary_pump
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/2/29 17:45:01 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using MySql.Data.MySqlClient;
|
||||
using Maticsoft.DBUtility;//Please add references
|
||||
namespace DataServer.DAL
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据访问类:primary_pump
|
||||
/// </summary>
|
||||
public partial class primary_pump
|
||||
{
|
||||
public primary_pump()
|
||||
{}
|
||||
#region BasicMethod
|
||||
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string PrimaryId)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) from primary_pump");
|
||||
strSql.Append(" where PrimaryId=@PrimaryId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@PrimaryId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = PrimaryId;
|
||||
|
||||
return DbHelperMySQL.Exists(strSql.ToString(),parameters);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(DataServer.Model.primary_pump model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("insert into primary_pump(");
|
||||
strSql.Append("PrimaryId,PrimaryName,PrimaryNumberOne,PrimaryNumberTwo,PrimaryStateOne,PrimaryStateTwo,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5)");
|
||||
strSql.Append(" values (");
|
||||
strSql.Append("@PrimaryId,@PrimaryName,@PrimaryNumberOne,@PrimaryNumberTwo,@PrimaryStateOne,@PrimaryStateTwo,@Reserve1,@Reserve2,@Reserve3,@Reserve4,@Reserve5)");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@PrimaryId", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@PrimaryName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@PrimaryNumberOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@PrimaryNumberTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@PrimaryStateOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@PrimaryStateTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve1", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve2", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve3", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve4", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve5", MySqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.PrimaryId;
|
||||
parameters[1].Value = model.PrimaryName;
|
||||
parameters[2].Value = model.PrimaryNumberOne;
|
||||
parameters[3].Value = model.PrimaryNumberTwo;
|
||||
parameters[4].Value = model.PrimaryStateOne;
|
||||
parameters[5].Value = model.PrimaryStateTwo;
|
||||
parameters[6].Value = model.Reserve1;
|
||||
parameters[7].Value = model.Reserve2;
|
||||
parameters[8].Value = model.Reserve3;
|
||||
parameters[9].Value = model.Reserve4;
|
||||
parameters[10].Value = model.Reserve5;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(DataServer.Model.primary_pump model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("update primary_pump set ");
|
||||
strSql.Append("PrimaryName=@PrimaryName,");
|
||||
strSql.Append("PrimaryNumberOne=@PrimaryNumberOne,");
|
||||
strSql.Append("PrimaryNumberTwo=@PrimaryNumberTwo,");
|
||||
strSql.Append("PrimaryStateOne=@PrimaryStateOne,");
|
||||
strSql.Append("PrimaryStateTwo=@PrimaryStateTwo,");
|
||||
strSql.Append("Reserve1=@Reserve1,");
|
||||
strSql.Append("Reserve2=@Reserve2,");
|
||||
strSql.Append("Reserve3=@Reserve3,");
|
||||
strSql.Append("Reserve4=@Reserve4,");
|
||||
strSql.Append("Reserve5=@Reserve5");
|
||||
strSql.Append(" where PrimaryId=@PrimaryId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@PrimaryName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@PrimaryNumberOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@PrimaryNumberTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@PrimaryStateOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@PrimaryStateTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve1", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve2", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve3", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve4", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve5", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@PrimaryId", MySqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.PrimaryName;
|
||||
parameters[1].Value = model.PrimaryNumberOne;
|
||||
parameters[2].Value = model.PrimaryNumberTwo;
|
||||
parameters[3].Value = model.PrimaryStateOne;
|
||||
parameters[4].Value = model.PrimaryStateTwo;
|
||||
parameters[5].Value = model.Reserve1;
|
||||
parameters[6].Value = model.Reserve2;
|
||||
parameters[7].Value = model.Reserve3;
|
||||
parameters[8].Value = model.Reserve4;
|
||||
parameters[9].Value = model.Reserve5;
|
||||
parameters[10].Value = model.PrimaryId;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string PrimaryId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from primary_pump ");
|
||||
strSql.Append(" where PrimaryId=@PrimaryId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@PrimaryId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = PrimaryId;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string PrimaryIdlist )
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from primary_pump ");
|
||||
strSql.Append(" where PrimaryId in ("+PrimaryIdlist + ") ");
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.primary_pump GetModel(string PrimaryId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select PrimaryId,PrimaryName,PrimaryNumberOne,PrimaryNumberTwo,PrimaryStateOne,PrimaryStateTwo,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 from primary_pump ");
|
||||
strSql.Append(" where PrimaryId=@PrimaryId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@PrimaryId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = PrimaryId;
|
||||
|
||||
DataServer.Model.primary_pump model=new DataServer.Model.primary_pump();
|
||||
DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters);
|
||||
if(ds.Tables[0].Rows.Count>0)
|
||||
{
|
||||
return DataRowToModel(ds.Tables[0].Rows[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.primary_pump DataRowToModel(DataRow row)
|
||||
{
|
||||
DataServer.Model.primary_pump model=new DataServer.Model.primary_pump();
|
||||
if (row != null)
|
||||
{
|
||||
if(row["PrimaryId"]!=null)
|
||||
{
|
||||
model.PrimaryId=row["PrimaryId"].ToString();
|
||||
}
|
||||
if(row["PrimaryName"]!=null)
|
||||
{
|
||||
model.PrimaryName=row["PrimaryName"].ToString();
|
||||
}
|
||||
if(row["PrimaryNumberOne"]!=null)
|
||||
{
|
||||
model.PrimaryNumberOne=row["PrimaryNumberOne"].ToString();
|
||||
}
|
||||
if(row["PrimaryNumberTwo"]!=null)
|
||||
{
|
||||
model.PrimaryNumberTwo=row["PrimaryNumberTwo"].ToString();
|
||||
}
|
||||
if(row["PrimaryStateOne"]!=null)
|
||||
{
|
||||
model.PrimaryStateOne=row["PrimaryStateOne"].ToString();
|
||||
}
|
||||
if(row["PrimaryStateTwo"]!=null)
|
||||
{
|
||||
model.PrimaryStateTwo=row["PrimaryStateTwo"].ToString();
|
||||
}
|
||||
if(row["Reserve1"]!=null)
|
||||
{
|
||||
model.Reserve1=row["Reserve1"].ToString();
|
||||
}
|
||||
if(row["Reserve2"]!=null)
|
||||
{
|
||||
model.Reserve2=row["Reserve2"].ToString();
|
||||
}
|
||||
if(row["Reserve3"]!=null)
|
||||
{
|
||||
model.Reserve3=row["Reserve3"].ToString();
|
||||
}
|
||||
if(row["Reserve4"]!=null)
|
||||
{
|
||||
model.Reserve4=row["Reserve4"].ToString();
|
||||
}
|
||||
if(row["Reserve5"]!=null)
|
||||
{
|
||||
model.Reserve5=row["Reserve5"].ToString();
|
||||
}
|
||||
}
|
||||
return model;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select PrimaryId,PrimaryName,PrimaryNumberOne,PrimaryNumberTwo,PrimaryStateOne,PrimaryStateTwo,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 ");
|
||||
strSql.Append(" FROM primary_pump ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
return DbHelperMySQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取记录总数
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) FROM primary_pump ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
object obj = DbHelperSQL.GetSingle(strSql.ToString());
|
||||
if (obj == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Convert.ToInt32(obj);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("SELECT * FROM ( ");
|
||||
strSql.Append(" SELECT ROW_NUMBER() OVER (");
|
||||
if (!string.IsNullOrEmpty(orderby.Trim()))
|
||||
{
|
||||
strSql.Append("order by T." + orderby );
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql.Append("order by T.PrimaryId desc");
|
||||
}
|
||||
strSql.Append(")AS Row, T.* from primary_pump T ");
|
||||
if (!string.IsNullOrEmpty(strWhere.Trim()))
|
||||
{
|
||||
strSql.Append(" WHERE " + strWhere);
|
||||
}
|
||||
strSql.Append(" ) TT");
|
||||
strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
|
||||
return DbHelperMySQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/*
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
{
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@tblName", MySqlDbType.VarChar, 255),
|
||||
new MySqlParameter("@fldName", MySqlDbType.VarChar, 255),
|
||||
new MySqlParameter("@PageSize", MySqlDbType.Int32),
|
||||
new MySqlParameter("@PageIndex", MySqlDbType.Int32),
|
||||
new MySqlParameter("@IsReCount", MySqlDbType.Bit),
|
||||
new MySqlParameter("@OrderType", MySqlDbType.Bit),
|
||||
new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000),
|
||||
};
|
||||
parameters[0].Value = "primary_pump";
|
||||
parameters[1].Value = "PrimaryId";
|
||||
parameters[2].Value = PageSize;
|
||||
parameters[3].Value = PageIndex;
|
||||
parameters[4].Value = 0;
|
||||
parameters[5].Value = 0;
|
||||
parameters[6].Value = strWhere;
|
||||
return DbHelperMySQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
|
||||
}*/
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,382 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* secondary_pump.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: secondary_pump
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/3/1 10:09:13 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using MySql.Data.MySqlClient;
|
||||
using Maticsoft.DBUtility;//Please add references
|
||||
namespace DataServer.DAL
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据访问类:secondary_pump
|
||||
/// </summary>
|
||||
public partial class secondary_pump
|
||||
{
|
||||
public secondary_pump()
|
||||
{}
|
||||
#region BasicMethod
|
||||
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string SecondaryId)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) from secondary_pump");
|
||||
strSql.Append(" where SecondaryId=@SecondaryId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@SecondaryId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = SecondaryId;
|
||||
|
||||
return DbHelperMySQL.Exists(strSql.ToString(),parameters);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(DataServer.Model.secondary_pump model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("insert into secondary_pump(");
|
||||
strSql.Append("SecondaryId,SecondaryName,SecondaryNumberOne,SecondaryNumberTwo,SecondaryStateOne,SecondaryStateTwo,SecondaryFrequencyName,SecondaryFrequency,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5)");
|
||||
strSql.Append(" values (");
|
||||
strSql.Append("@SecondaryId,@SecondaryName,@SecondaryNumberOne,@SecondaryNumberTwo,@SecondaryStateOne,@SecondaryStateTwo,@SecondaryFrequencyName,@SecondaryFrequency,@Reserve1,@Reserve2,@Reserve3,@Reserve4,@Reserve5)");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@SecondaryId", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryNumberOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryNumberTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryStateOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryStateTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryFrequencyName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryFrequency", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve1", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve2", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve3", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve4", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve5", MySqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.SecondaryId;
|
||||
parameters[1].Value = model.SecondaryName;
|
||||
parameters[2].Value = model.SecondaryNumberOne;
|
||||
parameters[3].Value = model.SecondaryNumberTwo;
|
||||
parameters[4].Value = model.SecondaryStateOne;
|
||||
parameters[5].Value = model.SecondaryStateTwo;
|
||||
parameters[6].Value = model.SecondaryFrequencyName;
|
||||
parameters[7].Value = model.SecondaryFrequency;
|
||||
parameters[8].Value = model.Reserve1;
|
||||
parameters[9].Value = model.Reserve2;
|
||||
parameters[10].Value = model.Reserve3;
|
||||
parameters[11].Value = model.Reserve4;
|
||||
parameters[12].Value = model.Reserve5;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(DataServer.Model.secondary_pump model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("update secondary_pump set ");
|
||||
strSql.Append("SecondaryName=@SecondaryName,");
|
||||
strSql.Append("SecondaryNumberOne=@SecondaryNumberOne,");
|
||||
strSql.Append("SecondaryNumberTwo=@SecondaryNumberTwo,");
|
||||
strSql.Append("SecondaryStateOne=@SecondaryStateOne,");
|
||||
strSql.Append("SecondaryStateTwo=@SecondaryStateTwo,");
|
||||
strSql.Append("SecondaryFrequencyName=@SecondaryFrequencyName,");
|
||||
strSql.Append("SecondaryFrequency=@SecondaryFrequency,");
|
||||
strSql.Append("Reserve1=@Reserve1,");
|
||||
strSql.Append("Reserve2=@Reserve2,");
|
||||
strSql.Append("Reserve3=@Reserve3,");
|
||||
strSql.Append("Reserve4=@Reserve4,");
|
||||
strSql.Append("Reserve5=@Reserve5");
|
||||
strSql.Append(" where SecondaryId=@SecondaryId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@SecondaryName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryNumberOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryNumberTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryStateOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryStateTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryFrequencyName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryFrequency", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve1", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve2", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve3", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve4", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve5", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@SecondaryId", MySqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.SecondaryName;
|
||||
parameters[1].Value = model.SecondaryNumberOne;
|
||||
parameters[2].Value = model.SecondaryNumberTwo;
|
||||
parameters[3].Value = model.SecondaryStateOne;
|
||||
parameters[4].Value = model.SecondaryStateTwo;
|
||||
parameters[5].Value = model.SecondaryFrequencyName;
|
||||
parameters[6].Value = model.SecondaryFrequency;
|
||||
parameters[7].Value = model.Reserve1;
|
||||
parameters[8].Value = model.Reserve2;
|
||||
parameters[9].Value = model.Reserve3;
|
||||
parameters[10].Value = model.Reserve4;
|
||||
parameters[11].Value = model.Reserve5;
|
||||
parameters[12].Value = model.SecondaryId;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string SecondaryId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from secondary_pump ");
|
||||
strSql.Append(" where SecondaryId=@SecondaryId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@SecondaryId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = SecondaryId;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string SecondaryIdlist )
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from secondary_pump ");
|
||||
strSql.Append(" where SecondaryId in ("+SecondaryIdlist + ") ");
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.secondary_pump GetModel(string SecondaryId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select SecondaryId,SecondaryName,SecondaryNumberOne,SecondaryNumberTwo,SecondaryStateOne,SecondaryStateTwo,SecondaryFrequencyName,SecondaryFrequency,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 from secondary_pump ");
|
||||
strSql.Append(" where SecondaryId=@SecondaryId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@SecondaryId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = SecondaryId;
|
||||
|
||||
DataServer.Model.secondary_pump model=new DataServer.Model.secondary_pump();
|
||||
DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters);
|
||||
if(ds.Tables[0].Rows.Count>0)
|
||||
{
|
||||
return DataRowToModel(ds.Tables[0].Rows[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.secondary_pump DataRowToModel(DataRow row)
|
||||
{
|
||||
DataServer.Model.secondary_pump model=new DataServer.Model.secondary_pump();
|
||||
if (row != null)
|
||||
{
|
||||
if(row["SecondaryId"]!=null)
|
||||
{
|
||||
model.SecondaryId=row["SecondaryId"].ToString();
|
||||
}
|
||||
if(row["SecondaryName"]!=null)
|
||||
{
|
||||
model.SecondaryName=row["SecondaryName"].ToString();
|
||||
}
|
||||
if(row["SecondaryNumberOne"]!=null)
|
||||
{
|
||||
model.SecondaryNumberOne=row["SecondaryNumberOne"].ToString();
|
||||
}
|
||||
if(row["SecondaryNumberTwo"]!=null)
|
||||
{
|
||||
model.SecondaryNumberTwo=row["SecondaryNumberTwo"].ToString();
|
||||
}
|
||||
if(row["SecondaryStateOne"]!=null)
|
||||
{
|
||||
model.SecondaryStateOne=row["SecondaryStateOne"].ToString();
|
||||
}
|
||||
if(row["SecondaryStateTwo"]!=null)
|
||||
{
|
||||
model.SecondaryStateTwo=row["SecondaryStateTwo"].ToString();
|
||||
}
|
||||
if(row["SecondaryFrequencyName"]!=null)
|
||||
{
|
||||
model.SecondaryFrequencyName=row["SecondaryFrequencyName"].ToString();
|
||||
}
|
||||
if(row["SecondaryFrequency"]!=null)
|
||||
{
|
||||
model.SecondaryFrequency=row["SecondaryFrequency"].ToString();
|
||||
}
|
||||
if(row["Reserve1"]!=null)
|
||||
{
|
||||
model.Reserve1=row["Reserve1"].ToString();
|
||||
}
|
||||
if(row["Reserve2"]!=null)
|
||||
{
|
||||
model.Reserve2=row["Reserve2"].ToString();
|
||||
}
|
||||
if(row["Reserve3"]!=null)
|
||||
{
|
||||
model.Reserve3=row["Reserve3"].ToString();
|
||||
}
|
||||
if(row["Reserve4"]!=null)
|
||||
{
|
||||
model.Reserve4=row["Reserve4"].ToString();
|
||||
}
|
||||
if(row["Reserve5"]!=null)
|
||||
{
|
||||
model.Reserve5=row["Reserve5"].ToString();
|
||||
}
|
||||
}
|
||||
return model;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select SecondaryId,SecondaryName,SecondaryNumberOne,SecondaryNumberTwo,SecondaryStateOne,SecondaryStateTwo,SecondaryFrequencyName,SecondaryFrequency,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 ");
|
||||
strSql.Append(" FROM secondary_pump ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
return DbHelperMySQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取记录总数
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) FROM secondary_pump ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
object obj = DbHelperSQL.GetSingle(strSql.ToString());
|
||||
if (obj == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Convert.ToInt32(obj);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("SELECT * FROM ( ");
|
||||
strSql.Append(" SELECT ROW_NUMBER() OVER (");
|
||||
if (!string.IsNullOrEmpty(orderby.Trim()))
|
||||
{
|
||||
strSql.Append("order by T." + orderby );
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql.Append("order by T.SecondaryId desc");
|
||||
}
|
||||
strSql.Append(")AS Row, T.* from secondary_pump T ");
|
||||
if (!string.IsNullOrEmpty(strWhere.Trim()))
|
||||
{
|
||||
strSql.Append(" WHERE " + strWhere);
|
||||
}
|
||||
strSql.Append(" ) TT");
|
||||
strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
|
||||
return DbHelperMySQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/*
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
{
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@tblName", MySqlDbType.VarChar, 255),
|
||||
new MySqlParameter("@fldName", MySqlDbType.VarChar, 255),
|
||||
new MySqlParameter("@PageSize", MySqlDbType.Int32),
|
||||
new MySqlParameter("@PageIndex", MySqlDbType.Int32),
|
||||
new MySqlParameter("@IsReCount", MySqlDbType.Bit),
|
||||
new MySqlParameter("@OrderType", MySqlDbType.Bit),
|
||||
new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000),
|
||||
};
|
||||
parameters[0].Value = "secondary_pump";
|
||||
parameters[1].Value = "SecondaryId";
|
||||
parameters[2].Value = PageSize;
|
||||
parameters[3].Value = PageIndex;
|
||||
parameters[4].Value = 0;
|
||||
parameters[5].Value = 0;
|
||||
parameters[6].Value = strWhere;
|
||||
return DbHelperMySQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
|
||||
}*/
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,364 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* terrestrial_source.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: terrestrial_source
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/2/29 16:16:58 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using MySql.Data.MySqlClient;
|
||||
using Maticsoft.DBUtility;//Please add references
|
||||
namespace DataServer.DAL
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据访问类:terrestrial_source
|
||||
/// </summary>
|
||||
public partial class terrestrial_source
|
||||
{
|
||||
public terrestrial_source()
|
||||
{}
|
||||
#region BasicMethod
|
||||
|
||||
/// <summary>
|
||||
/// 是否存在该记录
|
||||
/// </summary>
|
||||
public bool Exists(string TerrestrialId)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) from terrestrial_source");
|
||||
strSql.Append(" where TerrestrialId=@TerrestrialId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@TerrestrialId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = TerrestrialId;
|
||||
|
||||
return DbHelperMySQL.Exists(strSql.ToString(),parameters);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 增加一条数据
|
||||
/// </summary>
|
||||
public bool Add(DataServer.Model.terrestrial_source model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("insert into terrestrial_source(");
|
||||
strSql.Append("TerrestrialId,TerrestrialName,TerrestrialNumberOne,TerrestrialNumberTwo,TerrestrialStateOne,TerrestrialStateTwo,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5)");
|
||||
strSql.Append(" values (");
|
||||
strSql.Append("@TerrestrialId,@TerrestrialName,@TerrestrialNumberOne,@TerrestrialNumberTwo,@TerrestrialStateOne,@TerrestrialStateTwo,@Reserve1,@Reserve2,@Reserve3,@Reserve4,@Reserve5)");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@TerrestrialId", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@TerrestrialName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@TerrestrialNumberOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@TerrestrialNumberTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@TerrestrialStateOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@TerrestrialStateTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve1", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve2", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve3", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve4", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve5", MySqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.TerrestrialId;
|
||||
parameters[1].Value = model.TerrestrialName;
|
||||
parameters[2].Value = model.TerrestrialNumberOne;
|
||||
parameters[3].Value = model.TerrestrialNumberTwo;
|
||||
parameters[4].Value = model.TerrestrialStateOne;
|
||||
parameters[5].Value = model.TerrestrialStateTwo;
|
||||
parameters[6].Value = model.Reserve1;
|
||||
parameters[7].Value = model.Reserve2;
|
||||
parameters[8].Value = model.Reserve3;
|
||||
parameters[9].Value = model.Reserve4;
|
||||
parameters[10].Value = model.Reserve5;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新一条数据
|
||||
/// </summary>
|
||||
public bool Update(DataServer.Model.terrestrial_source model)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("update terrestrial_source set ");
|
||||
strSql.Append("TerrestrialName=@TerrestrialName,");
|
||||
strSql.Append("TerrestrialNumberOne=@TerrestrialNumberOne,");
|
||||
strSql.Append("TerrestrialNumberTwo=@TerrestrialNumberTwo,");
|
||||
strSql.Append("TerrestrialStateOne=@TerrestrialStateOne,");
|
||||
strSql.Append("TerrestrialStateTwo=@TerrestrialStateTwo,");
|
||||
strSql.Append("Reserve1=@Reserve1,");
|
||||
strSql.Append("Reserve2=@Reserve2,");
|
||||
strSql.Append("Reserve3=@Reserve3,");
|
||||
strSql.Append("Reserve4=@Reserve4,");
|
||||
strSql.Append("Reserve5=@Reserve5");
|
||||
strSql.Append(" where TerrestrialId=@TerrestrialId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@TerrestrialName", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@TerrestrialNumberOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@TerrestrialNumberTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@TerrestrialStateOne", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@TerrestrialStateTwo", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve1", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve2", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve3", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve4", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@Reserve5", MySqlDbType.VarChar,255),
|
||||
new MySqlParameter("@TerrestrialId", MySqlDbType.VarChar,255)};
|
||||
parameters[0].Value = model.TerrestrialName;
|
||||
parameters[1].Value = model.TerrestrialNumberOne;
|
||||
parameters[2].Value = model.TerrestrialNumberTwo;
|
||||
parameters[3].Value = model.TerrestrialStateOne;
|
||||
parameters[4].Value = model.TerrestrialStateTwo;
|
||||
parameters[5].Value = model.Reserve1;
|
||||
parameters[6].Value = model.Reserve2;
|
||||
parameters[7].Value = model.Reserve3;
|
||||
parameters[8].Value = model.Reserve4;
|
||||
parameters[9].Value = model.Reserve5;
|
||||
parameters[10].Value = model.TerrestrialId;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一条数据
|
||||
/// </summary>
|
||||
public bool Delete(string TerrestrialId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from terrestrial_source ");
|
||||
strSql.Append(" where TerrestrialId=@TerrestrialId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@TerrestrialId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = TerrestrialId;
|
||||
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
public bool DeleteList(string TerrestrialIdlist )
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("delete from terrestrial_source ");
|
||||
strSql.Append(" where TerrestrialId in ("+TerrestrialIdlist + ") ");
|
||||
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
|
||||
if (rows > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.terrestrial_source GetModel(string TerrestrialId)
|
||||
{
|
||||
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select TerrestrialId,TerrestrialName,TerrestrialNumberOne,TerrestrialNumberTwo,TerrestrialStateOne,TerrestrialStateTwo,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 from terrestrial_source ");
|
||||
strSql.Append(" where TerrestrialId=@TerrestrialId ");
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@TerrestrialId", MySqlDbType.VarChar,255) };
|
||||
parameters[0].Value = TerrestrialId;
|
||||
|
||||
DataServer.Model.terrestrial_source model=new DataServer.Model.terrestrial_source();
|
||||
DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters);
|
||||
if(ds.Tables[0].Rows.Count>0)
|
||||
{
|
||||
return DataRowToModel(ds.Tables[0].Rows[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public DataServer.Model.terrestrial_source DataRowToModel(DataRow row)
|
||||
{
|
||||
DataServer.Model.terrestrial_source model=new DataServer.Model.terrestrial_source();
|
||||
if (row != null)
|
||||
{
|
||||
if(row["TerrestrialId"]!=null)
|
||||
{
|
||||
model.TerrestrialId=row["TerrestrialId"].ToString();
|
||||
}
|
||||
if(row["TerrestrialName"]!=null)
|
||||
{
|
||||
model.TerrestrialName=row["TerrestrialName"].ToString();
|
||||
}
|
||||
if(row["TerrestrialNumberOne"]!=null)
|
||||
{
|
||||
model.TerrestrialNumberOne=row["TerrestrialNumberOne"].ToString();
|
||||
}
|
||||
if(row["TerrestrialNumberTwo"]!=null)
|
||||
{
|
||||
model.TerrestrialNumberTwo=row["TerrestrialNumberTwo"].ToString();
|
||||
}
|
||||
if(row["TerrestrialStateOne"]!=null)
|
||||
{
|
||||
model.TerrestrialStateOne=row["TerrestrialStateOne"].ToString();
|
||||
}
|
||||
if(row["TerrestrialStateTwo"]!=null)
|
||||
{
|
||||
model.TerrestrialStateTwo=row["TerrestrialStateTwo"].ToString();
|
||||
}
|
||||
if(row["Reserve1"]!=null)
|
||||
{
|
||||
model.Reserve1=row["Reserve1"].ToString();
|
||||
}
|
||||
if(row["Reserve2"]!=null)
|
||||
{
|
||||
model.Reserve2=row["Reserve2"].ToString();
|
||||
}
|
||||
if(row["Reserve3"]!=null)
|
||||
{
|
||||
model.Reserve3=row["Reserve3"].ToString();
|
||||
}
|
||||
if(row["Reserve4"]!=null)
|
||||
{
|
||||
model.Reserve4=row["Reserve4"].ToString();
|
||||
}
|
||||
if(row["Reserve5"]!=null)
|
||||
{
|
||||
model.Reserve5=row["Reserve5"].ToString();
|
||||
}
|
||||
}
|
||||
return model;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select TerrestrialId,TerrestrialName,TerrestrialNumberOne,TerrestrialNumberTwo,TerrestrialStateOne,TerrestrialStateTwo,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 ");
|
||||
strSql.Append(" FROM terrestrial_source ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
return DbHelperMySQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取记录总数
|
||||
/// </summary>
|
||||
public int GetRecordCount(string strWhere)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("select count(1) FROM terrestrial_source ");
|
||||
if(strWhere.Trim()!="")
|
||||
{
|
||||
strSql.Append(" where "+strWhere);
|
||||
}
|
||||
object obj = DbHelperSQL.GetSingle(strSql.ToString());
|
||||
if (obj == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Convert.ToInt32(obj);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
|
||||
{
|
||||
StringBuilder strSql=new StringBuilder();
|
||||
strSql.Append("SELECT * FROM ( ");
|
||||
strSql.Append(" SELECT ROW_NUMBER() OVER (");
|
||||
if (!string.IsNullOrEmpty(orderby.Trim()))
|
||||
{
|
||||
strSql.Append("order by T." + orderby );
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql.Append("order by T.TerrestrialId desc");
|
||||
}
|
||||
strSql.Append(")AS Row, T.* from terrestrial_source T ");
|
||||
if (!string.IsNullOrEmpty(strWhere.Trim()))
|
||||
{
|
||||
strSql.Append(" WHERE " + strWhere);
|
||||
}
|
||||
strSql.Append(" ) TT");
|
||||
strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
|
||||
return DbHelperMySQL.Query(strSql.ToString());
|
||||
}
|
||||
|
||||
/*
|
||||
/// <summary>
|
||||
/// 分页获取数据列表
|
||||
/// </summary>
|
||||
public DataSet GetList(int PageSize,int PageIndex,string strWhere)
|
||||
{
|
||||
MySqlParameter[] parameters = {
|
||||
new MySqlParameter("@tblName", MySqlDbType.VarChar, 255),
|
||||
new MySqlParameter("@fldName", MySqlDbType.VarChar, 255),
|
||||
new MySqlParameter("@PageSize", MySqlDbType.Int32),
|
||||
new MySqlParameter("@PageIndex", MySqlDbType.Int32),
|
||||
new MySqlParameter("@IsReCount", MySqlDbType.Bit),
|
||||
new MySqlParameter("@OrderType", MySqlDbType.Bit),
|
||||
new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000),
|
||||
};
|
||||
parameters[0].Value = "terrestrial_source";
|
||||
parameters[1].Value = "TerrestrialId";
|
||||
parameters[2].Value = PageSize;
|
||||
parameters[3].Value = PageIndex;
|
||||
parameters[4].Value = 0;
|
||||
parameters[5].Value = 0;
|
||||
parameters[6].Value = strWhere;
|
||||
return DbHelperMySQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
|
||||
}*/
|
||||
|
||||
#endregion BasicMethod
|
||||
#region ExtensionMethod
|
||||
|
||||
#endregion ExtensionMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -88,8 +88,10 @@
|
|||
<Compile Include="api\get_equipment_monitoring.cs" />
|
||||
<Compile Include="api\get_essential_information.cs" />
|
||||
<Compile Include="api\get_fault_condition.cs" />
|
||||
<Compile Include="api\get_frequency_conversion.cs" />
|
||||
<Compile Include="api\get_gas_consumption.cs" />
|
||||
<Compile Include="api\get_general_catalogue.cs" />
|
||||
<Compile Include="api\get_host_control.cs" />
|
||||
<Compile Include="api\get_illumination_load.cs" />
|
||||
<Compile Include="api\get_information.cs" />
|
||||
<Compile Include="api\get_lighting_load.cs" />
|
||||
|
|
@ -109,48 +111,63 @@
|
|||
<Compile Include="BLL\device_info.cs" />
|
||||
<Compile Include="BLL\device_operation.cs" />
|
||||
<Compile Include="BLL\device_state.cs" />
|
||||
<Compile Include="BLL\draught_fan.cs" />
|
||||
<Compile Include="BLL\electricity_data.cs" />
|
||||
<Compile Include="BLL\electricity_price.cs" />
|
||||
<Compile Include="BLL\electricity_quantity.cs" />
|
||||
<Compile Include="BLL\electrotherapy_room.cs" />
|
||||
<Compile Include="BLL\gas_data.cs" />
|
||||
<Compile Include="BLL\host_control.cs" />
|
||||
<Compile Include="BLL\host_parameter.cs" />
|
||||
<Compile Include="BLL\lighting_control.cs" />
|
||||
<Compile Include="BLL\lighting_strategy.cs" />
|
||||
<Compile Include="BLL\meteorological_station.cs" />
|
||||
<Compile Include="BLL\planned_energy.cs" />
|
||||
<Compile Include="BLL\primary_pump.cs" />
|
||||
<Compile Include="BLL\secondary_pump.cs" />
|
||||
<Compile Include="BLL\terrestrial_source.cs" />
|
||||
<Compile Include="BLL\water_data.cs" />
|
||||
<Compile Include="DAL\device_data.cs" />
|
||||
<Compile Include="api\get_realtime_data.cs" />
|
||||
<Compile Include="DAL\device_info.cs" />
|
||||
<Compile Include="DAL\device_operation.cs" />
|
||||
<Compile Include="DAL\device_state.cs" />
|
||||
<Compile Include="DAL\draught_fan.cs" />
|
||||
<Compile Include="DAL\electricity_data.cs" />
|
||||
<Compile Include="DAL\electricity_price.cs" />
|
||||
<Compile Include="DAL\electricity_quantity.cs" />
|
||||
<Compile Include="DAL\electrotherapy_room.cs" />
|
||||
<Compile Include="DAL\gas_data.cs" />
|
||||
<Compile Include="DAL\host_control.cs" />
|
||||
<Compile Include="DAL\host_parameter.cs" />
|
||||
<Compile Include="DAL\lighting_control.cs" />
|
||||
<Compile Include="DAL\lighting_strategy.cs" />
|
||||
<Compile Include="DAL\meteorological_station.cs" />
|
||||
<Compile Include="DAL\planned_energy.cs" />
|
||||
<Compile Include="DAL\primary_pump.cs" />
|
||||
<Compile Include="DAL\secondary_pump.cs" />
|
||||
<Compile Include="DAL\terrestrial_source.cs" />
|
||||
<Compile Include="DAL\water_data.cs" />
|
||||
<Compile Include="Model\device_data.cs" />
|
||||
<Compile Include="Model\device_info.cs" />
|
||||
<Compile Include="Model\device_operation.cs" />
|
||||
<Compile Include="Model\device_state.cs" />
|
||||
<Compile Include="Model\draught_fan.cs" />
|
||||
<Compile Include="Model\electricity_data.cs" />
|
||||
<Compile Include="Model\electricity_price.cs" />
|
||||
<Compile Include="Model\electricity_quantity.cs" />
|
||||
<Compile Include="Model\electrotherapy_room.cs" />
|
||||
<Compile Include="Model\gas_data.cs" />
|
||||
<Compile Include="api\get_carbon_measure.cs" />
|
||||
<Compile Include="Model\host_control.cs" />
|
||||
<Compile Include="Model\host_parameter.cs" />
|
||||
<Compile Include="Model\lighting_control.cs" />
|
||||
<Compile Include="Model\lighting_strategy.cs" />
|
||||
<Compile Include="Model\meteorological_station.cs" />
|
||||
<Compile Include="Model\planned_energy.cs" />
|
||||
<Compile Include="Model\primary_pump.cs" />
|
||||
<Compile Include="Model\secondary_pump.cs" />
|
||||
<Compile Include="Model\terrestrial_source.cs" />
|
||||
<Compile Include="Model\water_data.cs" />
|
||||
<Compile Include="other\service_rating_data.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
|
|
|
|||
|
|
@ -0,0 +1,150 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* draught_fan.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: draught_fan
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/3/1 14:54:50 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
namespace DataServer.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// draught_fan:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class draught_fan
|
||||
{
|
||||
public draught_fan()
|
||||
{}
|
||||
#region Model
|
||||
private string _draughtid;
|
||||
private string _draughtname;
|
||||
private string _devicenumber;
|
||||
private string _draughtnumberone;
|
||||
private string _draughtnumbertwo;
|
||||
private string _draughtstateone;
|
||||
private string _draughtstatetwo;
|
||||
private string _clientid;
|
||||
private string _reserve1;
|
||||
private string _reserve2;
|
||||
private string _reserve3;
|
||||
private string _reserve4;
|
||||
private string _reserve5;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DraughtId
|
||||
{
|
||||
set{ _draughtid=value;}
|
||||
get{return _draughtid;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DraughtName
|
||||
{
|
||||
set{ _draughtname=value;}
|
||||
get{return _draughtname;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DeviceNumber
|
||||
{
|
||||
set{ _devicenumber=value;}
|
||||
get{return _devicenumber;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DraughtNumberOne
|
||||
{
|
||||
set{ _draughtnumberone=value;}
|
||||
get{return _draughtnumberone;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DraughtNumberTwo
|
||||
{
|
||||
set{ _draughtnumbertwo=value;}
|
||||
get{return _draughtnumbertwo;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DraughtStateOne
|
||||
{
|
||||
set{ _draughtstateone=value;}
|
||||
get{return _draughtstateone;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DraughtStateTwo
|
||||
{
|
||||
set{ _draughtstatetwo=value;}
|
||||
get{return _draughtstatetwo;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ClientId
|
||||
{
|
||||
set{ _clientid=value;}
|
||||
get{return _clientid;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve1
|
||||
{
|
||||
set{ _reserve1=value;}
|
||||
get{return _reserve1;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve2
|
||||
{
|
||||
set{ _reserve2=value;}
|
||||
get{return _reserve2;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve3
|
||||
{
|
||||
set{ _reserve3=value;}
|
||||
get{return _reserve3;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve4
|
||||
{
|
||||
set{ _reserve4=value;}
|
||||
get{return _reserve4;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve5
|
||||
{
|
||||
set{ _reserve5=value;}
|
||||
get{return _reserve5;}
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,132 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* host_control.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: host_control
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/2/29 14:01:24 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
namespace DataServer.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// host_control:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class host_control
|
||||
{
|
||||
public host_control()
|
||||
{}
|
||||
#region Model
|
||||
private string _hostid;
|
||||
private string _hostname;
|
||||
private string _hostnumber;
|
||||
private string _hostlocation;
|
||||
private string _hoststate;
|
||||
private string _hosttemperature;
|
||||
private string _reserve1;
|
||||
private string _reserve2;
|
||||
private string _reserve3;
|
||||
private string _reserve4;
|
||||
private string _reserve5;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string HostId
|
||||
{
|
||||
set{ _hostid=value;}
|
||||
get{return _hostid;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string HostName
|
||||
{
|
||||
set{ _hostname=value;}
|
||||
get{return _hostname;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string HostNumber
|
||||
{
|
||||
set{ _hostnumber=value;}
|
||||
get{return _hostnumber;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string HostLocation
|
||||
{
|
||||
set{ _hostlocation=value;}
|
||||
get{return _hostlocation;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string HostState
|
||||
{
|
||||
set{ _hoststate=value;}
|
||||
get{return _hoststate;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string HostTemperature
|
||||
{
|
||||
set{ _hosttemperature=value;}
|
||||
get{return _hosttemperature;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve1
|
||||
{
|
||||
set{ _reserve1=value;}
|
||||
get{return _reserve1;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve2
|
||||
{
|
||||
set{ _reserve2=value;}
|
||||
get{return _reserve2;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve3
|
||||
{
|
||||
set{ _reserve3=value;}
|
||||
get{return _reserve3;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve4
|
||||
{
|
||||
set{ _reserve4=value;}
|
||||
get{return _reserve4;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve5
|
||||
{
|
||||
set{ _reserve5=value;}
|
||||
get{return _reserve5;}
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,132 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* primary_pump.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: primary_pump
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/2/29 17:45:01 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
namespace DataServer.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// primary_pump:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class primary_pump
|
||||
{
|
||||
public primary_pump()
|
||||
{}
|
||||
#region Model
|
||||
private string _primaryid;
|
||||
private string _primaryname;
|
||||
private string _primarynumberone;
|
||||
private string _primarynumbertwo;
|
||||
private string _primarystateone;
|
||||
private string _primarystatetwo;
|
||||
private string _reserve1;
|
||||
private string _reserve2;
|
||||
private string _reserve3;
|
||||
private string _reserve4;
|
||||
private string _reserve5;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PrimaryId
|
||||
{
|
||||
set{ _primaryid=value;}
|
||||
get{return _primaryid;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PrimaryName
|
||||
{
|
||||
set{ _primaryname=value;}
|
||||
get{return _primaryname;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PrimaryNumberOne
|
||||
{
|
||||
set{ _primarynumberone=value;}
|
||||
get{return _primarynumberone;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PrimaryNumberTwo
|
||||
{
|
||||
set{ _primarynumbertwo=value;}
|
||||
get{return _primarynumbertwo;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PrimaryStateOne
|
||||
{
|
||||
set{ _primarystateone=value;}
|
||||
get{return _primarystateone;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PrimaryStateTwo
|
||||
{
|
||||
set{ _primarystatetwo=value;}
|
||||
get{return _primarystatetwo;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve1
|
||||
{
|
||||
set{ _reserve1=value;}
|
||||
get{return _reserve1;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve2
|
||||
{
|
||||
set{ _reserve2=value;}
|
||||
get{return _reserve2;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve3
|
||||
{
|
||||
set{ _reserve3=value;}
|
||||
get{return _reserve3;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve4
|
||||
{
|
||||
set{ _reserve4=value;}
|
||||
get{return _reserve4;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve5
|
||||
{
|
||||
set{ _reserve5=value;}
|
||||
get{return _reserve5;}
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* secondary_pump.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: secondary_pump
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/3/1 10:09:13 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
namespace DataServer.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// secondary_pump:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class secondary_pump
|
||||
{
|
||||
public secondary_pump()
|
||||
{}
|
||||
#region Model
|
||||
private string _secondaryid;
|
||||
private string _secondaryname;
|
||||
private string _secondarynumberone;
|
||||
private string _secondarynumbertwo;
|
||||
private string _secondarystateone;
|
||||
private string _secondarystatetwo;
|
||||
private string _secondaryfrequencyname;
|
||||
private string _secondaryfrequency;
|
||||
private string _reserve1;
|
||||
private string _reserve2;
|
||||
private string _reserve3;
|
||||
private string _reserve4;
|
||||
private string _reserve5;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SecondaryId
|
||||
{
|
||||
set{ _secondaryid=value;}
|
||||
get{return _secondaryid;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SecondaryName
|
||||
{
|
||||
set{ _secondaryname=value;}
|
||||
get{return _secondaryname;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SecondaryNumberOne
|
||||
{
|
||||
set{ _secondarynumberone=value;}
|
||||
get{return _secondarynumberone;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SecondaryNumberTwo
|
||||
{
|
||||
set{ _secondarynumbertwo=value;}
|
||||
get{return _secondarynumbertwo;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SecondaryStateOne
|
||||
{
|
||||
set{ _secondarystateone=value;}
|
||||
get{return _secondarystateone;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SecondaryStateTwo
|
||||
{
|
||||
set{ _secondarystatetwo=value;}
|
||||
get{return _secondarystatetwo;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SecondaryFrequencyName
|
||||
{
|
||||
set{ _secondaryfrequencyname=value;}
|
||||
get{return _secondaryfrequencyname;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SecondaryFrequency
|
||||
{
|
||||
set{ _secondaryfrequency=value;}
|
||||
get{return _secondaryfrequency;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve1
|
||||
{
|
||||
set{ _reserve1=value;}
|
||||
get{return _reserve1;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve2
|
||||
{
|
||||
set{ _reserve2=value;}
|
||||
get{return _reserve2;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve3
|
||||
{
|
||||
set{ _reserve3=value;}
|
||||
get{return _reserve3;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve4
|
||||
{
|
||||
set{ _reserve4=value;}
|
||||
get{return _reserve4;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve5
|
||||
{
|
||||
set{ _reserve5=value;}
|
||||
get{return _reserve5;}
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,132 @@
|
|||
/** 版本信息模板在安装目录下,可自行修改。
|
||||
* terrestrial_source.cs
|
||||
*
|
||||
* 功 能: N/A
|
||||
* 类 名: terrestrial_source
|
||||
*
|
||||
* Ver 变更日期 负责人 变更内容
|
||||
* ───────────────────────────────────
|
||||
* V0.01 2024/2/29 16:16:58 N/A 初版
|
||||
*
|
||||
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
||||
*┌──────────────────────────────────┐
|
||||
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
||||
*│ 版权所有:动软卓越(北京)科技有限公司 │
|
||||
*└──────────────────────────────────┘
|
||||
*/
|
||||
using System;
|
||||
namespace DataServer.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// terrestrial_source:实体类(属性说明自动提取数据库字段的描述信息)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class terrestrial_source
|
||||
{
|
||||
public terrestrial_source()
|
||||
{}
|
||||
#region Model
|
||||
private string _terrestrialid;
|
||||
private string _terrestrialname;
|
||||
private string _terrestrialnumberone;
|
||||
private string _terrestrialnumbertwo;
|
||||
private string _terrestrialstateone;
|
||||
private string _terrestrialstatetwo;
|
||||
private string _reserve1;
|
||||
private string _reserve2;
|
||||
private string _reserve3;
|
||||
private string _reserve4;
|
||||
private string _reserve5;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string TerrestrialId
|
||||
{
|
||||
set{ _terrestrialid=value;}
|
||||
get{return _terrestrialid;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string TerrestrialName
|
||||
{
|
||||
set{ _terrestrialname=value;}
|
||||
get{return _terrestrialname;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string TerrestrialNumberOne
|
||||
{
|
||||
set{ _terrestrialnumberone=value;}
|
||||
get{return _terrestrialnumberone;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string TerrestrialNumberTwo
|
||||
{
|
||||
set{ _terrestrialnumbertwo=value;}
|
||||
get{return _terrestrialnumbertwo;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string TerrestrialStateOne
|
||||
{
|
||||
set{ _terrestrialstateone=value;}
|
||||
get{return _terrestrialstateone;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string TerrestrialStateTwo
|
||||
{
|
||||
set{ _terrestrialstatetwo=value;}
|
||||
get{return _terrestrialstatetwo;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve1
|
||||
{
|
||||
set{ _reserve1=value;}
|
||||
get{return _reserve1;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve2
|
||||
{
|
||||
set{ _reserve2=value;}
|
||||
get{return _reserve2;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve3
|
||||
{
|
||||
set{ _reserve3=value;}
|
||||
get{return _reserve3;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve4
|
||||
{
|
||||
set{ _reserve4=value;}
|
||||
get{return _reserve4;}
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Reserve5
|
||||
{
|
||||
set{ _reserve5=value;}
|
||||
get{return _reserve5;}
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataServer.api
|
||||
{
|
||||
public class get_frequency_conversion
|
||||
{
|
||||
public int code { get; set; }
|
||||
public string msg { get; set; }
|
||||
public List<frequency_conversionData> data { get; set; }
|
||||
}
|
||||
public class frequency_conversionData
|
||||
{
|
||||
public string FrequencyConversion { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataServer.api
|
||||
{
|
||||
public class get_host_control
|
||||
{
|
||||
public int code { get; set; }
|
||||
public string msg { get; set; }
|
||||
public List<host_controlData> data { get; set; }
|
||||
}
|
||||
public class host_controlData
|
||||
{
|
||||
/// <summary>
|
||||
/// 主机状态
|
||||
/// </summary>
|
||||
public string HostState { get; set; }
|
||||
/// <summary>
|
||||
/// 地源状态
|
||||
/// </summary>
|
||||
public string TerrestrialState { get; set; }
|
||||
/// <summary>
|
||||
/// 一次泵状态
|
||||
/// </summary>
|
||||
public string PrimaryState { get; set; }
|
||||
/// <summary>
|
||||
/// 二次泵状态
|
||||
/// </summary>
|
||||
public string SecondaryState { get; set; }
|
||||
/// <summary>
|
||||
/// 风机状态
|
||||
/// </summary>
|
||||
public string DraughtState { get; set;}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@ namespace DataServer.api
|
|||
{
|
||||
public int code { get; set; }
|
||||
public string msg { get; set; }
|
||||
public data data { get; set; }
|
||||
public List<data> data { get; set; }
|
||||
}
|
||||
public class data
|
||||
{
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
6821b5fa99ebdd7a10c5d14707e6546206aa9dff
|
||||
d2a35856beea166416caf311231c7e63c75d5f02
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,39 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace DongYingAPI.Controllers
|
||||
{
|
||||
public class SetDraughtFanController : ApiController
|
||||
{
|
||||
// GET api/<controller>
|
||||
public IEnumerable<string> Get()
|
||||
{
|
||||
return new string[] { "value1", "value2" };
|
||||
}
|
||||
|
||||
// GET api/<controller>/5
|
||||
public string Get(int id)
|
||||
{
|
||||
return "value";
|
||||
}
|
||||
|
||||
// POST api/<controller>
|
||||
public void Post([FromBody] string value)
|
||||
{
|
||||
}
|
||||
|
||||
// PUT api/<controller>/5
|
||||
public void Put(int id, [FromBody] string value)
|
||||
{
|
||||
}
|
||||
|
||||
// DELETE api/<controller>/5
|
||||
public void Delete(int id)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -112,16 +112,16 @@ namespace DongYingAPI.Controllers.api.EnergyEfficiency
|
|||
res.data = new energy_flow()
|
||||
{
|
||||
Name = "原始值折标煤",
|
||||
Value = (air_conditioning + lighting + lift + other +Convert.ToDecimal(0.43)),
|
||||
Value = (air_conditioning + lighting + lift + other +Convert.ToDecimal(0.493)),
|
||||
data = new List<secondary_energy_flow>() {
|
||||
new secondary_energy_flow() {
|
||||
Name = "天然气",
|
||||
Value =Convert.ToDecimal(0.43),
|
||||
Value =Convert.ToDecimal(0.493),
|
||||
data=new List<three_level_energy_flow>(){
|
||||
new three_level_energy_flow()
|
||||
{
|
||||
Name="食堂",
|
||||
Value=Convert.ToDecimal(0.43)
|
||||
Value=Convert.ToDecimal(0.493)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,105 @@
|
|||
using DataServer.api;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace DongYingAPI.Controllers.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 空调-获取全部状态启停
|
||||
/// </summary>
|
||||
public class GetAllStopController : ApiController
|
||||
{
|
||||
/// <summary>
|
||||
/// 主机状态
|
||||
/// </summary>
|
||||
DataServer.BLL.host_control bll_host = new DataServer.BLL.host_control();
|
||||
/// <summary>
|
||||
/// 一次泵状态
|
||||
/// </summary>
|
||||
DataServer.BLL.primary_pump bll_primary = new DataServer.BLL.primary_pump();
|
||||
/// <summary>
|
||||
/// 地源状态
|
||||
/// </summary>
|
||||
DataServer.BLL.terrestrial_source bll_terrestrial = new DataServer.BLL.terrestrial_source();
|
||||
/// <summary>
|
||||
/// 风机状态
|
||||
/// </summary>
|
||||
DataServer.BLL.draught_fan bll_draught = new DataServer.BLL.draught_fan();
|
||||
/// <summary>
|
||||
/// 二次泵状态
|
||||
/// </summary>
|
||||
DataServer.BLL.secondary_pump bll_secondary = new DataServer.BLL.secondary_pump();
|
||||
public HttpResponseMessage Get()
|
||||
{
|
||||
var res = new get_host_control();
|
||||
try
|
||||
{
|
||||
var data = new List<host_controlData>();
|
||||
var alist = bll_host.GetModelList("").FirstOrDefault();
|
||||
var blist = bll_terrestrial.GetModelList("").FirstOrDefault();
|
||||
var clist = bll_primary.GetModelList("").FirstOrDefault();
|
||||
var dlist = bll_secondary.GetModelList("").FirstOrDefault();
|
||||
var elist = bll_draught.GetModelList("").FirstOrDefault();
|
||||
var model=new host_controlData();
|
||||
if (alist.HostState == "0")
|
||||
{
|
||||
model.HostState = "启动";
|
||||
}
|
||||
if (alist.HostState == "1")
|
||||
{
|
||||
model.HostState = "停止";
|
||||
}
|
||||
if(blist.TerrestrialStateOne== "0")
|
||||
{
|
||||
model.TerrestrialState = "启动";
|
||||
}
|
||||
if(blist.TerrestrialStateOne== "1")
|
||||
{
|
||||
model.TerrestrialState = "停止";
|
||||
}
|
||||
if(clist.PrimaryStateOne== "0")
|
||||
{
|
||||
model.PrimaryState = "启动";
|
||||
}
|
||||
if(clist.PrimaryStateOne== "1")
|
||||
{
|
||||
model.PrimaryState = "停止";
|
||||
}
|
||||
if(dlist.SecondaryStateOne== "0")
|
||||
{
|
||||
model.SecondaryState = "启动";
|
||||
}
|
||||
if(dlist.SecondaryStateOne== "1")
|
||||
{
|
||||
model.SecondaryState = "停止";
|
||||
}
|
||||
if(elist.DraughtStateOne== "0")
|
||||
{
|
||||
model.DraughtState = "启动";
|
||||
}
|
||||
if(elist.DraughtStateOne== "1")
|
||||
{
|
||||
model.DraughtState = "停止";
|
||||
}
|
||||
data.Add(model);
|
||||
res.code = 200;
|
||||
res.msg = "成功";
|
||||
res.data = data;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
res.code = 500;
|
||||
res.msg = "失败," + ex.Message;
|
||||
}
|
||||
HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(res), Encoding.GetEncoding("UTF-8"), "application/json") };
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -68,7 +68,7 @@ namespace DongYingAPI.Controllers.api
|
|||
decimal? num = num1 - num2;
|
||||
#region 一级
|
||||
model.AggregateName = "总量";
|
||||
var e = Math.Round(Convert.ToDecimal(num / 1000 * Convert.ToDecimal(0.5703)), 3);
|
||||
var e = Math.Round(Convert.ToDecimal(num / 1000 * Convert.ToDecimal(0.5703)), 4);
|
||||
model.AggregateValue = e+Convert.ToDecimal(0.493);
|
||||
#endregion
|
||||
#region 天然气
|
||||
|
|
@ -115,7 +115,7 @@ namespace DongYingAPI.Controllers.api
|
|||
}
|
||||
}
|
||||
decimal? anum = num3 - num4;
|
||||
bmodel.ThreeValue = Math.Round(Convert.ToDecimal(anum / 1000 * Convert.ToDecimal(0.5703)), 3);
|
||||
bmodel.ThreeValue = Math.Round(Convert.ToDecimal(anum / 1000 * Convert.ToDecimal(0.5703)), 4);
|
||||
tlist.Add(bmodel);
|
||||
#endregion
|
||||
#region 照明
|
||||
|
|
@ -140,7 +140,7 @@ namespace DongYingAPI.Controllers.api
|
|||
}
|
||||
}
|
||||
decimal? bnum = num5-num6;
|
||||
bmodel1.ThreeValue = Math.Round(Convert.ToDecimal(bnum / 1000 * Convert.ToDecimal(0.5703)), 3);
|
||||
bmodel1.ThreeValue = Math.Round(Convert.ToDecimal(bnum / 1000 * Convert.ToDecimal(0.5703)), 4);
|
||||
tlist.Add(bmodel1);
|
||||
|
||||
#endregion
|
||||
|
|
@ -164,7 +164,7 @@ namespace DongYingAPI.Controllers.api
|
|||
}
|
||||
}
|
||||
decimal? cnum = num7-num8;
|
||||
dmodel1.ThreeValue = Math.Round(Convert.ToDecimal(cnum / 1000 * Convert.ToDecimal(0.5703)), 3);
|
||||
dmodel1.ThreeValue = Math.Round(Convert.ToDecimal(cnum / 1000 * Convert.ToDecimal(0.5703)), 4);
|
||||
tlist.Add(dmodel1);
|
||||
#endregion
|
||||
#region 其它
|
||||
|
|
@ -187,7 +187,7 @@ namespace DongYingAPI.Controllers.api
|
|||
}
|
||||
}
|
||||
decimal? fnum = num9-num10;
|
||||
qmodel1.ThreeValue = Math.Round(Convert.ToDecimal(fnum / 1000 * Convert.ToDecimal(0.5703)), 3);
|
||||
qmodel1.ThreeValue = Math.Round(Convert.ToDecimal(fnum / 1000 * Convert.ToDecimal(0.5703)), 4);
|
||||
tlist.Add(qmodel1);
|
||||
#endregion
|
||||
amodel.list = tlist1;
|
||||
|
|
|
|||
|
|
@ -98,6 +98,13 @@ namespace DongYingAPI.Controllers.api
|
|||
model.time = jtime;
|
||||
model.CarbonPer=Convert.ToDecimal(Math.Round(Convert.ToDouble(((num1 - num2) / 1000 * Convert.ToDecimal(0.5703)) / 100000), 3));
|
||||
model.ArealCarbon= Convert.ToDecimal(Math.Round(Convert.ToDouble(((num1 - num2) / 1000 * Convert.ToDecimal(0.5703)) / 59000), 3));
|
||||
if (model.CarbonPer < 0)
|
||||
{
|
||||
model.CarbonPer = 0;
|
||||
}
|
||||
if(model.ArealCarbon< 0) {
|
||||
model.ArealCarbon = 0;
|
||||
}
|
||||
data.Add(model);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,46 @@
|
|||
using DataServer.api;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace DongYingAPI.Controllers.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 空调-冷冻二次泵变频读取
|
||||
/// </summary>
|
||||
public class GetFrequencyConversionController : ApiController
|
||||
{
|
||||
DataServer.BLL.secondary_pump bll = new DataServer.BLL.secondary_pump();
|
||||
public HttpResponseMessage Get()
|
||||
{
|
||||
var res = new get_frequency_conversion();
|
||||
try
|
||||
{
|
||||
var data = new List<frequency_conversionData>();
|
||||
var list = bll.GetModelList("");
|
||||
var model=new frequency_conversionData();
|
||||
foreach (var item in list)
|
||||
{
|
||||
model.FrequencyConversion = item.SecondaryFrequency;
|
||||
}
|
||||
data.Add(model);
|
||||
res.code = 200;
|
||||
res.msg = "成功";
|
||||
res.data = data;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
res.code = 500;
|
||||
res.msg = "失败," + ex.Message;
|
||||
}
|
||||
HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(res), Encoding.GetEncoding("UTF-8"), "application/json") };
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
using DataServer.api;
|
||||
using Microsoft.Ajax.Utilities;
|
||||
using Newtonsoft.Json;
|
||||
using QingHaiVisualizationAPI.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace DongYingAPI.Controllers.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 空调-末端风机启停
|
||||
/// </summary>
|
||||
public class SetDraughtFanController : ApiController
|
||||
{
|
||||
DataServer.BLL.draught_fan bll = new DataServer.BLL.draught_fan();
|
||||
static log4net.ILog log;
|
||||
public HttpResponseMessage Get()
|
||||
{
|
||||
var res = new get_information();
|
||||
try
|
||||
{
|
||||
var data = new List<data>();
|
||||
var list = bll.GetModelList("");
|
||||
foreach (var item in list)
|
||||
{
|
||||
var model = new DataServer.Model.draught_fan();
|
||||
model.DraughtId = item.DraughtId;
|
||||
model.DeviceNumber = item.DeviceNumber;
|
||||
model.DraughtName = item.DraughtName;
|
||||
model.DraughtNumberOne = item.DraughtNumberOne;
|
||||
model.DraughtNumberTwo= item.DraughtNumberTwo;
|
||||
if (item.DraughtStateOne == "0")
|
||||
{
|
||||
model.DraughtStateOne = "1";
|
||||
}
|
||||
else
|
||||
{
|
||||
model.DraughtStateTwo = "0";
|
||||
}
|
||||
if (item.DraughtStateOne == "1")
|
||||
{
|
||||
model.DraughtStateOne = "0";
|
||||
}
|
||||
else
|
||||
{
|
||||
model.DraughtStateTwo = "1";
|
||||
}
|
||||
model.ClientId = item.ClientId;
|
||||
bll.Update(model);
|
||||
}
|
||||
var alist = bll.GetModelList("");
|
||||
foreach (var aitem in alist)
|
||||
{
|
||||
log4net.Config.XmlConfigurator.Configure();
|
||||
log = log4net.LogManager.GetLogger("loginfo");
|
||||
var mqqt = new MqttClientService();
|
||||
data controlData = new data();
|
||||
controlData.h = new HeaderData();
|
||||
controlData.h.rt = aitem.DeviceNumber;
|
||||
|
||||
// 如果需要同时设置多个数据项,可以使用字典
|
||||
controlData.b = new BodyData();
|
||||
controlData.b.dl = new Dictionary<string, string>();
|
||||
controlData.b.dl["" + aitem.DraughtNumberOne + ""] = "" + aitem.DraughtStateOne + "";
|
||||
controlData.b.dl["" + aitem.DraughtNumberTwo + ""] = "" + aitem.DraughtStateTwo + "";
|
||||
data.Add(controlData);
|
||||
mqqt.MqttClientStart();
|
||||
mqqt.Publish("/gc/data/"+aitem.ClientId, "J" + JsonConvert.SerializeObject(controlData));
|
||||
}
|
||||
res.code = 200;
|
||||
res.msg = "成功";
|
||||
res.data = data;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
res.code = 500;
|
||||
res.msg = "失败," + ex.Message;
|
||||
}
|
||||
HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(res), Encoding.GetEncoding("UTF-8"), "application/json") };
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
using DataServer.api;
|
||||
using Newtonsoft.Json;
|
||||
using QingHaiVisualizationAPI.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace DongYingAPI.Controllers.api
|
||||
{
|
||||
/// <summary>
|
||||
///空调-冷冻水出水温度设定
|
||||
/// </summary>
|
||||
public class SetExitTemperatureController : ApiController
|
||||
{
|
||||
DataServer.BLL.host_control bll = new DataServer.BLL.host_control();
|
||||
static log4net.ILog log;
|
||||
public HttpResponseMessage Get(string value="")
|
||||
{
|
||||
var res = new get_information();
|
||||
try
|
||||
{
|
||||
var data = new List<data>();
|
||||
if(!string.IsNullOrEmpty(value))
|
||||
{
|
||||
var list = bll.GetModelList("");
|
||||
foreach (var item in list)
|
||||
{
|
||||
var clist = list.Where(x => x.HostNumber == item.HostNumber).ToList();
|
||||
foreach (var aitem in clist)
|
||||
{
|
||||
var model = new DataServer.Model.host_control();
|
||||
model.HostId = aitem.HostId;
|
||||
model.HostName = aitem.HostName;
|
||||
model.HostLocation = aitem.HostLocation;
|
||||
model.HostNumber = aitem.HostNumber;
|
||||
model.HostState= aitem.HostState;
|
||||
model.HostTemperature = value;
|
||||
bll.Update(model);
|
||||
}
|
||||
}
|
||||
var alist = bll.GetModelList("");
|
||||
foreach (var item in alist)
|
||||
{
|
||||
log4net.Config.XmlConfigurator.Configure();
|
||||
log = log4net.LogManager.GetLogger("loginfo");
|
||||
var mqqt = new MqttClientService();
|
||||
data controlData = new data();
|
||||
controlData.h = new HeaderData();
|
||||
controlData.h.rt = item.HostNumber;
|
||||
|
||||
// 如果需要同时设置多个数据项,可以使用字典
|
||||
controlData.b = new BodyData();
|
||||
controlData.b.dl = new Dictionary<string, string>();
|
||||
controlData.b.dl["冷冻水出水温度设定"] = "" + item.HostTemperature + "";
|
||||
controlData.b.dl["主机远程启停控制"] = "" + item.HostState + "";
|
||||
data.Add(controlData);
|
||||
mqqt.MqttClientStart();
|
||||
mqqt.Publish("gc/data/ce5a0665-b5eb-4e75-a6a5-799449c3f092", "J" + JsonConvert.SerializeObject(controlData));
|
||||
}
|
||||
res.code = 200;
|
||||
res.msg = "成功";
|
||||
res.data = data;
|
||||
}
|
||||
else
|
||||
{
|
||||
res.code = 201;
|
||||
res.msg = "参数不能为空";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
res.code = 500;
|
||||
res.msg = "失败," + ex.Message;
|
||||
}
|
||||
HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(res), Encoding.GetEncoding("UTF-8"), "application/json") };
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
using DataServer.api;
|
||||
using Newtonsoft.Json;
|
||||
using QingHaiVisualizationAPI.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace DongYingAPI.Controllers.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 空调-冷冻二次泵变频控制
|
||||
/// </summary>
|
||||
public class SetFrequencyConversionController : ApiController
|
||||
{
|
||||
DataServer.BLL.secondary_pump bll = new DataServer.BLL.secondary_pump();
|
||||
static log4net.ILog log;
|
||||
public HttpResponseMessage Get(string value="")
|
||||
{
|
||||
var res = new get_information();
|
||||
try
|
||||
{
|
||||
var data = new List<data>();
|
||||
if(!string.IsNullOrEmpty(value))
|
||||
{
|
||||
var list = bll.GetModelList("");
|
||||
foreach (var item in list)
|
||||
{
|
||||
var model = new DataServer.Model.secondary_pump();
|
||||
model.SecondaryId = item.SecondaryId;
|
||||
model.SecondaryName = item.SecondaryName;
|
||||
model.SecondaryNumberOne = item.SecondaryNumberOne;
|
||||
model.SecondaryNumberTwo = item.SecondaryNumberTwo;
|
||||
model.SecondaryStateOne= item.SecondaryStateOne;
|
||||
model.SecondaryStateTwo = item.SecondaryStateTwo;
|
||||
model.SecondaryFrequencyName = item.SecondaryFrequencyName;
|
||||
model.SecondaryFrequency = value;
|
||||
bll.Update(model);
|
||||
}
|
||||
var alist = bll.GetModelList("");
|
||||
foreach (var item in alist)
|
||||
{
|
||||
log4net.Config.XmlConfigurator.Configure();
|
||||
log = log4net.LogManager.GetLogger("loginfo");
|
||||
var mqqt = new MqttClientService();
|
||||
data controlData = new data();
|
||||
controlData.h = new HeaderData();
|
||||
controlData.h.rt = item.SecondaryName;
|
||||
|
||||
// 如果需要同时设置多个数据项,可以使用字典
|
||||
controlData.b = new BodyData();
|
||||
controlData.b.dl = new Dictionary<string, string>();
|
||||
controlData.b.dl["" + item.SecondaryNumberOne + ""] = "" + item.SecondaryStateOne + "";
|
||||
controlData.b.dl["" + item.SecondaryNumberTwo + ""] = "" + item.SecondaryStateOne + "";
|
||||
controlData.b.dl["" + item.SecondaryFrequencyName + ""] = "" + item.SecondaryFrequency + "";
|
||||
data.Add(controlData);
|
||||
mqqt.MqttClientStart();
|
||||
mqqt.Publish("gc/data/33cb79ea-e788-489a-9340-322d31d90158", "J" + JsonConvert.SerializeObject(controlData));
|
||||
}
|
||||
res.code = 200;
|
||||
res.msg = "成功";
|
||||
res.data = data;
|
||||
}
|
||||
else
|
||||
{
|
||||
res.code = 201;
|
||||
res.msg = "参数不能为空";
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
res.code = 500;
|
||||
res.msg = "失败," + ex.Message;
|
||||
}
|
||||
HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(res), Encoding.GetEncoding("UTF-8"), "application/json") };
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
using DataServer.api;
|
||||
using Microsoft.Ajax.Utilities;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using QingHaiVisualizationAPI.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Web.Http;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace DongYingAPI.Controllers.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 空调-主机控制(启停)
|
||||
/// </summary>
|
||||
public class SetHostControlController : ApiController
|
||||
{
|
||||
DataServer.BLL.host_control bll = new DataServer.BLL.host_control();
|
||||
static log4net.ILog log;
|
||||
public HttpResponseMessage Get()
|
||||
{
|
||||
var res = new get_information();
|
||||
try
|
||||
{
|
||||
var data = new List<data>();
|
||||
var list = bll.GetModelList("");
|
||||
foreach (var item in list)
|
||||
{
|
||||
var clist = list.Where(x => x.HostNumber == item.HostNumber).ToList();
|
||||
foreach (var aitem in clist)
|
||||
{
|
||||
var model = new DataServer.Model.host_control();
|
||||
model.HostId= aitem.HostId;
|
||||
model.HostName = aitem.HostName;
|
||||
model.HostLocation= aitem.HostLocation;
|
||||
model.HostNumber = aitem.HostNumber;
|
||||
if (aitem.HostState == "0")
|
||||
{
|
||||
model.HostState= "1";
|
||||
}
|
||||
if (aitem.HostState == "1")
|
||||
{
|
||||
model.HostState= "0";
|
||||
}
|
||||
model.HostTemperature= aitem.HostTemperature;
|
||||
bll.Update(model);
|
||||
}
|
||||
}
|
||||
var alist = bll.GetModelList("");
|
||||
foreach (var item in alist)
|
||||
{
|
||||
log4net.Config.XmlConfigurator.Configure();
|
||||
log = log4net.LogManager.GetLogger("loginfo");
|
||||
var mqqt = new MqttClientService();
|
||||
data controlData = new data();
|
||||
controlData.h = new HeaderData();
|
||||
controlData.h.rt = item.HostNumber;
|
||||
|
||||
// 如果需要同时设置多个数据项,可以使用字典
|
||||
controlData.b = new BodyData();
|
||||
controlData.b.dl = new Dictionary<string, string>();
|
||||
controlData.b.dl["冷冻水出水温度设定"] = "" + item.HostTemperature + "";
|
||||
controlData.b.dl["主机远程启停控制"] = "" + item.HostState + "";
|
||||
data.Add(controlData);
|
||||
mqqt.MqttClientStart();
|
||||
mqqt.Publish("gc/data/ce5a0665-b5eb-4e75-a6a5-799449c3f092", "J" + JsonConvert.SerializeObject(controlData));
|
||||
}
|
||||
res.code = 200;
|
||||
res.msg = "成功";
|
||||
res.data = data;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
res.code = 500;
|
||||
res.msg = "失败," + ex.Message;
|
||||
}
|
||||
HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(res), Encoding.GetEncoding("UTF-8"), "application/json") };
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -24,6 +24,7 @@ namespace DongYingAPI.Controllers.api
|
|||
var res = new get_information();
|
||||
try
|
||||
{
|
||||
var data = new List<data>();
|
||||
if(!string.IsNullOrEmpty(name)&&!string.IsNullOrEmpty(value) )
|
||||
{
|
||||
#region 控制
|
||||
|
|
@ -214,10 +215,10 @@ namespace DongYingAPI.Controllers.api
|
|||
controlData.b.dl["" + name + ""] = "" + value + "";
|
||||
mqqt.MqttClientStart();
|
||||
mqqt.Publish("gc/data/4f0447b1-468f-45c2-9a05-40f0f79529cf", "J" + JsonConvert.SerializeObject(controlData));
|
||||
|
||||
data.Add(controlData);
|
||||
res.code = 200;
|
||||
res.msg = "成功";
|
||||
res.data = controlData;
|
||||
res.data = data;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -0,0 +1,85 @@
|
|||
using DataServer.api;
|
||||
using Newtonsoft.Json;
|
||||
using QingHaiVisualizationAPI.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace DongYingAPI.Controllers.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 空调-冷冻一次泵启停
|
||||
/// </summary>
|
||||
public class SetPrimaryPumpController : ApiController
|
||||
{
|
||||
DataServer.BLL.primary_pump bll = new DataServer.BLL.primary_pump();
|
||||
static log4net.ILog log;
|
||||
public HttpResponseMessage Get()
|
||||
{
|
||||
var res = new get_information();
|
||||
try
|
||||
{
|
||||
var data = new List<data>();
|
||||
var list = bll.GetModelList("");
|
||||
foreach (var item in list)
|
||||
{
|
||||
var model = new DataServer.Model.primary_pump();
|
||||
model.PrimaryId = item.PrimaryId;
|
||||
model.PrimaryName = item.PrimaryName;
|
||||
model.PrimaryNumberOne = item.PrimaryNumberOne;
|
||||
model.PrimaryNumberTwo = item.PrimaryNumberTwo;
|
||||
if (item.PrimaryStateOne == "0")
|
||||
{
|
||||
model.PrimaryStateOne = "1";
|
||||
}
|
||||
else
|
||||
{
|
||||
model.PrimaryStateTwo = "0";
|
||||
}
|
||||
if (item.PrimaryStateOne == "1")
|
||||
{
|
||||
model.PrimaryStateOne = "0";
|
||||
}
|
||||
else
|
||||
{
|
||||
model.PrimaryStateTwo = "1";
|
||||
}
|
||||
bll.Update(model);
|
||||
}
|
||||
var alist = bll.GetModelList("");
|
||||
foreach (var item in alist)
|
||||
{
|
||||
log4net.Config.XmlConfigurator.Configure();
|
||||
log = log4net.LogManager.GetLogger("loginfo");
|
||||
var mqqt = new MqttClientService();
|
||||
data controlData = new data();
|
||||
controlData.h = new HeaderData();
|
||||
controlData.h.rt = item.PrimaryName;
|
||||
|
||||
// 如果需要同时设置多个数据项,可以使用字典
|
||||
controlData.b = new BodyData();
|
||||
controlData.b.dl = new Dictionary<string, string>();
|
||||
controlData.b.dl["" + item.PrimaryNumberOne + ""] = "" + item.PrimaryStateOne + "";
|
||||
controlData.b.dl["" + item.PrimaryNumberTwo + ""] = "" + item.PrimaryStateTwo + "";
|
||||
data.Add(controlData);
|
||||
mqqt.MqttClientStart();
|
||||
mqqt.Publish("gc/data/33cb79ea-e788-489a-9340-322d31d90158", "J" + JsonConvert.SerializeObject(controlData));
|
||||
}
|
||||
res.code = 200;
|
||||
res.msg = "成功";
|
||||
res.data = data;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
res.code = 500;
|
||||
res.msg = "失败," + ex.Message;
|
||||
}
|
||||
HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(res), Encoding.GetEncoding("UTF-8"), "application/json") };
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
using DataServer.api;
|
||||
using Newtonsoft.Json;
|
||||
using QingHaiVisualizationAPI.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace DongYingAPI.Controllers.api
|
||||
{
|
||||
/// <summary>
|
||||
/// 空调-冷冻二次泵启停
|
||||
/// </summary>
|
||||
public class SetSecondaryStopController : ApiController
|
||||
{
|
||||
DataServer.BLL.secondary_pump bll = new DataServer.BLL.secondary_pump();
|
||||
static log4net.ILog log;
|
||||
public HttpResponseMessage Get()
|
||||
{
|
||||
var res = new get_information();
|
||||
try
|
||||
{
|
||||
var data = new List<data>();
|
||||
var list = bll.GetModelList("");
|
||||
foreach (var item in list)
|
||||
{
|
||||
var model = new DataServer.Model.secondary_pump();
|
||||
model.SecondaryId = item.SecondaryId;
|
||||
model.SecondaryName = item.SecondaryName;
|
||||
model.SecondaryNumberOne = item.SecondaryNumberOne;
|
||||
model.SecondaryNumberTwo = item.SecondaryNumberTwo;
|
||||
if (item.SecondaryStateOne == "0")
|
||||
{
|
||||
model.SecondaryStateOne = "1";
|
||||
}
|
||||
else
|
||||
{
|
||||
model.SecondaryStateTwo = "0";
|
||||
}
|
||||
if (item.SecondaryStateOne == "1")
|
||||
{
|
||||
model.SecondaryStateOne = "0";
|
||||
}
|
||||
else
|
||||
{
|
||||
model.SecondaryStateTwo = "1";
|
||||
}
|
||||
model.SecondaryFrequencyName= item.SecondaryFrequencyName;
|
||||
model.SecondaryFrequency=item.SecondaryFrequency;
|
||||
bll.Update(model);
|
||||
}
|
||||
var alist = bll.GetModelList("");
|
||||
foreach (var item in alist)
|
||||
{
|
||||
log4net.Config.XmlConfigurator.Configure();
|
||||
log = log4net.LogManager.GetLogger("loginfo");
|
||||
var mqqt = new MqttClientService();
|
||||
data controlData = new data();
|
||||
controlData.h = new HeaderData();
|
||||
controlData.h.rt = item.SecondaryName;
|
||||
|
||||
// 如果需要同时设置多个数据项,可以使用字典
|
||||
controlData.b = new BodyData();
|
||||
controlData.b.dl = new Dictionary<string, string>();
|
||||
controlData.b.dl["" + item.SecondaryNumberOne + ""] = "" + item.SecondaryStateOne + "";
|
||||
controlData.b.dl["" + item.SecondaryNumberTwo + ""] = "" + item.SecondaryStateOne + "";
|
||||
controlData.b.dl["" + item.SecondaryFrequencyName + ""] = "" + item.SecondaryFrequency + "";
|
||||
data.Add(controlData);
|
||||
mqqt.MqttClientStart();
|
||||
mqqt.Publish("gc/data/33cb79ea-e788-489a-9340-322d31d90158", "J" + JsonConvert.SerializeObject(controlData));
|
||||
}
|
||||
res.code = 200;
|
||||
res.msg = "成功";
|
||||
res.data = data;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
res.code = 500;
|
||||
res.msg = "失败," + ex.Message;
|
||||
}
|
||||
HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(res), Encoding.GetEncoding("UTF-8"), "application/json") };
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
using DataServer.api;
|
||||
using Newtonsoft.Json;
|
||||
using QingHaiVisualizationAPI.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace DongYingAPI.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// 空调-地源侧循环泵启停
|
||||
/// </summary>
|
||||
public class SetTerrestrialSourceController : ApiController
|
||||
{
|
||||
DataServer.BLL.terrestrial_source bll = new DataServer.BLL.terrestrial_source();
|
||||
static log4net.ILog log;
|
||||
public HttpResponseMessage Get()
|
||||
{
|
||||
var res = new get_information();
|
||||
try
|
||||
{
|
||||
var data = new List<data>();
|
||||
var list = bll.GetModelList("");
|
||||
foreach (var item in list)
|
||||
{
|
||||
var model = new DataServer.Model.terrestrial_source();
|
||||
model.TerrestrialId = item.TerrestrialId;
|
||||
model.TerrestrialName = item.TerrestrialName;
|
||||
model.TerrestrialNumberOne = item.TerrestrialNumberOne;
|
||||
model.TerrestrialNumberTwo = item.TerrestrialNumberTwo;
|
||||
if (item.TerrestrialStateOne == "0")
|
||||
{
|
||||
model.TerrestrialStateOne = "1";
|
||||
}
|
||||
else
|
||||
{
|
||||
model.TerrestrialStateTwo = "0";
|
||||
}
|
||||
if(item.TerrestrialStateOne == "1")
|
||||
{
|
||||
model.TerrestrialStateOne = "0";
|
||||
}
|
||||
else
|
||||
{
|
||||
model.TerrestrialStateTwo = "1";
|
||||
}
|
||||
bll.Update(model);
|
||||
}
|
||||
var alist = bll.GetModelList("");
|
||||
foreach (var item in alist)
|
||||
{
|
||||
log4net.Config.XmlConfigurator.Configure();
|
||||
log = log4net.LogManager.GetLogger("loginfo");
|
||||
var mqqt = new MqttClientService();
|
||||
data controlData = new data();
|
||||
controlData.h = new HeaderData();
|
||||
controlData.h.rt = item.TerrestrialName;
|
||||
|
||||
// 如果需要同时设置多个数据项,可以使用字典
|
||||
controlData.b = new BodyData();
|
||||
controlData.b.dl = new Dictionary<string, string>();
|
||||
controlData.b.dl[""+item.TerrestrialNumberOne+""] = "" + item.TerrestrialStateOne+ "";
|
||||
controlData.b.dl[""+item.TerrestrialNumberTwo+""] = "" + item.TerrestrialStateTwo + "";
|
||||
data.Add(controlData);
|
||||
mqqt.MqttClientStart();
|
||||
mqqt.Publish("gc/data/5193f258-04f0-4401-bd34-a507713e9e71", "J" + JsonConvert.SerializeObject(controlData));
|
||||
}
|
||||
res.code = 200;
|
||||
res.msg = "成功";
|
||||
res.data = data;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
res.code = 500;
|
||||
res.msg = "失败," + ex.Message;
|
||||
}
|
||||
HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(res), Encoding.GetEncoding("UTF-8"), "application/json") };
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -182,6 +182,7 @@
|
|||
<Compile Include="Controllers\api\EnergyEfficiency\GetMultiRateController.cs" />
|
||||
<Compile Include="Controllers\api\EnergyEfficiency\GetUnitConsumptionController.cs" />
|
||||
<Compile Include="Controllers\api\GetAirConditionerController.cs" />
|
||||
<Compile Include="Controllers\api\GetAllStopController.cs" />
|
||||
<Compile Include="Controllers\api\GetBuildingLightingController.cs" />
|
||||
<Compile Include="Controllers\api\GetCarbonEmissionController.cs" />
|
||||
<Compile Include="Controllers\api\GetCarbonFluxController.cs" />
|
||||
|
|
@ -203,6 +204,9 @@
|
|||
<Compile Include="Controllers\api\GetEnergyTrendsController.cs" />
|
||||
<Compile Include="Controllers\api\GetEquipmentMonitoringController.cs" />
|
||||
<Compile Include="Controllers\api\GetEssentialInformationController.cs" />
|
||||
<Compile Include="Controllers\api\GetFrequencyConversionController.cs" />
|
||||
<Compile Include="Controllers\api\SetDraughtFanController.cs" />
|
||||
<Compile Include="Controllers\api\SetExitTemperatureController.cs" />
|
||||
<Compile Include="Controllers\api\GetFaultConditionController.cs" />
|
||||
<Compile Include="Controllers\api\GetGasConsumptionController.cs" />
|
||||
<Compile Include="Controllers\api\GetGeneralCatalogueController.cs" />
|
||||
|
|
@ -219,9 +223,14 @@
|
|||
<Compile Include="Controllers\api\GetWaterConsumptionController.cs" />
|
||||
<Compile Include="Controllers\api\loginController.cs" />
|
||||
<Compile Include="Controllers\api\GetCarbonMeasureController.cs" />
|
||||
<Compile Include="Controllers\api\SetFrequencyConversionController.cs" />
|
||||
<Compile Include="Controllers\api\SetHostControlController.cs" />
|
||||
<Compile Include="Controllers\api\SetLightingController.cs" />
|
||||
<Compile Include="Controllers\GetSingleControlController.cs" />
|
||||
<Compile Include="Controllers\api\GetSingleControlController.cs" />
|
||||
<Compile Include="Controllers\api\SetPrimaryPumpController.cs" />
|
||||
<Compile Include="Controllers\api\SetSecondaryStopController.cs" />
|
||||
<Compile Include="Controllers\HomeController.cs" />
|
||||
<Compile Include="Controllers\api\SetTerrestrialSourceController.cs" />
|
||||
<Compile Include="Controllers\ValuesController.cs" />
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<_PublishTargetUrl>E:\林谷项目\东营两馆一宫\后端框架\DongYing\DongYingAPI\bin\app.publish\</_PublishTargetUrl>
|
||||
<History>True|2024-02-05T09:53:57.0306881Z;True|2024-02-05T15:03:29.8538142+08:00;True|2024-02-05T10:05:19.3967649+08:00;True|2024-02-04T14:00:33.8555838+08:00;True|2024-02-02T14:35:29.9414639+08:00;True|2024-02-01T14:38:16.2460751+08:00;True|2024-02-01T13:56:20.6256272+08:00;True|2024-02-01T10:10:55.0739031+08:00;True|2024-02-01T09:46:59.8042783+08:00;True|2024-02-01T09:23:48.9652035+08:00;True|2024-01-31T16:21:08.6583762+08:00;True|2024-01-31T13:41:30.5192673+08:00;True|2024-01-30T15:15:26.7880164+08:00;True|2024-01-30T14:10:09.8489640+08:00;True|2024-01-30T13:16:11.0447202+08:00;True|2024-01-30T09:45:36.4140361+08:00;True|2024-01-29T14:17:38.5560371+08:00;True|2024-01-29T14:16:41.5597407+08:00;True|2024-01-24T17:31:19.5804558+08:00;True|2024-01-20T14:34:47.0539217+08:00;False|2024-01-15T13:49:44.5332318+08:00;True|2024-01-15T11:01:00.7602516+08:00;True|2024-01-15T09:26:27.2161156+08:00;True|2024-01-10T17:34:07.8440850+08:00;False|2024-01-10T17:33:54.1670007+08:00;True|2024-01-10T17:32:39.4867251+08:00;True|2024-01-10T14:45:12.0400450+08:00;</History>
|
||||
<History>True|2024-03-04T02:00:33.0681294Z;True|2024-03-01T11:05:46.5158063+08:00;True|2024-03-01T09:20:05.1925139+08:00;True|2024-02-26T14:30:47.0846108+08:00;True|2024-02-26T13:13:41.6324599+08:00;True|2024-02-26T09:47:50.0632719+08:00;True|2024-02-23T16:52:31.5607201+08:00;True|2024-02-21T11:02:12.3544605+08:00;True|2024-02-21T11:02:02.8020234+08:00;True|2024-02-05T17:53:57.0306881+08:00;True|2024-02-05T15:03:29.8538142+08:00;True|2024-02-05T10:05:19.3967649+08:00;True|2024-02-04T14:00:33.8555838+08:00;True|2024-02-02T14:35:29.9414639+08:00;True|2024-02-01T14:38:16.2460751+08:00;True|2024-02-01T13:56:20.6256272+08:00;True|2024-02-01T10:10:55.0739031+08:00;True|2024-02-01T09:46:59.8042783+08:00;True|2024-02-01T09:23:48.9652035+08:00;True|2024-01-31T16:21:08.6583762+08:00;True|2024-01-31T13:41:30.5192673+08:00;True|2024-01-30T15:15:26.7880164+08:00;True|2024-01-30T14:10:09.8489640+08:00;True|2024-01-30T13:16:11.0447202+08:00;True|2024-01-30T09:45:36.4140361+08:00;True|2024-01-29T14:17:38.5560371+08:00;True|2024-01-29T14:16:41.5597407+08:00;True|2024-01-24T17:31:19.5804558+08:00;True|2024-01-20T14:34:47.0539217+08:00;False|2024-01-15T13:49:44.5332318+08:00;True|2024-01-15T11:01:00.7602516+08:00;True|2024-01-15T09:26:27.2161156+08:00;True|2024-01-10T17:34:07.8440850+08:00;False|2024-01-10T17:33:54.1670007+08:00;True|2024-01-10T17:32:39.4867251+08:00;True|2024-01-10T14:45:12.0400450+08:00;</History>
|
||||
<LastFailureDetails />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
|
@ -79,16 +79,16 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||
<publishTime>09/10/2013 16:29:20</publishTime>
|
||||
</File>
|
||||
<File Include="bin/DataServer.dll">
|
||||
<publishTime>02/20/2024 09:43:27</publishTime>
|
||||
<publishTime>03/04/2024 09:29:28</publishTime>
|
||||
</File>
|
||||
<File Include="bin/DataServer.pdb">
|
||||
<publishTime>02/20/2024 09:43:27</publishTime>
|
||||
<publishTime>03/04/2024 09:29:28</publishTime>
|
||||
</File>
|
||||
<File Include="bin/DongYingAPI.dll">
|
||||
<publishTime>02/20/2024 17:11:31</publishTime>
|
||||
<publishTime>03/04/2024 10:00:32</publishTime>
|
||||
</File>
|
||||
<File Include="bin/DongYingAPI.pdb">
|
||||
<publishTime>02/20/2024 17:11:31</publishTime>
|
||||
<publishTime>03/04/2024 10:00:32</publishTime>
|
||||
</File>
|
||||
<File Include="bin/HslCommunication.dll">
|
||||
<publishTime>08/03/2021 14:52:26</publishTime>
|
||||
|
|
@ -379,7 +379,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||
<publishTime>02/02/2024 14:20:48</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/EnergyEfficiency/GetEnergyFlowController.cs">
|
||||
<publishTime>02/20/2024 16:03:58</publishTime>
|
||||
<publishTime>02/26/2024 14:25:08</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/EnergyEfficiency/GetEnergyTrendController.cs">
|
||||
<publishTime>01/31/2024 18:10:58</publishTime>
|
||||
|
|
@ -396,6 +396,9 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||
<File Include="Controllers/api/GetAirConditionerController.cs">
|
||||
<publishTime>02/01/2024 14:46:23</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetAllStopController.cs">
|
||||
<publishTime>03/04/2024 09:51:33</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetBuildingLightingController.cs">
|
||||
<publishTime>02/01/2024 09:28:11</publishTime>
|
||||
</File>
|
||||
|
|
@ -403,10 +406,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||
<publishTime>02/20/2024 14:21:14</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetCarbonFluxController.cs">
|
||||
<publishTime>02/20/2024 14:26:50</publishTime>
|
||||
<publishTime>02/26/2024 16:28:40</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetCarbonIntensityController.cs">
|
||||
<publishTime>02/20/2024 14:35:17</publishTime>
|
||||
<publishTime>02/26/2024 11:02:02</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetCarbonMeasureController.cs">
|
||||
<publishTime>02/20/2024 14:37:50</publishTime>
|
||||
|
|
@ -424,7 +427,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||
<publishTime>02/01/2024 14:54:17</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetCurrentVoltageController.cs">
|
||||
<publishTime>02/01/2024 16:43:20</publishTime>
|
||||
<publishTime>02/21/2024 10:30:51</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetDailyElectricityController.cs">
|
||||
<publishTime>02/20/2024 17:07:40</publishTime>
|
||||
|
|
@ -436,7 +439,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||
<publishTime>02/02/2024 15:19:18</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetDistributionPowerController.cs">
|
||||
<publishTime>02/20/2024 09:43:16</publishTime>
|
||||
<publishTime>02/21/2024 10:31:36</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetDraughtFanController.cs">
|
||||
<publishTime>03/01/2024 17:28:21</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetElectricalConditionController.cs">
|
||||
<publishTime>02/20/2024 16:51:15</publishTime>
|
||||
|
|
@ -460,17 +466,23 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||
<publishTime>02/20/2024 15:11:54</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetEssentialInformationController.cs">
|
||||
<publishTime>01/30/2024 18:43:35</publishTime>
|
||||
<publishTime>02/21/2024 10:37:02</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetFaultConditionController.cs">
|
||||
<publishTime>01/11/2024 13:37:00</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetFrequencyConversionController.cs">
|
||||
<publishTime>03/01/2024 10:42:25</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetGasConsumptionController.cs">
|
||||
<publishTime>02/01/2024 15:10:41</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetGeneralCatalogueController.cs">
|
||||
<publishTime>02/20/2024 15:12:57</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetHostControlController.cs">
|
||||
<publishTime>03/01/2024 17:07:01</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetIlluminationLoadController.cs">
|
||||
<publishTime>02/01/2024 16:43:20</publishTime>
|
||||
</File>
|
||||
|
|
@ -489,8 +501,11 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||
<File Include="Controllers/api/GetPowerLoadController.cs">
|
||||
<publishTime>02/01/2024 15:08:46</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetPrimaryPumpController.cs">
|
||||
<publishTime>03/01/2024 17:25:32</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetRealtimeDataController.cs">
|
||||
<publishTime>02/20/2024 15:23:14</publishTime>
|
||||
<publishTime>02/21/2024 10:24:34</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetRealtimeLoadController.cs">
|
||||
<publishTime>02/05/2024 15:02:52</publishTime>
|
||||
|
|
@ -501,14 +516,44 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||
<File Include="Controllers/api/GetRunningStatusController.cs">
|
||||
<publishTime>02/20/2024 15:28:29</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetSecondaryStopController.cs">
|
||||
<publishTime>03/01/2024 17:26:27</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetSingleControlController.cs">
|
||||
<publishTime>02/04/2024 15:01:51</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetTerrestrialSourceController.cs">
|
||||
<publishTime>03/01/2024 17:12:36</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/GetWaterConsumptionController.cs">
|
||||
<publishTime>02/01/2024 16:43:20</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/loginController.cs">
|
||||
<publishTime>01/09/2024 10:54:33</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/SetDraughtFanController.cs">
|
||||
<publishTime>03/01/2024 15:39:26</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/SetExitTemperatureController.cs">
|
||||
<publishTime>02/29/2024 15:17:13</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/SetFrequencyConversionController.cs">
|
||||
<publishTime>03/01/2024 10:52:17</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/SetHostControlController.cs">
|
||||
<publishTime>02/29/2024 15:05:09</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/SetLightingController.cs">
|
||||
<publishTime>02/20/2024 16:24:47</publishTime>
|
||||
<publishTime>02/29/2024 15:04:50</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/SetPrimaryPumpController.cs">
|
||||
<publishTime>02/29/2024 17:51:26</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/SetSecondaryStopController.cs">
|
||||
<publishTime>03/01/2024 10:27:29</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/api/SetTerrestrialSourceController.cs">
|
||||
<publishTime>03/01/2024 11:26:29</publishTime>
|
||||
</File>
|
||||
<File Include="Controllers/GetSingleControlController.cs">
|
||||
<publishTime>02/04/2024 15:01:51</publishTime>
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
962d782f5d26699b5a4ac0e627d2dd96927547ad
|
||||
90fe1c4097e9992b0ebe31888f5e03222ef37e42
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
|
|
@ -14,7 +14,7 @@
|
|||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>Jw8TcGOJ6Ux9EnCsouNtJBVBQAwLtRm0OSjSgfh1Plo=</dsig:DigestValue>
|
||||
<dsig:DigestValue>L0BhmW0xC8N0GvavcOZrFRBrP7geZ6GAkmrtPOPhHNI=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -42,14 +42,14 @@
|
|||
</dependentAssembly>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DataServer.dll" size="179712">
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DataServer.dll" size="223232">
|
||||
<assemblyIdentity name="DataServer" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
|
||||
<hash>
|
||||
<dsig:Transforms>
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>bUW7g9n9nwHGCUt1FS7IPZhr5a24DqOcm1OgGsbvvEU=</dsig:DigestValue>
|
||||
<dsig:DigestValue>hjzwIwyfCb5eS7rDWu5qgK5iKzlFNLoTH2s2kAySmKI=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
@ -138,14 +138,14 @@
|
|||
</dependentAssembly>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ServiceSecurity.exe" size="129504">
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ServiceSecurity.exe" size="130016">
|
||||
<assemblyIdentity name="ServiceSecurity" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
|
||||
<hash>
|
||||
<dsig:Transforms>
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>wL9te6sjDrV0xqlUYXEyW++xNXsYbShi/dpEvbxeTsY=</dsig:DigestValue>
|
||||
<dsig:DigestValue>YGplY0qmZiDL8D3gel4WbXNgsj/rJ9EQ4oAKgQu7gRw=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -14,7 +14,7 @@
|
|||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>Jw8TcGOJ6Ux9EnCsouNtJBVBQAwLtRm0OSjSgfh1Plo=</dsig:DigestValue>
|
||||
<dsig:DigestValue>L0BhmW0xC8N0GvavcOZrFRBrP7geZ6GAkmrtPOPhHNI=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -42,14 +42,14 @@
|
|||
</dependentAssembly>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DataServer.dll" size="179712">
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DataServer.dll" size="223232">
|
||||
<assemblyIdentity name="DataServer" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
|
||||
<hash>
|
||||
<dsig:Transforms>
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>bUW7g9n9nwHGCUt1FS7IPZhr5a24DqOcm1OgGsbvvEU=</dsig:DigestValue>
|
||||
<dsig:DigestValue>hjzwIwyfCb5eS7rDWu5qgK5iKzlFNLoTH2s2kAySmKI=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
@ -138,14 +138,14 @@
|
|||
</dependentAssembly>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ServiceSecurity.exe" size="129504">
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ServiceSecurity.exe" size="130016">
|
||||
<assemblyIdentity name="ServiceSecurity" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
|
||||
<hash>
|
||||
<dsig:Transforms>
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>wL9te6sjDrV0xqlUYXEyW++xNXsYbShi/dpEvbxeTsY=</dsig:DigestValue>
|
||||
<dsig:DigestValue>YGplY0qmZiDL8D3gel4WbXNgsj/rJ9EQ4oAKgQu7gRw=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue