From 81c4b6f2f8317dc179f52c7d2868cb9af9b16bac Mon Sep 17 00:00:00 2001 From: czw <selecti@yeah.net> Date: 星期四, 19 六月 2025 10:20:17 +0800 Subject: [PATCH] 1 --- 2025年6月12日/AuxAllWCS/Build/Project/AuxAllWCS.csproj | 220 2025年6月12日/AuxAllWCS/Build/Project/代码/界面命令.cs | 76 2025年6月12日/AuxAllWCS/Build/Project/App.xaml.cs | 17 2025年6月12日/AuxAllWCS/Build/Project/代码/界面事件.cs | 2102 ++++++ 2025年6月12日/AuxAllWCS/Build/Project/代码/自定义结构.cs | 36 2025年6月12日/AuxAllWCS/Build/Project/代码/变量数据库.cs | 13473 +++++++++++++++++++++++++++++++++++++++++++ 2025年6月12日/AuxAllWCS/Build/Project/代码/VS自定义类/TcpServer.cs | 226 2025年6月12日/AuxAllWCS/Build/Project/App.config | 76 2025年6月12日/AuxAllWCS/Build/Project/App.xaml | 10 2025年6月12日/AuxAllWCS/Build/Project/代码/设备通信.cs | 653 ++ 2025年6月12日/AuxAllWCS/Build/Project/代码/自定义类.cs | 896 ++ 2025年6月12日/AuxAllWCS/Build/Project/界面/View1.xaml.cs | 55 2025年6月12日/AuxAllWCS/Build/Project/代码/ViewModel.cs | 686 ++ 2025年6月12日/AuxAllWCS/Build/Project/界面/View1.xaml | 5 2025年6月12日/AuxAllWCS/Build/Project/代码/集成互联.cs | 115 2025年6月12日/AuxAllWCS/Build/Project/Properties/AssemblyInfo.cs | 36 16 files changed, 18,682 insertions(+), 0 deletions(-) diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/App.config" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/App.config" new file mode 100644 index 0000000..d0bf2bb --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/App.config" @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <configSections> + <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework"/> + </configSections> + <connectionStrings> + <add name="NFineDbContext" + connectionString="Data Source=DESKTOP-DSS9VVU;Initial Catalog=OIDATABASE;User ID=sa;Password=aux!123;" + providerName="System.Data.SqlClient"/> + </connectionStrings> + <entityFramework> + <providers> + + <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/> + </providers> + </entityFramework> + <appSettings> + <!--鍚姩瀹炰緥鏁伴噺闄愬埗--> + <add key="InstanceLimit" value="1"/> + <!--鏄惁鑷姩鍚姩PLC(1鏄�0鍚�--> + <add key="AutoRunPlc" value="1"/> + <!--鏃ュ織鐩綍--> + <add key="LogDir" value="D:\WCS.LogDB"/> + <!--鏃ュ織鏂囦欢鍚�-> + <add key="LogFile" value="S7Log"/> + <!--鏃ュ織淇濆瓨鏈熼檺(澶�--> + <add key="LogDelDays" value="30"/> + <!--鏃ュ織鍒犻櫎绛夌骇--> + <add key="LogDelLevel" value="3"/> + <!--鏄惁寮�惎璋冭瘯鏃ュ織Debug(1鏄�0鍚�--> + <add key="LogDebug" value="1"/> + <!--鏄惁寮�惎閫氱煡鏃ュ織Info(1鏄�0鍚�--> + <add key="LogInfo" value="1"/> + <!--鏄惁寮�惎璀﹀憡鏃ュ織Warn(1鏄�0鍚�--> + <add key="LogWarn" value="1"/> + <!--鏄惁寮�惎閿欒鏃ュ織Error(1鏄�0鍚�--> + <add key="LogError" value="1"/> + <!--Redis鏈嶅姟鍦板潃--> + <add key="RedisServerSession" value="127.0.0.1:6379"/> + <!--Redis璇诲彇姹�-> + <add key="RedisMaxReadPool" value="1000"/> + <!--Redis鍐欏叆姹�-> + <add key="RedisMaxWritePool" value="1000"/> + <!--鏄惁鑷姩鍚姩PLC(1鏄�0鍚�--> + <add key="AutoRunPLC" value="1"/> + <!--Redis鏁版嵁搴�-> + <add key="RedisDefaultDb" value="DB0"/> + <!--sql鍘婚櫎char(n)鏈熬绌烘牸--> + <add key="sql_TrimEndSpace" value="true"/> + </appSettings> + <system.serviceModel> + <bindings> + <basicHttpBinding> + <binding maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" /> + </basicHttpBinding> + </bindings> + <client /> + <services> + <service name="MyServices"> + <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> + <host> + <baseAddresses> + </baseAddresses> + </host> + </service> + </services> + <behaviors> + <serviceBehaviors> + <behavior> + <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/> + <serviceDebug includeExceptionDetailInFaults="False" /> + </behavior> + </serviceBehaviors> + </behaviors> + </system.serviceModel> +</configuration> \ No newline at end of file diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/App.xaml" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/App.xaml" new file mode 100644 index 0000000..a51aaa4 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/App.xaml" @@ -0,0 +1,10 @@ + +<Application x:Class="GZ.Projects.AuxAllWCS.App" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="clr-namespace:GZ.Projects.AuxAllWCS" + StartupUri="鐣岄潰\View1.xaml"> + <Application.Resources> + + </Application.Resources> +</Application> \ No newline at end of file diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/App.xaml.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/App.xaml.cs" new file mode 100644 index 0000000..d336af8 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/App.xaml.cs" @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace GZ.Projects.AuxAllWCS +{ + /// <summary> + /// App.xaml 鐨勪氦浜掗�杈�+ /// </summary> + public partial class App : Application + { + } +} diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/AuxAllWCS.csproj" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/AuxAllWCS.csproj" new file mode 100644 index 0000000..114ccdc --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/AuxAllWCS.csproj" @@ -0,0 +1,220 @@ +锘�?xml version="1.0" encoding="utf-8" standalone="yes"?> +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0"> + <PropertyGroup> + <Platform Condition="'$(Configuration)' == ''">AnyCPU</Platform> + <OutputType>Exe</OutputType> + <RootNamespace>GZ.Projects.AuxAllWCS</RootNamespace> + <AssemblyName>AuxAllWCS</AssemblyName> + <TargetFrameworkVersion>4.6.1</TargetFrameworkVersion> + <ProjectGuid>{E1166F09-DED5-4E32-AB55-4DE61A402132}</ProjectGuid> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'"> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup> + <StartupObject /> + </PropertyGroup> + <ItemGroup> + <Reference Include="System"> + <HintPath>..\..\Dlls\System.dll</HintPath> + </Reference> + <Reference Include="System.Data"> + <HintPath>..\..\Dlls\System.Data.dll</HintPath> + </Reference> + <Reference Include="System.Xml"> + <HintPath>..\..\Dlls\System.Xml.dll</HintPath> + </Reference> + <Reference Include="Microsoft.CSharp"> + <HintPath>..\..\Dlls\Microsoft.CSharp.dll</HintPath> + </Reference> + <Reference Include="System.Core"> + <HintPath>..\..\Dlls\System.Core.dll</HintPath> + </Reference> + <Reference Include="System.Xml.Linq"> + <HintPath>..\..\Dlls\System.Xml.Linq.dll</HintPath> + </Reference> + <Reference Include="System.Data.DataSetExtensions"> + <HintPath>..\..\Dlls\System.Data.DataSetExtensions.dll</HintPath> + </Reference> + <Reference Include="System.Net.Http"> + <HintPath>..\..\Dlls\System.Net.Http.dll</HintPath> + </Reference> + <Reference Include="System.Xaml"> + <HintPath>..\..\Dlls\System.Xaml.dll</HintPath> + </Reference> + <Reference Include="WindowsBase"> + <HintPath>..\..\Dlls\WindowsBase.dll</HintPath> + </Reference> + <Reference Include="PresentationCore"> + <HintPath>..\..\Dlls\PresentationCore.dll</HintPath> + </Reference> + <Reference Include="PresentationFramework"> + <HintPath>..\..\Dlls\PresentationFramework.dll</HintPath> + </Reference> + <Reference Include="System.Windows.Forms"> + <HintPath>..\..\Dlls\System.Windows.Forms.dll</HintPath> + </Reference> + <Reference Include="Microsoft.Practices.Prism"> + <HintPath>..\..\Dlls\Microsoft.Practices.Prism.dll</HintPath> + </Reference> + <Reference Include="GZ.Modular.Redis"> + <HintPath>..\..\Dlls\GZ.Modular.Redis.dll</HintPath> + </Reference> + <Reference Include="ServiceStack.Common"> + <HintPath>..\..\Dlls\ServiceStack.Common.dll</HintPath> + </Reference> + <Reference Include="ServiceStack.Interfaces"> + <HintPath>..\..\Dlls\ServiceStack.Interfaces.dll</HintPath> + </Reference> + <Reference Include="ServiceStack.Redis"> + <HintPath>..\..\Dlls\ServiceStack.Redis.dll</HintPath> + </Reference> + <Reference Include="ServiceStack.Text"> + <HintPath>..\..\Dlls\ServiceStack.Text.dll</HintPath> + </Reference> + <Reference Include="Newtonsoft.Json"> + <HintPath>..\..\Dlls\Newtonsoft.Json.dll</HintPath> + </Reference> + <Reference Include="System.Configuration"> + <HintPath>..\..\Dlls\System.Configuration.dll</HintPath> + </Reference> + <Reference Include="System.Data.Linq"> + <HintPath>..\..\Dlls\System.Data.Linq.dll</HintPath> + </Reference> + <Reference Include="System.Numerics"> + <HintPath>..\..\Dlls\System.Numerics.dll</HintPath> + </Reference> + <Reference Include="System.Runtime.CompilerServices.Unsafe"> + <HintPath>..\..\Dlls\System.Runtime.CompilerServices.Unsafe.dll</HintPath> + </Reference> + <Reference Include="System.Runtime.Serialization"> + <HintPath>..\..\Dlls\System.Runtime.Serialization.dll</HintPath> + </Reference> + <Reference Include="System.ServiceModel"> + <HintPath>..\..\Dlls\System.ServiceModel.dll</HintPath> + </Reference> + <Reference Include="System.ServiceModel.Web"> + <HintPath>..\..\Dlls\System.ServiceModel.Web.dll</HintPath> + </Reference> + <Reference Include="System.Web"> + <HintPath>..\..\Dlls\System.Web.dll</HintPath> + </Reference> + <Reference Include="System.Buffers"> + <HintPath>..\..\Dlls\System.Buffers.dll</HintPath> + </Reference> + <Reference Include="System.Memory"> + <HintPath>..\..\Dlls\System.Memory.dll</HintPath> + </Reference> + <Reference Include="System.Numerics.Vectors"> + <HintPath>..\..\Dlls\System.Numerics.Vectors.dll</HintPath> + </Reference> + <Reference Include="GZ.Modular.Log"> + <HintPath>..\..\Dlls\GZ.Modular.Log.dll</HintPath> + </Reference> + <Reference Include="System.Data.SQLite"> + <HintPath>..\..\Dlls\System.Data.SQLite.dll</HintPath> + </Reference> + <Reference Include="log4net"> + <HintPath>..\..\Dlls\log4net.dll</HintPath> + </Reference> + <Reference Include="System.Transactions"> + <HintPath>..\..\Dlls\System.Transactions.dll</HintPath> + </Reference> + <Reference Include="GZ.Device.Agv"> + <HintPath>..\..\Dlls\GZ.Device.Agv.dll</HintPath> + </Reference> + <Reference Include="mscorlib"> + <HintPath>..\..\Dlls\mscorlib.dll</HintPath> + </Reference> + <Reference Include="GZ.DeviceInterface.Agv"> + <HintPath>..\..\Dlls\GZ.DeviceInterface.Agv.dll</HintPath> + </Reference> + <Reference Include="System.ServiceProcess"> + <HintPath>..\..\Dlls\System.ServiceProcess.dll</HintPath> + </Reference> + <Reference Include="System.Drawing"> + <HintPath>..\..\Dlls\System.Drawing.dll</HintPath> + </Reference> + <Reference Include="GZ.Device.PLC"> + <HintPath>..\..\Dlls\GZ.Device.PLC.dll</HintPath> + </Reference> + <Reference Include="NLog"> + <HintPath>..\..\Dlls\NLog.dll</HintPath> + </Reference> + <Reference Include="EntityFramework"> + <HintPath>..\..\Dlls\EntityFramework.dll</HintPath> + </Reference> + <Reference Include="GZ.Common.Data"> + <HintPath>..\..\Dlls\GZ.Common.Data.dll</HintPath> + </Reference> + <Reference Include="GZ.DB.App.OIDATABASE"> + <HintPath>..\..\Dlls\GZ.DB.App.OIDATABASE.dll</HintPath> + </Reference> + <Reference Include="GZ.DB.Entity.OIDATABASE"> + <HintPath>..\..\Dlls\GZ.DB.Entity.OIDATABASE.dll</HintPath> + </Reference> + <Reference Include="GZ.DB.IRepository.OIDATABASE"> + <HintPath>..\..\Dlls\GZ.DB.IRepository.OIDATABASE.dll</HintPath> + </Reference> + <Reference Include="GZ.DB.Map.OIDATABASE"> + <HintPath>..\..\Dlls\GZ.DB.Map.OIDATABASE.dll</HintPath> + </Reference> + <Reference Include="GZ.DB.Repository.OIDATABASE"> + <HintPath>..\..\Dlls\GZ.DB.Repository.OIDATABASE.dll</HintPath> + </Reference> + <Reference Include="EntityFramework.SqlServer"> + <HintPath>..\..\Dlls\EntityFramework.SqlServer.dll</HintPath> + </Reference> + <Reference Include="System.ComponentModel.DataAnnotations"> + <HintPath>..\..\Dlls\System.ComponentModel.DataAnnotations.dll</HintPath> + </Reference> + </ItemGroup> + <ItemGroup> + <ApplicationDefinition Include="App.xaml"> + <Generator>MSBuild:Compile</Generator> + <SubType>Designer</SubType> + </ApplicationDefinition> + <Compile Include="App.xaml.cs"> + <DependentUpon>App.xaml</DependentUpon> + <SubType>Code</SubType> + </Compile> + <Page Include="鐣岄潰\View1.xaml"> + <Generator>MSBuild:Compile</Generator> + <SubType>Designer</SubType> + </Page> + <Compile Include="鐣岄潰\View1.xaml.cs"> + <DependentUpon>View1.xaml</DependentUpon> + <SubType>Code</SubType> + </Compile> + <Compile Include="浠g爜\ViewModel.cs" /> + <Compile Include="浠g爜\鍙橀噺鏁版嵁搴�cs" /> + <Compile Include="浠g爜\闆嗘垚浜掕仈.cs" /> + <Compile Include="浠g爜\鐣岄潰鍛戒护.cs" /> + <Compile Include="浠g爜\鐣岄潰浜嬩欢.cs" /> + <Compile Include="浠g爜\璁惧閫氫俊.cs" /> + <Compile Include="浠g爜\鑷畾涔夌粨鏋�cs" /> + <Compile Include="浠g爜\鑷畾涔夌被.cs" /> + <Compile Include="浠g爜\VS鑷畾涔夌被\TcpServer.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <None Include="App.config" /> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> +</Project> \ No newline at end of file diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/Properties/AssemblyInfo.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000..d7c5173 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 鏈夊叧绋嬪簭闆嗙殑涓�埇淇℃伅鐢变互涓�+// 鎺у埗銆傛洿鏀硅繖浜涚壒鎬у�鍙慨鏀�+// 涓庣▼搴忛泦鍏宠仈鐨勪俊鎭� +[assembly: AssemblyTitle("AuxAllWCS")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("娴欐睙鍥借嚜鏅鸿兘瑁呭鏈夐檺鍏徃")] +[assembly: AssemblyProduct("AuxAllWCS")] +[assembly: AssemblyCopyright("Copyright 漏 2022 娴欐睙鍥借嚜鏅鸿兘瑁呭鏈夐檺鍏徃 All Rights Reserved.")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 灏�ComVisible 璁剧疆涓�false 浼氫娇姝ょ▼搴忛泦涓殑绫诲瀷 +//瀵�COM 缁勪欢涓嶅彲瑙併�濡傛灉闇�浠�COM 璁块棶姝ょ▼搴忛泦涓殑绫诲瀷 +//璇峰皢姝ょ被鍨嬬殑 ComVisible 鐗规�璁剧疆涓�true銆�+[assembly: ComVisible(false)] + +// 濡傛灉姝ら」鐩悜 COM 鍏紑锛屽垯涓嬪垪 GUID 鐢ㄤ簬绫诲瀷搴撶殑 ID +[assembly: Guid("03d560ed-fd80-4d8a-a514-d992e07894b0")] + +// 绋嬪簭闆嗙殑鐗堟湰淇℃伅鐢变笅鍒楀洓涓�缁勬垚: +// +// 涓荤増鏈�+// 娆$増鏈�+// 鐢熸垚鍙�+// 淇鍙�+// +// 鍙互鎸囧畾鎵�湁鍊硷紝涔熷彲浠ヤ娇鐢ㄤ互涓嬫墍绀虹殑 "*" 棰勭疆鐗堟湰鍙峰拰淇鍙�+// 鏂规硶鏄寜濡備笅鎵�ず浣跨敤鈥�鈥� : +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/TcpServer.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/TcpServer.cs" new file mode 100644 index 0000000..7bb9c73 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/TcpServer.cs" @@ -0,0 +1,226 @@ +#region [鑷畾涔夌被-VS][20250612005504281][TcpServer] +#region [鑷畾涔夌被-VS][20250605212036245][TcpServer] +using GZ.Device.PLC; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net.Sockets; +using System.Net; +using System.Text; +using System.Threading.Tasks; + +namespace GZ.Projects.AuxAllWCS +{ + + public class TcpServer + { + public static Dictionary<string,string> TrayIps = new Dictionary<string,string>(); + public TcpServer(string ip) + { + Init(ip); + } + private void Init(string ip) + { + //鍒涘缓涓�釜鏂扮殑Socket,杩欓噷鎴戜滑浣跨敤鏈�父鐢ㄧ殑鍩轰簬TCP鐨凷tream Socket锛堟祦寮忓鎺ュ瓧锛�+ var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); + try + { + //灏嗚socket缁戝畾鍒颁富鏈轰笂闈㈢殑鏌愪釜绔彛 + socket.Bind(new IPEndPoint(IPAddress.Parse(ip), 2025)); + //鍚姩鐩戝惉锛屽苟涓旇缃竴涓渶澶х殑闃熷垪闀垮害 + socket.Listen(30); + //寮�鎺ュ彈瀹㈡埛绔繛鎺ヨ姹�+ socket.BeginAccept(new AsyncCallback(ClientAccepted), socket); + } + catch (Exception e) + { + Console.WriteLine(e.Message); + } + } + public static Dictionary<string, Socket> clients = new Dictionary<string, Socket>(); + public static Dictionary<string, byte[]> buffers = new Dictionary<string, byte[]>(); + public static void ClientAccepted(IAsyncResult ar) + { + + var socket = ar.AsyncState as Socket; + var client = socket.EndAccept(ar); + string remote_ip = ((System.Net.IPEndPoint)client.RemoteEndPoint).Address.ToString(); + if (clients.Keys.Contains(remote_ip)) + { + clients[remote_ip] = client; + } + else + { + clients.Add(remote_ip, client); + } + if (!buffers.Keys.Contains(remote_ip)) + { + buffers.Add(remote_ip, new byte[1024]); + } + //缁欏鎴风鍙戦�涓�釜娆㈣繋娑堟伅 + //client.Send(Encoding.Unicode.GetBytes("Hi there, I accept you request at " + DateTime.Now.ToString())); + Console.WriteLine(remote_ip); + + try + { + client.BeginReceive(buffers[remote_ip], 0, buffers[remote_ip].Length, SocketFlags.None, new AsyncCallback(ReceiveMessage), client); + } + catch (Exception ex) + { + Console.WriteLine($"銆愭帴鏀跺鎴风鐨勬秷鎭紓甯�銆戯細" + ex.Message); + } + //鍑嗗鎺ュ彈涓嬩竴涓鎴风璇锋眰 + socket.BeginAccept(new AsyncCallback(ClientAccepted), socket); + } + + + public static void ReceiveMessage(IAsyncResult ar) + { + try + { + var socket = ar.AsyncState as Socket; + string remote_ip = ((System.Net.IPEndPoint)socket.RemoteEndPoint).Address.ToString(); + var length = socket.EndReceive(ar); + if (length == 0) + { + clients.Remove(remote_ip); + buffers.Remove(remote_ip); + return; + } + else + { + if (!clients.Keys.Contains(remote_ip)) + { + clients.Add(remote_ip, socket); + } + if (!buffers.Keys.Contains(remote_ip)) + { + buffers.Add(remote_ip, new byte[1024]); + } + } + try + { + if (buffers.Keys.Contains(remote_ip)) + { + //璇诲彇鍑烘潵娑堟伅鍐呭 + var message = GetHexString(buffers[remote_ip], length); + //16 10 + // Console.WriteLine($"{DateTime.Now.ToString("hh:mm:ss")} ---> " + remote_ip + " : " + message); + //if (message.Substring(0, 4) == "3f00" && message.Substring(message.Length - 4) == "0d0a") + //{ + // //鏄剧ず娑堟伅 + // //string msg = message.Replace(@"0d", "").Replace(@"0a", "").Replace(@"0d0a", "").Trim(); + // //PlcHelper.Receive(remote_ip, msg); + // //Array.Clear(buffers[remote_ip], 0, buffers[remote_ip].Length);//娓呯┖褰撳墠IP Buffer + //} + //else + //{ + Console.WriteLine($"銆怲CP淇℃伅鍗忚寮傚父 {DateTime.Now.Millisecond}銆戯細IP锛歿remote_ip},MSG锛歿message}"); + var mg = Encoding.ASCII.GetString(PlcHelper.Hex2Bin(message)); + Console.WriteLine(mg); + if (mg.StartsWith("DK") && mg.Trim().Length == "DK01000024".Length) + { + if(TrayIps.TryGetValue(remote_ip,out string traycode)) + { + TrayIps[remote_ip] = traycode; + }else TrayIps.Add(remote_ip, traycode); + Console.WriteLine("TOFF"); + var mst = PlcHelper.Hex2Bin("544F4646"); + TcpServer.TcpServerSend(remote_ip, mst); + } + //} + } + else + { + if (!buffers.Keys.Contains(remote_ip)) + { + buffers.Add(remote_ip, new byte[1024]); + } + } + } + catch (Exception ex) + { + Console.WriteLine($"銆愬鐞嗗鎴风鐨勬秷鎭紓甯�銆戯細" + ex.StackTrace); + throw; + } + //鎺ユ敹涓嬩竴涓秷鎭�鍥犱负杩欐槸涓�釜閫掑綊鐨勮皟鐢紝鎵�互杩欐牱灏卞彲浠ヤ竴鐩存帴鏀舵秷鎭簡锛�+ socket.BeginReceive(buffers[remote_ip], 0, buffers[remote_ip].Length, SocketFlags.None, new AsyncCallback(ReceiveMessage), socket); + } + catch (Exception ex) + { + Console.WriteLine(ex.Message); + } + } + + private static string GetHexString(byte[] buffer, int lenght) + { + return BitConverter.ToString(buffer, 0, lenght).Replace("-", string.Empty).ToLower(); + } + + public static bool TcpServerSend(string ip, byte[] msg) + { + if (clients.Keys.Contains(ip)) + { + var client = clients[ip]; + if (client.Connected) + { + try + { + client.Send(msg); + return true; + } + catch (SocketException ex) + { + Console.WriteLine(ex.Message); + clients[ip].Close(); + clients.Remove(ip); + } + } + else + { + clients[ip].Close(); + clients.Remove(ip); + } + } + else + { + Console.WriteLine("鏈壘鍒拌澶囩殑閾炬帴锛� + ip); + } + return false; + + } + + public static int GetBitdata(int num, int wid) + { + string bstr = Convert.ToString(num, 2); + if (bstr.Length <= wid) + { + return 0; + } + return bstr[bstr.Length - wid - 1] - '0'; + } + public static int SetBinaryDigit(int number, int n, int value) + { + if (value != 0 && value != 1) + throw new ArgumentException("Value must be 0 or 1."); + + string binaryStr = Convert.ToString(number, 2); + + // 濡傛灉 n 瓒呭嚭褰撳墠浣嶆暟锛岃ˉ 0 鎵╁睍 + while (binaryStr.Length <= n) + { + binaryStr = "0" + binaryStr; + } + + // 淇敼绗�n 浣嶏紙浠庡彸寰�乏锛屾渶浣庝綅鏄 0 浣嶏級 + char[] binaryChars = binaryStr.ToCharArray(); + binaryChars[binaryChars.Length - 1 - n] = value == 1 ? '1' : '0'; + + // 杞崲鍥炲崄杩涘埗 + return Convert.ToInt32(new string(binaryChars), 2); + } + } +} + +#endregion [鑷畾涔夌被-VS][20250605212036245][TcpServer] +#endregion [鑷畾涔夌被-VS][20250612005504281][TcpServer] \ No newline at end of file diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/ViewModel.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/ViewModel.cs" new file mode 100644 index 0000000..9013fa8 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/ViewModel.cs" @@ -0,0 +1,686 @@ +using System; +using System.Collections.Generic; +using System.IO; +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.Runtime.Serialization; +using System.Collections.Concurrent; +using System.ServiceModel; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System.Net; +using NLog; +using NLog.Config; +using NLog.Targets; +using GZ.DB.Map.OIDATABASE; +using GZ.DB.App.OIDATABASE; +using GZ.DB.Repository.OIDATABASE; +using GZ.DB.IRepository.OIDATABASE; +using GZ.DB.Entity.OIDATABASE; +using GZ.Modular.Redis; +namespace GZ.Projects.AuxAllWCS +{ + public partial class ViewModel : System.ComponentModel.INotifyPropertyChanged + { + #region 绉佹湁鍙橀噺 + //闆嗘垚浜掕仈 + private Conn Conn = new Conn(); + //璁惧閫氫俊 + private Device Device = new Device(); + //鍙橀噺鏁版嵁搴�+ private Tag tag = new Tag(); + public Tag Tag + { + get { return tag; } + set { tag = value; RaisePropertyChanged(nameof(Tag)); } + } + //绠�寲PLC + public EasyPLC EasyPLC = new EasyPLC(); + #endregion + + #region 鏋勯�鍑芥暟 + private static ViewModel _ViewModel = null; + private static List<object> _Windows = new List<object>(); + public static ViewModel CreateInstance(object obj, Type type) + { + if (_ViewModel == null) + { + _ViewModel = new ViewModel(); + } + if (!_Windows.Contains(obj)) + { + _Windows.Add(obj); + } + return _ViewModel; + } + public ViewModel() + { + + } + #endregion + + #region 鑷畾涔夋寚浠�+public void Method1(System.Int32 param1) +{ + #region [鑷畾涔夋寚浠[20250323111354905][Method1] + + #endregion [鑷畾涔夋寚浠[20250323111354905][Method1] +} +public void SettingInit() +{ + #region [鑷畾涔夋寚浠[20250323144605974][SettingInit] +try +{ + var jsonFile = System.AppDomain.CurrentDomain.BaseDirectory + "/Static/config.json"; + using (System.IO.StreamReader file = System.IO.File.OpenText(jsonFile)) + { + using (JsonTextReader reader = new JsonTextReader(file)) + { + JObject o = (JObject)JToken.ReadFrom(reader); + foreach (Newtonsoft.Json.Linq.JProperty keyValue in o.Properties()) + { + Console.WriteLine(keyValue.Name); + if (keyValue.Name == "HostToAgvServerUrl") + { + Settings.HostToAgvServerUrl = keyValue.Value.ToString(); + } + if (keyValue.Name == "deviceInfo") { + Settings.deviceInfos = JsonConvert.DeserializeObject<List<deviceInfo>>(keyValue.Value.ToString()); + } + if (keyValue.Name == "HKbaseUrl") { + Settings.HKbaseUrl = keyValue.Value.ToString(); + } + if (keyValue.Name == "MESbaseUrl") + { + Settings.MESbaseUrl = keyValue.Value.ToString(); + } + if (keyValue.Name == "WMSbaseUrl") + { + Settings.WMSbaseUrl = keyValue.Value.ToString(); + } + } + } + } + //if(!Settings.FirstG) + //LogHelper.Info("鍔犺浇閰嶇疆鏂囦欢淇℃伅 瀹屾垚"); +} +catch (Exception ex) +{ + LogHelper.Error("鍔犺浇閰嶇疆鏂囦欢澶辫触锛� + ex.Message, ex); +} + #endregion [鑷畾涔夋寚浠[20250323144605974][SettingInit] +} +public void OperateHKTaskStatus(System.Object param1) +{ + #region [鑷畾涔夋寚浠[20250324165239206][OperateHKTaskStatus] +HaiKangOrderInfo model = (HaiKangOrderInfo)param1; + if (string.IsNullOrEmpty(model.taskCode)) + return; + // 鏌ヨ浠诲姟锛氭牴鎹换鍔″彿 + //var wcsTask = WCSHelper.GetTask(model.taskCode); + ITaskRepository MainMissionService = new TaskRepository(); + var wcsTask = MainMissionService.FindEntity(x => model.taskCode == x.S_TASK_NO); + if (wcsTask != null) + { + if (!string.IsNullOrWhiteSpace(model.method)) + { + ILocRepository locrep = new LocRepository(); + var startloc = locrep.FindEntity(x => x.S_LOC_CODE == wcsTask.S_START_LOC); + var endLoc = locrep.FindEntity(x => x.S_LOC_CODE == wcsTask.S_END_LOC); + + List<string> cntrs = wcsTask.S_CNTRS.Split(',').ToList(); + bool bobe = false; + switch (model.method) + { + case "start": + LogHelper.Info($"娴峰悍杞︿换鍔$姸鎬佸彉鏇翠负鎵ц锛屼换鍔″彿涓猴細{model.taskCode}", "agv鏉弶浜や簰鏃ュ織"); + if (wcsTask.S_B_STATE.Trim() == "宸叉帹閫�) + { + wcsTask.S_B_STATE = "鎵ц涓�; + wcsTask.T_START_TIME = DateTime.Now; + MainMissionService.Update(wcsTask); + bobe = true; + } + break; + case "outbin": + LogHelper.Info($"娴峰悍杞︿换鍔$姸鎬佸彉鏇翠负鍙栬揣瀹屾垚锛屼换鍔″彿涓猴細{model.taskCode}", "agv鏉弶浜や簰鏃ュ織"); + wcsTask.S_B_STATE = "鍙栬揣瀹屾垚"; + + startloc.N_CURRENT_NUM = 0; + startloc.S_LOCK_STATE = "鏃�; + startloc.T_MODIFY = DateTime.Now; + //ILocContainerRepository locContainerRepository = new LocContainerRepository(); + ////var cnr = locContainerRepository.FindList(x => cntrs.Contains(x.S_CNTR_CODE.Trim()) && x.S_LOC_CODE == wcsTask.S_START_LOC); + //locContainerRepository.Delete(x => cntrs.Contains(x.S_CNTR_CODE.Trim()) && x.S_LOC_CODE == wcsTask.S_START_LOC); + MainMissionService.Update(wcsTask); + locrep.Update(startloc); + + bobe = true; + var device = Settings.deviceInfos.Find(x => x.location.Contains(wcsTask.S_START_LOC)); + if (device != null) + { + if (device.deviceType == 1) + { + if (device.deviceName.Contains("缁村笇灏旀姄鑷�)) + { //鍗歌揣杩涜娓呯┖锛岃Е鍙戞壂鐮�+ var inde = device.location.ToList().FindIndex(x => x == wcsTask.S_START_LOC) == 0; + string V = inde ? "R05" : "R06"; + Conn.榛樿Redis.SetValue(device.deviceName + "." + V, "true", device.deviceName + "Queue"); + TcpServer.TrayIps.Remove(device.deviceNo[inde ? 0 : 1]); + } + } + else if(device.deviceType == 2){ + var inde = device.location.ToList().FindIndex(x => x == wcsTask.S_START_LOC) == 0; + string V = inde? "D1224" : "D1225"; + Conn.榛樿Redis.SetValue(device.deviceName + "." + V, "0", device.deviceName + "Queue"); + } + } + //LocationHelper.UnLockLoc(wcsTask.S_START_LOC); + break; + case "end": + LogHelper.Info($"娴峰悍杞︿换鍔$姸鎬佸彉鏇翠负瀹屾垚锛屼换鍔″彿涓猴細{model.taskCode}", "agv鏉弶浜や簰鏃ュ織"); + wcsTask.S_B_STATE = "瀹屾垚"; + wcsTask.T_END_TIME = DateTime.Now; + + bobe = true; + //ILocContainerRepository locContainerRepository2 = new LocContainerRepository(); + //List<LocContainerEntity> llls = new List<LocContainerEntity>(); + //foreach (var c in cntrs) + //{ + // var action = new LocContainerEntity() + // { + // S_ID = Guid.NewGuid().ToString(), + // S_STATE = "缂栬緫", + // T_CREATE = DateTime.Now, + // T_MODIFY = DateTime.Now, + + // S_LOC_CODE = endLoc.S_LOC_CODE, + // S_CNTR_CODE = c, + // S_TYPE = "", + // }; + // llls.Add(action); + //} + + endLoc.S_LOCK_STATE = "鏃�; + endLoc.N_CURRENT_NUM = 1; + endLoc.T_MODIFY = DateTime.Now; + MainMissionService.Update(wcsTask); + if(Settings.deviceInfos.Find(x=>x.deviceType==2 && (/*x.location.Contains(wcsTask.S_END_LOC)||*/x.deviceNo.Contains(wcsTask.S_END_LOC)))!=null) + locrep.Update(endLoc); + //locContainerRepository2.Insert(llls); + + var device2 = Settings.deviceInfos.Find(x => x.location.Contains(wcsTask.S_END_LOC)); + if (device2 != null) + { + if (device2.deviceType == 1) + { + if (device2.deviceName.Contains("缁村笇灏旀姄鑷�)) + { + //string V = device2.location.ToList().FindIndex(x => x == wcsTask.S_START_LOC) == 0 ? "R10" : "R11"; + //Conn.榛樿Redis.SetValue(device2.deviceName + "." + V, "true", device2.deviceName + "Queue"); + //鍗歌揣鍐嶅啓鎵樼洏鍙栬蛋銆�鐒跺悗瑙﹀彂鎵爜杩涜鏍¢獙銆� + var inde = device2.location.ToList().FindIndex(x => x == wcsTask.S_END_LOC) == 0; + //string V = inde ? "R05" : "R06"; + //Conn.榛樿Redis.SetValue(device2.deviceName + "." + V, "true", device2.deviceName + "Queue"); + string V2 = inde ? "R10_LAST" : "R11_LAST"; + //Conn.榛樿Redis.SetValue(device2.deviceName + "." + V2, "true", device2.deviceName + "Queue"); + + RedisHelper.Add(device2.deviceName + "." + V2, "true", out string msg1); + TcpServer.TrayIps.Remove(device2.deviceNo[inde ? 0 : 1]); + } + } + else if (device2.deviceType == 2) + if (device2.deviceName.Contains("Js鎹烽『")) + { + var inde = device2.location.ToList().FindIndex(x => x == wcsTask.S_END_LOC) == 0; + string V = inde? "D1224" : "D1225"; + Conn.榛樿Redis.SetValue(device2.deviceName + "." + V, "1", device2.deviceName + "Queue"); + + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/202", JsonConvert.SerializeObject(new + { + sceneType = 3, + cntrCode = cntrs.FirstOrDefault() + })); + //if (device2.deviceName.Contains("1")) + //{ + // if (inde) tag.Js1.D1224 = 1; + // else tag.Js1.D1225 = 1; + //}else + //{ + // if (inde) tag.Js2.D1224 = 1; + // else tag.Js2.D1225 = 1; + //} + } + } + + //LocationMethod.JudgeLocation(wcsTask); + break; + case "cancel": + LogHelper.Info($"娴峰悍杞︿换鍔$姸鎬佸彉鏇翠负鍙栨秷锛屼换鍔″彿涓猴細{model.taskCode}", "agv鏉弶浜や簰鏃ュ織"); + wcsTask.S_B_STATE = "鍙栨秷"; + //startloc.S_LOCK_STATE = "鏃�; + //endLoc.S_LOCK_STATE = "鏃�; + MainMissionService.Update(wcsTask); + TaskActRepository taskActRepository = new TaskActRepository(); + var tare = taskActRepository.FindList(x => x.S_TASK_NO == wcsTask.S_TASK_NO); + if (tare.Any()) + { + if(tare.Find(x=>x.S_ACTION_CODE=="outbin")==null) + { + startloc.S_LOCK_STATE = "鏃�; + endLoc.S_LOCK_STATE = "鏃�; + locrep.Update(startloc); + locrep.Update(endLoc); + }else if (tare.Find(x => x.S_ACTION_CODE == "end") == null) + { + endLoc.S_LOCK_STATE = "鏃�; + locrep.Update(endLoc); + } + } + + //locrep.Update(startloc); + //locrep.Update(endLoc); + //TaskProcess.OperateStatus(wcsTask, 7); + //WCSHelper.Fail(wcsTask); + break; + case "apply": + // 鍒ゆ柇璇ヤ换鍔$殑鎺ラ┏浣嶆槸鍚︽湁鍏朵粬鍏ュ簱鎴栧嚭搴撲换鍔★紝濡傛灉鏈夛紝鍒欏湪绛変綅绛夊緟锛屽鏋滄病鏈夛紝鍒欏叆 + TaskisOk(wcsTask); + break; + } + + if (!string.IsNullOrEmpty(wcsTask.S_SRC_NO)) + { + var mestask = MainMissionService.FindEntity(x => x.S_TASK_NO == wcsTask.S_SRC_NO); + if (mestask!=null&&bobe) + { + if ( model.method != "end") + { + if (mestask.S_START_LOC == wcsTask.S_START_LOC&&mestask.S_B_STATE == "MES") + Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/201", JsonConvert.SerializeObject(new + { + reqCode = wcsTask.S_SRC_NO, + model.method + })); + } + else + { + if (mestask.S_END_LOC != wcsTask.S_END_LOC) + { + LogHelper.Info($"{wcsTask.S_SRC_NO}-{wcsTask.S_TASK_NO} 涓�樁娈靛畬鎴愶紝閲嶇疆杩涜浜岄樁娈点�"); + mestask.N_PRIORITY = -88; + MainMissionService.Update(mestask); + } + else if(mestask.S_B_STATE == "MES") + { + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/201", JsonConvert.SerializeObject(new + { + reqCode = wcsTask.S_SRC_NO, + model.method + })); + } + } + + }else if(mestask!=null && model.method== "cancel") + { + if(mestask.S_B_STATE == "MES") + Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/201", JsonConvert.SerializeObject(new + { + reqCode = wcsTask.S_SRC_NO, + model.method + })); + LogHelper.Info($"{wcsTask.S_SRC_NO}-{wcsTask.S_TASK_NO} 涓�樁娈靛彇娑堬紝閲嶇疆鐐癸紝绾跨▼澶勭悊銆�); + mestask.N_PRIORITY = -1; + mestask.S_B_STATE = "MES_鍙栨秷"; + MainMissionService.Update(mestask); + } + } + TaskProcess.AddActionRecord(model.taskCode, model.method, model.eqpCode, model.data,wcsTask.S_START_LOC,wcsTask.S_END_LOC); + //璋冪敤绗笁鏂规帴鍙o紙濡傛灉鏈夛級TaskProcess.ReportStatus + } + else + { + // 鏆傛椂璁惧畾涓� + wcsTask.S_B_STATE = "涓婃姤鐘舵�绌�; + //瀹夊叏璇锋眰绛�+ //TaskProcess.OperateReq(model.taskCode, wcsTask.N_B_STATE, model.eqpCode, model.data); + } + } + else + { + LogHelper.Info($"褰撳墠浠诲姟鍙蜂换鍔′笉瀛樺湪{model.taskCode}", "agv鏉弶浜や簰鏃ュ織"); + } + #endregion [鑷畾涔夋寚浠[20250324165239206][OperateHKTaskStatus] +} +public GZ.DB.Entity.OIDATABASE.TaskEntity Begin(GZ.DB.Entity.OIDATABASE.TaskEntity task) +{ + #region [鑷畾涔夋寚浠[20250324170811305][Begin] + if (task.S_B_STATE.Trim() == "宸叉帹閫�) { + task.S_B_STATE = "鎵ц涓�; + task.T_START_TIME = DateTime.Now; + } + return task; + #endregion [鑷畾涔夋寚浠[20250324170811305][Begin] +} +public GZ.DB.Entity.OIDATABASE.TaskEntity End(GZ.DB.Entity.OIDATABASE.TaskEntity task) +{ + #region [鑷畾涔夋寚浠[20250324170922920][End] + if (task != null) { + task.S_B_STATE = "瀹屾垚"; + task.T_END_TIME = DateTime.Now; + } + return task; + #endregion [鑷畾涔夋寚浠[20250324170922920][End] +} +public GZ.DB.Entity.OIDATABASE.TaskEntity UpdateStatus(GZ.DB.Entity.OIDATABASE.TaskEntity task, System.String status) +{ + #region [鑷畾涔夋寚浠[20250324171118766][UpdateStatus] +task.S_B_STATE = status; +return task; + #endregion [鑷畾涔夋寚浠[20250324171118766][UpdateStatus] +} +public void RunafterMac(System.Object dev, System.Boolean blen) +{ + #region [鑷畾涔夋寚浠[20250325085905222][RunafterMac] +var device = (deviceInfo)dev; +if (device.areaPriy.Any() && device.deviceNo.Any()) +{ + LocRepository locRepository = new LocRepository(); + LocContainerRepository locContainerRepository = new LocContainerRepository(); + ContainerRepository containerRepository = new ContainerRepository(); + LocEntity startLoc = null; + string Sign = device.deviceType == 1 ? "F" : "E"; + foreach (var sloc in device.deviceNo) + { + ContainerEntity c = null; + var Startloc = locRepository.FindEntity(x => x.S_LOC_CODE == sloc); + if (Startloc != null && Startloc.N_CURRENT_NUM == 1 && Startloc.S_LOCK_STATE == "鏃�) + { + var cntr = locContainerRepository.FindEntity(x => x.S_LOC_CODE == sloc); + if (cntr != null) + { + c = containerRepository.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE); + if (c != null && c.S_TYPE == Sign) + { + startLoc = Startloc; + } + } + } + + if (startLoc != null) + { + foreach (var dn in device.areaPriy) + { + LocEntity endLoc = null; + var di = Settings.deviceInfos.Find(x => x.deviceName == dn); + if (di != null) + { + foreach (var ssloc in di.deviceNo) + { + var endloc = locRepository.FindEntity(x => x.S_LOC_CODE == ssloc); + if (endloc != null && endloc.N_CURRENT_NUM == 0 && endloc.S_LOCK_STATE == "鏃�) + { + endLoc = endloc; + break; + } + } + if (endLoc != null) + { + TaskProcess.CreateTask("", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, $"鎵樼洏娴佽浆-{Sign}", 5, new List<string> { c.S_CODE }); + break; + } + } + } + } + } +} + #endregion [鑷畾涔夋寚浠[20250325085905222][RunafterMac] +} +public System.Boolean RunTask(GZ.DB.Entity.OIDATABASE.TaskEntity task) +{ + #region [鑷畾涔夋寚浠[20250325092323531][RunTask] + + ILocRepository locrep = new LocRepository(); + var startloc = locrep.FindEntity(x => x.S_LOC_CODE == task.S_START_LOC); + var endLoc = locrep.FindEntity(x => x.S_LOC_CODE == task.S_END_LOC); + if (startloc == null || endLoc == null) + { + LogHelper.Info($"{task.S_TASK_NO}-浠诲姟璧�缁堢偣 娌℃壘鍒版暟鎹�"); + return false; + } + var start = startloc.S_AGV_SITE; + var end = endLoc.S_AGV_SITE; + + // 鍒涘缓涓や釜璺緞 + var positions = new List<positionCodePath>(){ + new positionCodePath() + { + positionCode = start, + Type = "00" + }, + new positionCodePath() + { + positionCode = end, + Type = "00" + } + }; + + //璋冪涓夋柟鎺ュ彛 + var model = new HaiKangOrderInfo + { + reqCode=task.S_TASK_NO.Trim(), + reqTime=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), + taskCode = task.S_TASK_NO.Trim(), + ctnrCode = task.S_CNTRS, + taskTyp = task.S_INDEX, + positionCodePath = positions + }; + + return CreateOrder(model); + #endregion [鑷畾涔夋寚浠[20250325092323531][RunTask] +} +public System.Boolean CreateOrder(System.Object m) +{ + #region [鑷畾涔夋寚浠[20250325095053549][CreateOrder] +var model = (HaiKangOrderInfo)m; + var msg = ""; + var result = false; + var request = JsonConvert.SerializeObject(model); + var response = Settings.apiHelper.Post(Settings.HKbaseUrl + "rcms/services/rest/hikRpcService/genAgvSchedulingTask", request); + msg = $"[haikang-CreateOrder] request={request} response={response}"; + + LogHelper.Info(msg); + if (response != "") { + try { + var dataResult = JsonConvert.DeserializeObject<HKResult>(response); + if (dataResult.code == "0") { + result = true; + } + } + catch (Exception ex) { + Console.WriteLine(ex.Message); + LogHelper.Info(msg,"娴峰悍"); + } + } + else { + msg = "[haikang-CreateOrder]鍒涘缓璁㈠崟澶辫触"; + Console.WriteLine(msg); + } + + LogHelper.Info(msg,"娴峰悍"); + return result; + #endregion [鑷畾涔夋寚浠[20250325095053549][CreateOrder] +} +public void TaskisOk(GZ.DB.Entity.OIDATABASE.TaskEntity task) +{ + #region [鑷畾涔夋寚浠[20250325100336909][TaskisOk] +// 杞﹁締鍙栨斁鐢宠銆�+ if ("鍙栬揣鐢宠" != "") + { + var device1 = Settings.deviceInfos.Find(x => x.location.Contains(task.S_START_LOC)); + if (device1 != null) + { + var left = device1.location.ToList().FindIndex(x => x == task.S_START_LOC) == 0; + if (device1.deviceType == 1) + { + if (device1.deviceName.Contains("缁村笇灏旀姄鑷�)) + { + if ("IN_BEFORE" == "IN_BEFORE"|| "out_BEFORE" == "out_BEFORE") + { + string V = left ? "R01" : "R03"; + Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + if ("IN_after" == "IN_after"|| "out_after" == "out_after") + { + string V = left ? "R02" : "R04"; + Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + } + else if(device1.deviceName.Contains("Js鎹烽『")) + { + if ("IN_BEFORE" == "IN_BEFORE") + { + string V = left ? "M0" : "M1"; + Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + if ("out_BEFORE" == "out_BEFORE") + { + //string V = left ? "R01" : "R03"; + //Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + if ("IN_after" == "IN_after") + { + string V = left ? "M2" : "M3"; + Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + if ("out_after" == "out_after") + { + string V = left ? "M6" : "M7"; + Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + } + } + } + } + if ("鏀捐揣鐢宠" != "") + { + var device1 = Settings.deviceInfos.Find(x => x.location.Contains(task.S_END_LOC)); + if (device1 != null) + { + var left = device1.location.ToList().FindIndex(x => x == task.S_END_LOC) == 0; + if (device1.deviceType == 1) + { + if (device1.deviceName.Contains("缁村笇灏旀姄鑷�)) + { + if ("IN_BEFORE" == "IN_BEFORE" || "out_BEFORE" == "out_BEFORE") + { + string V = left ? "R01" : "R03"; + Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + if ("IN_after" == "IN_after" || "out_after" == "out_after") + { + string V = left ? "R02" : "R04"; + Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + } + else if (device1.deviceName.Contains("Js鎹烽『")) + { + if ("IN_BEFORE" == "IN_BEFORE") + { + string V = left ? "M0" : "M1"; + Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + if ("out_BEFORE" == "out_BEFORE") + { + string V = left ? "M4" : "M5"; + Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + if ("IN_after" == "IN_after") + { + string V = left ? "M2" : "M3"; + Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + if ("out_after" == "out_after") + { + string V = left ? "M6" : "M7"; + Conn.榛樿Redis.SetValue(device1.deviceName + "." + V, "true", device1.deviceName + "Queue"); + } + } + } + } + } + #endregion [鑷畾涔夋寚浠[20250325100336909][TaskisOk] +} +public System.Boolean continueTask(System.Object m) +{ + #region [鑷畾涔夋寚浠[20250325100607380][continueTask] +var model = (HaiKangOrderInfo)m; +bool result = false; +string msg = ""; +var request = JsonConvert.SerializeObject(model); +var response = Settings.apiHelper.Post(Settings.HKbaseUrl + "rcms/services/rest/hikRpcService/continueTask", request); +msg = $"[haikang-CancelOrder] request={request};response={response}"; +Console.WriteLine(msg); +if (response != "") +{ + var dataResult = JsonConvert.DeserializeObject<HKResult>(response); + if (dataResult.code == "0") + { + result = true; + } +} +else +{ + msg = "[haikang-CancelOrder]鑾峰彇浠诲姟鐘舵�澶辫触"; + Console.WriteLine(msg); +} +LogHelper.Info(msg, "娴峰悍"); +return result; + #endregion [鑷畾涔夋寚浠[20250325100607380][continueTask] +} +public System.Boolean CancelOrder(System.Object m) +{ + #region [鑷畾涔夋寚浠[20250325100705351][CancelOrder] +var model = (HaiKangOrderInfo)m; +bool result = false; +string msg = ""; +var request = JsonConvert.SerializeObject(model); +var response = Settings.apiHelper.Post(Settings.HKbaseUrl + "rcms/services/rest/hikRpcService/continueTask", request); +msg = $"[haikang-CancelOrder] request={request};response={response}"; +Console.WriteLine(msg); +if (response != "") { + var dataResult = JsonConvert.DeserializeObject<HKResult>(response); + if (dataResult.code == "0") { + result = true; + } +} +else { + msg = "[haikang-CancelOrder]鍙栨秷璁㈠崟澶辫触"; + Console.WriteLine(msg); +} +LogHelper.Info(msg, "娴峰悍"); +return result; + #endregion [鑷畾涔夋寚浠[20250325100705351][CancelOrder] +} +public System.String GetSerialNumber(System.String snType, System.String prefix) +{ + #region [鑷畾涔夋寚浠[20250325131530407][GetSerialNumber] +int result = 0; +return ""; + #endregion [鑷畾涔夋寚浠[20250325131530407][GetSerialNumber] +} + #endregion + } +} + diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\345\217\230\351\207\217\346\225\260\346\215\256\345\272\223.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\345\217\230\351\207\217\346\225\260\346\215\256\345\272\223.cs" new file mode 100644 index 0000000..ebd2a23 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\345\217\230\351\207\217\346\225\260\346\215\256\345\272\223.cs" @@ -0,0 +1,13473 @@ +using System; +using System.Collections.Generic; +using System.IO; +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.Runtime.Serialization; +using System.Collections.Concurrent; +using System.ServiceModel; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System.Net; +using NLog; +using NLog.Config; +using NLog.Targets; +using GZ.DB.Map.OIDATABASE; +using GZ.DB.App.OIDATABASE; +using GZ.DB.Repository.OIDATABASE; +using GZ.DB.IRepository.OIDATABASE; +using GZ.DB.Entity.OIDATABASE; +namespace GZ.Projects.AuxAllWCS +{ + /// <summary> + /// 鍙橀噺鏁版嵁搴�+ /// </summary> + public class Tag : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + #endregion + + #region 鍙橀噺缁�+ private Tagwxr1 _wxr1 = new Tagwxr1(); + public Tagwxr1 wxr1 { get { return _wxr1; } set { _wxr1=value; RaisePropertyChanged("wxr1"); } } + private Tagwxr2 _wxr2 = new Tagwxr2(); + public Tagwxr2 wxr2 { get { return _wxr2; } set { _wxr2=value; RaisePropertyChanged("wxr2"); } } + private TagGlobal _Global = new TagGlobal(); + public TagGlobal Global { get { return _Global; } set { _Global=value; RaisePropertyChanged("Global"); } } + private TagJs1 _Js1 = new TagJs1(); + public TagJs1 Js1 { get { return _Js1; } set { _Js1=value; RaisePropertyChanged("Js1"); } } + private TagJs2 _Js2 = new TagJs2(); + public TagJs2 Js2 { get { return _Js2; } set { _Js2=value; RaisePropertyChanged("Js2"); } } + private TagS1025 _S1025 = new TagS1025(); + public TagS1025 S1025 { get { return _S1025; } set { _S1025=value; RaisePropertyChanged("S1025"); } } + private TagFNK1 _FNK1 = new TagFNK1(); + public TagFNK1 FNK1 { get { return _FNK1; } set { _FNK1=value; RaisePropertyChanged("FNK1"); } } + private TagFNK2 _FNK2 = new TagFNK2(); + public TagFNK2 FNK2 { get { return _FNK2; } set { _FNK2=value; RaisePropertyChanged("FNK2"); } } + private TagSA1019 _SA1019 = new TagSA1019(); + public TagSA1019 SA1019 { get { return _SA1019; } set { _SA1019=value; RaisePropertyChanged("SA1019"); } } + private TagSA1022 _SA1022 = new TagSA1022(); + public TagSA1022 SA1022 { get { return _SA1022; } set { _SA1022=value; RaisePropertyChanged("SA1022"); } } + private TagSA1025 _SA1025 = new TagSA1025(); + public TagSA1025 SA1025 { get { return _SA1025; } set { _SA1025=value; RaisePropertyChanged("SA1025"); } } + private TagSA1030 _SA1030 = new TagSA1030(); + public TagSA1030 SA1030 { get { return _SA1030; } set { _SA1030=value; RaisePropertyChanged("SA1030"); } } + private TagSA2001 _SA2001 = new TagSA2001(); + public TagSA2001 SA2001 { get { return _SA2001; } set { _SA2001=value; RaisePropertyChanged("SA2001"); } } + private TagSA2030 _SA2030 = new TagSA2030(); + public TagSA2030 SA2030 { get { return _SA2030; } set { _SA2030=value; RaisePropertyChanged("SA2030"); } } + private TagSF涓嬫枡浣�_SF涓嬫枡浣�= new TagSF涓嬫枡浣�); + public TagSF涓嬫枡浣�SF涓嬫枡浣�{ get { return _SF涓嬫枡浣� } set { _SF涓嬫枡浣�value; RaisePropertyChanged("SF涓嬫枡浣�); } } + private TagSR1020 _SR1020 = new TagSR1020(); + public TagSR1020 SR1020 { get { return _SR1020; } set { _SR1020=value; RaisePropertyChanged("SR1020"); } } + private TagSR1023 _SR1023 = new TagSR1023(); + public TagSR1023 SR1023 { get { return _SR1023; } set { _SR1023=value; RaisePropertyChanged("SR1023"); } } + private TagSR1017杞瓙鎺ユ敹 _SR1017杞瓙鎺ユ敹 = new TagSR1017杞瓙鎺ユ敹(); + public TagSR1017杞瓙鎺ユ敹 SR1017杞瓙鎺ユ敹 { get { return _SR1017杞瓙鎺ユ敹; } set { _SR1017杞瓙鎺ユ敹=value; RaisePropertyChanged("SR1017杞瓙鎺ユ敹"); } } + private TagSREU1004 _SREU1004 = new TagSREU1004(); + public TagSREU1004 SREU1004 { get { return _SREU1004; } set { _SREU1004=value; RaisePropertyChanged("SREU1004"); } } + private TagSREU1006 _SREU1006 = new TagSREU1006(); + public TagSREU1006 SREU1006 { get { return _SREU1006; } set { _SREU1006=value; RaisePropertyChanged("SREU1006"); } } + private TagSREU1012 _SREU1012 = new TagSREU1012(); + public TagSREU1012 SREU1012 { get { return _SREU1012; } set { _SREU1012=value; RaisePropertyChanged("SREU1012"); } } + private TagSREU1014 _SREU1014 = new TagSREU1014(); + public TagSREU1014 SREU1014 { get { return _SREU1014; } set { _SREU1014=value; RaisePropertyChanged("SREU1014"); } } + private TagSRFD1002 _SRFD1002 = new TagSRFD1002(); + public TagSRFD1002 SRFD1002 { get { return _SRFD1002; } set { _SRFD1002=value; RaisePropertyChanged("SRFD1002"); } } + private TagSRFD1008 _SRFD1008 = new TagSRFD1008(); + public TagSRFD1008 SRFD1008 { get { return _SRFD1008; } set { _SRFD1008=value; RaisePropertyChanged("SRFD1008"); } } + private TagSRFD1010 _SRFD1010 = new TagSRFD1010(); + public TagSRFD1010 SRFD1010 { get { return _SRFD1010; } set { _SRFD1010=value; RaisePropertyChanged("SRFD1010"); } } + private TagSRFD1016 _SRFD1016 = new TagSRFD1016(); + public TagSRFD1016 SRFD1016 { get { return _SRFD1016; } set { _SRFD1016=value; RaisePropertyChanged("SRFD1016"); } } + private TagSRdu1026 _SRdu1026 = new TagSRdu1026(); + public TagSRdu1026 SRdu1026 { get { return _SRdu1026; } set { _SRdu1026=value; RaisePropertyChanged("SRdu1026"); } } + private TagRGV _RGV = new TagRGV(); + public TagRGV RGV { get { return _RGV; } set { _RGV=value; RaisePropertyChanged("RGV"); } } + #endregion + + #region 鍐呴儴绫�+ public class Tagwxr1 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.Boolean _R07; + public System.Boolean R07 + { + get + { + + _R07=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R07"),typeof(System.Boolean)); + return _R07; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R07",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R07", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R07", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R07 = value; + RaisePropertyChanged("R07"); + } + } + private System.Boolean _R00; + public System.Boolean R00 + { + get + { + + _R00=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R00"),typeof(System.Boolean)); + return _R00; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R00",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R00", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R00", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R00 = value; + RaisePropertyChanged("R00"); + } + } + private System.Boolean _R01; + public System.Boolean R01 + { + get + { + + _R01=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R01"),typeof(System.Boolean)); + return _R01; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R01",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R01", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R01", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R01 = value; + RaisePropertyChanged("R01"); + } + } + private System.Boolean _R02; + public System.Boolean R02 + { + get + { + + _R02=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R02"),typeof(System.Boolean)); + return _R02; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R02",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R02", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R02", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R02 = value; + RaisePropertyChanged("R02"); + } + } + private System.Boolean _R03; + public System.Boolean R03 + { + get + { + + _R03=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R03"),typeof(System.Boolean)); + return _R03; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R03",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R03", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R03", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R03 = value; + RaisePropertyChanged("R03"); + } + } + private System.Boolean _R04; + public System.Boolean R04 + { + get + { + + _R04=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R04"),typeof(System.Boolean)); + return _R04; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R04",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R04", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R04", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R04 = value; + RaisePropertyChanged("R04"); + } + } + private System.Boolean _R05; + public System.Boolean R05 + { + get + { + + _R05=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R05"),typeof(System.Boolean)); + return _R05; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R05",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R05", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R05", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R05 = value; + RaisePropertyChanged("R05"); + } + } + private System.Boolean _R06; + public System.Boolean R06 + { + get + { + + _R06=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R06"),typeof(System.Boolean)); + return _R06; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R06",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R06", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R06", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R06 = value; + RaisePropertyChanged("R06"); + } + } + private System.Boolean _R12; + public System.Boolean R12 + { + get + { + + _R12=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R12"),typeof(System.Boolean)); + return _R12; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R12",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R12", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R12", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R12 = value; + RaisePropertyChanged("R12"); + } + } + private System.Boolean _R13; + public System.Boolean R13 + { + get + { + + _R13=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R13"),typeof(System.Boolean)); + return _R13; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R13",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R13", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R13", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R13 = value; + RaisePropertyChanged("R13"); + } + } + private System.Boolean _R14; + public System.Boolean R14 + { + get + { + + _R14=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R14"),typeof(System.Boolean)); + return _R14; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R14",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R14", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R14", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R14 = value; + RaisePropertyChanged("R14"); + } + } + private System.Boolean _R41; + public System.Boolean R41 + { + get + { + + _R41=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R41"),typeof(System.Boolean)); + return _R41; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R41",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R41", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R41", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R41 = value; + RaisePropertyChanged("R41"); + } + } + private System.Boolean _R41_LAST; + public System.Boolean R41_LAST + { + get + { + + _R41_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R41_LAST"),typeof(System.Boolean)); + return _R41_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R41_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R41_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R41_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R41_LAST = value; + RaisePropertyChanged("R41_LAST"); + } + } + private System.Boolean _R42; + public System.Boolean R42 + { + get + { + + _R42=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R42"),typeof(System.Boolean)); + return _R42; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R42",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R42", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R42", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R42 = value; + RaisePropertyChanged("R42"); + } + } + private System.Boolean _R44=false; + public System.Boolean R44 + { + get + { + + _R44=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R44"),typeof(System.Boolean)); + return _R44; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R44",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R44", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R44", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R44 = value; + RaisePropertyChanged("R44"); + } + } + private System.Boolean _R44_LAST=false; + public System.Boolean R44_LAST + { + get + { + + _R44_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R44_LAST"),typeof(System.Boolean)); + return _R44_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R44_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R44_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R44_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R44_LAST = value; + RaisePropertyChanged("R44_LAST"); + } + } + private System.Boolean _R46; + public System.Boolean R46 + { + get + { + + _R46=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R46"),typeof(System.Boolean)); + return _R46; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R46",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R46", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R46", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R46 = value; + RaisePropertyChanged("R46"); + } + } + private System.Boolean _R46_LAST; + public System.Boolean R46_LAST + { + get + { + + _R46_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R46_LAST"),typeof(System.Boolean)); + return _R46_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R46_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R46_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R46_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R46_LAST = value; + RaisePropertyChanged("R46_LAST"); + } + } + private System.Boolean _R47; + public System.Boolean R47 + { + get + { + + _R47=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R47"),typeof(System.Boolean)); + return _R47; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R47",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R47", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R47", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R47 = value; + RaisePropertyChanged("R47"); + } + } + private System.Boolean _R50; + public System.Boolean R50 + { + get + { + + _R50=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R50"),typeof(System.Boolean)); + return _R50; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R50",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R50", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R50", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R50 = value; + RaisePropertyChanged("R50"); + } + } + private System.Boolean _R51; + public System.Boolean R51 + { + get + { + + _R51=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R51"),typeof(System.Boolean)); + return _R51; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R51",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R51", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R51", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R51 = value; + RaisePropertyChanged("R51"); + } + } + private System.Boolean _R52; + public System.Boolean R52 + { + get + { + + _R52=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R52"),typeof(System.Boolean)); + return _R52; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R52",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R52", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R52", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R52 = value; + RaisePropertyChanged("R52"); + } + } + private System.Int16 _wl=0; + public System.Int16 wl + { + get + { + + return _wl; + } + set + { + _wl = value; + RaisePropertyChanged("wl"); + } + } + private System.Boolean _w143=false; + public System.Boolean w143 + { + get + { + + return _w143; + } + set + { + _w143 = value; + RaisePropertyChanged("w143"); + } + } + private System.Int16 _w2=0; + public System.Int16 w2 + { + get + { + + return _w2; + } + set + { + _w2 = value; + RaisePropertyChanged("w2"); + } + } + private System.Boolean _w245=false; + public System.Boolean w245 + { + get + { + + return _w245; + } + set + { + _w245 = value; + RaisePropertyChanged("w245"); + } + } + private System.Boolean _R43; + public System.Boolean R43 + { + get + { + + _R43=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R43"),typeof(System.Boolean)); + return _R43; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R43",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R43", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R43", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R43 = value; + RaisePropertyChanged("R43"); + } + } + private System.Boolean _R43_LAST; + public System.Boolean R43_LAST + { + get + { + + _R43_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R43_LAST"),typeof(System.Boolean)); + return _R43_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R43_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R43_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R43_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R43_LAST = value; + RaisePropertyChanged("R43_LAST"); + } + } + private System.Boolean _R45; + public System.Boolean R45 + { + get + { + + _R45=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R45"),typeof(System.Boolean)); + return _R45; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R45",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R45", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R45", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R45 = value; + RaisePropertyChanged("R45"); + } + } + private System.Boolean _R45_LAST; + public System.Boolean R45_LAST + { + get + { + + _R45_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R45_LAST"),typeof(System.Boolean)); + return _R45_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R45_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R45_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R45_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R45_LAST = value; + RaisePropertyChanged("R45_LAST"); + } + } + private System.Boolean _R10; + public System.Boolean R10 + { + get + { + + _R10=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R10"),typeof(System.Boolean)); + return _R10; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R10", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R10", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R10 = value; + RaisePropertyChanged("R10"); + } + } + private System.Boolean _R10_LAST; + public System.Boolean R10_LAST + { + get + { + + _R10_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R10_LAST"),typeof(System.Boolean)); + return _R10_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R10_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R10_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R10_LAST = value; + RaisePropertyChanged("R10_LAST"); + } + } + private System.Boolean _R11; + public System.Boolean R11 + { + get + { + + _R11=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R11"),typeof(System.Boolean)); + return _R11; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R11",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R11", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R11", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R11 = value; + RaisePropertyChanged("R11"); + } + } + private System.Boolean _R11_LAST; + public System.Boolean R11_LAST + { + get + { + + _R11_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R11_LAST"),typeof(System.Boolean)); + return _R11_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R11_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R11_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R11_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R11_LAST = value; + RaisePropertyChanged("R11_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class Tagwxr2 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.Boolean _R11; + public System.Boolean R11 + { + get + { + + _R11=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R11"),typeof(System.Boolean)); + return _R11; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R11",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R11", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R11", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R11 = value; + RaisePropertyChanged("R11"); + } + } + private System.Boolean _R00; + public System.Boolean R00 + { + get + { + + _R00=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R00"),typeof(System.Boolean)); + return _R00; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R00",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R00", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R00", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R00 = value; + RaisePropertyChanged("R00"); + } + } + private System.Boolean _R01; + public System.Boolean R01 + { + get + { + + _R01=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R01"),typeof(System.Boolean)); + return _R01; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R01",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R01", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R01", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R01 = value; + RaisePropertyChanged("R01"); + } + } + private System.Boolean _R02; + public System.Boolean R02 + { + get + { + + _R02=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R02"),typeof(System.Boolean)); + return _R02; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R02",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R02", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R02", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R02 = value; + RaisePropertyChanged("R02"); + } + } + private System.Boolean _R03; + public System.Boolean R03 + { + get + { + + _R03=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R03"),typeof(System.Boolean)); + return _R03; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R03",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R03", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R03", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R03 = value; + RaisePropertyChanged("R03"); + } + } + private System.Boolean _R04; + public System.Boolean R04 + { + get + { + + _R04=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R04"),typeof(System.Boolean)); + return _R04; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R04",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R04", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R04", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R04 = value; + RaisePropertyChanged("R04"); + } + } + private System.Boolean _R05; + public System.Boolean R05 + { + get + { + + _R05=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R05"),typeof(System.Boolean)); + return _R05; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R05",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R05", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R05", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R05 = value; + RaisePropertyChanged("R05"); + } + } + private System.Boolean _R06; + public System.Boolean R06 + { + get + { + + _R06=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R06"),typeof(System.Boolean)); + return _R06; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R06",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R06", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R06", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R06 = value; + RaisePropertyChanged("R06"); + } + } + private System.Boolean _R07; + public System.Boolean R07 + { + get + { + + _R07=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R07"),typeof(System.Boolean)); + return _R07; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R07",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R07", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R07", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R07 = value; + RaisePropertyChanged("R07"); + } + } + private System.Boolean _R10; + public System.Boolean R10 + { + get + { + + _R10=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R10"),typeof(System.Boolean)); + return _R10; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R10", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R10", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R10 = value; + RaisePropertyChanged("R10"); + } + } + private System.Boolean _R12; + public System.Boolean R12 + { + get + { + + _R12=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R12"),typeof(System.Boolean)); + return _R12; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R12",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R12", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R12", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R12 = value; + RaisePropertyChanged("R12"); + } + } + private System.Boolean _R13; + public System.Boolean R13 + { + get + { + + _R13=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R13"),typeof(System.Boolean)); + return _R13; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R13",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R13", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R13", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R13 = value; + RaisePropertyChanged("R13"); + } + } + private System.Boolean _R14; + public System.Boolean R14 + { + get + { + + _R14=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R14"),typeof(System.Boolean)); + return _R14; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R14",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R14", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R14", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R14 = value; + RaisePropertyChanged("R14"); + } + } + private System.Boolean _R41; + public System.Boolean R41 + { + get + { + + _R41=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R41"),typeof(System.Boolean)); + return _R41; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R41",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R41", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R41", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R41 = value; + RaisePropertyChanged("R41"); + } + } + private System.Boolean _R41_LAST; + public System.Boolean R41_LAST + { + get + { + + _R41_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R41_LAST"),typeof(System.Boolean)); + return _R41_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R41_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R41_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R41_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R41_LAST = value; + RaisePropertyChanged("R41_LAST"); + } + } + private System.Boolean _R42; + public System.Boolean R42 + { + get + { + + _R42=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R42"),typeof(System.Boolean)); + return _R42; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R42",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R42", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R42", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R42 = value; + RaisePropertyChanged("R42"); + } + } + private System.Boolean _R44; + public System.Boolean R44 + { + get + { + + _R44=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R44"),typeof(System.Boolean)); + return _R44; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R44",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R44", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R44", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R44 = value; + RaisePropertyChanged("R44"); + } + } + private System.Boolean _R44_LAST; + public System.Boolean R44_LAST + { + get + { + + _R44_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R44_LAST"),typeof(System.Boolean)); + return _R44_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R44_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R44_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R44_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R44_LAST = value; + RaisePropertyChanged("R44_LAST"); + } + } + private System.Boolean _R46; + public System.Boolean R46 + { + get + { + + _R46=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R46"),typeof(System.Boolean)); + return _R46; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R46",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R46", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R46", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R46 = value; + RaisePropertyChanged("R46"); + } + } + private System.Boolean _R46_LAST; + public System.Boolean R46_LAST + { + get + { + + _R46_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R46_LAST"),typeof(System.Boolean)); + return _R46_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R46_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R46_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R46_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R46_LAST = value; + RaisePropertyChanged("R46_LAST"); + } + } + private System.Boolean _R47; + public System.Boolean R47 + { + get + { + + _R47=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R47"),typeof(System.Boolean)); + return _R47; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R47",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R47", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R47", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R47 = value; + RaisePropertyChanged("R47"); + } + } + private System.Boolean _R50; + public System.Boolean R50 + { + get + { + + _R50=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R50"),typeof(System.Boolean)); + return _R50; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R50",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R50", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R50", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R50 = value; + RaisePropertyChanged("R50"); + } + } + private System.Boolean _R51; + public System.Boolean R51 + { + get + { + + _R51=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R51"),typeof(System.Boolean)); + return _R51; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R51",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R51", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R51", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R51 = value; + RaisePropertyChanged("R51"); + } + } + private System.Boolean _R52; + public System.Boolean R52 + { + get + { + + _R52=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R52"),typeof(System.Boolean)); + return _R52; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R52",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R52", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R52", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R52 = value; + RaisePropertyChanged("R52"); + } + } + private System.Int16 _wl=0; + public System.Int16 wl + { + get + { + + return _wl; + } + set + { + _wl = value; + RaisePropertyChanged("wl"); + } + } + private System.Boolean _w143=false; + public System.Boolean w143 + { + get + { + + return _w143; + } + set + { + _w143 = value; + RaisePropertyChanged("w143"); + } + } + private System.Int16 _w2=0; + public System.Int16 w2 + { + get + { + + return _w2; + } + set + { + _w2 = value; + RaisePropertyChanged("w2"); + } + } + private System.Boolean _w245=false; + public System.Boolean w245 + { + get + { + + return _w245; + } + set + { + _w245 = value; + RaisePropertyChanged("w245"); + } + } + private System.Boolean _R43; + public System.Boolean R43 + { + get + { + + _R43=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R43"),typeof(System.Boolean)); + return _R43; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R43",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R43", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R43", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R43 = value; + RaisePropertyChanged("R43"); + } + } + private System.Boolean _R43_LAST; + public System.Boolean R43_LAST + { + get + { + + _R43_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R43_LAST"),typeof(System.Boolean)); + return _R43_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R43_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R43_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R43_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R43_LAST = value; + RaisePropertyChanged("R43_LAST"); + } + } + private System.Boolean _R45; + public System.Boolean R45 + { + get + { + + _R45=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R45"),typeof(System.Boolean)); + return _R45; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R45",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R45", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R45", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R45 = value; + RaisePropertyChanged("R45"); + } + } + private System.Boolean _R45_LAST; + public System.Boolean R45_LAST + { + get + { + + _R45_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R45_LAST"),typeof(System.Boolean)); + return _R45_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R45_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R45_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R45_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R45_LAST = value; + RaisePropertyChanged("R45_LAST"); + } + } + private System.Boolean _R10_LAST; + public System.Boolean R10_LAST + { + get + { + + _R10_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R10_LAST"),typeof(System.Boolean)); + return _R10_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R10_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R10_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R10_LAST = value; + RaisePropertyChanged("R10_LAST"); + } + } + private System.Boolean _R11_LAST; + public System.Boolean R11_LAST + { + get + { + + _R11_LAST=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("缁村笇灏旀姄鑷�.R11_LAST"),typeof(System.Boolean)); + return _R11_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R11_LAST",value.ToString(),"缁村笇灏旀姄鑷�Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "缁村笇灏旀姄鑷�.R11_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "缁村笇灏旀姄鑷�.R11_LAST", + paramValue = value.ToString() + } + } + },"缁村笇灏旀姄鑷�Queue","","")==false) + { + return; + } + _R11_LAST = value; + RaisePropertyChanged("R11_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagGlobal : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _SettingsOver=0; + public System.UInt16 SettingsOver + { + get + { + + return _SettingsOver; + } + set + { + _SettingsOver = value; + RaisePropertyChanged("SettingsOver"); + } + } + private System.String _w缁磋タ灏�宸︾洏; + public System.String w缁磋タ灏�宸︾洏 + { + get + { + + return _w缁磋タ灏�宸︾洏; + } + set + { + _w缁磋タ灏�宸︾洏 = value; + RaisePropertyChanged("w缁磋タ灏�宸︾洏"); + } + } + private System.String _w缁磋タ灏�鍙崇洏; + public System.String w缁磋タ灏�鍙崇洏 + { + get + { + + return _w缁磋タ灏�鍙崇洏; + } + set + { + _w缁磋タ灏�鍙崇洏 = value; + RaisePropertyChanged("w缁磋タ灏�鍙崇洏"); + } + } + private System.String _w缁磋タ灏�宸︾洏; + public System.String w缁磋タ灏�宸︾洏 + { + get + { + + return _w缁磋タ灏�宸︾洏; + } + set + { + _w缁磋タ灏�宸︾洏 = value; + RaisePropertyChanged("w缁磋タ灏�宸︾洏"); + } + } + private System.String _w缁磋タ灏�鍙崇洏; + public System.String w缁磋タ灏�鍙崇洏 + { + get + { + + return _w缁磋タ灏�鍙崇洏; + } + set + { + _w缁磋タ灏�鍙崇洏 = value; + RaisePropertyChanged("w缁磋タ灏�鍙崇洏"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagJs1 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _D1220; + public System.UInt16 D1220 + { + get + { + + _D1220=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1220"),typeof(System.UInt16)); + return _D1220; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1220",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1220", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1220", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1220 = value; + RaisePropertyChanged("D1220"); + } + } + private System.UInt16 _D1221; + public System.UInt16 D1221 + { + get + { + + _D1221=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1221"),typeof(System.UInt16)); + return _D1221; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1221",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1221", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1221", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1221 = value; + RaisePropertyChanged("D1221"); + } + } + private System.UInt16 _D1222; + public System.UInt16 D1222 + { + get + { + + _D1222=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1222"),typeof(System.UInt16)); + return _D1222; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1222",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1222", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1222", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1222 = value; + RaisePropertyChanged("D1222"); + } + } + private System.UInt16 _D1223; + public System.UInt16 D1223 + { + get + { + + _D1223=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1223"),typeof(System.UInt16)); + return _D1223; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1223",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1223", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1223", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1223 = value; + RaisePropertyChanged("D1223"); + } + } + private System.UInt16 _D1224; + public System.UInt16 D1224 + { + get + { + + _D1224=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1224"),typeof(System.UInt16)); + return _D1224; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1224",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1224", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1224", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1224 = value; + RaisePropertyChanged("D1224"); + } + } + private System.UInt16 _D1225; + public System.UInt16 D1225 + { + get + { + + _D1225=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1225"),typeof(System.UInt16)); + return _D1225; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1225",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1225", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1225", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1225 = value; + RaisePropertyChanged("D1225"); + } + } + private System.UInt16 _D1226; + public System.UInt16 D1226 + { + get + { + + _D1226=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1226"),typeof(System.UInt16)); + return _D1226; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1226",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1226", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1226", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1226 = value; + RaisePropertyChanged("D1226"); + } + } + private System.UInt16 _D1227; + public System.UInt16 D1227 + { + get + { + + _D1227=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1227"),typeof(System.UInt16)); + return _D1227; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1227",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1227", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1227", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1227 = value; + RaisePropertyChanged("D1227"); + } + } + private System.UInt16 _D1228; + public System.UInt16 D1228 + { + get + { + + _D1228=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1228"),typeof(System.UInt16)); + return _D1228; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1228",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1228", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1228", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1228 = value; + RaisePropertyChanged("D1228"); + } + } + private System.UInt16 _D1229; + public System.UInt16 D1229 + { + get + { + + _D1229=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1229"),typeof(System.UInt16)); + return _D1229; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1229",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1229", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1229", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1229 = value; + RaisePropertyChanged("D1229"); + } + } + private System.UInt16 _D1212; + public System.UInt16 D1212 + { + get + { + + _D1212=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1202"),typeof(System.UInt16)); + return _D1212; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1202",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1202", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1202", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1212 = value; + RaisePropertyChanged("D1212"); + } + } + private System.UInt16 _D1212_LAST; + public System.UInt16 D1212_LAST + { + get + { + + _D1212_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1202_LAST"),typeof(System.UInt16)); + return _D1212_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1202_LAST",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1202_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1202_LAST", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1212_LAST = value; + RaisePropertyChanged("D1212_LAST"); + } + } + private System.UInt16 _D1213; + public System.UInt16 D1213 + { + get + { + + _D1213=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1203"),typeof(System.UInt16)); + return _D1213; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1203",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1203", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1203", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1213 = value; + RaisePropertyChanged("D1213"); + } + } + private System.UInt16 _D1213_LAST; + public System.UInt16 D1213_LAST + { + get + { + + _D1213_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『1.D1203_LAST"),typeof(System.UInt16)); + return _D1213_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『1.D1203_LAST",value.ToString(),"Js鎹烽『1Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『1.D1203_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『1.D1203_LAST", + paramValue = value.ToString() + } + } + },"Js鎹烽『1Queue","","")==false) + { + return; + } + _D1213_LAST = value; + RaisePropertyChanged("D1213_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagJs2 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _D1220; + public System.UInt16 D1220 + { + get + { + + _D1220=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1220"),typeof(System.UInt16)); + return _D1220; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1220",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1220", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1220", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1220 = value; + RaisePropertyChanged("D1220"); + } + } + private System.UInt16 _D1221; + public System.UInt16 D1221 + { + get + { + + _D1221=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1221"),typeof(System.UInt16)); + return _D1221; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1221",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1221", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1221", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1221 = value; + RaisePropertyChanged("D1221"); + } + } + private System.UInt16 _D1222; + public System.UInt16 D1222 + { + get + { + + _D1222=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1222"),typeof(System.UInt16)); + return _D1222; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1222",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1222", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1222", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1222 = value; + RaisePropertyChanged("D1222"); + } + } + private System.UInt16 _D1223; + public System.UInt16 D1223 + { + get + { + + _D1223=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1223"),typeof(System.UInt16)); + return _D1223; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1223",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1223", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1223", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1223 = value; + RaisePropertyChanged("D1223"); + } + } + private System.UInt16 _D1224; + public System.UInt16 D1224 + { + get + { + + _D1224=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1224"),typeof(System.UInt16)); + return _D1224; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1224",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1224", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1224", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1224 = value; + RaisePropertyChanged("D1224"); + } + } + private System.UInt16 _D1225; + public System.UInt16 D1225 + { + get + { + + _D1225=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1225"),typeof(System.UInt16)); + return _D1225; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1225",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1225", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1225", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1225 = value; + RaisePropertyChanged("D1225"); + } + } + private System.UInt16 _D1226; + public System.UInt16 D1226 + { + get + { + + _D1226=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1226"),typeof(System.UInt16)); + return _D1226; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1226",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1226", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1226", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1226 = value; + RaisePropertyChanged("D1226"); + } + } + private System.UInt16 _D1227; + public System.UInt16 D1227 + { + get + { + + _D1227=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1227"),typeof(System.UInt16)); + return _D1227; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1227",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1227", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1227", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1227 = value; + RaisePropertyChanged("D1227"); + } + } + private System.UInt16 _D1228; + public System.UInt16 D1228 + { + get + { + + _D1228=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1228"),typeof(System.UInt16)); + return _D1228; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1228",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1228", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1228", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1228 = value; + RaisePropertyChanged("D1228"); + } + } + private System.UInt16 _D1229; + public System.UInt16 D1229 + { + get + { + + _D1229=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1229"),typeof(System.UInt16)); + return _D1229; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1229",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1229", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1229", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1229 = value; + RaisePropertyChanged("D1229"); + } + } + private System.UInt16 _D1212; + public System.UInt16 D1212 + { + get + { + + _D1212=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1202"),typeof(System.UInt16)); + return _D1212; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1202",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1202", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1202", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1212 = value; + RaisePropertyChanged("D1212"); + } + } + private System.UInt16 _D1212_LAST; + public System.UInt16 D1212_LAST + { + get + { + + _D1212_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1202_LAST"),typeof(System.UInt16)); + return _D1212_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1202_LAST",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1202_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1202_LAST", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1212_LAST = value; + RaisePropertyChanged("D1212_LAST"); + } + } + private System.UInt16 _D1213; + public System.UInt16 D1213 + { + get + { + + _D1213=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1203"),typeof(System.UInt16)); + return _D1213; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1203",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1203", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1203", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1213 = value; + RaisePropertyChanged("D1213"); + } + } + private System.UInt16 _D1213_LAST; + public System.UInt16 D1213_LAST + { + get + { + + _D1213_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("Js鎹烽『2.D1203_LAST"),typeof(System.UInt16)); + return _D1213_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("Js鎹烽『2.D1203_LAST",value.ToString(),"Js鎹烽『2Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "Js鎹烽『2.D1203_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "Js鎹烽『2.D1203_LAST", + paramValue = value.ToString() + } + } + },"Js鎹烽『2Queue","","")==false) + { + return; + } + _D1213_LAST = value; + RaisePropertyChanged("D1213_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagS1025 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagFNK1 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _D2207; + public System.UInt16 D2207 + { + get + { + + _D2207=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2207"),typeof(System.UInt16)); + return _D2207; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2207",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2207", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2207", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2207 = value; + RaisePropertyChanged("D2207"); + } + } + private System.UInt16 _D2200; + public System.UInt16 D2200 + { + get + { + + _D2200=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2200"),typeof(System.UInt16)); + return _D2200; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2200",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2200", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2200", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2200 = value; + RaisePropertyChanged("D2200"); + } + } + private System.UInt16 _D2201; + public System.UInt16 D2201 + { + get + { + + _D2201=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2201"),typeof(System.UInt16)); + return _D2201; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2201",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2201", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2201", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2201 = value; + RaisePropertyChanged("D2201"); + } + } + private System.UInt16 _D2202; + public System.UInt16 D2202 + { + get + { + + _D2202=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2202"),typeof(System.UInt16)); + return _D2202; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2202",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2202", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2202", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2202 = value; + RaisePropertyChanged("D2202"); + } + } + private System.UInt16 _D2203; + public System.UInt16 D2203 + { + get + { + + _D2203=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2203"),typeof(System.UInt16)); + return _D2203; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2203",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2203", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2203", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2203 = value; + RaisePropertyChanged("D2203"); + } + } + private System.UInt16 _D2204; + public System.UInt16 D2204 + { + get + { + + _D2204=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2204"),typeof(System.UInt16)); + return _D2204; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2204",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2204", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2204", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2204 = value; + RaisePropertyChanged("D2204"); + } + } + private System.UInt16 _D2205; + public System.UInt16 D2205 + { + get + { + + _D2205=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2205"),typeof(System.UInt16)); + return _D2205; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2205",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2205", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2205", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2205 = value; + RaisePropertyChanged("D2205"); + } + } + private System.UInt16 _D2206; + public System.UInt16 D2206 + { + get + { + + _D2206=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2206"),typeof(System.UInt16)); + return _D2206; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2206",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2206", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2206", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2206 = value; + RaisePropertyChanged("D2206"); + } + } + private System.UInt16 _D2208; + public System.UInt16 D2208 + { + get + { + + _D2208=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2208"),typeof(System.UInt16)); + return _D2208; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2208",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2208", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2208", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2208 = value; + RaisePropertyChanged("D2208"); + } + } + private System.UInt16 _D2209; + public System.UInt16 D2209 + { + get + { + + _D2209=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2209"),typeof(System.UInt16)); + return _D2209; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2209",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2209", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2209", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2209 = value; + RaisePropertyChanged("D2209"); + } + } + private System.UInt16 _D2210; + public System.UInt16 D2210 + { + get + { + + _D2210=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2210"),typeof(System.UInt16)); + return _D2210; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2210",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2210", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2210", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2210 = value; + RaisePropertyChanged("D2210"); + } + } + private System.UInt16 _D2211; + public System.UInt16 D2211 + { + get + { + + _D2211=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2211"),typeof(System.UInt16)); + return _D2211; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2211",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2211", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2211", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2211 = value; + RaisePropertyChanged("D2211"); + } + } + private System.UInt16 _D2212; + public System.UInt16 D2212 + { + get + { + + _D2212=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2212"),typeof(System.UInt16)); + return _D2212; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2212",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2212", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2212", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2212 = value; + RaisePropertyChanged("D2212"); + } + } + private System.UInt16 _D2212_LAST; + public System.UInt16 D2212_LAST + { + get + { + + _D2212_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2212_LAST"),typeof(System.UInt16)); + return _D2212_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2212_LAST",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2212_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2212_LAST", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2212_LAST = value; + RaisePropertyChanged("D2212_LAST"); + } + } + private System.UInt16 _D2213; + public System.UInt16 D2213 + { + get + { + + _D2213=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2213"),typeof(System.UInt16)); + return _D2213; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2213",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2213", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2213", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2213 = value; + RaisePropertyChanged("D2213"); + } + } + private System.UInt16 _D2214; + public System.UInt16 D2214 + { + get + { + + _D2214=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2214"),typeof(System.UInt16)); + return _D2214; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2214",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2214", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2214", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2214 = value; + RaisePropertyChanged("D2214"); + } + } + private System.UInt16 _D2215; + public System.UInt16 D2215 + { + get + { + + _D2215=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2215"),typeof(System.UInt16)); + return _D2215; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2215",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2215", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2215", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2215 = value; + RaisePropertyChanged("D2215"); + } + } + private System.UInt16 _D2216; + public System.UInt16 D2216 + { + get + { + + _D2216=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2216"),typeof(System.UInt16)); + return _D2216; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2216",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2216", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2216", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2216 = value; + RaisePropertyChanged("D2216"); + } + } + private System.UInt16 _D2217; + public System.UInt16 D2217 + { + get + { + + _D2217=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2217"),typeof(System.UInt16)); + return _D2217; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2217",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2217", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2217", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2217 = value; + RaisePropertyChanged("D2217"); + } + } + private System.UInt16 _D2217_LAST; + public System.UInt16 D2217_LAST + { + get + { + + _D2217_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2217_LAST"),typeof(System.UInt16)); + return _D2217_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2217_LAST",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2217_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2217_LAST", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2217_LAST = value; + RaisePropertyChanged("D2217_LAST"); + } + } + private System.UInt16 _D2218; + public System.UInt16 D2218 + { + get + { + + _D2218=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2218"),typeof(System.UInt16)); + return _D2218; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2218",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2218", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2218", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2218 = value; + RaisePropertyChanged("D2218"); + } + } + private System.UInt16 _D2219; + public System.UInt16 D2219 + { + get + { + + _D2219=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2219"),typeof(System.UInt16)); + return _D2219; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2219",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2219", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2219", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2219 = value; + RaisePropertyChanged("D2219"); + } + } + private System.UInt16 _D2220; + public System.UInt16 D2220 + { + get + { + + _D2220=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2220"),typeof(System.UInt16)); + return _D2220; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2220",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2220", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2220", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2220 = value; + RaisePropertyChanged("D2220"); + } + } + private System.UInt16 _D2221; + public System.UInt16 D2221 + { + get + { + + _D2221=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2221"),typeof(System.UInt16)); + return _D2221; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2221",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2221", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2221", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2221 = value; + RaisePropertyChanged("D2221"); + } + } + private System.UInt16 _D2222; + public System.UInt16 D2222 + { + get + { + + _D2222=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2222"),typeof(System.UInt16)); + return _D2222; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2222",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2222", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2222", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2222 = value; + RaisePropertyChanged("D2222"); + } + } + private System.UInt16 _D2223; + public System.UInt16 D2223 + { + get + { + + _D2223=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2223"),typeof(System.UInt16)); + return _D2223; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2223",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2223", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2223", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2223 = value; + RaisePropertyChanged("D2223"); + } + } + private System.UInt16 _D2224; + public System.UInt16 D2224 + { + get + { + + _D2224=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2224"),typeof(System.UInt16)); + return _D2224; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2224",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2224", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2224", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2224 = value; + RaisePropertyChanged("D2224"); + } + } + private System.UInt16 _D2225; + public System.UInt16 D2225 + { + get + { + + _D2225=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2225"),typeof(System.UInt16)); + return _D2225; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2225",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2225", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2225", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2225 = value; + RaisePropertyChanged("D2225"); + } + } + private System.UInt16 _D2226; + public System.UInt16 D2226 + { + get + { + + _D2226=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2226"),typeof(System.UInt16)); + return _D2226; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2226",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2226", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2226", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2226 = value; + RaisePropertyChanged("D2226"); + } + } + private System.UInt16 _D2227; + public System.UInt16 D2227 + { + get + { + + _D2227=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2227"),typeof(System.UInt16)); + return _D2227; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2227",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2227", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2227", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2227 = value; + RaisePropertyChanged("D2227"); + } + } + private System.UInt16 _D2228; + public System.UInt16 D2228 + { + get + { + + _D2228=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2228"),typeof(System.UInt16)); + return _D2228; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2228",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2228", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2228", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2228 = value; + RaisePropertyChanged("D2228"); + } + } + private System.UInt16 _D2229; + public System.UInt16 D2229 + { + get + { + + _D2229=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2229"),typeof(System.UInt16)); + return _D2229; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2229",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2229", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2229", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2229 = value; + RaisePropertyChanged("D2229"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagFNK2 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _D2204; + public System.UInt16 D2204 + { + get + { + + _D2204=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2204"),typeof(System.UInt16)); + return _D2204; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2204",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2204", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2204", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2204 = value; + RaisePropertyChanged("D2204"); + } + } + private System.UInt16 _D2200; + public System.UInt16 D2200 + { + get + { + + _D2200=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2200"),typeof(System.UInt16)); + return _D2200; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2200",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2200", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2200", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2200 = value; + RaisePropertyChanged("D2200"); + } + } + private System.UInt16 _D2201; + public System.UInt16 D2201 + { + get + { + + _D2201=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2201"),typeof(System.UInt16)); + return _D2201; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2201",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2201", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2201", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2201 = value; + RaisePropertyChanged("D2201"); + } + } + private System.UInt16 _D2202; + public System.UInt16 D2202 + { + get + { + + _D2202=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2202"),typeof(System.UInt16)); + return _D2202; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2202",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2202", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2202", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2202 = value; + RaisePropertyChanged("D2202"); + } + } + private System.UInt16 _D2203; + public System.UInt16 D2203 + { + get + { + + _D2203=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2203"),typeof(System.UInt16)); + return _D2203; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2203",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2203", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2203", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2203 = value; + RaisePropertyChanged("D2203"); + } + } + private System.UInt16 _D2205; + public System.UInt16 D2205 + { + get + { + + _D2205=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2205"),typeof(System.UInt16)); + return _D2205; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2205",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2205", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2205", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2205 = value; + RaisePropertyChanged("D2205"); + } + } + private System.UInt16 _D2206; + public System.UInt16 D2206 + { + get + { + + _D2206=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2206"),typeof(System.UInt16)); + return _D2206; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2206",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2206", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2206", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2206 = value; + RaisePropertyChanged("D2206"); + } + } + private System.UInt16 _D2207; + public System.UInt16 D2207 + { + get + { + + _D2207=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2207"),typeof(System.UInt16)); + return _D2207; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2207",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2207", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2207", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2207 = value; + RaisePropertyChanged("D2207"); + } + } + private System.UInt16 _D2208; + public System.UInt16 D2208 + { + get + { + + _D2208=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2208"),typeof(System.UInt16)); + return _D2208; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2208",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2208", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2208", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2208 = value; + RaisePropertyChanged("D2208"); + } + } + private System.UInt16 _D2209; + public System.UInt16 D2209 + { + get + { + + _D2209=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2209"),typeof(System.UInt16)); + return _D2209; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2209",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2209", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2209", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2209 = value; + RaisePropertyChanged("D2209"); + } + } + private System.UInt16 _D2210; + public System.UInt16 D2210 + { + get + { + + _D2210=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2210"),typeof(System.UInt16)); + return _D2210; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2210",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2210", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2210", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2210 = value; + RaisePropertyChanged("D2210"); + } + } + private System.UInt16 _D2211; + public System.UInt16 D2211 + { + get + { + + _D2211=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2211"),typeof(System.UInt16)); + return _D2211; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2211",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2211", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2211", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2211 = value; + RaisePropertyChanged("D2211"); + } + } + private System.UInt16 _D2212; + public System.UInt16 D2212 + { + get + { + + _D2212=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2212"),typeof(System.UInt16)); + return _D2212; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2212",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2212", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2212", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2212 = value; + RaisePropertyChanged("D2212"); + } + } + private System.UInt16 _D2212_LAST; + public System.UInt16 D2212_LAST + { + get + { + + _D2212_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2212_LAST"),typeof(System.UInt16)); + return _D2212_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2212_LAST",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2212_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2212_LAST", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2212_LAST = value; + RaisePropertyChanged("D2212_LAST"); + } + } + private System.UInt16 _D2213; + public System.UInt16 D2213 + { + get + { + + _D2213=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2213"),typeof(System.UInt16)); + return _D2213; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2213",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2213", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2213", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2213 = value; + RaisePropertyChanged("D2213"); + } + } + private System.UInt16 _D2214; + public System.UInt16 D2214 + { + get + { + + _D2214=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2214"),typeof(System.UInt16)); + return _D2214; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2214",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2214", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2214", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2214 = value; + RaisePropertyChanged("D2214"); + } + } + private System.UInt16 _D2215; + public System.UInt16 D2215 + { + get + { + + _D2215=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2215"),typeof(System.UInt16)); + return _D2215; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2215",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2215", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2215", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2215 = value; + RaisePropertyChanged("D2215"); + } + } + private System.UInt16 _D2216; + public System.UInt16 D2216 + { + get + { + + _D2216=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2216"),typeof(System.UInt16)); + return _D2216; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2216",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2216", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2216", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2216 = value; + RaisePropertyChanged("D2216"); + } + } + private System.UInt16 _D2217; + public System.UInt16 D2217 + { + get + { + + _D2217=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2217"),typeof(System.UInt16)); + return _D2217; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2217",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2217", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2217", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2217 = value; + RaisePropertyChanged("D2217"); + } + } + private System.UInt16 _D2217_LAST; + public System.UInt16 D2217_LAST + { + get + { + + _D2217_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2217_LAST"),typeof(System.UInt16)); + return _D2217_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2217_LAST",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2217_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2217_LAST", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2217_LAST = value; + RaisePropertyChanged("D2217_LAST"); + } + } + private System.UInt16 _D2218; + public System.UInt16 D2218 + { + get + { + + _D2218=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2218"),typeof(System.UInt16)); + return _D2218; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2218",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2218", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2218", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2218 = value; + RaisePropertyChanged("D2218"); + } + } + private System.UInt16 _D2219; + public System.UInt16 D2219 + { + get + { + + _D2219=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2219"),typeof(System.UInt16)); + return _D2219; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2219",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2219", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2219", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2219 = value; + RaisePropertyChanged("D2219"); + } + } + private System.UInt16 _D2220; + public System.UInt16 D2220 + { + get + { + + _D2220=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2220"),typeof(System.UInt16)); + return _D2220; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2220",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2220", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2220", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2220 = value; + RaisePropertyChanged("D2220"); + } + } + private System.UInt16 _D2221; + public System.UInt16 D2221 + { + get + { + + _D2221=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2221"),typeof(System.UInt16)); + return _D2221; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2221",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2221", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2221", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2221 = value; + RaisePropertyChanged("D2221"); + } + } + private System.UInt16 _D2222; + public System.UInt16 D2222 + { + get + { + + _D2222=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2222"),typeof(System.UInt16)); + return _D2222; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2222",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2222", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2222", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2222 = value; + RaisePropertyChanged("D2222"); + } + } + private System.UInt16 _D2223; + public System.UInt16 D2223 + { + get + { + + _D2223=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2223"),typeof(System.UInt16)); + return _D2223; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2223",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2223", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2223", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2223 = value; + RaisePropertyChanged("D2223"); + } + } + private System.UInt16 _D2224; + public System.UInt16 D2224 + { + get + { + + _D2224=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2224"),typeof(System.UInt16)); + return _D2224; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2224",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2224", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2224", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2224 = value; + RaisePropertyChanged("D2224"); + } + } + private System.UInt16 _D2225; + public System.UInt16 D2225 + { + get + { + + _D2225=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2225"),typeof(System.UInt16)); + return _D2225; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2225",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2225", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2225", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2225 = value; + RaisePropertyChanged("D2225"); + } + } + private System.UInt16 _D2226; + public System.UInt16 D2226 + { + get + { + + _D2226=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2226"),typeof(System.UInt16)); + return _D2226; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2226",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2226", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2226", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2226 = value; + RaisePropertyChanged("D2226"); + } + } + private System.UInt16 _D2227; + public System.UInt16 D2227 + { + get + { + + _D2227=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2227"),typeof(System.UInt16)); + return _D2227; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2227",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2227", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2227", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2227 = value; + RaisePropertyChanged("D2227"); + } + } + private System.UInt16 _D2228; + public System.UInt16 D2228 + { + get + { + + _D2228=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2228"),typeof(System.UInt16)); + return _D2228; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2228",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2228", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2228", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2228 = value; + RaisePropertyChanged("D2228"); + } + } + private System.UInt16 _D2229; + public System.UInt16 D2229 + { + get + { + + _D2229=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("p鍙戦偅绉�涓嬬嚎.D2229"),typeof(System.UInt16)); + return _D2229; + } + set + { + //Conn.榛樿Redis.SetValue("p鍙戦偅绉�涓嬬嚎.D2229",value.ToString(),"p鍙戦偅绉�涓嬬嚎Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "p鍙戦偅绉�涓嬬嚎.D2229", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "p鍙戦偅绉�涓嬬嚎.D2229", + paramValue = value.ToString() + } + } + },"p鍙戦偅绉�涓嬬嚎Queue","","")==false) + { + return; + } + _D2229 = value; + RaisePropertyChanged("D2229"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSA1019 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.Boolean _SreadCan; + public System.Boolean SreadCan + { + get + { + + _SreadCan=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1019鍙栬揣浜や簰.SreadCan"),typeof(System.Boolean)); + return _SreadCan; + } + set + { + //Conn.榛樿Redis.SetValue("A1019鍙栬揣浜や簰.SreadCan",value.ToString(),"A1019鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1019鍙栬揣浜や簰.SreadCan", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1019鍙栬揣浜や簰.SreadCan", + paramValue = value.ToString() + } + } + },"A1019鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SreadCan = value; + RaisePropertyChanged("SreadCan"); + } + } + private System.Boolean _Ssetreq; + public System.Boolean Ssetreq + { + get + { + + _Ssetreq=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1019鍙栬揣浜や簰.Ssetreq"),typeof(System.Boolean)); + return _Ssetreq; + } + set + { + //Conn.榛樿Redis.SetValue("A1019鍙栬揣浜や簰.Ssetreq",value.ToString(),"A1019鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1019鍙栬揣浜や簰.Ssetreq", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1019鍙栬揣浜や簰.Ssetreq", + paramValue = value.ToString() + } + } + },"A1019鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _Ssetreq = value; + RaisePropertyChanged("Ssetreq"); + } + } + private System.Boolean _Senable; + public System.Boolean Senable + { + get + { + + _Senable=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1019鍙栬揣浜や簰.Senable"),typeof(System.Boolean)); + return _Senable; + } + set + { + //Conn.榛樿Redis.SetValue("A1019鍙栬揣浜や簰.Senable",value.ToString(),"A1019鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1019鍙栬揣浜や簰.Senable", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1019鍙栬揣浜や簰.Senable", + paramValue = value.ToString() + } + } + },"A1019鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _Senable = value; + RaisePropertyChanged("Senable"); + } + } + private System.Boolean _SOver; + public System.Boolean SOver + { + get + { + + _SOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1019鍙栬揣浜や簰.SOver"),typeof(System.Boolean)); + return _SOver; + } + set + { + //Conn.榛樿Redis.SetValue("A1019鍙栬揣浜や簰.SOver",value.ToString(),"A1019鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1019鍙栬揣浜や簰.SOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1019鍙栬揣浜や簰.SOver", + paramValue = value.ToString() + } + } + },"A1019鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SOver = value; + RaisePropertyChanged("SOver"); + } + } + private System.Boolean _SreadSsxOver; + public System.Boolean SreadSsxOver + { + get + { + + _SreadSsxOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1019鍙栬揣浜や簰.SreadSsxOver"),typeof(System.Boolean)); + return _SreadSsxOver; + } + set + { + //Conn.榛樿Redis.SetValue("A1019鍙栬揣浜や簰.SreadSsxOver",value.ToString(),"A1019鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1019鍙栬揣浜や簰.SreadSsxOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1019鍙栬揣浜や簰.SreadSsxOver", + paramValue = value.ToString() + } + } + },"A1019鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SreadSsxOver = value; + RaisePropertyChanged("SreadSsxOver"); + } + } + private System.Boolean _Sagverr; + public System.Boolean Sagverr + { + get + { + + _Sagverr=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1019鍙栬揣浜や簰.Sagverr"),typeof(System.Boolean)); + return _Sagverr; + } + set + { + //Conn.榛樿Redis.SetValue("A1019鍙栬揣浜や簰.Sagverr",value.ToString(),"A1019鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1019鍙栬揣浜や簰.Sagverr", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1019鍙栬揣浜や簰.Sagverr", + paramValue = value.ToString() + } + } + },"A1019鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _Sagverr = value; + RaisePropertyChanged("Sagverr"); + } + } + private System.UInt16 _StaskMode; + public System.UInt16 StaskMode + { + get + { + + _StaskMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1019鍙栬揣浜や簰.StaskMode"),typeof(System.UInt16)); + return _StaskMode; + } + set + { + //Conn.榛樿Redis.SetValue("A1019鍙栬揣浜や簰.StaskMode",value.ToString(),"A1019鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1019鍙栬揣浜や簰.StaskMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1019鍙栬揣浜や簰.StaskMode", + paramValue = value.ToString() + } + } + },"A1019鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode = value; + RaisePropertyChanged("StaskMode"); + } + } + private System.UInt16 _StaskMode_LAST; + public System.UInt16 StaskMode_LAST + { + get + { + + _StaskMode_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1019鍙栬揣浜や簰.StaskMode_LAST"),typeof(System.UInt16)); + return _StaskMode_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("A1019鍙栬揣浜や簰.StaskMode_LAST",value.ToString(),"A1019鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1019鍙栬揣浜や簰.StaskMode_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1019鍙栬揣浜や簰.StaskMode_LAST", + paramValue = value.ToString() + } + } + },"A1019鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode_LAST = value; + RaisePropertyChanged("StaskMode_LAST"); + } + } + private System.Boolean _SreadAgvover; + public System.Boolean SreadAgvover + { + get + { + + _SreadAgvover=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1019鍙栬揣浜や簰.SreadAgvover"),typeof(System.Boolean)); + return _SreadAgvover; + } + set + { + //Conn.榛樿Redis.SetValue("A1019鍙栬揣浜や簰.SreadAgvover",value.ToString(),"A1019鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1019鍙栬揣浜や簰.SreadAgvover", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1019鍙栬揣浜や簰.SreadAgvover", + paramValue = value.ToString() + } + } + },"A1019鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SreadAgvover = value; + RaisePropertyChanged("SreadAgvover"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1019Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1019Read.Rstate",value.ToString(),"S1019ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1019Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1019Read.Rstate", + paramValue = value.ToString() + } + } + },"S1019ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1019Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1019Read.RTaskNo",value.ToString(),"S1019ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1019Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1019Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1019ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1019Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1019Read.RSbit",value.ToString(),"S1019ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1019Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1019Read.RSbit", + paramValue = value.ToString() + } + } + },"S1019ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1019Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1019Read.REbit",value.ToString(),"S1019ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1019Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1019Read.REbit", + paramValue = value.ToString() + } + } + },"S1019ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1019Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1019Read.RworkMode",value.ToString(),"S1019ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1019Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1019Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1019ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1019Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1019Read.RtaskState",value.ToString(),"S1019ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1019Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1019Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1019ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1019Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1019Read.R5绌洪棽",value.ToString(),"S1019ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1019Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1019Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1019ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1019Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1019Read.R鎵樼洏鐮�,value.ToString(),"S1019ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1019Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1019Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1019ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _RtaskState_LAST; + public System.UInt16 RtaskState_LAST + { + get + { + + _RtaskState_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1019Read.RtaskState_LAST"),typeof(System.UInt16)); + return _RtaskState_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1019Read.RtaskState_LAST",value.ToString(),"S1019ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1019Read.RtaskState_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1019Read.RtaskState_LAST", + paramValue = value.ToString() + } + } + },"S1019ReadQueue","","")==false) + { + return; + } + _RtaskState_LAST = value; + RaisePropertyChanged("RtaskState_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSA1022 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _StaskMode_LAST; + public System.UInt16 StaskMode_LAST + { + get + { + + _StaskMode_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1022鏀捐揣浜や簰.StaskMode_LAST"),typeof(System.UInt16)); + return _StaskMode_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("A1022鏀捐揣浜や簰.StaskMode_LAST",value.ToString(),"A1022鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1022鏀捐揣浜や簰.StaskMode_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1022鏀捐揣浜や簰.StaskMode_LAST", + paramValue = value.ToString() + } + } + },"A1022鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode_LAST = value; + RaisePropertyChanged("StaskMode_LAST"); + } + } + private System.Boolean _Ssetreq; + public System.Boolean Ssetreq + { + get + { + + _Ssetreq=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1022鏀捐揣浜や簰.Ssetreq"),typeof(System.Boolean)); + return _Ssetreq; + } + set + { + //Conn.榛樿Redis.SetValue("A1022鏀捐揣浜や簰.Ssetreq",value.ToString(),"A1022鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1022鏀捐揣浜や簰.Ssetreq", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1022鏀捐揣浜や簰.Ssetreq", + paramValue = value.ToString() + } + } + },"A1022鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _Ssetreq = value; + RaisePropertyChanged("Ssetreq"); + } + } + private System.Boolean _Senable; + public System.Boolean Senable + { + get + { + + _Senable=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1022鏀捐揣浜や簰.Senable"),typeof(System.Boolean)); + return _Senable; + } + set + { + //Conn.榛樿Redis.SetValue("A1022鏀捐揣浜や簰.Senable",value.ToString(),"A1022鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1022鏀捐揣浜や簰.Senable", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1022鏀捐揣浜や簰.Senable", + paramValue = value.ToString() + } + } + },"A1022鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _Senable = value; + RaisePropertyChanged("Senable"); + } + } + private System.Boolean _SOver; + public System.Boolean SOver + { + get + { + + _SOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1022鏀捐揣浜や簰.SOver"),typeof(System.Boolean)); + return _SOver; + } + set + { + //Conn.榛樿Redis.SetValue("A1022鏀捐揣浜や簰.SOver",value.ToString(),"A1022鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1022鏀捐揣浜や簰.SOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1022鏀捐揣浜や簰.SOver", + paramValue = value.ToString() + } + } + },"A1022鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SOver = value; + RaisePropertyChanged("SOver"); + } + } + private System.Boolean _SreadOver; + public System.Boolean SreadOver + { + get + { + + _SreadOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1022鏀捐揣浜や簰.SreadOver"),typeof(System.Boolean)); + return _SreadOver; + } + set + { + //Conn.榛樿Redis.SetValue("A1022鏀捐揣浜や簰.SreadOver",value.ToString(),"A1022鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1022鏀捐揣浜や簰.SreadOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1022鏀捐揣浜や簰.SreadOver", + paramValue = value.ToString() + } + } + },"A1022鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SreadOver = value; + RaisePropertyChanged("SreadOver"); + } + } + private System.Boolean _Sagverr; + public System.Boolean Sagverr + { + get + { + + _Sagverr=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1022鏀捐揣浜や簰.Sagverr"),typeof(System.Boolean)); + return _Sagverr; + } + set + { + //Conn.榛樿Redis.SetValue("A1022鏀捐揣浜や簰.Sagverr",value.ToString(),"A1022鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1022鏀捐揣浜や簰.Sagverr", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1022鏀捐揣浜や簰.Sagverr", + paramValue = value.ToString() + } + } + },"A1022鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _Sagverr = value; + RaisePropertyChanged("Sagverr"); + } + } + private System.UInt16 _StaskMode; + public System.UInt16 StaskMode + { + get + { + + _StaskMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1022鏀捐揣浜や簰.StaskMode"),typeof(System.UInt16)); + return _StaskMode; + } + set + { + //Conn.榛樿Redis.SetValue("A1022鏀捐揣浜や簰.StaskMode",value.ToString(),"A1022鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1022鏀捐揣浜や簰.StaskMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1022鏀捐揣浜や簰.StaskMode", + paramValue = value.ToString() + } + } + },"A1022鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode = value; + RaisePropertyChanged("StaskMode"); + } + } + private System.Boolean _SreadCan; + public System.Boolean SreadCan + { + get + { + + _SreadCan=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1022鏀捐揣浜や簰.SreadCan"),typeof(System.Boolean)); + return _SreadCan; + } + set + { + //Conn.榛樿Redis.SetValue("A1022鏀捐揣浜や簰.SreadCan",value.ToString(),"A1022鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1022鏀捐揣浜や簰.SreadCan", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1022鏀捐揣浜や簰.SreadCan", + paramValue = value.ToString() + } + } + },"A1022鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SreadCan = value; + RaisePropertyChanged("SreadCan"); + } + } + private System.Boolean _SreadAgvover; + public System.Boolean SreadAgvover + { + get + { + + _SreadAgvover=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1022鏀捐揣浜や簰.SreadAgvover"),typeof(System.Boolean)); + return _SreadAgvover; + } + set + { + //Conn.榛樿Redis.SetValue("A1022鏀捐揣浜や簰.SreadAgvover",value.ToString(),"A1022鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1022鏀捐揣浜や簰.SreadAgvover", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1022鏀捐揣浜や簰.SreadAgvover", + paramValue = value.ToString() + } + } + },"A1022鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SreadAgvover = value; + RaisePropertyChanged("SreadAgvover"); + } + } + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1022Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1022Read.RtaskState",value.ToString(),"S1022ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1022Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1022Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1022ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1022Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1022Read.RTaskNo",value.ToString(),"S1022ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1022Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1022Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1022ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1022Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1022Read.RSbit",value.ToString(),"S1022ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1022Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1022Read.RSbit", + paramValue = value.ToString() + } + } + },"S1022ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1022Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1022Read.REbit",value.ToString(),"S1022ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1022Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1022Read.REbit", + paramValue = value.ToString() + } + } + },"S1022ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1022Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1022Read.RworkMode",value.ToString(),"S1022ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1022Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1022Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1022ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1022Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1022Read.Rstate",value.ToString(),"S1022ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1022Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1022Read.Rstate", + paramValue = value.ToString() + } + } + },"S1022ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1022Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1022Read.R5绌洪棽",value.ToString(),"S1022ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1022Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1022Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1022ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1022Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1022Read.R鎵樼洏鐮�,value.ToString(),"S1022ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1022Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1022Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1022ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _R5绌洪棽_LAST; + public System.UInt16 R5绌洪棽_LAST + { + get + { + + _R5绌洪棽_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1022Read.R5绌洪棽_LAST"),typeof(System.UInt16)); + return _R5绌洪棽_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1022Read.R5绌洪棽_LAST",value.ToString(),"S1022ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1022Read.R5绌洪棽_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1022Read.R5绌洪棽_LAST", + paramValue = value.ToString() + } + } + },"S1022ReadQueue","","")==false) + { + return; + } + _R5绌洪棽_LAST = value; + RaisePropertyChanged("R5绌洪棽_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSA1025 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.Boolean _SreadCan; + public System.Boolean SreadCan + { + get + { + + _SreadCan=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1025鏀捐揣浜や簰.SreadCan"),typeof(System.Boolean)); + return _SreadCan; + } + set + { + //Conn.榛樿Redis.SetValue("A1025鏀捐揣浜や簰.SreadCan",value.ToString(),"A1025鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1025鏀捐揣浜や簰.SreadCan", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1025鏀捐揣浜や簰.SreadCan", + paramValue = value.ToString() + } + } + },"A1025鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SreadCan = value; + RaisePropertyChanged("SreadCan"); + } + } + private System.Boolean _Ssetreq; + public System.Boolean Ssetreq + { + get + { + + _Ssetreq=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1025鏀捐揣浜や簰.Ssetreq"),typeof(System.Boolean)); + return _Ssetreq; + } + set + { + //Conn.榛樿Redis.SetValue("A1025鏀捐揣浜や簰.Ssetreq",value.ToString(),"A1025鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1025鏀捐揣浜や簰.Ssetreq", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1025鏀捐揣浜や簰.Ssetreq", + paramValue = value.ToString() + } + } + },"A1025鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _Ssetreq = value; + RaisePropertyChanged("Ssetreq"); + } + } + private System.Boolean _Senable; + public System.Boolean Senable + { + get + { + + _Senable=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1025鏀捐揣浜や簰.Senable"),typeof(System.Boolean)); + return _Senable; + } + set + { + //Conn.榛樿Redis.SetValue("A1025鏀捐揣浜や簰.Senable",value.ToString(),"A1025鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1025鏀捐揣浜や簰.Senable", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1025鏀捐揣浜や簰.Senable", + paramValue = value.ToString() + } + } + },"A1025鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _Senable = value; + RaisePropertyChanged("Senable"); + } + } + private System.Boolean _SOver; + public System.Boolean SOver + { + get + { + + _SOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1025鏀捐揣浜や簰.SOver"),typeof(System.Boolean)); + return _SOver; + } + set + { + //Conn.榛樿Redis.SetValue("A1025鏀捐揣浜や簰.SOver",value.ToString(),"A1025鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1025鏀捐揣浜や簰.SOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1025鏀捐揣浜や簰.SOver", + paramValue = value.ToString() + } + } + },"A1025鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SOver = value; + RaisePropertyChanged("SOver"); + } + } + private System.Boolean _SreadOver; + public System.Boolean SreadOver + { + get + { + + _SreadOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1025鏀捐揣浜や簰.SreadOver"),typeof(System.Boolean)); + return _SreadOver; + } + set + { + //Conn.榛樿Redis.SetValue("A1025鏀捐揣浜や簰.SreadOver",value.ToString(),"A1025鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1025鏀捐揣浜や簰.SreadOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1025鏀捐揣浜や簰.SreadOver", + paramValue = value.ToString() + } + } + },"A1025鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SreadOver = value; + RaisePropertyChanged("SreadOver"); + } + } + private System.Boolean _Sagverr; + public System.Boolean Sagverr + { + get + { + + _Sagverr=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1025鏀捐揣浜や簰.Sagverr"),typeof(System.Boolean)); + return _Sagverr; + } + set + { + //Conn.榛樿Redis.SetValue("A1025鏀捐揣浜や簰.Sagverr",value.ToString(),"A1025鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1025鏀捐揣浜や簰.Sagverr", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1025鏀捐揣浜や簰.Sagverr", + paramValue = value.ToString() + } + } + },"A1025鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _Sagverr = value; + RaisePropertyChanged("Sagverr"); + } + } + private System.UInt16 _StaskMode; + public System.UInt16 StaskMode + { + get + { + + _StaskMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1025鏀捐揣浜や簰.StaskMode"),typeof(System.UInt16)); + return _StaskMode; + } + set + { + //Conn.榛樿Redis.SetValue("A1025鏀捐揣浜や簰.StaskMode",value.ToString(),"A1025鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1025鏀捐揣浜や簰.StaskMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1025鏀捐揣浜や簰.StaskMode", + paramValue = value.ToString() + } + } + },"A1025鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode = value; + RaisePropertyChanged("StaskMode"); + } + } + private System.UInt16 _StaskMode_LAST; + public System.UInt16 StaskMode_LAST + { + get + { + + _StaskMode_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1025鏀捐揣浜や簰.StaskMode_LAST"),typeof(System.UInt16)); + return _StaskMode_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("A1025鏀捐揣浜や簰.StaskMode_LAST",value.ToString(),"A1025鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1025鏀捐揣浜や簰.StaskMode_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1025鏀捐揣浜や簰.StaskMode_LAST", + paramValue = value.ToString() + } + } + },"A1025鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode_LAST = value; + RaisePropertyChanged("StaskMode_LAST"); + } + } + private System.Boolean _SreadAgvover; + public System.Boolean SreadAgvover + { + get + { + + _SreadAgvover=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1025鏀捐揣浜や簰.SreadAgvover"),typeof(System.Boolean)); + return _SreadAgvover; + } + set + { + //Conn.榛樿Redis.SetValue("A1025鏀捐揣浜や簰.SreadAgvover",value.ToString(),"A1025鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1025鏀捐揣浜や簰.SreadAgvover", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1025鏀捐揣浜や簰.SreadAgvover", + paramValue = value.ToString() + } + } + },"A1025鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SreadAgvover = value; + RaisePropertyChanged("SreadAgvover"); + } + } + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1025Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1025Read.RtaskState",value.ToString(),"S1025ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1025Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1025Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1025ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1025Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1025Read.RTaskNo",value.ToString(),"S1025ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1025Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1025Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1025ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1025Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1025Read.RSbit",value.ToString(),"S1025ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1025Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1025Read.RSbit", + paramValue = value.ToString() + } + } + },"S1025ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1025Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1025Read.REbit",value.ToString(),"S1025ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1025Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1025Read.REbit", + paramValue = value.ToString() + } + } + },"S1025ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1025Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1025Read.RworkMode",value.ToString(),"S1025ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1025Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1025Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1025ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1025Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1025Read.Rstate",value.ToString(),"S1025ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1025Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1025Read.Rstate", + paramValue = value.ToString() + } + } + },"S1025ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1025Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1025Read.R5绌洪棽",value.ToString(),"S1025ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1025Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1025Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1025ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1025Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1025Read.R鎵樼洏鐮�,value.ToString(),"S1025ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1025Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1025Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1025ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _R5绌洪棽_LAST; + public System.UInt16 R5绌洪棽_LAST + { + get + { + + _R5绌洪棽_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1025Read.R5绌洪棽_LAST"),typeof(System.UInt16)); + return _R5绌洪棽_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1025Read.R5绌洪棽_LAST",value.ToString(),"S1025ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1025Read.R5绌洪棽_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1025Read.R5绌洪棽_LAST", + paramValue = value.ToString() + } + } + },"S1025ReadQueue","","")==false) + { + return; + } + _R5绌洪棽_LAST = value; + RaisePropertyChanged("R5绌洪棽_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSA1030 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _StaskMode; + public System.UInt16 StaskMode + { + get + { + + _StaskMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1030鍙栬揣浜や簰.StaskMode"),typeof(System.UInt16)); + return _StaskMode; + } + set + { + //Conn.榛樿Redis.SetValue("A1030鍙栬揣浜や簰.StaskMode",value.ToString(),"A1030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1030鍙栬揣浜や簰.StaskMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1030鍙栬揣浜や簰.StaskMode", + paramValue = value.ToString() + } + } + },"A1030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode = value; + RaisePropertyChanged("StaskMode"); + } + } + private System.Boolean _Ssetreq; + public System.Boolean Ssetreq + { + get + { + + _Ssetreq=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1030鍙栬揣浜や簰.Ssetreq"),typeof(System.Boolean)); + return _Ssetreq; + } + set + { + //Conn.榛樿Redis.SetValue("A1030鍙栬揣浜や簰.Ssetreq",value.ToString(),"A1030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1030鍙栬揣浜や簰.Ssetreq", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1030鍙栬揣浜や簰.Ssetreq", + paramValue = value.ToString() + } + } + },"A1030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _Ssetreq = value; + RaisePropertyChanged("Ssetreq"); + } + } + private System.Boolean _Senable; + public System.Boolean Senable + { + get + { + + _Senable=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1030鍙栬揣浜や簰.Senable"),typeof(System.Boolean)); + return _Senable; + } + set + { + //Conn.榛樿Redis.SetValue("A1030鍙栬揣浜や簰.Senable",value.ToString(),"A1030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1030鍙栬揣浜や簰.Senable", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1030鍙栬揣浜や簰.Senable", + paramValue = value.ToString() + } + } + },"A1030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _Senable = value; + RaisePropertyChanged("Senable"); + } + } + private System.Boolean _SOver; + public System.Boolean SOver + { + get + { + + _SOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1030鍙栬揣浜や簰.SOver"),typeof(System.Boolean)); + return _SOver; + } + set + { + //Conn.榛樿Redis.SetValue("A1030鍙栬揣浜や簰.SOver",value.ToString(),"A1030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1030鍙栬揣浜や簰.SOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1030鍙栬揣浜や簰.SOver", + paramValue = value.ToString() + } + } + },"A1030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SOver = value; + RaisePropertyChanged("SOver"); + } + } + private System.Boolean _SreadOver; + public System.Boolean SreadOver + { + get + { + + _SreadOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1030鍙栬揣浜や簰.SreadOver"),typeof(System.Boolean)); + return _SreadOver; + } + set + { + //Conn.榛樿Redis.SetValue("A1030鍙栬揣浜や簰.SreadOver",value.ToString(),"A1030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1030鍙栬揣浜や簰.SreadOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1030鍙栬揣浜や簰.SreadOver", + paramValue = value.ToString() + } + } + },"A1030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SreadOver = value; + RaisePropertyChanged("SreadOver"); + } + } + private System.Boolean _Sagverr; + public System.Boolean Sagverr + { + get + { + + _Sagverr=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1030鍙栬揣浜や簰.Sagverr"),typeof(System.Boolean)); + return _Sagverr; + } + set + { + //Conn.榛樿Redis.SetValue("A1030鍙栬揣浜や簰.Sagverr",value.ToString(),"A1030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1030鍙栬揣浜や簰.Sagverr", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1030鍙栬揣浜や簰.Sagverr", + paramValue = value.ToString() + } + } + },"A1030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _Sagverr = value; + RaisePropertyChanged("Sagverr"); + } + } + private System.UInt16 _StaskMode_LAST; + public System.UInt16 StaskMode_LAST + { + get + { + + _StaskMode_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1030鍙栬揣浜や簰.StaskMode_LAST"),typeof(System.UInt16)); + return _StaskMode_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("A1030鍙栬揣浜や簰.StaskMode_LAST",value.ToString(),"A1030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1030鍙栬揣浜や簰.StaskMode_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1030鍙栬揣浜や簰.StaskMode_LAST", + paramValue = value.ToString() + } + } + },"A1030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode_LAST = value; + RaisePropertyChanged("StaskMode_LAST"); + } + } + private System.Boolean _SreadCan; + public System.Boolean SreadCan + { + get + { + + _SreadCan=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1030鍙栬揣浜や簰.SreadCan"),typeof(System.Boolean)); + return _SreadCan; + } + set + { + //Conn.榛樿Redis.SetValue("A1030鍙栬揣浜や簰.SreadCan",value.ToString(),"A1030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1030鍙栬揣浜や簰.SreadCan", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1030鍙栬揣浜や簰.SreadCan", + paramValue = value.ToString() + } + } + },"A1030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SreadCan = value; + RaisePropertyChanged("SreadCan"); + } + } + private System.Boolean _SreadAgvover; + public System.Boolean SreadAgvover + { + get + { + + _SreadAgvover=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A1030鍙栬揣浜や簰.SreadAgvover"),typeof(System.Boolean)); + return _SreadAgvover; + } + set + { + //Conn.榛樿Redis.SetValue("A1030鍙栬揣浜や簰.SreadAgvover",value.ToString(),"A1030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A1030鍙栬揣浜や簰.SreadAgvover", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A1030鍙栬揣浜や簰.SreadAgvover", + paramValue = value.ToString() + } + } + },"A1030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SreadAgvover = value; + RaisePropertyChanged("SreadAgvover"); + } + } + private System.UInt16 _RtaskState_LAST; + public System.UInt16 RtaskState_LAST + { + get + { + + _RtaskState_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1030Read.RtaskState_LAST"),typeof(System.UInt16)); + return _RtaskState_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1030Read.RtaskState_LAST",value.ToString(),"S1030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1030Read.RtaskState_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1030Read.RtaskState_LAST", + paramValue = value.ToString() + } + } + },"S1030ReadQueue","","")==false) + { + return; + } + _RtaskState_LAST = value; + RaisePropertyChanged("RtaskState_LAST"); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1030Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1030Read.RTaskNo",value.ToString(),"S1030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1030Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1030Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1030ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1030Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1030Read.RSbit",value.ToString(),"S1030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1030Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1030Read.RSbit", + paramValue = value.ToString() + } + } + },"S1030ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1030Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1030Read.REbit",value.ToString(),"S1030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1030Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1030Read.REbit", + paramValue = value.ToString() + } + } + },"S1030ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1030Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1030Read.RworkMode",value.ToString(),"S1030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1030Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1030Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1030ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1030Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1030Read.Rstate",value.ToString(),"S1030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1030Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1030Read.Rstate", + paramValue = value.ToString() + } + } + },"S1030ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1030Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1030Read.RtaskState",value.ToString(),"S1030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1030Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1030Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1030ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1030Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1030Read.R5绌洪棽",value.ToString(),"S1030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1030Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1030Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1030ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1030Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1030Read.R鎵樼洏鐮�,value.ToString(),"S1030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1030Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1030Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1030ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSA2001 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _StaskMode_LAST; + public System.UInt16 StaskMode_LAST + { + get + { + + _StaskMode_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2001鏀捐揣浜や簰.StaskMode_LAST"),typeof(System.UInt16)); + return _StaskMode_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("A2001鏀捐揣浜や簰.StaskMode_LAST",value.ToString(),"A2001鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2001鏀捐揣浜や簰.StaskMode_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2001鏀捐揣浜や簰.StaskMode_LAST", + paramValue = value.ToString() + } + } + },"A2001鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode_LAST = value; + RaisePropertyChanged("StaskMode_LAST"); + } + } + private System.Boolean _Ssetreq; + public System.Boolean Ssetreq + { + get + { + + _Ssetreq=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2001鏀捐揣浜や簰.Ssetreq"),typeof(System.Boolean)); + return _Ssetreq; + } + set + { + //Conn.榛樿Redis.SetValue("A2001鏀捐揣浜や簰.Ssetreq",value.ToString(),"A2001鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2001鏀捐揣浜や簰.Ssetreq", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2001鏀捐揣浜や簰.Ssetreq", + paramValue = value.ToString() + } + } + },"A2001鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _Ssetreq = value; + RaisePropertyChanged("Ssetreq"); + } + } + private System.Boolean _Senable; + public System.Boolean Senable + { + get + { + + _Senable=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2001鏀捐揣浜や簰.Senable"),typeof(System.Boolean)); + return _Senable; + } + set + { + //Conn.榛樿Redis.SetValue("A2001鏀捐揣浜や簰.Senable",value.ToString(),"A2001鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2001鏀捐揣浜や簰.Senable", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2001鏀捐揣浜や簰.Senable", + paramValue = value.ToString() + } + } + },"A2001鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _Senable = value; + RaisePropertyChanged("Senable"); + } + } + private System.Boolean _SOver; + public System.Boolean SOver + { + get + { + + _SOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2001鏀捐揣浜や簰.SOver"),typeof(System.Boolean)); + return _SOver; + } + set + { + //Conn.榛樿Redis.SetValue("A2001鏀捐揣浜や簰.SOver",value.ToString(),"A2001鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2001鏀捐揣浜や簰.SOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2001鏀捐揣浜や簰.SOver", + paramValue = value.ToString() + } + } + },"A2001鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SOver = value; + RaisePropertyChanged("SOver"); + } + } + private System.Boolean _SreadSsxOver; + public System.Boolean SreadSsxOver + { + get + { + + _SreadSsxOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2001鏀捐揣浜や簰.SreadSsxOver"),typeof(System.Boolean)); + return _SreadSsxOver; + } + set + { + //Conn.榛樿Redis.SetValue("A2001鏀捐揣浜や簰.SreadSsxOver",value.ToString(),"A2001鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2001鏀捐揣浜や簰.SreadSsxOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2001鏀捐揣浜や簰.SreadSsxOver", + paramValue = value.ToString() + } + } + },"A2001鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SreadSsxOver = value; + RaisePropertyChanged("SreadSsxOver"); + } + } + private System.Boolean _Sagverr; + public System.Boolean Sagverr + { + get + { + + _Sagverr=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2001鏀捐揣浜や簰.Sagverr"),typeof(System.Boolean)); + return _Sagverr; + } + set + { + //Conn.榛樿Redis.SetValue("A2001鏀捐揣浜や簰.Sagverr",value.ToString(),"A2001鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2001鏀捐揣浜や簰.Sagverr", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2001鏀捐揣浜や簰.Sagverr", + paramValue = value.ToString() + } + } + },"A2001鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _Sagverr = value; + RaisePropertyChanged("Sagverr"); + } + } + private System.UInt16 _StaskMode; + public System.UInt16 StaskMode + { + get + { + + _StaskMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2001鏀捐揣浜や簰.StaskMode"),typeof(System.UInt16)); + return _StaskMode; + } + set + { + //Conn.榛樿Redis.SetValue("A2001鏀捐揣浜や簰.StaskMode",value.ToString(),"A2001鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2001鏀捐揣浜や簰.StaskMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2001鏀捐揣浜や簰.StaskMode", + paramValue = value.ToString() + } + } + },"A2001鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode = value; + RaisePropertyChanged("StaskMode"); + } + } + private System.Boolean _SreadCan; + public System.Boolean SreadCan + { + get + { + + _SreadCan=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2001鏀捐揣浜や簰.SreadCan"),typeof(System.Boolean)); + return _SreadCan; + } + set + { + //Conn.榛樿Redis.SetValue("A2001鏀捐揣浜や簰.SreadCan",value.ToString(),"A2001鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2001鏀捐揣浜や簰.SreadCan", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2001鏀捐揣浜や簰.SreadCan", + paramValue = value.ToString() + } + } + },"A2001鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SreadCan = value; + RaisePropertyChanged("SreadCan"); + } + } + private System.Boolean _SreadAgvover; + public System.Boolean SreadAgvover + { + get + { + + _SreadAgvover=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2001鏀捐揣浜や簰.SreadAgvover"),typeof(System.Boolean)); + return _SreadAgvover; + } + set + { + //Conn.榛樿Redis.SetValue("A2001鏀捐揣浜や簰.SreadAgvover",value.ToString(),"A2001鏀捐揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2001鏀捐揣浜や簰.SreadAgvover", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2001鏀捐揣浜や簰.SreadAgvover", + paramValue = value.ToString() + } + } + },"A2001鏀捐揣浜や簰Queue","","")==false) + { + return; + } + _SreadAgvover = value; + RaisePropertyChanged("SreadAgvover"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2001Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S2001Read.R鎵樼洏鐮�,value.ToString(),"S2001ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2001Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2001Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S2001ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2001Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S2001Read.R5绌洪棽",value.ToString(),"S2001ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2001Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2001Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S2001ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.UInt16 _R5绌洪棽_LAST; + public System.UInt16 R5绌洪棽_LAST + { + get + { + + _R5绌洪棽_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2001Read.R5绌洪棽_LAST"),typeof(System.UInt16)); + return _R5绌洪棽_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S2001Read.R5绌洪棽_LAST",value.ToString(),"S2001ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2001Read.R5绌洪棽_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2001Read.R5绌洪棽_LAST", + paramValue = value.ToString() + } + } + },"S2001ReadQueue","","")==false) + { + return; + } + _R5绌洪棽_LAST = value; + RaisePropertyChanged("R5绌洪棽_LAST"); + } + } + private System.UInt16 _WEbit; + public System.UInt16 WEbit + { + get + { + + _WEbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2001Read.WEbit"),typeof(System.UInt16)); + return _WEbit; + } + set + { + //Conn.榛樿Redis.SetValue("S2001Read.WEbit",value.ToString(),"S2001ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2001Read.WEbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2001Read.WEbit", + paramValue = value.ToString() + } + } + },"S2001ReadQueue","","")==false) + { + return; + } + _WEbit = value; + RaisePropertyChanged("WEbit"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSA2030 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.Boolean _SreadCan; + public System.Boolean SreadCan + { + get + { + + _SreadCan=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2030鍙栬揣浜や簰.SreadCan"),typeof(System.Boolean)); + return _SreadCan; + } + set + { + //Conn.榛樿Redis.SetValue("A2030鍙栬揣浜や簰.SreadCan",value.ToString(),"A2030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2030鍙栬揣浜や簰.SreadCan", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2030鍙栬揣浜や簰.SreadCan", + paramValue = value.ToString() + } + } + },"A2030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SreadCan = value; + RaisePropertyChanged("SreadCan"); + } + } + private System.Boolean _Ssetreq; + public System.Boolean Ssetreq + { + get + { + + _Ssetreq=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2030鍙栬揣浜や簰.Ssetreq"),typeof(System.Boolean)); + return _Ssetreq; + } + set + { + //Conn.榛樿Redis.SetValue("A2030鍙栬揣浜や簰.Ssetreq",value.ToString(),"A2030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2030鍙栬揣浜や簰.Ssetreq", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2030鍙栬揣浜や簰.Ssetreq", + paramValue = value.ToString() + } + } + },"A2030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _Ssetreq = value; + RaisePropertyChanged("Ssetreq"); + } + } + private System.Boolean _Senable; + public System.Boolean Senable + { + get + { + + _Senable=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2030鍙栬揣浜や簰.Senable"),typeof(System.Boolean)); + return _Senable; + } + set + { + //Conn.榛樿Redis.SetValue("A2030鍙栬揣浜や簰.Senable",value.ToString(),"A2030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2030鍙栬揣浜や簰.Senable", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2030鍙栬揣浜や簰.Senable", + paramValue = value.ToString() + } + } + },"A2030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _Senable = value; + RaisePropertyChanged("Senable"); + } + } + private System.Boolean _SOver; + public System.Boolean SOver + { + get + { + + _SOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2030鍙栬揣浜や簰.SOver"),typeof(System.Boolean)); + return _SOver; + } + set + { + //Conn.榛樿Redis.SetValue("A2030鍙栬揣浜や簰.SOver",value.ToString(),"A2030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2030鍙栬揣浜や簰.SOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2030鍙栬揣浜や簰.SOver", + paramValue = value.ToString() + } + } + },"A2030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SOver = value; + RaisePropertyChanged("SOver"); + } + } + private System.Boolean _SreadSsxOver; + public System.Boolean SreadSsxOver + { + get + { + + _SreadSsxOver=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2030鍙栬揣浜や簰.SreadSsxOver"),typeof(System.Boolean)); + return _SreadSsxOver; + } + set + { + //Conn.榛樿Redis.SetValue("A2030鍙栬揣浜や簰.SreadSsxOver",value.ToString(),"A2030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2030鍙栬揣浜や簰.SreadSsxOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2030鍙栬揣浜や簰.SreadSsxOver", + paramValue = value.ToString() + } + } + },"A2030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SreadSsxOver = value; + RaisePropertyChanged("SreadSsxOver"); + } + } + private System.Boolean _Sagverr; + public System.Boolean Sagverr + { + get + { + + _Sagverr=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2030鍙栬揣浜や簰.Sagverr"),typeof(System.Boolean)); + return _Sagverr; + } + set + { + //Conn.榛樿Redis.SetValue("A2030鍙栬揣浜や簰.Sagverr",value.ToString(),"A2030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2030鍙栬揣浜や簰.Sagverr", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2030鍙栬揣浜や簰.Sagverr", + paramValue = value.ToString() + } + } + },"A2030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _Sagverr = value; + RaisePropertyChanged("Sagverr"); + } + } + private System.UInt16 _StaskMode; + public System.UInt16 StaskMode + { + get + { + + _StaskMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2030鍙栬揣浜や簰.StaskMode"),typeof(System.UInt16)); + return _StaskMode; + } + set + { + //Conn.榛樿Redis.SetValue("A2030鍙栬揣浜や簰.StaskMode",value.ToString(),"A2030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2030鍙栬揣浜や簰.StaskMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2030鍙栬揣浜や簰.StaskMode", + paramValue = value.ToString() + } + } + },"A2030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode = value; + RaisePropertyChanged("StaskMode"); + } + } + private System.UInt16 _StaskMode_LAST; + public System.UInt16 StaskMode_LAST + { + get + { + + _StaskMode_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2030鍙栬揣浜や簰.StaskMode_LAST"),typeof(System.UInt16)); + return _StaskMode_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("A2030鍙栬揣浜や簰.StaskMode_LAST",value.ToString(),"A2030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2030鍙栬揣浜や簰.StaskMode_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2030鍙栬揣浜や簰.StaskMode_LAST", + paramValue = value.ToString() + } + } + },"A2030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _StaskMode_LAST = value; + RaisePropertyChanged("StaskMode_LAST"); + } + } + private System.Boolean _SreadAgvover; + public System.Boolean SreadAgvover + { + get + { + + _SreadAgvover=(System.Boolean)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("A2030鍙栬揣浜や簰.SreadAgvover"),typeof(System.Boolean)); + return _SreadAgvover; + } + set + { + //Conn.榛樿Redis.SetValue("A2030鍙栬揣浜や簰.SreadAgvover",value.ToString(),"A2030鍙栬揣浜や簰Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "A2030鍙栬揣浜や簰.SreadAgvover", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "A2030鍙栬揣浜や簰.SreadAgvover", + paramValue = value.ToString() + } + } + },"A2030鍙栬揣浜や簰Queue","","")==false) + { + return; + } + _SreadAgvover = value; + RaisePropertyChanged("SreadAgvover"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2030Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S2030Read.R5绌洪棽",value.ToString(),"S2030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2030Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2030Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S2030ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2030Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S2030Read.RTaskNo",value.ToString(),"S2030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2030Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2030Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S2030ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2030Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S2030Read.RSbit",value.ToString(),"S2030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2030Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2030Read.RSbit", + paramValue = value.ToString() + } + } + },"S2030ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2030Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S2030Read.REbit",value.ToString(),"S2030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2030Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2030Read.REbit", + paramValue = value.ToString() + } + } + },"S2030ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2030Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S2030Read.RworkMode",value.ToString(),"S2030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2030Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2030Read.RworkMode", + paramValue = value.ToString() + } + } + },"S2030ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2030Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S2030Read.Rstate",value.ToString(),"S2030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2030Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2030Read.Rstate", + paramValue = value.ToString() + } + } + },"S2030ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2030Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S2030Read.RtaskState",value.ToString(),"S2030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2030Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2030Read.RtaskState", + paramValue = value.ToString() + } + } + },"S2030ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S2030Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S2030Read.R鎵樼洏鐮�,value.ToString(),"S2030ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S2030Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S2030Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S2030ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSF涓嬫枡浣�: System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _WRelease1011; + public System.UInt16 WRelease1011 + { + get + { + + _WRelease1011=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.WRelease1011"),typeof(System.UInt16)); + return _WRelease1011; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.WRelease1011",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.WRelease1011", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.WRelease1011", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _WRelease1011 = value; + RaisePropertyChanged("WRelease1011"); + } + } + private System.UInt16 _RArrive1003; + public System.UInt16 RArrive1003 + { + get + { + + _RArrive1003=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.RArrive1003"),typeof(System.UInt16)); + return _RArrive1003; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.RArrive1003",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.RArrive1003", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.RArrive1003", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _RArrive1003 = value; + RaisePropertyChanged("RArrive1003"); + } + } + private System.UInt16 _RArrive1003_LAST; + public System.UInt16 RArrive1003_LAST + { + get + { + + _RArrive1003_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.RArrive1003_LAST"),typeof(System.UInt16)); + return _RArrive1003_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.RArrive1003_LAST",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.RArrive1003_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.RArrive1003_LAST", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _RArrive1003_LAST = value; + RaisePropertyChanged("RArrive1003_LAST"); + } + } + private System.UInt16 _RArrive1005; + public System.UInt16 RArrive1005 + { + get + { + + _RArrive1005=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.RArrive1005"),typeof(System.UInt16)); + return _RArrive1005; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.RArrive1005",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.RArrive1005", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.RArrive1005", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _RArrive1005 = value; + RaisePropertyChanged("RArrive1005"); + } + } + private System.UInt16 _RArrive1005_LAST; + public System.UInt16 RArrive1005_LAST + { + get + { + + _RArrive1005_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.RArrive1005_LAST"),typeof(System.UInt16)); + return _RArrive1005_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.RArrive1005_LAST",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.RArrive1005_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.RArrive1005_LAST", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _RArrive1005_LAST = value; + RaisePropertyChanged("RArrive1005_LAST"); + } + } + private System.UInt16 _RArrive1011; + public System.UInt16 RArrive1011 + { + get + { + + _RArrive1011=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.RArrive1011"),typeof(System.UInt16)); + return _RArrive1011; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.RArrive1011",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.RArrive1011", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.RArrive1011", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _RArrive1011 = value; + RaisePropertyChanged("RArrive1011"); + } + } + private System.UInt16 _RArrive1011_LAST; + public System.UInt16 RArrive1011_LAST + { + get + { + + _RArrive1011_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.RArrive1011_LAST"),typeof(System.UInt16)); + return _RArrive1011_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.RArrive1011_LAST",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.RArrive1011_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.RArrive1011_LAST", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _RArrive1011_LAST = value; + RaisePropertyChanged("RArrive1011_LAST"); + } + } + private System.UInt16 _RArrive1013; + public System.UInt16 RArrive1013 + { + get + { + + _RArrive1013=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.RArrive1013"),typeof(System.UInt16)); + return _RArrive1013; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.RArrive1013",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.RArrive1013", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.RArrive1013", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _RArrive1013 = value; + RaisePropertyChanged("RArrive1013"); + } + } + private System.UInt16 _RArrive1013_LAST; + public System.UInt16 RArrive1013_LAST + { + get + { + + _RArrive1013_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.RArrive1013_LAST"),typeof(System.UInt16)); + return _RArrive1013_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.RArrive1013_LAST",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.RArrive1013_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.RArrive1013_LAST", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _RArrive1013_LAST = value; + RaisePropertyChanged("RArrive1013_LAST"); + } + } + private System.UInt16 _WRelease1003; + public System.UInt16 WRelease1003 + { + get + { + + _WRelease1003=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.WRelease1003"),typeof(System.UInt16)); + return _WRelease1003; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.WRelease1003",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.WRelease1003", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.WRelease1003", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _WRelease1003 = value; + RaisePropertyChanged("WRelease1003"); + } + } + private System.UInt16 _WRelease1005; + public System.UInt16 WRelease1005 + { + get + { + + _WRelease1005=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.WRelease1005"),typeof(System.UInt16)); + return _WRelease1005; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.WRelease1005",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.WRelease1005", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.WRelease1005", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _WRelease1005 = value; + RaisePropertyChanged("WRelease1005"); + } + } + private System.UInt16 _WRelease1013; + public System.UInt16 WRelease1013 + { + get + { + + _WRelease1013=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.WRelease1013"),typeof(System.UInt16)); + return _WRelease1013; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.WRelease1013",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.WRelease1013", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.WRelease1013", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _WRelease1013 = value; + RaisePropertyChanged("WRelease1013"); + } + } + private System.UInt16 _WSafe0305; + public System.UInt16 WSafe0305 + { + get + { + + _WSafe0305=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.WSafe0305"),typeof(System.UInt16)); + return _WSafe0305; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.WSafe0305",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.WSafe0305", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.WSafe0305", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _WSafe0305 = value; + RaisePropertyChanged("WSafe0305"); + } + } + private System.UInt16 _WSafe1113; + public System.UInt16 WSafe1113 + { + get + { + + _WSafe1113=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("FNK1003051113.WSafe1113"),typeof(System.UInt16)); + return _WSafe1113; + } + set + { + //Conn.榛樿Redis.SetValue("FNK1003051113.WSafe1113",value.ToString(),"FNK1003051113Queue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "FNK1003051113.WSafe1113", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "FNK1003051113.WSafe1113", + paramValue = value.ToString() + } + } + },"FNK1003051113Queue","","")==false) + { + return; + } + _WSafe1113 = value; + RaisePropertyChanged("WSafe1113"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSR1020 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1020Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1020Read.RtaskState",value.ToString(),"S1020ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1020Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1020Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1020ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1020Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1020Read.RTaskNo",value.ToString(),"S1020ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1020Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1020Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1020ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1020Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1020Read.RSbit",value.ToString(),"S1020ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1020Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1020Read.RSbit", + paramValue = value.ToString() + } + } + },"S1020ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1020Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1020Read.REbit",value.ToString(),"S1020ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1020Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1020Read.REbit", + paramValue = value.ToString() + } + } + },"S1020ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1020Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1020Read.RworkMode",value.ToString(),"S1020ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1020Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1020Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1020ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1020Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1020Read.Rstate",value.ToString(),"S1020ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1020Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1020Read.Rstate", + paramValue = value.ToString() + } + } + },"S1020ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1020Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1020Read.R5绌洪棽",value.ToString(),"S1020ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1020Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1020Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1020ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1020Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1020Read.R鎵樼洏鐮�,value.ToString(),"S1020ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1020Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1020Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1020ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _RtaskState_LAST; + public System.UInt16 RtaskState_LAST + { + get + { + + _RtaskState_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1020Read.RtaskState_LAST"),typeof(System.UInt16)); + return _RtaskState_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1020Read.RtaskState_LAST",value.ToString(),"S1020ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1020Read.RtaskState_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1020Read.RtaskState_LAST", + paramValue = value.ToString() + } + } + },"S1020ReadQueue","","")==false) + { + return; + } + _RtaskState_LAST = value; + RaisePropertyChanged("RtaskState_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSR1023 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1023Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1023Read.R5绌洪棽",value.ToString(),"S1023ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1023Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1023Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1023ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1023Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1023Read.RTaskNo",value.ToString(),"S1023ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1023Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1023Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1023ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1023Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1023Read.RSbit",value.ToString(),"S1023ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1023Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1023Read.RSbit", + paramValue = value.ToString() + } + } + },"S1023ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1023Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1023Read.REbit",value.ToString(),"S1023ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1023Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1023Read.REbit", + paramValue = value.ToString() + } + } + },"S1023ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1023Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1023Read.RworkMode",value.ToString(),"S1023ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1023Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1023Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1023ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1023Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1023Read.Rstate",value.ToString(),"S1023ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1023Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1023Read.Rstate", + paramValue = value.ToString() + } + } + },"S1023ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1023Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1023Read.RtaskState",value.ToString(),"S1023ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1023Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1023Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1023ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1023Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1023Read.R鎵樼洏鐮�,value.ToString(),"S1023ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1023Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1023Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1023ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _RtaskState_LAST; + public System.UInt16 RtaskState_LAST + { + get + { + + _RtaskState_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1023Read.RtaskState_LAST"),typeof(System.UInt16)); + return _RtaskState_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1023Read.RtaskState_LAST",value.ToString(),"S1023ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1023Read.RtaskState_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1023Read.RtaskState_LAST", + paramValue = value.ToString() + } + } + },"S1023ReadQueue","","")==false) + { + return; + } + _RtaskState_LAST = value; + RaisePropertyChanged("RtaskState_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSR1017杞瓙鎺ユ敹 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _R5绌洪棽_LAST; + public System.UInt16 R5绌洪棽_LAST + { + get + { + + _R5绌洪棽_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1017Read.R5绌洪棽_LAST"),typeof(System.UInt16)); + return _R5绌洪棽_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1017Read.R5绌洪棽_LAST",value.ToString(),"S1017ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1017Read.R5绌洪棽_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1017Read.R5绌洪棽_LAST", + paramValue = value.ToString() + } + } + },"S1017ReadQueue","","")==false) + { + return; + } + _R5绌洪棽_LAST = value; + RaisePropertyChanged("R5绌洪棽_LAST"); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1017Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1017Read.RTaskNo",value.ToString(),"S1017ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1017Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1017Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1017ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1017Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1017Read.RSbit",value.ToString(),"S1017ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1017Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1017Read.RSbit", + paramValue = value.ToString() + } + } + },"S1017ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1017Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1017Read.REbit",value.ToString(),"S1017ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1017Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1017Read.REbit", + paramValue = value.ToString() + } + } + },"S1017ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1017Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1017Read.RworkMode",value.ToString(),"S1017ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1017Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1017Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1017ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1017Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1017Read.Rstate",value.ToString(),"S1017ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1017Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1017Read.Rstate", + paramValue = value.ToString() + } + } + },"S1017ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1017Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1017Read.RtaskState",value.ToString(),"S1017ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1017Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1017Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1017ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1017Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1017Read.R5绌洪棽",value.ToString(),"S1017ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1017Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1017Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1017ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1017Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1017Read.R鎵樼洏鐮�,value.ToString(),"S1017ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1017Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1017Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1017ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSREU1004 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1004Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1004Read.R5绌洪棽",value.ToString(),"S1004ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1004Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1004Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1004ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1004Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1004Read.R鎵樼洏鐮�,value.ToString(),"S1004ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1004Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1004Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1004ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _R5绌洪棽_LAST; + public System.UInt16 R5绌洪棽_LAST + { + get + { + + _R5绌洪棽_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1004Read.R5绌洪棽_LAST"),typeof(System.UInt16)); + return _R5绌洪棽_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1004Read.R5绌洪棽_LAST",value.ToString(),"S1004ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1004Read.R5绌洪棽_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1004Read.R5绌洪棽_LAST", + paramValue = value.ToString() + } + } + },"S1004ReadQueue","","")==false) + { + return; + } + _R5绌洪棽_LAST = value; + RaisePropertyChanged("R5绌洪棽_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSREU1006 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1006Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1006Read.R鎵樼洏鐮�,value.ToString(),"S1006ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1006Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1006Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1006ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1006Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1006Read.R5绌洪棽",value.ToString(),"S1006ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1006Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1006Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1006ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.UInt16 _R5绌洪棽_LAST; + public System.UInt16 R5绌洪棽_LAST + { + get + { + + _R5绌洪棽_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1006Read.R5绌洪棽_LAST"),typeof(System.UInt16)); + return _R5绌洪棽_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1006Read.R5绌洪棽_LAST",value.ToString(),"S1006ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1006Read.R5绌洪棽_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1006Read.R5绌洪棽_LAST", + paramValue = value.ToString() + } + } + },"S1006ReadQueue","","")==false) + { + return; + } + _R5绌洪棽_LAST = value; + RaisePropertyChanged("R5绌洪棽_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSREU1012 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1012Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1012Read.R5绌洪棽",value.ToString(),"S1012ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1012Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1012Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1012ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1012Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1012Read.R鎵樼洏鐮�,value.ToString(),"S1012ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1012Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1012Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1012ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _R5绌洪棽_LAST; + public System.UInt16 R5绌洪棽_LAST + { + get + { + + _R5绌洪棽_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1012Read.R5绌洪棽_LAST"),typeof(System.UInt16)); + return _R5绌洪棽_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1012Read.R5绌洪棽_LAST",value.ToString(),"S1012ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1012Read.R5绌洪棽_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1012Read.R5绌洪棽_LAST", + paramValue = value.ToString() + } + } + },"S1012ReadQueue","","")==false) + { + return; + } + _R5绌洪棽_LAST = value; + RaisePropertyChanged("R5绌洪棽_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSREU1014 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1014Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1014Read.R鎵樼洏鐮�,value.ToString(),"S1014ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1014Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1014Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1014ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1014Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1014Read.R5绌洪棽",value.ToString(),"S1014ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1014Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1014Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1014ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.UInt16 _R5绌洪棽_LAST; + public System.UInt16 R5绌洪棽_LAST + { + get + { + + _R5绌洪棽_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1014Read.R5绌洪棽_LAST"),typeof(System.UInt16)); + return _R5绌洪棽_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1014Read.R5绌洪棽_LAST",value.ToString(),"S1014ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1014Read.R5绌洪棽_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1014Read.R5绌洪棽_LAST", + paramValue = value.ToString() + } + } + },"S1014ReadQueue","","")==false) + { + return; + } + _R5绌洪棽_LAST = value; + RaisePropertyChanged("R5绌洪棽_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSRFD1002 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1002Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1002Read.RTaskNo",value.ToString(),"S1002ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1002Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1002Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1002ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1002Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1002Read.RSbit",value.ToString(),"S1002ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1002Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1002Read.RSbit", + paramValue = value.ToString() + } + } + },"S1002ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1002Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1002Read.REbit",value.ToString(),"S1002ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1002Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1002Read.REbit", + paramValue = value.ToString() + } + } + },"S1002ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1002Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1002Read.RworkMode",value.ToString(),"S1002ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1002Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1002Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1002ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1002Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1002Read.Rstate",value.ToString(),"S1002ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1002Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1002Read.Rstate", + paramValue = value.ToString() + } + } + },"S1002ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1002Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1002Read.RtaskState",value.ToString(),"S1002ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1002Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1002Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1002ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1002Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1002Read.R5绌洪棽",value.ToString(),"S1002ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1002Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1002Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1002ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1002Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1002Read.R鎵樼洏鐮�,value.ToString(),"S1002ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1002Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1002Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1002ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _RtaskState_LAST; + public System.UInt16 RtaskState_LAST + { + get + { + + _RtaskState_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1002Read.RtaskState_LAST"),typeof(System.UInt16)); + return _RtaskState_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1002Read.RtaskState_LAST",value.ToString(),"S1002ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1002Read.RtaskState_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1002Read.RtaskState_LAST", + paramValue = value.ToString() + } + } + },"S1002ReadQueue","","")==false) + { + return; + } + _RtaskState_LAST = value; + RaisePropertyChanged("RtaskState_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSRFD1008 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1008Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1008Read.R鎵樼洏鐮�,value.ToString(),"S1008ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1008Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1008Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1008ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1008Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1008Read.RTaskNo",value.ToString(),"S1008ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1008Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1008Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1008ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1008Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1008Read.RSbit",value.ToString(),"S1008ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1008Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1008Read.RSbit", + paramValue = value.ToString() + } + } + },"S1008ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1008Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1008Read.REbit",value.ToString(),"S1008ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1008Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1008Read.REbit", + paramValue = value.ToString() + } + } + },"S1008ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1008Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1008Read.RworkMode",value.ToString(),"S1008ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1008Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1008Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1008ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1008Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1008Read.Rstate",value.ToString(),"S1008ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1008Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1008Read.Rstate", + paramValue = value.ToString() + } + } + },"S1008ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1008Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1008Read.RtaskState",value.ToString(),"S1008ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1008Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1008Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1008ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1008Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1008Read.R5绌洪棽",value.ToString(),"S1008ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1008Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1008Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1008ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.UInt16 _RtaskState_LAST; + public System.UInt16 RtaskState_LAST + { + get + { + + _RtaskState_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1008Read.RtaskState_LAST"),typeof(System.UInt16)); + return _RtaskState_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1008Read.RtaskState_LAST",value.ToString(),"S1008ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1008Read.RtaskState_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1008Read.RtaskState_LAST", + paramValue = value.ToString() + } + } + },"S1008ReadQueue","","")==false) + { + return; + } + _RtaskState_LAST = value; + RaisePropertyChanged("RtaskState_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSRFD1010 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1010Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1010Read.Rstate",value.ToString(),"S1010ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1010Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1010Read.Rstate", + paramValue = value.ToString() + } + } + },"S1010ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1010Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1010Read.RTaskNo",value.ToString(),"S1010ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1010Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1010Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1010ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1010Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1010Read.RSbit",value.ToString(),"S1010ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1010Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1010Read.RSbit", + paramValue = value.ToString() + } + } + },"S1010ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1010Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1010Read.REbit",value.ToString(),"S1010ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1010Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1010Read.REbit", + paramValue = value.ToString() + } + } + },"S1010ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1010Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1010Read.RworkMode",value.ToString(),"S1010ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1010Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1010Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1010ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1010Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1010Read.RtaskState",value.ToString(),"S1010ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1010Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1010Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1010ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1010Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1010Read.R5绌洪棽",value.ToString(),"S1010ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1010Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1010Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1010ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1010Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1010Read.R鎵樼洏鐮�,value.ToString(),"S1010ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1010Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1010Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1010ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _RtaskState_LAST; + public System.UInt16 RtaskState_LAST + { + get + { + + _RtaskState_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1010Read.RtaskState_LAST"),typeof(System.UInt16)); + return _RtaskState_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1010Read.RtaskState_LAST",value.ToString(),"S1010ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1010Read.RtaskState_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1010Read.RtaskState_LAST", + paramValue = value.ToString() + } + } + },"S1010ReadQueue","","")==false) + { + return; + } + _RtaskState_LAST = value; + RaisePropertyChanged("RtaskState_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSRFD1016 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1016Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1016Read.RtaskState",value.ToString(),"S1016ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1016Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1016Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1016ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1016Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1016Read.RTaskNo",value.ToString(),"S1016ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1016Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1016Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1016ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1016Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1016Read.RSbit",value.ToString(),"S1016ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1016Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1016Read.RSbit", + paramValue = value.ToString() + } + } + },"S1016ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1016Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1016Read.REbit",value.ToString(),"S1016ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1016Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1016Read.REbit", + paramValue = value.ToString() + } + } + },"S1016ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1016Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1016Read.RworkMode",value.ToString(),"S1016ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1016Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1016Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1016ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1016Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1016Read.Rstate",value.ToString(),"S1016ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1016Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1016Read.Rstate", + paramValue = value.ToString() + } + } + },"S1016ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1016Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1016Read.R5绌洪棽",value.ToString(),"S1016ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1016Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1016Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1016ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1016Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1016Read.R鎵樼洏鐮�,value.ToString(),"S1016ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1016Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1016Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1016ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + private System.UInt16 _RtaskState_LAST; + public System.UInt16 RtaskState_LAST + { + get + { + + _RtaskState_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1016Read.RtaskState_LAST"),typeof(System.UInt16)); + return _RtaskState_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1016Read.RtaskState_LAST",value.ToString(),"S1016ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1016Read.RtaskState_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1016Read.RtaskState_LAST", + paramValue = value.ToString() + } + } + },"S1016ReadQueue","","")==false) + { + return; + } + _RtaskState_LAST = value; + RaisePropertyChanged("RtaskState_LAST"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagSRdu1026 : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _R5绌洪棽_LAST; + public System.UInt16 R5绌洪棽_LAST + { + get + { + + _R5绌洪棽_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1026Read.R5绌洪棽_LAST"),typeof(System.UInt16)); + return _R5绌洪棽_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("S1026Read.R5绌洪棽_LAST",value.ToString(),"S1026ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1026Read.R5绌洪棽_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1026Read.R5绌洪棽_LAST", + paramValue = value.ToString() + } + } + },"S1026ReadQueue","","")==false) + { + return; + } + _R5绌洪棽_LAST = value; + RaisePropertyChanged("R5绌洪棽_LAST"); + } + } + private System.UInt32 _RTaskNo; + public System.UInt32 RTaskNo + { + get + { + + _RTaskNo=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1026Read.RTaskNo"),typeof(System.UInt32)); + return _RTaskNo; + } + set + { + //Conn.榛樿Redis.SetValue("S1026Read.RTaskNo",value.ToString(),"S1026ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1026Read.RTaskNo", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1026Read.RTaskNo", + paramValue = value.ToString() + } + } + },"S1026ReadQueue","","")==false) + { + return; + } + _RTaskNo = value; + RaisePropertyChanged("RTaskNo"); + } + } + private System.UInt16 _RSbit; + public System.UInt16 RSbit + { + get + { + + _RSbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1026Read.RSbit"),typeof(System.UInt16)); + return _RSbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1026Read.RSbit",value.ToString(),"S1026ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1026Read.RSbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1026Read.RSbit", + paramValue = value.ToString() + } + } + },"S1026ReadQueue","","")==false) + { + return; + } + _RSbit = value; + RaisePropertyChanged("RSbit"); + } + } + private System.UInt16 _REbit; + public System.UInt16 REbit + { + get + { + + _REbit=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1026Read.REbit"),typeof(System.UInt16)); + return _REbit; + } + set + { + //Conn.榛樿Redis.SetValue("S1026Read.REbit",value.ToString(),"S1026ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1026Read.REbit", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1026Read.REbit", + paramValue = value.ToString() + } + } + },"S1026ReadQueue","","")==false) + { + return; + } + _REbit = value; + RaisePropertyChanged("REbit"); + } + } + private System.UInt16 _RworkMode; + public System.UInt16 RworkMode + { + get + { + + _RworkMode=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1026Read.RworkMode"),typeof(System.UInt16)); + return _RworkMode; + } + set + { + //Conn.榛樿Redis.SetValue("S1026Read.RworkMode",value.ToString(),"S1026ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1026Read.RworkMode", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1026Read.RworkMode", + paramValue = value.ToString() + } + } + },"S1026ReadQueue","","")==false) + { + return; + } + _RworkMode = value; + RaisePropertyChanged("RworkMode"); + } + } + private System.UInt16 _Rstate; + public System.UInt16 Rstate + { + get + { + + _Rstate=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1026Read.Rstate"),typeof(System.UInt16)); + return _Rstate; + } + set + { + //Conn.榛樿Redis.SetValue("S1026Read.Rstate",value.ToString(),"S1026ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1026Read.Rstate", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1026Read.Rstate", + paramValue = value.ToString() + } + } + },"S1026ReadQueue","","")==false) + { + return; + } + _Rstate = value; + RaisePropertyChanged("Rstate"); + } + } + private System.UInt16 _RtaskState; + public System.UInt16 RtaskState + { + get + { + + _RtaskState=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1026Read.RtaskState"),typeof(System.UInt16)); + return _RtaskState; + } + set + { + //Conn.榛樿Redis.SetValue("S1026Read.RtaskState",value.ToString(),"S1026ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1026Read.RtaskState", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1026Read.RtaskState", + paramValue = value.ToString() + } + } + },"S1026ReadQueue","","")==false) + { + return; + } + _RtaskState = value; + RaisePropertyChanged("RtaskState"); + } + } + private System.UInt16 _R5绌洪棽; + public System.UInt16 R5绌洪棽 + { + get + { + + _R5绌洪棽=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1026Read.R5绌洪棽"),typeof(System.UInt16)); + return _R5绌洪棽; + } + set + { + //Conn.榛樿Redis.SetValue("S1026Read.R5绌洪棽",value.ToString(),"S1026ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1026Read.R5绌洪棽", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1026Read.R5绌洪棽", + paramValue = value.ToString() + } + } + },"S1026ReadQueue","","")==false) + { + return; + } + _R5绌洪棽 = value; + RaisePropertyChanged("R5绌洪棽"); + } + } + private System.String _R鎵樼洏鐮� + public System.String R鎵樼洏鐮�+ { + get + { + + _R鎵樼洏鐮�(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("S1026Read.R鎵樼洏鐮�),typeof(System.String)); + return _R鎵樼洏鐮� + } + set + { + //Conn.榛樿Redis.SetValue("S1026Read.R鎵樼洏鐮�,value.ToString(),"S1026ReadQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "S1026Read.R鎵樼洏鐮�, + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "S1026Read.R鎵樼洏鐮�, + paramValue = value.ToString() + } + } + },"S1026ReadQueue","","")==false) + { + return; + } + _R鎵樼洏鐮�= value; + RaisePropertyChanged("R鎵樼洏鐮�); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + public class TagRGV : System.ComponentModel.INotifyPropertyChanged + { + #region 鍙橀噺 + private System.UInt16 _p1; + public System.UInt16 p1 + { + get + { + + _p1=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.p1"),typeof(System.UInt16)); + return _p1; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.p1",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.p1", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.p1", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _p1 = value; + RaisePropertyChanged("p1"); + } + } + private System.UInt16 _workMod; + public System.UInt16 workMod + { + get + { + + _workMod=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.workMod"),typeof(System.UInt16)); + return _workMod; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.workMod",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.workMod", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.workMod", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _workMod = value; + RaisePropertyChanged("workMod"); + } + } + private System.UInt16 _taskmod; + public System.UInt16 taskmod + { + get + { + + _taskmod=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.taskmod"),typeof(System.UInt16)); + return _taskmod; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.taskmod",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.taskmod", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.taskmod", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _taskmod = value; + RaisePropertyChanged("taskmod"); + } + } + private System.UInt32 _taskno1; + public System.UInt32 taskno1 + { + get + { + + _taskno1=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.taskno1"),typeof(System.UInt32)); + return _taskno1; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.taskno1",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.taskno1", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.taskno1", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _taskno1 = value; + RaisePropertyChanged("taskno1"); + } + } + private System.UInt16 _task1do; + public System.UInt16 task1do + { + get + { + + _task1do=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.task1do"),typeof(System.UInt16)); + return _task1do; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.task1do",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.task1do", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.task1do", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _task1do = value; + RaisePropertyChanged("task1do"); + } + } + private System.String _task1code; + public System.String task1code + { + get + { + + _task1code=(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.task1code"),typeof(System.String)); + return _task1code; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.task1code",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.task1code", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.task1code", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _task1code = value; + RaisePropertyChanged("task1code"); + } + } + private System.UInt32 _taskno2; + public System.UInt32 taskno2 + { + get + { + + _taskno2=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.taskno2"),typeof(System.UInt32)); + return _taskno2; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.taskno2",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.taskno2", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.taskno2", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _taskno2 = value; + RaisePropertyChanged("taskno2"); + } + } + private System.UInt16 _task2do; + public System.UInt16 task2do + { + get + { + + _task2do=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.task2do"),typeof(System.UInt16)); + return _task2do; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.task2do",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.task2do", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.task2do", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _task2do = value; + RaisePropertyChanged("task2do"); + } + } + private System.String _task2code; + public System.String task2code + { + get + { + + _task2code=(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.task2code"),typeof(System.String)); + return _task2code; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.task2code",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.task2code", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.task2code", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _task2code = value; + RaisePropertyChanged("task2code"); + } + } + private System.UInt16 _taskend; + public System.UInt16 taskend + { + get + { + + _taskend=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.taskend"),typeof(System.UInt16)); + return _taskend; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.taskend",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.taskend", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.taskend", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _taskend = value; + RaisePropertyChanged("taskend"); + } + } + private System.UInt32 _ReadTask1No; + public System.UInt32 ReadTask1No + { + get + { + + _ReadTask1No=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.ReadTask1No"),typeof(System.UInt32)); + return _ReadTask1No; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.ReadTask1No",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.ReadTask1No", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.ReadTask1No", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _ReadTask1No = value; + RaisePropertyChanged("ReadTask1No"); + } + } + private System.UInt16 _bit1end; + public System.UInt16 bit1end + { + get + { + + _bit1end=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.bit1end"),typeof(System.UInt16)); + return _bit1end; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.bit1end",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.bit1end", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.bit1end", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _bit1end = value; + RaisePropertyChanged("bit1end"); + } + } + private System.String _bit1Code; + public System.String bit1Code + { + get + { + + _bit1Code=(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.bit1Code"),typeof(System.String)); + return _bit1Code; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.bit1Code",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.bit1Code", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.bit1Code", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _bit1Code = value; + RaisePropertyChanged("bit1Code"); + } + } + private System.UInt16 _bit1taskOver; + public System.UInt16 bit1taskOver + { + get + { + + _bit1taskOver=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.bit1taskOver"),typeof(System.UInt16)); + return _bit1taskOver; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.bit1taskOver",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.bit1taskOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.bit1taskOver", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _bit1taskOver = value; + RaisePropertyChanged("bit1taskOver"); + } + } + private System.UInt16 _bit1taskOver_LAST; + public System.UInt16 bit1taskOver_LAST + { + get + { + + _bit1taskOver_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.bit1taskOver_LAST"),typeof(System.UInt16)); + return _bit1taskOver_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.bit1taskOver_LAST",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.bit1taskOver_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.bit1taskOver_LAST", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _bit1taskOver_LAST = value; + RaisePropertyChanged("bit1taskOver_LAST"); + } + } + private System.UInt16 _Param6; + public System.UInt16 Param6 + { + get + { + + _Param6=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.Param6"),typeof(System.UInt16)); + return _Param6; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.Param6",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.Param6", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.Param6", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _Param6 = value; + RaisePropertyChanged("Param6"); + } + } + private System.UInt16 _Param7; + public System.UInt16 Param7 + { + get + { + + _Param7=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.Param7"),typeof(System.UInt16)); + return _Param7; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.Param7",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.Param7", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.Param7", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _Param7 = value; + RaisePropertyChanged("Param7"); + } + } + private System.UInt32 _ReadTask2No; + public System.UInt32 ReadTask2No + { + get + { + + _ReadTask2No=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.ReadTask2No"),typeof(System.UInt32)); + return _ReadTask2No; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.ReadTask2No",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.ReadTask2No", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.ReadTask2No", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _ReadTask2No = value; + RaisePropertyChanged("ReadTask2No"); + } + } + private System.UInt16 _bit2end; + public System.UInt16 bit2end + { + get + { + + _bit2end=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.bit2end"),typeof(System.UInt16)); + return _bit2end; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.bit2end",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.bit2end", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.bit2end", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _bit2end = value; + RaisePropertyChanged("bit2end"); + } + } + private System.String _bit2Code; + public System.String bit2Code + { + get + { + + _bit2Code=(System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.bit2Code"),typeof(System.String)); + return _bit2Code; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.bit2Code",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.bit2Code", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.bit2Code", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _bit2Code = value; + RaisePropertyChanged("bit2Code"); + } + } + private System.UInt16 _bit2taskOver; + public System.UInt16 bit2taskOver + { + get + { + + _bit2taskOver=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.bit2taskOver"),typeof(System.UInt16)); + return _bit2taskOver; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.bit2taskOver",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.bit2taskOver", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.bit2taskOver", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _bit2taskOver = value; + RaisePropertyChanged("bit2taskOver"); + } + } + private System.UInt16 _bit2taskOver_LAST; + public System.UInt16 bit2taskOver_LAST + { + get + { + + _bit2taskOver_LAST=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.bit2taskOver_LAST"),typeof(System.UInt16)); + return _bit2taskOver_LAST; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.bit2taskOver_LAST",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.bit2taskOver_LAST", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.bit2taskOver_LAST", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _bit2taskOver_LAST = value; + RaisePropertyChanged("bit2taskOver_LAST"); + } + } + private System.UInt32 _RgvrunError; + public System.UInt32 RgvrunError + { + get + { + + _RgvrunError=(System.UInt32)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.RgvrunError"),typeof(System.UInt32)); + return _RgvrunError; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.RgvrunError",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.RgvrunError", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.RgvrunError", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _RgvrunError = value; + RaisePropertyChanged("RgvrunError"); + } + } + private System.UInt16 _Rgv2Charge; + public System.UInt16 Rgv2Charge + { + get + { + + _Rgv2Charge=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.Rgv2Charge"),typeof(System.UInt16)); + return _Rgv2Charge; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.Rgv2Charge",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.Rgv2Charge", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.Rgv2Charge", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _Rgv2Charge = value; + RaisePropertyChanged("Rgv2Charge"); + } + } + private System.UInt16 _R褰撳墠鐢甸噺; + public System.UInt16 R褰撳墠鐢甸噺 + { + get + { + + _R褰撳墠鐢甸噺=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.R褰撳墠鐢甸噺"),typeof(System.UInt16)); + return _R褰撳墠鐢甸噺; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.R褰撳墠鐢甸噺",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.R褰撳墠鐢甸噺", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.R褰撳墠鐢甸噺", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _R褰撳墠鐢甸噺 = value; + RaisePropertyChanged("R褰撳墠鐢甸噺"); + } + } + private System.UInt16 _R鍏呯數鐘舵�; + public System.UInt16 R鍏呯數鐘舵� + { + get + { + + _R鍏呯數鐘舵�=(System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue("RGV.R鍏呯數鐘舵�"),typeof(System.UInt16)); + return _R鍏呯數鐘舵�; + } + set + { + //Conn.榛樿Redis.SetValue("RGV.R鍏呯數鐘舵�",value.ToString(),"RGVQueue"); + if (Conn.榛樿Redis.SetQueue(new GZ.Modular.Redis.WriteGroupEntity() + { + groupName = "RGV.R鍏呯數鐘舵�", + queueStatus = 1, + queueTime = DateTime.Now, + writeList = new List<GZ.Modular.Redis.ParamData>() + { + new GZ.Modular.Redis.ParamData() + { + paramName = "RGV.R鍏呯數鐘舵�", + paramValue = value.ToString() + } + } + },"RGVQueue","","")==false) + { + return; + } + _R鍏呯數鐘舵� = value; + RaisePropertyChanged("R鍏呯數鐘舵�"); + } + } + #endregion + + #region 鍙橀噺缁�+ #endregion + + #region 鍐呴儴绫�+ + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + + + #endregion + + #region 灞炴�鍙樻洿 + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } + +} diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\347\225\214\351\235\242\344\272\213\344\273\266.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\347\225\214\351\235\242\344\272\213\344\273\266.cs" new file mode 100644 index 0000000..723b294 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\347\225\214\351\235\242\344\272\213\344\273\266.cs" @@ -0,0 +1,2102 @@ +using System; +using System.Collections.Generic; +using System.IO; +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.Runtime.Serialization; +using System.Collections.Concurrent; +using System.ServiceModel; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System.Net; +using NLog; +using NLog.Config; +using NLog.Targets; +using GZ.DB.Map.OIDATABASE; +using GZ.DB.App.OIDATABASE; +using GZ.DB.Repository.OIDATABASE; +using GZ.DB.IRepository.OIDATABASE; +using GZ.DB.Entity.OIDATABASE; +using GZ.Modular.Redis; +namespace GZ.Projects.AuxAllWCS +{ + /// <summary> + /// 浜嬩欢 + /// </summary> + public partial class ViewModel : System.ComponentModel.INotifyPropertyChanged + { + bool IsExitApp = false; + ConcurrentStack<int> ExitJudgeStack = new ConcurrentStack<int>(); + System.Net.HttpListener HttpSvcHost = null; + + #region View1浜嬩欢 + /// <summary> + /// View1鎵撳紑浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + public void View1_LoadEvent(object sender, RoutedEventArgs e) + { + + try + { + HttpSvcHost = new System.Net.HttpListener(); + HttpSvcHost.AuthenticationSchemes = System.Net.AuthenticationSchemes.Anonymous; + HttpSvcHost.Prefixes.Add("http://10.221.55.116:8808/"); + HttpSvcHost.Start(); + HttpSvcHost.BeginGetContext(HttpSvcListenerCallback, null); + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + View1_Init(sender, e); + + /// <summary> + /// 绋嬪簭鐗囨:鍒濆鍖栭厤缃�+ /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250323111613779][涓氬姟閫昏緫.鍒濆鍖栭厤缃甝 + if (Tag.Global.SettingsOver == 0) + { + SettingInit(); + Tag.Global.SettingsOver = 1; + } + else if (Settings.deviceInfos.Count == 0) + { + Tag.Global.SettingsOver = 0; + } + + #endregion [鑴氭湰][20250323111613779][涓氬姟閫昏緫.鍒濆鍖栭厤缃甝 + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(10000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + //鎵ц澶氭 + for (int iii = 0; iii < 1; iii++) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250323151832119][涓氬姟閫昏緫.Program4] + //Conn.榛樿Redis.SetValue("瑗块棬瀛�.Param3","300","瑗块棬瀛�Queue"); + //return; + if (false) + { + List<string> locs = new List<string>() { "vxr1l", "vx1r", "vxr1c1", "vxr1c2", "vxr2l", "vxr2r", "vxr2c1", "vxr2c2" }; + List<string> sites = new List<string>() { "196365BB283162", "193841BB283149", "198756BB287300", "198767BB286133", "206987BB282931", "204460BB282975", "209405BB287057", "209377BB285899" }; + + LocRepository locservice = new LocRepository(); + for (int i = 0; i < locs.Count; i++) + { + string loccode = locs[i]; + string sitesss = sites[i]; + var loc = locservice.FindEntity(x => x.S_LOC_CODE == loccode); + if (loc == null) + { + locservice.Insert(new LocEntity + { + S_ID = Guid.NewGuid().ToString(), + S_STATE = "缂栬緫", + T_CREATE = DateTime.Now, + T_MODIFY = DateTime.Now, + S_DEEP = "vxr", + + S_LOC_CODE = loccode, + S_AGV_SITE = sitesss, + + S_LOCK_STATE = "鏃�, + N_ROW = 1, + N_COL = 1, + N_AGV_CODE = 0, + N_AGV_SITE_LAYER = 0, + N_CAPACITY = 1, + N_CURRENT_NUM = 0, + S_TYPE = "", + + }); + } + } + // TaskProcess.CreateTask("", locs[6], locs[7], "test", 9, new List<string> { "test" }, 1, 1, 1); + } + + #endregion [鑴氭湰][20250323151832119][涓氬姟閫昏緫.Program4] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + /// <summary> + /// 绋嬪簭鐗囨:鎹风灛鎶撹噦1 + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250325083325390][涓氬姟閫昏緫.绗笁鏍囨.鎹风灛鎶撹噦1] + var VERX = Settings.deviceInfos?.Find(x => x.deviceType == 2 && x.deviceName == "Js鎹烽『1"); + + if (VERX != null) + { + if (tag.Js1.D1212_LAST == 0 && TcpServer.GetBitdata(tag.Js1.D1212, 2) == 1) + { + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/200", JsonConvert.SerializeObject(new + { + requestType = 4, + endBit = VERX.location[0] + })); + LogHelper.Info($"{VERX.location[0]}鐢宠mes浠诲姟缁撴灉{str}"); + if (str.Contains("true")) + { + //tag.Js1.D1212_LAST = 1; + RedisHelper.Add($"Js鎹烽『1.D1212_LAST", "1", out string msg); + } + } + if (tag.Js1.D1212_LAST == 1 && TcpServer.GetBitdata(tag.Js1.D1212, 2) == 0) + { + //tag.Js1.D1212_LAST = 0; + RedisHelper.Add($"Js鎹烽『1.D1212_LAST", "0", out string msg); + } + if (tag.Js1.D1213_LAST == 0 && TcpServer.GetBitdata(tag.Js1.D1212, 3) == 1) + { + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/200", JsonConvert.SerializeObject(new + { + requestType = 4, + endBit = VERX.location[1] + })); + LogHelper.Info($"{VERX.location[1]}鐢宠mes浠诲姟缁撴灉{str}"); + if (str.Contains("true")) + { + //tag.Js1.D1213_LAST = 1; + RedisHelper.Add($"Js鎹烽『1.D1213_LAST", "1", out string msg); + } + } + if (tag.Js1.D1213_LAST == 1 && TcpServer.GetBitdata(tag.Js1.D1212, 3) == 0) + { + //tag.Js1.D1213_LAST = 0; + RedisHelper.Add($"Js鎹烽『1.D1213_LAST", "0", out string msg); + } + } + #endregion [鑴氭湰][20250325083325390][涓氬姟閫昏緫.绗笁鏍囨.鎹风灛鎶撹噦1] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:鎹风灛鎶撹噦2 + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250325083326611][涓氬姟閫昏緫.绗笁鏍囨.鎹风灛鎶撹噦2] + //jsz2鎹风灛鎶撹噦2 + + var VERX = Settings.deviceInfos?.Find(x => x.deviceType == 2 && x.deviceName == "Js鎹烽『2"); + + if (VERX != null) + { + if (tag.Js2.D1212_LAST == 0 && TcpServer.GetBitdata(tag.Js2.D1212, 2) == 1) + { + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/200", JsonConvert.SerializeObject(new + { + requestType = 4, + endBit = VERX.location[0] + })); + LogHelper.Info($"{VERX.location[0]}鐢宠mes浠诲姟缁撴灉{str}"); + if (str.Contains("true")) + { + //tag.Js2.D1212_LAST = 1; + + RedisHelper.Add($"Js鎹烽『1.D1212_LAST", "1", out string msg); + } + } + if (tag.Js2.D1212_LAST == 1 && TcpServer.GetBitdata(tag.Js2.D1212, 2) == 0) + { + //tag.Js2.D1212_LAST = 0; + + RedisHelper.Add($"Js鎹烽『1.D1212_LAST", "0", out string msg); + } + if (tag.Js2.D1213_LAST == 0 && TcpServer.GetBitdata(tag.Js2.D1212, 3) == 1) + { + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/200", JsonConvert.SerializeObject(new + { + requestType = 4, + endBit = VERX.location[1] + })); + LogHelper.Info($"{VERX.location[1]}鐢宠mes浠诲姟缁撴灉{str}"); + if (str.Contains("true")) + { + //tag.Js2.D1213_LAST = 1; + + RedisHelper.Add($"Js鎹烽『1.D1213_LAST", "1", out string msg); + } + } + if (tag.Js2.D1213_LAST == 1 && TcpServer.GetBitdata(tag.Js2.D1213, 2) == 0) + { + //tag.Js2.D1213_LAST = 0; + + RedisHelper.Add($"Js鎹烽『1.D1213_LAST", "0", out string msg); + } + } + #endregion [鑴氭湰][20250325083326611][涓氬姟閫昏緫.绗笁鏍囨.鎹风灛鎶撹噦2] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:鑷祦杞祦绋�+ /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250325085810885][涓氬姟閫昏緫.绗笁鏍囨.鑷祦杞祦绋媇 + //foreach(var di in Settings.deviceInfos) + // if (di.deviceType == 2 || di.deviceType == 1) + // RunafterMac(di,true); + /// TODO mes 涓嬪彂銆� 鏀规垚鏈烘鑷傜洃鎺�- 鐩戞帶绌虹殑杩樻槸婊$殑 - 鑱斿姩mes 浠诲姟銆�+ #endregion [鑴氭湰][20250325085810885][涓氬姟閫昏緫.绗笁鏍囨.鑷祦杞祦绋媇 + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:缁村笇灏旀姄鑷�L + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250325083149366][涓氬姟閫昏緫.绗笁鏍囨.缁寸郴灏�鍙�缁村笇灏旀姄鑷�L] + + var VERX = Settings.deviceInfos?.Find(x => x.deviceType == 1 && x.deviceName.Contains("1")); + + if (VERX != null) + { + if (tag.wxr1.R44 && !tag.wxr1.R44_LAST && tag.wxr1.R10) + { + if (TcpServer.TrayIps.TryGetValue(VERX.deviceNo[0], out string traycode)) + { + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/200", JsonConvert.SerializeObject(new + { + requestType = 1, + cntrCode = traycode, + startBit = VERX.location[0], + endBit = "" + })); + LogHelper.Info($"{VERX.location[0]}鐢宠mes浠诲姟缁撴灉{str}"); + if (str.Contains("true")) + { + tag.wxr1.R44_LAST = true; + } + } + else + { + TcpServer.TcpServerSend(VERX.deviceNo[0], GZ.Device.PLC.PlcHelper.Hex2Bin("544F4E")); + } + } + else + { + //TaskRepository ts = new TaskRepository(); + if (tag.wxr1.R10_LAST) //鎵樼洏鏀剧疆淇″彿銆傘� + { + if (tag.wxr1.R10) + { + tag.wxr1.R10_LAST = false; + } + else + if (TcpServer.TrayIps.TryGetValue(VERX.deviceNo[0], out string traycode)) + { + //涓婃姤鏍¢獙銆�+ ///var str = Settings.apiHelper.Post(Settings.MESbaseUrl + "mom-basic/dataTransmission/json/service/202", requestJson); + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/202", JsonConvert.SerializeObject(new + { + sceneType = 1, + cntrCode = traycode, + })); + if (str.Contains("true")) + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10", "true", "缁村笇灏旀姄鑷�Queue"); + tag.wxr1.R10 = true; + tag.wxr1.R44_LAST = false; + } + else + { + //鎶ヨ銆�+ } + } + else { TcpServer.TcpServerSend(VERX.deviceNo[0], GZ.Device.PLC.PlcHelper.Hex2Bin("544F4E")); } + } + } + } + #endregion [鑴氭湰][20250325083149366][涓氬姟閫昏緫.绗笁鏍囨.缁寸郴灏�鍙�缁村笇灏旀姄鑷�L] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:缁村笇灏旀姄鑷�R + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250610002047005][涓氬姟閫昏緫.绗笁鏍囨.缁寸郴灏�鍙�缁村笇灏旀姄鑷�R] + var VERX = Settings.deviceInfos?.Find(x => x.deviceType == 1 && x.deviceName.Contains("1")); + + if (VERX != null) + { + if (tag.wxr1.R46 && !tag.wxr1.R46_LAST && tag.wxr1.R11) + { + if (TcpServer.TrayIps.TryGetValue(VERX.deviceNo[1], out string traycode)) + { + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/200", JsonConvert.SerializeObject(new + { + requestType = 1, + cntrCode = traycode, + startBit = VERX.location[1], + endBit = "" + })); + LogHelper.Info($"{VERX.location[1]}鐢宠mes浠诲姟缁撴灉{str}"); + if (str.Contains("true")) + { + tag.wxr1.R46_LAST = true; + } + } + else + { + TcpServer.TcpServerSend(VERX.deviceNo[1], GZ.Device.PLC.PlcHelper.Hex2Bin("544F4E")); + } + } + else + { + if (tag.wxr1.R11_LAST) //鎵樼洏鏀剧疆淇″彿銆傘� + { + if (tag.wxr1.R11) + { + tag.wxr1.R11_LAST = false; + } + else + if (TcpServer.TrayIps.TryGetValue(VERX.deviceNo[1], out string traycode)) + { + //涓婃姤鏍¢獙銆�+ ///var str = Settings.apiHelper.Post(Settings.MESbaseUrl + "mom-basic/dataTransmission/json/service/202", requestJson); + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/202", JsonConvert.SerializeObject(new + { + sceneType = 1, + cntrCode = traycode, + })); + if (str.Contains("true")) + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10", "true", "缁村笇灏旀姄鑷�Queue"); + tag.wxr1.R11 = true; + tag.wxr1.R46_LAST = false; + } + else + { + //鎶ヨ銆�+ } + } + else { TcpServer.TcpServerSend(VERX.deviceNo[1], GZ.Device.PLC.PlcHelper.Hex2Bin("544F4E")); } + } + } + } + #endregion [鑴氭湰][20250610002047005][涓氬姟閫昏緫.绗笁鏍囨.缁寸郴灏�鍙�缁村笇灏旀姄鑷�R] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:缁村笇灏旀姄鑷�L + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250325083315503][涓氬姟閫昏緫.绗笁鏍囨.缁寸郴灏�鍙�缁村笇灏旀姄鑷�L] + + var VERX = Settings.deviceInfos?.Find(x => x.deviceType == 1 && x.deviceName.Contains("2")); + + if (VERX != null) + { + if (tag.wxr2.R44 && !tag.wxr2.R44_LAST && tag.wxr2.R10) + { + if (TcpServer.TrayIps.TryGetValue(VERX.deviceNo[0], out string traycode)) + { + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/200", JsonConvert.SerializeObject(new + { + requestType = 1, + cntrCode = traycode, + startBit = VERX.location[0], + endBit = "" + })); + LogHelper.Info($"{VERX.location[0]}鐢宠mes浠诲姟缁撴灉{str}"); + if (str.Contains("true")) + { + tag.wxr2.R44_LAST = true; + } + } + else + { + TcpServer.TcpServerSend(VERX.deviceNo[0], GZ.Device.PLC.PlcHelper.Hex2Bin("544F4E")); + } + } + else + { + if (tag.wxr2.R10_LAST) //鎵樼洏鏀剧疆淇″彿銆傘� + { + if (tag.wxr2.R10) + { + tag.wxr2.R10_LAST = false; + } + else + if (TcpServer.TrayIps.TryGetValue(VERX.deviceNo[0], out string traycode)) + { + //涓婃姤鏍¢獙銆�+ ///var str = Settings.apiHelper.Post(Settings.MESbaseUrl + "mom-basic/dataTransmission/json/service/202", requestJson); + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/202", JsonConvert.SerializeObject(new + { + sceneType = 1, + cntrCode = traycode, + })); + if (str.Contains("true")) + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10", "true", "缁村笇灏旀姄鑷�Queue"); + tag.wxr2.R10 = true; + tag.wxr2.R44_LAST = false; + } + else + { + //鎶ヨ銆�+ } + } + else { TcpServer.TcpServerSend(VERX.deviceNo[0], GZ.Device.PLC.PlcHelper.Hex2Bin("544F4E")); } + } + } + } + #endregion [鑴氭湰][20250325083315503][涓氬姟閫昏緫.绗笁鏍囨.缁寸郴灏�鍙�缁村笇灏旀姄鑷�L] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:缁村笇灏旀姄鑷�R + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250610002647095][涓氬姟閫昏緫.绗笁鏍囨.缁寸郴灏�鍙�缁村笇灏旀姄鑷�R] + var VERX = Settings.deviceInfos?.Find(x => x.deviceType == 1 && x.deviceName.Contains("2")); + + if (VERX != null) + { + if (tag.wxr2.R46 && !tag.wxr2.R46_LAST && tag.wxr2.R11) + { + if (TcpServer.TrayIps.TryGetValue(VERX.deviceNo[1], out string traycode)) + { + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/200", JsonConvert.SerializeObject(new + { + requestType = 1, + cntrCode = traycode, + startBit = VERX.location[1], + endBit = "" + })); + LogHelper.Info($"{VERX.location[1]}鐢宠mes浠诲姟缁撴灉{str}"); + if (str.Contains("true")) + { + tag.wxr2.R46_LAST = true; + } + } + else + { + TcpServer.TcpServerSend(VERX.deviceNo[2], GZ.Device.PLC.PlcHelper.Hex2Bin("544F4E")); + } + } + else + { + if (tag.wxr2.R11_LAST) //鎵樼洏鏀剧疆淇″彿銆傘� + { + if (tag.wxr2.R11) + { + tag.wxr2.R11_LAST = false; + } + else + if (TcpServer.TrayIps.TryGetValue(VERX.deviceNo[1], out string traycode)) + { + //涓婃姤鏍¢獙銆�+ ///var str = Settings.apiHelper.Post(Settings.MESbaseUrl + "mom-basic/dataTransmission/json/service/202", requestJson); + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/202", JsonConvert.SerializeObject(new + { + sceneType = 1, + cntrCode = traycode, + })); + if (str.Contains("true")) + { + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10", "true", "缁村笇灏旀姄鑷�Queue"); + tag.wxr2.R11 = true; + tag.wxr2.R46_LAST = false; + } + else + { + //鎶ヨ銆�+ } + } + else { TcpServer.TcpServerSend(VERX.deviceNo[1], GZ.Device.PLC.PlcHelper.Hex2Bin("544F4E")); } + } + } + } + #endregion [鑴氭湰][20250610002647095][涓氬姟閫昏緫.绗笁鏍囨.缁寸郴灏�鍙�缁村笇灏旀姄鑷�R] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:浠诲姟涓嬪彂 + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250325085542733][涓氬姟閫昏緫.浠诲姟涓嬪彂] + ITaskRepository taskservice = new TaskRepository(); + var tklist = taskservice.FindList(x => x.S_B_STATE == "鏈墽琛� && x.S_WORK_MODE == "AGV"); + if (tklist.Any()) + foreach (var tk in tklist.GroupBy(item => + { + var ticks = item.T_CREATE.Ticks; + return new DateTime(ticks - ticks % (10 * TimeSpan.TicksPerMinute)); + }).OrderBy(x => x.Key)) + { + var ts = tk.OrderByDescending(x => x.N_PRIORITY).ToList(); + foreach (var t in ts) + { + var b = false; + b = RunTask(t); + + if (b) + { + t.S_B_STATE = "宸叉帹閫�; + taskservice.Update(t); + } + } + break; + } + //foreach (var tk in tklist.GroupBy(item => + //{ + // var ticks = item.T_CREATE.Ticks; + // return new DateTime(ticks - ticks % (10 * TimeSpan.TicksPerMinute)); + //}).OrderBy(x => x.Key)) + //if (tklist.Any()) + //{ + + try + { + #region Rgv + + LogHelper.Info($"鏌ョ湅RGV 鐢甸噺锛氥�{tag.RGV.R褰撳墠鐢甸噺}銆�鍏呯數鐘舵�锛氥�{tag.RGV.R鍏呯數鐘舵�}銆�鏁呴殰浠g爜锛氥�{tag.RGV.RgvrunError}銆�); + var task1Isrun = false; + if (tag.RGV.ReadTask1No > 0 && tag.RGV.bit1taskOver != 1) + { + task1Isrun = true; + if (tag.RGV.bit1taskOver_LAST == 1) + RedisHelper.Add($"RGV.bit1taskOver_LAST", "0", out string msg); + } + var task2Isrun = false; + if (tag.RGV.ReadTask2No > 0 && tag.RGV.bit2taskOver != 1) + { + task2Isrun = true; + if (tag.RGV.bit2taskOver_LAST == 1) + RedisHelper.Add($"RGV.bit2taskOver_LAST", "0", out string msg); + } + if (task1Isrun || task2Isrun) + { + string mes = ""; + if (task1Isrun) + mes += tag.RGV.ReadTask1No + "鎵ц涓�.."; + if (task2Isrun) + mes += tag.RGV.ReadTask2No + "鎵ц涓�.."; + LogHelper.Info($"{mes} 涓嶈兘涓嬪彂鏂颁换鍔°�"); + throw new Exception($"{mes} 涓嶈兘涓嬪彂鏂颁换鍔°�"); + } + + var thisOver = 0; + + TaskEntity task1 = null; + TaskEntity task2 = null; + + LogHelper.Info($"鏌ョ湅RGV 1宸ヤ綅浠诲姟銆�); + if (tag.RGV.ReadTask1No > 0 && tag.RGV.bit1taskOver == 1) + { + var taskno = tag.RGV.ReadTask1No; + LogHelper.Info($"RGV 1宸ヤ綅浠诲姟{tag.RGV.ReadTask1No}"); + string tno = "TN" + (DateTime.Now.ToString("yy")) + ((taskno.ToString()).PadLeft(8, '0')); + task1 = taskservice.FindEntity(x => x.S_TASK_NO == tno); + + LogHelper.Info($"RGV 1宸ヤ綅浠诲姟{JsonConvert.SerializeObject(task1)}.bit1taskOver_LAST锛歿tag.RGV.bit1taskOver_LAST}"); + if (tag.RGV.bit1taskOver_LAST == 0 && task1 != null) + { + if (task1.S_B_STATE != "瀹屾垚") + { + thisOver = 1; + if (task1.S_B_STATE == "鍙栬揣瀹屾垚") + { + task1.S_B_STATE = "瀹屾垚"; + } + else + { + task1.S_B_STATE = "鍙栬揣瀹屾垚"; + } + LogHelper.Info($"RGV 1宸ヤ綅浠诲姟{task1.S_TASK_NO} 鐘舵�鍒囨崲涓簕task1.S_B_STATE}"); + //tag.RGV.bit1taskOver_LAST = 1; + RedisHelper.Add($"RGV.bit1taskOver_LAST", "1", out string msg); + LogHelper.Info($"RGV 1宸ヤ綅浠诲姟鍐欏鐞�); + taskservice.Update(task1); + LogHelper.Info($"RGV 1宸ヤ綅浠诲姟鏇存柊銆�); + } + else + { + LogHelper.Info("RGV1宸ヤ綅浠诲姟宸茬粡瀹屾垚銆�); + } + } + } + else if (tag.RGV.ReadTask1No == 0) + { + LogHelper.Info($"RGV 1宸ヤ綅娌℃湁浠诲姟銆�); + } + + LogHelper.Info($"鏌ョ湅RGV 2宸ヤ綅浠诲姟銆�); + if (tag.RGV.ReadTask2No > 0 && tag.RGV.bit2taskOver == 1) + { + var taskno = tag.RGV.ReadTask2No; + LogHelper.Info($"RGV 2宸ヤ綅浠诲姟{tag.RGV.ReadTask2No}"); + string tno = "TN" + (DateTime.Now.ToString("yy")) + ((taskno.ToString()).PadLeft(8, '0')); + task2 = taskservice.FindEntity(x => x.S_TASK_NO == tno); + + LogHelper.Info($"RGV2宸ヤ綅浠诲姟{JsonConvert.SerializeObject(task2)}.bit2taskOver_LAST锛歿tag.RGV.bit2taskOver_LAST}"); + if (tag.RGV.bit2taskOver_LAST == 0 && task2 != null) + { + if (task2.S_B_STATE != "瀹屾垚") + { + thisOver = 2; + if (task2.S_B_STATE == "鍙栬揣瀹屾垚") + { + task2.S_B_STATE = "瀹屾垚"; + } + else + { + task2.S_B_STATE = "鍙栬揣瀹屾垚"; + } + LogHelper.Info($"RGV 2宸ヤ綅浠诲姟{task2.S_TASK_NO} 鐘舵�鍒囨崲涓簕task2.S_B_STATE}"); + RedisHelper.Add($"RGV.bit2taskOver_LAST", "1", out string msg); + LogHelper.Info($"RGV 2宸ヤ綅浠诲姟鍐欏鐞�); + taskservice.Update(task2); + LogHelper.Info($"RGV 2宸ヤ綅浠诲姟鏇存柊銆�); + } + else + { + LogHelper.Info("RGV2宸ヤ綅浠诲姟宸茬粡瀹屾垚銆�); + } + } + } + else if (tag.RGV.ReadTask2No == 0) + { + LogHelper.Info($"RGV 2宸ヤ綅娌℃湁浠诲姟銆�); + } + + //if (thisOver > 0) + { + var v2 = RedisHelper.Get<WriteGroupEntity>("RGVQueue", out string rev); + if (v2 != null) + { + LogHelper.Info($"RGVQueue 璇诲埌缁撴灉-{JsonConvert.SerializeObject(v2)} \n 涓嬪彂鍓嶈繘琛屾竻闄ゃ�"); + var b = RedisHelper.Remove("RGVQueue", out rev); + } + } + + ///1 鏈夎揣 灏� 鍙栥� 1 娌¤揣 灏� 鍗歌揣锛�閮芥湁璐� 灏�鍗歌揣銆�閮芥病璐�灏�鍗�+ tklist = taskservice.FindList(x => x.S_B_STATE == "鏈墽琛� && x.S_WORK_MODE == "RGV").OrderBy(x => x.T_CREATE).ToList(); + if (task1 != null && task1.S_B_STATE != "瀹屾垚") //1鏈変换鍔�+ { + if (task2 != null && task2.S_B_STATE != "瀹屾垚")// 1 鏈変换鍔� 2 鏈変换鍔°� + { + LogHelper.Info($"鏌ョ湅RGV1 鏈変换鍔task1.S_TASK_NO},宸ヤ綅2 涔熸湁浠诲姟{task2.S_TASK_NO}銆�寮�宸ヤ綅1 鍗歌揣銆�); + tag.RGV.workMod = 1; + tag.RGV.taskmod = 2; + tag.RGV.taskno1 = Convert.ToUInt32(task1.S_TASK_NO.Substring(4)); + tag.RGV.task1do = Convert.ToUInt16(task1.S_END_LOC); + System.Threading.Thread.Sleep(750); + RedisHelper.Add($"RGV.bit1taskOver_LAST", "0", out string msg); + tag.RGV.taskend = 125; + } + else //1鏈変换鍔� 2 娌′换鍔°� + { + LogHelper.Info($"鏌ョ湅RGV1 鏈変换鍔task1.S_TASK_NO},宸ヤ綅2 娌′换鍔°� 鎵惧悓渚у彇璐т换鍔°�"); + //1 濡傛灉鏈夊悓渚у彇璐т换鍔°�灏卞彇銆傛病鏈�+ var leftSide = new List<string> { "1023", "1020" }; + var RightSide = new List<string> { "1002", "1008", "1010", "1016" }; + bool creT2 = false; + if (leftSide.Contains(task1.S_START_LOC)) + { + leftSide.Remove(task1.S_START_LOC); + var lsde = leftSide.FirstOrDefault(); + var t2 = tklist.Find(x => x.S_START_LOC == lsde && x.S_END_LOC != "1017"); + if (t2 != null) //鍚屼晶鍙栬揣浠诲姟銆�+ { + LogHelper.Info($"鏌ョ湅RGV1 鏈変换鍔task1.S_TASK_NO},宸ヤ綅2 娌′换鍔°� 鎵惧悓渚у彇璐т换鍔t2.S_TASK_NO}銆�); + tag.RGV.workMod = 2; + tag.RGV.taskmod = 1; + tag.RGV.taskno2 = Convert.ToUInt32(t2.S_TASK_NO.Substring(4)); + tag.RGV.task2do = Convert.ToUInt16(t2.S_START_LOC); + t2.S_B_STATE = "宸叉帹閫�; + taskservice.Update(t2); + creT2 = true; + System.Threading.Thread.Sleep(750); + RedisHelper.Add($"RGV.bit2taskOver_LAST", "0", out string msg); + tag.RGV.taskend = 125; + } + } + else if (RightSide.Contains(task1.S_START_LOC)) + { + RightSide.Remove(task1.S_START_LOC); + var t2 = tklist.Find(x => RightSide.Contains(x.S_START_LOC) && x.S_END_LOC != "1017"); + if (t2 != null) //鍚屼晶鍙栬揣浠诲姟銆�+ { + LogHelper.Info($"鏌ョ湅RGV1 鏈変换鍔task1.S_TASK_NO},宸ヤ綅2 娌′换鍔°� 鎵惧悓渚у彇璐т换鍔t2.S_TASK_NO}銆�); + tag.RGV.workMod = 2; + tag.RGV.taskmod = 1; + tag.RGV.taskno2 = Convert.ToUInt32(t2.S_TASK_NO.Substring(4)); + tag.RGV.task2do = Convert.ToUInt16(t2.S_START_LOC); + t2.S_B_STATE = "宸叉帹閫�; + taskservice.Update(t2); + creT2 = true; + System.Threading.Thread.Sleep(750); + RedisHelper.Add($"RGV.bit2taskOver_LAST", "0", out string msg); + tag.RGV.taskend = 125; + } + } + //else //1 鐩存帴鍗歌揣銆� + if (!creT2) + { + LogHelper.Info($"鏌ョ湅RGV1 鏈変换鍔task1.S_TASK_NO},宸ヤ綅2 娌′换鍔°� 娌℃湁鍚屼晶鍙栬揣浠诲姟 1宸ヤ綅鍗歌揣銆�); + tag.RGV.workMod = 1; + tag.RGV.taskmod = 2; + tag.RGV.taskno1 = Convert.ToUInt32(task1.S_TASK_NO.Substring(4)); + tag.RGV.task1do = Convert.ToUInt16(task1.S_END_LOC); + System.Threading.Thread.Sleep(750); + RedisHelper.Add($"RGV.bit1taskOver_LAST", "0", out string msg); + tag.RGV.taskend = 125; + } + } + } + else + { + if (task2 != null && task2.S_B_STATE != "瀹屾垚")// 1 娌′换鍔� 2 鏈変换鍔°� + { + LogHelper.Info($"鏌ョ湅RGV 1宸ヤ綅娌′换鍔�宸ヤ綅2 鏈変换鍔task2.S_TASK_NO}銆傚伐浣�鍗歌揣銆傘�"); + //2 鍗歌揣銆�+ tag.RGV.workMod = 2; + tag.RGV.taskmod = 2; + tag.RGV.taskno2 = Convert.ToUInt32(task2.S_TASK_NO.Substring(4)); + tag.RGV.task2do = Convert.ToUInt16(task2.S_END_LOC); + System.Threading.Thread.Sleep(750); + RedisHelper.Add($"RGV.bit2taskOver_LAST", "0", out string msg); + tag.RGV.taskend = 125; + } + else //1mei 浠诲姟 2 娌′换鍔°� + { + LogHelper.Info($"鏌ョ湅RGV 1宸ヤ綅娌′换鍔�宸ヤ綅2 涔熸病浠诲姟銆備紭鍏�宸ヤ綅缁堢偣1017浠诲姟銆傘�"); + //銆佷笅 1017浠诲姟 缁�鍙峰伐浣嶃� + var lss = tklist.Take(2).ToList(); + var e1017first = lss.Find(x => x.S_END_LOC == "1017"); + if (e1017first == null) + { + e1017first = lss.FirstOrDefault(); + } + if (e1017first != null) + { + LogHelper.Info($"鏌ョ湅RGV 1宸ヤ綅娌′换鍔�宸ヤ綅2 涔熸病浠诲姟銆�宸ヤ綅涓嬩换鍔e1017first.S_TASK_NO}> 缁堢偣{e1017first.S_END_LOC}銆�); + tag.RGV.workMod = 1; + tag.RGV.taskmod = 1; + uint tno = Convert.ToUInt32(e1017first.S_TASK_NO.Substring(4)); + LogHelper.Info($"{e1017first.S_TASK_NO}> 杞崲鍚庝换鍔″彿{tno} 寮�鍐欏叆銆�); + tag.RGV.taskno1 = tno; + LogHelper.Info($"{e1017first.S_TASK_NO}>寮�鍐欏叆 task1do>>{e1017first.S_START_LOC}銆�); + tag.RGV.task1do = Convert.ToUInt16(e1017first.S_START_LOC); + LogHelper.Info($"{e1017first.S_TASK_NO}> taskend 125"); + e1017first.S_B_STATE = "宸叉帹閫�; + taskservice.Update(e1017first); + System.Threading.Thread.Sleep(750); + RedisHelper.Add($"RGV.bit1taskOver_LAST", "0", out string msg); + tag.RGV.taskend = 125; + } + } + } + + #endregion + } + catch (Exception ex) + { + LogHelper.Error(ex.Message, ex); + //throw ex; + } + #endregion [鑴氭湰][20250325085542733][涓氬姟閫昏緫.浠诲姟涓嬪彂] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:ResolveMesTask + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250531163716255][涓氬姟閫昏緫.澶勭悊MES浠诲姟绾跨▼.ResolveMesTask] + //mes 浠诲姟鎷嗗垎銆備竴娈典换鍔″拰 澶氭浠诲姟銆�+ ToWMSMES.ResMesTask(); + #endregion [鑴氭湰][20250531163716255][涓氬姟閫昏緫.澶勭悊MES浠诲姟绾跨▼.ResolveMesTask] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + try + { + #region [鑴氭湰][20250605212104026][涓氬姟閫昏緫.SocketServer] + var host = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName()); + foreach (var ip in host.AddressList) + { + if (ip.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork) + { + Console.WriteLine($"ip= {ip.ToString()}"); + new TcpServer(ip.ToString()); + } + } + #endregion [鑴氭湰][20250605212104026][涓氬姟閫昏緫.SocketServer] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + } + /// <summary> + /// 绋嬪簭鐗囨:鍏夋爡澶勭悊 + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250611223832523][涓氬姟閫昏緫.鍏夋爡澶勭悊] + // - 鍏夋爡浜や簰澶勭悊銆傘� + var taskCOdes = new List<string> { "Sarrive", "Srelease", "Earrive", "Erelease" }; + TaskActRepository taskActRepository = new TaskActRepository(); + TaskRepository taskRepository = new TaskRepository(); + var requires = taskActRepository.FindList(x => taskCOdes.Contains(x.S_ACTION_CODE) && x.N_CREATEMETHOD == 0); + foreach (var item in requires) + { + var tin = taskCOdes.IndexOf(item.S_ACTION_CODE); + if (tin == -1) + { + item.N_CREATEMETHOD = -1; + taskActRepository.Update(item); + continue; + } + //var task = taskRepository.FindEntity(x => x.S_TASK_NO == item.S_TASK_NO); + string loc = ""; + if (tin < 2) + { + loc = item.S_START_LOC; + } + else + { + loc = item.S_END_LOC; + } + if (loc == null) continue; else loc = loc.Trim(); + bool goin = tin % 2 == 0; + bool continuuuuu = false; + var dev = Settings.deviceInfos.Find(x => x.location.Contains(loc)); + if (dev != null) + { + var V = dev.location.ToList().FindIndex(x => x == loc) == 0; + //杞﹁蛋浜� 寮�厜鏍�+ if (!goin) + { + if (dev.deviceType == 1) + { + LogHelper.Info($"{dev.deviceName}{(V ? "宸� : "鍙�)} 鍏夋爡{(goin ? "鍏抽棴" : "寮�惎")} 鐢宠銆� + string.Format("{0}{1}{2}", dev.deviceName + "." + (V ? "R02" : "R04"), "true", dev.deviceName + "Queue")); + Conn.榛樿Redis.SetValue(dev.deviceName + "." + (V ? "R02" : "R04"), "true", dev.deviceName + "Queue"); + + } + else if (dev.deviceType == 2) + { + LogHelper.Info($"{dev.deviceName}{(V ? "宸� : "鍙�)} 鍏夋爡{(goin ? "鍏抽棴" : "寮�惎")} 鐢宠銆� + string.Format("{0}{1}{2}", dev.deviceName + "." + (V ? "D1222" : "D1223"), "1", dev.deviceName + "Queue")); + Conn.榛樿Redis.SetValue(dev.deviceName + "." + (V ? "D1222" : "D1223"), "1", dev.deviceName + "Queue"); + } + + item.N_CREATEMETHOD = 1; + taskActRepository.Update(item); + } + //杞﹁杩涘叆浜や簰銆�+ else + { + if (dev.deviceType == 1) + { + var tf = Conn.榛樿Redis.GetValue(dev.deviceName + "." + (V ? "R50" : "R52"));//璇诲叧闂姸鎬�+ if (tf?.ToLower() == "true") + { + LogHelper.Info($"{dev.deviceName}{(V ? "宸� : "鍙�)} 鍏夋爡{(goin ? "鍏抽棴" : "寮�惎")} 鐢宠銆�宸茬粡鍏抽棴锛�); + continuuuuu = true; + } + else + { + LogHelper.Info($"{dev.deviceName}{(V ? "宸� : "鍙�)} 鍏夋爡{(goin ? "鍏抽棴" : "寮�惎")} 鐢宠銆� + string.Format("{0}{1}{2}", dev.deviceName + "." + (V ? "R01" : "R03"), "true", dev.deviceName + "Queue")); + Conn.榛樿Redis.SetValue(dev.deviceName + "." + (V ? "R01" : "R03"), "true", dev.deviceName + "Queue"); + } + + } + else if (dev.deviceType == 2) + { + var tf = Conn.榛樿Redis.GetValue(dev.deviceName + ".D1202"); + int numm = int.Parse(string.IsNullOrEmpty(tf) ? "0" : tf); + if (TcpServer.GetBitdata(numm, (V ? 0 : 1)) == 1) + { + LogHelper.Info($"{dev.deviceName}{(V ? "宸� : "鍙�)} 鍏夋爡{(goin ? "鍏抽棴" : "寮�惎")} 鐢宠銆�宸茬粡鍏抽棴锛�); + continuuuuu = true; + } + else + { + LogHelper.Info($"{dev.deviceName}{(V ? "宸� : "鍙�)} 鍏夋爡{(goin ? "鍏抽棴" : "寮�惎")} 鐢宠銆� + string.Format("{0}{1}{2}", dev.deviceName + "." + (V ? "D1220" : "D1221"), dev.deviceName + "Queue")); + Conn.榛樿Redis.SetValue(dev.deviceName + "." + (V ? "D1220" : "D1221"), "1", dev.deviceName + "Queue"); + } + } + + } + + } + if (continuuuuu) + { + LogHelper.Info($"{item.S_TASK_NO}{item.S_ACTION_CODE} 杞﹁締鍙戦�缁х画浠诲姟锛�); + continueTask(new HaiKangOrderInfo + { + reqCode = item.S_ID.Replace("-", ""), + taskCode = item.S_TASK_NO + }); + item.N_CREATEMETHOD = 1; + taskActRepository.Update(item); + } + } + System.Threading.Thread.Sleep(3000); + //閲嶇疆淇″彿 + foreach (var dev in Settings.deviceInfos.FindAll(x => x.deviceType == 2)) + { + var tf = Conn.榛樿Redis.GetValue(dev.deviceName + ".D1202"); + int numm = int.Parse(string.IsNullOrEmpty(tf) ? "0" : tf); + if (TcpServer.GetBitdata(numm, 0) == 0) + { + Conn.榛樿Redis.SetValue(dev.deviceName + ".D1220", "0", dev.deviceName + "Queue"); + Conn.榛樿Redis.SetValue(dev.deviceName + ".D1222", "0", dev.deviceName + "Queue"); + } + else if (TcpServer.GetBitdata(numm, 1) == 0) + { + Conn.榛樿Redis.SetValue(dev.deviceName + ".D1221", "0", dev.deviceName + "Queue"); + Conn.榛樿Redis.SetValue(dev.deviceName + ".D1223", "0", dev.deviceName + "Queue"); + } + } + + // 鍙戦偅绉戜笅鏂欏厜鏍呫� + #endregion [鑴氭湰][20250611223832523][涓氬姟閫昏緫.鍏夋爡澶勭悊] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:1020绌烘涓嬬嚎 + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250616094224396][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1020绌烘涓嬬嚎] + //1020 1023 绌烘涓嬬嚎 + foreach (var Bssx in new string[] { "1020", "1023" }) + { + var RtaskState = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{Bssx}Read.RtaskState"), typeof(System.UInt16)); + var RtaskState_LAST = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{Bssx}Read.RtaskState_LAST"), typeof(System.UInt16)); + var R鎵樼洏鐮�= (System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{Bssx}Read.R鎵樼洏鐮�), typeof(System.String)); + Console.WriteLine($"{Bssx} 绌轰笅妫�祴锛氫换鍔$敵璇凤細{RtaskState}- 鏄惁宸插鐞嗭細{RtaskState_LAST}- 鎵樼洏鐮侊細{R鎵樼洏鐮亇"); + if (RtaskState == 3 && RtaskState_LAST == 0) + { + try + { + foreach (var item in (Bssx == "1020" ? new string[] { "1004", "1012" } : new string[] { "1006", "1014" })) + { + var R5 = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{item}Read.R5绌洪棽"), typeof(System.UInt16)); + var R5绌洪棽_LAST = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{item}Read.R5绌洪棽_LAST"), typeof(System.UInt16)); + if (R5 == 5 && R5绌洪棽_LAST == 0) + { + var b = TaskProcess.CreateTask("", Bssx, item, "绌轰笂RGV", 5, new List<string> { R鎵樼洏鐮�}, "RGV"); + if (b) + { + LogHelper.Debug($"杈撻�绾縍GV绌烘墭浠诲姟 from:{Bssx}>to {item}寮�鍒涘缓鎴愬姛"); + RedisHelper.Add($"S{Bssx}Read.RtaskState_LAST", "1", out string msg); + //Conn.榛樿Redis.SetValue($"S{Bssx}Read.RtaskState_LAST", "1", $"S{Bssx}ReadQueue"); + RedisHelper.Add($"S{item}Read.R5绌洪棽_LAST", "1", out string msg1); + //Conn.榛樿Redis.SetValue($"S{item}Read.R5绌洪棽_LAST", "1", $"S{item}ReadQueue"); + break; + } + } + else if (R5 != 5 && R5绌洪棽_LAST == 1) + { + RedisHelper.Add($"S{item}Read.R5绌洪棽_LAST", "0", out string msg); + //Conn.榛樿Redis.SetValue($"S{item}Read.R5绌洪棽_LAST", "0", $"S{item}ReadQueue"); + } + } + System.Threading.Thread.Sleep(1000); + } + catch (Exception ex) + { + LogHelper.Error(ex.Message, ex); + Console.WriteLine(ex.Message + ex.StackTrace); + } + } + else if (RtaskState != 3 && RtaskState_LAST == 1) + { + RedisHelper.Add($"S{Bssx}Read.RtaskState_LAST", "0", out string msg); + //Conn.榛樿Redis.SetValue($"S{Bssx}Read.RtaskState_LAST", "0", $"S{Bssx}ReadQueue"); + } + System.Threading.Thread.Sleep(2000); + } + #endregion [鑴氭湰][20250616094224396][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1020绌烘涓嬬嚎] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:1023绌烘涓嬬嚎 + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250616094226654][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1023绌烘涓嬬嚎] + //1023 绌烘涓嬬嚎 + #endregion [鑴氭湰][20250616094226654][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1023绌烘涓嬬嚎] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:瀹氬瓙婊′笅绾�+ /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250616094632985][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.瀹氬瓙婊′笅绾縘 + //瀹氬瓙婊′笅绾� 1008 1016 -> 1026 + foreach (var Bssx in new string[] { "1008", "1016" }) + { + var RtaskState = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{Bssx}Read.RtaskState"), typeof(System.UInt16)); + var RtaskState_LAST = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{Bssx}Read.RtaskState_LAST"), typeof(System.UInt16)); + var R鎵樼洏鐮�= (System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{Bssx}Read.R鎵樼洏鐮�), typeof(System.String)); + Console.WriteLine($"{Bssx} 婊′笅妫�祴锛氫换鍔$敵璇凤細{RtaskState}- 鏄惁宸插鐞嗭細{RtaskState_LAST}- 鎵樼洏鐮侊細{R鎵樼洏鐮亇"); + if (RtaskState == 3 && RtaskState_LAST == 0) + { + var item = "1026"; + var R5 = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{item}Read.R5绌洪棽"), typeof(System.UInt16)); + var R5绌洪棽_LAST = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{item}Read.R5绌洪棽_LAST"), typeof(System.UInt16)); + if (R5 == 5 && R5绌洪棽_LAST == 0) + { + var b = TaskProcess.CreateTask("", Bssx, item, "婊¤浆1026", 5, new List<string> { R鎵樼洏鐮�}, "RGV"); + if (b) + { + RedisHelper.Add($"S{Bssx}Read.RtaskState_LAST", "1", out string msg); + RedisHelper.Add($"S{item}Read.R5绌洪棽_LAST", "1", out string msg2); + //Conn.榛樿Redis.SetValue($"S{Bssx}Read.RtaskState_LAST", "1", $"S{Bssx}ReadQueue"); + //Conn.榛樿Redis.SetValue($"S{item}Read.R5绌洪棽_LAST", "1", $"S{item}ReadQueue"); + break; + } + } + else if (R5 != 5 && R5绌洪棽_LAST == 1) + { + RedisHelper.Add($"S{item}Read.R5绌洪棽_LAST", "0", out string msg2); + } + } + else if (RtaskState != 3 && RtaskState_LAST == 1) + { + RedisHelper.Add($"S{Bssx}Read.RtaskState_LAST", "0", out string msg); + //Conn.榛樿Redis.SetValue($"S{Bssx}Read.RtaskState_LAST", "0", $"S{Bssx}ReadQueue"); + } + System.Threading.Thread.Sleep(2000); + } + #endregion [鑴氭湰][20250616094632985][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.瀹氬瓙婊′笅绾縘 + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:杞瓙婊′笅绾�+ /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250616094511322][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.杞瓙婊′笅绾縘 + //杞瓙婊′笅绾� 1002 1010 - RGV2宸ヤ綅涓嶅彲鍒�1017 涓嶅彲涓嬪彂2宸ヤ綅浠诲姟銆�+ foreach (var Bssx in new string[] { "1002", "1010" }) + { + var RtaskState = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{Bssx}Read.RtaskState"), typeof(System.UInt16)); + var RtaskState_LAST = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{Bssx}Read.RtaskState_LAST"), typeof(System.UInt16)); + var R鎵樼洏鐮�= (System.String)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{Bssx}Read.R鎵樼洏鐮�), typeof(System.String)); + Console.WriteLine($"{Bssx} 婊′笅妫�祴锛氫换鍔$敵璇凤細{RtaskState}- 鏄惁宸插鐞嗭細{RtaskState_LAST}- 鎵樼洏鐮侊細{R鎵樼洏鐮亇"); + if (RtaskState == 3 && RtaskState_LAST == 0) + { + var item = "1017"; + var R5 = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{item}Read.R5绌洪棽"), typeof(System.UInt16)); + var R5绌洪棽_LAST = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"S{item}Read.R5绌洪棽_LAST"), typeof(System.UInt16)); + if (R5 == 5 && R5绌洪棽_LAST == 0) + { + var b = TaskProcess.CreateTask("", Bssx, item, "婊¤浆1017", 5, new List<string> { R鎵樼洏鐮�}, "RGV"); + if (b) + { + RedisHelper.Add($"S{Bssx}Read.RtaskState_LAST", "1", out string msg); + RedisHelper.Add($"S{item}Read.R5绌洪棽_LAST", "1", out string msg1); + //Conn.榛樿Redis.SetValue($"S{Bssx}Read.RtaskState_LAST", "1", $"S{Bssx}ReadQueue"); + //Conn.榛樿Redis.SetValue($"S{item}Read.R5绌洪棽_LAST", "1", $"S{item}ReadQueue"); + break; + } + } + else if (R5 != 5 && R5绌洪棽_LAST == 1) + { + RedisHelper.Add($"S{item}Read.R5绌洪棽_LAST", "0", out string msg1); + } + } + else if (RtaskState != 3 && RtaskState_LAST == 1) + { + RedisHelper.Add($"S{Bssx}Read.RtaskState_LAST", "0", out string msg); + } + System.Threading.Thread.Sleep(2000); + } + #endregion [鑴氭湰][20250616094511322][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.杞瓙婊′笅绾縘 + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:涓嬫枡浣嶆娴�+ /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250616095605911][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.涓嬫枡浣嶆娴媇 + //涓嬫枡浣嶆娴嬨� 1003 鍒颁綅鏃�鍐�鏍囪瘑淇″彿 骞�缁欐満姊版墜淇″彿銆� + foreach (var ssx in new string[] { "1003", "1005", "1011", "1013" }) + { + var RArrive = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"FNK1003051113.RArrive{ssx}"), typeof(System.UInt16)); + var RArriveLast = (System.UInt16)System.Convert.ChangeType(Conn.榛樿Redis.GetValue($"FNK1003051113.RArrive{ssx}_LAST"), typeof(System.UInt16)); + if (RArrive == 1 && RArriveLast == 0) + { + if (ssx == "1005") + { + tag.FNK1.D2215 = 1; + //tag.SF涓嬫枡浣�RArrive1005_LAST = 1; + RedisHelper.Add($"FNK1003051113.RArrive1005_LAST", "1", out string msg); + + tag.SF涓嬫枡浣�WRelease1005 = 0; + tag.SF涓嬫枡浣�WSafe0305 = 0; + } + else if (ssx == "1003") + { + tag.FNK2.D2210 = 1; + //tag.SF涓嬫枡浣�RArrive1003_LAST = 1; + + RedisHelper.Add($"FNK1003051113.RArrive1003_LAST", "1", out string msg); + tag.SF涓嬫枡浣�WRelease1003 = 0; + tag.SF涓嬫枡浣�WSafe0305 = 0; + } + else if (ssx == "1013") + { + tag.FNK2.D2215 = 1; + //tag.SF涓嬫枡浣�RArrive1013_LAST = 1; + RedisHelper.Add($"FNK1003051113.RArrive1013_LAST", "1", out string msg); + + tag.SF涓嬫枡浣�WRelease1013 = 0; + tag.SF涓嬫枡浣�WSafe1113 = 0; + } + else if (ssx == "1011") + { + tag.FNK2.D2210 = 1; + //tag.SF涓嬫枡浣�RArrive1011_LAST = 1; + RedisHelper.Add($"FNK1003051113.RArrive1011_LAST", "1", out string msg); + + tag.SF涓嬫枡浣�WRelease1011 = 0; + tag.SF涓嬫枡浣�WSafe1113 = 0; + } + } + else if (RArrive == 0 && RArriveLast == 1) + { + RedisHelper.Add($"FNK1003051113.RArrive{ssx}_LAST", "0", out string msg); + //Conn.榛樿Redis.SetValue($"FNK1003051113.RArrive{ssx}_LAST", "0", $"FNK1003051113Queue"); + } + } + #endregion [鑴氭湰][20250616095605911][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.涓嬫枡浣嶆娴媇 + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:1鍙稦NK鏈烘鎵嬪畬鎴�+ /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + + ////2217 - 1003 + #region [鑴氭湰][20250616095709155][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1鍙稦NK鏈烘鎵嬪畬鎴怾 + if (tag.FNK1.D2217 == 1 && tag.FNK1.D2217_LAST == 0) + { + tag.FNK1.D2215 = 0; + //tag.FNK1.D2212_LAST = 1; + RedisHelper.Add($"p鍙戦偅绉�涓嬬嚎.D2217_LAST", "1", out string msg); + + tag.SF涓嬫枡浣�WRelease1005 = 1; + tag.SF涓嬫枡浣�WSafe0305 = 1; + } + else if (tag.FNK1.D2217 == 0 && tag.FNK1.D2217_LAST == 1) + //tag.FNK1.D2217_LAST = 0; + RedisHelper.Add($"p鍙戦偅绉�涓嬬嚎.D2217_LAST", "0", out string msg); + + if (tag.FNK1.D2212 == 1 && tag.FNK1.D2212_LAST == 0) + { + tag.FNK1.D2210 = 0; + //tag.FNK1.D2217_LAST = 1; + + RedisHelper.Add($"p鍙戦偅绉�涓嬬嚎.D2212_LAST", "1", out string msg); + tag.SF涓嬫枡浣�WRelease1003 = 1; + tag.SF涓嬫枡浣�WSafe0305 = 1; + } + else if (tag.FNK1.D2212 == 0 && tag.FNK1.D2212_LAST == 1) + { + //tag.FNK1.D2212_LAST = 0; + RedisHelper.Add($"p鍙戦偅绉�涓嬬嚎.D2212_LAST", "1", out string msg); + } + + #endregion [鑴氭湰][20250616095709155][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1鍙稦NK鏈烘鎵嬪畬鎴怾 + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:2鍙稦NK鏈烘鎵嬪畬鎴�+ /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250616095733680][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.2鍙稦NK鏈烘鎵嬪畬鎴怾 + if (tag.FNK2.D2217 == 1 && tag.FNK2.D2217_LAST == 0) + { + tag.FNK2.D2215 = 0; + //tag.FNK2.D2212_LAST = 1; + RedisHelper.Add($"p鍙戦偅绉�涓嬬嚎.D2217_LAST", "1", out string msg); + + tag.SF涓嬫枡浣�WRelease1013 = 1; + tag.SF涓嬫枡浣�WSafe1113 = 1; + } + else if (tag.FNK2.D2217 == 0 && tag.FNK2.D2217_LAST == 1) + //tag.FNK2.D2217_LAST = 0; + RedisHelper.Add($"p鍙戦偅绉�涓嬬嚎.D2217_LAST", "0", out string msg); + if (tag.FNK2.D2212 == 1 && tag.FNK2.D2212_LAST == 0) + { + tag.FNK2.D2210 = 0; + //tag.FNK2.D2217_LAST = 1; + RedisHelper.Add($"p鍙戦偅绉�涓嬬嚎.D2212_LAST", "1", out string msg); + + tag.SF涓嬫枡浣�WRelease1011 = 1; + tag.SF涓嬫枡浣�WSafe1113 = 1; + } + else if (tag.FNK2.D2212 == 0 && tag.FNK2.D2212_LAST == 1) + { + //tag.FNK2.D2212_LAST = 0; + RedisHelper.Add($"p鍙戦偅绉�涓嬬嚎.D2212_LAST", "0", out string msg); + } + #endregion [鑴氭湰][20250616095733680][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.2鍙稦NK鏈烘鎵嬪畬鎴怾 + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:Program1 + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250617085708084][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1019杞弧鍑鸿緭閫佺嚎.Program1] + + Console.WriteLine($"1019浠诲姟鐘舵�锛歿tag.SA1019.RtaskState}- barcode:{tag.SA1019.R鎵樼洏鐮亇- 绌洪棽{tag.SA1019.R5绌洪棽}"); + #endregion [鑴氭湰][20250617085708084][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1019杞弧鍑鸿緭閫佺嚎.Program1] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:Program1 + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250617085712101][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1025agv涓婄┖.Program1] + + Console.WriteLine($"SA1025 浠诲姟鐘舵�锛歿tag.SA1025.RtaskState}- 绌洪棽{tag.SA1025.R5绌洪棽}"); + #endregion [鑴氭湰][20250617085712101][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1025agv涓婄┖.Program1] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:Program1 + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250617085750712][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1022agv涓婄┖.Program1] + + Console.WriteLine($"SA1022 浠诲姟鐘舵�锛歿tag.SA1022.RtaskState}- 绌洪棽{tag.SA1022.R5绌洪棽}"); + #endregion [鑴氭湰][20250617085750712][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1022agv涓婄┖.Program1] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:Program1 + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250617085800942][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1030涓嬫瘝鎵�Program1] + + Console.WriteLine($"SA1030 浠诲姟鐘舵�锛歿tag.SA1030.RtaskState}- 绌洪棽{tag.SA1030.R5绌洪棽}-->瀵瑰簲缁堢偣2001>绌洪棽5锛歿tag.SA2001.R5绌洪棽}"); + #endregion [鑴氭湰][20250617085800942][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.1030涓嬫瘝鎵�Program1] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + /// <summary> + /// 绋嬪簭鐗囨:Program1 + /// 鎻忚堪: + /// </summary> + System.Threading.Tasks.Task.Factory.StartNew(() => + { + System.Threading.Thread.CurrentThread.IsBackground = true; + ExitJudgeStack.Push(0); + //涓�洿鎵ц锛岀洿鍒版弧瓒崇粨鏉熸潯浠�+ while (true) + { + if (IsExitApp) { break; } + try + { + #region [鑴氭湰][20250617085809982][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.2030杈撻�绾夸笅瀹氬瓙.Program1] + + Console.WriteLine($"SA2030 浠诲姟鐘舵�锛歿tag.SA2030.RtaskState}- 绌洪棽{tag.SA2030.R5绌洪棽} - barcode:{tag.SA2030.R鎵樼洏鐮亇"); + #endregion [鑴氭湰][20250617085809982][涓氬姟閫昏緫.娴佺▼2鐑鐞嗙倝杩涘嚭.2030杈撻�绾夸笅瀹氬瓙.Program1] + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + System.Threading.Thread.Sleep(3000); + } + } + ExitJudgeStack.TryPop(out int exitJudgeVal); + }); + + } + /// <summary> + /// View1鍏抽棴浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + public void View1_CloseEvent(object sender, System.ComponentModel.CancelEventArgs e) + { + + try + { + System.Threading.Tasks.Task.Factory.StartNew(() => { MessageBox.Show("绋嬪簭姝e湪鍏抽棴锛岃绛夊緟..."); }); + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + try + { + Conn.榛樿鏃ュ織.Debug("[鍏抽棴澶勭悊][Start]鍏抽棴Http鏈嶅姟"); + if (HttpSvcHost != null) + { + HttpSvcHost.Stop(); + } + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + Conn.榛樿鏃ュ織.Debug("[鍏抽棴澶勭悊][End]鍏抽棴Http鏈嶅姟"); + } + + try + { + Conn.榛樿鏃ュ織.Debug("[鍏抽棴澶勭悊][Start]鍒ゆ柇涓氬姟澶勭悊鐘舵�"); + IsExitApp = true; + //int exitCnt = 0; + while + ( + ExitJudgeStack.Count > 0 + ) + { + System.Threading.Thread.Sleep(100); + //++exitCnt; + //10绉掓湭缁撴潫鍒欏己鍒跺叧闂�+ //if (exitCnt >= 100) + //{ + // break; + //} + } + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + Conn.榛樿鏃ュ織.Debug("[鍏抽棴澶勭悊][End]鍒ゆ柇涓氬姟澶勭悊鐘舵�"); + } + + e.Cancel = true; + System.Threading.Tasks.Task.Factory.StartNew(() => + { + try + { + Conn.榛樿鏃ュ織.Debug("[鍏抽棴澶勭悊][Start]鍏抽棴PLC"); + Device.缁村笇灏旀姄鑷�?.Stop(); + Device.缁村笇灏旀姄鑷�?.Stop(); + Device.Js鎹烽『1?.Stop(); + Device.Js鎹烽『2?.Stop(); + Device.p鍙戦偅绉�涓嬬嚎?.Stop(); + Device.A1025鏀捐揣浜や簰?.Stop(); + Device.A1022鏀捐揣浜や簰?.Stop(); + Device.A1019鍙栬揣浜や簰?.Stop(); + Device.A1030鍙栬揣浜や簰?.Stop(); + Device.SSXReadTemp?.Stop(); + Device.S1019Read?.Stop(); + Device.S1022Read?.Stop(); + Device.S1025Read?.Stop(); + Device.S1017Read?.Stop(); + Device.S1023Read?.Stop(); + Device.S1020Read?.Stop(); + Device.S1002Read?.Stop(); + Device.S1004Read?.Stop(); + Device.S1006Read?.Stop(); + Device.S1008Read?.Stop(); + Device.S1010Read?.Stop(); + Device.S1012Read?.Stop(); + Device.S1014Read?.Stop(); + Device.S1016Read?.Stop(); + Device.FNK1003051113?.Stop(); + Device.SSX1003051113?.Stop(); + Device.S1026Read?.Stop(); + Device.S1030Read?.Stop(); + Device.S2001Read?.Stop(); + Device.S2030Read?.Stop(); + Device.A2001鏀捐揣浜や簰?.Stop(); + Device.A2030鍙栬揣浜や簰?.Stop(); + Device.RGV?.Stop(); + Device.p鍙戦偅绉�涓嬬嚎?.Stop(); + Device.p鍙戦偅绉�涓婄嚎?.Stop(); + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + Conn.榛樿鏃ュ織.Debug("[鍏抽棴澶勭悊][End]鍏抽棴PLC"); + } + try + { + + Conn.榛樿鏃ュ織.Debug("[鍏抽棴澶勭悊][Start]鍒ゆ柇PLC鐘舵�"); + //int exitCnt = 0; + while + ( + false + || (Device.缁村笇灏旀姄鑷� == null ? false : Device.缁村笇灏旀姄鑷�.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.缁村笇灏旀姄鑷� == null ? false : Device.缁村笇灏旀姄鑷�.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.Js鎹烽『1 == null ? false : Device.Js鎹烽『1.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.Js鎹烽『2 == null ? false : Device.Js鎹烽『2.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.p鍙戦偅绉�涓嬬嚎 == null ? false : Device.p鍙戦偅绉�涓嬬嚎.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.A1025鏀捐揣浜や簰 == null ? false : Device.A1025鏀捐揣浜や簰.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.A1022鏀捐揣浜や簰 == null ? false : Device.A1022鏀捐揣浜や簰.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.A1019鍙栬揣浜や簰 == null ? false : Device.A1019鍙栬揣浜や簰.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.A1030鍙栬揣浜や簰 == null ? false : Device.A1030鍙栬揣浜や簰.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.SSXReadTemp == null ? false : Device.SSXReadTemp.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1019Read == null ? false : Device.S1019Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1022Read == null ? false : Device.S1022Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1025Read == null ? false : Device.S1025Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1017Read == null ? false : Device.S1017Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1023Read == null ? false : Device.S1023Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1020Read == null ? false : Device.S1020Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1002Read == null ? false : Device.S1002Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1004Read == null ? false : Device.S1004Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1006Read == null ? false : Device.S1006Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1008Read == null ? false : Device.S1008Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1010Read == null ? false : Device.S1010Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1012Read == null ? false : Device.S1012Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1014Read == null ? false : Device.S1014Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1016Read == null ? false : Device.S1016Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.FNK1003051113 == null ? false : Device.FNK1003051113.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.SSX1003051113 == null ? false : Device.SSX1003051113.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1026Read == null ? false : Device.S1026Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S1030Read == null ? false : Device.S1030Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S2001Read == null ? false : Device.S2001Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.S2030Read == null ? false : Device.S2030Read.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.A2001鏀捐揣浜や簰 == null ? false : Device.A2001鏀捐揣浜や簰.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.A2030鍙栬揣浜や簰 == null ? false : Device.A2030鍙栬揣浜や簰.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.RGV == null ? false : Device.RGV.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.p鍙戦偅绉�涓嬬嚎 == null ? false : Device.p鍙戦偅绉�涓嬬嚎.State != GZ.Device.PLC.PlcRunState.Stoped) + || (Device.p鍙戦偅绉�涓婄嚎 == null ? false : Device.p鍙戦偅绉�涓婄嚎.State != GZ.Device.PLC.PlcRunState.Stoped) + ) + { + System.Threading.Thread.Sleep(1000); + //++exitCnt; + //10绉掓湭缁撴潫鍒欏己鍒跺叧闂�+ //if (exitCnt >= 100) + //{ + // break; + //} + } + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + finally + { + Conn.榛樿鏃ュ織.Debug("[鍏抽棴澶勭悊][End]鍒ゆ柇PLC鐘舵�"); + } + Application.Current.Dispatcher.Invoke(() => { Environment.Exit(0); }); + }); + + //System.Windows.Application.Current.Shutdown(); + } + /// <summary> + /// View1鍒濆鍖�+ /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + public void View1_Init(object sender, RoutedEventArgs e) + { + } + #endregion + + #region 鍒囨崲tab椤�+ public void tab_SelectionChanged(object sender, EventArgs e) + { + //TabItem ti = (sender as TabControl).SelectedItem as TabItem; + //MessageBox.Show(ti.Name); + } + #endregion + + #region Http鏈嶅姟鐩戝惉 + private void HttpSvcListenerCallback(IAsyncResult ar) + { + try + { + HttpSvcHost.BeginGetContext(HttpSvcListenerCallback, null); + System.Net.HttpListenerContext context = HttpSvcHost.EndGetContext(ar); + System.Net.HttpListenerRequest request = context.Request; + System.Net.HttpListenerResponse response = context.Response; + switch (request.LocalEndPoint.ToString()) + { + case "10.221.55.116:8808": + { + using (var reader = new System.IO.StreamReader(request.InputStream, System.Text.Encoding.UTF8)) + { + string requestJson = reader.ReadToEnd(); + + string respstr = HttpSvcListenerCallback_he(request.HttpMethod, request.Url.AbsolutePath, requestJson, out System.Net.HttpStatusCode statusCode); + + string logContent = ""; + logContent += $"\r\n[{request.HttpMethod}]{request.Url.AbsolutePath}"; + logContent += $"\r\n[request]{requestJson}"; + logContent += $"\r\n[response]{respstr}"; + Conn.榛樿鏃ュ織?.Info(logContent); + + byte[] bytstr = Encoding.UTF8.GetBytes(respstr); + response.StatusCode = (int)statusCode; + response.SendChunked = false; + response.ContentLength64 = bytstr.Length; + response.OutputStream.Write(bytstr, 0, bytstr.Length); + response.Close(); + } + break; + } + } + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + } + } + private System.String HttpSvcListenerCallback_he(System.String method, System.String path, System.String requestJson, out System.Net.HttpStatusCode statusCode) + { + try + { + switch (method) + { + case "POST": + { + switch (path) + { + case "/agv/agvCallbackService/agvCallback": + { + statusCode = System.Net.HttpStatusCode.OK; + + LogHelper.Info("ExecuteState Request-haikang锛� + requestJson); + var model = JsonConvert.DeserializeObject<HaiKangOrderInfo>(requestJson); + OperateHKTaskStatus(model); + return JsonConvert.SerializeObject(new HkReturnResult { reqCode = model.reqCode }); + } + case "/api/Wcs/CreateTask": + { + statusCode = System.Net.HttpStatusCode.OK; + + LogHelper.Info("/api/Wcs/CreateTask锛� + requestJson); + var model = JsonConvert.DeserializeObject<ToWMSMES.CreateTask>(requestJson); + var res = ToWMSMES.CreateTask.CreatemesTask(model); + return JsonConvert.SerializeObject(res); + } + case "/api/Wcs/TestRequestTask": + { + statusCode = System.Net.HttpStatusCode.OK; + LogHelper.Info("/api/Wcs/TestRequestTask锛� + requestJson); + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/200", requestJson); + return str; + } + case "/api/Wcs/updateStatus": + { + statusCode = System.Net.HttpStatusCode.OK; + LogHelper.Info("/api/Wcs/updateStatus锛� + requestJson); + var str = Settings.apiHelper.Post(Settings.WMSbaseUrl + "mom-basic/dataTransmission/json/service/201", requestJson); + return str; + } + case "/api/Wcs/toMes": + { + statusCode = System.Net.HttpStatusCode.OK; + + LogHelper.Info("/api/Wcs/toMes锛� + requestJson); + var str = Settings.apiHelper.Post(Settings.MESbaseUrl + "mom-basic/dataTransmission/json/service/202", requestJson); + return str; + } + case "/api/Wcs/CreatePointTask": + { + statusCode = System.Net.HttpStatusCode.OK; + + LogHelper.Info("/api/Wcs/CreatepointTask锛� + requestJson); + var model = JsonConvert.DeserializeObject<ToWMSMES.CreateTask>(requestJson); + var res = ToWMSMES.CreateTask.CreatePointTask(model); + return JsonConvert.SerializeObject(res); + } + } + break; + } + case "GET": + { + switch (path) + { + case "/inddddddddddddddddd": + { + statusCode = System.Net.HttpStatusCode.OK; + // 澶嶅埗鍒癱ase 涓�+ //var _ when System.Text.RegularExpressions.Regex.IsMatch(path, @"\.(html|ico|js|css)(\?.*)?$", System.Text.RegularExpressions.RegexOptions.IgnoreCase) + var filePath = System.IO.Path.Combine("Static", path.Substring(1)); + return File.ReadAllText(filePath); + } + } + break; + } + } + statusCode = System.Net.HttpStatusCode.NotFound; + return ""; + } + catch (Exception ex) + { + Conn.榛樿鏃ュ織.Error(ex.ToString()); + statusCode = System.Net.HttpStatusCode.InternalServerError; + return ""; + } + } + #endregion + } +} + diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\347\225\214\351\235\242\345\221\275\344\273\244.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\347\225\214\351\235\242\345\221\275\344\273\244.cs" new file mode 100644 index 0000000..4d00c24 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\347\225\214\351\235\242\345\221\275\344\273\244.cs" @@ -0,0 +1,76 @@ +using System; +using System.Collections.Generic; +using System.IO; +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.Runtime.Serialization; +using System.Collections.Concurrent; +using System.ServiceModel; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System.Net; +using NLog; +using NLog.Config; +using NLog.Targets; +using GZ.DB.Map.OIDATABASE; +using GZ.DB.App.OIDATABASE; +using GZ.DB.Repository.OIDATABASE; +using GZ.DB.IRepository.OIDATABASE; +using GZ.DB.Entity.OIDATABASE; +namespace GZ.Projects.AuxAllWCS +{ + /// <summary> + /// 鍛戒护 + /// </summary> + public partial class ViewModel : System.ComponentModel.INotifyPropertyChanged + { + + #region 绉佹湁鏂规硶 + /// <summary> + /// 鍛戒护 + /// </summary> + private void LoadChildHMI(System.Windows.Controls.TabControl tc, System.String tabName, System.Windows.Window form,System.Windows.RoutedEventHandler initHandler) + { + foreach (System.Windows.Controls.TabItem item in tc.Items) + { + if (item.Name == tabName + "Tab") + { + tc.SelectedItem = item; + return; + } + } + System.Windows.Controls.TabItem ti = new System.Windows.Controls.TabItem(); + ti.Name = tabName + "Tab"; + ti.Height = 0; + ti.Content = form.Content; + initHandler(form, null); + tc.Items.Add(ti); + tc.SelectedItem = ti; + } + /// <summary> + /// 灞炴�鍙樻洿 + /// </summary> + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + public void RaisePropertyChanged(string propertyName) + { + System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + #endregion + } +} + diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\261\273.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\261\273.cs" new file mode 100644 index 0000000..6c0f02d --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\261\273.cs" @@ -0,0 +1,896 @@ +using System; +using System.Collections.Generic; +using System.IO; +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.Runtime.Serialization; +using System.Collections.Concurrent; +using System.ServiceModel; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System.Net; +using NLog; +using NLog.Config; +using NLog.Targets; +using GZ.DB.Map.OIDATABASE; +using GZ.DB.App.OIDATABASE; +using GZ.DB.Repository.OIDATABASE; +using GZ.DB.IRepository.OIDATABASE; +using GZ.DB.Entity.OIDATABASE; +namespace GZ.Projects.AuxAllWCS +{ + public class Settings + { + #region [鑷畾涔夌被][20250323144531864][Settings] + public static bool FirstG { get; set; } = false; + public static string HostToAgvServerUrl { get; set; } + + public static List<deviceInfo> deviceInfos { get; set; } = new List<deviceInfo>(); + public static List<string> RunProcs { get; set; } = new List<string>(); + public static string HKbaseUrl { get; set; } + public static string MESbaseUrl { get; set; } + public static string WMSbaseUrl { get; set; } + public static readonly HttpHelper apiHelper = new HttpHelper(); + + public static string GetTimeStamp(DateTime? time = null) + { + TimeSpan ts = DateTime.UtcNow - (time ?? new DateTime(1970, 1, 1, 0, 0, 0, 0)); + return Convert.ToInt64(ts.TotalMilliseconds).ToString(); + } + #endregion [鑷畾涔夌被][20250323144531864][Settings] + } + public class LogHelper + { + #region [鑷畾涔夌被][20250323145442478][LogHelper] + public static Dictionary<string, ILogger> loggers = new Dictionary<string, ILogger>(); + + public static void Debug(string message, string name = "") + { + ILogger logger = null; + if (loggers.Keys.Contains(name)) + { + logger = loggers[name]; + } + else + { + logger = LogFactory.CreateLogger(name); + if (logger != null) + { + loggers.Add(name, logger); + } + else + { + logger = LogFactory.CreateLogger("console"); + } + } + if (logger != null) + { + logger.Debug(message); + } + } + + + + public static void Info(string message, string name = "") + { + //logger.Info(message); + ILogger logger = null; + if (loggers.Keys.Contains(name)) + { + logger = loggers[name]; + } + else + { + logger = LogFactory.CreateLogger(name); + if (logger != null) + { + loggers.Add(name, logger); + } + else + { + logger = LogFactory.CreateLogger("infoFile"); + } + } + if (logger != null) + { + logger.Info(message); + } + } + + public static void Error(string message, Exception ex, string name = "") + { + //logger.Error(ex, message); + ILogger logger = null; + if (loggers.Keys.Contains(name)) + { + logger = loggers[name]; + } + else + { + logger = LogFactory.CreateLogger(name); + if (logger != null) + { + loggers.Add(name, logger); + } + else + { + logger = LogFactory.CreateLogger("errorFile"); + } + } + if (logger != null) + { + logger.Error($"{message}{ex.StackTrace}"); + } + } + #endregion [鑷畾涔夌被][20250323145442478][LogHelper] + } + public class LogFactory + { + #region [鑷畾涔夌被][20250323145505759][LogFactory] + /// <summary> + /// 閫氳繃閰嶇疆鏂囦欢閰嶇疆鏃ュ織 + /// </summary> + static LogFactory() + { + var loggerNames = new List<string>() { "HosttoagvTask", "HosttoagvCar", "NDC", "鏉ゥ" }; + LogManager.Configuration = DefaultConfig(loggerNames); + } + public static ILogger CreateLogger(string name) + { + var logger = LogManager.GetLogger(name); + return logger; + } + + public static LoggingConfiguration DefaultConfig(List<string> loggerNames) + { + var config = new LoggingConfiguration(); + loggerNames.ForEach(a => + { + var target = new FileTarget(); + target.ArchiveAboveSize = 1024 * 1024 * 5;//姣忎釜鏂囦欢鏈�ぇ5M + target.ArchiveNumbering = ArchiveNumberingMode.DateAndSequence; + target.ArchiveFileName = @"${basedir}/Logs/" + a + "/{####}.txt"; + target.FileName = @"${basedir}/Logs/" + a + "/${shortdate}.txt";//褰撳墠鏂囦欢璺緞 + target.Layout = @"${longdate} | ${level:uppercase=false:padding=-5} | ${message} ${onexception:${exception:format=tostring} ${newline} ${stacktrace} ${newline}"; + + config.AddTarget(a, target); + config.AddRuleForOneLevel(LogLevel.Info, target, a); + }); + + + // 娣诲姞target-console + var consoleTarget = new ColoredConsoleTarget(); + consoleTarget.Layout = @"${longdate} | ${level:uppercase=false:padding=-5} | ${message} ${onexception:${exception:format=tostring} ${newline} ${stacktrace} ${newline}"; + + config.AddTarget("console", consoleTarget); + config.AddRule(LogLevel.Debug, LogLevel.Fatal, consoleTarget); + + //娣诲姞target-info + var infoFileTarget = new FileTarget(); + infoFileTarget.ArchiveAboveSize = 1024 * 1024 * 5;//姣忎釜鏂囦欢鏈�ぇ5M + infoFileTarget.ArchiveNumbering = ArchiveNumberingMode.DateAndSequence; + infoFileTarget.ArchiveFileName = @"${basedir}/Logs/Info/{####}.txt"; + infoFileTarget.FileName = @"${basedir}/Logs/Info/${shortdate}.txt";//褰撳墠鏂囦欢璺緞 + infoFileTarget.Layout = @"${longdate} | ${level:uppercase=false:padding=-5} | ${message} ${onexception:${exception:format=tostring} ${newline} ${stacktrace} ${newline}"; + + config.AddTarget("infoFile", infoFileTarget); + config.AddRuleForOneLevel(LogLevel.Info, infoFileTarget);//INFO鍐欏湪Info鏂囦欢 + + //娣诲姞target-err + var errorFileTarget = new FileTarget(); + errorFileTarget.ArchiveAboveSize = 1024 * 1024 * 5;//姣忎釜鏂囦欢鏈�ぇ5M + errorFileTarget.ArchiveNumbering = ArchiveNumberingMode.DateAndSequence; + errorFileTarget.ArchiveFileName = @"${basedir}/Logs/Error/{####}.txt"; + errorFileTarget.FileName = @"${basedir}/Logs/Error/${shortdate}.txt"; + errorFileTarget.Layout = @"${longdate} | ${level:uppercase=false:padding=-5} | ${message} ${onexception:${exception:format=tostring} ${newline} ${stacktrace} ${newline}"; + + config.AddTarget("errorFile", errorFileTarget); + config.AddRule(LogLevel.Error, LogLevel.Fatal, errorFileTarget); + + + return config; + } + + #endregion [鑷畾涔夌被][20250323145505759][LogFactory] + } + public class HaiKangOrderInfo + { + #region [鑷畾涔夌被][20250324165635320][HaiKangOrderInfo] + + /// <summary> + /// 璇锋眰缂栧彿锛堢紪鍙峰敮涓�級 + /// </summary> + public string reqCode { get; set; } + + /// <summary> + /// 璇锋眰鏃堕棿 + /// </summary> + public string reqTime { get; set; } + + /// <summary> + /// 瀹㈡埛绔紪鍙凤紙濡侾DA銆丠CWMS绛夛級 + /// </summary> + public string clientCode { get; set; } + + /// <summary> + /// 浠ょ墝鍙�+ /// </summary> + public string tokenCode { get; set; } + + /// <summary> + /// 浠诲姟绫诲瀷 + /// </summary> + public string taskTyp { get; set; } + + /// <summary> + /// 瀹瑰櫒绫诲瀷锛堝弶杞﹂」鐩繀浼狅級 + /// 锛堝弶杞�CTU 涓撶敤锛�+ /// </summary> + public string ctnrTyp { get; set; } + + /// <summary> + /// 瀹瑰櫒缂栧彿锛堝弶杞�CTU 涓撶敤锛�+ /// </summary> + public string ctnrCode { get; set; } + + /// <summary> + /// 浠诲姟妯″紡锛�-鏅�銆�-鍑哄簱銆�-鍏ュ簱銆�-绉诲簱 锛�+ /// </summary> + public string taskMode { get; set; } + + /// <summary> + /// 宸ヤ綔浣�+ /// </summary> + public string wbCode { get; set; } + + /// <summary> + /// 璐ф灦缂栧彿 + /// </summary> + public string podCode { get; set; } + + /// <summary> + /// 鏂瑰悜锛�80锛氬乏銆�锛氬彸銆�0锛氫笂銆�90锛氫笅 锛�+ /// </summary> + public string podDir { get; set; } + + /// <summary> + /// 璐ф灦绫诲瀷 + /// </summary> + public string podTyp { get; set; } + + /// <summary> + /// 鐗╂枡鎵规鎴栬揣鏋朵笂鐨勭墿鏂欏敮涓�紪鐮�+ /// </summary> + public string materialLot { get; set; } + + /// <summary> + /// 浼樺厛绾�+ /// </summary> + public string priority { get; set; } + + /// <summary> + /// 缁勭紪鍙�+ /// </summary> + public string groupId { get; set; } + + /// <summary> + /// 鑷畾涔夊瓧娈�JSON 鏍煎紡 + /// </summary> + public string data { get; set; } + + /// <summary> + /// 鍙栨秷绫诲瀷 + /// </summary> + public string forceCancel { get; set; } + + /// <summary> + /// 鍥炲簱鍖哄煙缂栫爜 + /// </summary> + public string matterArea { get; set; } + + /// <summary> + /// 鍙栨秷璇GV姝e湪鎵ц鐨勪换鍔″崟 + /// </summary> + public string agvCode { get; set; } + + /// <summary> + /// 浠诲姟鍗曠紪鍙�+ /// </summary> + public string taskCode { get; set; } + + /// <summary> + /// 鍦扮爜 X 鍧愭爣 + /// </summary> + public string cooX { get; set; } + + /// <summary> + /// 鍦扮爜 Y 鍧愭爣 + /// </summary> + public string cooY { get; set; } + + /// <summary> + /// 褰撳墠浣嶇疆缂栧彿 + /// </summary> + public string currentPositionCode { get; set; } + + /// <summary> + /// 鍦板浘缂栧彿 + /// </summary> + public string mapCode { get; set; } + + /// <summary> + /// 鍦扮爜缂栧彿 + /// </summary> + public string mapDataCode { get; set; } + + /// <summary> + /// 浠撲綅缂栧彿 + /// </summary> + public string stgBinCode { get; set; } + + /// <summary> + /// 鏂规硶鍚�+ /// </summary> + public string method { get; set; } + + /// <summary> + /// AGV 缂栧彿 + /// </summary> + public string robotCode { get; set; } + + + /// <summary> + /// 瀹瑰櫒绫诲瀷 + /// </summary> + public string ctnrType { get; set; } + + + /// <summary> + /// 宸烽亾缂栧彿 + /// </summary> + public string roadWayCode { get; set; } + + /// <summary> + /// 宸烽亾鍐呴『搴忓彿 + /// </summary> + public string seq { get; set; } + + /// <summary> + /// 璁惧缂栧彿 + /// </summary> + public string eqpCode { get; set; } + + /// <summary> + /// 浠诲姟璺緞闆嗗悎 + /// </summary> + public List<positionCodePath> positionCodePath { get; set; } + + #endregion [鑷畾涔夌被][20250324165635320][HaiKangOrderInfo] + } + public class positionCodePath + { + #region [鑷畾涔夌被][20250324165724429][positionCodePath] + + /// <summary> + /// 浠诲姟缂栧彿 + /// </summary> + public string positionCode { get; set; } + + /// <summary> + /// 绫诲瀷 + /// </summary> + public string Type { get; set; } + #endregion [鑷畾涔夌被][20250324165724429][positionCodePath] + } + public class HkReturnResult + { + #region [鑷畾涔夌被][20250324171912560][HkReturnResult] + + /// <summary> + /// 杩斿洖鐘舵�鐮�+ /// </summary> + public int code { get; set; } + /// <summary> + /// 杩斿洖璇存槑 + /// </summary> + public string message { get; set; } + /// <summary> + /// 浠诲姟鍙�+ /// </summary> + public string reqCode { get; set; } + #endregion [鑷畾涔夌被][20250324171912560][HkReturnResult] + } + public class deviceInfo + { + #region [鑷畾涔夌被][20250325083629462][deviceInfo] + + + public string address { get; set; } + public string deviceName { get; set; } + public string FuLeLineNo { get; set; } + public string[] deviceNo { get; set; } + + /// <summary> + /// 瀵瑰簲绾夸綋 -浼樺厛绾�+ /// </summary> + public string[] areaPriy { get; set; } + + public string[] location { get; set; } + /// <summary> + /// 1 缁村笇灏旀満姊拌噦 + /// 2 鎹风灛鏈烘鑷傝噦 + /// 3 鎹风灛杈撻�绾�+ /// </summary> + public int deviceType { get; set; } + public int enable { get; set; } + + /// <summary> + /// 浠诲姟鏉冮噸銆� + /// </summary> + public int taskPri { get; set; } = 60; + #endregion [鑷畾涔夌被][20250325083629462][deviceInfo] + } + public class HttpHelper + { + #region [鑷畾涔夌被][20250325095622918][HttpHelper] + public string Post(string url, string postData, string contentType = "application/json", string sessionId = "") + { + LogHelper.Info(url + "+" + postData); + WebRequest request = WebRequest.Create(url); + request.Method = "POST"; + byte[] byteArray = Encoding.UTF8.GetBytes(postData); + request.ContentType = contentType; + request.ContentLength = byteArray.Length; + request.Timeout = 15000; + if (sessionId != "") + { + request.Headers.Set("ASP.NET_SessionId", sessionId); + } + + //Authorization: UApGP6WW9FsBUqAlzxRGOw == + request.Headers.Set("Authorization", "UApGP6WW9FsBUqAlzxRGOw=="); + StreamReader reader = null; + Stream stream = null; + WebResponse rsp = null; + try + { + stream = request.GetRequestStream(); + stream.Write(byteArray, 0, byteArray.Length); + stream.Close(); + rsp = request.GetResponse(); + stream = rsp.GetResponseStream(); + reader = new StreamReader(stream); + string rrend = reader.ReadToEnd(); + LogHelper.Info($"{url} response={rrend}"); + return rrend; + } + catch (Exception ex) + { + LogHelper.Info($"{url} err={ex.Message}"); + return ""; + } + finally + { + // 閲婃斁璧勬簮 + if (reader != null) reader.Close(); + if (stream != null) stream.Close(); + if (rsp != null) rsp.Close(); + } + + } + #endregion [鑷畾涔夌被][20250325095622918][HttpHelper] + } + public class HKResult + { + #region [鑷畾涔夌被][20250325095900399][HKResult] + /// <summary> + /// 杩斿洖缂栫爜 + /// </summary> + public string code { get; set; } + + /// <summary> + /// 杩斿洖娑堟伅 + /// </summary> + public string message { get; set; } + + /// <summary> + /// 璇锋眰缂栧彿 + /// </summary> + public string reqCode { get; set; } + + /// <summary> + /// 鑷畾涔夎繑鍥烇紙杩斿洖浠诲姟鍗曞彿锛�+ /// </summary> + public string data { get; set; } + #endregion [鑷畾涔夌被][20250325095900399][HKResult] + } + public class SYSHelper + { + #region [鑷畾涔夌被][20250325131633664][SYSHelper] + private static object locker = new object(); + internal static int GetSerialNumber(string snType, string prefix, string Vend = "0") + { + if (Vend == "1") + Vend = DateTime.Now.ToString("yyMMdd"); + int result = 0; + lock (locker) + { + SYSRepository sysservice = new SYSRepository(); + var sId = sysservice.FindEntity(a => a.CN_S_TYPE.Trim() == snType && a.CN_S_PRE.Trim() == prefix + Vend); + + if (sId != null) + { + + sId.CN_N_MAX++; + sId.CN_T_LAST = DateTime.Now; + //sysservice.Update(sId); + + sysservice.dbcontext.Set<SYSEntity>().Attach(sId); + sysservice.dbcontext.Entry(sId).Property(x => x.CN_N_MAX).CurrentValue = sId.CN_N_MAX; + + sysservice.dbcontext.Entry(sId).Property(x => x.CN_N_MAX).IsModified = true; + sysservice.dbcontext.Entry(sId).Property(x => x.CN_T_LAST).CurrentValue = sId.CN_T_LAST; + + sysservice.dbcontext.Entry(sId).Property(x => x.CN_T_LAST).IsModified = true; + + sysservice.dbcontext.SaveChanges(); + result = sId.CN_N_MAX; + } + else + { + sId = new SYSEntity { CN_S_TYPE = snType, CN_T_LAST = DateTime.Now, CN_S_PRE = prefix + Vend, CN_N_MAX = 0, CN_S_APP_TYPE = "WCS" }; + sysservice.Insert(sId); + } + } + return result; + } + #endregion [鑷畾涔夌被][20250325131633664][SYSHelper] + } + public class TaskProcess + { + #region [鑷畾涔夌被][20250325152141671][TaskProcess] + internal static bool CreateTask(string no, string from, string to, string taskType, int pri, List<string> cntrs, string workMode = "AGV", int cntrCount = 1, int startLayer = 1, int endLayer = 1) + { + LogHelper.Info($"杈撻�绾縍GV绌烘墭浠诲姟 from:{from}>to {to}寮�鍒涘缓>"); + + var cntrInfo = string.Join(",", cntrs); + ILocRepository locc = new LocRepository(); + var fromLoc = locc.FindEntity(x => x.S_LOC_CODE == from); + var endLoc = locc.FindEntity(x => x.S_LOC_CODE == to); + + var s = Settings.deviceInfos.Find(x => x.location.Contains(from)) != null; + var e = Settings.deviceInfos.Find(x => x.location.Contains(to)) != null; + string t = "F01"; + if (s && !e) t = "A002"; + if (!s && e) t = "A003"; + if (s && e) t = "A004"; + try + { + + TaskEntity wmsTask = new TaskEntity() + { + S_ID = Guid.NewGuid().ToString(), + S_STATE = "缂栬緫", + T_CREATE = DateTime.Now, + T_MODIFY = DateTime.Now, + + S_TASK_NO = GenerateTaskNo(), + S_START_LAREA = fromLoc.S_AREA_CODE, + S_END_LAREA = endLoc.S_AREA_CODE, + S_DEPART_NAME = "", + S_START_LOC = from, + S_END_LOC = to, + S_TYPE = taskType, + S_SRC_NO = no,// + N_PRIORITY = pri, + S_WORK_MODE = workMode, + S_B_STATE = "鏈墽琛�, + S_CNTRS = cntrInfo, + N_START_LAYER = startLayer, + N_END_LAYER = endLayer, + N_CNTR_COUNT = cntrCount, + S_INDEX = t, + }; + ITaskRepository taskserice = new TaskRepository(); + taskserice.Insert(wmsTask); + if (workMode == "AGV") + { + fromLoc.S_LOCK_STATE = "鍑哄簱閿�; + endLoc.S_LOCK_STATE = "鍏ュ簱閿�; + locc.Update(fromLoc); + locc.Update(endLoc); + } + + LogHelper.Info($"杈撻�绾縍GV绌烘墭浠诲姟 from:{from}>to {to} 鍒涘缓{wmsTask.S_TASK_NO}鎴愬姛"); + return true; + } + catch (Exception ex) + { + LogHelper.Error("CreateTask" + ex.Message, ex); + return false; + } + } + + + internal static void AddActionRecord(string no, string state, string forkliftNo, string extData, string strloc, string endloc) + { + var action = new TaskActEntity() + { + S_ID = Guid.NewGuid().ToString(), + S_STATE = "缂栬緫", + T_CREATE = DateTime.Now, + T_MODIFY = DateTime.Now, + S_START_LOC = strloc, + S_END_LOC = endloc, + S_ACTION_CODE = state, + S_TASK_NO = no, + S_EQ_NO = forkliftNo, + S_EQ_TYPE = "agv", + S_DATA = extData, + N_CREATEMETHOD = 0 + }; + TaskActRepository taskserice = new TaskActRepository(); + taskserice.Insert(action); + } + + public static System.String GenerateTaskNo() + { + var id = SYSHelper.GetSerialNumber("浠诲姟鍙�, "TN", "1"); + var date = DateTime.Now.ToString("yyMMdd"); + return $"TN{date}{id.ToString().PadLeft(4, '0')}"; + } + #endregion [鑷畾涔夌被][20250325152141671][TaskProcess] + } + public class Utils + { + #region [鑷畾涔夌被][20250417094750211][Utils] + + #endregion [鑷畾涔夌被][20250417094750211][Utils] + } + public class ToWMSMES + { + #region [鑷畾涔夌被][20250531152402452][ToWMSMES] + //2 wms mes + + + public class CreateTask + { + public string taskType { get; set; } + public string startBit { get; set; } + public string endBit { get; set; } + public string reqCode { get; set; } + public string cntrCode { get; set; } + + internal static ReturnMsg CreatemesTask(CreateTask model) + { + ITaskRepository taskservice = new TaskRepository(); + var task = taskservice.FindEntity(x => x.S_TASK_NO == model.reqCode); + if (task == null) + { + //var i = TaskProcess.CreateTask("", model.startBit, model.endBit, string.IsNullOrEmpty(model.taskType) ? "Mes涓嬪彂" : model.taskType, 5, new List<string> { model.cntrCode }); + TaskEntity wmsTask = new TaskEntity() + { + S_ID = Guid.NewGuid().ToString(), + S_STATE = "缂栬緫", + T_CREATE = DateTime.Now, + T_MODIFY = DateTime.Now, + + S_TASK_NO = model.reqCode, + S_START_LAREA = "", + S_END_LAREA = "", + S_DEPART_NAME = "", + S_START_LOC = model.startBit, + S_END_LOC = model.endBit, + S_TYPE = model.reqCode, + S_SRC_NO = "",// + N_PRIORITY = -88, + S_WORK_MODE = "agv", + S_B_STATE = "MES", + S_CNTRS = model.cntrCode, + N_START_LAYER = 1, + N_END_LAYER = 1, + N_CNTR_COUNT = 1 + }; + ITaskRepository taskserice = new TaskRepository(); + var i = taskserice.Insert(wmsTask) > 0; + return new ReturnMsg { resultCode = (i ? 0 : -1), resultMsg = i ? "" : "浠诲姟鐢熸垚澶辫触銆� }; + } + else + { + return new ReturnMsg { resultCode = -1, resultMsg = "浠诲姟閲嶅涓嬪彂銆� }; + } + } + + public class ReturnMsg + { + public int resultCode { get; set; } + public string resultMsg { get; set; } + } + + + internal static ReturnMsg CreatePointTask(CreateTask model) + { + ITaskRepository taskservice = new TaskRepository(); + var task = taskservice.FindEntity(x => x.S_TASK_NO == model.reqCode); + if (task == null) + { + //var i = TaskProcess.CreateTask("", model.startBit, model.endBit, string.IsNullOrEmpty(model.taskType) ? "Mes涓嬪彂" : model.taskType, 5, new List<string> { model.cntrCode }); + TaskEntity wmsTask = new TaskEntity() + { + S_ID = Guid.NewGuid().ToString(), + S_STATE = "缂栬緫", + T_CREATE = DateTime.Now, + T_MODIFY = DateTime.Now, + S_TASK_NO = model.reqCode, + S_START_LAREA = "", + S_END_LAREA = "", + S_DEPART_NAME = "", + S_START_LOC = model.startBit, + S_END_LOC = model.endBit, + S_TYPE = model.reqCode, + S_SRC_NO = "",// + N_PRIORITY = -88, + S_WORK_MODE = "agv", + S_B_STATE = "People", + S_CNTRS = model.cntrCode, + N_START_LAYER = 1, + N_END_LAYER = 1, + N_CNTR_COUNT = 1 + }; + ITaskRepository taskserice = new TaskRepository(); + var i = taskserice.Insert(wmsTask) > 0; + return new ReturnMsg { resultCode = (i ? 0 : -1), resultMsg = i ? "" : "浠诲姟鐢熸垚澶辫触銆� }; + } + else + { + return new ReturnMsg { resultCode = -1, resultMsg = "浠诲姟閲嶅涓嬪彂銆� }; + } + } + } + public static void ResMesTask() + { + ///1. + TaskRepository taskservice = new TaskRepository(); + var tasks = taskservice.FindList(x => (x.S_B_STATE == "MES" || x.S_B_STATE == "People") && x.N_PRIORITY == -88); + var VERXs = Settings.deviceInfos?.FindAll(x => x.deviceType == 2); + //if (VERXs.Any()) + foreach (var task in tasks) + { + var sx = VERXs?.Find(x => x.location.Contains(task.S_END_LOC)); + if (sx == null) + { + //鐩存帴鐢熸垚瀵瑰簲浠诲姟銆�+ var res = TaskProcess.CreateTask(task.S_TASK_NO, task.S_START_LOC, task.S_END_LOC, task.S_TYPE, 6, task.S_CNTRS.Split(',').ToList()); + if (res) + { + //task.N_PRIORITY = 0; + taskservice.dbcontext.Set<TaskEntity>().Attach(task); + taskservice.dbcontext.Entry(task).Property(x => x.N_PRIORITY).CurrentValue = 0; + taskservice.dbcontext.Entry(task).Property(x => x.N_PRIORITY).IsModified = true; + taskservice.dbcontext.SaveChanges(); + } + } + else + { + var sindex = sx.location.ToList().IndexOf(task.S_END_LOC); + LocRepository locRepository = new LocRepository(); + //鐢熸垚璺宠穬浠诲姟銆� -- 鎵樼洏璐т綅琛ㄣ� + var t1s = taskservice.FindList(x => x.S_SRC_NO == task.S_TASK_NO); + if (t1s.Any()) + { + var t1 = t1s.OrderBy(x => x.T_CREATE).LastOrDefault(); + if (t1.S_END_LOC == task.S_END_LOC) + { + task.N_PRIORITY = 0; + task.S_B_STATE = "MES_瀹屾垚"; + taskservice.Update(task); + continue; + } + if (t1.S_B_STATE == "瀹屾垚") + { + //1.缁堢偣鏄惁鏈夋墭鐩樸� 渚濇嵁鏄粓鐐圭殑浠诲姟鏄�浣滀负缁堢偣锛岃繕鏄捣鐐广� + //var ec = taskservice.FindList(x => (x.S_START_LOC == task.S_START_LOC || x.S_END_LOC == task.S_END_LOC) /*&& DateTime.Now.Subtract(x.T_CREATE).TotalHours < 5*/).OrderByDescending(x => x.T_CREATE).FirstOrDefault();//($"select top 1 * from TN_TASK WHERE S_START_LOC='{task.S_END_LOC}' OR S_END_LOC='{task.S_END_LOC}' ORDER BY T_CREATE DESC"); + //var ec = taskservice.FindList(x => x.S_START_LOC == task.S_START_LOC && x.S_END_LOC == task.S_START_LOC, new Common.Data.Pagination + // { + // page = 1, + // sidx = "T_CREATE", + // sord = "desc", + // rows = 1 + // }).FirstOrDefault(); + TaskEntity ec = null; + var dev = Conn.榛樿Redis.GetValue(sx.deviceName + "." + (sindex == 0 ? "D1224" : "D1225")); + if (dev?.Trim() == "1") + ec = taskservice.FindList(x => x.S_END_LOC == task.S_END_LOC && x.S_B_STATE == "瀹屾垚", new Common.Data.Pagination + { + page = 1, + sidx = "T_CREATE", + sord = "desc", + rows = 1 + }).FirstOrDefault(); + if (t1.S_START_LOC == task.S_START_LOC && ec != null)//!= task.S_END_LOC) + { + //绗簩娈点� + LocEntity endLoc = null; + var di = sx; + if (di != null) + { + foreach (var ssloc in di.deviceNo) + { + var endloc = locRepository.FindEntity(x => x.S_LOC_CODE == ssloc); + if (endloc != null && endloc.N_CURRENT_NUM == 0 && endloc.S_LOCK_STATE == "鏃�) + { + endLoc = endloc; + break; + } + } + if (endLoc != null) + { + var res = TaskProcess.CreateTask(task.S_TASK_NO, task.S_END_LOC, endLoc.S_LOC_CODE, task.S_TYPE + "涓嬬┖", 7, ec.S_CNTRS.Split(',').ToList()); + if (res) + { + task.N_PRIORITY = 0; taskservice.Update(task); + } + } + } + } + else + { + var res = TaskProcess.CreateTask(task.S_TASK_NO, t1.S_END_LOC, task.S_END_LOC, task.S_TYPE + "琛ユ弧", 6, task.S_CNTRS.Split(',').ToList()); + if (res) + { + task.N_PRIORITY = 0; taskservice.Update(task); + } + } + } + } + else + { + //鐢熸垚绗竴娈点� + LocEntity endLoc = null; + var di = sx; + if (di != null) + { + foreach (var ssloc in di.deviceNo) + { + var endloc = locRepository.FindEntity(x => x.S_LOC_CODE == ssloc); + if (endloc != null && endloc.N_CURRENT_NUM == 0 && endloc.S_LOCK_STATE == "鏃�) + { + endLoc = endloc; + break; + } + } + if (endLoc != null) + { + var res = TaskProcess.CreateTask("", task.S_START_LOC, endLoc.S_LOC_CODE, task.S_TYPE + "婊¤浆", 8, task.S_CNTRS.Split(',').ToList()); + if (res) + { + task.N_PRIORITY = 0; taskservice.Update(task); + } + } + } + } + + } + } + //var VERX = Settings.deviceInfos?.FindAll(x => x.deviceName.Contains("鎹风灛鎶撹噦")); + //if () + ///2 鐪嬬紦瀛樺尯銆�娌℃弧鐨勩� + + + } + + + #endregion [鑷畾涔夌被][20250531152402452][ToWMSMES] + } +} \ No newline at end of file diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\273\223\346\236\204.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\273\223\346\236\204.cs" new file mode 100644 index 0000000..8d95e61 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\273\223\346\236\204.cs" @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.IO; +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.Runtime.Serialization; +using System.Collections.Concurrent; +using System.ServiceModel; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System.Net; +using NLog; +using NLog.Config; +using NLog.Targets; +using GZ.DB.Map.OIDATABASE; +using GZ.DB.App.OIDATABASE; +using GZ.DB.Repository.OIDATABASE; +using GZ.DB.IRepository.OIDATABASE; +using GZ.DB.Entity.OIDATABASE; +namespace GZ.Projects.AuxAllWCS +{ + /// <summary> + /// 鑷畾涔夌粨鏋�+ /// </summary> +} \ No newline at end of file diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\256\276\345\244\207\351\200\232\344\277\241.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\256\276\345\244\207\351\200\232\344\277\241.cs" new file mode 100644 index 0000000..0a70a33 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\256\276\345\244\207\351\200\232\344\277\241.cs" @@ -0,0 +1,653 @@ +using System; +using System.Collections.Generic; +using System.IO; +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.Runtime.Serialization; +using System.Collections.Concurrent; +using System.ServiceModel; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System.Net; +using NLog; +using NLog.Config; +using NLog.Targets; +using GZ.DB.Map.OIDATABASE; +using GZ.DB.App.OIDATABASE; +using GZ.DB.Repository.OIDATABASE; +using GZ.DB.IRepository.OIDATABASE; +using GZ.DB.Entity.OIDATABASE; +namespace GZ.Projects.AuxAllWCS +{ + #region 璁惧閫氫俊 + /// <summary> + /// 璁惧閫氫俊 + /// </summary> + public class Device + { + public GZ.Device.PLC.PlcBase 缁村笇灏旀姄鑷�=null; + public GZ.Device.PLC.PlcBase 缁村笇灏旀姄鑷�=null; + public GZ.Device.PLC.PlcBase Js鎹烽『1=null; + public GZ.Device.PLC.PlcBase Js鎹烽『2=null; + public GZ.Device.PLC.PlcBase p鍙戦偅绉�涓嬬嚎=null; + public GZ.Device.PLC.PlcBase A1025鏀捐揣浜や簰=null; + public GZ.Device.PLC.PlcBase A1022鏀捐揣浜や簰=null; + public GZ.Device.PLC.PlcBase A1019鍙栬揣浜や簰=null; + public GZ.Device.PLC.PlcBase A1030鍙栬揣浜や簰=null; + public GZ.Device.PLC.PlcBase SSXReadTemp=null; + public GZ.Device.PLC.PlcBase S1019Read=null; + public GZ.Device.PLC.PlcBase S1022Read=null; + public GZ.Device.PLC.PlcBase S1025Read=null; + public GZ.Device.PLC.PlcBase S1017Read=null; + public GZ.Device.PLC.PlcBase S1023Read=null; + public GZ.Device.PLC.PlcBase S1020Read=null; + public GZ.Device.PLC.PlcBase S1002Read=null; + public GZ.Device.PLC.PlcBase S1004Read=null; + public GZ.Device.PLC.PlcBase S1006Read=null; + public GZ.Device.PLC.PlcBase S1008Read=null; + public GZ.Device.PLC.PlcBase S1010Read=null; + public GZ.Device.PLC.PlcBase S1012Read=null; + public GZ.Device.PLC.PlcBase S1014Read=null; + public GZ.Device.PLC.PlcBase S1016Read=null; + public GZ.Device.PLC.PlcBase FNK1003051113=null; + public GZ.Device.PLC.PlcBase SSX1003051113=null; + public GZ.Device.PLC.PlcBase S1026Read=null; + public GZ.Device.PLC.PlcBase S1030Read=null; + public GZ.Device.PLC.PlcBase S2001Read=null; + public GZ.Device.PLC.PlcBase S2030Read=null; + public GZ.Device.PLC.PlcBase A2001鏀捐揣浜や簰=null; + public GZ.Device.PLC.PlcBase A2030鍙栬揣浜や簰=null; + public GZ.Device.PLC.PlcBase RGV=null; + public GZ.Device.PLC.PlcBase p鍙戦偅绉�涓嬬嚎=null; + public GZ.Device.PLC.PlcBase p鍙戦偅绉�涓婄嚎=null; + public Device() + { + 缁村笇灏旀姄鑷� = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "缁村笇灏旀姄鑷�"), + Conn.榛樿鏃ュ織 + ); + 缁村笇灏旀姄鑷� = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "缁村笇灏旀姄鑷�"), + Conn.榛樿鏃ュ織 + ); + Js鎹烽『1 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "Js鎹烽『1"), + Conn.榛樿鏃ュ織 + ); + Js鎹烽『2 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "Js鎹烽『2"), + Conn.榛樿鏃ュ織 + ); + p鍙戦偅绉�涓嬬嚎 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "p鍙戦偅绉�涓嬬嚎"), + Conn.榛樿鏃ュ織 + ); + A1025鏀捐揣浜や簰 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "A1025鏀捐揣浜や簰"), + Conn.榛樿鏃ュ織 + ); + A1022鏀捐揣浜や簰 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "A1022鏀捐揣浜や簰"), + Conn.榛樿鏃ュ織 + ); + A1019鍙栬揣浜や簰 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "A1019鍙栬揣浜や簰"), + Conn.榛樿鏃ュ織 + ); + A1030鍙栬揣浜や簰 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "A1030鍙栬揣浜や簰"), + Conn.榛樿鏃ュ織 + ); + SSXReadTemp = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "SSXReadTemp"), + Conn.榛樿鏃ュ織 + ); + S1019Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1019Read"), + Conn.榛樿鏃ュ織 + ); + S1022Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1022Read"), + Conn.榛樿鏃ュ織 + ); + S1025Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1025Read"), + Conn.榛樿鏃ュ織 + ); + S1017Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1017Read"), + Conn.榛樿鏃ュ織 + ); + S1023Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1023Read"), + Conn.榛樿鏃ュ織 + ); + S1020Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1020Read"), + Conn.榛樿鏃ュ織 + ); + S1002Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1002Read"), + Conn.榛樿鏃ュ織 + ); + S1004Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1004Read"), + Conn.榛樿鏃ュ織 + ); + S1006Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1006Read"), + Conn.榛樿鏃ュ織 + ); + S1008Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1008Read"), + Conn.榛樿鏃ュ織 + ); + S1010Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1010Read"), + Conn.榛樿鏃ュ織 + ); + S1012Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1012Read"), + Conn.榛樿鏃ュ織 + ); + S1014Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1014Read"), + Conn.榛樿鏃ュ織 + ); + S1016Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1016Read"), + Conn.榛樿鏃ュ織 + ); + FNK1003051113 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "FNK1003051113"), + Conn.榛樿鏃ュ織 + ); + SSX1003051113 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "SSX1003051113"), + Conn.榛樿鏃ュ織 + ); + S1026Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1026Read"), + Conn.榛樿鏃ュ織 + ); + S1030Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S1030Read"), + Conn.榛樿鏃ュ織 + ); + S2001Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S2001Read"), + Conn.榛樿鏃ュ織 + ); + S2030Read = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "S2030Read"), + Conn.榛樿鏃ュ織 + ); + A2001鏀捐揣浜や簰 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "A2001鏀捐揣浜や簰"), + Conn.榛樿鏃ュ織 + ); + A2030鍙栬揣浜や簰 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "A2030鍙栬揣浜や簰"), + Conn.榛樿鏃ュ織 + ); + RGV = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "RGV"), + Conn.榛樿鏃ュ織 + ); + p鍙戦偅绉�涓嬬嚎 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "p鍙戦偅绉�涓嬬嚎"), + Conn.榛樿鏃ュ織 + ); + p鍙戦偅绉�涓婄嚎 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile + ( + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "p鍙戦偅绉�涓婄嚎"), + Conn.榛樿鏃ュ織 + ); + if(System.Configuration.ConfigurationManager.AppSettings["AutoRunPLC"]=="1") + { + if(缁村笇灏旀姄鑷�!=null){缁村笇灏旀姄鑷�.Run();} + if(缁村笇灏旀姄鑷�!=null){缁村笇灏旀姄鑷�.Run();} + if(Js鎹烽『1!=null){Js鎹烽『1.Run();} + if(Js鎹烽『2!=null){Js鎹烽『2.Run();} + if(p鍙戦偅绉�涓嬬嚎!=null){p鍙戦偅绉�涓嬬嚎.Run();} + if(A1025鏀捐揣浜や簰!=null){A1025鏀捐揣浜や簰.Run();} + if(A1022鏀捐揣浜や簰!=null){A1022鏀捐揣浜や簰.Run();} + if(A1019鍙栬揣浜や簰!=null){A1019鍙栬揣浜や簰.Run();} + if(A1030鍙栬揣浜や簰!=null){A1030鍙栬揣浜や簰.Run();} + if(SSXReadTemp!=null){SSXReadTemp.Run();} + if(S1019Read!=null){S1019Read.Run();} + if(S1022Read!=null){S1022Read.Run();} + if(S1025Read!=null){S1025Read.Run();} + if(S1017Read!=null){S1017Read.Run();} + if(S1023Read!=null){S1023Read.Run();} + if(S1020Read!=null){S1020Read.Run();} + if(S1002Read!=null){S1002Read.Run();} + if(S1004Read!=null){S1004Read.Run();} + if(S1006Read!=null){S1006Read.Run();} + if(S1008Read!=null){S1008Read.Run();} + if(S1010Read!=null){S1010Read.Run();} + if(S1012Read!=null){S1012Read.Run();} + if(S1014Read!=null){S1014Read.Run();} + if(S1016Read!=null){S1016Read.Run();} + if(FNK1003051113!=null){FNK1003051113.Run();} + if(SSX1003051113!=null){SSX1003051113.Run();} + if(S1026Read!=null){S1026Read.Run();} + if(S1030Read!=null){S1030Read.Run();} + if(S2001Read!=null){S2001Read.Run();} + if(S2030Read!=null){S2030Read.Run();} + if(A2001鏀捐揣浜や簰!=null){A2001鏀捐揣浜や簰.Run();} + if(A2030鍙栬揣浜や簰!=null){A2030鍙栬揣浜や簰.Run();} + if(RGV!=null){RGV.Run();} + if(p鍙戦偅绉�涓嬬嚎!=null){p鍙戦偅绉�涓嬬嚎.Run();} + if(p鍙戦偅绉�涓婄嚎!=null){p鍙戦偅绉�涓婄嚎.Run();} + } + } + } + #endregion + + #region 绠�崟PLC + + /// <summary> + /// PLC鍙橀噺缁�+ /// </summary> + public class EasyPLC + { + #region 缁村笇灏旀姄鑷� + public _缁村笇灏旀姄鑷� 缁村笇灏旀姄鑷� = new _缁村笇灏旀姄鑷�(); + /// <summary> + /// + /// </summary> + public class _缁村笇灏旀姄鑷� + { + } + #endregion + + #region 缁村笇灏旀姄鑷� + public _缁村笇灏旀姄鑷� 缁村笇灏旀姄鑷� = new _缁村笇灏旀姄鑷�(); + /// <summary> + /// + /// </summary> + public class _缁村笇灏旀姄鑷� + { + } + #endregion + + #region Js鎹烽『1 + public _Js鎹烽『1 Js鎹烽『1 = new _Js鎹烽『1(); + /// <summary> + /// + /// </summary> + public class _Js鎹烽『1 + { + } + #endregion + + #region Js鎹烽『2 + public _Js鎹烽『2 Js鎹烽『2 = new _Js鎹烽『2(); + /// <summary> + /// + /// </summary> + public class _Js鎹烽『2 + { + } + #endregion + + #region p鍙戦偅绉�涓嬬嚎 + public _p鍙戦偅绉�涓嬬嚎 p鍙戦偅绉�涓嬬嚎 = new _p鍙戦偅绉�涓嬬嚎(); + /// <summary> + /// + /// </summary> + public class _p鍙戦偅绉�涓嬬嚎 + { + } + #endregion + + #region A1025鏀捐揣浜や簰 + public _A1025鏀捐揣浜や簰 A1025鏀捐揣浜や簰 = new _A1025鏀捐揣浜や簰(); + /// <summary> + /// + /// </summary> + public class _A1025鏀捐揣浜や簰 + { + } + #endregion + + #region A1022鏀捐揣浜や簰 + public _A1022鏀捐揣浜や簰 A1022鏀捐揣浜や簰 = new _A1022鏀捐揣浜や簰(); + /// <summary> + /// + /// </summary> + public class _A1022鏀捐揣浜や簰 + { + } + #endregion + + #region A1019鍙栬揣浜や簰 + public _A1019鍙栬揣浜や簰 A1019鍙栬揣浜や簰 = new _A1019鍙栬揣浜や簰(); + /// <summary> + /// + /// </summary> + public class _A1019鍙栬揣浜や簰 + { + } + #endregion + + #region A1030鍙栬揣浜や簰 + public _A1030鍙栬揣浜や簰 A1030鍙栬揣浜や簰 = new _A1030鍙栬揣浜や簰(); + /// <summary> + /// + /// </summary> + public class _A1030鍙栬揣浜や簰 + { + } + #endregion + + #region SSXReadTemp + public _SSXReadTemp SSXReadTemp = new _SSXReadTemp(); + /// <summary> + /// + /// </summary> + public class _SSXReadTemp + { + } + #endregion + + #region S1019Read + public _S1019Read S1019Read = new _S1019Read(); + /// <summary> + /// + /// </summary> + public class _S1019Read + { + } + #endregion + + #region S1022Read + public _S1022Read S1022Read = new _S1022Read(); + /// <summary> + /// + /// </summary> + public class _S1022Read + { + } + #endregion + + #region S1025Read + public _S1025Read S1025Read = new _S1025Read(); + /// <summary> + /// + /// </summary> + public class _S1025Read + { + } + #endregion + + #region S1017Read + public _S1017Read S1017Read = new _S1017Read(); + /// <summary> + /// + /// </summary> + public class _S1017Read + { + } + #endregion + + #region S1023Read + public _S1023Read S1023Read = new _S1023Read(); + /// <summary> + /// + /// </summary> + public class _S1023Read + { + } + #endregion + + #region S1020Read + public _S1020Read S1020Read = new _S1020Read(); + /// <summary> + /// + /// </summary> + public class _S1020Read + { + } + #endregion + + #region S1002Read + public _S1002Read S1002Read = new _S1002Read(); + /// <summary> + /// + /// </summary> + public class _S1002Read + { + } + #endregion + + #region S1004Read + public _S1004Read S1004Read = new _S1004Read(); + /// <summary> + /// + /// </summary> + public class _S1004Read + { + } + #endregion + + #region S1006Read + public _S1006Read S1006Read = new _S1006Read(); + /// <summary> + /// + /// </summary> + public class _S1006Read + { + } + #endregion + + #region S1008Read + public _S1008Read S1008Read = new _S1008Read(); + /// <summary> + /// + /// </summary> + public class _S1008Read + { + } + #endregion + + #region S1010Read + public _S1010Read S1010Read = new _S1010Read(); + /// <summary> + /// + /// </summary> + public class _S1010Read + { + } + #endregion + + #region S1012Read + public _S1012Read S1012Read = new _S1012Read(); + /// <summary> + /// + /// </summary> + public class _S1012Read + { + } + #endregion + + #region S1014Read + public _S1014Read S1014Read = new _S1014Read(); + /// <summary> + /// + /// </summary> + public class _S1014Read + { + } + #endregion + + #region S1016Read + public _S1016Read S1016Read = new _S1016Read(); + /// <summary> + /// + /// </summary> + public class _S1016Read + { + } + #endregion + + #region FNK1003051113 + public _FNK1003051113 FNK1003051113 = new _FNK1003051113(); + /// <summary> + /// + /// </summary> + public class _FNK1003051113 + { + } + #endregion + + #region SSX1003051113 + public _SSX1003051113 SSX1003051113 = new _SSX1003051113(); + /// <summary> + /// + /// </summary> + public class _SSX1003051113 + { + } + #endregion + + #region S1026Read + public _S1026Read S1026Read = new _S1026Read(); + /// <summary> + /// + /// </summary> + public class _S1026Read + { + } + #endregion + + #region S1030Read + public _S1030Read S1030Read = new _S1030Read(); + /// <summary> + /// + /// </summary> + public class _S1030Read + { + } + #endregion + + #region S2001Read + public _S2001Read S2001Read = new _S2001Read(); + /// <summary> + /// + /// </summary> + public class _S2001Read + { + } + #endregion + + #region S2030Read + public _S2030Read S2030Read = new _S2030Read(); + /// <summary> + /// + /// </summary> + public class _S2030Read + { + } + #endregion + + #region A2001鏀捐揣浜や簰 + public _A2001鏀捐揣浜や簰 A2001鏀捐揣浜や簰 = new _A2001鏀捐揣浜や簰(); + /// <summary> + /// + /// </summary> + public class _A2001鏀捐揣浜や簰 + { + } + #endregion + + #region A2030鍙栬揣浜や簰 + public _A2030鍙栬揣浜や簰 A2030鍙栬揣浜や簰 = new _A2030鍙栬揣浜や簰(); + /// <summary> + /// + /// </summary> + public class _A2030鍙栬揣浜や簰 + { + } + #endregion + + #region RGV + public _RGV RGV = new _RGV(); + /// <summary> + /// + /// </summary> + public class _RGV + { + } + #endregion + + #region p鍙戦偅绉�涓嬬嚎 + public _p鍙戦偅绉�涓嬬嚎 p鍙戦偅绉�涓嬬嚎 = new _p鍙戦偅绉�涓嬬嚎(); + /// <summary> + /// + /// </summary> + public class _p鍙戦偅绉�涓嬬嚎 + { + } + #endregion + + #region p鍙戦偅绉�涓婄嚎 + public _p鍙戦偅绉�涓婄嚎 p鍙戦偅绉�涓婄嚎 = new _p鍙戦偅绉�涓婄嚎(); + /// <summary> + /// + /// </summary> + public class _p鍙戦偅绉�涓婄嚎 + { + } + #endregion + + } + + #endregion +} \ No newline at end of file diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\351\233\206\346\210\220\344\272\222\350\201\224.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\351\233\206\346\210\220\344\272\222\350\201\224.cs" new file mode 100644 index 0000000..58cb655 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\351\233\206\346\210\220\344\272\222\350\201\224.cs" @@ -0,0 +1,115 @@ +using System; +using System.Collections.Generic; +using System.IO; +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.Runtime.Serialization; +using System.Collections.Concurrent; +using System.ServiceModel; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System.Net; +using NLog; +using NLog.Config; +using NLog.Targets; +using GZ.DB.Map.OIDATABASE; +using GZ.DB.App.OIDATABASE; +using GZ.DB.Repository.OIDATABASE; +using GZ.DB.IRepository.OIDATABASE; +using GZ.DB.Entity.OIDATABASE; +namespace GZ.Projects.AuxAllWCS +{ + /// <summary> + /// 闆嗘垚浜掕仈 + /// </summary> + public class Conn + { + public static GZ.Modular.Log.Logger 榛樿鏃ュ織 = null; + //public static GZ.Modular.Redis.RedisTagHelper 榛樿Redis = new GZ.Modular.Redis.RedisTagHelper("127.0.0.1:6379", 1000, 1000); + //public static GZ.Modular.Redis.RedisTagHelper 榛樿Redis = new GZ.Modular.Redis.RedisTagHelper(); + public static GZ.Modular.Redis.RedisTagHelper 榛樿Redis = new GZ.Modular.Redis.RedisTagHelper(榛樿鏃ュ織); + public Conn() + { + //GZ.Modular.Redis.RedisHelper.RedisHostStr="127.0.0.1:6379"; + //GZ.Modular.Redis.RedisHelper.RedisMaxReadPool=1000; + //GZ.Modular.Redis.RedisHelper.RedisMaxWritePool=1000; + + try + { + string[] allKeys = System.Configuration.ConfigurationManager.AppSettings.AllKeys; + if(allKeys.Contains("LogDir")) + { + if (!System.IO.File.Exists(System.Configuration.ConfigurationManager.AppSettings["LogDir"])) + { + System.IO.Directory.CreateDirectory(System.Configuration.ConfigurationManager.AppSettings["LogDir"]); + } + } + else + { + if (!System.IO.File.Exists(@"D:\WCS.LogDB")) + { + System.IO.Directory.CreateDirectory(@"D:\WCS.LogDB"); + } + } + string 榛樿鏃ュ織DbPath=@"D:\WCS.LogDB\S7Log"; + if(allKeys.Contains("LogDir")&&allKeys.Contains("LogFile")) + { + 榛樿鏃ュ織DbPath=System.IO.Path.Combine(System.Configuration.ConfigurationManager.AppSettings["LogDir"], System.Configuration.ConfigurationManager.AppSettings["LogFile"]); + } + int 榛樿鏃ュ織DelDays; + if(!allKeys.Contains("LogDelDays")||!int.TryParse(System.Configuration.ConfigurationManager.AppSettings["LogDelDays"],out 榛樿鏃ュ織DelDays)) + { + 榛樿鏃ュ織DelDays = 30; + } + int 榛樿鏃ュ織DelLevel; + if(!allKeys.Contains("LogDelLevel")||!int.TryParse(System.Configuration.ConfigurationManager.AppSettings["LogDelLevel"],out 榛樿鏃ュ織DelLevel)) + { + 榛樿鏃ュ織DelLevel = 3; + } + bool 榛樿鏃ュ織Info = true; + if(allKeys.Contains("LogInfo")) + { + 榛樿鏃ュ織Info = System.Configuration.ConfigurationManager.AppSettings["LogInfo"]=="1"; + } + bool 榛樿鏃ュ織Debug = true; + if(allKeys.Contains("LogDebug")) + { + 榛樿鏃ュ織Debug = System.Configuration.ConfigurationManager.AppSettings["LogDebug"]=="1"; + } + bool 榛樿鏃ュ織Warn = true; + if(allKeys.Contains("LogWarn")) + { + 榛樿鏃ュ織Warn = System.Configuration.ConfigurationManager.AppSettings["LogWarn"]=="1"; + } + bool 榛樿鏃ュ織Error = true; + if(allKeys.Contains("LogError")) + { + 榛樿鏃ュ織Error = System.Configuration.ConfigurationManager.AppSettings["LogError"]=="1"; + } + 榛樿鏃ュ織 = new GZ.Modular.Log.Logger(榛樿鏃ュ織DbPath, "S7", 榛樿鏃ュ織DelDays, 榛樿鏃ュ織DelLevel, 榛樿鏃ュ織Info, 榛樿鏃ュ織Debug, 榛樿鏃ュ織Warn, 榛樿鏃ュ織Error,1); + 榛樿Redis.Log = 榛樿鏃ュ織; + + } + catch(Exception ex) + { + 榛樿鏃ュ織 = new GZ.Modular.Log.Logger(@"D:\WCS.LogDB\S7Log", "S7", 30, 3, true, true, true, true,1); + if(榛樿鏃ュ織!=null) + { + 榛樿鏃ュ織.Error(ex.ToString()); + } + } + + } + } +} \ No newline at end of file diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\347\225\214\351\235\242/View1.xaml" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\347\225\214\351\235\242/View1.xaml" new file mode 100644 index 0000000..394c930 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\347\225\214\351\235\242/View1.xaml" @@ -0,0 +1,5 @@ +<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="640" Height="480" x:Class="GZ.Projects.AuxAllWCS.View1" xmlns:local="clr-namespace:GZ.Projects.AuxAllWCS"> + <Canvas> + <Label Width="86" Height="25" Canvas.Left="31" Canvas.Top="172" /> + </Canvas> +</Window> \ No newline at end of file diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\347\225\214\351\235\242/View1.xaml.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\347\225\214\351\235\242/View1.xaml.cs" new file mode 100644 index 0000000..d874b53 --- /dev/null +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\347\225\214\351\235\242/View1.xaml.cs" @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.IO; +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.Runtime.Serialization; +using System.Collections.Concurrent; +using System.ServiceModel; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System.Net; +using NLog; +using NLog.Config; +using NLog.Targets; +using GZ.DB.Map.OIDATABASE; +using GZ.DB.App.OIDATABASE; +using GZ.DB.Repository.OIDATABASE; +using GZ.DB.IRepository.OIDATABASE; +using GZ.DB.Entity.OIDATABASE; +namespace GZ.Projects.AuxAllWCS +{ + /// <summary> + /// View1.xaml 鐨勪氦浜掗�杈�+ /// </summary> + public partial class View1 : Window + { + public View1() + { + InitializeComponent(); + #region 闄愬埗杩愯瀹炰緥鏁伴噺 + System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcessesByName("AuxAllWCS"); + if (processes.Length > System.Int32.Parse(System.Configuration.ConfigurationManager.AppSettings["InstanceLimit"])) + { + System.Windows.MessageBox.Show("杩愯澶辫触:杩愯瀹炰緥鏁伴噺宸茶秴鍑洪檺鍒�); + this.Close(); + } + #endregion + this.DataContext = ViewModel.CreateInstance(this,typeof(View1)); + this.Loaded += (this.DataContext as ViewModel).View1_LoadEvent; + this.Closing += (this.DataContext as ViewModel).View1_CloseEvent; + } + } +} + -- Gitblit v1.9.1