# OPCReport
**Repository Path**: zhangsanDev/OPCReport
## Basic Information
- **Project Name**: OPCReport
- **Description**: 基于OPC数据采集的报表项目
- **Primary Language**: C#
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 31
- **Created**: 2021-11-24
- **Last Updated**: 2021-11-24
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 系统架构


# 系统部署
* 环境准备
1. sql server2008 及以上版本
1. net4.6.2 及以上版本
* 数据库部署
1. 在sqlserver管理工具中执行"report.sql"创建数据库和数据表
1. 在sqlserver管理工具中执行"初始化.sql"创建初始化数据
* 数据采集服务部署
1. 在OUK.ReportDataMonitor.exe 目录下打开cmd,执行以下命令安装成windows服务
```
OUK.ReportDataMonitor.exe install
```
1. 配置数据库连接
编辑```OUK.ReportDataMonitor.exe.config```,修改数据库连串
```
```
1. 配置OPC服务器地址
```
```
1. 配置数据采集地址前缀
```
```
1. 在windows服务管理列表中启动数据采集服务`OUKReportDataMonitor` 或者使用命令`OUKReportDataMonitor.exe start` 启动服务
* 报表查询程序部署
1. 配置数据库连接
编辑```OUK.ReportHost.exe.config```,修改数据库连串
```
```
1. 运行`OUK.ReportHost.exe` 启动报表程序
# 系统使用规范
1. 组织架构的`系统键`必须与OPC设备路径对应
1. 设备名称必须与OPC设备路径对应
```
例如:
采集路径为:ArchestrA.FSGateway.2_Intouch_DSY_S3_P11\Meas\Ia
则在组织架构中需要对应一个一级组织的系统键位DSY,二级组织为S3,设备名称为P11
```
# 系统截图













