Browse Source

修改版本信息,接口程序

章政 8 years ago
parent
commit
4f64b533f4

+ 1 - 1
UAS-MES/App.config

@@ -47,7 +47,7 @@
   <applicationSettings>
   <applicationSettings>
     <UAS_MES.Properties.Settings>
     <UAS_MES.Properties.Settings>
       <setting name="MES" serializeAs="String">
       <setting name="MES" serializeAs="String">
-        <value>Password=select!#%*(;User ID=MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=117.25.180.218)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</value>
+        <value>Password=select!#%*(;User ID=UAS_MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=218.17.158.219)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</value>
       </setting>
       </setting>
     </UAS_MES.Properties.Settings>
     </UAS_MES.Properties.Settings>
   </applicationSettings>
   </applicationSettings>

+ 88 - 24
UAS-MES/Form1.Designer.cs

@@ -28,15 +28,19 @@
         /// </summary>
         /// </summary>
         private void InitializeComponent()
         private void InitializeComponent()
         {
         {
-            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
-            System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
-            System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
+            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
+            System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend();
+            System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series();
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
             this.button1 = new System.Windows.Forms.Button();
             this.button1 = new System.Windows.Forms.Button();
             this.button2 = new System.Windows.Forms.Button();
             this.button2 = new System.Windows.Forms.Button();
             this.ct_coll = new System.Windows.Forms.DataVisualization.Charting.Chart();
             this.ct_coll = new System.Windows.Forms.DataVisualization.Charting.Chart();
+            this.测试GetSNALL = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
+            this.TestDGV = new UAS_MES.CustomControl.DataGrid_View.DataGridViewWithCheckBox();
             this.numOnlyTextBox1 = new UAS_MES.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
             this.numOnlyTextBox1 = new UAS_MES.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
             this.blurSearch1 = new UAS_MES.CustomControl.TextBoxWithIcon.BlurSearch();
             this.blurSearch1 = new UAS_MES.CustomControl.TextBoxWithIcon.BlurSearch();
-            this.TestDGV = new UAS_MES.CustomControl.DataGrid_View.DataGridViewWithCheckBox();
+            this.normalButton3 = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
+            this.normalButton2 = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             ((System.ComponentModel.ISupportInitialize)(this.ct_coll)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.ct_coll)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.TestDGV)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.TestDGV)).BeginInit();
             this.SuspendLayout();
             this.SuspendLayout();
@@ -67,26 +71,53 @@
             this.ct_coll.BackHatchStyle = System.Windows.Forms.DataVisualization.Charting.ChartHatchStyle.Cross;
             this.ct_coll.BackHatchStyle = System.Windows.Forms.DataVisualization.Charting.ChartHatchStyle.Cross;
             this.ct_coll.BackImageTransparentColor = System.Drawing.SystemColors.Control;
             this.ct_coll.BackImageTransparentColor = System.Drawing.SystemColors.Control;
             this.ct_coll.BorderlineColor = System.Drawing.SystemColors.Control;
             this.ct_coll.BorderlineColor = System.Drawing.SystemColors.Control;
-            chartArea1.Name = "ChartArea1";
-            this.ct_coll.ChartAreas.Add(chartArea1);
-            legend1.Enabled = false;
-            legend1.Name = "Legend1";
-            this.ct_coll.Legends.Add(legend1);
+            chartArea2.Name = "ChartArea1";
+            this.ct_coll.ChartAreas.Add(chartArea2);
+            legend2.Enabled = false;
+            legend2.Name = "Legend1";
+            this.ct_coll.Legends.Add(legend2);
             this.ct_coll.Location = new System.Drawing.Point(709, 83);
             this.ct_coll.Location = new System.Drawing.Point(709, 83);
             this.ct_coll.Name = "ct_coll";
             this.ct_coll.Name = "ct_coll";
             this.ct_coll.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.None;
             this.ct_coll.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.None;
-            series1.ChartArea = "ChartArea1";
-            series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie;
-            series1.IsXValueIndexed = true;
-            series1.Label = "#PERCENT#VALX :#VAL";
-            series1.Legend = "Legend1";
-            series1.LegendText = "#VALX";
-            series1.Name = "Series1";
-            this.ct_coll.Series.Add(series1);
+            series2.ChartArea = "ChartArea1";
+            series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie;
+            series2.IsXValueIndexed = true;
+            series2.Label = "#PERCENT#VALX :#VAL";
+            series2.Legend = "Legend1";
+            series2.LegendText = "#VALX";
+            series2.Name = "Series1";
+            this.ct_coll.Series.Add(series2);
             this.ct_coll.Size = new System.Drawing.Size(394, 398);
             this.ct_coll.Size = new System.Drawing.Size(394, 398);
             this.ct_coll.TabIndex = 5;
             this.ct_coll.TabIndex = 5;
             this.ct_coll.Text = "chart1";
             this.ct_coll.Text = "chart1";
             // 
             // 
+            // 测试GetSNALL
+            // 
+            this.测试GetSNALL.AllPower = null;
+            this.测试GetSNALL.BackColor = System.Drawing.Color.Transparent;
+            this.测试GetSNALL.DownImage = ((System.Drawing.Image)(resources.GetObject("测试GetSNALL.DownImage")));
+            this.测试GetSNALL.Image = null;
+            this.测试GetSNALL.IsShowBorder = true;
+            this.测试GetSNALL.Location = new System.Drawing.Point(362, 225);
+            this.测试GetSNALL.MoveImage = ((System.Drawing.Image)(resources.GetObject("测试GetSNALL.MoveImage")));
+            this.测试GetSNALL.Name = "测试GetSNALL";
+            this.测试GetSNALL.NormalImage = ((System.Drawing.Image)(resources.GetObject("测试GetSNALL.NormalImage")));
+            this.测试GetSNALL.Power = null;
+            this.测试GetSNALL.Size = new System.Drawing.Size(132, 28);
+            this.测试GetSNALL.TabIndex = 10;
+            this.测试GetSNALL.Text = "测试GetSNALL";
+            this.测试GetSNALL.UseVisualStyleBackColor = false;
+            this.测试GetSNALL.Click += new System.EventHandler(this.normalButton2_Click);
+            // 
+            // TestDGV
+            // 
+            this.TestDGV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.TestDGV.Location = new System.Drawing.Point(45, 131);
+            this.TestDGV.Name = "TestDGV";
+            this.TestDGV.RowTemplate.Height = 27;
+            this.TestDGV.Size = new System.Drawing.Size(240, 150);
+            this.TestDGV.TabIndex = 9;
+            // 
             // numOnlyTextBox1
             // numOnlyTextBox1
             // 
             // 
             this.numOnlyTextBox1.AllPower = null;
             this.numOnlyTextBox1.AllPower = null;
@@ -113,20 +144,50 @@
             this.blurSearch1.TabIndex = 0;
             this.blurSearch1.TabIndex = 0;
             this.blurSearch1.TableName = null;
             this.blurSearch1.TableName = null;
             // 
             // 
-            // TestDGV
+            // normalButton3
             // 
             // 
-            this.TestDGV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.TestDGV.Location = new System.Drawing.Point(215, 204);
-            this.TestDGV.Name = "TestDGV";
-            this.TestDGV.RowTemplate.Height = 27;
-            this.TestDGV.Size = new System.Drawing.Size(240, 150);
-            this.TestDGV.TabIndex = 9;
+            this.normalButton3.AllPower = null;
+            this.normalButton3.BackColor = System.Drawing.Color.Transparent;
+            this.normalButton3.DownImage = ((System.Drawing.Image)(resources.GetObject("normalButton3.DownImage")));
+            this.normalButton3.Image = null;
+            this.normalButton3.IsShowBorder = true;
+            this.normalButton3.Location = new System.Drawing.Point(362, 311);
+            this.normalButton3.MoveImage = ((System.Drawing.Image)(resources.GetObject("normalButton3.MoveImage")));
+            this.normalButton3.Name = "normalButton3";
+            this.normalButton3.NormalImage = ((System.Drawing.Image)(resources.GetObject("normalButton3.NormalImage")));
+            this.normalButton3.Power = null;
+            this.normalButton3.Size = new System.Drawing.Size(158, 28);
+            this.normalButton3.TabIndex = 11;
+            this.normalButton3.Text = "分配IMEI地址信息";
+            this.normalButton3.UseVisualStyleBackColor = false;
+            this.normalButton3.Click += new System.EventHandler(this.normalButton3_Click);
+            // 
+            // normalButton2
+            // 
+            this.normalButton2.AllPower = null;
+            this.normalButton2.BackColor = System.Drawing.Color.Transparent;
+            this.normalButton2.DownImage = ((System.Drawing.Image)(resources.GetObject("normalButton2.DownImage")));
+            this.normalButton2.Image = null;
+            this.normalButton2.IsShowBorder = true;
+            this.normalButton2.Location = new System.Drawing.Point(362, 381);
+            this.normalButton2.MoveImage = ((System.Drawing.Image)(resources.GetObject("normalButton2.MoveImage")));
+            this.normalButton2.Name = "normalButton2";
+            this.normalButton2.NormalImage = ((System.Drawing.Image)(resources.GetObject("normalButton2.NormalImage")));
+            this.normalButton2.Power = null;
+            this.normalButton2.Size = new System.Drawing.Size(158, 28);
+            this.normalButton2.TabIndex = 12;
+            this.normalButton2.Text = "分配MAC地址和BT地址";
+            this.normalButton2.UseVisualStyleBackColor = false;
+            this.normalButton2.Click += new System.EventHandler(this.normalButton2_Click_1);
             // 
             // 
             // Form1
             // Form1
             // 
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(1239, 737);
             this.ClientSize = new System.Drawing.Size(1239, 737);
+            this.Controls.Add(this.normalButton2);
+            this.Controls.Add(this.normalButton3);
+            this.Controls.Add(this.测试GetSNALL);
             this.Controls.Add(this.TestDGV);
             this.Controls.Add(this.TestDGV);
             this.Controls.Add(this.numOnlyTextBox1);
             this.Controls.Add(this.numOnlyTextBox1);
             this.Controls.Add(this.ct_coll);
             this.Controls.Add(this.ct_coll);
