2023-05-04
This commit is contained in:
parent
bd928dabfe
commit
2f823b54b2
|
@ -773,6 +773,8 @@
|
|||
<Compile Include="TestRun\ProduceTestRun\TestRunRecordService.cs" />
|
||||
<Compile Include="TestRun\ProduceTestRun\TestRunReportService.cs" />
|
||||
<Compile Include="TestRun\TestRunService.cs" />
|
||||
<Compile Include="WebService\CNCECHSSEGetWebService.cs" />
|
||||
<Compile Include="WebService\CNCECHSSEMonitorService.cs" />
|
||||
<Compile Include="WebService\CNCECHSSEWebService.cs" />
|
||||
<Compile Include="ZHGL\DataStatistics\DataStatisticsService.cs" />
|
||||
<Compile Include="ZHGL\DataSync\CQMSDataService.cs" />
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,62 @@
|
|||
using System.Linq;
|
||||
using System.Timers;
|
||||
using System.Configuration;
|
||||
using System;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class CNCECHSSEMonitorService
|
||||
{
|
||||
#region 启动监视器 系统启动5分钟
|
||||
/// <summary>
|
||||
/// 监视组件
|
||||
/// </summary>
|
||||
private static Timer messageTimer;
|
||||
|
||||
/// <summary>
|
||||
/// 启动监视器,不一定能成功,根据系统设置决定对监视器执行的操作 系统启动5分钟
|
||||
/// </summary>
|
||||
public static void StartMonitor()
|
||||
{
|
||||
int adTimeJ = 120;
|
||||
if (messageTimer != null)
|
||||
{
|
||||
messageTimer.Stop();
|
||||
messageTimer.Dispose();
|
||||
messageTimer = null;
|
||||
}
|
||||
if (adTimeJ > 0)
|
||||
{
|
||||
messageTimer = new Timer
|
||||
{
|
||||
AutoReset = true
|
||||
};
|
||||
messageTimer.Elapsed += new ElapsedEventHandler(AdUserInProcess);
|
||||
messageTimer.Interval = 1000 * 60 * adTimeJ;// 60000 * adTimeJ;
|
||||
messageTimer.Start();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 流程确认 定时执行 系统启动5分钟
|
||||
/// </summary>
|
||||
/// <param name="sender">Timer组件</param>
|
||||
/// <param name="e">事件参数</param>
|
||||
private static void AdUserInProcess(object sender, ElapsedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
CNCECHSSEGetWebService.getSupervise_SubUnitReport();
|
||||
CNCECHSSEGetWebService.getCheck_CheckInfo_Table8Item();
|
||||
CNCECHSSEGetWebService.getCheck_CheckRectify();
|
||||
CNCECHSSEGetWebService.getInformation_UrgeReport();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
StartMonitor();
|
||||
ErrLogInfo.WriteLog(ex, "数据接口定时器", "RealNameMonitorService.AdUserInProcess");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -1153,7 +1153,6 @@
|
|||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 安全管理工作总结报告
|
||||
/// <summary>
|
||||
/// 安全管理工作总结报告
|
||||
|
@ -6790,6 +6789,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -117,7 +117,15 @@
|
|||
<!-- SERVER -->
|
||||
<system.serviceModel>
|
||||
<client>
|
||||
<endpoint address="http://172.25.0.43/services/OfsTodoDataWebService" binding="basicHttpBinding" bindingConfiguration="OfsTodoDataWebServiceHttpBinding" contract="OAWebService.OfsTodoDataWebServicePortType" name="OfsTodoDataWebServiceHttpPort"/>
|
||||
<endpoint address="http://172.25.0.43/services/OfsTodoDataWebService"
|
||||
binding="basicHttpBinding" bindingConfiguration="OfsTodoDataWebServiceHttpBinding"
|
||||
contract="OAWebService.OfsTodoDataWebServicePortType" name="OfsTodoDataWebServiceHttpPort" />
|
||||
<endpoint address="http://114.247.88.97:20080/QHSE/HSSEService.svc"
|
||||
binding="wsHttpBinding" bindingConfiguration="HSSEServiceEndpoint"
|
||||
contract="BLL.CNCECHSSEService.HSSEService" name="HSSEServiceEndpoint" />
|
||||
<endpoint address="http://114.247.88.97:20080/QHSE/HSSEService.svc"
|
||||
binding="wsHttpBinding" bindingConfiguration="HSSEServiceEndpoint1"
|
||||
contract="ServiceReference1.HSSEService" name="HSSEServiceEndpoint1" />
|
||||
</client>
|
||||
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
|
||||
<services>
|
||||
|
@ -140,8 +148,20 @@
|
|||
<binding name="OfsTodoDataWebServiceHttpBinding" />
|
||||
</basicHttpBinding>
|
||||
<wsHttpBinding>
|
||||
<binding name="BLL.HSSEServiceBinding" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="5242880000" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
|
||||
<readerQuotas maxDepth="32" maxStringContentLength="8192000" maxArrayLength="16384000" maxBytesPerRead="4096000" maxNameTableCharCount="16384000"/>
|
||||
<binding name="BLL.HSSEServiceBinding" closeTimeout="00:05:00"
|
||||
openTimeout="00:05:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
|
||||
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
|
||||
maxBufferPoolSize="5242880000" maxReceivedMessageSize="2147483647"
|
||||
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
|
||||
allowCookies="false">
|
||||
<readerQuotas maxDepth="32" maxStringContentLength="8192000"
|
||||
maxArrayLength="16384000" maxBytesPerRead="4096000" maxNameTableCharCount="16384000" />
|
||||
<security mode="None" />
|
||||
</binding>
|
||||
<binding name="HSSEServiceEndpoint">
|
||||
<security mode="None" />
|
||||
</binding>
|
||||
<binding name="HSSEServiceEndpoint1">
|
||||
<security mode="None" />
|
||||
</binding>
|
||||
</wsHttpBinding>
|
||||
|
|
|
@ -39,7 +39,9 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
|
||||
<f:Button ID="btnGet" Text="获取" ToolTip="从集团获取安全监督检查整改" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" Text="导出" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
</Items>
|
||||
|
|
|
@ -360,5 +360,24 @@ namespace FineUIPro.Web.ZHGL.ServerCheck
|
|||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 从集团获取
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnGet_Click(object sender, EventArgs e)
|
||||
{
|
||||
var returnValue = CNCECHSSEGetWebService.getCheck_CheckRectify();
|
||||
if (returnValue.code == 1)
|
||||
{
|
||||
ShowNotify(returnValue.message, MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop(returnValue.message, MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,10 +7,12 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.ServerCheck {
|
||||
namespace FineUIPro.Web.ZHGL.ServerCheck
|
||||
{
|
||||
|
||||
|
||||
public partial class CheckRectify {
|
||||
public partial class CheckRectify
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
|
@ -57,6 +59,15 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// btnGet 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnGet;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue