master
Wen JY 1 year ago
commit b3860d92a9

Binary file not shown.

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{3A2E3F5D-006F-454C-8885-2DBEB7341FC8}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MESDataExtractQuartz.Model</RootNamespace>
<AssemblyName>MESDataExtractQuartz.Model</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="SqlSugar, Version=5.0.2.9, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SqlSugar.5.0.2.9\lib\SqlSugar.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Record_MesMachineOutPut.cs" />
<Compile Include="Record_MLMaterWeight.cs" />
<Compile Include="V_MESMLPlan.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("MESDataExtractQuartz.Model")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MESDataExtractQuartz.Model")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("3a2e3f5d-006f-454c-8885-2dbeb7341fc8")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

@ -0,0 +1,34 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MESDataExtractQuartz.Model
{
[SugarTable("Record_MLMaterWeight")]
public class Record_MLMaterWeight
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//通过特性设置主键和自增列
public int objId { get; set; }
public string Plan_date { get; set; }
public string Equip_code { get; set; }
public string Equip_name { get; set; }
public string Mater_code { get; set; }
public string Mater_Name { get; set; }
public string Real_StartTime { get; set; }
public string Real_EndTime { get; set; }
public decimal Real_weight { get; set; }
public DateTime RecordTime { get; set; }
}
}

@ -0,0 +1,63 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MESDataExtractQuartz.Model
{
[SugarTable("Record_MesMachineOutPut")]
public class Record_MesMachineOutPut
{
public Record_MesMachineOutPut()
{
}
/// <summary>
///
/// </summary>
/// <param name="machineId">设备编号</param>
/// <param name="classOrder">班次</param>
/// <param name="classTeam">班组</param>
/// <param name="unit">单位</param>
/// <param name="standWeight">产量</param>
/// <param name="beginTime">开始时间</param>
/// <param name="endTime">结束时间</param>
public Record_MesMachineOutPut(string machineId,string classOrder,string classTeam,string unit,decimal standWeight, DateTime beginTime,DateTime endTime)
{
this.machineId = machineId;
this.classOrder = classOrder;
this.classTeam = classTeam;
this.unit = unit;
this.standWeight = standWeight;
this.beginTime = beginTime;
this.endTime = endTime;
}
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//通过特性设置主键和自增列
public int objId { get; set; }
public string machineId { get; set; }
public string classOrder { get; set; }
public string classTeam { get; set; }
public decimal outPut { get; set; }
public string unit { get; set; }
public string productionDate { get; set; }
public DateTime recordTime { get; set; }
public decimal standWeight { get; set; }
public DateTime beginTime { get; set; }
public DateTime endTime { get; set; }
}
}

@ -0,0 +1,29 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MESDataExtractQuartz.Model
{
[SugarTable("V_MESMLPlan")]
public class V_MESMLPlan
{
public string Plan_date { get; set; }
public string Equip_code { get; set; }
public string Equip_name { get; set; }
public string Mater_code { get; set; }
public string Mater_Name { get; set; }
public string Real_StartTime { get; set; }
public string Real_EndTime { get; set; }
public decimal Real_weight { get; set; }
}
}

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5.2", FrameworkDisplayName = ".NET Framework 4.5.2")]

@ -0,0 +1,16 @@
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\bin\Debug\MESDataExtractQuartz.Model.dll
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\bin\Debug\MESDataExtractQuartz.Model.pdb
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\bin\Debug\SqlSugar.dll
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\bin\Debug\Newtonsoft.Json.dll
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\obj\Debug\MESDataExtractQuartz.Model.csproj.CoreCompileInputs.cache
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\obj\Debug\MESDataExtractQuartz.Model.csproj.CopyComplete
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\obj\Debug\MESDataExtractQuartz.Model.dll
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\obj\Debug\MESDataExtractQuartz.Model.pdb
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\bin\Debug\MESDataExtractQuartz.Model.dll
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\bin\Debug\MESDataExtractQuartz.Model.pdb
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\bin\Debug\SqlSugar.dll
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\bin\Debug\Newtonsoft.Json.dll
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\obj\Debug\MESDataExtractQuartz.Model.csproj.CoreCompileInputs.cache
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\obj\Debug\MESDataExtractQuartz.Model.csproj.CopyComplete
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\obj\Debug\MESDataExtractQuartz.Model.dll
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz.Model\obj\Debug\MESDataExtractQuartz.Model.pdb

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="SqlSugar" version="5.0.2.9" targetFramework="net452" />
</packages>

