liuhao преди 2 години
родител
ревизия
704f1a2519

+ 7 - 4
TEST_Prj/dp_tcp_mysql/Test/Test/Form1.Designer.cs

@@ -41,7 +41,6 @@
             this.btnDelete = new System.Windows.Forms.Button();
             this.btnModify = new System.Windows.Forms.Button();
             this.btnClearAll = new System.Windows.Forms.Button();
-            this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
             this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components);
             this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
             this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
@@ -66,10 +65,11 @@
             this.textBox2 = new System.Windows.Forms.TextBox();
             this.label7 = new System.Windows.Forms.Label();
             this.iptext = new System.Windows.Forms.TextBox();
+            this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
             ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit();
             this.bindingNavigator1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
             this.SuspendLayout();
             // 
             // dataGridView1
@@ -310,6 +310,7 @@
             this.tbInfo.Name = "tbInfo";
             this.tbInfo.Size = new System.Drawing.Size(137, 21);
             this.tbInfo.TabIndex = 1;
+            this.tbInfo.Visible = false;
             // 
             // btnFind
             // 
@@ -320,6 +321,7 @@
             this.btnFind.TabIndex = 6;
             this.btnFind.Text = "查询商品数据";
             this.btnFind.UseVisualStyleBackColor = true;
+            this.btnFind.Visible = false;
             this.btnFind.Click += new System.EventHandler(this.btnFind_Click);
             // 
             // label5
@@ -331,6 +333,7 @@
             this.label5.Size = new System.Drawing.Size(65, 12);
             this.label5.TabIndex = 2;
             this.label5.Text = "查询条件:";
+            this.label5.Visible = false;
             // 
             // backgroundWorker1
             // 
@@ -347,7 +350,7 @@
             this.button2.Name = "button2";
             this.button2.Size = new System.Drawing.Size(98, 26);
             this.button2.TabIndex = 8;
-            this.button2.Text = "查询支付记录";
+            this.button2.Text = "查询历史记录";
             this.button2.UseVisualStyleBackColor = true;
             this.button2.Click += new System.EventHandler(this.button2_Click);
             // 
@@ -456,10 +459,10 @@
             this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed);
             this.Load += new System.EventHandler(this.Form1_Load);
             ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).EndInit();
             this.bindingNavigator1.ResumeLayout(false);
             this.bindingNavigator1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
 

+ 22 - 2
TEST_Prj/dp_tcp_mysql/Test/Test/Form1.cs

@@ -344,7 +344,7 @@ app界面:登录界面,数据查看界面,历史数据界面,控制按
                                 }
                             }
                             // str_check(strMsg);
-                            //ShowMsg("发送消息为:" + strMsg);
+                            ShowMsg("发送消息为:" + strMsg);
                         }
 
                     }
@@ -668,7 +668,21 @@ app界面:登录界面,数据查看界面,历史数据界面,控制按
             return result;
         }
         bool start_cnt = false;
-        string list_str="";
+        int startcnt = 0;
+        //private void timer1_Tick(object sender, EventArgs e)
+        //{
+        //    //重启时间设定
+        //    int h = DateTime.Now.Hour;
+        //    int m = DateTime.Now.Minute;
+        //    int s = DateTime.Now.Second;
+        //    if (++startcnt > 30)
+        //    {
+        //        startcnt = 0;
+        //        Application.Restart();
+        //    }
+        //}
+
+        string list_str ="";
        
         /// 获取当前系统时间的方法    
         /// 当前时间     
@@ -705,6 +719,7 @@ app界面:登录界面,数据查看界面,历史数据界面,控制按
                 Console.WriteLine("交易时间:" + data6 + " 温度:" + data1 + " 湿度:" + data2 + " 光照:" + data3 + " 二氧化碳:" + data4 + " 烟雾:" + data5 + " 水侵:" + data7 + "\r\n");
                 //格式输出数据
                 // Console.Write("ID:{0},Name:{1},PWD:{2},Age:{3},Sex:{4},Phone{5},Address:{6}\n", id, name, pwd, age, sex, phone, address);
+
             }
             conn.Close();
 
@@ -717,6 +732,11 @@ app界面:登录界面,数据查看界面,历史数据界面,控制按
             {
                 MessageBox.Show(ex.Message);
             }
+            if (!File.Exists(@"C:\objimgs\upload"))
+            {
+                System.IO.Directory.CreateDirectory(@"C:\objimgs\upload");
+            }
+            File.AppendAllText(@"C:\objimgs\upload" + "\\" + "Historical.txt", jystr);  //在软件运行目录下保存log信息  
             return jystr;
             //SendMsgdata(jystr);
         }

+ 3 - 3
TEST_Prj/dp_tcp_mysql/Test/Test/Form1.resx

@@ -117,9 +117,6 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
-  </metadata>
   <metadata name="bindingNavigator1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>186, 17</value>
   </metadata>
@@ -191,6 +188,9 @@
   <metadata name="backgroundWorker1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>368, 16</value>
   </metadata>
+  <metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
   <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>197</value>
   </metadata>

+ 5 - 5
TEST_Prj/dp_tcp_mysql/Test/Test/Properties/Resources.Designer.cs

@@ -8,7 +8,7 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
-namespace 超市自助付款系统管理平台.Properties {
+namespace 远程监测仓库环境服务端.Properties {
     using System;
     
     
@@ -19,7 +19,7 @@ namespace 超市自助付款系统管理平台.Properties {
     // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
     // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
     // (以 /str 作为命令选项),或重新生成 VS 项目。
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
     [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
     internal class Resources {
@@ -39,7 +39,7 @@ namespace 超市自助付款系统管理平台.Properties {
         internal static global::System.Resources.ResourceManager ResourceManager {
             get {
                 if (object.ReferenceEquals(resourceMan, null)) {
-                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("超市自助付款系统管理平台.Properties.Resources", typeof(Resources).Assembly);
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("远程监测仓库环境服务端.Properties.Resources", typeof(Resources).Assembly);
                     resourceMan = temp;
                 }
                 return resourceMan;
@@ -47,8 +47,8 @@ namespace 超市自助付款系统管理平台.Properties {
         }
         
         /// <summary>
-        ///   重写当前线程的 CurrentUICulture 属性,对
-        ///   使用此强类型资源类的所有资源查找执行重写。
+        ///   重写当前线程的 CurrentUICulture 属性
+        ///   重写当前线程的 CurrentUICulture 属性
         /// </summary>
         [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
         internal static global::System.Globalization.CultureInfo Culture {

+ 2 - 2
TEST_Prj/dp_tcp_mysql/Test/Test/Properties/Settings.Designer.cs

@@ -8,11 +8,11 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
-namespace 超市自助付款系统管理平台.Properties {
+namespace 远程监测仓库环境服务端.Properties {
     
     
     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
     internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
         
         private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

+ 2 - 2
TEST_Prj/dp_tcp_mysql/Test/Test/Test.csproj

@@ -7,8 +7,8 @@
     <ProjectGuid>{BEDBB13E-2CA5-4493-8D70-59AF5F669339}</ProjectGuid>
     <OutputType>WinExe</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>超市自助付款系统管理平台</RootNamespace>
-    <AssemblyName>超市自助付款系统管理平台</AssemblyName>
+    <RootNamespace>远程监测仓库环境服务端</RootNamespace>
+    <AssemblyName>远程监测仓库环境服务端</AssemblyName>
     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
   </PropertyGroup>