Browse Source

更新控件集合

master
fyf 1 year ago
parent
commit
174b33efa0
11 changed files with 69 additions and 124 deletions
  1. +0
    -4
      BPASmartClient.SCADAControl/BPASmartClient.SCADAControl.csproj
  2. +1
    -12
      BPASmartClient.SCADAControl/CustomerControls/SwitchButton.cs
  3. +1
    -16
      BPASmartClient.SCADAControl/CustomerControls/TheAPI.xaml.cs
  4. +1
    -13
      BPASmartClient.SCADAControl/CustomerControls/TheCheckBox.xaml.cs
  5. +0
    -12
      BPASmartClient.SCADAControl/CustomerControls/TheDataGrid.xaml.cs
  6. +0
    -11
      BPASmartClient.SCADAControl/CustomerControls/TheListBox.xaml.cs
  7. +1
    -13
      BPASmartClient.SCADAControl/CustomerControls/TheMQTT.xaml.cs
  8. +1
    -12
      BPASmartClient.SCADAControl/CustomerControls/TheRedis.xaml.cs
  9. +1
    -14
      BPASmartClient.SCADAControl/CustomerControls/TheTextBox.cs
  10. +1
    -16
      BPASmartClient.SCADAControl/CustomerControls/TheToggleButton.xaml.cs
  11. +62
    -1
      BPASmartClient.SCADAControl/EnumClass/DataTypeEnum.cs

+ 0
- 4
BPASmartClient.SCADAControl/BPASmartClient.SCADAControl.csproj View File

@@ -90,10 +90,6 @@
<PackageReference Include="StackExchange.Redis" Version="2.6.66" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\BPASmart.Model\BPASmart.Model.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="Antlr3.Runtime">
<HintPath>..\BPASmartClient.Compiler\DLL\Antlr3.Runtime.dll</HintPath>


+ 1
- 12
BPASmartClient.SCADAControl/CustomerControls/SwitchButton.cs View File

@@ -1,25 +1,14 @@
using BPASmart.Model;
using BPASmartClient.Compiler;
using BPASmartClient.Compiler;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace BPASmartClient.SCADAControl.CustomerControls
{


+ 1
- 16
BPASmartClient.SCADAControl/CustomerControls/TheAPI.xaml.cs View File

@@ -1,27 +1,12 @@
using BPASmart.Model;
using BPASmartClient.Compiler;

using BPASmartClient.SCADAControl;
using BPASmartClient.SCADAControl.EnumClass;
using BPASmartClient.Compiler;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using StackExchange.Redis;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;




+ 1
- 13
BPASmartClient.SCADAControl/CustomerControls/TheCheckBox.xaml.cs View File

@@ -1,23 +1,11 @@
using BPASmart.Model;
using BPASmartClient.Compiler;

using BPASmartClient.SCADAControl;
using BPASmartClient.Compiler;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace BPASmartClient.SCADAControl.CustomerControls
{


+ 0
- 12
BPASmartClient.SCADAControl/CustomerControls/TheDataGrid.xaml.cs View File

@@ -1,7 +1,4 @@
using BPASmartClient.Compiler;

using BPASmartClient.SCADAControl.Converters;
using BPASmartClient.SCADAControl.EnumClass;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
@@ -9,17 +6,8 @@ using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace BPASmartClient.SCADAControl.CustomerControls


+ 0
- 11
BPASmartClient.SCADAControl/CustomerControls/TheListBox.xaml.cs View File

@@ -1,25 +1,14 @@
using BPASmartClient.Compiler;

using BPASmartClient.SCADAControl.Converters;
using BPASmartClient.SCADAControl.EnumClass;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;
using System.Xml;



+ 1
- 13
BPASmartClient.SCADAControl/CustomerControls/TheMQTT.xaml.cs View File

@@ -1,24 +1,12 @@
using BPASmart.Model;
using BPASmartClient.Compiler;

using BPASmartClient.SCADAControl;
using BPASmartClient.Compiler;
using Newtonsoft.Json;
using StackExchange.Redis;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace BPASmartClient.SCADAControl.CustomerControls


+ 1
- 12
BPASmartClient.SCADAControl/CustomerControls/TheRedis.xaml.cs View File

@@ -1,24 +1,13 @@
using BPASmart.Model;
using BPASmartClient.Compiler;

using BPASmartClient.SCADAControl;
using BPASmartClient.Compiler;
using Newtonsoft.Json;
using StackExchange.Redis;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace BPASmartClient.SCADAControl.CustomerControls


+ 1
- 14
BPASmartClient.SCADAControl/CustomerControls/TheTextBox.cs View File

@@ -1,25 +1,12 @@
using BPASmart.Model;
using BPASmartClient.Compiler;

using BPASmartClient.SCADAControl;
using BPASmartClient.Compiler;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace BPASmartClient.SCADAControl.CustomerControls
{


+ 1
- 16
BPASmartClient.SCADAControl/CustomerControls/TheToggleButton.xaml.cs View File

@@ -1,26 +1,11 @@
using BPASmart.Model;
using BPASmartClient.Compiler;

using BPASmartClient.SCADAControl;
using BPASmartClient.Compiler;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace BPASmartClient.SCADAControl.CustomerControls
{


+ 62
- 1
BPASmartClient.SCADAControl/EnumClass/DataTypeEnum.cs View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPASmartClient.SCADAControl.EnumClass
namespace BPASmartClient.SCADAControl
{
/// <summary>
/// 数据来源类型
@@ -46,4 +46,65 @@ namespace BPASmartClient.SCADAControl.EnumClass
GET,
PUT
}

/// <summary>
/// 数据类型枚举
/// </summary>
public enum EDataType
{
Bool = 1,
Byte = 2,
Int = 3,
Word = 4,
Dint = 5,
Dword = 6,
Float = 7,
Double = 8,
String = 9,
}

public class ReeisDataModel
{
public string VarName { get; set; }
public string VarVaule { get; set; }
public EDataType DataType { get; set; }
}

public class PublishModel
{
/// <summary>
/// 设备名称
/// </summary>
public string DeviceName { get; set; } = string.Empty;

/// <summary>
/// 变量实际地址
/// </summary>
public string RealAddress { get; set; } = string.Empty;

/// <summary>
/// 变量名称
/// </summary>
public string VarName { get; set; } = string.Empty;

/// <summary>
/// 变量长度
/// </summary>
public int Length { get; set; } = 1;

/// <summary>
/// 变量当前值
/// </summary>
public string Value { get; set; } = string.Empty;

/// <summary>
/// 变量数据类型
/// </summary>
public EDataType DataType { get; set; }

}
public class PublishInfo
{
public List<PublishModel> PublishModels { get; set; } = new List<PublishModel>();
}
}

Loading…
Cancel
Save