@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31205.134
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MESDataExtractQuartz", "MESDataExtractQuartz\MESDataExtractQuartz.csproj", "{71378774-0C20-459C-A75E-D58641283122}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MESDataExtractQuartz.Model", "MESDataExtractQuartz.Model\MESDataExtractQuartz.Model.csproj", "{3A2E3F5D-006F-454C-8885-2DBEB7341FC8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{71378774-0C20-459C-A75E-D58641283122}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{71378774-0C20-459C-A75E-D58641283122}.Debug|Any CPU.Build.0 = Debug|Any CPU
{71378774-0C20-459C-A75E-D58641283122}.Release|Any CPU.ActiveCfg = Release|Any CPU
{71378774-0C20-459C-A75E-D58641283122}.Release|Any CPU.Build.0 = Release|Any CPU
{3A2E3F5D-006F-454C-8885-2DBEB7341FC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3A2E3F5D-006F-454C-8885-2DBEB7341FC8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A2E3F5D-006F-454C-8885-2DBEB7341FC8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A2E3F5D-006F-454C-8885-2DBEB7341FC8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F3EB6F95-B9A1-4543-81F5-BA9CB63D14F5}
EndGlobalSection
EndGlobal

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,20 @@
using MESDataExtractQuartz.Service;
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MESDataExtractQuartz.Job
{
public class ExtractMLJob : IJob
{
public async Task Execute(IJobExecutionContext context)
{
BaseService.ExtractML();
//向c:\Quartz.txt写入当前时间并换行
System.IO.File.AppendAllText(@"E:\桌面\Quartz.txt", DateTime.Now + Environment.NewLine);
}
}
}

@ -0,0 +1,18 @@
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MESDataExtractQuartz.Job
{
public class MESTestJob : IJob
{
public async Task Execute(IJobExecutionContext context)
{
//向c:\Quartz.txt写入当前时间并换行
System.IO.File.AppendAllText(@"E:\桌面\Quartz.txt", DateTime.Now + Environment.NewLine);
}
}
}

@ -0,0 +1,22 @@
using MESDataExtractQuartz.Service;
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MESDataExtractQuartz.Job
{
public class SumMLTeamJob : IJob
{
public async Task Execute(IJobExecutionContext context)
{
//早班
BaseService.MLForeTeam();
//晚班
BaseService.MLNightTeam();
}
}
}

@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MESDataExtractQuartz
{
public class LogHelper
{
//GetLogger表示log4net配置文件中logger标签中name属性此处要一致 不然无log输出
public static readonly log4net.ILog loginfo = log4net.LogManager.GetLogger("loginfo");
public static readonly log4net.ILog logerror = log4net.LogManager.GetLogger("logerror");
/// <summary>
/// 记录Info日志
/// </summary>
/// <param name="msg"></param>
/// <param name="ex"></param>
public static void Info(string msg)
{
if (loginfo.IsInfoEnabled)
{
loginfo.Info(msg);
}
}
/// <summary>
/// 记录Error日志
/// </summary>
/// <param name="errorMsg"></param>
/// <param name="ex"></param>
public static void Error(string info, Exception ex = null)
{
if (!string.IsNullOrEmpty(info) && ex == null)
{
logerror.ErrorFormat("【附加信息】 : {0}<br>", new object[] { info });
}
else if (!string.IsNullOrEmpty(info) && ex != null)
{
string errorMsg = BeautyErrorMsg(ex);
logerror.ErrorFormat("【附加信息】 : {0}<br>{1}", new object[] { info, errorMsg });
}
else if (string.IsNullOrEmpty(info) && ex != null)
{
string errorMsg = BeautyErrorMsg(ex);
logerror.Error(errorMsg);
}
}
/// <summary>
/// 美化错误信息
/// </summary>
/// <param name="ex">异常</param>
/// <returns>错误信息</returns>
private static string BeautyErrorMsg(Exception ex)
{
string errorMsg = string.Format("【异常类型】:{0} <br>【异常信息】:{1} <br>【堆栈调用】:{2}", new object[] { ex.GetType().Name, ex.Message, ex.StackTrace });
errorMsg = errorMsg.Replace("\r\n", "<br>");
errorMsg = errorMsg.Replace("位置", "<strong style=\"color:red\">位置</strong>");
return errorMsg;
}
}
}

@ -0,0 +1,104 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{71378774-0C20-459C-A75E-D58641283122}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>MESDataExtractQuartz</RootNamespace>
<AssemblyName>MESDataExtractQuartz</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="AutoMapper, Version=5.0.2.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
<HintPath>..\packages\AutoMapper.5.0.2\lib\net45\AutoMapper.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=2.0.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.12\lib\net45\log4net.dll</HintPath>
</Reference>
<Reference Include="Quartz, Version=3.0.0.0, Culture=neutral, PublicKeyToken=f6b8c98a402cc8a4, processorArchitecture=MSIL">
<HintPath>..\packages\Quartz.3.0.0\lib\net452\Quartz.dll</HintPath>
</Reference>
<Reference Include="SqlSugar, Version=5.0.2.9, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SqlSugar.5.0.2.9\lib\SqlSugar.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Configuration.Install" />
<Reference Include="System.Core" />
<Reference Include="System.Management" />
<Reference Include="System.Runtime.Remoting" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.ServiceProcess" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Job\ExtractMLJob.cs" />
<Compile Include="Job\SumMLTeamJob.cs" />
<Compile Include="Job\MESTestJob.cs" />
<Compile Include="LogHelper.cs" />
<Compile Include="ProjectInstaller.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="ProjectInstaller.Designer.cs">
<DependentUpon>ProjectInstaller.cs</DependentUpon>
</Compile>
<Compile Include="Service1.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Service1.Designer.cs">
<DependentUpon>Service1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Service\BaseService.cs" />
<Compile Include="Trigger.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="log4net.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ProjectInstaller.resx">
<DependentUpon>ProjectInstaller.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MESDataExtractQuartz.Model\MESDataExtractQuartz.Model.csproj">
<Project>{3A2E3F5D-006F-454C-8885-2DBEB7341FC8}</Project>
<Name>MESDataExtractQuartz.Model</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace MESDataExtractQuartz
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new Service1()
};
ServiceBase.Run(ServicesToRun);
}
}
}

