GetPLC_Data/GetData_PLC/strSQL.cs
2025-11-08 08:17:36 +08:00

31 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GetData_PLC
{
public class SQL_Strings
{
public static readonly string strSQLZhan = "select * from SYS_ORGANISE where STATE='启用' and PLC='1'";
//public static readonly string strSQLZhan = "select DWMC,DWID,ZCMC,ID,ISZDJL,IP,PORT,READTIMESPAN,NETTYPE,SBTYPE,xh,zcbh,TBTime from 集输站场 where iszdjl='1' order by DWID";
public static readonly string strSQLJld = "select * from RV2_BASEINFO where STATION_NAME= '";
//public static readonly string strSQLJld = "select GLDW,ZCHBZ,AZDD,计量点标识,ISPLC,JLD_ID,JLDNAME,MeterType,ZCID from 安装地点基础资料 where isplc='1'";
public static readonly string strSQLScConfig = "select * from RV2_TRANS_CONFIG";
//public static readonly string strSQLScConfig = "select ID,SCNAME,DEPT_ID,STATION_ID,SCTYPE,STATION_NAME,DEPT_NAME,IN_JLD_ID,OUT_JLD_ID,RE_DEPT_ID from 输差名称";
public static readonly string strSQLSC_Zhan_Distinct = "select DISTINCT STATION_ID from 输差名称 where SCTYPE=''";
public static readonly string strSQLSC_Xian_DIStinct = "select DISTINCT dept_id from 输差名称";
public static readonly string strReadParFlag = "select * from RV2_BASEINFO where plc='1'";
public static readonly string strSaveParFlag = "select ZCID,计量点标识,ISPLC,JLD_ID,JLDNAME,MeterType,readparflag,xh from 安装地点基础资料 where isplc='1'";
public static readonly string strSQL_Read_Today_YesterDay_Flow = "select * from PGFLOW_TOTAL";
}
}