实现复费率、电费电价接口

This commit is contained in:
曾艳 2024-08-19 10:42:22 +08:00
parent 6e1786b01c
commit 35d3262b88
59 changed files with 1586 additions and 129 deletions

View File

@ -0,0 +1,179 @@
/**
* electricity_month.cs
*
* N/A
* electricity_month
*
* Ver
*
* V0.01 2024/8/16 14:46:53 N/A
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*
*  
*               
*
*/
using System;
using System.Data;
using System.Collections.Generic;
using Maticsoft.Common;
using DataService.Model;
namespace DataService.BLL
{
/// <summary>
/// electricity_month
/// </summary>
public partial class electricity_month
{
private readonly DataService.DAL.electricity_month dal=new DataService.DAL.electricity_month();
public electricity_month()
{}
#region BasicMethod
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(string MonthId)
{
return dal.Exists(MonthId);
}
/// <summary>
/// 增加一条数据
/// </summary>
public bool Add(DataService.Model.electricity_month model)
{
return dal.Add(model);
}
/// <summary>
/// 更新一条数据
/// </summary>
public bool Update(DataService.Model.electricity_month model)
{
return dal.Update(model);
}
/// <summary>
/// 删除一条数据
/// </summary>
public bool Delete(string MonthId)
{
return dal.Delete(MonthId);
}
/// <summary>
/// 删除一条数据
/// </summary>
public bool DeleteList(string MonthIdlist )
{
return dal.DeleteList(MonthIdlist );
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public DataService.Model.electricity_month GetModel(string MonthId)
{
return dal.GetModel(MonthId);
}
/// <summary>
/// 得到一个对象实体,从缓存中
/// </summary>
public DataService.Model.electricity_month GetModelByCache(string MonthId)
{
string CacheKey = "electricity_monthModel-" + MonthId;
object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
if (objModel == null)
{
try
{
objModel = dal.GetModel(MonthId);
if (objModel != null)
{
int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
}
}
catch{}
}
return (DataService.Model.electricity_month)objModel;
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetList(string strWhere)
{
return dal.GetList(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public List<DataService.Model.electricity_month> GetModelList(string strWhere)
{
DataSet ds = dal.GetList(strWhere);
return DataTableToList(ds.Tables[0]);
}
/// <summary>
/// 获得数据列表
/// </summary>
public List<DataService.Model.electricity_month> DataTableToList(DataTable dt)
{
List<DataService.Model.electricity_month> modelList = new List<DataService.Model.electricity_month>();
int rowsCount = dt.Rows.Count;
if (rowsCount > 0)
{
DataService.Model.electricity_month 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
}
}

View File

@ -6,7 +6,7 @@
*
* Ver
*
* V0.01 2024/2/27 11:02:52 N/A
* V0.01 2024/8/16 13:52:17 N/A
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*

View File

@ -0,0 +1,382 @@
/**
* electricity_month.cs
*
* N/A
* electricity_month
*
* Ver
*
* V0.01 2024/8/16 14:46:53 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 DataService.DAL
{
/// <summary>
/// 数据访问类:electricity_month
/// </summary>
public partial class electricity_month
{
public electricity_month()
{}
#region BasicMethod
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(string MonthId)
{
StringBuilder strSql=new StringBuilder();
strSql.Append("select count(1) from electricity_month");
strSql.Append(" where MonthId=@MonthId ");
MySqlParameter[] parameters = {
new MySqlParameter("@MonthId", MySqlDbType.VarChar,32) };
parameters[0].Value = MonthId;
return DbHelperMySQL.Exists(strSql.ToString(),parameters);
}
/// <summary>
/// 增加一条数据
/// </summary>
public bool Add(DataService.Model.electricity_month model)
{
StringBuilder strSql=new StringBuilder();
strSql.Append("insert into electricity_month(");
strSql.Append("MonthId,Needle,Peak,Flat,Grain,Deep,EntireTime,CreateTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5)");
strSql.Append(" values (");
strSql.Append("@MonthId,@Needle,@Peak,@Flat,@Grain,@Deep,@EntireTime,@CreateTime,@Reserve1,@Reserve2,@Reserve3,@Reserve4,@Reserve5)");
MySqlParameter[] parameters = {
new MySqlParameter("@MonthId", MySqlDbType.VarChar,32),
new MySqlParameter("@Needle", MySqlDbType.VarChar,255),
new MySqlParameter("@Peak", MySqlDbType.VarChar,255),
new MySqlParameter("@Flat", MySqlDbType.VarChar,255),
new MySqlParameter("@Grain", MySqlDbType.VarChar,255),
new MySqlParameter("@Deep", MySqlDbType.VarChar,255),
new MySqlParameter("@EntireTime", MySqlDbType.DateTime),
new MySqlParameter("@CreateTime", MySqlDbType.DateTime),
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.MonthId;
parameters[1].Value = model.Needle;
parameters[2].Value = model.Peak;
parameters[3].Value = model.Flat;
parameters[4].Value = model.Grain;
parameters[5].Value = model.Deep;
parameters[6].Value = model.EntireTime;
parameters[7].Value = model.CreateTime;
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(DataService.Model.electricity_month model)
{
StringBuilder strSql=new StringBuilder();
strSql.Append("update electricity_month set ");
strSql.Append("Needle=@Needle,");
strSql.Append("Peak=@Peak,");
strSql.Append("Flat=@Flat,");
strSql.Append("Grain=@Grain,");
strSql.Append("Deep=@Deep,");
strSql.Append("EntireTime=@EntireTime,");
strSql.Append("CreateTime=@CreateTime,");
strSql.Append("Reserve1=@Reserve1,");
strSql.Append("Reserve2=@Reserve2,");
strSql.Append("Reserve3=@Reserve3,");
strSql.Append("Reserve4=@Reserve4,");
strSql.Append("Reserve5=@Reserve5");
strSql.Append(" where MonthId=@MonthId ");
MySqlParameter[] parameters = {
new MySqlParameter("@Needle", MySqlDbType.VarChar,255),
new MySqlParameter("@Peak", MySqlDbType.VarChar,255),
new MySqlParameter("@Flat", MySqlDbType.VarChar,255),
new MySqlParameter("@Grain", MySqlDbType.VarChar,255),
new MySqlParameter("@Deep", MySqlDbType.VarChar,255),
new MySqlParameter("@EntireTime", MySqlDbType.DateTime),
new MySqlParameter("@CreateTime", MySqlDbType.DateTime),
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("@MonthId", MySqlDbType.VarChar,32)};
parameters[0].Value = model.Needle;
parameters[1].Value = model.Peak;
parameters[2].Value = model.Flat;
parameters[3].Value = model.Grain;
parameters[4].Value = model.Deep;
parameters[5].Value = model.EntireTime;
parameters[6].Value = model.CreateTime;
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.MonthId;
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
if (rows > 0)
{
return true;
}
else
{
return false;
}
}
/// <summary>
/// 删除一条数据
/// </summary>
public bool Delete(string MonthId)
{
StringBuilder strSql=new StringBuilder();
strSql.Append("delete from electricity_month ");
strSql.Append(" where MonthId=@MonthId ");
MySqlParameter[] parameters = {
new MySqlParameter("@MonthId", MySqlDbType.VarChar,32) };
parameters[0].Value = MonthId;
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
if (rows > 0)
{
return true;
}
else
{
return false;
}
}
/// <summary>
/// 批量删除数据
/// </summary>
public bool DeleteList(string MonthIdlist )
{
StringBuilder strSql=new StringBuilder();
strSql.Append("delete from electricity_month ");
strSql.Append(" where MonthId in ("+MonthIdlist + ") ");
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString());
if (rows > 0)
{
return true;
}
else
{
return false;
}
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public DataService.Model.electricity_month GetModel(string MonthId)
{
StringBuilder strSql=new StringBuilder();
strSql.Append("select MonthId,Needle,Peak,Flat,Grain,Deep,EntireTime,CreateTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 from electricity_month ");
strSql.Append(" where MonthId=@MonthId ");
MySqlParameter[] parameters = {
new MySqlParameter("@MonthId", MySqlDbType.VarChar,32) };
parameters[0].Value = MonthId;
DataService.Model.electricity_month model=new DataService.Model.electricity_month();
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 DataService.Model.electricity_month DataRowToModel(DataRow row)
{
DataService.Model.electricity_month model=new DataService.Model.electricity_month();
if (row != null)
{
if(row["MonthId"]!=null)
{
model.MonthId=row["MonthId"].ToString();
}
if(row["Needle"]!=null)
{
model.Needle=row["Needle"].ToString();
}
if(row["Peak"]!=null)
{
model.Peak=row["Peak"].ToString();
}
if(row["Flat"]!=null)
{
model.Flat=row["Flat"].ToString();
}
if(row["Grain"]!=null)
{
model.Grain=row["Grain"].ToString();
}
if(row["Deep"]!=null)
{
model.Deep=row["Deep"].ToString();
}
if(row["EntireTime"]!=null && row["EntireTime"].ToString()!="")
{
model.EntireTime=DateTime.Parse(row["EntireTime"].ToString());
}
if(row["CreateTime"]!=null && row["CreateTime"].ToString()!="")
{
model.CreateTime=DateTime.Parse(row["CreateTime"].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 MonthId,Needle,Peak,Flat,Grain,Deep,EntireTime,CreateTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 ");
strSql.Append(" FROM electricity_month ");
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 electricity_month ");
if(strWhere.Trim()!="")
{
strSql.Append(" where "+strWhere);
}
object obj = DbHelperMySQL.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.MonthId desc");
}
strSql.Append(")AS Row, T.* from electricity_month 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 = "electricity_month";
parameters[1].Value = "MonthId";
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
}
}

View File

@ -6,7 +6,7 @@
*
* Ver
*
* V0.01 2024/2/27 11:02:52 N/A
* V0.01 2024/8/16 13:52:17 N/A
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*
@ -53,30 +53,36 @@ namespace DataService.DAL
{
StringBuilder strSql=new StringBuilder();
strSql.Append("insert into electricity_rate(");
strSql.Append("ElectricityId,Electricity,Electrovalence,CreateTime,EntireTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5)");
strSql.Append("ElectricityId,Year,Month,StartPeriodTime,EndPeriodTime,Type,UnitPrice,CreateTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5)");
strSql.Append(" values (");
strSql.Append("@ElectricityId,@Electricity,@Electrovalence,@CreateTime,@EntireTime,@Reserve1,@Reserve2,@Reserve3,@Reserve4,@Reserve5)");
strSql.Append("@ElectricityId,@Year,@Month,@StartPeriodTime,@EndPeriodTime,@Type,@UnitPrice,@CreateTime,@Reserve1,@Reserve2,@Reserve3,@Reserve4,@Reserve5)");
MySqlParameter[] parameters = {
new MySqlParameter("@ElectricityId", MySqlDbType.VarChar,255),
new MySqlParameter("@Electricity", MySqlDbType.Float,255),
new MySqlParameter("@Electrovalence", MySqlDbType.Float,255),
new MySqlParameter("@Year", MySqlDbType.Int32),
new MySqlParameter("@Month", MySqlDbType.Int32),
new MySqlParameter("@StartPeriodTime", MySqlDbType.VarChar,255),
new MySqlParameter("@EndPeriodTime", MySqlDbType.VarChar,255),
new MySqlParameter("@Type", MySqlDbType.VarChar,255),
new MySqlParameter("@UnitPrice", MySqlDbType.Decimal,10),
new MySqlParameter("@CreateTime", MySqlDbType.DateTime),
new MySqlParameter("@EntireTime", MySqlDbType.DateTime),
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.ElectricityId;
parameters[1].Value = model.Electricity;
parameters[2].Value = model.Electrovalence;
parameters[3].Value = model.CreateTime;
parameters[4].Value = model.EntireTime;
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[1].Value = model.Year;
parameters[2].Value = model.Month;
parameters[3].Value = model.StartPeriodTime;
parameters[4].Value = model.EndPeriodTime;
parameters[5].Value = model.Type;
parameters[6].Value = model.UnitPrice;
parameters[7].Value = model.CreateTime;
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)
@ -95,10 +101,13 @@ namespace DataService.DAL
{
StringBuilder strSql=new StringBuilder();
strSql.Append("update electricity_rate set ");
strSql.Append("Electricity=@Electricity,");
strSql.Append("Electrovalence=@Electrovalence,");
strSql.Append("Year=@Year,");
strSql.Append("Month=@Month,");
strSql.Append("StartPeriodTime=@StartPeriodTime,");
strSql.Append("EndPeriodTime=@EndPeriodTime,");
strSql.Append("Type=@Type,");
strSql.Append("UnitPrice=@UnitPrice,");
strSql.Append("CreateTime=@CreateTime,");
strSql.Append("EntireTime=@EntireTime,");
strSql.Append("Reserve1=@Reserve1,");
strSql.Append("Reserve2=@Reserve2,");
strSql.Append("Reserve3=@Reserve3,");
@ -106,26 +115,32 @@ namespace DataService.DAL
strSql.Append("Reserve5=@Reserve5");
strSql.Append(" where ElectricityId=@ElectricityId ");
MySqlParameter[] parameters = {
new MySqlParameter("@Electricity", MySqlDbType.Float,255),
new MySqlParameter("@Electrovalence", MySqlDbType.Float,255),
new MySqlParameter("@Year", MySqlDbType.Int32),
new MySqlParameter("@Month", MySqlDbType.Int32),
new MySqlParameter("@StartPeriodTime", MySqlDbType.VarChar,255),
new MySqlParameter("@EndPeriodTime", MySqlDbType.VarChar,255),
new MySqlParameter("@Type", MySqlDbType.VarChar,255),
new MySqlParameter("@UnitPrice", MySqlDbType.Decimal,10),
new MySqlParameter("@CreateTime", MySqlDbType.DateTime),
new MySqlParameter("@EntireTime", MySqlDbType.DateTime),
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("@ElectricityId", MySqlDbType.VarChar,255)};
parameters[0].Value = model.Electricity;
parameters[1].Value = model.Electrovalence;
parameters[2].Value = model.CreateTime;
parameters[3].Value = model.EntireTime;
parameters[4].Value = model.Reserve1;
parameters[5].Value = model.Reserve2;
parameters[6].Value = model.Reserve3;
parameters[7].Value = model.Reserve4;
parameters[8].Value = model.Reserve5;
parameters[9].Value = model.ElectricityId;
parameters[0].Value = model.Year;
parameters[1].Value = model.Month;
parameters[2].Value = model.StartPeriodTime;
parameters[3].Value = model.EndPeriodTime;
parameters[4].Value = model.Type;
parameters[5].Value = model.UnitPrice;
parameters[6].Value = model.CreateTime;
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.ElectricityId;
int rows=DbHelperMySQL.ExecuteSql(strSql.ToString(),parameters);
if (rows > 0)
@ -188,7 +203,7 @@ namespace DataService.DAL
{
StringBuilder strSql=new StringBuilder();
strSql.Append("select ElectricityId,Electricity,Electrovalence,CreateTime,EntireTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 from electricity_rate ");
strSql.Append("select ElectricityId,Year,Month,StartPeriodTime,EndPeriodTime,Type,UnitPrice,CreateTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 from electricity_rate ");
strSql.Append(" where ElectricityId=@ElectricityId ");
MySqlParameter[] parameters = {
new MySqlParameter("@ElectricityId", MySqlDbType.VarChar,255) };
@ -219,22 +234,34 @@ namespace DataService.DAL
{
model.ElectricityId=row["ElectricityId"].ToString();
}
if(row["Electricity"]!=null && row["Electricity"].ToString()!="")
if(row["Year"]!=null && row["Year"].ToString()!="")
{
model.Electricity=decimal.Parse(row["Electricity"].ToString());
model.Year=int.Parse(row["Year"].ToString());
}
if(row["Electrovalence"]!=null && row["Electrovalence"].ToString()!="")
if(row["Month"]!=null && row["Month"].ToString()!="")
{
model.Electrovalence=decimal.Parse(row["Electrovalence"].ToString());
model.Month=int.Parse(row["Month"].ToString());
}
if(row["StartPeriodTime"]!=null)
{
model.StartPeriodTime=row["StartPeriodTime"].ToString();
}
if(row["EndPeriodTime"]!=null)
{
model.EndPeriodTime=row["EndPeriodTime"].ToString();
}
if(row["Type"]!=null)
{
model.Type=row["Type"].ToString();
}
if(row["UnitPrice"]!=null && row["UnitPrice"].ToString()!="")
{
model.UnitPrice=decimal.Parse(row["UnitPrice"].ToString());
}
if(row["CreateTime"]!=null && row["CreateTime"].ToString()!="")
{
model.CreateTime=DateTime.Parse(row["CreateTime"].ToString());
}
if(row["EntireTime"]!=null && row["EntireTime"].ToString()!="")
{
model.EntireTime=DateTime.Parse(row["EntireTime"].ToString());
}
if(row["Reserve1"]!=null)
{
model.Reserve1=row["Reserve1"].ToString();
@ -265,7 +292,7 @@ namespace DataService.DAL
public DataSet GetList(string strWhere)
{
StringBuilder strSql=new StringBuilder();
strSql.Append("select ElectricityId,Electricity,Electrovalence,CreateTime,EntireTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 ");
strSql.Append("select ElectricityId,Year,Month,StartPeriodTime,EndPeriodTime,Type,UnitPrice,CreateTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 ");
strSql.Append(" FROM electricity_rate ");
if(strWhere.Trim()!="")
{
@ -285,7 +312,7 @@ namespace DataService.DAL
{
strSql.Append(" where "+strWhere);
}
object obj = DbHelperSQL.GetSingle(strSql.ToString());
object obj = DbHelperMySQL.GetSingle(strSql.ToString());
if (obj == null)
{
return 0;

View File

@ -100,6 +100,7 @@
<Compile Include="BLL\boot_strategy.cs" />
<Compile Include="BLL\device_info.cs" />
<Compile Include="BLL\electricity_data.cs" />
<Compile Include="BLL\electricity_month.cs" />
<Compile Include="BLL\electricity_rate.cs" />
<Compile Include="BLL\lighting_info.cs" />
<Compile Include="BLL\meteorological_station.cs" />
@ -110,6 +111,7 @@
<Compile Include="DAL\boot_strategy.cs" />
<Compile Include="DAL\device_info.cs" />
<Compile Include="DAL\electricity_data.cs" />
<Compile Include="DAL\electricity_month.cs" />
<Compile Include="DAL\electricity_rate.cs" />
<Compile Include="DAL\lighting_info.cs" />
<Compile Include="DAL\meteorological_station.cs" />
@ -120,6 +122,7 @@
<Compile Include="Model\boot_strategy.cs" />
<Compile Include="Model\device_info.cs" />
<Compile Include="Model\electricity_data.cs" />
<Compile Include="Model\electricity_month.cs" />
<Compile Include="Model\electricity_rate.cs" />
<Compile Include="Model\lighting_info.cs" />
<Compile Include="Model\meteorological_station.cs" />

View File

@ -0,0 +1,150 @@
/**
* electricity_month.cs
*
* N/A
* electricity_month
*
* Ver
*
* V0.01 2024/8/16 14:46:53 N/A
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*
*  
*               
*
*/
using System;
namespace DataService.Model
{
/// <summary>
/// electricity_month:实体类(属性说明自动提取数据库字段的描述信息)
/// </summary>
[Serializable]
public partial class electricity_month
{
public electricity_month()
{}
#region Model
private string _monthid;
private string _needle;
private string _peak;
private string _flat;
private string _grain;
private string _deep;
private DateTime? _entiretime;
private DateTime? _createtime;
private string _reserve1;
private string _reserve2;
private string _reserve3;
private string _reserve4;
private string _reserve5;
/// <summary>
///
/// </summary>
public string MonthId
{
set{ _monthid=value;}
get{return _monthid;}
}
/// <summary>
///
/// </summary>
public string Needle
{
set{ _needle=value;}
get{return _needle;}
}
/// <summary>
///
/// </summary>
public string Peak
{
set{ _peak=value;}
get{return _peak;}
}
/// <summary>
///
/// </summary>
public string Flat
{
set{ _flat=value;}
get{return _flat;}
}
/// <summary>
///
/// </summary>
public string Grain
{
set{ _grain=value;}
get{return _grain;}
}
/// <summary>
///
/// </summary>
public string Deep
{
set{ _deep=value;}
get{return _deep;}
}
/// <summary>
///
/// </summary>
public DateTime? EntireTime
{
set{ _entiretime=value;}
get{return _entiretime;}
}
/// <summary>
///
/// </summary>
public DateTime? CreateTime
{
set{ _createtime=value;}
get{return _createtime;}
}
/// <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
}
}

View File

@ -6,7 +6,7 @@
*
* Ver
*
* V0.01 2024/2/27 11:02:52 N/A
* V0.01 2024/8/16 13:52:17 N/A
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*
@ -27,10 +27,13 @@ namespace DataService.Model
{}
#region Model
private string _electricityid;
private decimal? _electricity;
private decimal? _electrovalence;
private DateTime? _createtime;
private DateTime? _entiretime;
private int _year;
private int _month;
private string _startperiodtime;
private string _endperiodtime;
private string _type;
private decimal _unitprice;
private DateTime _createtime;
private string _reserve1;
private string _reserve2;
private string _reserve3;
@ -47,23 +50,55 @@ namespace DataService.Model
/// <summary>
///
/// </summary>
public decimal? Electricity
public int Year
{
set{ _electricity=value;}
get{return _electricity;}
set{ _year=value;}
get{return _year;}
}
/// <summary>
///
/// </summary>
public decimal? Electrovalence
public int Month
{
set{ _electrovalence=value;}
get{return _electrovalence;}
set{ _month=value;}
get{return _month;}
}
/// <summary>
///
/// </summary>
public DateTime? CreateTime
public string StartPeriodTime
{
set{ _startperiodtime=value;}
get{return _startperiodtime;}
}
/// <summary>
///
/// </summary>
public string EndPeriodTime
{
set{ _endperiodtime=value;}
get{return _endperiodtime;}
}
/// <summary>
///
/// </summary>
public string Type
{
set{ _type=value;}
get{return _type;}
}
/// <summary>
///
/// </summary>
public decimal UnitPrice
{
set{ _unitprice=value;}
get{return _unitprice;}
}
/// <summary>
///
/// </summary>
public DateTime CreateTime
{
set{ _createtime=value;}
get{return _createtime;}
@ -71,14 +106,6 @@ namespace DataService.Model
/// <summary>
///
/// </summary>
public DateTime? EntireTime
{
set{ _entiretime=value;}
get{return _entiretime;}
}
/// <summary>
///
/// </summary>
public string Reserve1
{
set{ _reserve1=value;}

View File

@ -1 +1 @@
c735eafae718d0a8c51f33001640292d7013548a
8115d22ce0987464b4213cebd23b789f40e0ead7

View File

@ -18,3 +18,13 @@ E:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\obj\Debu
E:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\obj\Debug\DataService.csproj.CopyComplete
E:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\obj\Debug\DataService.dll
E:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\obj\Debug\DataService.pdb
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\bin\Debug\DataService.dll
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\bin\Debug\DataService.pdb
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\bin\Debug\Maticsoft.Common.dll
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\bin\Debug\Maticsoft.DBUtility.dll
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\bin\Debug\MySql.Data.dll
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\obj\Debug\DataService.csproj.AssemblyReference.cache
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\obj\Debug\DataService.csproj.CoreCompileInputs.cache
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\obj\Debug\DataService.csproj.CopyComplete
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\obj\Debug\DataService.dll
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\DataService\obj\Debug\DataService.pdb

View File

@ -2,6 +2,7 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Http;
@ -15,28 +16,274 @@ namespace LonglslandExhibitionCenter.Controllers.api
/// </summary>
public class GetElectricityRateController : ApiController
{
DataService.BLL.electricity_rate bll = new DataService.BLL.electricity_rate();
DataService.BLL.electricity_rate rate_bll = new DataService.BLL.electricity_rate();
DataService.BLL.electricity_data bll = new DataService.BLL.electricity_data();
DataService.BLL.electricity_month month_bll = new DataService.BLL.electricity_month();
public HttpResponseMessage Get()
{
var res = new get_electricity_rate();
try
{
var data=new List<electricity_rateData>();
var now=DateTime.Now;
var list = bll.GetModelList("");
var time_count=Convert.ToInt32(now.Month);
for (int i = 0; i < time_count; i++)
var date_base = ConfigurationManager.AppSettings["MySQLDataBase"].ToString();
var data = new List<electricity_rateData>();
var now = DateTime.Now;
var year = now.Year;
var rate_list = rate_bll.GetModelList(string.Format(" Year='{0}' ", year));
var list = new List<DataService.Model.electricity_data>();
// 查询电表数据
var startDate = DateTime.Parse(now.ToString("yyyy-01-01"));
var endDate = DateTime.Parse(now.ToString("yyyy-MM-dd HH:00:00"));
var month_list = month_bll.GetModelList(string.Format(" `EntireTime`>='{0}' AND `EntireTime`<='{1}' ", startDate, endDate));
// 处理跨月情况
var time_count = GetUsedMonth1("月", startDate, endDate);
for (int i = 0; i <= time_count; i++)
{
var model = new electricity_rateData()
var time = startDate.AddMonths(i).ToString("yyyyMM");
if (bll.IsExistsTable(date_base, "electricity_data_" + time))
{
time = now.AddMonths(-i).ToString("MM月"),
Electricity = list.Sum(x => x.Electricity),
Electrovalence = list.Sum(x => x.Electrovalence),
};
data.Add(model);
var queryData = bll.GetModelListDate(string.Format(" Reserve1='配电室低压' and `EntireTime`>='{0}' AND `EntireTime`<='{1}' ", startDate, endDate), time);
list.AddRange(queryData);
}
}
var adata=data.OrderBy(x=>x.time).ToList();
res.code= 200;
var month_count = Convert.ToInt32(now.Month);
for (int i = 0; i < month_count; i++)
{
var month = startDate.AddMonths(i);
var next_month = startDate.AddMonths(i + 1);
//当前月
if (month.ToString("yyyy-MM") == now.ToString("yyyy-MM"))
{
var data_model = new electricity_rateData();
data_model.time = month.ToString("MM月");
data_model.Electricity = 0;
data_model.Electrovalence = 0;
decimal? Needle = 0;
decimal? Peak = 0;
decimal? Flat = 0;
decimal? Grain = 0;
decimal? Deep = 0;
decimal? NeedlePrice = 0;
decimal? PeakPrice = 0;
decimal? FlatPrice = 0;
decimal? GrainPrice = 0;
decimal? DeepPrice = 0;
var day_count = (next_month - month).TotalDays;
//循环月里的每一天
for (int day = 0; day < day_count; day++)
{
var current_day = month.AddDays(day);
if (current_day > now)
{
break;
}
// 遍历24小时
for (int hour = 0; hour < 24; hour++)
{
var start_hour = current_day.AddHours(hour);
if (start_hour.ToString("yyyy-MM-dd HH:00:00") == now.AddHours(-1).ToString("yyyy-MM-dd HH:00:00"))
{
break;
}
var end_hour = current_day.AddHours(hour + 1);
var start_eh = list.Where(a => a.EntireTime == start_hour).Sum(a => a.EH);
var end_eh = list.Where(a => a.EntireTime == end_hour).Sum(a => a.EH);
var eh = end_eh - start_eh;
var rate_model = rate_list.Where(a => a.Month == start_hour.Month && DateTime.Parse(a.StartPeriodTime).ToString("HH:mm:ss") == start_hour.ToString("HH:mm:ss")).FirstOrDefault();
if (rate_model != null)
{
if (rate_model.Type == "尖")
{
Needle += eh;
NeedlePrice = rate_model.UnitPrice;
}
else if (rate_model.Type == "峰")
{
Peak += eh;
PeakPrice = rate_model.UnitPrice;
}
else if (rate_model.Type == "平")
{
Flat += eh;
FlatPrice = rate_model.UnitPrice;
}
else if (rate_model.Type == "谷")
{
Grain += eh;
GrainPrice = rate_model.UnitPrice;
}
else if (rate_model.Type == "深")
{
Deep += eh;
DeepPrice = rate_model.UnitPrice;
}
}
}
}
data_model.Electricity = Math.Round(Convert.ToDecimal((Needle * NeedlePrice) + (Peak * PeakPrice) + (Flat * FlatPrice) + (Grain * GrainPrice) + (Deep * DeepPrice)), 8);
var total = (Needle + Peak + Flat + Grain + Deep);
if (total > 0)
{
data_model.Electrovalence = Math.Round(Convert.ToDecimal(data_model.Electricity / total), 8);
}
data.Add(data_model);
}
else
{
var month_model = month_list.Where(a => a.EntireTime == month).FirstOrDefault();
if (month_model != null)
{
var model = new electricity_rateData()
{
time = month.ToString("MM月"),
Electricity = 0,
Electrovalence = 0
};
decimal? Needle = Convert.ToDecimal(month_model.Needle);
decimal? Peak = Convert.ToDecimal(month_model.Peak);
decimal? Flat = Convert.ToDecimal(month_model.Flat);
decimal? Grain = Convert.ToDecimal(month_model.Grain);
decimal? Deep = Convert.ToDecimal(month_model.Deep);
decimal? NeedlePrice = 0;
decimal? PeakPrice = 0;
decimal? FlatPrice = 0;
decimal? GrainPrice = 0;
decimal? DeepPrice = 0;
var rate_model1 = rate_list.Where(a => a.Month == month.Month && a.Type == "尖").FirstOrDefault();
if (rate_model1 != null)
{
NeedlePrice = rate_model1.UnitPrice;
}
var rate_model2 = rate_list.Where(a => a.Month == month.Month && a.Type == "峰").FirstOrDefault();
if (rate_model2 != null)
{
PeakPrice = rate_model2.UnitPrice;
}
var rate_model3 = rate_list.Where(a => a.Month == month.Month && a.Type == "平").FirstOrDefault();
if (rate_model3 != null)
{
FlatPrice = rate_model3.UnitPrice;
}
var rate_model4 = rate_list.Where(a => a.Month == month.Month && a.Type == "谷").FirstOrDefault();
if (rate_model4 != null)
{
GrainPrice = rate_model4.UnitPrice;
}
var rate_model5 = rate_list.Where(a => a.Month == month.Month && a.Type == "深").FirstOrDefault();
if (rate_model5 != null)
{
DeepPrice = rate_model5.UnitPrice;
}
model.Electricity = Math.Round(Convert.ToDecimal((Needle * NeedlePrice) + (Peak * PeakPrice) + (Flat * FlatPrice) + (Grain * GrainPrice) + (Deep * DeepPrice)), 8);
var total = (Needle + Peak + Flat + Grain + Deep);
if (total > 0)
{
model.Electrovalence = Math.Round(Convert.ToDecimal(model.Electricity / total), 8);
}
data.Add(model);
}
else
{
var data_model = new electricity_rateData();
data_model.time = month.ToString("MM月");
data_model.Electricity = 0;
data_model.Electrovalence = 0;
decimal? Needle = 0;
decimal? Peak = 0;
decimal? Flat = 0;
decimal? Grain = 0;
decimal? Deep = 0;
decimal? NeedlePrice = 0;
decimal? PeakPrice = 0;
decimal? FlatPrice = 0;
decimal? GrainPrice = 0;
decimal? DeepPrice = 0;
var day_count = (next_month - month).TotalDays;
//循环月里的每一天
for (int day = 0; day < day_count; day++)
{
var current_day = month.AddDays(day);
// 遍历24小时
for (int hour = 0; hour < 24; hour++)
{
var start_hour = current_day.AddHours(hour);
var end_hour = current_day.AddHours(hour + 1);
var start_eh = list.Where(a => a.EntireTime == start_hour).Sum(a => a.EH);
var end_eh = list.Where(a => a.EntireTime == end_hour).Sum(a => a.EH);
var eh = end_eh - start_eh;
var rate_model = rate_list.Where(a => a.Month == start_hour.Month && DateTime.Parse(a.StartPeriodTime).ToString("HH:mm:ss") == start_hour.ToString("HH:mm:ss")).FirstOrDefault();
if (rate_model != null)
{
if (rate_model.Type == "尖")
{
Needle += eh;
NeedlePrice = rate_model.UnitPrice;
}
else if (rate_model.Type == "峰")
{
Peak += eh;
PeakPrice = rate_model.UnitPrice;
}
else if (rate_model.Type == "平")
{
Flat += eh;
FlatPrice = rate_model.UnitPrice;
}
else if (rate_model.Type == "谷")
{
Grain += eh;
GrainPrice = rate_model.UnitPrice;
}
else if (rate_model.Type == "深")
{
Deep += eh;
DeepPrice = rate_model.UnitPrice;
}
}
}
}
data_model.Electricity = Math.Round(Convert.ToDecimal((Needle * NeedlePrice) + (Peak * PeakPrice) + (Flat * FlatPrice) + (Grain * GrainPrice) + (Deep * DeepPrice)), 8);
var total = (Needle + Peak + Flat + Grain + Deep);
if (total > 0)
{
data_model.Electrovalence = Math.Round(Convert.ToDecimal(data_model.Electricity / total), 8);
}
data.Add(data_model);
month_bll.Add(new DataService.Model.electricity_month()
{
MonthId = Guid.NewGuid().ToString("N"),
Needle = Needle.ToString(),
Peak = Peak.ToString(),
Flat = Flat.ToString(),
Grain = Grain.ToString(),
Deep = Deep.ToString(),
CreateTime = now,
EntireTime = month
});
}
}
}
var adata = data.OrderBy(x => x.time).ToList();
res.code = 200;
res.msg = "成功";
res.data = adata;
}
@ -48,5 +295,34 @@ namespace LonglslandExhibitionCenter.Controllers.api
HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(res), Encoding.GetEncoding("UTF-8"), "application/json") };
return result;
}
/// <summary>
/// 计算两个时间年份月份差
/// </summary>
/// <returns></returns>
private int GetUsedMonth1(string type, DateTime dynamicTime, DateTime currentDate)
{
try
{
int year = currentDate.Year - dynamicTime.Year; //相差的年份
int month = (currentDate.Year - dynamicTime.Year) * 12 + (currentDate.Month - dynamicTime.Month); //相差的月份
//int month1 = currentDate.Year * 12 + currentDate.Month - dynamicTime.Year * 12 - dynamicTime.Month; //相差的月份
TimeSpan used = DateTime.Now - dynamicTime;
double totalDays = used.TotalDays; //相差总天数
if (type == "年")
{
return Convert.ToInt32(year);
}
else
{
return Convert.ToInt32(month);
}
}
catch (Exception)
{
return 0;
}
}
}
}

View File

@ -3,6 +3,7 @@ using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Net.Http;
@ -17,8 +18,12 @@ namespace LonglslandExhibitionCenter.Controllers.api
/// </summary>
public class GetMultiRateController : ApiController
{
DataService.BLL.multi_rate bll = new DataService.BLL.multi_rate();
// GET api/<controller>
DataService.BLL.electricity_rate rate_bll = new DataService.BLL.electricity_rate();
DataService.BLL.electricity_data bll = new DataService.BLL.electricity_data();
DataService.BLL.electricity_month month_bll = new DataService.BLL.electricity_month();
public HttpResponseMessage Get(string date = "")
{
var res = new get_multi_rate();
@ -26,58 +31,406 @@ namespace LonglslandExhibitionCenter.Controllers.api
{
if (!string.IsNullOrEmpty(date))
{
var date_base = ConfigurationManager.AppSettings["MySQLDataBase"].ToString();
var data = new List<multi_rateData>();
var now = DateTime.Now;
var list = bll.GetModelList("");
if (date == "日")
{
var time_count = Convert.ToInt32(now.Day);
for (int i = 0; i < time_count; i++)
var year = now.Year;
var rate_list = rate_bll.GetModelList(string.Format(" Year='{0}' ", year));
var list = new List<DataService.Model.electricity_data>();
// 查询电表数据
var startDate = DateTime.Today.AddDays(-7);
var endDate = DateTime.Today;
// 处理跨月情况
var time_count = GetUsedMonth1("月", startDate, endDate);
for (int i = 0; i <= time_count; i++)
{
var model = new multi_rateData()
var time = startDate.AddMonths(i).ToString("yyyyMM");
if (bll.IsExistsTable(date_base, "electricity_data_" + time))
{
time = now.AddDays(-i).ToString("MM-dd"),
Needle = list.Sum(x => x.Needle),
Peak = list.Sum(x => x.Peak),
Flat = list.Sum(x => x.Flat),
Grain = list.Sum(x => x.Grain),
Deep = list.Sum(x => x.Deep),
};
data.Add(model);
var queryData = bll.GetModelListDate(string.Format(" Reserve1='配电室低压' and `EntireTime`>='{0}' AND `EntireTime`<='{1}' ", startDate, endDate), time);
list.AddRange(queryData);
}
}
// 处理跨月情况
while (startDate < endDate)
{
var data_model = new multi_rateData();
data_model.time = startDate.ToString("MM-dd");
data_model.Needle = 0;
data_model.Peak = 0;
data_model.Flat = 0;
data_model.Grain = 0;
data_model.Deep = 0;
// 遍历24小时
for (int hour = 0; hour < 24; hour++)
{
var start_hour = startDate.AddHours(hour);
var end_hour = startDate.AddHours(hour + 1);
var start_eh = list.Where(a => a.EntireTime == start_hour).Sum(a => a.EH);
var end_eh = list.Where(a => a.EntireTime == end_hour).Sum(a => a.EH);
var eh = end_eh - start_eh;
var rate_model = rate_list.Where(a => a.Month == start_hour.Month && DateTime.Parse(a.StartPeriodTime).ToString("HH:mm:ss") == start_hour.ToString("HH:mm:ss")).FirstOrDefault();
if (rate_model != null)
{
if (rate_model.Type == "尖")
{
data_model.Needle += eh;
}
else if (rate_model.Type == "峰")
{
data_model.Peak += eh;
}
else if (rate_model.Type == "平")
{
data_model.Flat += eh;
}
else if (rate_model.Type == "谷")
{
data_model.Grain += eh;
}
else if (rate_model.Type == "深")
{
data_model.Deep += eh;
}
}
}
data.Add(data_model);
startDate = startDate.AddDays(1);
}
}
if (date == "月")
{
var time_count = Convert.ToInt32(now.Month);
for (int i = 0; i < time_count; i++)
var year = now.Year;
var rate_list = rate_bll.GetModelList(string.Format(" Year='{0}' ", year));
var list = new List<DataService.Model.electricity_data>();
// 查询电表数据
var startDate = DateTime.Parse(now.ToString("yyyy-01-01"));
var endDate = DateTime.Parse(now.ToString("yyyy-MM-dd HH:00:00"));
var month_list = month_bll.GetModelList(string.Format(" `EntireTime`>='{0}' AND `EntireTime`<='{1}' ", startDate, endDate));
// 处理跨月情况
var time_count = GetUsedMonth1("月", startDate, endDate);
for (int i = 0; i <= time_count; i++)
{
var model = new multi_rateData()
var time = startDate.AddMonths(i).ToString("yyyyMM");
if (bll.IsExistsTable(date_base, "electricity_data_" + time))
{
time = now.AddMonths(-i).ToString("MM月"),
Needle = list.Sum(x => x.Needle),
Peak = list.Sum(x => x.Peak),
Flat = list.Sum(x => x.Flat),
Grain = list.Sum(x => x.Grain),
Deep = list.Sum(x => x.Deep),
};
data.Add(model);
var queryData = bll.GetModelListDate(string.Format(" Reserve1='配电室低压' and `EntireTime`>='{0}' AND `EntireTime`<='{1}' ", startDate, endDate), time);
list.AddRange(queryData);
}
}
var month_count = Convert.ToInt32(now.Month);
for (int i = 0; i < month_count; i++)
{
var month = startDate.AddMonths(i);
var next_month = startDate.AddMonths(i + 1);
//当前月
if (month.ToString("yyyy-MM") == now.ToString("yyyy-MM"))
{
var data_model = new multi_rateData();
data_model.time = month.ToString("MM月");
data_model.Needle = 0;
data_model.Peak = 0;
data_model.Flat = 0;
data_model.Grain = 0;
data_model.Deep = 0;
var day_count = (next_month - month).TotalDays;
//循环月里的每一天
for (int day = 0; day < day_count; day++)
{
var current_day = month.AddDays(day);
if (current_day > now)
{
break;
}
// 遍历24小时
for (int hour = 0; hour < 24; hour++)
{
var start_hour = current_day.AddHours(hour);
if (start_hour.ToString("yyyy-MM-dd HH:00:00") == now.AddHours(-1).ToString("yyyy-MM-dd HH:00:00"))
{
break;
}
var end_hour = current_day.AddHours(hour + 1);
var start_eh = list.Where(a => a.EntireTime == start_hour).Sum(a => a.EH);
var end_eh = list.Where(a => a.EntireTime == end_hour).Sum(a => a.EH);
var eh = end_eh - start_eh;
var rate_model = rate_list.Where(a => a.Month == start_hour.Month && DateTime.Parse(a.StartPeriodTime).ToString("HH:mm:ss") == start_hour.ToString("HH:mm:ss")).FirstOrDefault();
if (rate_model != null)
{
if (rate_model.Type == "尖")
{
data_model.Needle += eh;
}
else if (rate_model.Type == "峰")
{
data_model.Peak += eh;
}
else if (rate_model.Type == "平")
{
data_model.Flat += eh;
}
else if (rate_model.Type == "谷")
{
data_model.Grain += eh;
}
else if (rate_model.Type == "深")
{
data_model.Deep += eh;
}
}
}
}
data.Add(data_model);
}
else
{
var month_model = month_list.Where(a => a.EntireTime == month).FirstOrDefault();
if (month_model != null)
{
var model = new multi_rateData()
{
time = month.ToString("MM月"),
Needle = Convert.ToDecimal(month_model.Needle),
Peak = Convert.ToDecimal(month_model.Peak),
Flat = Convert.ToDecimal(month_model.Flat),
Grain = Convert.ToDecimal(month_model.Grain),
Deep = Convert.ToDecimal(month_model.Deep)
};
data.Add(model);
}
else
{
var data_model = new multi_rateData();
data_model.time = month.ToString("MM月");
data_model.Needle = 0;
data_model.Peak = 0;
data_model.Flat = 0;
data_model.Grain = 0;
data_model.Deep = 0;
var day_count = (next_month - month).TotalDays;
//循环月里的每一天
for (int day = 0; day < day_count; day++)
{
var current_day = month.AddDays(day);
// 遍历24小时
for (int hour = 0; hour < 24; hour++)
{
var start_hour = current_day.AddHours(hour);
var end_hour = current_day.AddHours(hour + 1);
var start_eh = list.Where(a => a.EntireTime == start_hour).Sum(a => a.EH);
var end_eh = list.Where(a => a.EntireTime == end_hour).Sum(a => a.EH);
var eh = end_eh - start_eh;
var rate_model = rate_list.Where(a => a.Month == start_hour.Month && DateTime.Parse(a.StartPeriodTime).ToString("HH:mm:ss") == start_hour.ToString("HH:mm:ss")).FirstOrDefault();
if (rate_model != null)
{
if (rate_model.Type == "尖")
{
data_model.Needle += eh;
}
else if (rate_model.Type == "峰")
{
data_model.Peak += eh;
}
else if (rate_model.Type == "平")
{
data_model.Flat += eh;
}
else if (rate_model.Type == "谷")
{
data_model.Grain += eh;
}
else if (rate_model.Type == "深")
{
data_model.Deep += eh;
}
}
}
}
data.Add(data_model);
month_bll.Add(new DataService.Model.electricity_month()
{
MonthId = Guid.NewGuid().ToString("N"),
Needle = data_model.Needle.ToString(),
Peak = data_model.Peak.ToString(),
Flat = data_model.Flat.ToString(),
Grain = data_model.Grain.ToString(),
Deep = data_model.Deep.ToString(),
CreateTime = now,
EntireTime = month
});
}
}
}
}
if (date == "年")
{
var time_count = Convert.ToInt32(now.Year)-2023;
for (int i = 0; i < time_count; i++)
var list = new List<DataService.Model.electricity_data>();
// 查询电表数据
var startDate = DateTime.Parse("2024-01-01 00:00:00");
var endDate = DateTime.Parse(now.ToString("yyyy-MM-dd HH:00:00"));
var month_list = month_bll.GetModelList(string.Format(" `EntireTime`>='{0}' AND `EntireTime`<='{1}' ", startDate, endDate));
// 处理跨月情况
var time_count = GetUsedMonth1("月", startDate, endDate);
for (int i = 0; i <= time_count; i++)
{
var model = new multi_rateData()
var time = startDate.AddMonths(i).ToString("yyyyMM");
if (bll.IsExistsTable(date_base, "electricity_data_" + time))
{
time = now.AddYears(-i).ToString("yyyy"),
Needle = list.Sum(x => x.Needle),
Peak = list.Sum(x => x.Peak),
Flat = list.Sum(x => x.Flat),
Grain = list.Sum(x => x.Grain),
Deep = list.Sum(x => x.Deep),
};
data.Add(model);
var queryData = bll.GetModelListDate(string.Format(" Reserve1='配电室低压' and `EntireTime`>='{0}' AND `EntireTime`<='{1}' ", startDate, endDate), time);
list.AddRange(queryData);
}
}
var year_count = Convert.ToInt32(now.Year) - 2023;
for (int j = 0; j < year_count; j++)
{
var year = startDate.AddYears(j);
var data_model = new multi_rateData();
data_model.time = year.ToString("yyyy年");
data_model.Needle = 0;
data_model.Peak = 0;
data_model.Flat = 0;
data_model.Grain = 0;
data_model.Deep = 0;
var rate_list = rate_bll.GetModelList(string.Format(" Year='{0}' ", year.Year));
for (int i = 0; i < 12; i++)
{
var month = year.AddMonths(i);
var next_month = year.AddMonths(i + 1);
if (month > now)
{
break;
}
//当前月
if (month.ToString("yyyy-MM") == now.ToString("yyyy-MM"))
{
var day_count = (next_month - month).TotalDays;
//循环月里的每一天
for (int day = 0; day < day_count; day++)
{
var current_day = month.AddDays(day);
if (current_day > now)
{
break;
}
// 遍历24小时
for (int hour = 0; hour < 24; hour++)
{
var start_hour = current_day.AddHours(hour);
if (start_hour.ToString("yyyy-MM-dd HH:00:00") == now.AddHours(-1).ToString("yyyy-MM-dd HH:00:00"))
{
break;
}
var end_hour = current_day.AddHours(hour + 1);
var start_eh = list.Where(a => a.EntireTime == start_hour).Sum(a => a.EH);
var end_eh = list.Where(a => a.EntireTime == end_hour).Sum(a => a.EH);
var eh = end_eh - start_eh;
var rate_model = rate_list.Where(a => a.Month == start_hour.Month && DateTime.Parse(a.StartPeriodTime).ToString("HH:mm:ss") == start_hour.ToString("HH:mm:ss")).FirstOrDefault();
if (rate_model != null)
{
if (rate_model.Type == "尖")
{
data_model.Needle += eh;
}
else if (rate_model.Type == "峰")
{
data_model.Peak += eh;
}
else if (rate_model.Type == "平")
{
data_model.Flat += eh;
}
else if (rate_model.Type == "谷")
{
data_model.Grain += eh;
}
else if (rate_model.Type == "深")
{
data_model.Deep += eh;
}
}
}
}
}
else
{
var month_model = month_list.Where(a => a.EntireTime == month).FirstOrDefault();
if (month_model != null)
{
data_model.Needle += Convert.ToDecimal(month_model.Needle);
data_model.Peak += Convert.ToDecimal(month_model.Peak);
data_model.Flat += Convert.ToDecimal(month_model.Flat);
data_model.Grain += Convert.ToDecimal(month_model.Grain);
data_model.Deep += Convert.ToDecimal(month_model.Deep);
}
else
{
var day_count = (next_month - month).TotalDays;
//循环月里的每一天
for (int day = 0; day < day_count; day++)
{
var current_day = month.AddDays(day);
// 遍历24小时
for (int hour = 0; hour < 24; hour++)
{
var start_hour = current_day.AddHours(hour);
var end_hour = current_day.AddHours(hour + 1);
var start_eh = list.Where(a => a.EntireTime == start_hour).Sum(a => a.EH);
var end_eh = list.Where(a => a.EntireTime == end_hour).Sum(a => a.EH);
var eh = end_eh - start_eh;
var rate_model = rate_list.Where(a => a.Month == start_hour.Month && DateTime.Parse(a.StartPeriodTime).ToString("HH:mm:ss") == start_hour.ToString("HH:mm:ss")).FirstOrDefault();
if (rate_model != null)
{
if (rate_model.Type == "尖")
{
data_model.Needle += eh;
}
else if (rate_model.Type == "峰")
{
data_model.Peak += eh;
}
else if (rate_model.Type == "平")
{
data_model.Flat += eh;
}
else if (rate_model.Type == "谷")
{
data_model.Grain += eh;
}
else if (rate_model.Type == "深")
{
data_model.Deep += eh;
}
}
}
}
month_bll.Add(new DataService.Model.electricity_month()
{
MonthId = Guid.NewGuid().ToString("N"),
Needle = data_model.Needle.ToString(),
Peak = data_model.Peak.ToString(),
Flat = data_model.Flat.ToString(),
Grain = data_model.Grain.ToString(),
Deep = data_model.Deep.ToString(),
CreateTime = now,
EntireTime = month
});
}
}
}
data.Add(data_model);
}
}
var adata = data.OrderBy(x => x.time).ToList();
@ -99,5 +452,34 @@ namespace LonglslandExhibitionCenter.Controllers.api
HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(res), Encoding.GetEncoding("UTF-8"), "application/json") };
return result;
}
/// <summary>
/// 计算两个时间年份月份差
/// </summary>
/// <returns></returns>
private int GetUsedMonth1(string type, DateTime dynamicTime, DateTime currentDate)
{
try
{
int year = currentDate.Year - dynamicTime.Year; //相差的年份
int month = (currentDate.Year - dynamicTime.Year) * 12 + (currentDate.Month - dynamicTime.Month); //相差的月份
//int month1 = currentDate.Year * 12 + currentDate.Month - dynamicTime.Year * 12 - dynamicTime.Month; //相差的月份
TimeSpan used = DateTime.Now - dynamicTime;
double totalDays = used.TotalDays; //相差总天数
if (type == "年")
{
return Convert.ToInt32(year);
}
else
{
return Convert.ToInt32(month);
}
}
catch (Exception)
{
return 0;
}
}
}
}