@@ -154,5 +215,8 @@
         private System.Windows.Forms.DataVisualization.Charting.Chart ct_coll;
         private System.Windows.Forms.DataVisualization.Charting.Chart ct_coll;
         private CustomControl.TextBoxWithIcon.NumOnlyTextBox numOnlyTextBox1;
         private CustomControl.TextBoxWithIcon.NumOnlyTextBox numOnlyTextBox1;
         private CustomControl.DataGrid_View.DataGridViewWithCheckBox TestDGV;
         private CustomControl.DataGrid_View.DataGridViewWithCheckBox TestDGV;
+        private CustomControl.ButtonUtil.NormalButton 测试GetSNALL;
+        private CustomControl.ButtonUtil.NormalButton normalButton3;
+        private CustomControl.ButtonUtil.NormalButton normalButton2;
     }
     }
 }
 }

+ 88 - 0
UAS-MES/Form1.cs

@@ -64,5 +64,93 @@ namespace UAS_MES
             ct_coll.ChartAreas[0].Area3DStyle.Enable3D = true;
             ct_coll.ChartAreas[0].Area3DStyle.Enable3D = true;
             ct_coll.Series[0].Points.DataBindXY(xData, yData);
             ct_coll.Series[0].Points.DataBindXY(xData, yData);
         }
         }
+
+        private void normalButton2_Click(object sender, EventArgs e)
+        {
+            DataHelper dh = new DataHelper();
+            string ErrorMessage = "";
+            string makecode = "";
+            string IMEI1 = "";
+            string IMEI2 = "";
+            string IMEI3 = "";
+            string IMEID = "";
+            string NetCode = "";
+            string PSN = "";
+            string MAC = "";
+            string BT = "";
+            string Code1 = "";
+            string Code2 = "";
+            string Code3 = "";
+            string ID1 = "";
+            string ID2 = "";
+            string ID3 = "";
+            LogicHandler.GetSNAllInfo("123133",out IMEI1,out IMEI2,out IMEI3,out IMEID,out NetCode,out PSN,out MAC,out BT,out Code1,out Code2,out Code3,out ID1,out ID2,out ID3,out ErrorMessage);
+            Console.WriteLine(IMEI1);
+            Console.WriteLine(IMEI2);
+            Console.WriteLine(IMEI3);
+            Console.WriteLine(IMEID);
+            Console.WriteLine(NetCode);
+            Console.WriteLine(PSN);
+            Console.WriteLine(MAC);
+            Console.WriteLine(BT);
+            Console.WriteLine(Code1);
+            Console.WriteLine(Code2);
+            Console.WriteLine(Code3);
+            Console.WriteLine(ID1);
+            Console.WriteLine(ID2);
+            Console.WriteLine(ID3);
+            Console.WriteLine(ErrorMessage);
+
+        }
+
+        private void normalButton3_Click(object sender, EventArgs e)
+        {
+            DataHelper dh = new DataHelper();
+            string ErrorMessage = "";
+            string makecode = "";
+            string IMEI1 = "";
+            string IMEI2 = "";
+            string IMEI3 = "";
+            string IMEID = "";
+            string NetCode = "";
+            string PSN = "";
+            string MAC = "";
+            string BT = "";
+            string ID1 = "";
+            string ID2 = "";
+            string ID3 = "";
+            LogicHandler.GetIMEIOrNetCodeRange("123133", "MAKED800", "IME1", "NETCODE", out IMEI1, out IMEI2, out IMEI3, out IMEID, out NetCode, out PSN, out ID1, out ID2, out ID3, out ErrorMessage);
+            Console.WriteLine(IMEI1);
+            Console.WriteLine(IMEI2);
+            Console.WriteLine(IMEI3);
+            Console.WriteLine(IMEID);
+            Console.WriteLine(NetCode);
+            Console.WriteLine(PSN);
+            Console.WriteLine(MAC);
+            Console.WriteLine(BT);
+            Console.WriteLine(ID1);
+            Console.WriteLine(ID2);
+            Console.WriteLine(ID3);
+            Console.WriteLine(ErrorMessage);
+        }
+
+        private void normalButton2_Click_1(object sender, EventArgs e)
+        {
+            DataHelper dh = new DataHelper();
+            string ErrorMessage = "";
+            string makecode = "";
+            string MAC = "";
+            string BT = "";
+            string Code1 = "";
+            string Code2 = "";
+            string Code3 = "";
+            LogicHandler.GetAddressRangeByMakeCode("123133", "MAKED800", out MAC,out BT, out Code1, out Code2, out Code3, out ErrorMessage);
+            Console.WriteLine(MAC);
+            Console.WriteLine(BT);
+            Console.WriteLine(Code1);
+            Console.WriteLine(Code2);
+            Console.WriteLine(Code3);
+            Console.WriteLine(ErrorMessage);
+        }
     }
     }
 }
 }

+ 115 - 0
UAS-MES/Form1.resx

@@ -117,4 +117,119 @@
   <resheader name="writer">
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
   </resheader>
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <data name="测试GetSNALL.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFcSURBVFhH5di7UsJAFMbxtDT6QMI76IAFT0npIE0K
+        GcRORxHklpAIBHLfbILV8XxeNsMznJ35F5vu+82kWYuILD4N7oq75roCw27sb/x5WBdc27btntY64o/i
+        DnZjPxy4S6A0R6PHO1WUNHc9ep4uxIXd2D8eP/XZowWUThBG+n3p0stsKbbJ0qFDFFfscQuUbpzm9Pqx
+        Eh8c4PGLkuX0Nl+LDw4GJckUTRaO+OBQo+SKpitXfHAwKClfZuuN+OBgUDJV0NzxxAeHM5TFxhffGUpe
+        aFp5n+KDg0FRfHH8nfjgUKPoktztXnxwMCgFX7xdID441ChlRf7+ID44GBTNl21wFB8capSqot0xFB8c
+        /lE6Wa70IU5oH0Ziw/5cFebpoPUwHPbL04nCJKUgisWF3dgPB3gABc9v7fvBoBcnaVKdvkha2I39cPjx
+        oPrhusndcPinpIXd2N8gIusbTaFspKtR2SQAAAAASUVORK5CYII=
+</value>
+  </data>
+  <data name="测试GetSNALL.MoveImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFzSURBVFhH5djNSgJRGMZxL2P2gTfQFbZvHSEZFBEW
+        CEIQBEIgVFiS9qXWoDmp4/fHzDmjM2a+vU/QqUVX0DvwXxxn9fwYXJwYEcXWNzIWt83dcq7AsBv7LXgA
+        ZI0r71/aaqjCJf8o7sFu7IcDFwdK4vimrv1oSZXRnArdQFzYjf3pQkOzRxIoVWc6X5X6M7ruBGIr9mbU
+        9MIVe9hAcXvBO125WnxwgMcXSpcPF20tPjgYlI5eUK6lxAcHg9Lmw3nTFx8cDEpLLSjr+OKDg0FpqojO
+        Gp744GBQ3vyITutT8cHBoDheRCe1ifjgYFBe+ZCxJ+KDg0GpT0NKv4zFBweDUpuEdFQdiQ8OBsXmw2Fl
+        JD44/KCM53TwNBQfHAzKMx/2Hgfig8M3SrXYUasUfz67DwOxYf9dV5urg+RWzta4aEnxn83OfV9c2I39
+        cIAHUOJceTNbUfmW94GX0sJu7IcDPH5fXCe4EvfXxe5/D7ux3yKi2CfkPhTy27lqkwAAAABJRU5ErkJg
+        gg==
+</value>
+  </data>
+  <data name="测试GetSNALL.NormalImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGVSURBVFhH5di7agJRFIXhDSKoYBQEC8FCECwEQRBE
+        4uUVEtTiPKVlom2wttM6IfF+15njXHRnL19jD/zFmanWV8zAEDNTp9OJS6/Sm2QUht3YH4cHtdvtF6k7
+        mUwG1tqd3FR3YTf2w0FKUVOu6XT68Xgw3+8PtWH/bDYbCkeLGo1Gz/d9JwzvrL0gCKx49KlerxtIBUGo
+        PjjAg2q1mqDc2fN99cEBHlStVk0oB+t56oMDPKhSqZggDNm1N/XBAR5ULpeNvGD46rrqgwM8qFQqGV8O
+        56ujPjjAg4rFosFL5ni5qA8O8KBCoWBuns/701l9cIAH5fN5QfF4dzipDw7woFwuZ+zN483+oD44wIOy
+        2azB52i13asPDvCgTCZjHGt5sdmqDw7woHQ6bRzX8ny1UR8c4EHJZNJc5fC7XKsPDvCgRCLR2x9Pzt9q
+        zT+Lpdqw/3A6W/HoUywWa32Nx8OL4zwffM8X6sJu7IcDPCgajaak7udoNNjsdgc81BZ2Yz8c4PH8cR2J
+        ROJSU3qXjMKwG/vjzEz/skOI3Zqgv7AAAAAASUVORK5CYII=
+</value>
+  </data>
+  <data name="normalButton3.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFcSURBVFhH5di7UsJAFMbxtDT6QMI76IAFT0npIE0K
+        GcRORxHklpAIBHLfbILV8XxeNsMznJ35F5vu+82kWYuILD4N7oq75roCw27sb/x5WBdc27btntY64o/i
+        DnZjPxy4S6A0R6PHO1WUNHc9ep4uxIXd2D8eP/XZowWUThBG+n3p0stsKbbJ0qFDFFfscQuUbpzm9Pqx
+        Eh8c4PGLkuX0Nl+LDw4GJckUTRaO+OBQo+SKpitXfHAwKClfZuuN+OBgUDJV0NzxxAeHM5TFxhffGUpe
+        aFp5n+KDg0FRfHH8nfjgUKPoktztXnxwMCgFX7xdID441ChlRf7+ID44GBTNl21wFB8capSqot0xFB8c
+        /lE6Wa70IU5oH0Ziw/5cFebpoPUwHPbL04nCJKUgisWF3dgPB3gABc9v7fvBoBcnaVKdvkha2I39cPjx
+        oPrhusndcPinpIXd2N8gIusbTaFspKtR2SQAAAAASUVORK5CYII=
+</value>
+  </data>
+  <data name="normalButton3.MoveImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFzSURBVFhH5djNSgJRGMZxL2P2gTfQFbZvHSEZFBEW
+        CEIQBEIgVFiS9qXWoDmp4/fHzDmjM2a+vU/QqUVX0DvwXxxn9fwYXJwYEcXWNzIWt83dcq7AsBv7LXgA
+        ZI0r71/aaqjCJf8o7sFu7IcDFwdK4vimrv1oSZXRnArdQFzYjf3pQkOzRxIoVWc6X5X6M7ruBGIr9mbU
+        9MIVe9hAcXvBO125WnxwgMcXSpcPF20tPjgYlI5eUK6lxAcHg9Lmw3nTFx8cDEpLLSjr+OKDg0FpqojO
+        Gp744GBQ3vyITutT8cHBoDheRCe1ifjgYFBe+ZCxJ+KDg0GpT0NKv4zFBweDUpuEdFQdiQ8OBsXmw2Fl
+        JD44/KCM53TwNBQfHAzKMx/2Hgfig8M3SrXYUasUfz67DwOxYf9dV5urg+RWzta4aEnxn83OfV9c2I39
+        cIAHUOJceTNbUfmW94GX0sJu7IcDPH5fXCe4EvfXxe5/D7ux3yKi2CfkPhTy27lqkwAAAABJRU5ErkJg
+        gg==
+</value>
+  </data>
+  <data name="normalButton3.NormalImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGVSURBVFhH5di7agJRFIXhDSKoYBQEC8FCECwEQRBE
+        4uUVEtTiPKVlom2wttM6IfF+15njXHRnL19jD/zFmanWV8zAEDNTp9OJS6/Sm2QUht3YH4cHtdvtF6k7
+        mUwG1tqd3FR3YTf2w0FKUVOu6XT68Xgw3+8PtWH/bDYbCkeLGo1Gz/d9JwzvrL0gCKx49KlerxtIBUGo
+        PjjAg2q1mqDc2fN99cEBHlStVk0oB+t56oMDPKhSqZggDNm1N/XBAR5ULpeNvGD46rrqgwM8qFQqGV8O
+        56ujPjjAg4rFosFL5ni5qA8O8KBCoWBuns/701l9cIAH5fN5QfF4dzipDw7woFwuZ+zN483+oD44wIOy
+        2azB52i13asPDvCgTCZjHGt5sdmqDw7woHQ6bRzX8ny1UR8c4EHJZNJc5fC7XKsPDvCgRCLR2x9Pzt9q
+        zT+Lpdqw/3A6W/HoUywWa32Nx8OL4zwffM8X6sJu7IcDPCgajaak7udoNNjsdgc81BZ2Yz8c4PH8cR2J
+        ROJSU3qXjMKwG/vjzEz/skOI3Zqgv7AAAAAASUVORK5CYII=
+</value>
+  </data>
+  <data name="normalButton2.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFcSURBVFhH5di7UsJAFMbxtDT6QMI76IAFT0npIE0K
+        GcRORxHklpAIBHLfbILV8XxeNsMznJ35F5vu+82kWYuILD4N7oq75roCw27sb/x5WBdc27btntY64o/i
+        DnZjPxy4S6A0R6PHO1WUNHc9ep4uxIXd2D8eP/XZowWUThBG+n3p0stsKbbJ0qFDFFfscQuUbpzm9Pqx
+        Eh8c4PGLkuX0Nl+LDw4GJckUTRaO+OBQo+SKpitXfHAwKClfZuuN+OBgUDJV0NzxxAeHM5TFxhffGUpe
+        aFp5n+KDg0FRfHH8nfjgUKPoktztXnxwMCgFX7xdID441ChlRf7+ID44GBTNl21wFB8capSqot0xFB8c
+        /lE6Wa70IU5oH0Ziw/5cFebpoPUwHPbL04nCJKUgisWF3dgPB3gABc9v7fvBoBcnaVKdvkha2I39cPjx
+        oPrhusndcPinpIXd2N8gIusbTaFspKtR2SQAAAAASUVORK5CYII=
+</value>
+  </data>
+  <data name="normalButton2.MoveImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFzSURBVFhH5djNSgJRGMZxL2P2gTfQFbZvHSEZFBEW
+        CEIQBEIgVFiS9qXWoDmp4/fHzDmjM2a+vU/QqUVX0DvwXxxn9fwYXJwYEcXWNzIWt83dcq7AsBv7LXgA
+        ZI0r71/aaqjCJf8o7sFu7IcDFwdK4vimrv1oSZXRnArdQFzYjf3pQkOzRxIoVWc6X5X6M7ruBGIr9mbU
+        9MIVe9hAcXvBO125WnxwgMcXSpcPF20tPjgYlI5eUK6lxAcHg9Lmw3nTFx8cDEpLLSjr+OKDg0FpqojO
+        Gp744GBQ3vyITutT8cHBoDheRCe1ifjgYFBe+ZCxJ+KDg0GpT0NKv4zFBweDUpuEdFQdiQ8OBsXmw2Fl
+        JD44/KCM53TwNBQfHAzKMx/2Hgfig8M3SrXYUasUfz67DwOxYf9dV5urg+RWzta4aEnxn83OfV9c2I39
+        cIAHUOJceTNbUfmW94GX0sJu7IcDPH5fXCe4EvfXxe5/D7ux3yKi2CfkPhTy27lqkwAAAABJRU5ErkJg
+        gg==
+</value>
+  </data>
+  <data name="normalButton2.NormalImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+        dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGVSURBVFhH5di7agJRFIXhDSKoYBQEC8FCECwEQRBE
+        4uUVEtTiPKVlom2wttM6IfF+15njXHRnL19jD/zFmanWV8zAEDNTp9OJS6/Sm2QUht3YH4cHtdvtF6k7
+        mUwG1tqd3FR3YTf2w0FKUVOu6XT68Xgw3+8PtWH/bDYbCkeLGo1Gz/d9JwzvrL0gCKx49KlerxtIBUGo
+        PjjAg2q1mqDc2fN99cEBHlStVk0oB+t56oMDPKhSqZggDNm1N/XBAR5ULpeNvGD46rrqgwM8qFQqGV8O
+        56ujPjjAg4rFosFL5ni5qA8O8KBCoWBuns/701l9cIAH5fN5QfF4dzipDw7woFwuZ+zN483+oD44wIOy
+        2azB52i13asPDvCgTCZjHGt5sdmqDw7woHQ6bRzX8ny1UR8c4EHJZNJc5fC7XKsPDvCgRCLR2x9Pzt9q
+        zT+Lpdqw/3A6W/HoUywWa32Nx8OL4zwffM8X6sJu7IcDPCgajaak7udoNNjsdgc81BZ2Yz8c4PH8cR2J
+        ROJSU3qXjMKwG/vjzEz/skOI3Zqgv7AAAAAASUVORK5CYII=
+</value>
+  </data>
 </root>
 </root>

