2023-05-04

This commit is contained in:
李超 2023-05-04 17:51:13 +08:00
parent bd928dabfe
commit 2f823b54b2
9 changed files with 1827 additions and 30 deletions

View File

@ -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" />

View File

@ -90,7 +90,7 @@ namespace BLL
}
}
public static List<string> GetSystemPowerList(string userId, string projectId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))

File diff suppressed because it is too large Load Diff

View File

@ -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
}
}

View File

@ -1153,7 +1153,6 @@
}
#endregion
#region
/// <summary>
/// 安全管理工作总结报告
@ -6789,7 +6788,5 @@
}
}
}
}
}
}

View File

@ -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>
@ -137,12 +145,24 @@
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="OfsTodoDataWebServiceHttpBinding"/>
<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"/>
<security mode="None"/>
<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>
</bindings>

View File

@ -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>

View File

@ -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);
}
}
}
}

View File

@ -7,11 +7,13 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.ZHGL.ServerCheck {
public partial class CheckRectify {
namespace FineUIPro.Web.ZHGL.ServerCheck
{
public partial class CheckRectify
{
/// <summary>
/// form1 控件。
/// </summary>
@ -20,7 +22,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@ -29,7 +31,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
@ -38,7 +40,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
@ -47,7 +49,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
@ -56,7 +58,16 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// btnGet 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnGet;
/// <summary>
/// btnOut 控件。
/// </summary>
@ -65,7 +76,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// lblNumber 控件。
/// </summary>
@ -74,7 +85,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumber;
/// <summary>
/// lblUnit 控件。
/// </summary>
@ -83,7 +94,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblUnit;
/// <summary>
/// lblProjectId 控件。
/// </summary>
@ -92,7 +103,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblProjectId;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@ -101,7 +112,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@ -110,7 +121,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
@ -119,7 +130,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
@ -128,7 +139,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Menu1 控件。
/// </summary>
@ -137,7 +148,7 @@ namespace FineUIPro.Web.ZHGL.ServerCheck {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuEdit 控件。
/// </summary>