View File

@ -10,6 +10,9 @@
<UseGlobalApplicationHostFile />
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<NameOfLastUsedPublishProfile>F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\LonglslandExhibitionCenter\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
<Controller_SelectedScaffolderID>ApiControllerEmptyScaffolder</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>root/Common/Web API</Controller_SelectedScaffolderCategoryPath>
<WebStackScaffolding_ControllerDialogWidth>600</WebStackScaffolding_ControllerDialogWidth>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>

View File

@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<Project>
<PropertyGroup>
<_PublishTargetUrl>F:\项目\长岛展览馆\发布文件</_PublishTargetUrl>
<History>True|2024-08-15T05:20:14.7663530Z;True|2024-08-14T10:07:28.2388461+08:00;True|2024-08-14T10:07:03.3134871+08:00;True|2024-08-14T10:06:43.4199921+08:00;True|2024-08-14T10:05:39.6303984+08:00;True|2024-08-14T10:00:18.4168360+08:00;True|2024-08-14T09:50:15.7791885+08:00;True|2024-08-11T20:53:54.5556138+08:00;True|2024-08-10T16:00:18.6655642+08:00;True|2024-08-10T10:41:02.8962798+08:00;True|2024-08-10T10:31:34.0807175+08:00;True|2024-08-10T10:11:01.4518697+08:00;True|2024-08-09T17:46:23.3977253+08:00;True|2024-08-09T14:57:51.6409237+08:00;True|2024-08-09T14:12:02.8124286+08:00;True|2024-08-09T13:57:09.6566238+08:00;True|2024-08-09T13:55:09.1957591+08:00;True|2024-08-09T13:53:12.0978886+08:00;True|2024-08-09T10:21:25.5364378+08:00;True|2024-08-08T17:30:17.0495176+08:00;True|2024-08-08T14:01:01.6427032+08:00;True|2024-08-08T10:26:20.9380493+08:00;True|2024-08-06T16:16:42.4971554+08:00;True|2024-04-15T08:46:26.1708600+08:00;True|2024-04-15T08:43:47.1675051+08:00;True|2024-03-20T09:52:41.5444999+08:00;True|2024-03-20T09:52:28.9463180+08:00;True|2024-03-19T16:26:27.2407972+08:00;True|2024-03-19T15:50:07.1464827+08:00;True|2024-03-14T15:48:46.0852411+08:00;True|2024-03-12T11:15:35.2934238+08:00;True|2024-03-07T16:29:08.9381292+08:00;True|2024-03-05T14:31:05.6269677+08:00;True|2024-03-04T14:37:08.7040845+08:00;True|2024-02-28T11:11:35.8506164+08:00;</History>
<History>True|2024-08-19T02:17:16.4446095Z;True|2024-08-15T13:20:14.7663530+08:00;True|2024-08-14T10:07:28.2388461+08:00;True|2024-08-14T10:07:03.3134871+08:00;True|2024-08-14T10:06:43.4199921+08:00;True|2024-08-14T10:05:39.6303984+08:00;True|2024-08-14T10:00:18.4168360+08:00;True|2024-08-14T09:50:15.7791885+08:00;True|2024-08-11T20:53:54.5556138+08:00;True|2024-08-10T16:00:18.6655642+08:00;True|2024-08-10T10:41:02.8962798+08:00;True|2024-08-10T10:31:34.0807175+08:00;True|2024-08-10T10:11:01.4518697+08:00;True|2024-08-09T17:46:23.3977253+08:00;True|2024-08-09T14:57:51.6409237+08:00;True|2024-08-09T14:12:02.8124286+08:00;True|2024-08-09T13:57:09.6566238+08:00;True|2024-08-09T13:55:09.1957591+08:00;True|2024-08-09T13:53:12.0978886+08:00;True|2024-08-09T10:21:25.5364378+08:00;True|2024-08-08T17:30:17.0495176+08:00;True|2024-08-08T14:01:01.6427032+08:00;True|2024-08-08T10:26:20.9380493+08:00;True|2024-08-06T16:16:42.4971554+08:00;True|2024-04-15T08:46:26.1708600+08:00;True|2024-04-15T08:43:47.1675051+08:00;True|2024-03-20T09:52:41.5444999+08:00;True|2024-03-20T09:52:28.9463180+08:00;True|2024-03-19T16:26:27.2407972+08:00;True|2024-03-19T15:50:07.1464827+08:00;True|2024-03-14T15:48:46.0852411+08:00;True|2024-03-12T11:15:35.2934238+08:00;True|2024-03-07T16:29:08.9381292+08:00;True|2024-03-05T14:31:05.6269677+08:00;True|2024-03-04T14:37:08.7040845+08:00;True|2024-02-28T11:11:35.8506164+08:00;</History>
<LastFailureDetails />
</PropertyGroup>
<ItemGroup>
@ -79,25 +79,25 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<publishTime>08/13/2024 17:44:44</publishTime>
</File>
<File Include="bin/DataService.dll">
<publishTime>08/13/2024 17:44:43</publishTime>
<publishTime>08/16/2024 14:57:32</publishTime>
</File>
<File Include="bin/DataService.pdb">
<publishTime>08/13/2024 17:44:43</publishTime>
<publishTime>08/16/2024 14:57:32</publishTime>
</File>
<File Include="bin/log4net.dll">
<publishTime>08/13/2024 17:44:43</publishTime>
</File>
<File Include="bin/LonglslandExhibitionCenter.dll">
<publishTime>08/14/2024 11:25:28</publishTime>
<publishTime>08/19/2024 10:17:11</publishTime>
</File>
<File Include="bin/LonglslandExhibitionCenter.pdb">
<publishTime>08/14/2024 11:25:28</publishTime>
<publishTime>08/19/2024 10:17:11</publishTime>
</File>
<File Include="bin/Maticsoft.Common.dll">
<publishTime>08/13/2024 17:44:43</publishTime>
<publishTime>08/13/2024 17:44:44</publishTime>
</File>
<File Include="bin/Maticsoft.DBUtility.dll">
<publishTime>08/13/2024 17:44:43</publishTime>
<publishTime>08/13/2024 17:44:44</publishTime>
</File>
<File Include="bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll">
<publishTime>08/13/2024 17:44:44</publishTime>
@ -109,7 +109,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<publishTime>08/13/2024 17:44:44</publishTime>
</File>
<File Include="bin/MySql.Data.dll">
<publishTime>08/13/2024 17:44:43</publishTime>
<publishTime>08/13/2024 17:44:45</publishTime>
</File>
<File Include="bin/Newtonsoft.Json.dll">
<publishTime>08/13/2024 17:44:45</publishTime>