@ -0,0 +1,59 @@

namespace MESDataExtractQuartz
{
partial class ProjectInstaller
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
//
// serviceProcessInstaller1
//
this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalService;
this.serviceProcessInstaller1.Password = null;
this.serviceProcessInstaller1.Username = null;
//
// serviceInstaller1
//
this.serviceInstaller1.Description = "MES数据抽取服务";
this.serviceInstaller1.ServiceName = "Service1";
//
// ProjectInstaller
//
this.Installers.AddRange(new System.Configuration.Install.Installer[] {
this.serviceProcessInstaller1,
this.serviceInstaller1});
}
#endregion
private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller1;
private System.ServiceProcess.ServiceInstaller serviceInstaller1;
}
}

@ -0,0 +1,19 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.Threading.Tasks;
namespace MESDataExtractQuartz
{
[RunInstaller(true)]
public partial class ProjectInstaller : System.Configuration.Install.Installer
{
public ProjectInstaller()
{
InitializeComponent();
}
}
}

@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="serviceProcessInstaller1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>34, 34</value>
</metadata>
<metadata name="serviceInstaller1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>386, 34</value>
</metadata>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("MESDataExtractQuartz")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MESDataExtractQuartz")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("71378774-0c20-459c-a75e-d58641283122")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

@ -0,0 +1,209 @@
using AutoMapper;
using MESDataExtractQuartz.Model;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MESDataExtractQuartz.Service
{
public class BaseService
{
static SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
{
ConnectionString = "server=127.0.0.1;uid=sa;pwd=klltdb@3391123;database=XJEMSRefactor",
//ConnectionString = ConfigurationManager.AppSettings["ConnectionString"],
DbType = SqlSugar.DbType.SqlServer,//设置数据库类型
IsAutoCloseConnection = true,//自动释放数据务,如果存在事务,在事务结束后释放
InitKeyType = InitKeyType.Attribute, //从实体特性中读取主键自增列信息
AopEvents = new AopEvents
{
OnLogExecuting = (sql, pars) =>
{
Parallel.For(0, 1, e =>
{
string SqlLog = "";
foreach (string item in new string[] { GetParas(pars), "【SQL语句】" + sql })
{
SqlLog = SqlLog + item;
}
Console.WriteLine("SqlLog:" + SqlLog);
});
}
}
});
private static string GetParas(SugarParameter[] pars)
{
string key = "【SQL参数】";
foreach (var param in pars)
{
key += $"{param.ParameterName}:{param.Value}\n";
}
return key;
}
/// <summary>
/// 抽取ML物料生产数据每隔两小时执行一次
/// </summary>
public static async void ExtractML()
{
try
{
List<V_MESMLPlan> info = db.Queryable<V_MESMLPlan>().Where(x => x.Equip_name.Contains("ML") && x.Real_weight > 0
&& DateTime.Parse(x.Real_StartTime) >= DateTime.Now.AddHours(-4)
&& DateTime.Parse(x.Real_StartTime) < DateTime.Now.AddHours(-2)).ToList();
info.ForEach(x =>
{
Console.WriteLine(x.Mater_Name);
Mapper.Initialize(cret => cret.CreateMap<V_MESMLPlan, Record_MLMaterWeight>());
Record_MLMaterWeight record_MLMaterWeight = Mapper.Map<Record_MLMaterWeight>(x);
record_MLMaterWeight.RecordTime = DateTime.Now;
db.Insertable<Record_MLMaterWeight>(record_MLMaterWeight).ExecuteReturnIdentity();
});
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
/// <summary>
/// 密炼班次产量统计
/// </summary>
public static async void MLForeTeam()
{
try
{
string productionDate = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd");
//早班
DateTime foreBeginTime = DateTime.Parse(productionDate + " 10:00:00");
DateTime foreEndTime = DateTime.Parse(productionDate+" 22:00:00");
List<V_MESMLPlan> foreList = db.Queryable<V_MESMLPlan>().Where(x => x.Equip_name.Contains("ML") && x.Real_weight > 0
&& DateTime.Parse(x.Real_StartTime) >= foreBeginTime
&& DateTime.Parse(x.Real_StartTime) < foreEndTime).ToList();
var foreResult = foreList.GroupBy(g => g.Equip_name).Select(x => new
{
Equip_name = x.Key,
Real_Weight = x.Sum(y => y.Real_weight)
}).OrderBy(x => x.Equip_name).ToList();
List<Record_MesMachineOutPut> info = new List<Record_MesMachineOutPut>();
foreach(var x in foreResult)
{
info = db.Queryable<Record_MesMachineOutPut>().Where(y => y.machineId == x.Equip_name
&& y.productionDate == productionDate
&& y.classOrder == "早").ToList();
if (info.Count > 0)
{
foreach (Record_MesMachineOutPut item in info)
{
item.beginTime = foreBeginTime;
item.endTime = foreEndTime;
item.classTeam = "早班";
item.standWeight = x.Real_Weight;
item.recordTime = DateTime.Now;
db.Updateable(info).ExecuteCommand();
}
}
else
{
Record_MesMachineOutPut mesMachineOutPut = new Record_MesMachineOutPut();
mesMachineOutPut.machineId = x.Equip_name;
mesMachineOutPut.beginTime = foreBeginTime;
mesMachineOutPut.endTime = foreEndTime;
mesMachineOutPut.classOrder = "早";
mesMachineOutPut.classTeam = "早班";
mesMachineOutPut.unit = "车";
mesMachineOutPut.standWeight = x.Real_Weight;
mesMachineOutPut.recordTime = DateTime.Now;
mesMachineOutPut.productionDate = productionDate;
db.Insertable(mesMachineOutPut).ExecuteReturnIdentity();
}
}
}
catch(Exception ex)
{
LogHelper.Error("密炼班次产量统计错误:"+ex.Message);
}
}
/// <summary>
/// 密炼班次产量统计
/// </summary>
public static async void MLNightTeam()
{
try
{
string productionDate = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd");
//晚班
DateTime nightBeginTime = DateTime.Parse(productionDate + " 22:00:00");
DateTime nightEndTime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd") + " 10:00:00");
List<V_MESMLPlan> foreList = db.Queryable<V_MESMLPlan>().Where(x => x.Equip_name.Contains("ML") && x.Real_weight > 0
&& DateTime.Parse(x.Real_StartTime) >= nightBeginTime
&& DateTime.Parse(x.Real_StartTime) < nightEndTime).ToList();
var foreResult = foreList.GroupBy(g => g.Equip_name).Select(x => new
{
Equip_name = x.Key,
Real_Weight = x.Sum(y => y.Real_weight)
}).OrderBy(x => x.Equip_name).ToList();
List<Record_MesMachineOutPut> info = new List<Record_MesMachineOutPut>();
foreach (var x in foreResult)
{
info = db.Queryable<Record_MesMachineOutPut>().Where(y => y.machineId == x.Equip_name
&& y.productionDate == productionDate
&& y.classOrder == "晚").ToList();
if (info.Count > 0)
{
foreach (Record_MesMachineOutPut item in info)
{
item.beginTime = nightBeginTime;
item.endTime = nightEndTime;
item.classTeam = "晚班";
item.standWeight = x.Real_Weight;
item.recordTime = DateTime.Now;
db.Updateable(info).ExecuteCommand();
}
}
else
{
Record_MesMachineOutPut mesMachineOutPut = new Record_MesMachineOutPut();
mesMachineOutPut.machineId = x.Equip_name;
mesMachineOutPut.beginTime = nightBeginTime;
mesMachineOutPut.endTime = nightEndTime;
mesMachineOutPut.classOrder = "晚";
mesMachineOutPut.classTeam = "晚班";
mesMachineOutPut.unit = "车";
mesMachineOutPut.standWeight = x.Real_Weight;
mesMachineOutPut.recordTime = DateTime.Now;
mesMachineOutPut.productionDate = productionDate;
db.Insertable(mesMachineOutPut).ExecuteReturnIdentity();
}
}
}
catch (Exception ex)
{
LogHelper.Error("密炼班次产量统计错误:" + ex.Message);
}
}
}
}

@ -0,0 +1,38 @@

namespace MESDataExtractQuartz
{
partial class Service1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
this.ServiceName = "Service1";
}
#endregion
}
}