+ 2 - 2
UAS-MES/Properties/AssemblyInfo.cs

@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
 // 方法是按如下所示使用“*”: :
 // 方法是按如下所示使用“*”: :
 // [assembly: AssemblyVersion("1.0.*")]
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.1")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyFileVersion("1.0.*")]

+ 29 - 26
UAS-MES/PublicMethod/LogicHandler.cs

@@ -205,7 +205,7 @@ namespace UAS_MES.PublicMethod
             string[] param = new string[] { iSnCode, iMakeCode, iSourceCode, oErrMessage };
             string[] param = new string[] { iSnCode, iMakeCode, iSourceCode, oErrMessage };
             dh.CallProcedure("CS_CHECKSTEPSNANDMACODE", ref param);
             dh.CallProcedure("CS_CHECKSTEPSNANDMACODE", ref param);
             oErrMessage = param[3];
             oErrMessage = param[3];
-            if (oErrMessage == "" || oErrMessage == null)
+            if (oErrMessage == "" || oErrMessage == null || oErrMessage == "null")
                 return true;
                 return true;
             else
             else
                 return false;
                 return false;
@@ -440,26 +440,26 @@ namespace UAS_MES.PublicMethod
         /// <param name="iMakeCode"></param>
         /// <param name="iMakeCode"></param>
         /// <param name="oMac"></param>
         /// <param name="oMac"></param>
         /// <param name="oBT"></param>
         /// <param name="oBT"></param>
