浏览代码

Merge branch 'master' of ssh://10.10.100.21/source/mes-client

Hcsy 7 年之前
父节点
当前提交
16508d08fe
共有 2 个文件被更改,包括 11 次插入11 次删除
  1. 9 9
      PLCDataReader/DataOperate/DataHelper.cs
  2. 2 2
      PLCDataReader/Login.Designer.cs

+ 9 - 9
PLCDataReader/DataOperate/DataHelper.cs

@@ -785,15 +785,15 @@ namespace UAS_PLCDataReader.DataOperate
                     DateTime[] time = new DateTime[names[i].Length];
                     for (int j = 0; j < names[i].Length; j++)
                     {
-                        try
-                        {
-                            time[j] = Convert.ToDateTime(names[i][j]);
-                            command.Parameters.Add(new OracleParameter(names[0][i - 1].ToString(), OracleDbType.Date, time, ParameterDirection.Input));
-                        }
-                        catch (Exception)
-                        {
-                            command.Parameters.Add(new OracleParameter(names[0][i - 1].ToString(), OracleDbType.Varchar2, names[i], ParameterDirection.Input));
-                        }
+                        time[j] = Convert.ToDateTime(names[i][j]);
+                    }
+                    try
+                    {
+                        command.Parameters.Add(new OracleParameter(names[0][i - 1].ToString(), OracleDbType.Date, time, ParameterDirection.Input));
+                    }
+                    catch (Exception)
+                    {
+                        command.Parameters.Add(new OracleParameter(names[0][i - 1].ToString(), OracleDbType.Varchar2, names[i], ParameterDirection.Input));
                     }
                 }
                 else

+ 2 - 2
PLCDataReader/Login.Designer.cs

@@ -57,7 +57,7 @@
             this.PassWord.Properties.Appearance.Options.UseFont = true;
             this.PassWord.Properties.PasswordChar = '*';
             this.PassWord.Size = new System.Drawing.Size(145, 28);
-            this.PassWord.TabIndex = 0;
+            this.PassWord.TabIndex = 2;
             this.PassWord.KeyDown += new System.Windows.Forms.KeyEventHandler(this.PassWord_KeyDown);
             // 
             // UserName_label
@@ -97,7 +97,7 @@
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
             this.Master.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
             this.Master.Size = new System.Drawing.Size(145, 28);
-            this.Master.TabIndex = 5;
+            this.Master.TabIndex = 3;
             // 
             // Master_label
             //