Binary file not shown.

Binary file not shown.

View File

@ -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>cVESGyLcnbCniX0BSs1Pybl1+kduWurzDbuU+fD3kP4=</dsig:DigestValue>
<dsig:DigestValue>zl2wHFEv5SRIwogtu2Il7HI0RcdcSOjhNw4f5Ak9Iws=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View File

@ -42,14 +42,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DataService.dll" size="126464">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DataService.dll" size="135168">
<assemblyIdentity name="DataService" 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>BNrWQa+xXYUE0+WI/IM+mx8lKb78o0/UqGjOMy5ePCc=</dsig:DigestValue>
<dsig:DigestValue>T81EjCCCXxPPRkl+bEilJqRcRyaL2farpXkCB6n3DDU=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View File

@ -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>cVESGyLcnbCniX0BSs1Pybl1+kduWurzDbuU+fD3kP4=</dsig:DigestValue>
<dsig:DigestValue>zl2wHFEv5SRIwogtu2Il7HI0RcdcSOjhNw4f5Ak9Iws=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View File

@ -42,14 +42,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DataService.dll" size="126464">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DataService.dll" size="135168">
<assemblyIdentity name="DataService" 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>BNrWQa+xXYUE0+WI/IM+mx8lKb78o0/UqGjOMy5ePCc=</dsig:DigestValue>
<dsig:DigestValue>T81EjCCCXxPPRkl+bEilJqRcRyaL2farpXkCB6n3DDU=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
a65f28891728aba044c7b8df335cc0b088a7a2a0
4b23676b26eb692252a9be2f423b2b1b4ca0ba42

View File

@ -16,3 +16,21 @@ E:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug
E:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug\Supplement.csproj.CopyComplete
E:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug\ServiceSupplement.exe
E:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug\ServiceSupplement.pdb
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\bin\Debug\ServiceSupplement.exe.config
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\bin\Debug\ServiceSupplement.exe
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\bin\Debug\ServiceSupplement.pdb
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\bin\Debug\DataService.dll
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\bin\Debug\log4net.dll
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\bin\Debug\MySql.Data.dll
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\bin\Debug\Maticsoft.DBUtility.dll
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\bin\Debug\Maticsoft.Common.dll
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\bin\Debug\DataService.pdb
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\bin\Debug\log4net.xml
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug\Supplement.csproj.AssemblyReference.cache
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug\Supplement.csproj.SuggestedBindingRedirects.cache
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug\Supplement.ProjectInstaller.resources
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug\Supplement.csproj.GenerateResource.cache
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug\Supplement.csproj.CoreCompileInputs.cache
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug\Supplement.csproj.CopyComplete
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug\ServiceSupplement.exe
F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\Supplement\obj\Debug\ServiceSupplement.pdb