-        /// <param name="oID1"></param>
-        /// <param name="oID2"></param>
-        /// <param name="oID3"></param>
+        /// <param name="oCode1"></param>
+        /// <param name="oCode2"></param>
+        /// <param name="oCdoe3"></param>
         /// <param name="oErrorMessage"></param>
         /// <param name="oErrorMessage"></param>
         /// <returns></returns>
         /// <returns></returns>
-        public static bool GetAddressRangeByMakeCode(string iSnCode, string iMakeCode, out string oMac, out string oBT, out string oID1, out string oID2, out string oID3, out string oErrorMessage)
+        public static bool GetAddressRangeByMakeCode(string iSnCode, string iMakeCode, out string oMac, out string oBT, out string oCode1, out string oCode2, out string oCdoe3, out string oErrorMessage)
         {
         {
             oMac = "";
             oMac = "";
             oBT = "";
             oBT = "";
-            oID1 = "";
-            oID2 = "";
-            oID3 = "";
+            oCode1 = "";
+            oCode2 = "";
+            oCdoe3 = "";
             oErrorMessage = "";
             oErrorMessage = "";
-            string[] param = new string[] { iSnCode, iMakeCode, oMac, oBT, oID1, oID2, oID3, oErrorMessage };
+            string[] param = new string[] { iSnCode, iMakeCode, oMac, oBT, oCode1, oCode2, oCdoe3, oErrorMessage };
             dh.CallProcedure("CS_GETADDRESSBYMAKECODE", ref param);
             dh.CallProcedure("CS_GETADDRESSBYMAKECODE", ref param);
             oMac = param[2];
             oMac = param[2];
             oBT = param[3];
             oBT = param[3];
-            oID1 = param[4];
-            oID2 = param[5];
-            oID3 = param[6];
+            oCode1 = param[4];
+            oCode2 = param[5];
+            oCdoe3 = param[6];
             oErrorMessage = param[7];
             oErrorMessage = param[7];
             if (oErrorMessage == "" || oErrorMessage == null || oErrorMessage == "null")
             if (oErrorMessage == "" || oErrorMessage == null || oErrorMessage == "null")
                 return true;
                 return true;
@@ -488,7 +488,7 @@ namespace UAS_MES.PublicMethod
         /// <param name="oID3"></param>
         /// <param name="oID3"></param>
         /// <param name="oErrorMessage"></param>
         /// <param name="oErrorMessage"></param>
         /// <returns></returns>
         /// <returns></returns>
-        public static bool GetIMEIOrNetCodeRange(string iSnCode, string iMakeCode, string iIMEI1, string iNetCode, out string oIMEI1, out string oIMEI2, out string oIMEI3, out string oMEID, out string oNetCode, out string oPSN, out string oBT, out string oID1, out string oID2, out string oID3, out string oErrorMessage)
+        public static bool GetIMEIOrNetCodeRange(string iSnCode, string iMakeCode, string iIMEI1, string iNetCode, out string oIMEI1, out string oIMEI2, out string oIMEI3, out string oMEID, out string oNetCode, out string oPSN, out string oID1, out string oID2, out string oID3, out string oErrorMessage)
         {
         {
             oIMEI1 = "";
             oIMEI1 = "";
             oIMEI2 = "";
             oIMEI2 = "";
@@ -496,12 +496,11 @@ namespace UAS_MES.PublicMethod
             oMEID = "";
             oMEID = "";
             oNetCode = "";
             oNetCode = "";
             oPSN = "";
             oPSN = "";
-            oBT = "";
             oID1 = "";
             oID1 = "";
             oID2 = "";
             oID2 = "";
             oID3 = "";
             oID3 = "";
             oErrorMessage = "";
             oErrorMessage = "";
-            string[] param = new string[] { iSnCode, iMakeCode, iIMEI1, iNetCode, oIMEI1, oIMEI2, oIMEI3, oMEID, oNetCode, oPSN, oBT, oID1, oID2, oID3, oErrorMessage };
+            string[] param = new string[] { iSnCode, iMakeCode, iIMEI1, iNetCode, oIMEI1, oIMEI2, oIMEI3, oMEID, oNetCode, oPSN, oID1, oID2, oID3, oErrorMessage };
             dh.CallProcedure("CS_GETIMEIORNETCODERANGE", ref param);
             dh.CallProcedure("CS_GETIMEIORNETCODERANGE", ref param);
             oIMEI1 = param[4];
             oIMEI1 = param[4];
             oIMEI2 = param[5];
             oIMEI2 = param[5];
@@ -509,11 +508,10 @@ namespace UAS_MES.PublicMethod
             oMEID = param[7];
             oMEID = param[7];
             oNetCode = param[8];
             oNetCode = param[8];
             oPSN = param[9];
             oPSN = param[9];
-            oBT = param[10];
-            oID1 = param[11];
-            oID2 = param[12];
-            oID3 = param[13];
-            oErrorMessage = param[14];
+            oID1 = param[10];
+            oID2 = param[11];
+            oID3 = param[12];
+            oErrorMessage = param[13];
             if (oErrorMessage == "" || oErrorMessage == null || oErrorMessage == "null")
             if (oErrorMessage == "" || oErrorMessage == null || oErrorMessage == "null")
                 return true;
                 return true;
             else
             else
@@ -533,7 +531,7 @@ namespace UAS_MES.PublicMethod
             oMakeCode = "";
             oMakeCode = "";
             oErrorMessage = "";
             oErrorMessage = "";
             string ms_id = dh.getFieldDataByCondition("MakeSerial", "max(ms_id) ms_id", "ms_sncode='" + iSnCode + "' or ms_firstsn in (select firstsn from makesnrelation where sn='" + iSnCode + "')").ToString();
             string ms_id = dh.getFieldDataByCondition("MakeSerial", "max(ms_id) ms_id", "ms_sncode='" + iSnCode + "' or ms_firstsn in (select firstsn from makesnrelation where sn='" + iSnCode + "')").ToString();
-            oMakeCode = dh.getFieldDataByCondition("MakeSerial", "ms_makecode", "ms_id='" + ms_id+"'").ToString();
+            oMakeCode = dh.getFieldDataByCondition("MakeSerial", "ms_makecode", "ms_id='" + ms_id + "'").ToString();
             if (oMakeCode != "")
             if (oMakeCode != "")
                 return true;
                 return true;
             else
             else
@@ -646,9 +644,10 @@ namespace UAS_MES.PublicMethod
             oID3 = "";
             oID3 = "";
             //通过序列号获取最近操作的工单号
             //通过序列号获取最近操作的工单号
             string MakeCode;
             string MakeCode;
-            if (GetMakeInfo(iSnCode, out MakeCode, out oErrorMessage))
+            string ms_id = dh.getFieldDataByCondition("makeserial", "ms_id", "ms_sncode='" + iSnCode + "'").ToString();
+            if (ms_id != "")
             {
             {
-                DataTable dt = dh.getFieldsDataByCondition("MakeSerial", new string[] { "ms_id", "ms_mac", "ms_bt", "ms_meid", "ms_netcode", "ms_psn", "ms_imei1", "ms_imei2", "ms_imei3", "ms_othcode1", "ms_othcode2", "ms_othcode3", "ms_othid1", "ms_othid2", "ms_othid3" }, "ms_sncode='" + iSnCode + "'' and ms_makecode='" + MakeCode + "' ");
+                DataTable dt = dh.getFieldsDataByCondition("MakeSerial", new string[] { "ms_id", "ms_mac", "ms_bt", "ms_meid", "ms_netcode", "ms_psn", "ms_imei1", "ms_imei2", "ms_imei3", "ms_othcode1", "ms_othcode2", "ms_othcode3", "ms_othid1", "ms_othid2", "ms_othid3" }, "ms_id='" + ms_id + "'");
                 if (dt.Rows.Count > 0)
                 if (dt.Rows.Count > 0)
                 {
                 {
                     oMac = dt.Rows[0]["ms_mac"].ToString();
                     oMac = dt.Rows[0]["ms_mac"].ToString();
@@ -665,6 +664,7 @@ namespace UAS_MES.PublicMethod
                     oID1 = dt.Rows[0]["ms_othid3"].ToString();
                     oID1 = dt.Rows[0]["ms_othid3"].ToString();
                     oID2 = dt.Rows[0]["ms_othid3"].ToString();
                     oID2 = dt.Rows[0]["ms_othid3"].ToString();
                     oID3 = dt.Rows[0]["ms_othid3"].ToString();
                     oID3 = dt.Rows[0]["ms_othid3"].ToString();
+                    oErrorMessage = "";
                     return true;
                     return true;
                 }
                 }
                 else
                 else
@@ -674,7 +674,10 @@ namespace UAS_MES.PublicMethod
                 }
                 }
             }
             }
             else
             else
+            {
+                oErrorMessage = "序列号" + iSnCode + "不存在";
                 return false;
                 return false;
+            }
         }
         }
 
 
         /// <summary>
         /// <summary>