@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace MESDataExtractQuartz
{
public partial class Service1 : ServiceBase
{
public readonly Trigger Trigger;
public Service1()
{
InitializeComponent();
Trigger = new Trigger();
}
protected override void OnStart(string[] args)
{
Trigger.Run();
}
protected override void OnStop()
{
Trigger.Stop();
}
}
}

@ -0,0 +1,105 @@
using MESDataExtractQuartz.Job;
using Quartz;
using Quartz.Impl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MESDataExtractQuartz
{
public class Trigger
{
//调度器
private readonly IScheduler _scheduler;
public Trigger()
{
_scheduler = new StdSchedulerFactory().GetScheduler().Result;
}
public virtual void Run()
{
try
{
// define the job and tie it to our Job class
var firstJob = JobBuilder.Create<ExtractMLJob>()
.WithIdentity("MESTestJob", "MESTestJobGroup")
.Build();
var firstTrigger = TriggerBuilder.Create()
.WithIdentity("Trigger", "DataMonitorGroup")
.StartNow()
.WithCronSchedule("0 0 0/2 * * ?") //每两小时执行一次0 0 0/2 * * ?
.Build();
var secondJob = JobBuilder.Create<SumMLTeamJob>()
.WithIdentity("SumMLTeamJob", "SumMLTeamJobGroup")
.Build();
var secondTrigger = TriggerBuilder.Create()
.WithIdentity("ReportYearTrigger", "DataMonitorGroup")
.StartNow()
.WithCronSchedule("0 35 10 * * ?") //0 0 11 * * ?
.Build();
// Tell quartz to schedule the job using our trigger
_scheduler.ScheduleJob(firstJob, firstTrigger);
_scheduler.ScheduleJob(secondJob, secondTrigger);
// Start up the scheduler (nothing can actually run until the scheduler has been started)
_scheduler.Start();
}
catch (Exception ex)
{
LogHelper.Error("任务调度启动失败:" + ex.Message);
}
}
public virtual void Stop()
{
try
{
if (_scheduler != null)
{
_scheduler.Shutdown(true);
}
LogHelper.Info("任务计划停止成功!");
}
catch (Exception e)
{
LogHelper.Error("停止任务计划调度失败", e);
throw;
}
}
public virtual void Continue()
{
try
{
_scheduler.ResumeAll();
LogHelper.Info("任务计划继续成功!");
}
catch (Exception e)
{
LogHelper.Error("继续任务计划调度失败", e);
throw;
}
}
public virtual void Pause()
{
try
{
_scheduler.PauseAll();
LogHelper.Info("任务计划暂停成功!");
}
catch (Exception e)
{
LogHelper.Error("暂停任务计划调度失败", e);
throw;
}
}
}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="System.Configuration.IgnoreSectionHandler"/>
</configSections>
<appSettings>
</appSettings>
<log4net>
<!--错误日志类-->
<logger name="logerror">
<!--日志类的名字-->
<level value="ALL" />
<!--定义记录的日志级别-->
<appender-ref ref="ErrorAppender" />
<!--记录到哪个介质中去-->
</logger>
<!--信息日志类-->
<logger name="loginfo">
<level value="ALL" />
<appender-ref ref="InfoAppender" />
</logger>
<!--错误日志附加介质-->
<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
<!-- name属性指定其名称,type则是log4net.Appender命名空间的一个类的名称,意思是,指定使用哪种介质-->
<param name="File" value="Log\\LogError\\" />
<!--日志输出到exe程序这个相对目录下-->
<param name="AppendToFile" value="true" />
<!--输出的日志不会覆盖以前的信息-->
<param name="MaxSizeRollBackups" value="100" />
<!--备份文件的个数-->
<param name="MaxFileSize" value="10240" />
<!--当个日志文件的最大大小-->
<param name="StaticLogFileName" value="false" />
<!--是否使用静态文件名-->
<param name="DatePattern" value="yyyyMMdd&quot;.htm&quot;" />
<!--日志文件名-->
<param name="RollingStyle" value="Date" />
<!--文件创建的方式这里是以Date方式创建-->
<!--错误日志布局-->
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="&lt;HR COLOR=red&gt;%n异常时间%d [%t] &lt;BR&gt;%n异常级别%-5p &lt;BR&gt;%n异 常 类:%c [%x] &lt;BR&gt;%n%m &lt;BR&gt;%n &lt;HR Size=1&gt;" />
</layout>
</appender>
<!--信息日志附加介质-->
<appender name="InfoAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogInfo\\" />
<param name="AppendToFile" value="true" />
<param name="MaxFileSize" value="10240" />
<param name="MaxSizeRollBackups" value="100" />
<param name="StaticLogFileName" value="false" />
<param name="DatePattern" value="yyyyMMdd&quot;.htm&quot;" />
<param name="RollingStyle" value="Date" />
<!--信息日志布局-->
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="&lt;HR COLOR=blue&gt;%n日志时间%d [%t] &lt;BR&gt;%n日志级别%-5p &lt;BR&gt;%n日 志 类:%c [%x] &lt;BR&gt;%n%m &lt;BR&gt;%n &lt;HR Size=1&gt;" />
</layout>
</appender>
</log4net>
</configuration>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,2 @@
net stop MESDataExtractQuartz
pause

@ -0,0 +1,3 @@
net stop MESDataExtractQuartz
sc delete MESDataExtractQuartz binPath="%~dp0MESDataExtractQuartz.exe" start =auto
pause

@ -0,0 +1,2 @@
net start MESDataExtractQuartz
pause

@ -0,0 +1,3 @@
sc create MESDataExtractQuartz binPath= "%~dp0MESDataExtractQuartz.exe" start= auto
net start MESDataExtractQuartz
pause

@ -0,0 +1,3 @@
net stop MESDataExtractQuartz
net start MESDataExtractQuartz
pause

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="System.Configuration.IgnoreSectionHandler"/>
</configSections>
<appSettings>
</appSettings>
<log4net>
<!--错误日志类-->
<logger name="logerror">
<!--日志类的名字-->
<level value="ALL" />
<!--定义记录的日志级别-->
<appender-ref ref="ErrorAppender" />
<!--记录到哪个介质中去-->
</logger>
<!--信息日志类-->
<logger name="loginfo">
<level value="ALL" />
<appender-ref ref="InfoAppender" />
</logger>
<!--错误日志附加介质-->
<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
<!-- name属性指定其名称,type则是log4net.Appender命名空间的一个类的名称,意思是,指定使用哪种介质-->
<param name="File" value="Log\\LogError\\" />
<!--日志输出到exe程序这个相对目录下-->
<param name="AppendToFile" value="true" />
<!--输出的日志不会覆盖以前的信息-->
<param name="MaxSizeRollBackups" value="100" />
<!--备份文件的个数-->
<param name="MaxFileSize" value="10240" />
<!--当个日志文件的最大大小-->
<param name="StaticLogFileName" value="false" />
<!--是否使用静态文件名-->
<param name="DatePattern" value="yyyyMMdd&quot;.htm&quot;" />
<!--日志文件名-->
<param name="RollingStyle" value="Date" />
<!--文件创建的方式这里是以Date方式创建-->
<!--错误日志布局-->
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="&lt;HR COLOR=red&gt;%n异常时间%d [%t] &lt;BR&gt;%n异常级别%-5p &lt;BR&gt;%n异 常 类:%c [%x] &lt;BR&gt;%n%m &lt;BR&gt;%n &lt;HR Size=1&gt;" />
</layout>
</appender>
<!--信息日志附加介质-->
<appender name="InfoAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogInfo\\" />
<param name="AppendToFile" value="true" />
<param name="MaxFileSize" value="10240" />
<param name="MaxSizeRollBackups" value="100" />
<param name="StaticLogFileName" value="false" />
<param name="DatePattern" value="yyyyMMdd&quot;.htm&quot;" />
<param name="RollingStyle" value="Date" />
<!--信息日志布局-->
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="&lt;HR COLOR=blue&gt;%n日志时间%d [%t] &lt;BR&gt;%n日志级别%-5p &lt;BR&gt;%n日 志 类:%c [%x] &lt;BR&gt;%n%m &lt;BR&gt;%n &lt;HR Size=1&gt;" />
</layout>
</appender>
</log4net>
</configuration>

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5.2", FrameworkDisplayName = ".NET Framework 4.5.2")]

@ -0,0 +1,44 @@
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\log4net.config
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\MESDataExtractQuartz.exe.config
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\MESDataExtractQuartz.exe
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\MESDataExtractQuartz.pdb
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\AutoMapper.dll
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\log4net.dll
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\MESDataExtractQuartz.Model.dll
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\Quartz.dll
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\SqlSugar.dll
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\Newtonsoft.Json.dll
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\MESDataExtractQuartz.Model.pdb
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\AutoMapper.xml
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\log4net.xml
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\Quartz.pdb
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\Quartz.xml
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.csprojAssemblyReference.cache
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.ProjectInstaller.resources
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.csproj.GenerateResource.cache
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.csproj.CoreCompileInputs.cache
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.csproj.CopyComplete
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.exe
E:\桌面\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.pdb
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\log4net.config
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\MESDataExtractQuartz.exe.config
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\MESDataExtractQuartz.exe
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\MESDataExtractQuartz.pdb
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\AutoMapper.dll
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\log4net.dll
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\MESDataExtractQuartz.Model.dll
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\Quartz.dll
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\SqlSugar.dll
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\Newtonsoft.Json.dll
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\MESDataExtractQuartz.Model.pdb
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\AutoMapper.xml
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\log4net.xml
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\Quartz.pdb
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\bin\Debug\Quartz.xml
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.csprojAssemblyReference.cache
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.ProjectInstaller.resources
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.csproj.GenerateResource.cache
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.csproj.CoreCompileInputs.cache
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.csproj.CopyComplete
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.exe
E:\项目源码\新昆能源管理项目\MES数据抽取服务\MESDataExtractQuartz\MESDataExtractQuartz\MESDataExtractQuartz\obj\Debug\MESDataExtractQuartz.pdb

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="AutoMapper" version="5.0.2" targetFramework="net452" />
<package id="log4net" version="2.0.12" targetFramework="net452" />
<package id="Quartz" version="3.0.0" targetFramework="net452" />
<package id="SqlSugar" version="5.0.2.9" targetFramework="net452" />
</packages>

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save