Przeglądaj źródła

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

张泳健 8 lat temu
rodzic
commit
5c148bb0a1

BIN
.vs/GWSocketClient/v15/.suo Wyświetl plik


+ 1 - 1
GWSocketClient/Form1.cs Wyświetl plik

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

+ 1 - 1
GWSocketClient/GWSocketClient.csproj Wyświetl plik

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

+ 6 - 5
GWSocketClient/IdItemEditor.cs Wyświetl plik

158
             else
158
             else
159
             {
159
             {
160
                 int len = int.Parse(lenString);
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
                     return;
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
                     return;
171
                     return;
171
                 }
172
                 }
172
             }
173
             }

BIN
GWSocketClient/bin/Debug/dbfile/ID_INFO.accdb Wyświetl plik


BIN
GWSocketClient/bin/Release/dbfile/ID_INFO.accdb Wyświetl plik


Plik diff jest za duży
+ 2877 - 0
excel/dtu.xml