@@ -898,7 +901,7 @@ namespace UAS_MES.PublicMethod
             oErrorMessage = "";
             oErrorMessage = "";
             string[] param = new string[] { iMakeCode, iSourceCode, iSN, iUserCode, oErrorMessage };
             string[] param = new string[] { iMakeCode, iSourceCode, iSN, iUserCode, oErrorMessage };
             dh.CallProcedure("CS_SETSTEPFINISH", ref param);
             dh.CallProcedure("CS_SETSTEPFINISH", ref param);
-            if (oErrorMessage == "" || oErrorMessage == null)
+            if (oErrorMessage == "" || oErrorMessage == null || oErrorMessage == "null")
                 return true;
                 return true;
             else
             else
                 return false;
                 return false;
@@ -952,13 +955,13 @@ namespace UAS_MES.PublicMethod
         /// <param name="iID3"></param>
         /// <param name="iID3"></param>
         /// <param name="oErrorMessage"></param>
         /// <param name="oErrorMessage"></param>
         /// <returns></returns>
         /// <returns></returns>
-        public static bool SetIMEIInfo(string iSnCode,string iIMEI1, string iIMEI2, string iIMEI3, string iMEID, string iNetCode, string iPSN, string iID1, string iID2, string iID3, out string oErrMessage)
+        public static bool SetIMEIInfo(string iSnCode, string iIMEI1, string iIMEI2, string iIMEI3, string iMEID, string iNetCode, string iPSN, string iID1, string iID2, string iID3, out string oErrMessage)
         {
         {
             oErrMessage = "";
             oErrMessage = "";
             string[] param = new string[] { iSnCode, iIMEI1, iIMEI2, iIMEI3, iMEID, iNetCode, iPSN, iID1, iID2, iID3, oErrMessage };
             string[] param = new string[] { iSnCode, iIMEI1, iIMEI2, iIMEI3, iMEID, iNetCode, iPSN, iID1, iID2, iID3, oErrMessage };
             dh.CallProcedure("CS_SETIMEIINFO", ref param);
             dh.CallProcedure("CS_SETIMEIINFO", ref param);
             oErrMessage = param[10];
             oErrMessage = param[10];
-            if (oErrMessage == "" || oErrMessage == null)
+            if (oErrMessage == "" || oErrMessage == null || oErrMessage == "null")
                 return true;
                 return true;
             else
             else
                 return false;
                 return false;