Ver código fonte

fix:修改用户指令长度问题.

张泳健 8 anos atrás
pai
commit
5c148bb0a1

BIN
.vs/GWSocketClient/v15/.suo Ver arquivo


+ 1 - 1
GWSocketClient/Form1.cs Ver arquivo

@@ -120,7 +120,7 @@ namespace GWSocketClient
120 120
                     }
121 121
                     addToListboxItem(string.Format("客户端信息{0}", sks.ex));
122 122
                     //连接成功,启动心跳线程
123
-                    startHeartBeat();
123
+                    //startHeartBeat();
124 124
                 }
125 125
                 else
126 126
                 {

+ 1 - 1
GWSocketClient/GWSocketClient.csproj Ver arquivo

@@ -5,7 +5,7 @@
5 5
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6 6
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7 7
     <ProjectGuid>{1E7C256A-9CA5-4937-A5DD-7F281A2EBB21}</ProjectGuid>
8
-    <OutputType>Exe</OutputType>
8
+    <OutputType>WinExe</OutputType>
9 9
     <RootNamespace>GWSocketClient</RootNamespace>
10 10
     <AssemblyName>GWSocketClient</AssemblyName>
11 11
     <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>

+ 6 - 5
GWSocketClient/IdItemEditor.cs Ver arquivo

@@ -158,15 +158,16 @@ namespace GWSocketClient
158 158
             else
159 159
             {
160 160
                 int len = int.Parse(lenString);
161
-                if (defalutValueString.Length / 2 == len)
161
+                
162
+                if ((defalutValueString.Length / 2) != len)
162 163
                 {
163
-                    richTextBoxTip.Text = "默认值长度不对.定义长度是=" + lenString + " ,你输入长度是=" +
164
-                                          (defalutValueString.Length / 2.0);
164
+                    richTextBoxTip.Text = "默认值长度不对.定义长度是=" + len + " ,你输入长度是=" +
165
+                                          (defalutValueString.Length / 2);
165 166
                     return;
166 167
                 }
167
-                if (userValueString.Length / 2 == len)
168
+                if ((userValueString.Length / 2) != len)
168 169
                 {
169
-                    richTextBoxTip.Text = "默认值长度不对.定义长度是=" + lenString + " ,你输入长度是=" + (userValueString.Length / 2.0);
170
+                    richTextBoxTip.Text = "用户值长度不对.定义长度是=" + len + " ,你输入长度是=" + (userValueString.Length / 2.0);
170 171
                     return;
171 172
                 }
172 173
             }

BIN
GWSocketClient/bin/Debug/dbfile/ID_INFO.accdb Ver arquivo


BIN
GWSocketClient/bin/Release/dbfile/ID_INFO.accdb Ver arquivo


Diferenças do arquivo suprimidas por serem muito extensas
+ 2877 - 0
excel/dtu.xml