12 Star 28 Fork 28

hehuolong / OPCReport

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
README.md 3.88 KB
Copy Edit Raw Blame History
hehuolong authored 2024-04-26 11:30 . update README.md.

系统架构

系统架构 逻辑架构

系统部署

  • 环境准备
    1. sql server2008 及以上版本
    2. net4.6.2 及以上版本

注:如果需要使用源码二次开发,需要安装devexpress winform界面组件

  • 数据库部署

    1. 在sqlserver管理工具中执行"report.sql"创建数据库和数据表
    2. 在sqlserver管理工具中执行"初始化.sql"创建初始化数据
  • 数据采集服务部署

    1. 在OUK.ReportDataMonitor.exe 目录下打开cmd,执行以下命令安装成windows服务
     OUK.ReportDataMonitor.exe install
    1. 配置数据库连接 编辑OUK.ReportDataMonitor.exe.config,修改数据库连串
     	 <add name="OUKReportContext" connectionString="Data Source=.\sqlexpress;Initial Catalog=OUKReport;Integrated Security=True;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
     	 ```
     	 
     1. 配置OPC服务器地址
    ```
    1. 配置数据采集地址前缀
     <add key="DeviceAccessPrefix" value="ns=2;s=ArchestrA.FSGateway.2_Intouch_"/>
    1. 在windows服务管理列表中启动数据采集服务OUKReportDataMonitor 或者使用命令OUKReportDataMonitor.exe start 启动服务
  • 报表查询程序部署

    1. 配置数据库连接 编辑OUK.ReportHost.exe.config,修改数据库连串
     <add name="OUKReportContext" connectionString="Data Source=.\sqlexpress;Initial Catalog=OUKReport;Integrated Security=True;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
     	 ```
     1. 运行`OUK.ReportHost.exe` 启动报表程序
    

系统使用规范

1. 组织架构的`系统键`必须与OPC设备路径对应
1. 设备名称必须与OPC设备路径对应
```
    例如:
    采集路径为:ArchestrA.FSGateway.2_Intouch_DSY_S3_P11\Meas\Ia
    则在组织架构中需要对应一个一级组织的系统键位DSY,二级组织为S3,设备名称为P11
```

系统截图

OPC数据采集服务

登录 设备管理

采集服务管理 OPC助手 用户管理 系统设置

电表参数记录 电量抄表记录 电量统计表 电量统计图 峰谷平统计表 同环比统计 打印预览

C#
1
https://gitee.com/hehuolong_admin/OPCReport.git
git@gitee.com:hehuolong_admin/OPCReport.git
hehuolong_admin
OPCReport
OPCReport
master

Search