Browse Source

Merge branch 'master' of http://xiaohaodianzi.cn:3000/xhdz/TEST into master

liuhao 3 năm trước cách đây
mục cha
commit
b420035a4d

BIN
TEST_Prj/Test/.vs/Test/v15/.suo


BIN
TEST_Prj/Test/.vs/Test/v15/Server/sqlite3/storage.ide-shm


BIN
TEST_Prj/Test/.vs/Test/v15/Server/sqlite3/storage.ide-wal


+ 21 - 4
TEST_Prj/Test/Test/Form1.cs

@@ -519,7 +519,7 @@ namespace Test
             }
             if (findflag)
             {
-                return "名称:" + v_id + "\r\n" + "价格:" + v_res_id + "\r\n";
+                return "name:" + v_id + "," + "price:" + v_res_id + "\r\n";
             }
             else return "";
 
@@ -546,21 +546,38 @@ namespace Test
 
             return result;
         }
-
+        bool start_cnt = false;
+        string list_str="";
         public void str_check(string str)
         {
             string finddata = "";
 
             if (str.Contains("esp_send:") == true)//下位机的数据流
             {
-                if (str.Contains("find:") == true)//查询数据库
+                if (str.Contains("start_cnt:") == true)//开始记账
+                {
+                    start_cnt = true;
+                }
+                if (str.Contains("stop_cnt:") == true)//开始记账
+                {
+                     start_cnt = false;
+                }
+                else if (str.Contains("find:") == true)//查询数据库
                 {
                     string findStr = user_SubstringEx(str,"find:","\r\n");
                     if (findStr != "")
                     {
                         Console.WriteLine(findStr);
                         finddata = GetProductType("序列号", findStr);//数据库中查询
-                        SendMsgdata(finddata);
+                        if(finddata!="")
+                        {
+                            SendMsgdata(finddata);
+                        }
+                        if (start_cnt)
+                        {
+                           // list_str +=
+                        }
+
                     }
                 }
             }

+ 1 - 0
TEST_Prj/Test/Test/bin/Debug/Log.txt

@@ -367,3 +367,4 @@
 
   群发完毕!!
 
+客户端异常一个封锁操作被对 WSACancelBlockingCall 的调用中断。

BIN
TEST_Prj/Test/Test/bin/Debug/Test.exe


BIN
TEST_Prj/Test/Test/bin/Debug/Test.pdb


BIN
TEST_Prj/Test/Test/obj/Debug/Test.exe


BIN
TEST_Prj/Test/Test/obj/Debug/Test.pdb