1.初始化项目。保险起见bin目录完整提交 2.基于现场代码为调整过的初始项目(此次提交还未解决代码差异问题)
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
|
||||
namespace AGVSystem.A17168
|
||||
{
|
||||
// Token: 0x02000034 RID: 52
|
||||
public class CrossInfo_Insert
|
||||
{
|
||||
// Token: 0x060002AE RID: 686 RVA: 0x0004F07E File Offset: 0x0004D27E
|
||||
public CrossInfo_Insert()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060002AF RID: 687 RVA: 0x0005401C File Offset: 0x0005221C
|
||||
public CrossInfo_Insert(DateTime dt, string Assembly_Name, string Assembly_Id, int AGV_Internal_No, int LandMark, string Info, int agv_no, int plc_value)
|
||||
{
|
||||
this.dt = dt;
|
||||
this.Assembly_Name = Assembly_Name;
|
||||
this.Assembly_Id = Assembly_Id;
|
||||
this.AGV_Internal_No = AGV_Internal_No;
|
||||
this.LandMark = LandMark;
|
||||
this.Info = Info;
|
||||
this.agv_no = agv_no;
|
||||
this.plc_value = plc_value;
|
||||
}
|
||||
|
||||
// Token: 0x17000045 RID: 69
|
||||
// (get) Token: 0x060002B0 RID: 688 RVA: 0x00054076 File Offset: 0x00052276
|
||||
// (set) Token: 0x060002B1 RID: 689 RVA: 0x0005407E File Offset: 0x0005227E
|
||||
public DateTime dt { get; set; }
|
||||
|
||||
// Token: 0x17000046 RID: 70
|
||||
// (get) Token: 0x060002B2 RID: 690 RVA: 0x00054087 File Offset: 0x00052287
|
||||
// (set) Token: 0x060002B3 RID: 691 RVA: 0x0005408F File Offset: 0x0005228F
|
||||
public string Assembly_Name { get; set; }
|
||||
|
||||
// Token: 0x17000047 RID: 71
|
||||
// (get) Token: 0x060002B4 RID: 692 RVA: 0x00054098 File Offset: 0x00052298
|
||||
// (set) Token: 0x060002B5 RID: 693 RVA: 0x000540A0 File Offset: 0x000522A0
|
||||
public string Assembly_Id { get; set; }
|
||||
|
||||
// Token: 0x17000048 RID: 72
|
||||
// (get) Token: 0x060002B6 RID: 694 RVA: 0x000540A9 File Offset: 0x000522A9
|
||||
// (set) Token: 0x060002B7 RID: 695 RVA: 0x000540B1 File Offset: 0x000522B1
|
||||
public int AGV_Internal_No { get; set; }
|
||||
|
||||
// Token: 0x17000049 RID: 73
|
||||
// (get) Token: 0x060002B8 RID: 696 RVA: 0x000540BA File Offset: 0x000522BA
|
||||
// (set) Token: 0x060002B9 RID: 697 RVA: 0x000540C2 File Offset: 0x000522C2
|
||||
public int LandMark { get; set; }
|
||||
|
||||
// Token: 0x1700004A RID: 74
|
||||
// (get) Token: 0x060002BA RID: 698 RVA: 0x000540CB File Offset: 0x000522CB
|
||||
// (set) Token: 0x060002BB RID: 699 RVA: 0x000540D3 File Offset: 0x000522D3
|
||||
public string Info { get; set; }
|
||||
|
||||
// Token: 0x1700004B RID: 75
|
||||
// (get) Token: 0x060002BC RID: 700 RVA: 0x000540DC File Offset: 0x000522DC
|
||||
// (set) Token: 0x060002BD RID: 701 RVA: 0x000540E4 File Offset: 0x000522E4
|
||||
public int agv_no { get; set; }
|
||||
|
||||
// Token: 0x1700004C RID: 76
|
||||
// (get) Token: 0x060002BE RID: 702 RVA: 0x000540ED File Offset: 0x000522ED
|
||||
// (set) Token: 0x060002BF RID: 703 RVA: 0x000540F5 File Offset: 0x000522F5
|
||||
public int plc_value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
|
||||
namespace AGVSystem.A17168
|
||||
{
|
||||
// Token: 0x02000032 RID: 50
|
||||
public class DeletePlcValueAndTime
|
||||
{
|
||||
// Token: 0x06000297 RID: 663 RVA: 0x00053EF8 File Offset: 0x000520F8
|
||||
public DeletePlcValueAndTime(int regionNumber, int stationNumber)
|
||||
{
|
||||
this.regionNumber = regionNumber;
|
||||
this.stationNumber = stationNumber;
|
||||
this.EndTime = DateTime.Now;
|
||||
}
|
||||
|
||||
// Token: 0x1700003B RID: 59
|
||||
// (get) Token: 0x06000298 RID: 664 RVA: 0x00053F1E File Offset: 0x0005211E
|
||||
// (set) Token: 0x06000299 RID: 665 RVA: 0x00053F26 File Offset: 0x00052126
|
||||
public int regionNumber { get; set; }
|
||||
|
||||
// Token: 0x1700003C RID: 60
|
||||
// (get) Token: 0x0600029A RID: 666 RVA: 0x00053F2F File Offset: 0x0005212F
|
||||
// (set) Token: 0x0600029B RID: 667 RVA: 0x00053F37 File Offset: 0x00052137
|
||||
public int stationNumber { get; set; }
|
||||
|
||||
// Token: 0x1700003D RID: 61
|
||||
// (get) Token: 0x0600029C RID: 668 RVA: 0x00053F40 File Offset: 0x00052140
|
||||
// (set) Token: 0x0600029D RID: 669 RVA: 0x00053F48 File Offset: 0x00052148
|
||||
public DateTime EndTime { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
|
||||
namespace AGVSystem.A17168
|
||||
{
|
||||
// Token: 0x02000033 RID: 51
|
||||
public class Location_Log
|
||||
{
|
||||
// Token: 0x0600029E RID: 670 RVA: 0x0004F07E File Offset: 0x0004D27E
|
||||
public Location_Log()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600029F RID: 671 RVA: 0x00053F54 File Offset: 0x00052154
|
||||
public Location_Log(DateTime dt, int agvId, int locId, int value, int locId2, int value2, int value3)
|
||||
{
|
||||
this.Dt = dt;
|
||||
this.Agv_Id = agvId;
|
||||
this.Loc_ID = locId;
|
||||
this.Value = value;
|
||||
this.Loc_ID2 = locId2;
|
||||
this.Value2 = value2;
|
||||
this.Value3 = value3;
|
||||
}
|
||||
|
||||
// Token: 0x1700003E RID: 62
|
||||
// (get) Token: 0x060002A0 RID: 672 RVA: 0x00053FA5 File Offset: 0x000521A5
|
||||
// (set) Token: 0x060002A1 RID: 673 RVA: 0x00053FAD File Offset: 0x000521AD
|
||||
public DateTime Dt { get; set; }
|
||||
|
||||
// Token: 0x1700003F RID: 63
|
||||
// (get) Token: 0x060002A2 RID: 674 RVA: 0x00053FB6 File Offset: 0x000521B6
|
||||
// (set) Token: 0x060002A3 RID: 675 RVA: 0x00053FBE File Offset: 0x000521BE
|
||||
public int Agv_Id { get; set; }
|
||||
|
||||
// Token: 0x17000040 RID: 64
|
||||
// (get) Token: 0x060002A4 RID: 676 RVA: 0x00053FC7 File Offset: 0x000521C7
|
||||
// (set) Token: 0x060002A5 RID: 677 RVA: 0x00053FCF File Offset: 0x000521CF
|
||||
public int Loc_ID { get; set; }
|
||||
|
||||
// Token: 0x17000041 RID: 65
|
||||
// (get) Token: 0x060002A6 RID: 678 RVA: 0x00053FD8 File Offset: 0x000521D8
|
||||
// (set) Token: 0x060002A7 RID: 679 RVA: 0x00053FE0 File Offset: 0x000521E0
|
||||
public int Value { get; set; }
|
||||
|
||||
// Token: 0x17000042 RID: 66
|
||||
// (get) Token: 0x060002A8 RID: 680 RVA: 0x00053FE9 File Offset: 0x000521E9
|
||||
// (set) Token: 0x060002A9 RID: 681 RVA: 0x00053FF1 File Offset: 0x000521F1
|
||||
public int Loc_ID2 { get; set; }
|
||||
|
||||
// Token: 0x17000043 RID: 67
|
||||
// (get) Token: 0x060002AA RID: 682 RVA: 0x00053FFA File Offset: 0x000521FA
|
||||
// (set) Token: 0x060002AB RID: 683 RVA: 0x00054002 File Offset: 0x00052202
|
||||
public int Value2 { get; set; }
|
||||
|
||||
// Token: 0x17000044 RID: 68
|
||||
// (get) Token: 0x060002AC RID: 684 RVA: 0x0005400B File Offset: 0x0005220B
|
||||
// (set) Token: 0x060002AD RID: 685 RVA: 0x00054013 File Offset: 0x00052213
|
||||
public int Value3 { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using HxBusiness;
|
||||
|
||||
namespace AGVSystem.A17168
|
||||
{
|
||||
// Token: 0x02000030 RID: 48
|
||||
public class TrafficCtrl
|
||||
{
|
||||
// Token: 0x06000291 RID: 657 RVA: 0x000537C0 File Offset: 0x000519C0
|
||||
private static int Agv_Land(int agvid)
|
||||
{
|
||||
byte b = 0;
|
||||
while ((int)b < Func.AgvInfo.Length)
|
||||
{
|
||||
bool flag = Func.AgvInfo[(int)b].Agv_ID == agvid;
|
||||
if (flag)
|
||||
{
|
||||
return Func.AgvInfo[(int)b].Location_Display;
|
||||
}
|
||||
b += 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000292 RID: 658 RVA: 0x00053810 File Offset: 0x00051A10
|
||||
public static void Listen()
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
try
|
||||
{
|
||||
BusinessManage businessCtrl = Frm_A17168.businessCtrl;
|
||||
bool flag = ((businessCtrl != null) ? businessCtrl.apiModel : null) == null;
|
||||
if (flag)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
int autoTime = Frm_A17168.businessCtrl.apiModel.AutoTime;
|
||||
bool flag2 = autoTime == 0 || string.IsNullOrEmpty(Frm_A17168.businessCtrl.apiModel.waitRfidList) || Frm_A17168.autoLeavedDic == null || Frm_A17168.autoLeavedDic.Count <= 0;
|
||||
if (flag2)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
foreach (TrafficModel trafficModel in Frm_A17168.autoLeavedDic)
|
||||
{
|
||||
bool flag3 = trafficModel.agvId == 0;
|
||||
if (!flag3)
|
||||
{
|
||||
bool flag4 = (DateTime.Now - trafficModel.InArea).TotalSeconds > (double)autoTime;
|
||||
if (flag4)
|
||||
{
|
||||
bool flag5 = Frm_A17168.businessCtrl.ByLeaved(trafficModel.agvId.ToString(), TrafficCtrl.Agv_Land(trafficModel.agvId).ToString(), trafficModel.areaCode.ToString());
|
||||
WriteTxt.SaveLog1(trafficModel.areaCode.ToString() + "自动释放,返回的值" + flag5.ToString(), "放行日志" + trafficModel.agvId.ToString(), "插件日志");
|
||||
bool flag6 = flag5;
|
||||
if (flag6)
|
||||
{
|
||||
Frm_A17168.leavedDic[trafficModel.agvId] = 0;
|
||||
trafficModel.agvId = 0;
|
||||
WriteTxt.SaveLog1(trafficModel.areaCode.ToString() + "路口已自动归还", "放行日志" + trafficModel.agvId.ToString(), "插件日志");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
WriteTxt.SaveLog1("第三方交管监听线程异常!" + ex.ToString(), "异常日志", "插件日志");
|
||||
}
|
||||
Thread.Sleep(1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace AGVSystem.A17168
|
||||
{
|
||||
// Token: 0x0200002F RID: 47
|
||||
public class TrafficModel
|
||||
{
|
||||
// Token: 0x17000038 RID: 56
|
||||
// (get) Token: 0x0600028A RID: 650 RVA: 0x0005378C File Offset: 0x0005198C
|
||||
// (set) Token: 0x0600028B RID: 651 RVA: 0x00053794 File Offset: 0x00051994
|
||||
public string areaCode { get; set; }
|
||||
|
||||
// Token: 0x17000039 RID: 57
|
||||
// (get) Token: 0x0600028C RID: 652 RVA: 0x0005379D File Offset: 0x0005199D
|
||||
// (set) Token: 0x0600028D RID: 653 RVA: 0x000537A5 File Offset: 0x000519A5
|
||||
public int agvId { get; set; }
|
||||
|
||||
// Token: 0x1700003A RID: 58
|
||||
// (get) Token: 0x0600028E RID: 654 RVA: 0x000537AE File Offset: 0x000519AE
|
||||
// (set) Token: 0x0600028F RID: 655 RVA: 0x000537B6 File Offset: 0x000519B6
|
||||
public DateTime InArea { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using AGVSystem.Cls;
|
||||
|
||||
namespace AGVSystem.A17168
|
||||
{
|
||||
// Token: 0x02000031 RID: 49
|
||||
public class UPDateDBList
|
||||
{
|
||||
// Token: 0x06000294 RID: 660 RVA: 0x00053A58 File Offset: 0x00051C58
|
||||
public static void UpDateDb()
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
try
|
||||
{
|
||||
bool flag = UPDateDBList.upDbList.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = UPDateDBList.upDbList[0] != null;
|
||||
if (flag2)
|
||||
{
|
||||
bool flag3 = UPDateDBList.upDbList[0] is Location_Log;
|
||||
if (flag3)
|
||||
{
|
||||
Location_Log location_Log = (Location_Log)UPDateDBList.upDbList[0];
|
||||
string a = UPDateDBList.db.Command(string.Concat(new string[]
|
||||
{
|
||||
"INSERT INTO [Location_Log] ([Dt] ,[Agv_ID] ,[Loc_ID] ,[Value] ,[Loc_ID2] ,[Value2],[Value3]) VALUES ('",
|
||||
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
|
||||
"',",
|
||||
location_Log.Agv_Id.ToString(),
|
||||
",",
|
||||
location_Log.Loc_ID.ToString(),
|
||||
",",
|
||||
location_Log.Value.ToString(),
|
||||
",",
|
||||
location_Log.Loc_ID2.ToString(),
|
||||
",",
|
||||
location_Log.Value2.ToString(),
|
||||
",",
|
||||
location_Log.Value3.ToString(),
|
||||
")"
|
||||
}));
|
||||
bool flag4 = a == "1";
|
||||
if (flag4)
|
||||
{
|
||||
UPDateDBList.upDbList.RemoveAt(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag5 = UPDateDBList.upDbList[0] is CrossInfo_Insert;
|
||||
if (flag5)
|
||||
{
|
||||
CrossInfo_Insert crossInfo_Insert = (CrossInfo_Insert)UPDateDBList.upDbList[0];
|
||||
string sqlstr = string.Concat(new string[]
|
||||
{
|
||||
"INSERT INTO [Go_Log] ([Dt] ,[Agv_id] ,[Type] ,[Location],[plc_value]) VALUES ('",
|
||||
crossInfo_Insert.dt.ToString("yyyy-MM-dd HH:mm:ss.fff"),
|
||||
"',",
|
||||
crossInfo_Insert.agv_no.ToString(),
|
||||
",'",
|
||||
crossInfo_Insert.Info,
|
||||
"',",
|
||||
crossInfo_Insert.LandMark.ToString(),
|
||||
",",
|
||||
crossInfo_Insert.plc_value.ToString(),
|
||||
")"
|
||||
});
|
||||
string a2 = UPDateDBList.db.Command(sqlstr);
|
||||
bool flag6 = a2 == "1";
|
||||
if (flag6)
|
||||
{
|
||||
UPDateDBList.upDbList.RemoveAt(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag7 = UPDateDBList.upDbList[0] is Warn_Log;
|
||||
if (flag7)
|
||||
{
|
||||
Warn_Log warn_Log = (Warn_Log)UPDateDBList.upDbList[0];
|
||||
string sqlstr2 = string.Concat(new string[]
|
||||
{
|
||||
"INSERT INTO [Warn_Log] ([Dt] ,[Agv_id] ,[Type] ,[Reset]) VALUES ('",
|
||||
warn_Log.Dt,
|
||||
"',",
|
||||
warn_Log.Agv_id,
|
||||
",'",
|
||||
warn_Log.Type,
|
||||
"','",
|
||||
(warn_Log.Reset == null) ? "NULL" : warn_Log.Reset,
|
||||
"')"
|
||||
});
|
||||
string a3 = UPDateDBList.db.Command(sqlstr2);
|
||||
bool flag8 = a3 == "1";
|
||||
if (flag8)
|
||||
{
|
||||
UPDateDBList.upDbList.RemoveAt(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag9 = UPDateDBList.upDbList[0] is AgvInfo;
|
||||
if (flag9)
|
||||
{
|
||||
AgvInfo agvInfo = (AgvInfo)UPDateDBList.upDbList[0];
|
||||
string text = "UPDATE [dbo].[AgvInfo]\r\n SET [Loc_ID] = '{1}',Status = '{2}'\r\n WHERE id = '{0}'";
|
||||
text = string.Format(text, agvInfo.Agv_ID, agvInfo.Location_Display, agvInfo.Enable ? 1 : 0);
|
||||
string a4 = UPDateDBList.db.Command(text);
|
||||
bool flag10 = a4 == "1";
|
||||
if (flag10)
|
||||
{
|
||||
UPDateDBList.upDbList.RemoveAt(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
UPDateDBList.upDbList.RemoveAt(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Thread.Sleep(50);
|
||||
}
|
||||
bool flag11 = UPDateDBList.sqlList.Count > 0;
|
||||
if (flag11)
|
||||
{
|
||||
string a5 = UPDateDBList.db.Command(UPDateDBList.sqlList[0]);
|
||||
bool flag12 = a5 == "1";
|
||||
if (flag12)
|
||||
{
|
||||
UPDateDBList.sqlList.RemoveAt(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Thread.Sleep(50);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000668 RID: 1640
|
||||
public static List<object> upDbList = new List<object>();
|
||||
|
||||
// Token: 0x04000669 RID: 1641
|
||||
public static List<string> sqlList = new List<string>();
|
||||
|
||||
// Token: 0x0400066A RID: 1642
|
||||
public static ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
|
||||
namespace AGVSystem.A17168
|
||||
{
|
||||
// Token: 0x02000035 RID: 53
|
||||
public class Warn_Log
|
||||
{
|
||||
// Token: 0x060002C0 RID: 704 RVA: 0x000540FE File Offset: 0x000522FE
|
||||
public Warn_Log(string dt, string agvId, string type, string reset)
|
||||
{
|
||||
this.Dt = dt;
|
||||
this.Agv_id = agvId;
|
||||
this.Type = type;
|
||||
this.Reset = reset;
|
||||
}
|
||||
|
||||
// Token: 0x1700004D RID: 77
|
||||
// (get) Token: 0x060002C1 RID: 705 RVA: 0x00054129 File Offset: 0x00052329
|
||||
// (set) Token: 0x060002C2 RID: 706 RVA: 0x00054131 File Offset: 0x00052331
|
||||
public string Dt { get; set; }
|
||||
|
||||
// Token: 0x1700004E RID: 78
|
||||
// (get) Token: 0x060002C3 RID: 707 RVA: 0x0005413A File Offset: 0x0005233A
|
||||
// (set) Token: 0x060002C4 RID: 708 RVA: 0x00054142 File Offset: 0x00052342
|
||||
public string Agv_id { get; set; }
|
||||
|
||||
// Token: 0x1700004F RID: 79
|
||||
// (get) Token: 0x060002C5 RID: 709 RVA: 0x0005414B File Offset: 0x0005234B
|
||||
// (set) Token: 0x060002C6 RID: 710 RVA: 0x00054153 File Offset: 0x00052353
|
||||
public string Type { get; set; }
|
||||
|
||||
// Token: 0x17000050 RID: 80
|
||||
// (get) Token: 0x060002C7 RID: 711 RVA: 0x0005415C File Offset: 0x0005235C
|
||||
// (set) Token: 0x060002C8 RID: 712 RVA: 0x00054164 File Offset: 0x00052364
|
||||
public string Reset { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,568 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Threading;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000009 RID: 9
|
||||
internal class AGVClientCls
|
||||
{
|
||||
// Token: 0x14000001 RID: 1
|
||||
// (add) Token: 0x06000081 RID: 129 RVA: 0x0001073C File Offset: 0x0000E93C
|
||||
// (remove) Token: 0x06000082 RID: 130 RVA: 0x00010774 File Offset: 0x0000E974
|
||||
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public event AGVClientCls.StartListeHandler StartListen;
|
||||
|
||||
// Token: 0x14000002 RID: 2
|
||||
// (add) Token: 0x06000083 RID: 131 RVA: 0x000107AC File Offset: 0x0000E9AC
|
||||
// (remove) Token: 0x06000084 RID: 132 RVA: 0x000107E4 File Offset: 0x0000E9E4
|
||||
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public event AGVClientCls.ReceiveMsgHandler OnMsgReceived;
|
||||
|
||||
// Token: 0x06000085 RID: 133 RVA: 0x0001081C File Offset: 0x0000EA1C
|
||||
public AGVClientCls(string hostName, int port)
|
||||
{
|
||||
this.IPAdress = hostName;
|
||||
IPAddress[] hostAddresses = Dns.GetHostAddresses(hostName);
|
||||
this.hostEndPoint = new IPEndPoint(hostAddresses[hostAddresses.Length - 1], port);
|
||||
this.clientSocket = new Socket(this.hostEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
|
||||
}
|
||||
|
||||
// Token: 0x06000086 RID: 134 RVA: 0x00010888 File Offset: 0x0000EA88
|
||||
private bool Connect()
|
||||
{
|
||||
bool result;
|
||||
using (SocketAsyncEventArgs socketAsyncEventArgs = new SocketAsyncEventArgs())
|
||||
{
|
||||
socketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
socketAsyncEventArgs.RemoteEndPoint = this.hostEndPoint;
|
||||
socketAsyncEventArgs.Completed += this.OnConnect;
|
||||
this.clientSocket.ConnectAsync(socketAsyncEventArgs);
|
||||
bool flag = this.autoConnectEvent.WaitOne(1000);
|
||||
bool flag2 = this.connected;
|
||||
if (flag2)
|
||||
{
|
||||
this.lisnterSocketAsyncEventArgs = new SocketAsyncEventArgs();
|
||||
byte[] array = new byte[50];
|
||||
this.lisnterSocketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
this.lisnterSocketAsyncEventArgs.SetBuffer(array, 0, array.Length);
|
||||
this.lisnterSocketAsyncEventArgs.Completed += this.OnReceive;
|
||||
this.StartListen();
|
||||
result = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000087 RID: 135 RVA: 0x00010974 File Offset: 0x0000EB74
|
||||
private void OnConnect(object sender, SocketAsyncEventArgs e)
|
||||
{
|
||||
this.connected = (e.SocketError == 0);
|
||||
this.autoConnectEvent.Set();
|
||||
}
|
||||
|
||||
// Token: 0x06000088 RID: 136 RVA: 0x00010994 File Offset: 0x0000EB94
|
||||
public void Send(byte[] mes)
|
||||
{
|
||||
bool flag = this.connected;
|
||||
if (flag)
|
||||
{
|
||||
EventHandler<SocketAsyncEventArgs> eventHandler = null;
|
||||
SocketAsyncEventArgs senderSocketAsyncEventArgs = null;
|
||||
List<SocketAsyncEventArgs> obj = this.s_lst;
|
||||
lock (obj)
|
||||
{
|
||||
bool flag3 = this.s_lst.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
senderSocketAsyncEventArgs = this.s_lst[this.s_lst.Count - 1];
|
||||
this.s_lst.RemoveAt(this.s_lst.Count - 1);
|
||||
}
|
||||
}
|
||||
bool flag4 = senderSocketAsyncEventArgs == null;
|
||||
if (flag4)
|
||||
{
|
||||
senderSocketAsyncEventArgs = new SocketAsyncEventArgs();
|
||||
senderSocketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
senderSocketAsyncEventArgs.RemoteEndPoint = this.clientSocket.RemoteEndPoint;
|
||||
bool flag5 = eventHandler == null;
|
||||
if (flag5)
|
||||
{
|
||||
eventHandler = delegate(object sender, SocketAsyncEventArgs _e)
|
||||
{
|
||||
List<SocketAsyncEventArgs> obj2 = this.s_lst;
|
||||
lock (obj2)
|
||||
{
|
||||
this.s_lst.Add(senderSocketAsyncEventArgs);
|
||||
}
|
||||
};
|
||||
}
|
||||
senderSocketAsyncEventArgs.Completed += eventHandler;
|
||||
}
|
||||
senderSocketAsyncEventArgs.SetBuffer(mes, 0, mes.Length);
|
||||
this.clientSocket.SendAsync(senderSocketAsyncEventArgs);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.connected = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000089 RID: 137 RVA: 0x00010AE8 File Offset: 0x0000ECE8
|
||||
public void Listen()
|
||||
{
|
||||
bool flag = this.connected && this.clientSocket != null;
|
||||
if (flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
(this.lisnterSocketAsyncEventArgs.UserToken as Socket).ReceiveAsync(this.lisnterSocketAsyncEventArgs);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600008A RID: 138 RVA: 0x00010B48 File Offset: 0x0000ED48
|
||||
private int Disconnect()
|
||||
{
|
||||
int result = 0;
|
||||
try
|
||||
{
|
||||
this.clientSocket.Shutdown(SocketShutdown.Both);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
try
|
||||
{
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
this.connected = false;
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x0600008B RID: 139 RVA: 0x00010BAC File Offset: 0x0000EDAC
|
||||
private void OnReceive(object sender, SocketAsyncEventArgs e)
|
||||
{
|
||||
bool flag = e.BytesTransferred == 0;
|
||||
if (flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.clientSocket.Shutdown(SocketShutdown.Both);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
bool flag2 = this.clientSocket.Connected;
|
||||
if (flag2)
|
||||
{
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
}
|
||||
byte[] info = new byte[1];
|
||||
this.OnMsgReceived(info);
|
||||
}
|
||||
else
|
||||
{
|
||||
byte[] array = new byte[e.BytesTransferred];
|
||||
for (int i = 0; i < e.BytesTransferred; i++)
|
||||
{
|
||||
array[i] = e.Buffer[i];
|
||||
}
|
||||
this.OnMsgReceived(array);
|
||||
this.Listen();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600008C RID: 140 RVA: 0x00010C80 File Offset: 0x0000EE80
|
||||
private void SimaticSocketClient_OnMsgReceived(byte[] info)
|
||||
{
|
||||
bool flag = info[0] > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.SendOrRecv == 1;
|
||||
if (flag2)
|
||||
{
|
||||
this.SendDataPro = info;
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag3 = this.SendOrRecv == 2;
|
||||
if (flag3)
|
||||
{
|
||||
this.SendData = info;
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag4 = this.SendOrRecv == 3;
|
||||
if (flag4)
|
||||
{
|
||||
this.RecvDataPro = info;
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag5 = this.SendOrRecv == 4;
|
||||
if (flag5)
|
||||
{
|
||||
this.RecvData = info;
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag6 = this.SendOrRecv == 1;
|
||||
if (flag6)
|
||||
{
|
||||
this.SendDataPro = new byte[1];
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag7 = this.SendOrRecv == 2;
|
||||
if (flag7)
|
||||
{
|
||||
this.SendData = new byte[1];
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag8 = this.SendOrRecv == 3;
|
||||
if (flag8)
|
||||
{
|
||||
this.RecvDataPro = new byte[1];
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag9 = this.SendOrRecv == 4;
|
||||
if (flag9)
|
||||
{
|
||||
this.RecvData = new byte[1];
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600008D RID: 141 RVA: 0x00010DB8 File Offset: 0x0000EFB8
|
||||
public bool OpenLinkPLC()
|
||||
{
|
||||
this.StartListen += this.SimaticSocketClient_StartListen;
|
||||
this.OnMsgReceived += this.SimaticSocketClient_OnMsgReceived;
|
||||
bool flag = this.Connect();
|
||||
bool flag2 = !flag;
|
||||
return !flag2 || flag;
|
||||
}
|
||||
|
||||
// Token: 0x0600008E RID: 142 RVA: 0x00010E08 File Offset: 0x0000F008
|
||||
public int CloseLinkPLC()
|
||||
{
|
||||
return this.Disconnect();
|
||||
}
|
||||
|
||||
// Token: 0x0600008F RID: 143 RVA: 0x00010E20 File Offset: 0x0000F020
|
||||
private void SimaticSocketClient_StartListen()
|
||||
{
|
||||
this.Listen();
|
||||
}
|
||||
|
||||
// Token: 0x06000090 RID: 144 RVA: 0x00010E2C File Offset: 0x0000F02C
|
||||
public int WriteVM(int stationNO, int address, int value)
|
||||
{
|
||||
int result = -1;
|
||||
byte[] array = new byte[6];
|
||||
byte[] array2 = new byte[39];
|
||||
array2[0] = 104;
|
||||
array2[1] = 33;
|
||||
array2[2] = 33;
|
||||
array2[3] = 104;
|
||||
array2[4] = (byte)stationNO;
|
||||
array2[5] = 0;
|
||||
array2[6] = 108;
|
||||
array2[7] = 50;
|
||||
array2[8] = 1;
|
||||
array2[9] = 0;
|
||||
array2[10] = 0;
|
||||
array2[11] = 0;
|
||||
array2[12] = 0;
|
||||
array2[13] = 0;
|
||||
array2[14] = 14;
|
||||
array2[15] = 0;
|
||||
array2[16] = 6;
|
||||
array2[17] = 5;
|
||||
array2[18] = 1;
|
||||
array2[19] = 18;
|
||||
array2[20] = 10;
|
||||
array2[21] = 16;
|
||||
array2[22] = 4;
|
||||
array2[23] = 0;
|
||||
array2[24] = 1;
|
||||
array2[25] = 0;
|
||||
array2[26] = 1;
|
||||
array2[27] = 132;
|
||||
array2[28] = 0;
|
||||
array2[29] = Convert.ToByte(address * 8 / 256);
|
||||
array2[30] = Convert.ToByte(address * 8 % 256);
|
||||
array2[31] = 0;
|
||||
array2[32] = 4;
|
||||
array2[33] = 0;
|
||||
array2[34] = 16;
|
||||
array2[35] = Convert.ToByte(value / 256);
|
||||
array2[36] = Convert.ToByte(value % 256);
|
||||
int num = 0;
|
||||
for (int i = 4; i <= 36; i++)
|
||||
{
|
||||
num += (int)array2[i];
|
||||
}
|
||||
array2[37] = Convert.ToByte(num % 256);
|
||||
array2[38] = 22;
|
||||
array[0] = 16;
|
||||
array[1] = 2;
|
||||
array[2] = 0;
|
||||
array[3] = 92;
|
||||
array[4] = 94;
|
||||
array[5] = 22;
|
||||
Thread.Sleep(100);
|
||||
this.SendOrRecv = 1;
|
||||
int num2 = 0;
|
||||
this.Send(array2);
|
||||
while (this.SendOrRecv != 0 && num2 < 500)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
num2++;
|
||||
}
|
||||
bool flag = num2 < 500;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.SendDataPro[0] == 229;
|
||||
if (flag2)
|
||||
{
|
||||
Thread.Sleep(100);
|
||||
this.SendOrRecv = 2;
|
||||
int num3 = 0;
|
||||
this.Send(array);
|
||||
while (this.SendOrRecv != 0 && num3 < 500)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
num3++;
|
||||
}
|
||||
bool flag3 = num3 < 500;
|
||||
if (flag3)
|
||||
{
|
||||
bool flag4 = this.SendData.Length == 24 && this.Check(this.SendData);
|
||||
if (flag4)
|
||||
{
|
||||
result = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.SendOrRecv = 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000091 RID: 145 RVA: 0x00011094 File Offset: 0x0000F294
|
||||
public int ReadVM(int stationNO, int length, int address, out int value)
|
||||
{
|
||||
int result = -1;
|
||||
value = 0;
|
||||
byte[] array = new byte[6];
|
||||
byte[] array2 = new byte[33];
|
||||
array2[0] = 104;
|
||||
array2[1] = 27;
|
||||
array2[2] = 27;
|
||||
array2[3] = 104;
|
||||
array2[4] = (byte)stationNO;
|
||||
array2[5] = 0;
|
||||
array2[6] = 108;
|
||||
array2[7] = 50;
|
||||
array2[8] = 1;
|
||||
array2[9] = 0;
|
||||
array2[10] = 0;
|
||||
array2[11] = 0;
|
||||
array2[12] = 0;
|
||||
array2[13] = 0;
|
||||
array2[14] = 14;
|
||||
array2[15] = 0;
|
||||
array2[16] = 0;
|
||||
array2[17] = 4;
|
||||
array2[18] = 1;
|
||||
array2[19] = 18;
|
||||
array2[20] = 10;
|
||||
array2[21] = 16;
|
||||
array2[22] = 4;
|
||||
array2[23] = 0;
|
||||
array2[24] = Convert.ToByte(length);
|
||||
array2[25] = 0;
|
||||
array2[26] = 1;
|
||||
array2[27] = 132;
|
||||
array2[28] = 0;
|
||||
array2[29] = Convert.ToByte(address * 8 / 256);
|
||||
array2[30] = Convert.ToByte(address * 8 % 256);
|
||||
int num = 0;
|
||||
for (int i = 4; i <= 30; i++)
|
||||
{
|
||||
num += Convert.ToInt32(array2[i]);
|
||||
}
|
||||
array2[31] = Convert.ToByte(num % 256);
|
||||
array2[32] = 22;
|
||||
array[0] = 16;
|
||||
array[1] = 2;
|
||||
array[2] = 0;
|
||||
array[3] = 92;
|
||||
array[4] = 94;
|
||||
array[5] = 22;
|
||||
Thread.Sleep(100);
|
||||
this.SendOrRecv = 3;
|
||||
int num2 = 0;
|
||||
this.Send(array2);
|
||||
while (this.SendOrRecv != 0 && num2 < 500)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
num2++;
|
||||
}
|
||||
bool flag = num2 < 500;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.RecvDataPro[0] == 229;
|
||||
if (flag2)
|
||||
{
|
||||
Thread.Sleep(100);
|
||||
this.SendOrRecv = 4;
|
||||
int num3 = 0;
|
||||
this.Send(array);
|
||||
while (this.SendOrRecv != 0 && num3 < 600)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
num3++;
|
||||
}
|
||||
bool flag3 = num3 < 600;
|
||||
if (flag3)
|
||||
{
|
||||
bool flag4 = this.RecvData.Length == 1;
|
||||
if (flag4)
|
||||
{
|
||||
}
|
||||
bool flag5 = this.RecvData.Length == 29;
|
||||
if (flag5)
|
||||
{
|
||||
result = 0;
|
||||
bool flag6 = this.RecvData[25] > 0;
|
||||
if (flag6)
|
||||
{
|
||||
value = (int)this.RecvData[26] * 256 + (int)this.RecvData[25];
|
||||
}
|
||||
else
|
||||
{
|
||||
value = (int)this.RecvData[26];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag7 = this.RecvData[0] == 0;
|
||||
if (flag7)
|
||||
{
|
||||
result = -3;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag8 = this.RecvDataPro[0] == 0;
|
||||
if (flag8)
|
||||
{
|
||||
result = -3;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.SendOrRecv = 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000092 RID: 146 RVA: 0x00011350 File Offset: 0x0000F550
|
||||
private bool Check(byte[] by)
|
||||
{
|
||||
return by[0] == 104 && by[1] == 18 && by[2] == 18 && by[3] == 104 && by[4] == 0 && by[5] == 2 && by[6] == 8 && by[7] == 50 && by[8] == 3 && by[9] == 0 && by[10] == 0 && by[11] == 0 && by[12] == 0 && by[13] == 0 && by[14] == 2 && by[15] == 0 && by[16] == 1 && by[17] == 0 && by[18] == 0 && by[19] == 5 && by[20] == 1 && by[21] == byte.MaxValue && by[22] == 71 && by[23] == 22;
|
||||
}
|
||||
|
||||
// Token: 0x06000093 RID: 147 RVA: 0x00011424 File Offset: 0x0000F624
|
||||
public void Dispose()
|
||||
{
|
||||
bool flag = this.clientSocket.Connected;
|
||||
if (flag)
|
||||
{
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000102 RID: 258
|
||||
public string IPAdress;
|
||||
|
||||
// Token: 0x04000103 RID: 259
|
||||
public bool connected = false;
|
||||
|
||||
// Token: 0x04000104 RID: 260
|
||||
public Socket clientSocket;
|
||||
|
||||
// Token: 0x04000105 RID: 261
|
||||
private IPEndPoint hostEndPoint;
|
||||
|
||||
// Token: 0x04000106 RID: 262
|
||||
private byte[] SendDataPro;
|
||||
|
||||
// Token: 0x04000107 RID: 263
|
||||
private byte[] RecvDataPro;
|
||||
|
||||
// Token: 0x04000108 RID: 264
|
||||
private byte[] SendData;
|
||||
|
||||
// Token: 0x04000109 RID: 265
|
||||
private byte[] RecvData;
|
||||
|
||||
// Token: 0x0400010A RID: 266
|
||||
private byte SendOrRecv;
|
||||
|
||||
// Token: 0x0400010B RID: 267
|
||||
private AutoResetEvent autoConnectEvent = new AutoResetEvent(false);
|
||||
|
||||
// Token: 0x0400010C RID: 268
|
||||
private SocketAsyncEventArgs lisnterSocketAsyncEventArgs;
|
||||
|
||||
// Token: 0x0400010F RID: 271
|
||||
private List<SocketAsyncEventArgs> s_lst = new List<SocketAsyncEventArgs>();
|
||||
|
||||
// Token: 0x0200003B RID: 59
|
||||
// (Invoke) Token: 0x060002D9 RID: 729
|
||||
public delegate void StartListeHandler();
|
||||
|
||||
// Token: 0x0200003C RID: 60
|
||||
// (Invoke) Token: 0x060002DD RID: 733
|
||||
public delegate void ReceiveMsgHandler(byte[] info);
|
||||
}
|
||||
}
|
||||
Generated
+606
@@ -0,0 +1,606 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000005 RID: 5
|
||||
public partial class AGVManage : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x06000062 RID: 98 RVA: 0x0000A7D0 File Offset: 0x000089D0
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x06000063 RID: 99 RVA: 0x0000A808 File Offset: 0x00008A08
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::AGVSystem.AGVManage));
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.num_id = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.num_seq = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_linelist = new global::System.Windows.Forms.ComboBox();
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
this.cmb_iplist = new global::System.Windows.Forms.ComboBox();
|
||||
this.splitContainer1 = new global::System.Windows.Forms.SplitContainer();
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.groupBox2 = new global::System.Windows.Forms.GroupBox();
|
||||
this.cmb_switchip = new global::System.Windows.Forms.ComboBox();
|
||||
this.label11 = new global::System.Windows.Forms.Label();
|
||||
this.label10 = new global::System.Windows.Forms.Label();
|
||||
this.numPort = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label9 = new global::System.Windows.Forms.Label();
|
||||
this.button5 = new global::System.Windows.Forms.Button();
|
||||
this.label7 = new global::System.Windows.Forms.Label();
|
||||
this.label8 = new global::System.Windows.Forms.Label();
|
||||
this.lab_km = new global::System.Windows.Forms.Label();
|
||||
this.label5 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_type = new global::System.Windows.Forms.ComboBox();
|
||||
this.label6 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_status = new global::System.Windows.Forms.ComboBox();
|
||||
this.groupBox1 = new global::System.Windows.Forms.GroupBox();
|
||||
this.toolStrip1 = new global::System.Windows.Forms.ToolStrip();
|
||||
this.cmb_worktype = new global::System.Windows.Forms.ComboBox();
|
||||
this.label12 = new global::System.Windows.Forms.Label();
|
||||
this.编号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.序号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.IP地址 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.通讯端口 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.交换机IP = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.设备状态 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.物料名称 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.设备型号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.线体编号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.线体名称 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.lab_id = new global::System.Windows.Forms.Label();
|
||||
this.pictureBox1 = new global::System.Windows.Forms.PictureBox();
|
||||
this.toolStripButton1 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton4 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton5 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton6 = new global::System.Windows.Forms.ToolStripButton();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_id).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_seq).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numPort).BeginInit();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.pictureBox1).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(54, 43);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label1.TabIndex = 6;
|
||||
this.label1.Text = "编号:";
|
||||
this.num_id.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.num_id.Location = new global::System.Drawing.Point(102, 37);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown = this.num_id;
|
||||
int[] array = new int[4];
|
||||
array[0] = 255;
|
||||
numericUpDown.Maximum = new decimal(array);
|
||||
this.num_id.Name = "num_id";
|
||||
this.num_id.Size = new global::System.Drawing.Size(120, 21);
|
||||
this.num_id.TabIndex = 7;
|
||||
this.num_seq.Location = new global::System.Drawing.Point(105, 33);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown2 = this.num_seq;
|
||||
int[] array2 = new int[4];
|
||||
array2[0] = 255;
|
||||
numericUpDown2.Maximum = new decimal(array2);
|
||||
this.num_seq.Name = "num_seq";
|
||||
this.num_seq.Size = new global::System.Drawing.Size(120, 21);
|
||||
this.num_seq.TabIndex = 9;
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(58, 35);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label2.TabIndex = 8;
|
||||
this.label2.Text = "序号:";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(46, 89);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(53, 12);
|
||||
this.label3.TabIndex = 10;
|
||||
this.label3.Text = "IP地址:";
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(52, 84);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label4.TabIndex = 12;
|
||||
this.label4.Text = "线体:";
|
||||
this.cmb_linelist.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_linelist.FormattingEnabled = true;
|
||||
this.cmb_linelist.Items.AddRange(new object[]
|
||||
{
|
||||
" "
|
||||
});
|
||||
this.cmb_linelist.Location = new global::System.Drawing.Point(100, 80);
|
||||
this.cmb_linelist.Name = "cmb_linelist";
|
||||
this.cmb_linelist.Size = new global::System.Drawing.Size(205, 20);
|
||||
this.cmb_linelist.TabIndex = 13;
|
||||
this.cmb_linelist.TextChanged += new global::System.EventHandler(this.cmb_linelist_TextChanged);
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeight = 30;
|
||||
this.dataGridView1.Columns.AddRange(new global::System.Windows.Forms.DataGridViewColumn[]
|
||||
{
|
||||
this.编号,
|
||||
this.序号,
|
||||
this.IP地址,
|
||||
this.通讯端口,
|
||||
this.交换机IP,
|
||||
this.设备状态,
|
||||
this.物料名称,
|
||||
this.设备型号,
|
||||
this.线体编号,
|
||||
this.线体名称
|
||||
});
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowTemplate.Height = 30;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(655, 542);
|
||||
this.dataGridView1.TabIndex = 14;
|
||||
this.dataGridView1.RowStateChanged += new global::System.Windows.Forms.DataGridViewRowStateChangedEventHandler(this.dataGridView1_RowStateChanged);
|
||||
this.dataGridView1.DoubleClick += new global::System.EventHandler(this.dataGridView1_DoubleClick);
|
||||
this.cmb_iplist.FormattingEnabled = true;
|
||||
this.cmb_iplist.Location = new global::System.Drawing.Point(104, 86);
|
||||
this.cmb_iplist.Name = "cmb_iplist";
|
||||
this.cmb_iplist.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.cmb_iplist.TabIndex = 15;
|
||||
this.splitContainer1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = global::System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.splitContainer1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dataGridView1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.panel1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.toolStrip1);
|
||||
this.splitContainer1.Size = new global::System.Drawing.Size(1130, 542);
|
||||
this.splitContainer1.SplitterDistance = 655;
|
||||
this.splitContainer1.TabIndex = 16;
|
||||
this.panel1.Controls.Add(this.groupBox2);
|
||||
this.panel1.Controls.Add(this.groupBox1);
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel1.Location = new global::System.Drawing.Point(0, 71);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(471, 471);
|
||||
this.panel1.TabIndex = 15;
|
||||
this.groupBox2.Controls.Add(this.cmb_worktype);
|
||||
this.groupBox2.Controls.Add(this.label12);
|
||||
this.groupBox2.Controls.Add(this.cmb_switchip);
|
||||
this.groupBox2.Controls.Add(this.label11);
|
||||
this.groupBox2.Controls.Add(this.label10);
|
||||
this.groupBox2.Controls.Add(this.numPort);
|
||||
this.groupBox2.Controls.Add(this.label9);
|
||||
this.groupBox2.Controls.Add(this.cmb_iplist);
|
||||
this.groupBox2.Controls.Add(this.button5);
|
||||
this.groupBox2.Controls.Add(this.pictureBox1);
|
||||
this.groupBox2.Controls.Add(this.label7);
|
||||
this.groupBox2.Controls.Add(this.label8);
|
||||
this.groupBox2.Controls.Add(this.lab_km);
|
||||
this.groupBox2.Controls.Add(this.label2);
|
||||
this.groupBox2.Controls.Add(this.label5);
|
||||
this.groupBox2.Controls.Add(this.cmb_type);
|
||||
this.groupBox2.Controls.Add(this.num_seq);
|
||||
this.groupBox2.Controls.Add(this.label6);
|
||||
this.groupBox2.Controls.Add(this.label3);
|
||||
this.groupBox2.Controls.Add(this.cmb_status);
|
||||
this.groupBox2.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox2.Enabled = false;
|
||||
this.groupBox2.Location = new global::System.Drawing.Point(0, 116);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new global::System.Drawing.Size(471, 355);
|
||||
this.groupBox2.TabIndex = 15;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "基本信息";
|
||||
this.cmb_switchip.FormattingEnabled = true;
|
||||
this.cmb_switchip.Location = new global::System.Drawing.Point(104, 139);
|
||||
this.cmb_switchip.Name = "cmb_switchip";
|
||||
this.cmb_switchip.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.cmb_switchip.TabIndex = 33;
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new global::System.Drawing.Point(27, 143);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new global::System.Drawing.Size(71, 12);
|
||||
this.label11.TabIndex = 32;
|
||||
this.label11.Text = "Switch IP:";
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new global::System.Drawing.Point(256, 89);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label10.TabIndex = 30;
|
||||
this.label10.Text = "通讯端口:";
|
||||
this.numPort.Location = new global::System.Drawing.Point(322, 85);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown3 = this.numPort;
|
||||
int[] array3 = new int[4];
|
||||
array3[0] = 65535;
|
||||
numericUpDown3.Maximum = new decimal(array3);
|
||||
this.numPort.Name = "numPort";
|
||||
this.numPort.Size = new global::System.Drawing.Size(86, 21);
|
||||
this.numPort.TabIndex = 31;
|
||||
this.label9.Location = new global::System.Drawing.Point(44, 232);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new global::System.Drawing.Size(199, 89);
|
||||
this.label9.TabIndex = 29;
|
||||
this.button5.Location = new global::System.Drawing.Point(189, 361);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new global::System.Drawing.Size(75, 23);
|
||||
this.button5.TabIndex = 23;
|
||||
this.button5.Text = "清零";
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
this.button5.Click += new global::System.EventHandler(this.button5_Click);
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new global::System.Drawing.Point(168, 372);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new global::System.Drawing.Size(17, 12);
|
||||
this.label7.TabIndex = 22;
|
||||
this.label7.Text = "km";
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new global::System.Drawing.Point(37, 196);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label8.TabIndex = 26;
|
||||
this.label8.Text = "设备型号:";
|
||||
this.lab_km.AutoSize = true;
|
||||
this.lab_km.Location = new global::System.Drawing.Point(118, 372);
|
||||
this.lab_km.Name = "lab_km";
|
||||
this.lab_km.Size = new global::System.Drawing.Size(11, 12);
|
||||
this.lab_km.TabIndex = 21;
|
||||
this.lab_km.Text = "0";
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new global::System.Drawing.Point(44, 372);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label5.TabIndex = 20;
|
||||
this.label5.Text = "行驶里程:";
|
||||
this.cmb_type.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_type.FormattingEnabled = true;
|
||||
this.cmb_type.Location = new global::System.Drawing.Point(104, 193);
|
||||
this.cmb_type.Name = "cmb_type";
|
||||
this.cmb_type.Size = new global::System.Drawing.Size(86, 20);
|
||||
this.cmb_type.TabIndex = 27;
|
||||
this.cmb_type.TextChanged += new global::System.EventHandler(this.cmb_type_TextChanged);
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new global::System.Drawing.Point(256, 35);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label6.TabIndex = 24;
|
||||
this.label6.Text = "设备状态:";
|
||||
this.cmb_status.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_status.FormattingEnabled = true;
|
||||
this.cmb_status.Items.AddRange(new object[]
|
||||
{
|
||||
"禁用",
|
||||
"启用"
|
||||
});
|
||||
this.cmb_status.Location = new global::System.Drawing.Point(322, 32);
|
||||
this.cmb_status.Name = "cmb_status";
|
||||
this.cmb_status.Size = new global::System.Drawing.Size(86, 20);
|
||||
this.cmb_status.TabIndex = 25;
|
||||
this.groupBox1.BackColor = global::System.Drawing.Color.FromArgb(192, 255, 192);
|
||||
this.groupBox1.Controls.Add(this.lab_id);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Controls.Add(this.label4);
|
||||
this.groupBox1.Controls.Add(this.cmb_linelist);
|
||||
this.groupBox1.Controls.Add(this.num_id);
|
||||
this.groupBox1.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new global::System.Drawing.Size(471, 116);
|
||||
this.groupBox1.TabIndex = 30;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "设备选择";
|
||||
this.toolStrip1.BackColor = global::System.Drawing.Color.White;
|
||||
this.toolStrip1.ImageScalingSize = new global::System.Drawing.Size(64, 64);
|
||||
this.toolStrip1.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.toolStripButton1,
|
||||
this.toolStripButton2,
|
||||
this.toolStripButton3,
|
||||
this.toolStripButton4,
|
||||
this.toolStripButton5,
|
||||
this.toolStripButton6
|
||||
});
|
||||
this.toolStrip1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new global::System.Drawing.Size(471, 71);
|
||||
this.toolStrip1.TabIndex = 27;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
this.cmb_worktype.FormattingEnabled = true;
|
||||
this.cmb_worktype.Location = new global::System.Drawing.Point(322, 139);
|
||||
this.cmb_worktype.Name = "cmb_worktype";
|
||||
this.cmb_worktype.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.cmb_worktype.TabIndex = 35;
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new global::System.Drawing.Point(256, 143);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label12.TabIndex = 34;
|
||||
this.label12.Text = "物料类型:";
|
||||
this.编号.DataPropertyName = "编号";
|
||||
this.编号.HeaderText = "编号";
|
||||
this.编号.Name = "编号";
|
||||
this.编号.ReadOnly = true;
|
||||
this.序号.DataPropertyName = "序号";
|
||||
this.序号.HeaderText = "序号";
|
||||
this.序号.Name = "序号";
|
||||
this.序号.ReadOnly = true;
|
||||
this.IP地址.DataPropertyName = "IP地址";
|
||||
this.IP地址.HeaderText = "IP地址";
|
||||
this.IP地址.Name = "IP地址";
|
||||
this.IP地址.ReadOnly = true;
|
||||
this.IP地址.Width = 140;
|
||||
this.通讯端口.DataPropertyName = "通讯端口";
|
||||
this.通讯端口.HeaderText = "通讯端口";
|
||||
this.通讯端口.Name = "通讯端口";
|
||||
this.通讯端口.ReadOnly = true;
|
||||
this.交换机IP.DataPropertyName = "交换机IP";
|
||||
this.交换机IP.HeaderText = "交换机IP";
|
||||
this.交换机IP.Name = "交换机IP";
|
||||
this.交换机IP.ReadOnly = true;
|
||||
this.设备状态.DataPropertyName = "设备状态";
|
||||
this.设备状态.HeaderText = "设备状态";
|
||||
this.设备状态.Name = "设备状态";
|
||||
this.设备状态.ReadOnly = true;
|
||||
this.物料名称.DataPropertyName = "物料名称";
|
||||
this.物料名称.HeaderText = "物料名称";
|
||||
this.物料名称.Name = "物料名称";
|
||||
this.物料名称.ReadOnly = true;
|
||||
this.设备型号.DataPropertyName = "设备型号";
|
||||
this.设备型号.HeaderText = "设备型号";
|
||||
this.设备型号.Name = "设备型号";
|
||||
this.设备型号.ReadOnly = true;
|
||||
this.线体编号.DataPropertyName = "线体编号";
|
||||
this.线体编号.HeaderText = "线体编号";
|
||||
this.线体编号.Name = "线体编号";
|
||||
this.线体编号.ReadOnly = true;
|
||||
this.线体编号.Visible = false;
|
||||
this.线体名称.DataPropertyName = "线体名称";
|
||||
this.线体名称.HeaderText = "线体名称";
|
||||
this.线体名称.Name = "线体名称";
|
||||
this.线体名称.ReadOnly = true;
|
||||
this.线体名称.Width = 180;
|
||||
this.lab_id.AutoSize = true;
|
||||
this.lab_id.Location = new global::System.Drawing.Point(234, 41);
|
||||
this.lab_id.Name = "lab_id";
|
||||
this.lab_id.Size = new global::System.Drawing.Size(47, 12);
|
||||
this.lab_id.TabIndex = 14;
|
||||
this.lab_id.Text = "label13";
|
||||
this.pictureBox1.BackgroundImageLayout = global::System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.pictureBox1.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pictureBox1.Location = new global::System.Drawing.Point(258, 196);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new global::System.Drawing.Size(128, 128);
|
||||
this.pictureBox1.TabIndex = 28;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.toolStripButton1.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton1.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton1.Image");
|
||||
this.toolStripButton1.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton1.Text = "新建";
|
||||
this.toolStripButton1.Click += new global::System.EventHandler(this.toolStripButton1_Click);
|
||||
this.toolStripButton2.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton2.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton2.Image");
|
||||
this.toolStripButton2.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton2.Text = "查询";
|
||||
this.toolStripButton2.Click += new global::System.EventHandler(this.toolStripButton2_Click);
|
||||
this.toolStripButton3.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton3.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton3.Image");
|
||||
this.toolStripButton3.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton3.Text = "添加";
|
||||
this.toolStripButton3.Click += new global::System.EventHandler(this.toolStripButton3_Click);
|
||||
this.toolStripButton4.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton4.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton4.Image");
|
||||
this.toolStripButton4.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton4.Name = "toolStripButton4";
|
||||
this.toolStripButton4.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton4.Text = "删除";
|
||||
this.toolStripButton4.Click += new global::System.EventHandler(this.toolStripButton4_Click);
|
||||
this.toolStripButton5.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton5.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton5.Image");
|
||||
this.toolStripButton5.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton5.Name = "toolStripButton5";
|
||||
this.toolStripButton5.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton5.Text = "更新";
|
||||
this.toolStripButton5.Click += new global::System.EventHandler(this.toolStripButton5_Click);
|
||||
this.toolStripButton6.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton6.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton6.Image");
|
||||
this.toolStripButton6.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton6.Name = "toolStripButton6";
|
||||
this.toolStripButton6.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton6.Text = "保存";
|
||||
this.toolStripButton6.Click += new global::System.EventHandler(this.toolStripButton6_Click);
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(1130, 542);
|
||||
base.Controls.Add(this.splitContainer1);
|
||||
base.Name = "AGVManage";
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "AGV设备管理";
|
||||
base.TopMost = true;
|
||||
base.WindowState = global::System.Windows.Forms.FormWindowState.Maximized;
|
||||
base.Load += new global::System.EventHandler(this.AGVManage_Load);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_id).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_seq).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numPort).EndInit();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.pictureBox1).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x04000081 RID: 129
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x04000082 RID: 130
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x04000083 RID: 131
|
||||
private global::System.Windows.Forms.NumericUpDown num_id;
|
||||
|
||||
// Token: 0x04000084 RID: 132
|
||||
private global::System.Windows.Forms.NumericUpDown num_seq;
|
||||
|
||||
// Token: 0x04000085 RID: 133
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x04000086 RID: 134
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x04000087 RID: 135
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x04000088 RID: 136
|
||||
private global::System.Windows.Forms.ComboBox cmb_linelist;
|
||||
|
||||
// Token: 0x04000089 RID: 137
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x0400008A RID: 138
|
||||
private global::System.Windows.Forms.ComboBox cmb_iplist;
|
||||
|
||||
// Token: 0x0400008B RID: 139
|
||||
private global::System.Windows.Forms.SplitContainer splitContainer1;
|
||||
|
||||
// Token: 0x0400008C RID: 140
|
||||
private global::System.Windows.Forms.Button button5;
|
||||
|
||||
// Token: 0x0400008D RID: 141
|
||||
private global::System.Windows.Forms.Label label7;
|
||||
|
||||
// Token: 0x0400008E RID: 142
|
||||
private global::System.Windows.Forms.Label lab_km;
|
||||
|
||||
// Token: 0x0400008F RID: 143
|
||||
private global::System.Windows.Forms.Label label5;
|
||||
|
||||
// Token: 0x04000090 RID: 144
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x04000091 RID: 145
|
||||
private global::System.Windows.Forms.ToolStrip toolStrip1;
|
||||
|
||||
// Token: 0x04000092 RID: 146
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
|
||||
// Token: 0x04000093 RID: 147
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton2;
|
||||
|
||||
// Token: 0x04000094 RID: 148
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
|
||||
// Token: 0x04000095 RID: 149
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton4;
|
||||
|
||||
// Token: 0x04000096 RID: 150
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton5;
|
||||
|
||||
// Token: 0x04000097 RID: 151
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton6;
|
||||
|
||||
// Token: 0x04000098 RID: 152
|
||||
private global::System.Windows.Forms.PictureBox pictureBox1;
|
||||
|
||||
// Token: 0x04000099 RID: 153
|
||||
private global::System.Windows.Forms.Label label8;
|
||||
|
||||
// Token: 0x0400009A RID: 154
|
||||
private global::System.Windows.Forms.ComboBox cmb_type;
|
||||
|
||||
// Token: 0x0400009B RID: 155
|
||||
private global::System.Windows.Forms.Label label6;
|
||||
|
||||
// Token: 0x0400009C RID: 156
|
||||
private global::System.Windows.Forms.ComboBox cmb_status;
|
||||
|
||||
// Token: 0x0400009D RID: 157
|
||||
private global::System.Windows.Forms.GroupBox groupBox2;
|
||||
|
||||
// Token: 0x0400009E RID: 158
|
||||
private global::System.Windows.Forms.Label label9;
|
||||
|
||||
// Token: 0x0400009F RID: 159
|
||||
private global::System.Windows.Forms.GroupBox groupBox1;
|
||||
|
||||
// Token: 0x040000A0 RID: 160
|
||||
private global::System.Windows.Forms.Label label10;
|
||||
|
||||
// Token: 0x040000A1 RID: 161
|
||||
private global::System.Windows.Forms.NumericUpDown numPort;
|
||||
|
||||
// Token: 0x040000A2 RID: 162
|
||||
private global::System.Windows.Forms.ComboBox cmb_switchip;
|
||||
|
||||
// Token: 0x040000A3 RID: 163
|
||||
private global::System.Windows.Forms.Label label11;
|
||||
|
||||
// Token: 0x040000A4 RID: 164
|
||||
private global::System.Windows.Forms.ComboBox cmb_worktype;
|
||||
|
||||
// Token: 0x040000A5 RID: 165
|
||||
private global::System.Windows.Forms.Label label12;
|
||||
|
||||
// Token: 0x040000A6 RID: 166
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 编号;
|
||||
|
||||
// Token: 0x040000A7 RID: 167
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 序号;
|
||||
|
||||
// Token: 0x040000A8 RID: 168
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn IP地址;
|
||||
|
||||
// Token: 0x040000A9 RID: 169
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 通讯端口;
|
||||
|
||||
// Token: 0x040000AA RID: 170
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 交换机IP;
|
||||
|
||||
// Token: 0x040000AB RID: 171
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 设备状态;
|
||||
|
||||
// Token: 0x040000AC RID: 172
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 物料名称;
|
||||
|
||||
// Token: 0x040000AD RID: 173
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 设备型号;
|
||||
|
||||
// Token: 0x040000AE RID: 174
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 线体编号;
|
||||
|
||||
// Token: 0x040000AF RID: 175
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 线体名称;
|
||||
|
||||
// Token: 0x040000B0 RID: 176
|
||||
private global::System.Windows.Forms.Label lab_id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,404 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000005 RID: 5
|
||||
public partial class AGVManage : Form
|
||||
{
|
||||
// Token: 0x06000050 RID: 80 RVA: 0x00009548 File Offset: 0x00007748
|
||||
public AGVManage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.ds = this.db.connDt("select CONVERT( VARCHAR(10),id) +' . '+ line_name as info from Assembly_Line order by id");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_linelist.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt("select id from ipaddress where id not in (select ipaddress from agvinfo) order by seq");
|
||||
bool flag3 = this.ds.Tables.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
bool flag4 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag4)
|
||||
{
|
||||
foreach (object obj2 in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow2 = (DataRow)obj2;
|
||||
this.cmb_iplist.Items.Add(dataRow2[0].ToString());
|
||||
this.cmb_switchip.Items.Add(dataRow2[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt("SELECT [ID] FROM [Agv_Type]");
|
||||
bool flag5 = this.ds.Tables.Count > 0;
|
||||
if (flag5)
|
||||
{
|
||||
bool flag6 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag6)
|
||||
{
|
||||
foreach (object obj3 in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow3 = (DataRow)obj3;
|
||||
this.cmb_type.Items.Add(dataRow3[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt("SELECT [Name] FROM [WorkLocationInfo]");
|
||||
bool flag7 = this.ds.Tables.Count > 0;
|
||||
if (flag7)
|
||||
{
|
||||
bool flag8 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag8)
|
||||
{
|
||||
this.cmb_worktype.Items.Add("");
|
||||
foreach (object obj4 in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow4 = (DataRow)obj4;
|
||||
this.cmb_worktype.Items.Add(dataRow4[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000051 RID: 81 RVA: 0x00009944 File Offset: 0x00007B44
|
||||
private void AGVManage_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt("SELECT AgvInfo.ID as 编号, AgvInfo.IPAddress as IP地址,SwitchIP as 交换机IP, port as 通讯端口, AgvInfo.WorkType as 物料名称 , AgvInfo.Internal_ID as 序号 ,[Status] as 设备状态,[Type] as 设备型号, AgvInfo.Assembly_Line as 线体编号 , assembly_line.line_name as 线体名称 ,agvinfo.Mileage as 行驶里程 FROM AgvInfo ,assembly_line where AgvInfo.Assembly_Line = assembly_line.id order by AgvInfo.ID");
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
this.groupBox2.Enabled = false;
|
||||
base.WindowState = FormWindowState.Maximized;
|
||||
}
|
||||
|
||||
// Token: 0x06000052 RID: 82 RVA: 0x000099AC File Offset: 0x00007BAC
|
||||
private void btn_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.num_id.Value = 0m;
|
||||
this.num_seq.Value = 0m;
|
||||
this.cmb_iplist.Text = "";
|
||||
this.cmb_linelist.Text = "";
|
||||
this.lab_km.Text = "0";
|
||||
}
|
||||
|
||||
// Token: 0x06000053 RID: 83 RVA: 0x00009A10 File Offset: 0x00007C10
|
||||
private int add_agv(string id, string seq, string ip, string line_id, int port, int type, string switchip, int WorkType)
|
||||
{
|
||||
return (int)Convert.ToInt16(this.db.Command(string.Concat(new string[]
|
||||
{
|
||||
"insert into agvinfo (id , ipaddress , internal_id , assembly_line, port,type,switchip,WorkType) values (",
|
||||
id,
|
||||
",'",
|
||||
ip,
|
||||
"',",
|
||||
seq,
|
||||
",",
|
||||
line_id,
|
||||
",",
|
||||
port.ToString(),
|
||||
",",
|
||||
type.ToString(),
|
||||
",'",
|
||||
switchip,
|
||||
"',",
|
||||
WorkType.ToString(),
|
||||
")"
|
||||
})));
|
||||
}
|
||||
|
||||
// Token: 0x06000054 RID: 84 RVA: 0x00009AC8 File Offset: 0x00007CC8
|
||||
private int delete_agv(string id)
|
||||
{
|
||||
return (int)Convert.ToInt16(this.db.Command("delete from agvinfo where id =" + id));
|
||||
}
|
||||
|
||||
// Token: 0x06000055 RID: 85 RVA: 0x00009AFC File Offset: 0x00007CFC
|
||||
private int update_agv()
|
||||
{
|
||||
string sqlstr = string.Concat(new string[]
|
||||
{
|
||||
"UPDATE [AgvInfo] SET [IPAddress] = '",
|
||||
this.cmb_iplist.Text,
|
||||
"' ,[Status] = ",
|
||||
this.cmb_status.SelectedIndex.ToString(),
|
||||
" ,[Internal_ID] = ",
|
||||
this.num_seq.Value.ToString(),
|
||||
" ,[Assembly_Line] = ",
|
||||
this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0],
|
||||
" ,[Type] = ",
|
||||
this.cmb_type.Text,
|
||||
" ,[Mileage] = ",
|
||||
this.lab_km.Text,
|
||||
" ,port = ",
|
||||
this.numPort.Value.ToString(),
|
||||
" ,switchip = '",
|
||||
this.cmb_switchip.Text,
|
||||
"' ,[WorkType] = ",
|
||||
this.cmb_worktype.SelectedIndex.ToString(),
|
||||
" WHERE [ID] = ",
|
||||
this.lab_id.Text
|
||||
});
|
||||
return (int)Convert.ToInt16(this.db.Command(sqlstr));
|
||||
}
|
||||
|
||||
// Token: 0x06000056 RID: 86 RVA: 0x00009C4C File Offset: 0x00007E4C
|
||||
private void select_agv(string id, string line_id)
|
||||
{
|
||||
this.ds.Tables.Clear();
|
||||
bool flag = id != "0";
|
||||
if (flag)
|
||||
{
|
||||
this.ds = this.db.connDt("SELECT AgvInfo.ID as 编号, AgvInfo.IPAddress as IP地址, port as 通讯端口, AgvInfo.WorkType as 物料名称, AgvInfo.Internal_ID as 序号 ,[Status] as 设备状态,[Type] as 设备型号, AgvInfo.Assembly_Line as 线体编号 , assembly_line.line_name as 线体名称 ,agvinfo.Mileage as 行驶里程 FROM AgvInfo ,assembly_line where AgvInfo.Assembly_Line = assembly_line.id and AgvInfo.ID= " + id + " order by AgvInfo.ID");
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = line_id.Trim() != "";
|
||||
if (flag2)
|
||||
{
|
||||
this.ds = this.db.connDt("SELECT AgvInfo.ID as 编号, AgvInfo.IPAddress as IP地址, port as 通讯端口, AgvInfo.WorkType as 物料名称, AgvInfo.Internal_ID as 序号 ,[Status] as 设备状态,[Type] as 设备型号, AgvInfo.Assembly_Line as 线体编号 , assembly_line.line_name as 线体名称 ,agvinfo.Mileage as 行驶里程 FROM AgvInfo ,assembly_line where AgvInfo.Assembly_Line = assembly_line.id and AgvInfo.Assembly_Line= " + line_id + " order by AgvInfo.ID");
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ds = this.db.connDt("SELECT AgvInfo.ID as 编号, AgvInfo.IPAddress as IP地址, port as 通讯端口, AgvInfo.WorkType as 物料名称, AgvInfo.Internal_ID as 序号 ,[Status] as 设备状态,[Type] as 设备型号, AgvInfo.Assembly_Line as 线体编号 , assembly_line.line_name as 线体名称 ,agvinfo.Mileage as 行驶里程 FROM AgvInfo ,assembly_line where AgvInfo.Assembly_Line = assembly_line.id order by AgvInfo.ID");
|
||||
}
|
||||
}
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
}
|
||||
|
||||
// Token: 0x06000057 RID: 87 RVA: 0x00009D10 File Offset: 0x00007F10
|
||||
private void dataGridView1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.dataGridView1.RowCount > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.flag = 0;
|
||||
this.num_id.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["编号"].Value);
|
||||
this.lab_id.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["编号"].Value.ToString();
|
||||
this.num_seq.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["序号"].Value);
|
||||
this.cmb_iplist.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["IP地址"].Value.ToString();
|
||||
this.cmb_switchip.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["交换机IP"].Value.ToString();
|
||||
this.cmb_linelist.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["线体编号"].Value.ToString() + " . " + this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["线体名称"].Value.ToString();
|
||||
this.lab_km.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["行驶里程"].Value.ToString();
|
||||
this.cmb_status.Text = ((this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["设备状态"].Value.ToString() == "True") ? "启用" : "禁用");
|
||||
this.cmb_type.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["设备型号"].Value.ToString();
|
||||
this.numPort.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["通讯端口"].Value.ToString());
|
||||
this.cmb_worktype.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["物料名称"].Value);
|
||||
this.groupBox2.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000058 RID: 88 RVA: 0x0000A0A0 File Offset: 0x000082A0
|
||||
private void button5_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.lab_km.Text = "0";
|
||||
}
|
||||
|
||||
// Token: 0x06000059 RID: 89 RVA: 0x0000A0B4 File Offset: 0x000082B4
|
||||
private void dataGridView1_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e)
|
||||
{
|
||||
e.Row.HeaderCell.Value = string.Format("{0}", e.Row.Index + 1);
|
||||
}
|
||||
|
||||
// Token: 0x0600005A RID: 90 RVA: 0x0000A0E4 File Offset: 0x000082E4
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.flag = 1;
|
||||
this.num_seq.Value = 0m;
|
||||
this.cmb_iplist.Text = "";
|
||||
this.cmb_switchip.Text = "";
|
||||
this.cmb_linelist.SelectedIndex = 0;
|
||||
this.lab_km.Text = "0";
|
||||
this.lab_id.Text = "";
|
||||
this.groupBox2.Enabled = true;
|
||||
DataSet dataSet = this.db.connDt("SELECT max([ID])+1 FROM [AgvInfo]");
|
||||
bool flag = dataSet.Tables[0].Rows[0][0].ToString() != "";
|
||||
if (flag)
|
||||
{
|
||||
this.num_id.Value = Convert.ToDecimal(dataSet.Tables[0].Rows[0][0].ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
this.num_id.Value = 1m;
|
||||
}
|
||||
this.cmb_type.SelectedIndex = 0;
|
||||
this.numPort.Value = 0m;
|
||||
}
|
||||
|
||||
// Token: 0x0600005B RID: 91 RVA: 0x0000A214 File Offset: 0x00008414
|
||||
private void toolStripButton3_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.flag = 0;
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.num_id.Value == 0m || this.num_seq.Value == 0m || this.cmb_iplist.Text == "" || this.cmb_linelist.Text.Trim() == "";
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = this.add_agv(this.num_id.Value.ToString(), this.num_seq.Value.ToString(), this.cmb_iplist.Text, this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0], (int)Convert.ToInt16(this.numPort.Value), (int)Convert.ToInt16(this.cmb_type.Text), this.cmb_switchip.Text, this.cmb_worktype.SelectedIndex) > 0;
|
||||
if (flag3)
|
||||
{
|
||||
this.cmb_iplist.Items.Remove(this.cmb_iplist.Text);
|
||||
MessageBox.Show("添加成功!");
|
||||
this.AGVManage_Load(null, null);
|
||||
this.toolStripButton1_Click(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600005C RID: 92 RVA: 0x0000A394 File Offset: 0x00008594
|
||||
private void toolStripButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.flag = 0;
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.num_id.Value == 0m || this.num_seq.Value == 0m || this.cmb_iplist.Text == "" || this.cmb_linelist.Text == "";
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = this.delete_agv(this.num_id.Value.ToString()) > 0;
|
||||
if (flag3)
|
||||
{
|
||||
this.cmb_iplist.Items.Add(this.cmb_iplist.Text);
|
||||
MessageBox.Show("删除成功!");
|
||||
this.AGVManage_Load(null, null);
|
||||
this.toolStripButton1_Click(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600005D RID: 93 RVA: 0x0000A49C File Offset: 0x0000869C
|
||||
private void toolStripButton6_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.flag = 0;
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.num_id.Value == 0m || this.num_seq.Value == 0m || this.cmb_iplist.Text == "" || this.cmb_linelist.Text == "";
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = this.update_agv() > 0;
|
||||
if (flag3)
|
||||
{
|
||||
this.AGVManage_Load(null, null);
|
||||
MessageBox.Show("修改成功!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600005E RID: 94 RVA: 0x0000A56C File Offset: 0x0000876C
|
||||
private void toolStripButton2_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.flag = 0;
|
||||
this.select_agv(this.num_id.Value.ToString(), this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0]);
|
||||
}
|
||||
|
||||
// Token: 0x0600005F RID: 95 RVA: 0x0000A5BA File Offset: 0x000087BA
|
||||
private void toolStripButton5_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.flag = 0;
|
||||
this.groupBox2.Enabled = true;
|
||||
}
|
||||
|
||||
// Token: 0x06000060 RID: 96 RVA: 0x0000A5D4 File Offset: 0x000087D4
|
||||
private void cmb_type_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.cmb_type.SelectedIndex == 0;
|
||||
if (flag)
|
||||
{
|
||||
this.pictureBox1.BackgroundImage = null;
|
||||
this.label9.Text = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.cmb_type.SelectedIndex > 0;
|
||||
if (flag2)
|
||||
{
|
||||
try
|
||||
{
|
||||
DataSet dataSet = this.db.connDt("SELECT [Remark] FROM [Agv_Type] where id =" + this.cmb_type.Text);
|
||||
bool flag3 = dataSet.Tables[0].Rows.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
this.label9.Text = dataSet.Tables[0].Rows[0][0].ToString();
|
||||
}
|
||||
this.pictureBox1.BackgroundImage = Image.FromFile(Application.StartupPath + "\\picture\\" + this.cmb_type.Text + ".JPG");
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000061 RID: 97 RVA: 0x0000A6E8 File Offset: 0x000088E8
|
||||
private void cmb_linelist_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.flag == 1 && this.cmb_linelist.Text.Trim() != "";
|
||||
if (flag)
|
||||
{
|
||||
DataSet dataSet = this.db.connDt("SELECT max([Internal_ID])+1 FROM [AgvInfo] where Assembly_Line=" + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0]);
|
||||
bool flag2 = dataSet.Tables[0].Rows[0][0].ToString() != "";
|
||||
if (flag2)
|
||||
{
|
||||
this.num_seq.Value = Convert.ToDecimal(dataSet.Tables[0].Rows[0][0].ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
this.num_seq.Value = 1m;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400007E RID: 126
|
||||
private int flag = 0;
|
||||
|
||||
// Token: 0x0400007F RID: 127
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x04000080 RID: 128
|
||||
private DataSet ds = new DataSet();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Generated
+469
@@ -0,0 +1,469 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000007 RID: 7
|
||||
public partial class APInfo : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x0600007A RID: 122 RVA: 0x0000EA20 File Offset: 0x0000CC20
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x0600007B RID: 123 RVA: 0x0000EA58 File Offset: 0x0000CC58
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::AGVSystem.APInfo));
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
this.编号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.型号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.IP地址 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.设备状态 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.xd = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.SSID = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.location = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Remark = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.num_id = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.cmb_ip = new global::System.Windows.Forms.ComboBox();
|
||||
this.txt_ssid = new global::System.Windows.Forms.TextBox();
|
||||
this.splitContainer1 = new global::System.Windows.Forms.SplitContainer();
|
||||
this.groupBox2 = new global::System.Windows.Forms.GroupBox();
|
||||
this.label8 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_status = new global::System.Windows.Forms.ComboBox();
|
||||
this.txt_remark = new global::System.Windows.Forms.TextBox();
|
||||
this.label6 = new global::System.Windows.Forms.Label();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.txt_location = new global::System.Windows.Forms.TextBox();
|
||||
this.num_xd = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label5 = new global::System.Windows.Forms.Label();
|
||||
this.groupBox1 = new global::System.Windows.Forms.GroupBox();
|
||||
this.textBox1 = new global::System.Windows.Forms.TextBox();
|
||||
this.label7 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_type = new global::System.Windows.Forms.ComboBox();
|
||||
this.toolStrip1 = new global::System.Windows.Forms.ToolStrip();
|
||||
this.toolStripButton1 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton4 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton5 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton6 = new global::System.Windows.Forms.ToolStripButton();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_id).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_xd).BeginInit();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
base.SuspendLayout();
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeight = 30;
|
||||
this.dataGridView1.Columns.AddRange(new global::System.Windows.Forms.DataGridViewColumn[]
|
||||
{
|
||||
this.编号,
|
||||
this.型号,
|
||||
this.IP地址,
|
||||
this.设备状态,
|
||||
this.xd,
|
||||
this.SSID,
|
||||
this.location,
|
||||
this.Remark
|
||||
});
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowTemplate.Height = 30;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(556, 542);
|
||||
this.dataGridView1.TabIndex = 16;
|
||||
this.dataGridView1.DoubleClick += new global::System.EventHandler(this.dataGridView1_DoubleClick);
|
||||
this.编号.DataPropertyName = "编号";
|
||||
this.编号.HeaderText = "编号";
|
||||
this.编号.Name = "编号";
|
||||
this.编号.ReadOnly = true;
|
||||
this.编号.Width = 60;
|
||||
this.型号.DataPropertyName = "型号";
|
||||
this.型号.HeaderText = "型号";
|
||||
this.型号.Name = "型号";
|
||||
this.型号.ReadOnly = true;
|
||||
this.IP地址.DataPropertyName = "IP地址";
|
||||
this.IP地址.HeaderText = "IP地址";
|
||||
this.IP地址.Name = "IP地址";
|
||||
this.IP地址.ReadOnly = true;
|
||||
this.设备状态.DataPropertyName = "Status";
|
||||
this.设备状态.HeaderText = "设备状态";
|
||||
this.设备状态.Name = "设备状态";
|
||||
this.设备状态.ReadOnly = true;
|
||||
this.xd.DataPropertyName = "信道";
|
||||
this.xd.HeaderText = "信道";
|
||||
this.xd.Name = "xd";
|
||||
this.xd.ReadOnly = true;
|
||||
this.xd.Width = 60;
|
||||
this.SSID.DataPropertyName = "SSID";
|
||||
this.SSID.HeaderText = "SSID";
|
||||
this.SSID.Name = "SSID";
|
||||
this.SSID.ReadOnly = true;
|
||||
this.SSID.Width = 200;
|
||||
this.location.DataPropertyName = "位置";
|
||||
this.location.HeaderText = "安装位置";
|
||||
this.location.Name = "location";
|
||||
this.location.ReadOnly = true;
|
||||
this.Remark.DataPropertyName = "Remark";
|
||||
this.Remark.HeaderText = "备注";
|
||||
this.Remark.Name = "Remark";
|
||||
this.Remark.ReadOnly = true;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(21, 46);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 18;
|
||||
this.label1.Text = "AP编号:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(56, 34);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(53, 12);
|
||||
this.label2.TabIndex = 19;
|
||||
this.label2.Text = "IP地址:";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(68, 141);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label3.TabIndex = 20;
|
||||
this.label3.Text = "SSID:";
|
||||
this.num_id.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.num_id.Location = new global::System.Drawing.Point(80, 44);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown = this.num_id;
|
||||
int[] array = new int[4];
|
||||
array[0] = 30;
|
||||
numericUpDown.Maximum = new decimal(array);
|
||||
this.num_id.Name = "num_id";
|
||||
this.num_id.Size = new global::System.Drawing.Size(120, 21);
|
||||
this.num_id.TabIndex = 21;
|
||||
this.cmb_ip.FormattingEnabled = true;
|
||||
this.cmb_ip.Location = new global::System.Drawing.Point(113, 30);
|
||||
this.cmb_ip.Name = "cmb_ip";
|
||||
this.cmb_ip.Size = new global::System.Drawing.Size(101, 20);
|
||||
this.cmb_ip.TabIndex = 22;
|
||||
this.txt_ssid.Location = new global::System.Drawing.Point(113, 136);
|
||||
this.txt_ssid.Name = "txt_ssid";
|
||||
this.txt_ssid.Size = new global::System.Drawing.Size(276, 21);
|
||||
this.txt_ssid.TabIndex = 23;
|
||||
this.splitContainer1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = global::System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.splitContainer1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dataGridView1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.groupBox2);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.groupBox1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.toolStrip1);
|
||||
this.splitContainer1.Size = new global::System.Drawing.Size(1004, 542);
|
||||
this.splitContainer1.SplitterDistance = 556;
|
||||
this.splitContainer1.TabIndex = 24;
|
||||
this.groupBox2.Controls.Add(this.label8);
|
||||
this.groupBox2.Controls.Add(this.cmb_status);
|
||||
this.groupBox2.Controls.Add(this.label2);
|
||||
this.groupBox2.Controls.Add(this.label3);
|
||||
this.groupBox2.Controls.Add(this.cmb_ip);
|
||||
this.groupBox2.Controls.Add(this.txt_remark);
|
||||
this.groupBox2.Controls.Add(this.txt_ssid);
|
||||
this.groupBox2.Controls.Add(this.label6);
|
||||
this.groupBox2.Controls.Add(this.label4);
|
||||
this.groupBox2.Controls.Add(this.txt_location);
|
||||
this.groupBox2.Controls.Add(this.num_xd);
|
||||
this.groupBox2.Controls.Add(this.label5);
|
||||
this.groupBox2.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox2.Location = new global::System.Drawing.Point(0, 228);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new global::System.Drawing.Size(444, 314);
|
||||
this.groupBox2.TabIndex = 32;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "配置信息";
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new global::System.Drawing.Point(237, 34);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label8.TabIndex = 30;
|
||||
this.label8.Text = "设备状态:";
|
||||
this.cmb_status.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_status.FormattingEnabled = true;
|
||||
this.cmb_status.Items.AddRange(new object[]
|
||||
{
|
||||
"禁用",
|
||||
"启用"
|
||||
});
|
||||
this.cmb_status.Location = new global::System.Drawing.Point(303, 31);
|
||||
this.cmb_status.Name = "cmb_status";
|
||||
this.cmb_status.Size = new global::System.Drawing.Size(86, 20);
|
||||
this.cmb_status.TabIndex = 31;
|
||||
this.txt_remark.Location = new global::System.Drawing.Point(113, 249);
|
||||
this.txt_remark.Multiline = true;
|
||||
this.txt_remark.Name = "txt_remark";
|
||||
this.txt_remark.Size = new global::System.Drawing.Size(276, 107);
|
||||
this.txt_remark.TabIndex = 29;
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new global::System.Drawing.Point(68, 254);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label6.TabIndex = 28;
|
||||
this.label6.Text = "备注:";
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(68, 85);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label4.TabIndex = 24;
|
||||
this.label4.Text = "信道:";
|
||||
this.txt_location.Location = new global::System.Drawing.Point(113, 190);
|
||||
this.txt_location.Name = "txt_location";
|
||||
this.txt_location.Size = new global::System.Drawing.Size(276, 21);
|
||||
this.txt_location.TabIndex = 27;
|
||||
this.num_xd.Location = new global::System.Drawing.Point(113, 80);
|
||||
this.num_xd.Name = "num_xd";
|
||||
this.num_xd.Size = new global::System.Drawing.Size(101, 21);
|
||||
this.num_xd.TabIndex = 25;
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new global::System.Drawing.Point(44, 195);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label5.TabIndex = 26;
|
||||
this.label5.Text = "安装位置:";
|
||||
this.groupBox1.Controls.Add(this.textBox1);
|
||||
this.groupBox1.Controls.Add(this.label7);
|
||||
this.groupBox1.Controls.Add(this.cmb_type);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Controls.Add(this.num_id);
|
||||
this.groupBox1.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox1.Location = new global::System.Drawing.Point(0, 71);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new global::System.Drawing.Size(444, 157);
|
||||
this.groupBox1.TabIndex = 31;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "设备信息";
|
||||
this.textBox1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.textBox1.Location = new global::System.Drawing.Point(220, 17);
|
||||
this.textBox1.Multiline = true;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.ReadOnly = true;
|
||||
this.textBox1.ScrollBars = global::System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.textBox1.Size = new global::System.Drawing.Size(221, 137);
|
||||
this.textBox1.TabIndex = 25;
|
||||
this.textBox1.WordWrap = false;
|
||||
this.textBox1.TextChanged += new global::System.EventHandler(this.textBox1_TextChanged);
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new global::System.Drawing.Point(33, 95);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label7.TabIndex = 23;
|
||||
this.label7.Text = "型号:";
|
||||
this.cmb_type.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_type.FormattingEnabled = true;
|
||||
this.cmb_type.Location = new global::System.Drawing.Point(78, 92);
|
||||
this.cmb_type.Name = "cmb_type";
|
||||
this.cmb_type.Size = new global::System.Drawing.Size(122, 20);
|
||||
this.cmb_type.TabIndex = 24;
|
||||
this.cmb_type.SelectedIndexChanged += new global::System.EventHandler(this.cmb_type_SelectedIndexChanged);
|
||||
this.toolStrip1.BackColor = global::System.Drawing.Color.White;
|
||||
this.toolStrip1.ImageScalingSize = new global::System.Drawing.Size(64, 64);
|
||||
this.toolStrip1.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.toolStripButton1,
|
||||
this.toolStripButton2,
|
||||
this.toolStripButton3,
|
||||
this.toolStripButton4,
|
||||
this.toolStripButton5,
|
||||
this.toolStripButton6
|
||||
});
|
||||
this.toolStrip1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new global::System.Drawing.Size(444, 71);
|
||||
this.toolStrip1.TabIndex = 30;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
this.toolStripButton1.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton1.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton1.Image");
|
||||
this.toolStripButton1.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton1.Text = "新建";
|
||||
this.toolStripButton1.Click += new global::System.EventHandler(this.toolStripButton1_Click);
|
||||
this.toolStripButton2.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton2.Enabled = false;
|
||||
this.toolStripButton2.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton2.Image");
|
||||
this.toolStripButton2.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton2.Text = "查询";
|
||||
this.toolStripButton3.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton3.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton3.Image");
|
||||
this.toolStripButton3.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton3.Text = "添加";
|
||||
this.toolStripButton3.Click += new global::System.EventHandler(this.toolStripButton3_Click);
|
||||
this.toolStripButton4.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton4.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton4.Image");
|
||||
this.toolStripButton4.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton4.Name = "toolStripButton4";
|
||||
this.toolStripButton4.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton4.Text = "删除";
|
||||
this.toolStripButton4.Click += new global::System.EventHandler(this.toolStripButton4_Click);
|
||||
this.toolStripButton5.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton5.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton5.Image");
|
||||
this.toolStripButton5.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton5.Name = "toolStripButton5";
|
||||
this.toolStripButton5.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton5.Text = "更新";
|
||||
this.toolStripButton5.Click += new global::System.EventHandler(this.toolStripButton5_Click);
|
||||
this.toolStripButton6.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton6.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton6.Image");
|
||||
this.toolStripButton6.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton6.Name = "toolStripButton6";
|
||||
this.toolStripButton6.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton6.Text = "保存";
|
||||
this.toolStripButton6.Click += new global::System.EventHandler(this.toolStripButton6_Click);
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(1004, 542);
|
||||
base.Controls.Add(this.splitContainer1);
|
||||
base.Name = "APInfo";
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "AP管理";
|
||||
base.Load += new global::System.EventHandler(this.APInfo_Load);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_id).EndInit();
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_xd).EndInit();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x040000D1 RID: 209
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x040000D2 RID: 210
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x040000D3 RID: 211
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x040000D4 RID: 212
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x040000D5 RID: 213
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x040000D6 RID: 214
|
||||
private global::System.Windows.Forms.NumericUpDown num_id;
|
||||
|
||||
// Token: 0x040000D7 RID: 215
|
||||
private global::System.Windows.Forms.ComboBox cmb_ip;
|
||||
|
||||
// Token: 0x040000D8 RID: 216
|
||||
private global::System.Windows.Forms.TextBox txt_ssid;
|
||||
|
||||
// Token: 0x040000D9 RID: 217
|
||||
private global::System.Windows.Forms.SplitContainer splitContainer1;
|
||||
|
||||
// Token: 0x040000DA RID: 218
|
||||
private global::System.Windows.Forms.NumericUpDown num_xd;
|
||||
|
||||
// Token: 0x040000DB RID: 219
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x040000DC RID: 220
|
||||
private global::System.Windows.Forms.TextBox txt_location;
|
||||
|
||||
// Token: 0x040000DD RID: 221
|
||||
private global::System.Windows.Forms.Label label5;
|
||||
|
||||
// Token: 0x040000DE RID: 222
|
||||
private global::System.Windows.Forms.TextBox txt_remark;
|
||||
|
||||
// Token: 0x040000DF RID: 223
|
||||
private global::System.Windows.Forms.Label label6;
|
||||
|
||||
// Token: 0x040000E0 RID: 224
|
||||
private global::System.Windows.Forms.ToolStrip toolStrip1;
|
||||
|
||||
// Token: 0x040000E1 RID: 225
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
|
||||
// Token: 0x040000E2 RID: 226
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton2;
|
||||
|
||||
// Token: 0x040000E3 RID: 227
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
|
||||
// Token: 0x040000E4 RID: 228
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton4;
|
||||
|
||||
// Token: 0x040000E5 RID: 229
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton5;
|
||||
|
||||
// Token: 0x040000E6 RID: 230
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton6;
|
||||
|
||||
// Token: 0x040000E7 RID: 231
|
||||
private global::System.Windows.Forms.GroupBox groupBox2;
|
||||
|
||||
// Token: 0x040000E8 RID: 232
|
||||
private global::System.Windows.Forms.GroupBox groupBox1;
|
||||
|
||||
// Token: 0x040000E9 RID: 233
|
||||
private global::System.Windows.Forms.Label label7;
|
||||
|
||||
// Token: 0x040000EA RID: 234
|
||||
private global::System.Windows.Forms.ComboBox cmb_type;
|
||||
|
||||
// Token: 0x040000EB RID: 235
|
||||
private global::System.Windows.Forms.TextBox textBox1;
|
||||
|
||||
// Token: 0x040000EC RID: 236
|
||||
private global::System.Windows.Forms.Label label8;
|
||||
|
||||
// Token: 0x040000ED RID: 237
|
||||
private global::System.Windows.Forms.ComboBox cmb_status;
|
||||
|
||||
// Token: 0x040000EE RID: 238
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 编号;
|
||||
|
||||
// Token: 0x040000EF RID: 239
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 型号;
|
||||
|
||||
// Token: 0x040000F0 RID: 240
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn IP地址;
|
||||
|
||||
// Token: 0x040000F1 RID: 241
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 设备状态;
|
||||
|
||||
// Token: 0x040000F2 RID: 242
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn xd;
|
||||
|
||||
// Token: 0x040000F3 RID: 243
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn SSID;
|
||||
|
||||
// Token: 0x040000F4 RID: 244
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn location;
|
||||
|
||||
// Token: 0x040000F5 RID: 245
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn Remark;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,305 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000007 RID: 7
|
||||
public partial class APInfo : Form
|
||||
{
|
||||
// Token: 0x0600006C RID: 108 RVA: 0x0000DE48 File Offset: 0x0000C048
|
||||
public APInfo()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt("SELECT [Name] FROM [AP_Type]");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_type.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
this.ds = this.db.connDt("select id from ipaddress where id not in (select ipaddress from agvinfo) and id not in (select ipaddress from ap_site) order by seq");
|
||||
bool flag3 = this.ds.Tables.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
bool flag4 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag4)
|
||||
{
|
||||
foreach (object obj2 in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow2 = (DataRow)obj2;
|
||||
this.cmb_ip.Items.Add(dataRow2[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600006D RID: 109 RVA: 0x0000E038 File Offset: 0x0000C238
|
||||
private void APInfo_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt("select id as 编号, type as 型号,ipaddress as ip地址,[信道] , ssid ,[位置] ,[Status] ,[Remark] from AP_Site");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
}
|
||||
this.groupBox2.Enabled = false;
|
||||
base.WindowState = FormWindowState.Maximized;
|
||||
}
|
||||
|
||||
// Token: 0x0600006E RID: 110 RVA: 0x0000E0B8 File Offset: 0x0000C2B8
|
||||
private void dataGridView1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.dataGridView1.RowCount > 0;
|
||||
if (flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.groupBox2.Enabled = false;
|
||||
this.num_id.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["编号"].Value);
|
||||
this.cmb_ip.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["IP地址"].Value.ToString();
|
||||
this.txt_ssid.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["SSID"].Value.ToString();
|
||||
this.num_xd.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["xd"].Value);
|
||||
this.txt_location.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["location"].Value.ToString();
|
||||
this.txt_remark.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["remark"].Value.ToString();
|
||||
this.cmb_type.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["型号"].Value.ToString();
|
||||
this.cmb_status.Text = ((this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["设备状态"].Value.ToString() == "True") ? "启用" : "禁用");
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600006F RID: 111 RVA: 0x00002460 File Offset: 0x00000660
|
||||
private void btn_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000070 RID: 112 RVA: 0x0000E354 File Offset: 0x0000C554
|
||||
private int add_ap(string id, string ip, string ssid, string xd, string location, string remark, string type)
|
||||
{
|
||||
int result = 0;
|
||||
try
|
||||
{
|
||||
result = (int)Convert.ToInt16(this.db.Command(string.Concat(new string[]
|
||||
{
|
||||
"insert into ap_site (id , ipaddress , ssid,[信道] ,[位置] ,[Remark],type) values (",
|
||||
id,
|
||||
",'",
|
||||
ip,
|
||||
"','",
|
||||
ssid,
|
||||
"','",
|
||||
xd,
|
||||
"','",
|
||||
location,
|
||||
"','",
|
||||
remark,
|
||||
"','",
|
||||
type,
|
||||
"')"
|
||||
})));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000071 RID: 113 RVA: 0x0000E408 File Offset: 0x0000C608
|
||||
private int update_ap(string id, string ip, string ssid, string xd, string location, string remark, string type)
|
||||
{
|
||||
int result = 0;
|
||||
try
|
||||
{
|
||||
result = (int)Convert.ToInt16(this.db.Command(string.Concat(new string[]
|
||||
{
|
||||
"update ap_site set ipaddress='",
|
||||
ip,
|
||||
"',ssid='",
|
||||
ssid,
|
||||
"',信道='",
|
||||
xd,
|
||||
"',位置='",
|
||||
location,
|
||||
"',remark='",
|
||||
remark,
|
||||
"',type='",
|
||||
type,
|
||||
"' where id=",
|
||||
id
|
||||
})));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000072 RID: 114 RVA: 0x0000E4B0 File Offset: 0x0000C6B0
|
||||
private int delete_ap(string id, string ip, string ssid)
|
||||
{
|
||||
int result = 0;
|
||||
try
|
||||
{
|
||||
result = (int)Convert.ToInt16(this.db.Command("delete from ap_site where id=" + id));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000073 RID: 115 RVA: 0x0000E4FC File Offset: 0x0000C6FC
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.num_id.Value = 0m;
|
||||
this.num_xd.Value = 0m;
|
||||
this.txt_location.Text = "";
|
||||
this.txt_remark.Text = "";
|
||||
this.txt_ssid.Text = "";
|
||||
this.cmb_ip.Text = "";
|
||||
this.groupBox2.Enabled = true;
|
||||
}
|
||||
|
||||
// Token: 0x06000074 RID: 116 RVA: 0x0000E580 File Offset: 0x0000C780
|
||||
private void toolStripButton3_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.num_id.Value == 0m || this.cmb_ip.Text == "";
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = this.add_ap(this.num_id.Value.ToString(), this.cmb_ip.Text, this.txt_ssid.Text, this.num_xd.Value.ToString(), this.txt_location.Text.Trim(), this.txt_remark.Text.Trim(), this.cmb_type.Text) > 0;
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("添加成功!");
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt("select id as 编号, ipaddress as ip地址,[信道] , ssid ,[位置] ,[Status] ,[Remark] from AP_Site");
|
||||
bool flag4 = this.ds.Tables.Count > 0;
|
||||
if (flag4)
|
||||
{
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000075 RID: 117 RVA: 0x0000E6D8 File Offset: 0x0000C8D8
|
||||
private void toolStripButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.num_id.Value == 0m || this.cmb_ip.Text == "";
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = this.delete_ap(this.num_id.Value.ToString(), this.cmb_ip.Text, this.txt_ssid.Text) > 0;
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("删除成功!");
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt("select id as 编号, ipaddress as ip地址,[信道] , ssid ,[位置] ,[Status] ,[Remark] from AP_Site");
|
||||
bool flag4 = this.ds.Tables.Count > 0;
|
||||
if (flag4)
|
||||
{
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000076 RID: 118 RVA: 0x0000E7F4 File Offset: 0x0000C9F4
|
||||
private void toolStripButton6_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool enabled = this.groupBox2.Enabled;
|
||||
if (enabled)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.num_id.Value == 0m || this.cmb_ip.Text == "";
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = this.update_ap(this.num_id.Value.ToString(), this.cmb_ip.Text, this.txt_ssid.Text.Trim(), this.num_xd.Value.ToString(), this.txt_location.Text.Trim(), this.txt_remark.Text.Trim(), this.cmb_type.Text) > 0;
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("修改成功!");
|
||||
this.APInfo_Load(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000077 RID: 119 RVA: 0x0000E910 File Offset: 0x0000CB10
|
||||
private void textBox1_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.textBox1.Text == "";
|
||||
if (flag)
|
||||
{
|
||||
this.textBox1.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.textBox1.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000078 RID: 120 RVA: 0x0000E954 File Offset: 0x0000CB54
|
||||
private void cmb_type_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt("SELECT description FROM [AP_Type] where name ='" + this.cmb_type.Text + "'");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
this.textBox1.Text = this.ds.Tables[0].Rows[0][0].ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000079 RID: 121 RVA: 0x0000EA0E File Offset: 0x0000CC0E
|
||||
private void toolStripButton5_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.groupBox2.Enabled = true;
|
||||
}
|
||||
|
||||
// Token: 0x040000CF RID: 207
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x040000D0 RID: 208
|
||||
private DataSet ds = new DataSet();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Generated
+134
@@ -0,0 +1,134 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000008 RID: 8
|
||||
public partial class APTest : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x0600007F RID: 127 RVA: 0x000101F4 File Offset: 0x0000E3F4
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x06000080 RID: 128 RVA: 0x0001022C File Offset: 0x0000E42C
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle = new global::System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
this.编号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.IP地址 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.SSID = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.网络状态 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.button1 = new global::System.Windows.Forms.Button();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
base.SuspendLayout();
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeight = 30;
|
||||
this.dataGridView1.Columns.AddRange(new global::System.Windows.Forms.DataGridViewColumn[]
|
||||
{
|
||||
this.编号,
|
||||
this.IP地址,
|
||||
this.SSID,
|
||||
this.网络状态
|
||||
});
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 62);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowTemplate.Height = 30;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(636, 336);
|
||||
this.dataGridView1.TabIndex = 18;
|
||||
this.编号.DataPropertyName = "编号";
|
||||
this.编号.HeaderText = "编号";
|
||||
this.编号.Name = "编号";
|
||||
this.编号.ReadOnly = true;
|
||||
this.编号.Width = 70;
|
||||
this.IP地址.DataPropertyName = "IP地址";
|
||||
this.IP地址.HeaderText = "IP地址";
|
||||
this.IP地址.Name = "IP地址";
|
||||
this.IP地址.ReadOnly = true;
|
||||
this.IP地址.Width = 130;
|
||||
this.SSID.DataPropertyName = "SSID";
|
||||
this.SSID.HeaderText = "SSID";
|
||||
this.SSID.Name = "SSID";
|
||||
this.SSID.ReadOnly = true;
|
||||
this.SSID.Width = 225;
|
||||
this.网络状态.DataPropertyName = "网络状态";
|
||||
dataGridViewCellStyle.ForeColor = global::System.Drawing.Color.FromArgb(0, 192, 0);
|
||||
this.网络状态.DefaultCellStyle = dataGridViewCellStyle;
|
||||
this.网络状态.HeaderText = "网络状态";
|
||||
this.网络状态.Name = "网络状态";
|
||||
this.网络状态.ReadOnly = true;
|
||||
this.网络状态.Width = 150;
|
||||
this.button1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.button1.Location = new global::System.Drawing.Point(521, 0);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new global::System.Drawing.Size(115, 62);
|
||||
this.button1.TabIndex = 19;
|
||||
this.button1.Text = "测试网络";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new global::System.EventHandler(this.button1_Click);
|
||||
this.label1.Font = new global::System.Drawing.Font("宋体", 9f, global::System.Drawing.FontStyle.Bold, global::System.Drawing.GraphicsUnit.Point, 134);
|
||||
this.label1.Location = new global::System.Drawing.Point(18, 15);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(333, 55);
|
||||
this.label1.TabIndex = 20;
|
||||
this.label1.Text = "单击“开始测试”,系统自动检测所有AP网络\r\n\r\n连接是否正常";
|
||||
this.panel1.Controls.Add(this.label1);
|
||||
this.panel1.Controls.Add(this.button1);
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(636, 62);
|
||||
this.panel1.TabIndex = 21;
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(636, 398);
|
||||
base.Controls.Add(this.dataGridView1);
|
||||
base.Controls.Add(this.panel1);
|
||||
base.Name = "APTest";
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "AP网络状态";
|
||||
base.TopMost = true;
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
this.panel1.ResumeLayout(false);
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x040000F9 RID: 249
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x040000FA RID: 250
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x040000FB RID: 251
|
||||
private global::System.Windows.Forms.Button button1;
|
||||
|
||||
// Token: 0x040000FC RID: 252
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x040000FD RID: 253
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 编号;
|
||||
|
||||
// Token: 0x040000FE RID: 254
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn IP地址;
|
||||
|
||||
// Token: 0x040000FF RID: 255
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn SSID;
|
||||
|
||||
// Token: 0x04000100 RID: 256
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 网络状态;
|
||||
|
||||
// Token: 0x04000101 RID: 257
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000008 RID: 8
|
||||
public partial class APTest : Form
|
||||
{
|
||||
// Token: 0x0600007C RID: 124 RVA: 0x0000FF84 File Offset: 0x0000E184
|
||||
public APTest()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.ds = this.db.connDt("select id as 编号, ipaddress as ip地址 , ssid ,'' as 网络状态 from AP_Site");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600007D RID: 125 RVA: 0x00010014 File Offset: 0x0000E214
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.button1.Enabled = false;
|
||||
Thread thread = new Thread(new ThreadStart(this.pingnet));
|
||||
thread.Start();
|
||||
}
|
||||
|
||||
// Token: 0x0600007E RID: 126 RVA: 0x00010048 File Offset: 0x0000E248
|
||||
private void pingnet()
|
||||
{
|
||||
bool invokeRequired = base.InvokeRequired;
|
||||
if (invokeRequired)
|
||||
{
|
||||
base.Invoke(new APTest.PingNet(this.pingnet));
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag = this.dataGridView1.RowCount > 0;
|
||||
if (flag)
|
||||
{
|
||||
for (int i = 0; i < this.dataGridView1.RowCount; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
bool flag2 = this.ping.Send(this.dataGridView1.Rows[i].Cells["ip地址"].Value.ToString(), 1000).Status == IPStatus.Success;
|
||||
if (flag2)
|
||||
{
|
||||
this.dataGridView1.Rows[i].Cells["网络状态"].Value = "[" + DateTime.Now.ToLongTimeString() + "]:ok";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.dataGridView1.Rows[i].Cells["网络状态"].Value = "[" + DateTime.Now.ToLongTimeString() + "]:网络异常";
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.dataGridView1.Rows[i].Cells["网络状态"].Value = "[" + DateTime.Now.ToLongTimeString() + "]:网络异常";
|
||||
}
|
||||
}
|
||||
this.button1.Enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040000F6 RID: 246
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x040000F7 RID: 247
|
||||
private DataSet ds = new DataSet();
|
||||
|
||||
// Token: 0x040000F8 RID: 248
|
||||
private Ping ping = new Ping();
|
||||
|
||||
// Token: 0x0200003A RID: 58
|
||||
// (Invoke) Token: 0x060002D5 RID: 725
|
||||
private delegate void PingNet();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Generated
+160
@@ -0,0 +1,160 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000004 RID: 4
|
||||
internal partial class AboutBox1 : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x0600004E RID: 78 RVA: 0x00008E4C File Offset: 0x0000704C
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x0600004F RID: 79 RVA: 0x00008E84 File Offset: 0x00007084
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::AGVSystem.AboutBox1));
|
||||
this.labelVersion = new global::System.Windows.Forms.Label();
|
||||
this.labelCopyright = new global::System.Windows.Forms.Label();
|
||||
this.labelCompanyName = new global::System.Windows.Forms.Label();
|
||||
this.okButton = new global::System.Windows.Forms.Button();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.label5 = new global::System.Windows.Forms.Label();
|
||||
base.SuspendLayout();
|
||||
this.labelVersion.Location = new global::System.Drawing.Point(175, 46);
|
||||
this.labelVersion.Margin = new global::System.Windows.Forms.Padding(6, 0, 3, 0);
|
||||
this.labelVersion.MaximumSize = new global::System.Drawing.Size(0, 16);
|
||||
this.labelVersion.Name = "labelVersion";
|
||||
this.labelVersion.Size = new global::System.Drawing.Size(0, 16);
|
||||
this.labelVersion.TabIndex = 0;
|
||||
this.labelVersion.Text = " 版本:Ver 4.0";
|
||||
this.labelVersion.TextAlign = global::System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.labelCopyright.Location = new global::System.Drawing.Point(175, 79);
|
||||
this.labelCopyright.Margin = new global::System.Windows.Forms.Padding(6, 0, 3, 0);
|
||||
this.labelCopyright.MaximumSize = new global::System.Drawing.Size(0, 16);
|
||||
this.labelCopyright.Name = "labelCopyright";
|
||||
this.labelCopyright.Size = new global::System.Drawing.Size(0, 16);
|
||||
this.labelCopyright.TabIndex = 21;
|
||||
this.labelCopyright.Text = "Copyright @ Huaxiao 2015";
|
||||
this.labelCopyright.TextAlign = global::System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.labelCompanyName.Location = new global::System.Drawing.Point(175, 120);
|
||||
this.labelCompanyName.Margin = new global::System.Windows.Forms.Padding(6, 0, 3, 0);
|
||||
this.labelCompanyName.MaximumSize = new global::System.Drawing.Size(0, 16);
|
||||
this.labelCompanyName.Name = "labelCompanyName";
|
||||
this.labelCompanyName.Size = new global::System.Drawing.Size(0, 16);
|
||||
this.labelCompanyName.TabIndex = 22;
|
||||
this.labelCompanyName.Text = "公司名称:华晓精密工业(苏州)有限公司";
|
||||
this.labelCompanyName.TextAlign = global::System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.okButton.Anchor = (global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right);
|
||||
this.okButton.DialogResult = global::System.Windows.Forms.DialogResult.Cancel;
|
||||
this.okButton.Location = new global::System.Drawing.Point(355, 265);
|
||||
this.okButton.Name = "okButton";
|
||||
this.okButton.Size = new global::System.Drawing.Size(75, 21);
|
||||
this.okButton.TabIndex = 24;
|
||||
this.okButton.Text = "确定(&O)";
|
||||
this.label1.BorderStyle = global::System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.label1.FlatStyle = global::System.Windows.Forms.FlatStyle.Popup;
|
||||
this.label1.Location = new global::System.Drawing.Point(177, 154);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(258, 84);
|
||||
this.label1.TabIndex = 25;
|
||||
this.label1.Text = "\r\n 本软件的版权由华晓精密工业(苏州)有限公司所有, 未经许可擅自使用该软件的单位或个人,将要承担相应的法律责任!\r\n\r\n地址 : 苏州高新区科憬路110号\r\n\r\n网址 : www.huaxiao.com.cn";
|
||||
this.panel1.BackgroundImage = (global::System.Drawing.Image)componentResourceManager.GetObject("panel1.BackgroundImage");
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.panel1.Location = new global::System.Drawing.Point(9, 8);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(150, 281);
|
||||
this.panel1.TabIndex = 2;
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(175, 12);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(155, 12);
|
||||
this.label2.TabIndex = 0;
|
||||
this.label2.Text = "产品名称:AGV调度管理系统";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(175, 48);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(107, 12);
|
||||
this.label3.TabIndex = 26;
|
||||
this.label3.Text = " 版本:Ver 4.0";
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(175, 83);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(179, 12);
|
||||
this.label4.TabIndex = 27;
|
||||
this.label4.Text = "Copyright @ 华晓精密工业 2015";
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new global::System.Drawing.Point(175, 124);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new global::System.Drawing.Size(233, 12);
|
||||
this.label5.TabIndex = 28;
|
||||
this.label5.Text = "公司名称:华晓精密工业(苏州)有限公司";
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(462, 297);
|
||||
base.Controls.Add(this.label5);
|
||||
base.Controls.Add(this.label4);
|
||||
base.Controls.Add(this.label3);
|
||||
base.Controls.Add(this.okButton);
|
||||
base.Controls.Add(this.labelCompanyName);
|
||||
base.Controls.Add(this.label1);
|
||||
base.Controls.Add(this.labelCopyright);
|
||||
base.Controls.Add(this.labelVersion);
|
||||
base.Controls.Add(this.panel1);
|
||||
base.Controls.Add(this.label2);
|
||||
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
base.MaximizeBox = false;
|
||||
base.MinimizeBox = false;
|
||||
base.Name = "AboutBox1";
|
||||
base.Padding = new global::System.Windows.Forms.Padding(9, 8, 9, 8);
|
||||
base.ShowIcon = false;
|
||||
base.ShowInTaskbar = false;
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "关于";
|
||||
base.TopMost = true;
|
||||
base.ResumeLayout(false);
|
||||
base.PerformLayout();
|
||||
}
|
||||
|
||||
// Token: 0x04000073 RID: 115
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x04000074 RID: 116
|
||||
private global::System.Windows.Forms.Label labelVersion;
|
||||
|
||||
// Token: 0x04000075 RID: 117
|
||||
private global::System.Windows.Forms.Label labelCopyright;
|
||||
|
||||
// Token: 0x04000076 RID: 118
|
||||
private global::System.Windows.Forms.Label labelCompanyName;
|
||||
|
||||
// Token: 0x04000077 RID: 119
|
||||
private global::System.Windows.Forms.Button okButton;
|
||||
|
||||
// Token: 0x04000078 RID: 120
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x04000079 RID: 121
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x0400007A RID: 122
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x0400007B RID: 123
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x0400007C RID: 124
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x0400007D RID: 125
|
||||
private global::System.Windows.Forms.Label label5;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000004 RID: 4
|
||||
internal partial class AboutBox1 : Form
|
||||
{
|
||||
// Token: 0x06000046 RID: 70 RVA: 0x00008C71 File Offset: 0x00006E71
|
||||
public AboutBox1()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
// Token: 0x17000006 RID: 6
|
||||
// (get) Token: 0x06000047 RID: 71 RVA: 0x00008C8C File Offset: 0x00006E8C
|
||||
public string AssemblyTitle
|
||||
{
|
||||
get
|
||||
{
|
||||
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
|
||||
bool flag = customAttributes.Length != 0;
|
||||
if (flag)
|
||||
{
|
||||
AssemblyTitleAttribute assemblyTitleAttribute = (AssemblyTitleAttribute)customAttributes[0];
|
||||
bool flag2 = assemblyTitleAttribute.Title != "";
|
||||
if (flag2)
|
||||
{
|
||||
return assemblyTitleAttribute.Title;
|
||||
}
|
||||
}
|
||||
return Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000007 RID: 7
|
||||
// (get) Token: 0x06000048 RID: 72 RVA: 0x00008CF8 File Offset: 0x00006EF8
|
||||
public string AssemblyVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000008 RID: 8
|
||||
// (get) Token: 0x06000049 RID: 73 RVA: 0x00008D20 File Offset: 0x00006F20
|
||||
public string AssemblyDescription
|
||||
{
|
||||
get
|
||||
{
|
||||
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
|
||||
bool flag = customAttributes.Length == 0;
|
||||
string result;
|
||||
if (flag)
|
||||
{
|
||||
result = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
result = ((AssemblyDescriptionAttribute)customAttributes[0]).Description;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000009 RID: 9
|
||||
// (get) Token: 0x0600004A RID: 74 RVA: 0x00008D68 File Offset: 0x00006F68
|
||||
public string AssemblyProduct
|
||||
{
|
||||
get
|
||||
{
|
||||
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
|
||||
bool flag = customAttributes.Length == 0;
|
||||
string result;
|
||||
if (flag)
|
||||
{
|
||||
result = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
result = ((AssemblyProductAttribute)customAttributes[0]).Product;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700000A RID: 10
|
||||
// (get) Token: 0x0600004B RID: 75 RVA: 0x00008DB0 File Offset: 0x00006FB0
|
||||
public string AssemblyCopyright
|
||||
{
|
||||
get
|
||||
{
|
||||
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
|
||||
bool flag = customAttributes.Length == 0;
|
||||
string result;
|
||||
if (flag)
|
||||
{
|
||||
result = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
result = ((AssemblyCopyrightAttribute)customAttributes[0]).Copyright;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700000B RID: 11
|
||||
// (get) Token: 0x0600004C RID: 76 RVA: 0x00008DF8 File Offset: 0x00006FF8
|
||||
public string AssemblyCompany
|
||||
{
|
||||
get
|
||||
{
|
||||
object[] customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
|
||||
bool flag = customAttributes.Length == 0;
|
||||
string result;
|
||||
if (flag)
|
||||
{
|
||||
result = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
result = ((AssemblyCompanyAttribute)customAttributes[0]).Company;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600004D RID: 77 RVA: 0x00008E3F File Offset: 0x0000703F
|
||||
private void okButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
base.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Generated
+422
@@ -0,0 +1,422 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000006 RID: 6
|
||||
public partial class Agv_Status : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x0600006A RID: 106 RVA: 0x0000CA58 File Offset: 0x0000AC58
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x0600006B RID: 107 RVA: 0x0000CA90 File Offset: 0x0000AC90
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.panel3 = new global::System.Windows.Forms.Panel();
|
||||
this.panel2 = new global::System.Windows.Forms.Panel();
|
||||
this.button2 = new global::System.Windows.Forms.Button();
|
||||
this.label14 = new global::System.Windows.Forms.Label();
|
||||
this.label15 = new global::System.Windows.Forms.Label();
|
||||
this.label13 = new global::System.Windows.Forms.Label();
|
||||
this.label12 = new global::System.Windows.Forms.Label();
|
||||
this.num_task = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label11 = new global::System.Windows.Forms.Label();
|
||||
this.comboBox5 = new global::System.Windows.Forms.ComboBox();
|
||||
this.label10 = new global::System.Windows.Forms.Label();
|
||||
this.checkBox2 = new global::System.Windows.Forms.CheckBox();
|
||||
this.comboBox4 = new global::System.Windows.Forms.ComboBox();
|
||||
this.comboBox2 = new global::System.Windows.Forms.ComboBox();
|
||||
this.cmb_bank = new global::System.Windows.Forms.ComboBox();
|
||||
this.label9 = new global::System.Windows.Forms.Label();
|
||||
this.num_speed = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.num_landmark = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.checkBox1 = new global::System.Windows.Forms.CheckBox();
|
||||
this.label8 = new global::System.Windows.Forms.Label();
|
||||
this.label7 = new global::System.Windows.Forms.Label();
|
||||
this.label6 = new global::System.Windows.Forms.Label();
|
||||
this.label5 = new global::System.Windows.Forms.Label();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_task).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_speed).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_landmark).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.panel1.Controls.Add(this.panel3);
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.panel1.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(1154, 866);
|
||||
this.panel1.TabIndex = 0;
|
||||
this.panel3.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel3.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel3.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.panel3.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new global::System.Drawing.Size(1154, 866);
|
||||
this.panel3.TabIndex = 46;
|
||||
this.panel2.Controls.Add(this.button2);
|
||||
this.panel2.Controls.Add(this.label14);
|
||||
this.panel2.Controls.Add(this.label15);
|
||||
this.panel2.Controls.Add(this.label13);
|
||||
this.panel2.Controls.Add(this.label12);
|
||||
this.panel2.Controls.Add(this.num_task);
|
||||
this.panel2.Controls.Add(this.label11);
|
||||
this.panel2.Controls.Add(this.comboBox5);
|
||||
this.panel2.Controls.Add(this.label10);
|
||||
this.panel2.Controls.Add(this.checkBox2);
|
||||
this.panel2.Controls.Add(this.comboBox4);
|
||||
this.panel2.Controls.Add(this.comboBox2);
|
||||
this.panel2.Controls.Add(this.cmb_bank);
|
||||
this.panel2.Controls.Add(this.label9);
|
||||
this.panel2.Controls.Add(this.num_speed);
|
||||
this.panel2.Controls.Add(this.num_landmark);
|
||||
this.panel2.Controls.Add(this.checkBox1);
|
||||
this.panel2.Controls.Add(this.label8);
|
||||
this.panel2.Controls.Add(this.label7);
|
||||
this.panel2.Controls.Add(this.label6);
|
||||
this.panel2.Controls.Add(this.label5);
|
||||
this.panel2.Controls.Add(this.label4);
|
||||
this.panel2.Controls.Add(this.label3);
|
||||
this.panel2.Controls.Add(this.label2);
|
||||
this.panel2.Controls.Add(this.label1);
|
||||
this.panel2.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.panel2.Location = new global::System.Drawing.Point(1154, 0);
|
||||
this.panel2.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new global::System.Drawing.Size(391, 866);
|
||||
this.panel2.TabIndex = 1;
|
||||
this.button2.Location = new global::System.Drawing.Point(251, 801);
|
||||
this.button2.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new global::System.Drawing.Size(100, 52);
|
||||
this.button2.TabIndex = 27;
|
||||
this.button2.Text = "下线";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new global::System.EventHandler(this.button2_Click);
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new global::System.Drawing.Point(159, 710);
|
||||
this.label14.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new global::System.Drawing.Size(63, 15);
|
||||
this.label14.TabIndex = 26;
|
||||
this.label14.Text = "label14";
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.Location = new global::System.Drawing.Point(61, 710);
|
||||
this.label15.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label15.TabIndex = 25;
|
||||
this.label15.Text = "状态信息:";
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new global::System.Drawing.Point(159, 46);
|
||||
this.label13.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new global::System.Drawing.Size(15, 15);
|
||||
this.label13.TabIndex = 24;
|
||||
this.label13.Text = "0";
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new global::System.Drawing.Point(159, 650);
|
||||
this.label12.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new global::System.Drawing.Size(63, 15);
|
||||
this.label12.TabIndex = 23;
|
||||
this.label12.Text = "label12";
|
||||
this.num_task.Location = new global::System.Drawing.Point(161, 575);
|
||||
this.num_task.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown = this.num_task;
|
||||
int[] array = new int[4];
|
||||
array[0] = 10000;
|
||||
numericUpDown.Maximum = new decimal(array);
|
||||
this.num_task.Name = "num_task";
|
||||
this.num_task.Size = new global::System.Drawing.Size(160, 25);
|
||||
this.num_task.TabIndex = 22;
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new global::System.Drawing.Point(61, 581);
|
||||
this.label11.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label11.TabIndex = 21;
|
||||
this.label11.Text = "运动目标:";
|
||||
this.comboBox5.FormattingEnabled = true;
|
||||
this.comboBox5.Items.AddRange(new object[]
|
||||
{
|
||||
"",
|
||||
"前进",
|
||||
"后退"
|
||||
});
|
||||
this.comboBox5.Location = new global::System.Drawing.Point(161, 501);
|
||||
this.comboBox5.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.comboBox5.Name = "comboBox5";
|
||||
this.comboBox5.Size = new global::System.Drawing.Size(160, 23);
|
||||
this.comboBox5.TabIndex = 20;
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new global::System.Drawing.Point(61, 505);
|
||||
this.label10.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label10.TabIndex = 19;
|
||||
this.label10.Text = "运动方向:";
|
||||
this.checkBox2.AutoSize = true;
|
||||
this.checkBox2.Location = new global::System.Drawing.Point(64, 761);
|
||||
this.checkBox2.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.checkBox2.Name = "checkBox2";
|
||||
this.checkBox2.Size = new global::System.Drawing.Size(119, 19);
|
||||
this.checkBox2.TabIndex = 18;
|
||||
this.checkBox2.Text = "设备故障复位";
|
||||
this.checkBox2.UseVisualStyleBackColor = true;
|
||||
this.comboBox4.FormattingEnabled = true;
|
||||
this.comboBox4.Items.AddRange(new object[]
|
||||
{
|
||||
"未启动",
|
||||
"运动中",
|
||||
"停止中",
|
||||
"急停中"
|
||||
});
|
||||
this.comboBox4.Location = new global::System.Drawing.Point(161, 108);
|
||||
this.comboBox4.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.comboBox4.Name = "comboBox4";
|
||||
this.comboBox4.Size = new global::System.Drawing.Size(160, 23);
|
||||
this.comboBox4.TabIndex = 17;
|
||||
this.comboBox2.FormattingEnabled = true;
|
||||
this.comboBox2.Items.AddRange(new object[]
|
||||
{
|
||||
"",
|
||||
"直行",
|
||||
"左转",
|
||||
"右转"
|
||||
});
|
||||
this.comboBox2.Location = new global::System.Drawing.Point(161, 432);
|
||||
this.comboBox2.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.comboBox2.Name = "comboBox2";
|
||||
this.comboBox2.Size = new global::System.Drawing.Size(160, 23);
|
||||
this.comboBox2.TabIndex = 15;
|
||||
this.cmb_bank.FormattingEnabled = true;
|
||||
this.cmb_bank.Items.AddRange(new object[]
|
||||
{
|
||||
"",
|
||||
"Bank1",
|
||||
"Bank2",
|
||||
"Bank3",
|
||||
"Bank4",
|
||||
"Bank5",
|
||||
"Bank6",
|
||||
"Bank7",
|
||||
"Bank8",
|
||||
"Bank9",
|
||||
"Bank10",
|
||||
"Bank11",
|
||||
"Bank12",
|
||||
"Bank13",
|
||||
"Bank14",
|
||||
"Bank15",
|
||||
"Bank16"
|
||||
});
|
||||
this.cmb_bank.Location = new global::System.Drawing.Point(161, 368);
|
||||
this.cmb_bank.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.cmb_bank.Name = "cmb_bank";
|
||||
this.cmb_bank.Size = new global::System.Drawing.Size(160, 23);
|
||||
this.cmb_bank.TabIndex = 14;
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new global::System.Drawing.Point(159, 306);
|
||||
this.label9.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new global::System.Drawing.Size(71, 15);
|
||||
this.label9.TabIndex = 13;
|
||||
this.label9.Text = "24.09 V";
|
||||
this.num_speed.Location = new global::System.Drawing.Point(161, 239);
|
||||
this.num_speed.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.num_speed.Name = "num_speed";
|
||||
this.num_speed.Size = new global::System.Drawing.Size(160, 25);
|
||||
this.num_speed.TabIndex = 12;
|
||||
this.num_landmark.Location = new global::System.Drawing.Point(161, 174);
|
||||
this.num_landmark.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown2 = this.num_landmark;
|
||||
int[] array2 = new int[4];
|
||||
array2[0] = 10000;
|
||||
numericUpDown2.Maximum = new decimal(array2);
|
||||
this.num_landmark.Name = "num_landmark";
|
||||
this.num_landmark.Size = new global::System.Drawing.Size(160, 25);
|
||||
this.num_landmark.TabIndex = 11;
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new global::System.Drawing.Point(64, 789);
|
||||
this.checkBox1.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new global::System.Drawing.Size(149, 19);
|
||||
this.checkBox1.TabIndex = 9;
|
||||
this.checkBox1.Text = "允许更新设备参数";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
this.checkBox1.CheckedChanged += new global::System.EventHandler(this.checkBox1_CheckedChanged);
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new global::System.Drawing.Point(61, 306);
|
||||
this.label8.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label8.TabIndex = 7;
|
||||
this.label8.Text = "当前电压:";
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new global::System.Drawing.Point(61, 650);
|
||||
this.label7.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label7.TabIndex = 6;
|
||||
this.label7.Text = "所属线体:";
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new global::System.Drawing.Point(61, 436);
|
||||
this.label6.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label6.TabIndex = 5;
|
||||
this.label6.Text = "前进方向:";
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new global::System.Drawing.Point(13, 371);
|
||||
this.label5.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new global::System.Drawing.Size(127, 15);
|
||||
this.label5.TabIndex = 4;
|
||||
this.label5.Text = "障碍物检测模式:";
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(61, 241);
|
||||
this.label4.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label4.TabIndex = 3;
|
||||
this.label4.Text = "当前速度:";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(61, 176);
|
||||
this.label3.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label3.TabIndex = 2;
|
||||
this.label3.Text = "当前位置:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(61, 111);
|
||||
this.label2.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "设备状态:";
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(61, 46);
|
||||
this.label1.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "设备编号:";
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(8f, 15f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(1545, 866);
|
||||
base.Controls.Add(this.panel1);
|
||||
base.Controls.Add(this.panel2);
|
||||
base.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
base.Name = "Agv_Status";
|
||||
this.Text = "设备列表";
|
||||
base.WindowState = global::System.Windows.Forms.FormWindowState.Maximized;
|
||||
base.Load += new global::System.EventHandler(this.Agv_Status_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_task).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_speed).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_landmark).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x040000B2 RID: 178
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x040000B3 RID: 179
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x040000B4 RID: 180
|
||||
private global::System.Windows.Forms.Panel panel2;
|
||||
|
||||
// Token: 0x040000B5 RID: 181
|
||||
private global::System.Windows.Forms.Label label7;
|
||||
|
||||
// Token: 0x040000B6 RID: 182
|
||||
private global::System.Windows.Forms.Label label6;
|
||||
|
||||
// Token: 0x040000B7 RID: 183
|
||||
private global::System.Windows.Forms.Label label5;
|
||||
|
||||
// Token: 0x040000B8 RID: 184
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x040000B9 RID: 185
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x040000BA RID: 186
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x040000BB RID: 187
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x040000BC RID: 188
|
||||
private global::System.Windows.Forms.Panel panel3;
|
||||
|
||||
// Token: 0x040000BD RID: 189
|
||||
private global::System.Windows.Forms.Label label8;
|
||||
|
||||
// Token: 0x040000BE RID: 190
|
||||
private global::System.Windows.Forms.CheckBox checkBox2;
|
||||
|
||||
// Token: 0x040000BF RID: 191
|
||||
private global::System.Windows.Forms.ComboBox comboBox4;
|
||||
|
||||
// Token: 0x040000C0 RID: 192
|
||||
private global::System.Windows.Forms.ComboBox comboBox2;
|
||||
|
||||
// Token: 0x040000C1 RID: 193
|
||||
private global::System.Windows.Forms.ComboBox cmb_bank;
|
||||
|
||||
// Token: 0x040000C2 RID: 194
|
||||
private global::System.Windows.Forms.Label label9;
|
||||
|
||||
// Token: 0x040000C3 RID: 195
|
||||
private global::System.Windows.Forms.NumericUpDown num_speed;
|
||||
|
||||
// Token: 0x040000C4 RID: 196
|
||||
private global::System.Windows.Forms.NumericUpDown num_landmark;
|
||||
|
||||
// Token: 0x040000C5 RID: 197
|
||||
private global::System.Windows.Forms.CheckBox checkBox1;
|
||||
|
||||
// Token: 0x040000C6 RID: 198
|
||||
private global::System.Windows.Forms.NumericUpDown num_task;
|
||||
|
||||
// Token: 0x040000C7 RID: 199
|
||||
private global::System.Windows.Forms.Label label11;
|
||||
|
||||
// Token: 0x040000C8 RID: 200
|
||||
private global::System.Windows.Forms.ComboBox comboBox5;
|
||||
|
||||
// Token: 0x040000C9 RID: 201
|
||||
private global::System.Windows.Forms.Label label10;
|
||||
|
||||
// Token: 0x040000CA RID: 202
|
||||
private global::System.Windows.Forms.Label label12;
|
||||
|
||||
// Token: 0x040000CB RID: 203
|
||||
private global::System.Windows.Forms.Label label13;
|
||||
|
||||
// Token: 0x040000CC RID: 204
|
||||
private global::System.Windows.Forms.Label label14;
|
||||
|
||||
// Token: 0x040000CD RID: 205
|
||||
private global::System.Windows.Forms.Label label15;
|
||||
|
||||
// Token: 0x040000CE RID: 206
|
||||
private global::System.Windows.Forms.Button button2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
using AGVSystem.Properties;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000006 RID: 6
|
||||
public partial class Agv_Status : Form
|
||||
{
|
||||
// Token: 0x06000064 RID: 100 RVA: 0x0000C3AB File Offset: 0x0000A5AB
|
||||
public Agv_Status()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
// Token: 0x06000065 RID: 101 RVA: 0x0000C3D4 File Offset: 0x0000A5D4
|
||||
private void agv_init(int agv_qty)
|
||||
{
|
||||
int num = 0;
|
||||
bool flag = this.panel3.Width >= this.panel3.Height;
|
||||
if (flag)
|
||||
{
|
||||
num = this.panel3.Height / (int)Convert.ToInt16(Math.Sqrt((double)agv_qty));
|
||||
}
|
||||
else
|
||||
{
|
||||
num = this.panel3.Width / (int)Convert.ToInt16(Math.Sqrt((double)agv_qty));
|
||||
}
|
||||
bool flag2 = num > 512;
|
||||
if (flag2)
|
||||
{
|
||||
num = 512;
|
||||
}
|
||||
bool flag3 = num < 21;
|
||||
if (flag3)
|
||||
{
|
||||
num = 21;
|
||||
}
|
||||
int num2 = 0;
|
||||
byte b = 1;
|
||||
while ((short)b <= Convert.ToInt16(this.panel3.Height / num))
|
||||
{
|
||||
byte b2 = 1;
|
||||
while ((short)b2 <= Convert.ToInt16(this.panel3.Width / num))
|
||||
{
|
||||
num2++;
|
||||
Button button = new Button();
|
||||
button.Click += this.btn_info_Click;
|
||||
button.Parent = this.panel3;
|
||||
button.Text = num2.ToString();
|
||||
button.Name = "btn" + num2.ToString();
|
||||
button.Location = new Point(5 + (int)(b2 - 1) * num, 5 + (int)(b - 1) * num);
|
||||
button.Height = num - 5;
|
||||
button.Width = num - 5;
|
||||
bool flag4 = num2 > (int)Param.AGV_Qty;
|
||||
if (flag4)
|
||||
{
|
||||
button.Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
int num3 = num2;
|
||||
button.BackgroundImageLayout = ImageLayout.Zoom;
|
||||
button.TextAlign = ContentAlignment.TopLeft;
|
||||
button.BackgroundImage = ((Func.AgvInfo[num3 - 1].Type == 6) ? Resources._6 : Resources._8);
|
||||
button.Tag = Func.AgvInfo[num3 - 1].AssemblyName + "-" + Func.AgvInfo[num3 - 1].Internal_ID.ToString() + "号设备";
|
||||
this.lab_color[num2 - 1] = new Label();
|
||||
this.lab_color[num2 - 1].Location = new Point(button.Location.X + button.Width - 15, button.Location.Y + button.Height - 15);
|
||||
this.lab_color[num2 - 1].Width = 10;
|
||||
this.lab_color[num2 - 1].Height = 10;
|
||||
this.lab_color[num2 - 1].BackColor = Color.Silver;
|
||||
this.lab_color[num2 - 1].Parent = this.panel3;
|
||||
button.SendToBack();
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
b2 += 1;
|
||||
}
|
||||
b += 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000066 RID: 102 RVA: 0x0000C6B8 File Offset: 0x0000A8B8
|
||||
private void checkBox1_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000067 RID: 103 RVA: 0x0000C6F0 File Offset: 0x0000A8F0
|
||||
private void Agv_Status_Load(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.AGV_Qty > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.agv_init((int)Param.AGV_Qty);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000068 RID: 104 RVA: 0x0000C718 File Offset: 0x0000A918
|
||||
private void btn_info_Click(object sender, EventArgs e)
|
||||
{
|
||||
Button button = (Button)sender;
|
||||
this.label13.Text = button.Text;
|
||||
this.comboBox4.SelectedIndex = (int)Func.AgvInfo[(int)(Convert.ToInt16(button.Text) - 1)].Run_Status;
|
||||
this.num_landmark.Value = Convert.ToDecimal(Func.AgvInfo[(int)(Convert.ToInt16(button.Text) - 1)].Location_Display);
|
||||
this.num_speed.Value = Convert.ToDecimal(Func.AgvInfo[(int)(Convert.ToInt16(button.Text) - 1)].Run_Speed);
|
||||
this.label9.Text = Func.AgvInfo[(int)(Convert.ToInt16(button.Text) - 1)].Voltage.ToString();
|
||||
this.cmb_bank.SelectedIndex = (int)Func.AgvInfo[(int)(Convert.ToInt16(button.Text) - 1)].Bank_Model;
|
||||
this.comboBox2.SelectedIndex = (int)Func.AgvInfo[(int)(Convert.ToInt16(button.Text) - 1)].Go_Direction;
|
||||
this.comboBox5.SelectedIndex = (int)Func.AgvInfo[(int)(Convert.ToInt16(button.Text) - 1)].Run_Direction;
|
||||
this.num_task.Value = Convert.ToDecimal(Func.AgvInfo[(int)(Convert.ToInt16(button.Text) - 1)].Task_ID);
|
||||
this.label12.Text = ((button.Tag != null) ? button.Tag.ToString() : "");
|
||||
this.label14.Text = Func.AgvInfo[(int)(Convert.ToInt16(button.Text) - 1)].Warn_info;
|
||||
this.button2.BackColor = (Func.AgvInfo[(int)(Convert.ToInt16(this.label13.Text) - 1)].Enable ? Color.Blue : Color.Yellow);
|
||||
this.button2.Text = (Func.AgvInfo[(int)(Convert.ToInt16(this.label13.Text) - 1)].Enable ? "在线" : "离线");
|
||||
}
|
||||
|
||||
// Token: 0x06000069 RID: 105 RVA: 0x0000C92C File Offset: 0x0000AB2C
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Convert.ToInt16(this.label13.Text) < 1;
|
||||
if (!flag)
|
||||
{
|
||||
Func.AgvInfo[(int)(Convert.ToInt16(this.label13.Text) - 1)].Enable = !Func.AgvInfo[(int)(Convert.ToInt16(this.label13.Text) - 1)].Enable;
|
||||
string text = "UPDATE [dbo].[AgvInfo]\r\n SET Status = '{1}'\r\n WHERE id = '{0}'";
|
||||
text = string.Format(text, Convert.ToInt16(this.label13.Text), Func.AgvInfo[(int)(Convert.ToInt16(this.label13.Text) - 1)].Enable ? 1 : 0);
|
||||
string text2 = new ClsDBConn_sql().Command(text);
|
||||
this.button2.BackColor = (Func.AgvInfo[(int)(Convert.ToInt16(this.label13.Text) - 1)].Enable ? Color.Blue : Color.Yellow);
|
||||
this.button2.Text = (Func.AgvInfo[(int)(Convert.ToInt16(this.label13.Text) - 1)].Enable ? "在线" : "离线");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040000B1 RID: 177
|
||||
public Label[] lab_color = new Label[(int)Param.AGV_Qty];
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,196 @@
|
||||
using System;
|
||||
using System.Net.Sockets;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AGVSystem.Cls
|
||||
{
|
||||
// Token: 0x02000024 RID: 36
|
||||
public class AgvInfo
|
||||
{
|
||||
// Token: 0x17000033 RID: 51
|
||||
// (get) Token: 0x0600021D RID: 541 RVA: 0x0004F888 File Offset: 0x0004DA88
|
||||
// (set) Token: 0x0600021E RID: 542 RVA: 0x0004F8AA File Offset: 0x0004DAAA
|
||||
public int Agv_ID
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)Convert.ToInt16(this.agv_id.Text);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.agv_id.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000034 RID: 52
|
||||
// (get) Token: 0x0600021F RID: 543 RVA: 0x0004F8C0 File Offset: 0x0004DAC0
|
||||
// (set) Token: 0x06000220 RID: 544 RVA: 0x0004F8E2 File Offset: 0x0004DAE2
|
||||
public int Location_Display
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)Convert.ToInt16(this.location_display.Text);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.location_display.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000035 RID: 53
|
||||
// (get) Token: 0x06000221 RID: 545 RVA: 0x0004F8F8 File Offset: 0x0004DAF8
|
||||
// (set) Token: 0x06000222 RID: 546 RVA: 0x0004F915 File Offset: 0x0004DB15
|
||||
public string Warn_info
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.warn_info.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.warn_info.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000036 RID: 54
|
||||
// (get) Token: 0x06000223 RID: 547 RVA: 0x0004F928 File Offset: 0x0004DB28
|
||||
// (set) Token: 0x06000224 RID: 548 RVA: 0x0004F945 File Offset: 0x0004DB45
|
||||
public string Task_Descrption
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.task_descrption.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.task_descrption.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000037 RID: 55
|
||||
// (get) Token: 0x06000225 RID: 549 RVA: 0x0004F958 File Offset: 0x0004DB58
|
||||
// (set) Token: 0x06000226 RID: 550 RVA: 0x0004F985 File Offset: 0x0004DB85
|
||||
public bool Have_Goods
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.have_goods.Text == "有货";
|
||||
}
|
||||
set
|
||||
{
|
||||
this.have_goods.Text = ((!value) ? "" : "有货");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040005C3 RID: 1475
|
||||
public Label agv_id = new Label();
|
||||
|
||||
// Token: 0x040005C4 RID: 1476
|
||||
public int Internal_ID;
|
||||
|
||||
// Token: 0x040005C5 RID: 1477
|
||||
public bool bPlcLinked = false;
|
||||
|
||||
// Token: 0x040005C6 RID: 1478
|
||||
public string IP;
|
||||
|
||||
// Token: 0x040005C7 RID: 1479
|
||||
public int Port;
|
||||
|
||||
// Token: 0x040005C8 RID: 1480
|
||||
public int Type;
|
||||
|
||||
// Token: 0x040005C9 RID: 1481
|
||||
public bool Enable;
|
||||
|
||||
// Token: 0x040005CA RID: 1482
|
||||
public int Control_PLC = 1;
|
||||
|
||||
// Token: 0x040005CB RID: 1483
|
||||
public int AssemblyLine;
|
||||
|
||||
// Token: 0x040005CC RID: 1484
|
||||
public string AssemblyName;
|
||||
|
||||
// Token: 0x040005CD RID: 1485
|
||||
public Label location_display = new Label();
|
||||
|
||||
// Token: 0x040005CE RID: 1486
|
||||
public int Rfid_Value = 0;
|
||||
|
||||
// Token: 0x040005CF RID: 1487
|
||||
public int Path_Display = 0;
|
||||
|
||||
// Token: 0x040005D0 RID: 1488
|
||||
public int Cross_Location_Go = 0;
|
||||
|
||||
// Token: 0x040005D1 RID: 1489
|
||||
public string go_info = "";
|
||||
|
||||
// Token: 0x040005D2 RID: 1490
|
||||
public int Cross_Path_Id = 0;
|
||||
|
||||
// Token: 0x040005D3 RID: 1491
|
||||
public string Warn_ID = "0";
|
||||
|
||||
// Token: 0x040005D4 RID: 1492
|
||||
public Label warn_info = new Label();
|
||||
|
||||
// Token: 0x040005D5 RID: 1493
|
||||
public int Warn_Level = 0;
|
||||
|
||||
// Token: 0x040005D6 RID: 1494
|
||||
public int Area;
|
||||
|
||||
// Token: 0x040005D7 RID: 1495
|
||||
public Socket Soc;
|
||||
|
||||
// Token: 0x040005D8 RID: 1496
|
||||
public double Mileage = 0.0;
|
||||
|
||||
// Token: 0x040005D9 RID: 1497
|
||||
public DateTime Read_dt;
|
||||
|
||||
// Token: 0x040005DA RID: 1498
|
||||
public byte Run_Status;
|
||||
|
||||
// Token: 0x040005DB RID: 1499
|
||||
public byte Run_Direction = 0;
|
||||
|
||||
// Token: 0x040005DC RID: 1500
|
||||
public byte Go_Direction = 1;
|
||||
|
||||
// Token: 0x040005DD RID: 1501
|
||||
public byte Run_Speed = 0;
|
||||
|
||||
// Token: 0x040005DE RID: 1502
|
||||
public float Voltage = 0f;
|
||||
|
||||
// Token: 0x040005DF RID: 1503
|
||||
public float Voltage_precent = 0f;
|
||||
|
||||
// Token: 0x040005E0 RID: 1504
|
||||
public byte Bank_Model = 0;
|
||||
|
||||
// Token: 0x040005E1 RID: 1505
|
||||
public int Task_ID = 0;
|
||||
|
||||
// Token: 0x040005E2 RID: 1506
|
||||
public int Task_Temp = 0;
|
||||
|
||||
// Token: 0x040005E3 RID: 1507
|
||||
public Label task_descrption = new Label();
|
||||
|
||||
// Token: 0x040005E4 RID: 1508
|
||||
public int WorkType = 0;
|
||||
|
||||
// Token: 0x040005E5 RID: 1509
|
||||
public Label have_goods = new Label();
|
||||
|
||||
// Token: 0x040005E6 RID: 1510
|
||||
public Channel[] Up_Channel;
|
||||
|
||||
// Token: 0x040005E7 RID: 1511
|
||||
public Channel[] Down_Channel;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
|
||||
namespace AGVSystem.Cls
|
||||
{
|
||||
// Token: 0x02000025 RID: 37
|
||||
public class Channel
|
||||
{
|
||||
// Token: 0x040005E8 RID: 1512
|
||||
public string Material_ID = "";
|
||||
|
||||
// Token: 0x040005E9 RID: 1513
|
||||
public byte Goods_Satus = 0;
|
||||
|
||||
// Token: 0x040005EA RID: 1514
|
||||
public int Goods_Qty = 0;
|
||||
|
||||
// Token: 0x040005EB RID: 1515
|
||||
public int Box_ID1 = 0;
|
||||
|
||||
// Token: 0x040005EC RID: 1516
|
||||
public int Box_ID2 = 0;
|
||||
|
||||
// Token: 0x040005ED RID: 1517
|
||||
public int Channel_Task_ID = 0;
|
||||
|
||||
// Token: 0x040005EE RID: 1518
|
||||
public int Machine_ID = 0;
|
||||
|
||||
// Token: 0x040005EF RID: 1519
|
||||
public byte Do_Status = 0;
|
||||
|
||||
// Token: 0x040005F0 RID: 1520
|
||||
public byte Do_Up_Status = 0;
|
||||
|
||||
// Token: 0x040005F1 RID: 1521
|
||||
public byte Do_Down_Status = 0;
|
||||
|
||||
// Token: 0x040005F2 RID: 1522
|
||||
public byte Do_HgQty_Status = 0;
|
||||
|
||||
// Token: 0x040005F3 RID: 1523
|
||||
public byte Do_Bxg_Status = 0;
|
||||
|
||||
// Token: 0x040005F4 RID: 1524
|
||||
public long Mes_Task_ID = 0L;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,516 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Threading;
|
||||
|
||||
namespace AGVSystem.Cls
|
||||
{
|
||||
// Token: 0x02000026 RID: 38
|
||||
internal class Cls_Mc_Mitsubishi
|
||||
{
|
||||
// Token: 0x14000005 RID: 5
|
||||
// (add) Token: 0x06000229 RID: 553 RVA: 0x0004FB00 File Offset: 0x0004DD00
|
||||
// (remove) Token: 0x0600022A RID: 554 RVA: 0x0004FB38 File Offset: 0x0004DD38
|
||||
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public event Cls_Mc_Mitsubishi.ReceiveMsgHandler OnMsgReceived;
|
||||
|
||||
// Token: 0x14000006 RID: 6
|
||||
// (add) Token: 0x0600022B RID: 555 RVA: 0x0004FB70 File Offset: 0x0004DD70
|
||||
// (remove) Token: 0x0600022C RID: 556 RVA: 0x0004FBA8 File Offset: 0x0004DDA8
|
||||
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public event Cls_Mc_Mitsubishi.StartListenHandler StartListenThread;
|
||||
|
||||
// Token: 0x14000007 RID: 7
|
||||
// (add) Token: 0x0600022D RID: 557 RVA: 0x0004FBE0 File Offset: 0x0004DDE0
|
||||
// (remove) Token: 0x0600022E RID: 558 RVA: 0x0004FC18 File Offset: 0x0004DE18
|
||||
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public event Cls_Mc_Mitsubishi.SendCompleted OnSended;
|
||||
|
||||
// Token: 0x0600022F RID: 559 RVA: 0x0004FC50 File Offset: 0x0004DE50
|
||||
public Cls_Mc_Mitsubishi(string hostName, int port, int PLCStaion)
|
||||
{
|
||||
this.Plcport = PLCStaion;
|
||||
IPAddress[] hostAddresses = Dns.GetHostAddresses(hostName);
|
||||
this.hostEndPoint = new IPEndPoint(hostAddresses[hostAddresses.Length - 1], port);
|
||||
this.clientSocket = new Socket(this.hostEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
|
||||
}
|
||||
|
||||
// Token: 0x06000230 RID: 560 RVA: 0x0004FCAC File Offset: 0x0004DEAC
|
||||
private bool Connect()
|
||||
{
|
||||
bool result;
|
||||
using (SocketAsyncEventArgs socketAsyncEventArgs = new SocketAsyncEventArgs())
|
||||
{
|
||||
socketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
socketAsyncEventArgs.RemoteEndPoint = this.hostEndPoint;
|
||||
socketAsyncEventArgs.Completed += this.OnConnect;
|
||||
this.clientSocket.ConnectAsync(socketAsyncEventArgs);
|
||||
bool flag = Cls_Mc_Mitsubishi.autoConnectEvent.WaitOne(1000);
|
||||
bool flag2 = flag;
|
||||
if (flag2)
|
||||
{
|
||||
this.listenerSocketAsyncEventArgs = new SocketAsyncEventArgs();
|
||||
byte[] array = new byte[255];
|
||||
this.listenerSocketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
this.listenerSocketAsyncEventArgs.SetBuffer(array, 0, array.Length);
|
||||
this.listenerSocketAsyncEventArgs.Completed += this.OnReceive;
|
||||
this.StartListenThread();
|
||||
this.clientSocket.SetKeepAlive(3000UL, 1000UL);
|
||||
result = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000231 RID: 561 RVA: 0x0004FDB0 File Offset: 0x0004DFB0
|
||||
private void Listen()
|
||||
{
|
||||
(this.listenerSocketAsyncEventArgs.UserToken as Socket).ReceiveAsync(this.listenerSocketAsyncEventArgs);
|
||||
}
|
||||
|
||||
// Token: 0x06000232 RID: 562 RVA: 0x0004FDD0 File Offset: 0x0004DFD0
|
||||
private void Send(byte[] message)
|
||||
{
|
||||
bool flag = this.connected;
|
||||
if (flag)
|
||||
{
|
||||
SocketAsyncEventArgs senderSocketAsyncEventArgs = null;
|
||||
List<SocketAsyncEventArgs> obj = Cls_Mc_Mitsubishi.s_lst;
|
||||
lock (obj)
|
||||
{
|
||||
bool flag3 = Cls_Mc_Mitsubishi.s_lst.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
senderSocketAsyncEventArgs = Cls_Mc_Mitsubishi.s_lst[Cls_Mc_Mitsubishi.s_lst.Count - 1];
|
||||
Cls_Mc_Mitsubishi.s_lst.RemoveAt(Cls_Mc_Mitsubishi.s_lst.Count - 1);
|
||||
}
|
||||
}
|
||||
bool flag4 = senderSocketAsyncEventArgs == null;
|
||||
if (flag4)
|
||||
{
|
||||
senderSocketAsyncEventArgs = new SocketAsyncEventArgs();
|
||||
senderSocketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
senderSocketAsyncEventArgs.RemoteEndPoint = this.hostEndPoint;
|
||||
senderSocketAsyncEventArgs.Completed += delegate(object sender, SocketAsyncEventArgs _e)
|
||||
{
|
||||
List<SocketAsyncEventArgs> obj2 = Cls_Mc_Mitsubishi.s_lst;
|
||||
lock (obj2)
|
||||
{
|
||||
Cls_Mc_Mitsubishi.s_lst.Add(senderSocketAsyncEventArgs);
|
||||
}
|
||||
};
|
||||
}
|
||||
senderSocketAsyncEventArgs.SetBuffer(message, 0, message.Length);
|
||||
this.clientSocket.SendAsync(senderSocketAsyncEventArgs);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.connected = false;
|
||||
}
|
||||
this.SendMess = message;
|
||||
}
|
||||
|
||||
// Token: 0x06000233 RID: 563 RVA: 0x0004FF04 File Offset: 0x0004E104
|
||||
private bool Disconnect()
|
||||
{
|
||||
bool result = true;
|
||||
try
|
||||
{
|
||||
this.clientSocket.Shutdown(SocketShutdown.Both);
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result = false;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000234 RID: 564 RVA: 0x0004FF50 File Offset: 0x0004E150
|
||||
private void OnConnect(object sender, SocketAsyncEventArgs e)
|
||||
{
|
||||
Cls_Mc_Mitsubishi.autoConnectEvent.Set();
|
||||
this.connected = (e.SocketError == 0);
|
||||
}
|
||||
|
||||
// Token: 0x06000235 RID: 565 RVA: 0x0004FF70 File Offset: 0x0004E170
|
||||
private void OnReceive(object sender, SocketAsyncEventArgs e)
|
||||
{
|
||||
bool flag = e.BytesTransferred == 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.clientSocket.Connected;
|
||||
if (flag2)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.clientSocket.Shutdown(SocketShutdown.Both);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
bool flag3 = this.clientSocket.Connected;
|
||||
if (flag3)
|
||||
{
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
byte[] info = new byte[]
|
||||
{
|
||||
0
|
||||
};
|
||||
this.OnMsgReceived(info);
|
||||
this.connected = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
byte[] buffer = e.Buffer;
|
||||
this.OnMsgReceived(buffer);
|
||||
this.Listen();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000236 RID: 566 RVA: 0x00050034 File Offset: 0x0004E234
|
||||
private void OnSend(object sender, SocketAsyncEventArgs e)
|
||||
{
|
||||
bool flag = e.SocketError == 0;
|
||||
if (flag)
|
||||
{
|
||||
this.OnSended(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.OnSended(false);
|
||||
this.ProcessError(e);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000237 RID: 567 RVA: 0x00050078 File Offset: 0x0004E278
|
||||
private void ProcessError(SocketAsyncEventArgs e)
|
||||
{
|
||||
Socket socket = e.UserToken as Socket;
|
||||
bool flag = socket.Connected;
|
||||
if (flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
socket.Shutdown(SocketShutdown.Both);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
bool flag2 = socket.Connected;
|
||||
if (flag2)
|
||||
{
|
||||
socket.Close();
|
||||
}
|
||||
}
|
||||
this.connected = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000238 RID: 568 RVA: 0x000500EC File Offset: 0x0004E2EC
|
||||
public void Dispose()
|
||||
{
|
||||
Cls_Mc_Mitsubishi.autoConnectEvent.Close();
|
||||
bool flag = this.clientSocket.Connected;
|
||||
if (flag)
|
||||
{
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000239 RID: 569 RVA: 0x00050124 File Offset: 0x0004E324
|
||||
private void OmronFINS_OnSended(bool successorfalse)
|
||||
{
|
||||
bool flag = !successorfalse;
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600023A RID: 570 RVA: 0x00050140 File Offset: 0x0004E340
|
||||
private void OmronFINS_OnMsgReceived(byte[] info)
|
||||
{
|
||||
bool sendmessHas = this.SendmessHas;
|
||||
if (sendmessHas)
|
||||
{
|
||||
bool flag = info[0] > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = info.Length > 24;
|
||||
if (flag2)
|
||||
{
|
||||
string str = "";
|
||||
for (int i = 0; i < 24; i++)
|
||||
{
|
||||
str += info[i].ToString("X").PadLeft(2, '0');
|
||||
}
|
||||
bool flag3 = int.Parse(info[23].ToString("X").Trim(), NumberStyles.HexNumber) == this.Plcport;
|
||||
if (flag3)
|
||||
{
|
||||
this.PCS = info[19];
|
||||
this.PLCS = info[23];
|
||||
this.SendmessHas = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag4 = info[0] > 0;
|
||||
if (flag4)
|
||||
{
|
||||
bool flag5 = this.SendOrRev2 == 1;
|
||||
if (flag5)
|
||||
{
|
||||
this.SendBack = info;
|
||||
this.SendOrRev2 = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag6 = this.SendOrRev == 2;
|
||||
if (flag6)
|
||||
{
|
||||
this.RecvBack = info;
|
||||
this.SendOrRev = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag7 = this.SendOrRev2 == 1;
|
||||
if (flag7)
|
||||
{
|
||||
this.SendBack = new byte[1];
|
||||
this.SendBack[0] = 0;
|
||||
this.SendOrRev2 = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag8 = this.SendOrRev == 2;
|
||||
if (flag8)
|
||||
{
|
||||
this.RecvBack = new byte[1];
|
||||
this.RecvBack[0] = 0;
|
||||
this.SendOrRev = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600023B RID: 571 RVA: 0x000502BD File Offset: 0x0004E4BD
|
||||
private void OmronFINS_StartListenThread()
|
||||
{
|
||||
this.Listen();
|
||||
}
|
||||
|
||||
// Token: 0x0600023C RID: 572 RVA: 0x000502C8 File Offset: 0x0004E4C8
|
||||
public bool OpenLinkPLC()
|
||||
{
|
||||
this.StartListenThread += this.OmronFINS_StartListenThread;
|
||||
this.OnMsgReceived += this.OmronFINS_OnMsgReceived;
|
||||
this.OnSended += this.OmronFINS_OnSended;
|
||||
return this.Connect();
|
||||
}
|
||||
|
||||
// Token: 0x0600023D RID: 573 RVA: 0x00050320 File Offset: 0x0004E520
|
||||
public bool CloseLinkPLC()
|
||||
{
|
||||
return this.Disconnect();
|
||||
}
|
||||
|
||||
// Token: 0x0600023E RID: 574 RVA: 0x00050338 File Offset: 0x0004E538
|
||||
public bool WritePlcData(int address, int value)
|
||||
{
|
||||
byte[] message = new byte[]
|
||||
{
|
||||
80,
|
||||
0,
|
||||
0,
|
||||
byte.MaxValue,
|
||||
byte.MaxValue,
|
||||
3,
|
||||
0,
|
||||
14,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
20,
|
||||
0,
|
||||
0,
|
||||
Convert.ToByte(address % 256),
|
||||
Convert.ToByte(address / 256),
|
||||
0,
|
||||
168,
|
||||
1,
|
||||
0,
|
||||
Convert.ToByte(value % 256),
|
||||
Convert.ToByte(value / 256)
|
||||
};
|
||||
bool result = false;
|
||||
this.SendOrRev2 = 1;
|
||||
this.Send(message);
|
||||
int num = 0;
|
||||
while (this.SendOrRev2 != 0 & this.connected & num < 1000)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
num++;
|
||||
}
|
||||
bool flag = num < 1000;
|
||||
if (flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
bool flag2 = this.SendBack[0] == 208 && this.SendBack[5] == 3 && this.SendBack[7] == 2 && this.SendBack[10] == 0;
|
||||
result = flag2;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SendOrRev2 = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x0600023F RID: 575 RVA: 0x000504B4 File Offset: 0x0004E6B4
|
||||
public bool ReadPlcData(int address, int length, out int[] IntValue)
|
||||
{
|
||||
bool result = false;
|
||||
IntValue = new int[length];
|
||||
this.Send(new byte[]
|
||||
{
|
||||
80,
|
||||
0,
|
||||
0,
|
||||
byte.MaxValue,
|
||||
byte.MaxValue,
|
||||
3,
|
||||
0,
|
||||
12,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
4,
|
||||
0,
|
||||
0,
|
||||
Convert.ToByte(address % 256),
|
||||
Convert.ToByte(address / 256),
|
||||
0,
|
||||
168,
|
||||
Convert.ToByte(length % 256),
|
||||
Convert.ToByte(length / 256)
|
||||
});
|
||||
this.SendOrRev = 2;
|
||||
int num = 0;
|
||||
while (this.SendOrRev != 0 & this.connected & num < 1000)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
num++;
|
||||
}
|
||||
bool flag = num < 1000;
|
||||
if (flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
bool flag2 = this.RecvBack[0] == 208 && this.RecvBack[5] == 3 && this.RecvBack[7] == 22 && this.RecvBack[10] == 0;
|
||||
if (flag2)
|
||||
{
|
||||
result = true;
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
IntValue[i] = (int)this.RecvBack[11 + 2 * i] + (int)this.RecvBack[12 + 2 * i] * 256;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SendOrRev = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x040005F5 RID: 1525
|
||||
public Socket clientSocket;
|
||||
|
||||
// Token: 0x040005F6 RID: 1526
|
||||
public bool connected = false;
|
||||
|
||||
// Token: 0x040005F7 RID: 1527
|
||||
private byte[] SendMess;
|
||||
|
||||
// Token: 0x040005F8 RID: 1528
|
||||
private IPEndPoint hostEndPoint;
|
||||
|
||||
// Token: 0x040005F9 RID: 1529
|
||||
private static AutoResetEvent autoConnectEvent = new AutoResetEvent(false);
|
||||
|
||||
// Token: 0x040005FD RID: 1533
|
||||
private SocketAsyncEventArgs listenerSocketAsyncEventArgs;
|
||||
|
||||
// Token: 0x040005FE RID: 1534
|
||||
private int Plcport;
|
||||
|
||||
// Token: 0x040005FF RID: 1535
|
||||
public static List<SocketAsyncEventArgs> s_lst = new List<SocketAsyncEventArgs>();
|
||||
|
||||
// Token: 0x04000600 RID: 1536
|
||||
private byte PCS;
|
||||
|
||||
// Token: 0x04000601 RID: 1537
|
||||
private byte PLCS;
|
||||
|
||||
// Token: 0x04000602 RID: 1538
|
||||
private int SendOrRev;
|
||||
|
||||
// Token: 0x04000603 RID: 1539
|
||||
private int SendOrRev2;
|
||||
|
||||
// Token: 0x04000604 RID: 1540
|
||||
private byte[] SendBack;
|
||||
|
||||
// Token: 0x04000605 RID: 1541
|
||||
private byte[] RecvBack;
|
||||
|
||||
// Token: 0x04000606 RID: 1542
|
||||
private bool SendmessHas = false;
|
||||
|
||||
// Token: 0x02000041 RID: 65
|
||||
// (Invoke) Token: 0x060002ED RID: 749
|
||||
public delegate void ReceiveMsgHandler(byte[] info);
|
||||
|
||||
// Token: 0x02000042 RID: 66
|
||||
// (Invoke) Token: 0x060002F1 RID: 753
|
||||
public delegate void StartListenHandler();
|
||||
|
||||
// Token: 0x02000043 RID: 67
|
||||
// (Invoke) Token: 0x060002F5 RID: 757
|
||||
public delegate void SendCompleted(bool successorfalse);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace AGVSystem.Cls
|
||||
{
|
||||
// Token: 0x02000027 RID: 39
|
||||
public class Cls_Plc_Info
|
||||
{
|
||||
// Token: 0x02000045 RID: 69
|
||||
public enum Op_Info
|
||||
{
|
||||
// Token: 0x0400068E RID: 1678
|
||||
length_read = 11,
|
||||
// Token: 0x0400068F RID: 1679
|
||||
length_write = 1,
|
||||
// Token: 0x04000690 RID: 1680
|
||||
addr_read = 600,
|
||||
// Token: 0x04000691 RID: 1681
|
||||
addr_write_go = 500,
|
||||
// Token: 0x04000692 RID: 1682
|
||||
addr_mb = 504
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using s7api.net;
|
||||
|
||||
namespace AGVSystem.Cls
|
||||
{
|
||||
// Token: 0x02000028 RID: 40
|
||||
internal class Cls_Profinet_Siemens
|
||||
{
|
||||
// Token: 0x06000242 RID: 578 RVA: 0x00050688 File Offset: 0x0004E888
|
||||
public Cls_Profinet_Siemens(string ip, int rack, int slot)
|
||||
{
|
||||
this.Rack = rack;
|
||||
this.Slot = slot;
|
||||
this.IpAddress = ip;
|
||||
}
|
||||
|
||||
// Token: 0x06000243 RID: 579 RVA: 0x000506D8 File Offset: 0x0004E8D8
|
||||
public bool Connect()
|
||||
{
|
||||
int num = this.client_profinet.ConnectTo(this.IpAddress, this.Rack, this.Slot);
|
||||
return num == 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000244 RID: 580 RVA: 0x00050718 File Offset: 0x0004E918
|
||||
public bool Disconnect()
|
||||
{
|
||||
int num = this.client_profinet.Disconnect();
|
||||
return num == 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000245 RID: 581 RVA: 0x00050748 File Offset: 0x0004E948
|
||||
public bool Read(int dbNumber, int start_address, int size, byte[] buffer)
|
||||
{
|
||||
int num = this.client_profinet.DBRead(dbNumber, start_address, size, buffer);
|
||||
bool flag = num != 0;
|
||||
return !flag;
|
||||
}
|
||||
|
||||
// Token: 0x06000246 RID: 582 RVA: 0x0005077C File Offset: 0x0004E97C
|
||||
public bool Write(int dbNumber, int start_address, int size, byte[] buffer)
|
||||
{
|
||||
int num = this.client_profinet.DBWrite(dbNumber, start_address, size, buffer);
|
||||
bool flag = num != 0;
|
||||
return !flag;
|
||||
}
|
||||
|
||||
// Token: 0x04000607 RID: 1543
|
||||
private S7Client client_profinet = new S7Client();
|
||||
|
||||
// Token: 0x04000608 RID: 1544
|
||||
private int Rack = 0;
|
||||
|
||||
// Token: 0x04000609 RID: 1545
|
||||
private int Slot = 0;
|
||||
|
||||
// Token: 0x0400060A RID: 1546
|
||||
private string IpAddress = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace AGVSystem.Cls
|
||||
{
|
||||
// Token: 0x02000029 RID: 41
|
||||
public class FileRW
|
||||
{
|
||||
// Token: 0x06000247 RID: 583
|
||||
[DllImport("kernel32")]
|
||||
public static extern long WritePrivateProfileString(string section, string key, string val, string filePath);
|
||||
|
||||
// Token: 0x06000248 RID: 584
|
||||
[DllImport("kernel32")]
|
||||
public static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath);
|
||||
|
||||
// Token: 0x06000249 RID: 585 RVA: 0x000507B0 File Offset: 0x0004E9B0
|
||||
public static string ReadIniValue(string Section, string Key, string file)
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder(1024);
|
||||
FileRW.GetPrivateProfileString(Section, Key, "", stringBuilder, 1024, file);
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
|
||||
// Token: 0x0600024A RID: 586 RVA: 0x000507E8 File Offset: 0x0004E9E8
|
||||
public static long WriteIniValue(string Section, string Key, string value, string file)
|
||||
{
|
||||
return FileRW.WritePrivateProfileString(Section, Key, value, file);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,519 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace AGVSystem.Cls
|
||||
{
|
||||
// Token: 0x0200002B RID: 43
|
||||
internal class OmrlonHostlink
|
||||
{
|
||||
// Token: 0x1400000B RID: 11
|
||||
// (add) Token: 0x06000270 RID: 624 RVA: 0x00052504 File Offset: 0x00050704
|
||||
// (remove) Token: 0x06000271 RID: 625 RVA: 0x0005253C File Offset: 0x0005073C
|
||||
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public event OmrlonHostlink.StartListeHandler StartListen;
|
||||
|
||||
// Token: 0x1400000C RID: 12
|
||||
// (add) Token: 0x06000272 RID: 626 RVA: 0x00052574 File Offset: 0x00050774
|
||||
// (remove) Token: 0x06000273 RID: 627 RVA: 0x000525AC File Offset: 0x000507AC
|
||||
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public event OmrlonHostlink.ReceiveMsgHandler OnMsgReceived;
|
||||
|
||||
// Token: 0x06000274 RID: 628 RVA: 0x000525E4 File Offset: 0x000507E4
|
||||
public OmrlonHostlink(string hostName, int port)
|
||||
{
|
||||
this.IPAdress = hostName;
|
||||
IPAddress[] hostAddresses = Dns.GetHostAddresses(hostName);
|
||||
this.hostEndPoint = new IPEndPoint(hostAddresses[hostAddresses.Length - 1], port);
|
||||
this.clientSocket = new Socket(this.hostEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
|
||||
}
|
||||
|
||||
// Token: 0x06000275 RID: 629 RVA: 0x00052650 File Offset: 0x00050850
|
||||
private bool Connect()
|
||||
{
|
||||
bool result;
|
||||
using (SocketAsyncEventArgs socketAsyncEventArgs = new SocketAsyncEventArgs())
|
||||
{
|
||||
socketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
socketAsyncEventArgs.RemoteEndPoint = this.hostEndPoint;
|
||||
socketAsyncEventArgs.Completed += this.OnConnect;
|
||||
this.clientSocket.ConnectAsync(socketAsyncEventArgs);
|
||||
bool flag = this.autoConnectEvent.WaitOne(1000);
|
||||
bool flag2 = flag;
|
||||
if (flag2)
|
||||
{
|
||||
this.lisnterSocketAsyncEventArgs = new SocketAsyncEventArgs();
|
||||
byte[] array = new byte[50];
|
||||
this.lisnterSocketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
this.lisnterSocketAsyncEventArgs.SetBuffer(array, 0, array.Length);
|
||||
this.lisnterSocketAsyncEventArgs.Completed += this.OnReceive;
|
||||
this.StartListen();
|
||||
result = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000276 RID: 630 RVA: 0x00052738 File Offset: 0x00050938
|
||||
private void OnConnect(object sender, SocketAsyncEventArgs e)
|
||||
{
|
||||
this.connected = (e.SocketError == 0);
|
||||
this.autoConnectEvent.Set();
|
||||
}
|
||||
|
||||
// Token: 0x06000277 RID: 631 RVA: 0x00052758 File Offset: 0x00050958
|
||||
public void Send(string mes)
|
||||
{
|
||||
bool flag = this.connected;
|
||||
if (flag)
|
||||
{
|
||||
EventHandler<SocketAsyncEventArgs> eventHandler = null;
|
||||
byte[] bytes = Encoding.Default.GetBytes(mes);
|
||||
SocketAsyncEventArgs senderSocketAsyncEventArgs = null;
|
||||
List<SocketAsyncEventArgs> obj = this.s_lst;
|
||||
lock (obj)
|
||||
{
|
||||
bool flag3 = this.s_lst.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
senderSocketAsyncEventArgs = this.s_lst[this.s_lst.Count - 1];
|
||||
this.s_lst.RemoveAt(this.s_lst.Count - 1);
|
||||
}
|
||||
}
|
||||
bool flag4 = senderSocketAsyncEventArgs == null;
|
||||
if (flag4)
|
||||
{
|
||||
senderSocketAsyncEventArgs = new SocketAsyncEventArgs();
|
||||
senderSocketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
senderSocketAsyncEventArgs.RemoteEndPoint = this.clientSocket.RemoteEndPoint;
|
||||
bool flag5 = eventHandler == null;
|
||||
if (flag5)
|
||||
{
|
||||
eventHandler = delegate(object sender, SocketAsyncEventArgs _e)
|
||||
{
|
||||
List<SocketAsyncEventArgs> obj2 = this.s_lst;
|
||||
lock (obj2)
|
||||
{
|
||||
this.s_lst.Add(senderSocketAsyncEventArgs);
|
||||
}
|
||||
};
|
||||
}
|
||||
senderSocketAsyncEventArgs.Completed += eventHandler;
|
||||
}
|
||||
senderSocketAsyncEventArgs.SetBuffer(bytes, 0, bytes.Length);
|
||||
this.clientSocket.SendAsync(senderSocketAsyncEventArgs);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.connected = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000278 RID: 632 RVA: 0x000528B4 File Offset: 0x00050AB4
|
||||
public void Listen()
|
||||
{
|
||||
bool flag = this.connected && this.clientSocket != null;
|
||||
if (flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
(this.lisnterSocketAsyncEventArgs.UserToken as Socket).ReceiveAsync(this.lisnterSocketAsyncEventArgs);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000279 RID: 633 RVA: 0x00052914 File Offset: 0x00050B14
|
||||
private int Disconnect()
|
||||
{
|
||||
int result = 0;
|
||||
try
|
||||
{
|
||||
this.clientSocket.Shutdown(SocketShutdown.Both);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
try
|
||||
{
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
this.connected = false;
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x0600027A RID: 634 RVA: 0x00052978 File Offset: 0x00050B78
|
||||
private void OnReceive(object sender, SocketAsyncEventArgs e)
|
||||
{
|
||||
bool flag = e.BytesTransferred == 0;
|
||||
if (flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.clientSocket.Shutdown(SocketShutdown.Both);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
bool flag2 = this.clientSocket.Connected;
|
||||
if (flag2)
|
||||
{
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
}
|
||||
byte[] info = new byte[1];
|
||||
this.OnMsgReceived(info);
|
||||
}
|
||||
else
|
||||
{
|
||||
byte[] array = new byte[e.BytesTransferred];
|
||||
for (int i = 0; i < e.BytesTransferred; i++)
|
||||
{
|
||||
array[i] = e.Buffer[i];
|
||||
}
|
||||
this.OnMsgReceived(array);
|
||||
this.Listen();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600027B RID: 635 RVA: 0x00052A4C File Offset: 0x00050C4C
|
||||
private void OmrlonSocketClient_OnMsgReceived(byte[] info)
|
||||
{
|
||||
bool flag = info[0] > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.SendOrRecv == 1;
|
||||
if (flag2)
|
||||
{
|
||||
this.SendDataPro = info;
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag3 = this.SendOrRecv == 2;
|
||||
if (flag3)
|
||||
{
|
||||
this.SendData = info;
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag4 = this.SendOrRecv == 3;
|
||||
if (flag4)
|
||||
{
|
||||
this.RecvDataPro = info;
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag5 = this.SendOrRecv == 4;
|
||||
if (flag5)
|
||||
{
|
||||
this.RecvData = info;
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag6 = this.SendOrRecv == 1;
|
||||
if (flag6)
|
||||
{
|
||||
this.SendDataPro = new byte[1];
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag7 = this.SendOrRecv == 2;
|
||||
if (flag7)
|
||||
{
|
||||
this.SendData = new byte[1];
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag8 = this.SendOrRecv == 3;
|
||||
if (flag8)
|
||||
{
|
||||
this.RecvDataPro = new byte[1];
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag9 = this.SendOrRecv == 4;
|
||||
if (flag9)
|
||||
{
|
||||
this.RecvData = new byte[1];
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600027C RID: 636 RVA: 0x00052B84 File Offset: 0x00050D84
|
||||
public bool OpenLinkPLC()
|
||||
{
|
||||
this.StartListen += this.OmrlonSocketClient_StartListen;
|
||||
this.OnMsgReceived += this.OmrlonSocketClient_OnMsgReceived;
|
||||
bool flag = this.Connect();
|
||||
bool flag2 = !flag;
|
||||
return !flag2 || flag;
|
||||
}
|
||||
|
||||
// Token: 0x0600027D RID: 637 RVA: 0x00052BD4 File Offset: 0x00050DD4
|
||||
public int CloseLinkPLC()
|
||||
{
|
||||
return this.Disconnect();
|
||||
}
|
||||
|
||||
// Token: 0x0600027E RID: 638 RVA: 0x00052BEC File Offset: 0x00050DEC
|
||||
private void OmrlonSocketClient_StartListen()
|
||||
{
|
||||
this.Listen();
|
||||
}
|
||||
|
||||
// Token: 0x0600027F RID: 639 RVA: 0x00052BF8 File Offset: 0x00050DF8
|
||||
private string FCS(string Value)
|
||||
{
|
||||
int num = 0;
|
||||
for (int i = 0; i < Value.Length; i++)
|
||||
{
|
||||
byte[] bytes = Encoding.ASCII.GetBytes(Value.Substring(i, 1));
|
||||
num ^= (int)bytes[0];
|
||||
}
|
||||
return num.ToString("X");
|
||||
}
|
||||
|
||||
// Token: 0x06000280 RID: 640 RVA: 0x00052C4C File Offset: 0x00050E4C
|
||||
public int WritePlcDMValue(string stationNO, int address, string value)
|
||||
{
|
||||
int result = -1;
|
||||
string text = address.ToString().PadLeft(4, '0');
|
||||
stationNO = stationNO.PadLeft(2, '0');
|
||||
string text2 = string.Concat(new string[]
|
||||
{
|
||||
"@",
|
||||
stationNO,
|
||||
"WD",
|
||||
text,
|
||||
value
|
||||
});
|
||||
text2 = string.Concat(new object[]
|
||||
{
|
||||
text2,
|
||||
this.FCS(text2),
|
||||
"*",
|
||||
'\r'
|
||||
});
|
||||
this.SendOrRecv = 1;
|
||||
int num = 0;
|
||||
this.Send(text2);
|
||||
while (this.SendOrRecv != 0 && num < 500)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
num++;
|
||||
}
|
||||
bool flag = num < 500;
|
||||
if (flag)
|
||||
{
|
||||
string @string = Encoding.Default.GetString(this.SendDataPro, 0, this.SendDataPro.Length);
|
||||
bool flag2 = @string.Length > 7;
|
||||
if (flag2)
|
||||
{
|
||||
bool flag3 = @string.Substring(5, 2) == "00" && @string.Substring(3, 2) == "WD" && @string.Substring(0, 1) == "@" && @string.Substring(@string.Length - 1, 1) == "\r";
|
||||
if (flag3)
|
||||
{
|
||||
result = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000281 RID: 641 RVA: 0x00052DD0 File Offset: 0x00050FD0
|
||||
public int ReadPlcDMValue(string PlcNo, int Addr, out int value)
|
||||
{
|
||||
bool flag = Addr == 3000;
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
int result = -1;
|
||||
value = -1;
|
||||
string text = Addr.ToString().PadLeft(4, '0');
|
||||
PlcNo = PlcNo.PadLeft(2, '0');
|
||||
string text2 = string.Concat(new string[]
|
||||
{
|
||||
"@",
|
||||
PlcNo,
|
||||
"RD",
|
||||
text,
|
||||
"0001"
|
||||
});
|
||||
text2 = string.Concat(new object[]
|
||||
{
|
||||
text2,
|
||||
this.FCS(text2),
|
||||
"*",
|
||||
'\r'
|
||||
});
|
||||
this.SendOrRecv = 3;
|
||||
int num = 0;
|
||||
this.Send(text2);
|
||||
while (this.SendOrRecv != 0 && num < 500)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
num++;
|
||||
}
|
||||
bool flag2 = num < 500;
|
||||
if (flag2)
|
||||
{
|
||||
string @string = Encoding.Default.GetString(this.RecvDataPro, 0, this.RecvDataPro.Length);
|
||||
bool flag3 = @string.Length > 11;
|
||||
if (flag3)
|
||||
{
|
||||
bool flag4 = @string.Substring(5, 2) == "00" && @string.Substring(3, 2) == "RD" && @string.Substring(0, 1) == "@" && @string.Substring(@string.Length - 1, 1) == "\r";
|
||||
if (flag4)
|
||||
{
|
||||
value = int.Parse(@string.Trim().Substring(7, 4), NumberStyles.HexNumber);
|
||||
result = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000282 RID: 642 RVA: 0x00052F8C File Offset: 0x0005118C
|
||||
public int ReadPlcHRValue(string PlcNo, int Addr, out int Value)
|
||||
{
|
||||
int result = -1;
|
||||
Value = -1;
|
||||
string text = Addr.ToString().PadLeft(4, '0');
|
||||
PlcNo = PlcNo.PadLeft(2, '0');
|
||||
string text2 = string.Concat(new string[]
|
||||
{
|
||||
"@",
|
||||
PlcNo,
|
||||
"RH",
|
||||
text,
|
||||
"0001"
|
||||
});
|
||||
text2 = string.Concat(new object[]
|
||||
{
|
||||
text2,
|
||||
this.FCS(text2),
|
||||
"*",
|
||||
'\r'
|
||||
});
|
||||
this.SendOrRecv = 4;
|
||||
int num = 0;
|
||||
this.Send(text2);
|
||||
while (this.SendOrRecv != 0 && num < 500)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
num++;
|
||||
}
|
||||
bool flag = num < 500;
|
||||
if (flag)
|
||||
{
|
||||
string @string = Encoding.Default.GetString(this.RecvData, 0, this.RecvData.Length);
|
||||
bool flag2 = @string.Length > 11;
|
||||
if (flag2)
|
||||
{
|
||||
bool flag3 = @string.Substring(5, 2) == "00" && @string.Substring(3, 2) == "RH" && @string.Substring(0, 1) == "@" && @string.Substring(@string.Length - 1, 1) == "\r";
|
||||
if (flag3)
|
||||
{
|
||||
Value = int.Parse(@string.Trim().Substring(7, 4), NumberStyles.HexNumber);
|
||||
result = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SendOrRecv = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000283 RID: 643 RVA: 0x00053130 File Offset: 0x00051330
|
||||
public void Dispose()
|
||||
{
|
||||
bool flag = this.clientSocket.Connected;
|
||||
if (flag)
|
||||
{
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400061F RID: 1567
|
||||
public string IPAdress;
|
||||
|
||||
// Token: 0x04000620 RID: 1568
|
||||
public bool connected = false;
|
||||
|
||||
// Token: 0x04000621 RID: 1569
|
||||
public Socket clientSocket;
|
||||
|
||||
// Token: 0x04000622 RID: 1570
|
||||
private IPEndPoint hostEndPoint;
|
||||
|
||||
// Token: 0x04000623 RID: 1571
|
||||
private byte[] SendDataPro;
|
||||
|
||||
// Token: 0x04000624 RID: 1572
|
||||
private byte[] RecvDataPro;
|
||||
|
||||
// Token: 0x04000625 RID: 1573
|
||||
private byte[] SendData;
|
||||
|
||||
// Token: 0x04000626 RID: 1574
|
||||
private byte[] RecvData;
|
||||
|
||||
// Token: 0x04000627 RID: 1575
|
||||
private byte SendOrRecv;
|
||||
|
||||
// Token: 0x04000628 RID: 1576
|
||||
private AutoResetEvent autoConnectEvent = new AutoResetEvent(false);
|
||||
|
||||
// Token: 0x04000629 RID: 1577
|
||||
private SocketAsyncEventArgs lisnterSocketAsyncEventArgs;
|
||||
|
||||
// Token: 0x0400062C RID: 1580
|
||||
private List<SocketAsyncEventArgs> s_lst = new List<SocketAsyncEventArgs>();
|
||||
|
||||
// Token: 0x0200004A RID: 74
|
||||
// (Invoke) Token: 0x06000309 RID: 777
|
||||
public delegate void StartListeHandler();
|
||||
|
||||
// Token: 0x0200004B RID: 75
|
||||
// (Invoke) Token: 0x0600030D RID: 781
|
||||
public delegate void ReceiveMsgHandler(byte[] info);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,174 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Threading;
|
||||
using Agv_Info;
|
||||
using IO_Card_1730U;
|
||||
|
||||
namespace AGVSystem.Cls
|
||||
{
|
||||
// Token: 0x0200002C RID: 44
|
||||
public class Param
|
||||
{
|
||||
// Token: 0x0400062D RID: 1581
|
||||
public static bool Exit_Lg_Flag = false;
|
||||
|
||||
// Token: 0x0400062E RID: 1582
|
||||
public static bool StartFlag = false;
|
||||
|
||||
// Token: 0x0400062F RID: 1583
|
||||
public static string UserName = "";
|
||||
|
||||
// Token: 0x04000630 RID: 1584
|
||||
public static string Password = "";
|
||||
|
||||
// Token: 0x04000631 RID: 1585
|
||||
public static string UserName_temp = "";
|
||||
|
||||
// Token: 0x04000632 RID: 1586
|
||||
public static string Password_temp = "";
|
||||
|
||||
// Token: 0x04000633 RID: 1587
|
||||
public static Color backcolor;
|
||||
|
||||
// Token: 0x04000634 RID: 1588
|
||||
public static int Icon_Size = 32;
|
||||
|
||||
// Token: 0x04000635 RID: 1589
|
||||
public static bool Write_log;
|
||||
|
||||
// Token: 0x04000636 RID: 1590
|
||||
public static bool Display_CrossID = true;
|
||||
|
||||
// Token: 0x04000637 RID: 1591
|
||||
public static bool Hand1_St = false;
|
||||
|
||||
// Token: 0x04000638 RID: 1592
|
||||
public static bool Hand2_St = false;
|
||||
|
||||
// Token: 0x04000639 RID: 1593
|
||||
public static int Hand1_Agv_St = 0;
|
||||
|
||||
// Token: 0x0400063A RID: 1594
|
||||
public static int Hand2_Agv_St = 0;
|
||||
|
||||
// Token: 0x0400063B RID: 1595
|
||||
public static bool HandLoc1_Go = false;
|
||||
|
||||
// Token: 0x0400063C RID: 1596
|
||||
public static bool HandLoc2_Go = false;
|
||||
|
||||
// Token: 0x0400063D RID: 1597
|
||||
public static bool BY1_GO = false;
|
||||
|
||||
// Token: 0x0400063E RID: 1598
|
||||
public static bool BY1_Leave = false;
|
||||
|
||||
// Token: 0x0400063F RID: 1599
|
||||
public static bool BY2_GO = false;
|
||||
|
||||
// Token: 0x04000640 RID: 1600
|
||||
public static bool BY2_Leave = false;
|
||||
|
||||
// Token: 0x04000641 RID: 1601
|
||||
public static string map1_path = "";
|
||||
|
||||
// Token: 0x04000642 RID: 1602
|
||||
public static string map2_path = "";
|
||||
|
||||
// Token: 0x04000643 RID: 1603
|
||||
public static string map3_path = "";
|
||||
|
||||
// Token: 0x04000644 RID: 1604
|
||||
public static bool map1_status = true;
|
||||
|
||||
// Token: 0x04000645 RID: 1605
|
||||
public static bool map2_status = false;
|
||||
|
||||
// Token: 0x04000646 RID: 1606
|
||||
public static bool map3_status = false;
|
||||
|
||||
// Token: 0x04000647 RID: 1607
|
||||
public static bool Location_ID_Dispaly = true;
|
||||
|
||||
// Token: 0x04000648 RID: 1608
|
||||
public static string connectStr = "";
|
||||
|
||||
// Token: 0x04000649 RID: 1609
|
||||
public static string Pro_id = "";
|
||||
|
||||
// Token: 0x0400064A RID: 1610
|
||||
public static string Pro_factory = "";
|
||||
|
||||
// Token: 0x0400064B RID: 1611
|
||||
public static string Pro_remark = "";
|
||||
|
||||
// Token: 0x0400064C RID: 1612
|
||||
public static int Day_Count = 15;
|
||||
|
||||
// Token: 0x0400064D RID: 1613
|
||||
public static int Card1_Interval = 0;
|
||||
|
||||
// Token: 0x0400064E RID: 1614
|
||||
public static int Card2_Interval = 0;
|
||||
|
||||
// Token: 0x0400064F RID: 1615
|
||||
public static int Card3_Interval = 0;
|
||||
|
||||
// Token: 0x04000650 RID: 1616
|
||||
public static IO_Card card1;
|
||||
|
||||
// Token: 0x04000651 RID: 1617
|
||||
public static IO_Card card2;
|
||||
|
||||
// Token: 0x04000652 RID: 1618
|
||||
public static IO_Card card3;
|
||||
|
||||
// Token: 0x04000653 RID: 1619
|
||||
public static Thread[] th_GetData;
|
||||
|
||||
// Token: 0x04000654 RID: 1620
|
||||
public static byte AGV_Qty = 0;
|
||||
|
||||
// Token: 0x04000655 RID: 1621
|
||||
public static AgvInfo agvinfocls = new AgvInfo();
|
||||
|
||||
// Token: 0x04000656 RID: 1622
|
||||
public static Type t;
|
||||
|
||||
// Token: 0x04000657 RID: 1623
|
||||
public static bool Auto_Control = false;
|
||||
|
||||
// Token: 0x04000658 RID: 1624
|
||||
public static bool Load_Path_His = false;
|
||||
|
||||
// Token: 0x04000659 RID: 1625
|
||||
public static byte PLC_Type = 0;
|
||||
|
||||
// Token: 0x0400065A RID: 1626
|
||||
public static bool Agv_Location_Auto_Display = false;
|
||||
|
||||
// Token: 0x0400065B RID: 1627
|
||||
public static byte Map_ID = 1;
|
||||
|
||||
// Token: 0x0400065C RID: 1628
|
||||
public static int Thread_Count = -1;
|
||||
|
||||
// Token: 0x0400065D RID: 1629
|
||||
public static bool Frm_Ischild = false;
|
||||
|
||||
// Token: 0x0400065E RID: 1630
|
||||
public static string Xj_Time1 = "";
|
||||
|
||||
// Token: 0x0400065F RID: 1631
|
||||
public static string Xj_Time2 = "";
|
||||
|
||||
// Token: 0x04000660 RID: 1632
|
||||
public static bool Exit_Flag = false;
|
||||
|
||||
// Token: 0x04000661 RID: 1633
|
||||
public static int Wait_Time1 = 0;
|
||||
|
||||
// Token: 0x04000662 RID: 1634
|
||||
public static int Wait_Time2 = 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.A17168;
|
||||
|
||||
namespace AGVSystem.Cls
|
||||
{
|
||||
// Token: 0x0200002D RID: 45
|
||||
internal class Path_Reset
|
||||
{
|
||||
// Token: 0x06000286 RID: 646 RVA: 0x000532C0 File Offset: 0x000514C0
|
||||
public static void label12_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = ((Label)sender).Tag.ToString() == "";
|
||||
if (!flag)
|
||||
{
|
||||
bool flag2 = MessageBox.Show("是否复位该路口?", "消息", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) == DialogResult.No;
|
||||
if (!flag2)
|
||||
{
|
||||
int[] array = new int[]
|
||||
{
|
||||
(int)Convert.ToInt16(((Label)sender).Tag.ToString().Split(new char[]
|
||||
{
|
||||
'-'
|
||||
})[0]),
|
||||
(int)Convert.ToInt16(((Label)sender).Tag.ToString().Split(new char[]
|
||||
{
|
||||
'-'
|
||||
})[1])
|
||||
};
|
||||
Path_Reset.ClearOtherLand(array[1]);
|
||||
for (int i = 0; i < mainfrm.ds_CrossInfo.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string text = mainfrm.ds_CrossInfo.Tables[0].Rows[i]["当前地标编号"].ToString();
|
||||
string text2 = mainfrm.ds_CrossInfo.Tables[0].Rows[i]["AGV编号"].ToString();
|
||||
bool flag3 = mainfrm.ds_CrossInfo.Tables[0].Rows[i]["当前产线编号"].ToString() == array[0].ToString() && mainfrm.ds_CrossInfo.Tables[0].Rows[i]["当前地标编号"].ToString() == array[1].ToString() && mainfrm.ds_CrossInfo.Tables[0].Rows[i]["AGV编号"].ToString() != "0";
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("AGV-" + mainfrm.ds_CrossInfo.Tables[0].Rows[i]["AGV编号"].ToString() + "占用路口信息被清除!");
|
||||
mainfrm.ds_CrossInfo.Tables[0].Rows[i]["AGV编号"] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000287 RID: 647 RVA: 0x00053524 File Offset: 0x00051724
|
||||
private static void ClearOtherLand(int land)
|
||||
{
|
||||
try
|
||||
{
|
||||
foreach (TrafficModel trafficModel in Frm_A17168.autoLeavedDic)
|
||||
{
|
||||
bool flag = trafficModel.agvId == 0 || trafficModel.areaCode != land.ToString();
|
||||
if (!flag)
|
||||
{
|
||||
bool flag2 = Frm_A17168.businessCtrl.ByLeaved(trafficModel.agvId.ToString(), land.ToString(), trafficModel.areaCode.ToString());
|
||||
WriteTxt.SaveLog1(trafficModel.areaCode.ToString() + "手动释放,返回的值" + flag2.ToString(), "放行日志" + trafficModel.agvId.ToString(), "插件日志");
|
||||
bool flag3 = flag2;
|
||||
if (flag3)
|
||||
{
|
||||
Frm_A17168.leavedDic[trafficModel.agvId] = 0;
|
||||
trafficModel.agvId = 0;
|
||||
WriteTxt.SaveLog1(trafficModel.areaCode.ToString() + "路口已手动归还", "放行日志" + trafficModel.agvId.ToString(), "插件日志");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace AGVSystem.Cls
|
||||
{
|
||||
// Token: 0x0200002E RID: 46
|
||||
public static class SocketExtensions
|
||||
{
|
||||
// Token: 0x06000289 RID: 649 RVA: 0x00053698 File Offset: 0x00051898
|
||||
public static bool SetKeepAlive(this Socket socket, ulong time, ulong interval)
|
||||
{
|
||||
try
|
||||
{
|
||||
ulong[] array = new ulong[]
|
||||
{
|
||||
(time == 0UL || interval == 0UL) ? 0UL : 1UL,
|
||||
time,
|
||||
interval
|
||||
};
|
||||
byte[] array2 = new byte[12];
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
{
|
||||
array2[i * 4 + 3] = (byte)(array[i] >> 24 & 255UL);
|
||||
array2[i * 4 + 2] = (byte)(array[i] >> 16 & 255UL);
|
||||
array2[i * 4 + 1] = (byte)(array[i] >> 8 & 255UL);
|
||||
array2[i * 4] = (byte)(array[i] & 255UL);
|
||||
}
|
||||
byte[] bytes = BitConverter.GetBytes(0);
|
||||
socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.KeepAlive, true);
|
||||
socket.IOControl((IOControlCode)((ulong)-1744830460), array2, bytes);
|
||||
}
|
||||
catch (SocketException ex)
|
||||
{
|
||||
Console.WriteLine("Failed to set keep-alive: {0} {1}", ex.ErrorCode, ex);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x04000663 RID: 1635
|
||||
private const int BytesPerLong = 4;
|
||||
|
||||
// Token: 0x04000664 RID: 1636
|
||||
private const int BitsPerByte = 8;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,313 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200000A RID: 10
|
||||
public class ClsDBConn_sql
|
||||
{
|
||||
// Token: 0x06000094 RID: 148
|
||||
[DllImport("kernel32")]
|
||||
private static extern uint GetTickCount();
|
||||
|
||||
// Token: 0x06000095 RID: 149 RVA: 0x00011450 File Offset: 0x0000F650
|
||||
public void ConnClosed()
|
||||
{
|
||||
try
|
||||
{
|
||||
bool flag = this.sqlconn != null;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.sqlconn.State == ConnectionState.Open;
|
||||
if (flag2)
|
||||
{
|
||||
this.sqlconn.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000096 RID: 150 RVA: 0x000114A8 File Offset: 0x0000F6A8
|
||||
public DataSet connDt(string str)
|
||||
{
|
||||
DataSet result;
|
||||
try
|
||||
{
|
||||
bool flag = this.sqlconn.State != ConnectionState.Open;
|
||||
if (flag)
|
||||
{
|
||||
this.sqlconn.Open();
|
||||
}
|
||||
this.sqladapter = new SqlDataAdapter(str, this.sqlconn);
|
||||
this.sqlcommandb = new SqlCommandBuilder(this.sqladapter);
|
||||
bool flag2 = this.dt.Tables.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
this.dt.Tables.Clear();
|
||||
}
|
||||
this.sqladapter.Fill(this.dt);
|
||||
result = this.dt;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(string.Concat(new string[]
|
||||
{
|
||||
"SQL:",
|
||||
str,
|
||||
" , \r\n",
|
||||
ex.Message,
|
||||
" \r\n FunctionName:connDt"
|
||||
}), "错误!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
result = null;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000097 RID: 151 RVA: 0x00011594 File Offset: 0x0000F794
|
||||
public DataSet dtEdit(string str)
|
||||
{
|
||||
DataSet result;
|
||||
try
|
||||
{
|
||||
this.sqladapter = new SqlDataAdapter(str, this.sqlconn);
|
||||
this.sqlcommandb_ds = new SqlCommandBuilder(this.sqladapter);
|
||||
bool flag = this.dt.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.dt.Tables.Clear();
|
||||
}
|
||||
this.sqladapter.Fill(this.dt);
|
||||
result = this.dt;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(string.Concat(new string[]
|
||||
{
|
||||
"SQL:",
|
||||
str,
|
||||
" , \r\n",
|
||||
ex.Message,
|
||||
" \r\n FunctionName:dtEdit"
|
||||
}), "错误!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
result = null;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000098 RID: 152 RVA: 0x00011660 File Offset: 0x0000F860
|
||||
public bool dtCommit(DataSet ds)
|
||||
{
|
||||
try
|
||||
{
|
||||
int count = ds.Tables[0].Rows.Count;
|
||||
this.sqladapter.Update(ds);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000099 RID: 153 RVA: 0x000116B4 File Offset: 0x0000F8B4
|
||||
public bool connDGV(string str, DataGridView dgv)
|
||||
{
|
||||
bool result;
|
||||
try
|
||||
{
|
||||
bool flag = this.sqlconn.State == ConnectionState.Open;
|
||||
if (flag)
|
||||
{
|
||||
this.sqlconn.Close();
|
||||
}
|
||||
this.sqladapter = new SqlDataAdapter(str, this.sqlconn);
|
||||
bool flag2 = this.dt.Tables.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
this.dt.Tables.Clear();
|
||||
}
|
||||
this.sqladapter.Fill(this.dt);
|
||||
bool flag3 = this.dt.Tables.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
dgv.DataSource = this.dt.Tables[0].Copy();
|
||||
}
|
||||
result = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(string.Concat(new string[]
|
||||
{
|
||||
"SQL:",
|
||||
str,
|
||||
" , \r\n",
|
||||
ex.Message,
|
||||
" \r\n FunctionName:connDGV"
|
||||
}), "错误!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
result = false;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x0600009A RID: 154 RVA: 0x000117BC File Offset: 0x0000F9BC
|
||||
public bool connDgvEdit(string str, DataGridView dgv)
|
||||
{
|
||||
bool result;
|
||||
try
|
||||
{
|
||||
bool flag = this.sqlconn.State == ConnectionState.Open;
|
||||
if (flag)
|
||||
{
|
||||
this.sqlconn.Close();
|
||||
}
|
||||
this.sqladapter = new SqlDataAdapter(str, this.sqlconn);
|
||||
bool flag2 = this.dt.Tables.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
this.dt.Tables.Clear();
|
||||
}
|
||||
this.sqladapter.Fill(this.dt);
|
||||
this.sqlcommandb = new SqlCommandBuilder(this.sqladapter);
|
||||
this.bindsource.DataSource = this.dt.Tables[0];
|
||||
dgv.DataSource = this.dt.Tables[0];
|
||||
dgv.DataSource = this.bindsource;
|
||||
result = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(string.Concat(new string[]
|
||||
{
|
||||
"SQL:",
|
||||
str,
|
||||
" , \r\n",
|
||||
ex.Message,
|
||||
" \r\n FunctionName:connDGVEdit"
|
||||
}), "错误!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
result = false;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x0600009B RID: 155 RVA: 0x000118E4 File Offset: 0x0000FAE4
|
||||
public bool DgvCommit(DataGridView dgv)
|
||||
{
|
||||
bool result;
|
||||
try
|
||||
{
|
||||
dgv.EndEdit();
|
||||
this.bindsource.EndEdit();
|
||||
this.sqladapter.Update(this.dt.Tables[0]);
|
||||
result = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message + " \r\n FunctionName:DgvCommit", "错误!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
result = false;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x0600009C RID: 156 RVA: 0x0001195C File Offset: 0x0000FB5C
|
||||
public string Command(string sqlstr)
|
||||
{
|
||||
string result;
|
||||
try
|
||||
{
|
||||
bool flag = this.sqlconn.State != ConnectionState.Open;
|
||||
if (flag)
|
||||
{
|
||||
this.sqlconn.Open();
|
||||
}
|
||||
this.command = new SqlCommand(sqlstr, this.sqlconn);
|
||||
result = this.command.ExecuteNonQuery().ToString();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
result = string.Concat(new string[]
|
||||
{
|
||||
"SQL:",
|
||||
sqlstr,
|
||||
" , \r\n",
|
||||
ex.Message,
|
||||
" \r\n FunctionName:Command"
|
||||
});
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x0600009D RID: 157 RVA: 0x000119FC File Offset: 0x0000FBFC
|
||||
public bool DtCommand(string Sqlstr, string[,] insertValue)
|
||||
{
|
||||
bool result;
|
||||
try
|
||||
{
|
||||
bool flag = this.sqlconn.State == ConnectionState.Open;
|
||||
if (flag)
|
||||
{
|
||||
this.sqlconn.Close();
|
||||
}
|
||||
this.sqladapter = new SqlDataAdapter(Sqlstr, this.sqlconn);
|
||||
bool flag2 = this.dt.Tables.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
this.dt.Tables.Clear();
|
||||
}
|
||||
this.sqlcommandb = new SqlCommandBuilder(this.sqladapter);
|
||||
this.sqladapter.Fill(this.dt);
|
||||
for (int i = 0; i < insertValue.GetLength(0); i++)
|
||||
{
|
||||
DataRow dataRow = this.dt.Tables[0].NewRow();
|
||||
for (int j = 0; j < insertValue.GetLength(1); j++)
|
||||
{
|
||||
dataRow[j] = insertValue[i, j];
|
||||
}
|
||||
this.dt.Tables[0].Rows.Add(dataRow);
|
||||
}
|
||||
this.sqladapter.Update(this.dt);
|
||||
this.sqlconn.Close();
|
||||
result = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, "错误!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
result = false;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x0600009E RID: 158 RVA: 0x00011B64 File Offset: 0x0000FD64
|
||||
public void gg()
|
||||
{
|
||||
this.bindsource.AddNew();
|
||||
this.bindsource.MoveLast();
|
||||
}
|
||||
|
||||
// Token: 0x04000110 RID: 272
|
||||
private DataSet dt = new DataSet();
|
||||
|
||||
// Token: 0x04000111 RID: 273
|
||||
private SqlConnection sqlconn = new SqlConnection(Param.connectStr);
|
||||
|
||||
// Token: 0x04000112 RID: 274
|
||||
private SqlDataAdapter sqladapter = null;
|
||||
|
||||
// Token: 0x04000113 RID: 275
|
||||
private SqlCommandBuilder sqlcommandb = null;
|
||||
|
||||
// Token: 0x04000114 RID: 276
|
||||
private SqlCommandBuilder sqlcommandb_ds = null;
|
||||
|
||||
// Token: 0x04000115 RID: 277
|
||||
private BindingSource bindsource = new BindingSource();
|
||||
|
||||
// Token: 0x04000116 RID: 278
|
||||
private SqlCommand command = null;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
+917
@@ -0,0 +1,917 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200000E RID: 14
|
||||
public partial class Control_Point : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x060000D1 RID: 209 RVA: 0x00014660 File Offset: 0x00012860
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x060000D2 RID: 210 RVA: 0x00014698 File Offset: 0x00012898
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::AGVSystem.Control_Point));
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_linelist = new global::System.Windows.Forms.ComboBox();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.label6 = new global::System.Windows.Forms.Label();
|
||||
this.label7 = new global::System.Windows.Forms.Label();
|
||||
this.num_id = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.num_plcvalue = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.cmb_map = new global::System.Windows.Forms.ComboBox();
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
this.线体 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.线体编号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.线体名称 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.位置编号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.标记值 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.坐标X = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.坐标Y = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.位置坐标 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.绑定方式 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.地图编号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.位置类型 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.障碍物模式 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.速度 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.下一站点1 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.运动模式1 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.运动时间1 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.下一站点2 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.运动模式2 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.运动时间2 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.splitContainer1 = new global::System.Windows.Forms.SplitContainer();
|
||||
this.toolStrip1 = new global::System.Windows.Forms.ToolStrip();
|
||||
this.toolStripButton1 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton4 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton5 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton6 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.panel2 = new global::System.Windows.Forms.Panel();
|
||||
this.groupBox2 = new global::System.Windows.Forms.GroupBox();
|
||||
this.next_longtime1 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label14 = new global::System.Windows.Forms.Label();
|
||||
this.label13 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_run1 = new global::System.Windows.Forms.ComboBox();
|
||||
this.label12 = new global::System.Windows.Forms.Label();
|
||||
this.label11 = new global::System.Windows.Forms.Label();
|
||||
this.next_loc1 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.groupBox1 = new global::System.Windows.Forms.GroupBox();
|
||||
this.txt_zb = new global::System.Windows.Forms.TextBox();
|
||||
this.label10 = new global::System.Windows.Forms.Label();
|
||||
this.num_speed = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label9 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_zhangaiwu = new global::System.Windows.Forms.ComboBox();
|
||||
this.label8 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_type = new global::System.Windows.Forms.ComboBox();
|
||||
this.label5 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_bd = new global::System.Windows.Forms.ComboBox();
|
||||
this.groupBox3 = new global::System.Windows.Forms.GroupBox();
|
||||
this.next_longtime2 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label15 = new global::System.Windows.Forms.Label();
|
||||
this.label16 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_run2 = new global::System.Windows.Forms.ComboBox();
|
||||
this.label17 = new global::System.Windows.Forms.Label();
|
||||
this.label18 = new global::System.Windows.Forms.Label();
|
||||
this.next_loc2 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.groupBox4 = new global::System.Windows.Forms.GroupBox();
|
||||
this.button1 = new global::System.Windows.Forms.Button();
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_id).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_plcvalue).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_longtime1).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_loc1).BeginInit();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_speed).BeginInit();
|
||||
this.groupBox3.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_longtime2).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_loc2).BeginInit();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
base.SuspendLayout();
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(46, 27);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(49, 14);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "线体:";
|
||||
this.cmb_linelist.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.cmb_linelist.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_linelist.FormattingEnabled = true;
|
||||
this.cmb_linelist.Items.AddRange(new object[]
|
||||
{
|
||||
"所有线体"
|
||||
});
|
||||
this.cmb_linelist.Location = new global::System.Drawing.Point(96, 23);
|
||||
this.cmb_linelist.Name = "cmb_linelist";
|
||||
this.cmb_linelist.Size = new global::System.Drawing.Size(319, 22);
|
||||
this.cmb_linelist.TabIndex = 1;
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(18, 73);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label2.TabIndex = 2;
|
||||
this.label2.Text = "位置编号:";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(32, 119);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(63, 14);
|
||||
this.label3.TabIndex = 3;
|
||||
this.label3.Text = "标记值:";
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(17, 39);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label4.TabIndex = 4;
|
||||
this.label4.Text = "位置坐标:";
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new global::System.Drawing.Point(16, 90);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label6.TabIndex = 6;
|
||||
this.label6.Text = "绑定方式:";
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new global::System.Drawing.Point(228, 35);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label7.TabIndex = 9;
|
||||
this.label7.Text = "所属地图:";
|
||||
this.num_id.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.num_id.Location = new global::System.Drawing.Point(96, 68);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown = this.num_id;
|
||||
int[] array = new int[4];
|
||||
array[0] = 10000;
|
||||
numericUpDown.Maximum = new decimal(array);
|
||||
this.num_id.Name = "num_id";
|
||||
this.num_id.Size = new global::System.Drawing.Size(101, 23);
|
||||
this.num_id.TabIndex = 10;
|
||||
this.num_id.ValueChanged += new global::System.EventHandler(this.num_id_ValueChanged);
|
||||
this.num_plcvalue.Location = new global::System.Drawing.Point(96, 114);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown2 = this.num_plcvalue;
|
||||
int[] array2 = new int[4];
|
||||
array2[0] = 10000;
|
||||
numericUpDown2.Maximum = new decimal(array2);
|
||||
this.num_plcvalue.Name = "num_plcvalue";
|
||||
this.num_plcvalue.Size = new global::System.Drawing.Size(102, 23);
|
||||
this.num_plcvalue.TabIndex = 11;
|
||||
this.cmb_map.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_map.FormattingEnabled = true;
|
||||
this.cmb_map.Items.AddRange(new object[]
|
||||
{
|
||||
"NULL",
|
||||
"AGV路线图1",
|
||||
"AGV路线图2",
|
||||
"AGV路线图3"
|
||||
});
|
||||
this.cmb_map.Location = new global::System.Drawing.Point(306, 30);
|
||||
this.cmb_map.Name = "cmb_map";
|
||||
this.cmb_map.Size = new global::System.Drawing.Size(101, 22);
|
||||
this.cmb_map.TabIndex = 14;
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeight = 30;
|
||||
this.dataGridView1.Columns.AddRange(new global::System.Windows.Forms.DataGridViewColumn[]
|
||||
{
|
||||
this.线体,
|
||||
this.线体编号,
|
||||
this.线体名称,
|
||||
this.位置编号,
|
||||
this.标记值,
|
||||
this.坐标X,
|
||||
this.坐标Y,
|
||||
this.位置坐标,
|
||||
this.绑定方式,
|
||||
this.地图编号,
|
||||
this.位置类型,
|
||||
this.障碍物模式,
|
||||
this.速度,
|
||||
this.下一站点1,
|
||||
this.运动模式1,
|
||||
this.运动时间1,
|
||||
this.下一站点2,
|
||||
this.运动模式2,
|
||||
this.运动时间2
|
||||
});
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.GridColor = global::System.Drawing.Color.DimGray;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersWidth = 60;
|
||||
this.dataGridView1.RowTemplate.Height = 30;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(612, 681);
|
||||
this.dataGridView1.TabIndex = 18;
|
||||
this.dataGridView1.RowStateChanged += new global::System.Windows.Forms.DataGridViewRowStateChangedEventHandler(this.dataGridView1_RowStateChanged);
|
||||
this.dataGridView1.DoubleClick += new global::System.EventHandler(this.dataGridView1_DoubleClick);
|
||||
this.线体.DataPropertyName = "线体";
|
||||
this.线体.HeaderText = "线体";
|
||||
this.线体.Name = "线体";
|
||||
this.线体.ReadOnly = true;
|
||||
this.线体编号.DataPropertyName = "线体编号";
|
||||
this.线体编号.HeaderText = "线体编号";
|
||||
this.线体编号.Name = "线体编号";
|
||||
this.线体编号.ReadOnly = true;
|
||||
this.线体编号.Visible = false;
|
||||
this.线体编号.Width = 80;
|
||||
this.线体名称.DataPropertyName = "线体名称";
|
||||
this.线体名称.HeaderText = "线体名称";
|
||||
this.线体名称.Name = "线体名称";
|
||||
this.线体名称.ReadOnly = true;
|
||||
this.线体名称.Visible = false;
|
||||
this.线体名称.Width = 90;
|
||||
this.位置编号.DataPropertyName = "位置编号";
|
||||
this.位置编号.HeaderText = "位置编号";
|
||||
this.位置编号.Name = "位置编号";
|
||||
this.位置编号.ReadOnly = true;
|
||||
this.标记值.DataPropertyName = "标记值";
|
||||
this.标记值.HeaderText = "标记值";
|
||||
this.标记值.Name = "标记值";
|
||||
this.标记值.ReadOnly = true;
|
||||
this.坐标X.DataPropertyName = "坐标X";
|
||||
this.坐标X.HeaderText = "坐标X";
|
||||
this.坐标X.Name = "坐标X";
|
||||
this.坐标X.ReadOnly = true;
|
||||
this.坐标X.Visible = false;
|
||||
this.坐标Y.DataPropertyName = "坐标Y";
|
||||
this.坐标Y.HeaderText = "坐标Y";
|
||||
this.坐标Y.Name = "坐标Y";
|
||||
this.坐标Y.ReadOnly = true;
|
||||
this.坐标Y.Visible = false;
|
||||
this.位置坐标.DataPropertyName = "位置坐标";
|
||||
this.位置坐标.HeaderText = "位置坐标";
|
||||
this.位置坐标.Name = "位置坐标";
|
||||
this.位置坐标.ReadOnly = true;
|
||||
this.绑定方式.DataPropertyName = "绑定方式";
|
||||
this.绑定方式.HeaderText = "绑定方式";
|
||||
this.绑定方式.Name = "绑定方式";
|
||||
this.绑定方式.ReadOnly = true;
|
||||
this.绑定方式.Width = 80;
|
||||
this.地图编号.DataPropertyName = "地图编号";
|
||||
this.地图编号.HeaderText = "地图编号";
|
||||
this.地图编号.Name = "地图编号";
|
||||
this.地图编号.ReadOnly = true;
|
||||
this.地图编号.Width = 80;
|
||||
this.位置类型.DataPropertyName = "位置类型";
|
||||
this.位置类型.HeaderText = "位置类型";
|
||||
this.位置类型.Name = "位置类型";
|
||||
this.位置类型.ReadOnly = true;
|
||||
this.障碍物模式.DataPropertyName = "障碍物模式";
|
||||
this.障碍物模式.HeaderText = "障碍物模式";
|
||||
this.障碍物模式.Name = "障碍物模式";
|
||||
this.障碍物模式.ReadOnly = true;
|
||||
this.速度.DataPropertyName = "速度";
|
||||
this.速度.HeaderText = "速度";
|
||||
this.速度.Name = "速度";
|
||||
this.速度.ReadOnly = true;
|
||||
this.下一站点1.DataPropertyName = "下一站点1";
|
||||
this.下一站点1.HeaderText = "下一站点1";
|
||||
this.下一站点1.Name = "下一站点1";
|
||||
this.下一站点1.ReadOnly = true;
|
||||
this.运动模式1.DataPropertyName = "运动模式1";
|
||||
this.运动模式1.HeaderText = "运动模式1";
|
||||
this.运动模式1.Name = "运动模式1";
|
||||
this.运动模式1.ReadOnly = true;
|
||||
this.运动时间1.DataPropertyName = "运动时间1";
|
||||
this.运动时间1.HeaderText = "运动时间1";
|
||||
this.运动时间1.Name = "运动时间1";
|
||||
this.运动时间1.ReadOnly = true;
|
||||
this.下一站点2.DataPropertyName = "下一站点2";
|
||||
this.下一站点2.HeaderText = "下一站点2";
|
||||
this.下一站点2.Name = "下一站点2";
|
||||
this.下一站点2.ReadOnly = true;
|
||||
this.运动模式2.DataPropertyName = "运动模式2";
|
||||
this.运动模式2.HeaderText = "运动模式2";
|
||||
this.运动模式2.Name = "运动模式2";
|
||||
this.运动模式2.ReadOnly = true;
|
||||
this.运动时间2.DataPropertyName = "运动时间2";
|
||||
this.运动时间2.HeaderText = "运动时间2";
|
||||
this.运动时间2.Name = "运动时间2";
|
||||
this.运动时间2.ReadOnly = true;
|
||||
this.splitContainer1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.splitContainer1.FixedPanel = global::System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer1.Location = new global::System.Drawing.Point(612, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = global::System.Windows.Forms.Orientation.Horizontal;
|
||||
this.splitContainer1.Panel1.Controls.Add(this.toolStrip1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.panel2);
|
||||
this.splitContainer1.Panel2.Font = new global::System.Drawing.Font("宋体", 10.5f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point, 134);
|
||||
this.splitContainer1.Size = new global::System.Drawing.Size(444, 681);
|
||||
this.splitContainer1.SplitterDistance = 70;
|
||||
this.splitContainer1.TabIndex = 25;
|
||||
this.toolStrip1.BackColor = global::System.Drawing.Color.White;
|
||||
this.toolStrip1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.toolStrip1.ImageScalingSize = new global::System.Drawing.Size(64, 64);
|
||||
this.toolStrip1.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.toolStripButton1,
|
||||
this.toolStripButton2,
|
||||
this.toolStripButton3,
|
||||
this.toolStripButton4,
|
||||
this.toolStripButton5,
|
||||
this.toolStripButton6
|
||||
});
|
||||
this.toolStrip1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new global::System.Drawing.Size(444, 70);
|
||||
this.toolStrip1.TabIndex = 26;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
this.toolStripButton1.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton1.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton1.Image");
|
||||
this.toolStripButton1.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new global::System.Drawing.Size(68, 67);
|
||||
this.toolStripButton1.Text = "新建";
|
||||
this.toolStripButton1.Click += new global::System.EventHandler(this.toolStripButton1_Click);
|
||||
this.toolStripButton2.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton2.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton2.Image");
|
||||
this.toolStripButton2.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new global::System.Drawing.Size(68, 67);
|
||||
this.toolStripButton2.Text = "查询";
|
||||
this.toolStripButton2.Click += new global::System.EventHandler(this.toolStripButton2_Click);
|
||||
this.toolStripButton3.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton3.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton3.Image");
|
||||
this.toolStripButton3.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new global::System.Drawing.Size(68, 67);
|
||||
this.toolStripButton3.Text = "添加";
|
||||
this.toolStripButton3.Click += new global::System.EventHandler(this.toolStripButton3_Click);
|
||||
this.toolStripButton4.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton4.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton4.Image");
|
||||
this.toolStripButton4.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton4.Name = "toolStripButton4";
|
||||
this.toolStripButton4.Size = new global::System.Drawing.Size(68, 67);
|
||||
this.toolStripButton4.Text = "删除";
|
||||
this.toolStripButton4.Click += new global::System.EventHandler(this.toolStripButton4_Click);
|
||||
this.toolStripButton5.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton5.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton5.Image");
|
||||
this.toolStripButton5.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton5.Name = "toolStripButton5";
|
||||
this.toolStripButton5.Size = new global::System.Drawing.Size(68, 67);
|
||||
this.toolStripButton5.Text = "更新";
|
||||
this.toolStripButton5.Click += new global::System.EventHandler(this.toolStripButton5_Click);
|
||||
this.toolStripButton6.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton6.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton6.Image");
|
||||
this.toolStripButton6.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton6.Name = "toolStripButton6";
|
||||
this.toolStripButton6.Size = new global::System.Drawing.Size(68, 67);
|
||||
this.toolStripButton6.Text = "保存";
|
||||
this.toolStripButton6.Click += new global::System.EventHandler(this.toolStripButton6_Click);
|
||||
this.panel2.Controls.Add(this.groupBox2);
|
||||
this.panel2.Controls.Add(this.groupBox1);
|
||||
this.panel2.Controls.Add(this.groupBox3);
|
||||
this.panel2.Controls.Add(this.groupBox4);
|
||||
this.panel2.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new global::System.Drawing.Size(444, 607);
|
||||
this.panel2.TabIndex = 19;
|
||||
this.groupBox2.Controls.Add(this.next_longtime1);
|
||||
this.groupBox2.Controls.Add(this.label14);
|
||||
this.groupBox2.Controls.Add(this.label13);
|
||||
this.groupBox2.Controls.Add(this.cmb_run1);
|
||||
this.groupBox2.Controls.Add(this.label12);
|
||||
this.groupBox2.Controls.Add(this.label11);
|
||||
this.groupBox2.Controls.Add(this.next_loc1);
|
||||
this.groupBox2.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox2.Enabled = false;
|
||||
this.groupBox2.Location = new global::System.Drawing.Point(0, 330);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new global::System.Drawing.Size(444, 133);
|
||||
this.groupBox2.TabIndex = 30;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Next Station1";
|
||||
this.next_longtime1.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.next_longtime1.Location = new global::System.Drawing.Point(294, 34);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown3 = this.next_longtime1;
|
||||
int[] array3 = new int[4];
|
||||
array3[0] = 10000;
|
||||
numericUpDown3.Maximum = new decimal(array3);
|
||||
this.next_longtime1.Name = "next_longtime1";
|
||||
this.next_longtime1.Size = new global::System.Drawing.Size(68, 23);
|
||||
this.next_longtime1.TabIndex = 27;
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new global::System.Drawing.Point(365, 39);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new global::System.Drawing.Size(14, 14);
|
||||
this.label14.TabIndex = 28;
|
||||
this.label14.Text = "S";
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new global::System.Drawing.Point(214, 36);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label13.TabIndex = 26;
|
||||
this.label13.Text = "运行时间:";
|
||||
this.cmb_run1.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.cmb_run1.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_run1.FormattingEnabled = true;
|
||||
this.cmb_run1.Items.AddRange(new object[]
|
||||
{
|
||||
"NULL",
|
||||
"沿X轴运动",
|
||||
"沿Y轴运动",
|
||||
"先沿X轴运动,再沿Y轴运动",
|
||||
"先沿Y轴运动,再沿X轴运动",
|
||||
"沿斜线运动"
|
||||
});
|
||||
this.cmb_run1.Location = new global::System.Drawing.Point(84, 82);
|
||||
this.cmb_run1.Name = "cmb_run1";
|
||||
this.cmb_run1.Size = new global::System.Drawing.Size(250, 22);
|
||||
this.cmb_run1.TabIndex = 25;
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new global::System.Drawing.Point(6, 85);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label12.TabIndex = 24;
|
||||
this.label12.Text = "运动模式:";
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new global::System.Drawing.Point(6, 36);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label11.TabIndex = 11;
|
||||
this.label11.Text = "位置编号:";
|
||||
this.next_loc1.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.next_loc1.Location = new global::System.Drawing.Point(84, 34);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown4 = this.next_loc1;
|
||||
int[] array4 = new int[4];
|
||||
array4[0] = 10000;
|
||||
numericUpDown4.Maximum = new decimal(array4);
|
||||
this.next_loc1.Name = "next_loc1";
|
||||
this.next_loc1.Size = new global::System.Drawing.Size(79, 23);
|
||||
this.next_loc1.TabIndex = 12;
|
||||
this.groupBox1.Controls.Add(this.txt_zb);
|
||||
this.groupBox1.Controls.Add(this.label10);
|
||||
this.groupBox1.Controls.Add(this.num_speed);
|
||||
this.groupBox1.Controls.Add(this.label9);
|
||||
this.groupBox1.Controls.Add(this.cmb_zhangaiwu);
|
||||
this.groupBox1.Controls.Add(this.label8);
|
||||
this.groupBox1.Controls.Add(this.cmb_type);
|
||||
this.groupBox1.Controls.Add(this.label4);
|
||||
this.groupBox1.Controls.Add(this.label5);
|
||||
this.groupBox1.Controls.Add(this.cmb_bd);
|
||||
this.groupBox1.Controls.Add(this.label6);
|
||||
this.groupBox1.Controls.Add(this.label7);
|
||||
this.groupBox1.Controls.Add(this.cmb_map);
|
||||
this.groupBox1.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox1.Enabled = false;
|
||||
this.groupBox1.Location = new global::System.Drawing.Point(0, 148);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new global::System.Drawing.Size(444, 182);
|
||||
this.groupBox1.TabIndex = 29;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "基本信息";
|
||||
this.txt_zb.Location = new global::System.Drawing.Point(95, 32);
|
||||
this.txt_zb.Name = "txt_zb";
|
||||
this.txt_zb.Size = new global::System.Drawing.Size(103, 23);
|
||||
this.txt_zb.TabIndex = 29;
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new global::System.Drawing.Point(367, 140);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new global::System.Drawing.Size(56, 14);
|
||||
this.label10.TabIndex = 28;
|
||||
this.label10.Text = "米/分钟";
|
||||
this.num_speed.Location = new global::System.Drawing.Point(306, 134);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown5 = this.num_speed;
|
||||
int[] array5 = new int[4];
|
||||
array5[0] = 10000;
|
||||
numericUpDown5.Maximum = new decimal(array5);
|
||||
this.num_speed.Name = "num_speed";
|
||||
this.num_speed.Size = new global::System.Drawing.Size(56, 23);
|
||||
this.num_speed.TabIndex = 27;
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new global::System.Drawing.Point(228, 139);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label9.TabIndex = 26;
|
||||
this.label9.Text = "设备速度:";
|
||||
this.cmb_zhangaiwu.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.cmb_zhangaiwu.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_zhangaiwu.FormattingEnabled = true;
|
||||
this.cmb_zhangaiwu.Items.AddRange(new object[]
|
||||
{
|
||||
"NULL",
|
||||
"bank1",
|
||||
"bank2",
|
||||
"bank3",
|
||||
"bank4",
|
||||
"bank5",
|
||||
"bank6",
|
||||
"bank7",
|
||||
"bank8",
|
||||
"bank9",
|
||||
"bank10",
|
||||
"bank11",
|
||||
"bank12",
|
||||
"bank13",
|
||||
"bank14",
|
||||
"bank15",
|
||||
"bank16"
|
||||
});
|
||||
this.cmb_zhangaiwu.Location = new global::System.Drawing.Point(95, 136);
|
||||
this.cmb_zhangaiwu.Name = "cmb_zhangaiwu";
|
||||
this.cmb_zhangaiwu.Size = new global::System.Drawing.Size(102, 22);
|
||||
this.cmb_zhangaiwu.TabIndex = 25;
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new global::System.Drawing.Point(3, 141);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new global::System.Drawing.Size(91, 14);
|
||||
this.label8.TabIndex = 24;
|
||||
this.label8.Text = "障碍物模式:";
|
||||
this.cmb_type.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.cmb_type.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_type.FormattingEnabled = true;
|
||||
this.cmb_type.Items.AddRange(new object[]
|
||||
{
|
||||
"管控复位点",
|
||||
"管控停止点"
|
||||
});
|
||||
this.cmb_type.Location = new global::System.Drawing.Point(306, 80);
|
||||
this.cmb_type.Name = "cmb_type";
|
||||
this.cmb_type.Size = new global::System.Drawing.Size(102, 22);
|
||||
this.cmb_type.TabIndex = 23;
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new global::System.Drawing.Point(228, 87);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label5.TabIndex = 22;
|
||||
this.label5.Text = "位置类型:";
|
||||
this.cmb_bd.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_bd.FormattingEnabled = true;
|
||||
this.cmb_bd.Items.AddRange(new object[]
|
||||
{
|
||||
"NULL",
|
||||
"左端",
|
||||
"右端",
|
||||
"顶部",
|
||||
"底部"
|
||||
});
|
||||
this.cmb_bd.Location = new global::System.Drawing.Point(94, 84);
|
||||
this.cmb_bd.Name = "cmb_bd";
|
||||
this.cmb_bd.Size = new global::System.Drawing.Size(102, 22);
|
||||
this.cmb_bd.TabIndex = 21;
|
||||
this.groupBox3.Controls.Add(this.next_longtime2);
|
||||
this.groupBox3.Controls.Add(this.label15);
|
||||
this.groupBox3.Controls.Add(this.label16);
|
||||
this.groupBox3.Controls.Add(this.cmb_run2);
|
||||
this.groupBox3.Controls.Add(this.label17);
|
||||
this.groupBox3.Controls.Add(this.label18);
|
||||
this.groupBox3.Controls.Add(this.next_loc2);
|
||||
this.groupBox3.Dock = global::System.Windows.Forms.DockStyle.Bottom;
|
||||
this.groupBox3.Enabled = false;
|
||||
this.groupBox3.Location = new global::System.Drawing.Point(0, 472);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new global::System.Drawing.Size(444, 135);
|
||||
this.groupBox3.TabIndex = 31;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "Next Station2";
|
||||
this.next_longtime2.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.next_longtime2.Location = new global::System.Drawing.Point(294, 34);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown6 = this.next_longtime2;
|
||||
int[] array6 = new int[4];
|
||||
array6[0] = 10000;
|
||||
numericUpDown6.Maximum = new decimal(array6);
|
||||
this.next_longtime2.Name = "next_longtime2";
|
||||
this.next_longtime2.Size = new global::System.Drawing.Size(68, 23);
|
||||
this.next_longtime2.TabIndex = 27;
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.Location = new global::System.Drawing.Point(365, 39);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new global::System.Drawing.Size(14, 14);
|
||||
this.label15.TabIndex = 28;
|
||||
this.label15.Text = "S";
|
||||
this.label16.AutoSize = true;
|
||||
this.label16.Location = new global::System.Drawing.Point(214, 36);
|
||||
this.label16.Name = "label16";
|
||||
this.label16.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label16.TabIndex = 26;
|
||||
this.label16.Text = "运行时间:";
|
||||
this.cmb_run2.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.cmb_run2.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_run2.FormattingEnabled = true;
|
||||
this.cmb_run2.Items.AddRange(new object[]
|
||||
{
|
||||
"NULL",
|
||||
"沿X轴运动",
|
||||
"沿Y轴运动",
|
||||
"先沿X轴运动,再沿Y轴运动",
|
||||
"先沿Y轴运动,再沿X轴运动",
|
||||
"沿斜线运动"
|
||||
});
|
||||
this.cmb_run2.Location = new global::System.Drawing.Point(84, 81);
|
||||
this.cmb_run2.Name = "cmb_run2";
|
||||
this.cmb_run2.Size = new global::System.Drawing.Size(250, 22);
|
||||
this.cmb_run2.TabIndex = 25;
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new global::System.Drawing.Point(6, 84);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label17.TabIndex = 24;
|
||||
this.label17.Text = "运动模式:";
|
||||
this.label18.AutoSize = true;
|
||||
this.label18.Location = new global::System.Drawing.Point(6, 36);
|
||||
this.label18.Name = "label18";
|
||||
this.label18.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label18.TabIndex = 11;
|
||||
this.label18.Text = "位置编号:";
|
||||
this.next_loc2.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.next_loc2.Location = new global::System.Drawing.Point(84, 34);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown7 = this.next_loc2;
|
||||
int[] array7 = new int[4];
|
||||
array7[0] = 10000;
|
||||
numericUpDown7.Maximum = new decimal(array7);
|
||||
this.next_loc2.Name = "next_loc2";
|
||||
this.next_loc2.Size = new global::System.Drawing.Size(79, 23);
|
||||
this.next_loc2.TabIndex = 12;
|
||||
this.groupBox4.BackColor = global::System.Drawing.Color.FromArgb(192, 255, 192);
|
||||
this.groupBox4.Controls.Add(this.button1);
|
||||
this.groupBox4.Controls.Add(this.label1);
|
||||
this.groupBox4.Controls.Add(this.num_plcvalue);
|
||||
this.groupBox4.Controls.Add(this.num_id);
|
||||
this.groupBox4.Controls.Add(this.label3);
|
||||
this.groupBox4.Controls.Add(this.cmb_linelist);
|
||||
this.groupBox4.Controls.Add(this.label2);
|
||||
this.groupBox4.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox4.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new global::System.Drawing.Size(444, 148);
|
||||
this.groupBox4.TabIndex = 29;
|
||||
this.groupBox4.TabStop = false;
|
||||
this.groupBox4.Text = "管控位置";
|
||||
this.button1.ForeColor = global::System.Drawing.Color.FromArgb(0, 192, 0);
|
||||
this.button1.Location = new global::System.Drawing.Point(216, 68);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new global::System.Drawing.Size(118, 23);
|
||||
this.button1.TabIndex = 12;
|
||||
this.button1.Text = "获取属性值";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Visible = false;
|
||||
this.button1.Click += new global::System.EventHandler(this.button1_Click);
|
||||
this.panel1.Controls.Add(this.dataGridView1);
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(612, 681);
|
||||
this.panel1.TabIndex = 27;
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(1056, 681);
|
||||
base.Controls.Add(this.panel1);
|
||||
base.Controls.Add(this.splitContainer1);
|
||||
base.Name = "Control_Point";
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "线体添加地标";
|
||||
base.Load += new global::System.EventHandler(this.Control_Point_Load);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_id).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_plcvalue).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.PerformLayout();
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_longtime1).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_loc1).EndInit();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_speed).EndInit();
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.groupBox3.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_longtime2).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_loc2).EndInit();
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.groupBox4.PerformLayout();
|
||||
this.panel1.ResumeLayout(false);
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x0400012B RID: 299
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x0400012C RID: 300
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x0400012D RID: 301
|
||||
private global::System.Windows.Forms.ComboBox cmb_linelist;
|
||||
|
||||
// Token: 0x0400012E RID: 302
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x0400012F RID: 303
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x04000130 RID: 304
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x04000131 RID: 305
|
||||
private global::System.Windows.Forms.Label label6;
|
||||
|
||||
// Token: 0x04000132 RID: 306
|
||||
private global::System.Windows.Forms.Label label7;
|
||||
|
||||
// Token: 0x04000133 RID: 307
|
||||
private global::System.Windows.Forms.NumericUpDown num_id;
|
||||
|
||||
// Token: 0x04000134 RID: 308
|
||||
private global::System.Windows.Forms.NumericUpDown num_plcvalue;
|
||||
|
||||
// Token: 0x04000135 RID: 309
|
||||
private global::System.Windows.Forms.ComboBox cmb_map;
|
||||
|
||||
// Token: 0x04000136 RID: 310
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x04000137 RID: 311
|
||||
private global::System.Windows.Forms.SplitContainer splitContainer1;
|
||||
|
||||
// Token: 0x04000138 RID: 312
|
||||
private global::System.Windows.Forms.ComboBox cmb_bd;
|
||||
|
||||
// Token: 0x04000139 RID: 313
|
||||
private global::System.Windows.Forms.ToolStrip toolStrip1;
|
||||
|
||||
// Token: 0x0400013A RID: 314
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
|
||||
// Token: 0x0400013B RID: 315
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton2;
|
||||
|
||||
// Token: 0x0400013C RID: 316
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
|
||||
// Token: 0x0400013D RID: 317
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton4;
|
||||
|
||||
// Token: 0x0400013E RID: 318
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton5;
|
||||
|
||||
// Token: 0x0400013F RID: 319
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x04000140 RID: 320
|
||||
private global::System.Windows.Forms.ComboBox cmb_type;
|
||||
|
||||
// Token: 0x04000141 RID: 321
|
||||
private global::System.Windows.Forms.Label label5;
|
||||
|
||||
// Token: 0x04000142 RID: 322
|
||||
private global::System.Windows.Forms.GroupBox groupBox3;
|
||||
|
||||
// Token: 0x04000143 RID: 323
|
||||
private global::System.Windows.Forms.NumericUpDown next_longtime2;
|
||||
|
||||
// Token: 0x04000144 RID: 324
|
||||
private global::System.Windows.Forms.Label label15;
|
||||
|
||||
// Token: 0x04000145 RID: 325
|
||||
private global::System.Windows.Forms.Label label16;
|
||||
|
||||
// Token: 0x04000146 RID: 326
|
||||
private global::System.Windows.Forms.ComboBox cmb_run2;
|
||||
|
||||
// Token: 0x04000147 RID: 327
|
||||
private global::System.Windows.Forms.Label label17;
|
||||
|
||||
// Token: 0x04000148 RID: 328
|
||||
private global::System.Windows.Forms.Label label18;
|
||||
|
||||
// Token: 0x04000149 RID: 329
|
||||
private global::System.Windows.Forms.NumericUpDown next_loc2;
|
||||
|
||||
// Token: 0x0400014A RID: 330
|
||||
private global::System.Windows.Forms.GroupBox groupBox2;
|
||||
|
||||
// Token: 0x0400014B RID: 331
|
||||
private global::System.Windows.Forms.NumericUpDown next_longtime1;
|
||||
|
||||
// Token: 0x0400014C RID: 332
|
||||
private global::System.Windows.Forms.Label label14;
|
||||
|
||||
// Token: 0x0400014D RID: 333
|
||||
private global::System.Windows.Forms.Label label13;
|
||||
|
||||
// Token: 0x0400014E RID: 334
|
||||
private global::System.Windows.Forms.ComboBox cmb_run1;
|
||||
|
||||
// Token: 0x0400014F RID: 335
|
||||
private global::System.Windows.Forms.Label label12;
|
||||
|
||||
// Token: 0x04000150 RID: 336
|
||||
private global::System.Windows.Forms.Label label11;
|
||||
|
||||
// Token: 0x04000151 RID: 337
|
||||
private global::System.Windows.Forms.NumericUpDown next_loc1;
|
||||
|
||||
// Token: 0x04000152 RID: 338
|
||||
private global::System.Windows.Forms.GroupBox groupBox1;
|
||||
|
||||
// Token: 0x04000153 RID: 339
|
||||
private global::System.Windows.Forms.Label label10;
|
||||
|
||||
// Token: 0x04000154 RID: 340
|
||||
private global::System.Windows.Forms.NumericUpDown num_speed;
|
||||
|
||||
// Token: 0x04000155 RID: 341
|
||||
private global::System.Windows.Forms.Label label9;
|
||||
|
||||
// Token: 0x04000156 RID: 342
|
||||
private global::System.Windows.Forms.ComboBox cmb_zhangaiwu;
|
||||
|
||||
// Token: 0x04000157 RID: 343
|
||||
private global::System.Windows.Forms.Label label8;
|
||||
|
||||
// Token: 0x04000158 RID: 344
|
||||
private global::System.Windows.Forms.TextBox txt_zb;
|
||||
|
||||
// Token: 0x04000159 RID: 345
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton6;
|
||||
|
||||
// Token: 0x0400015A RID: 346
|
||||
private global::System.Windows.Forms.Panel panel2;
|
||||
|
||||
// Token: 0x0400015B RID: 347
|
||||
private global::System.Windows.Forms.GroupBox groupBox4;
|
||||
|
||||
// Token: 0x0400015C RID: 348
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 线体;
|
||||
|
||||
// Token: 0x0400015D RID: 349
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 线体编号;
|
||||
|
||||
// Token: 0x0400015E RID: 350
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 线体名称;
|
||||
|
||||
// Token: 0x0400015F RID: 351
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 位置编号;
|
||||
|
||||
// Token: 0x04000160 RID: 352
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 标记值;
|
||||
|
||||
// Token: 0x04000161 RID: 353
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 坐标X;
|
||||
|
||||
// Token: 0x04000162 RID: 354
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 坐标Y;
|
||||
|
||||
// Token: 0x04000163 RID: 355
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 位置坐标;
|
||||
|
||||
// Token: 0x04000164 RID: 356
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 绑定方式;
|
||||
|
||||
// Token: 0x04000165 RID: 357
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 地图编号;
|
||||
|
||||
// Token: 0x04000166 RID: 358
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 位置类型;
|
||||
|
||||
// Token: 0x04000167 RID: 359
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 障碍物模式;
|
||||
|
||||
// Token: 0x04000168 RID: 360
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 速度;
|
||||
|
||||
// Token: 0x04000169 RID: 361
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 下一站点1;
|
||||
|
||||
// Token: 0x0400016A RID: 362
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 运动模式1;
|
||||
|
||||
// Token: 0x0400016B RID: 363
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 运动时间1;
|
||||
|
||||
// Token: 0x0400016C RID: 364
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 下一站点2;
|
||||
|
||||
// Token: 0x0400016D RID: 365
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 运动模式2;
|
||||
|
||||
// Token: 0x0400016E RID: 366
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 运动时间2;
|
||||
|
||||
// Token: 0x0400016F RID: 367
|
||||
private global::System.Windows.Forms.Button button1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,401 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200000E RID: 14
|
||||
public partial class Control_Point : Form
|
||||
{
|
||||
// Token: 0x060000C1 RID: 193 RVA: 0x00013128 File Offset: 0x00011328
|
||||
public Control_Point(int w, int h)
|
||||
{
|
||||
this.InitializeComponent();
|
||||
base.Width = w;
|
||||
base.Height = h;
|
||||
this.ds = this.db.connDt("select CONVERT( VARCHAR(10),id) +' . '+ line_name as info from Assembly_Line order by id");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_linelist.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000C2 RID: 194 RVA: 0x0001324C File Offset: 0x0001144C
|
||||
private void Control_Point_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.ds.Tables.Clear();
|
||||
this.str_sql = "SELECT CONVERT( VARCHAR(10),Assembly_Line.ID)+' . '+Line_name as 线体,[Assembly_Line] as 线体编号,[Loc_ID] as 位置编号,[Flag_Value] as 标记值,[Loc_X] as 坐标x,[Loc_Y] as 坐标y,CONVERT( VARCHAR(10),Loc_X)+','+CONVERT( VARCHAR(10),Loc_Y) as 位置坐标,[Binding] as 绑定方式,LandMarkInfo.[Area] as 地图编号,(Case when LandMarkInfo.Assembly_ID >0 THEN '管控停止点' ELSE '管控复位点' END) as 位置类型,[Bank] as 障碍物模式,[Speed] as 速度,[Next_Station1] as 下一站点1,[Drict1] as 运动模式1,[LongTime1] as 运动时间1,[Next_Station2] as 下一站点2,[Drict2] as 运动模式2,[LongTime2] as 运动时间2,[Next_Station3] as 下一站点3,[Drict3] as 运动模式3,[LongTime3] as 运动时间3 FROM LandMarkInfo ,Assembly_Line WHERE LandMarkInfo.Assembly_Line = Assembly_Line.ID";
|
||||
this.ds = this.db.connDt(this.str_sql);
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
}
|
||||
this.groupBox1.Enabled = false;
|
||||
this.groupBox2.Enabled = false;
|
||||
this.groupBox3.Enabled = false;
|
||||
}
|
||||
|
||||
// Token: 0x060000C3 RID: 195 RVA: 0x000132E8 File Offset: 0x000114E8
|
||||
private void dataGridView1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.dataGridView1.RowCount > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.groupBox1.Enabled = false;
|
||||
this.groupBox2.Enabled = false;
|
||||
this.groupBox3.Enabled = false;
|
||||
this.cmb_linelist.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["线体"].Value.ToString();
|
||||
this.num_id.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["位置编号"].Value);
|
||||
this.num_plcvalue.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["标记值"].Value);
|
||||
this.cmb_map.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["地图编号"].Value.ToString());
|
||||
this.cmb_bd.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["绑定方式"].Value.ToString());
|
||||
this.txt_zb.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["位置坐标"].Value.ToString();
|
||||
this.cmb_type.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["位置类型"].Value.ToString();
|
||||
this.cmb_zhangaiwu.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["障碍物模式"].Value.ToString());
|
||||
this.num_speed.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["速度"].Value);
|
||||
this.next_loc1.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["下一站点1"].Value);
|
||||
this.next_loc2.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["下一站点2"].Value);
|
||||
this.next_longtime1.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["运动时间1"].Value);
|
||||
this.next_longtime2.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["运动时间2"].Value);
|
||||
this.cmb_run1.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["运动模式1"].Value);
|
||||
this.cmb_run2.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["运动模式2"].Value);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000C4 RID: 196 RVA: 0x00002460 File Offset: 0x00000660
|
||||
private void btn_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060000C5 RID: 197 RVA: 0x00013750 File Offset: 0x00011950
|
||||
private string delete_point(string line_id, string point_id)
|
||||
{
|
||||
DataSet dataSet = new DataSet();
|
||||
return this.db.Command("delete from LandMarkInfo where Assembly_Line = " + line_id + " and Loc_ID = " + point_id);
|
||||
}
|
||||
|
||||
// Token: 0x060000C6 RID: 198 RVA: 0x0000A0B4 File Offset: 0x000082B4
|
||||
private void dataGridView1_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e)
|
||||
{
|
||||
e.Row.HeaderCell.Value = string.Format("{0}", e.Row.Index + 1);
|
||||
}
|
||||
|
||||
// Token: 0x060000C7 RID: 199 RVA: 0x0001378C File Offset: 0x0001198C
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.groupBox1.Enabled = true;
|
||||
this.groupBox2.Enabled = true;
|
||||
this.groupBox3.Enabled = true;
|
||||
this.num_plcvalue.Value = 0m;
|
||||
this.cmb_map.SelectedIndex = 0;
|
||||
this.cmb_bd.SelectedIndex = 0;
|
||||
this.cmb_type.SelectedIndex = 0;
|
||||
this.cmb_zhangaiwu.SelectedIndex = 0;
|
||||
this.num_speed.Value = 0m;
|
||||
this.next_loc1.Value = 0m;
|
||||
this.next_loc2.Value = 0m;
|
||||
this.next_longtime1.Value = 0m;
|
||||
this.next_longtime2.Value = 0m;
|
||||
this.cmb_run1.SelectedIndex = 0;
|
||||
this.cmb_run2.SelectedIndex = 0;
|
||||
this.txt_zb.Text = "0,0";
|
||||
DataSet dataSet = this.db.connDt("Select max(loc_id)+1 from LandMarkInfo ");
|
||||
bool flag = dataSet.Tables[0].Rows[0][0].ToString() != "";
|
||||
if (flag)
|
||||
{
|
||||
this.num_id.Value = Convert.ToInt16(dataSet.Tables[0].Rows[0][0].ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
this.num_id.Value = 1m;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000C8 RID: 200 RVA: 0x00013914 File Offset: 0x00011B14
|
||||
private string add_point(int Assembly_Line, int Loc_ID, int Flag_Value, int Binding, int Area, int Assembly_ID, int Bank, int Speed, int Next_Station1, int Drict1, int LongTime1, int Next_Station2, int Drict2, int LongTime2, int loc_x, int loc_y)
|
||||
{
|
||||
string sqlstr = string.Concat(new string[]
|
||||
{
|
||||
"INSERT INTO [LandMarkInfo]([Assembly_Line] ,[Loc_ID] ,[Flag_Value] ,[Binding],[Area] ,[Assembly_ID] ,[Bank] ,[Speed] ,[Next_Station1],[Drict1] ,[LongTime1] ,[Next_Station2],[Drict2] ,[LongTime2] ,loc_x ,loc_y ) VALUES (",
|
||||
Assembly_Line.ToString(),
|
||||
" ,",
|
||||
Loc_ID.ToString(),
|
||||
" ,",
|
||||
Flag_Value.ToString(),
|
||||
" ,",
|
||||
Binding.ToString(),
|
||||
",",
|
||||
Area.ToString(),
|
||||
" ,",
|
||||
Assembly_ID.ToString(),
|
||||
" ,",
|
||||
Bank.ToString(),
|
||||
" ,",
|
||||
Speed.ToString(),
|
||||
",",
|
||||
Next_Station1.ToString(),
|
||||
",",
|
||||
Drict1.ToString(),
|
||||
" ,",
|
||||
LongTime1.ToString(),
|
||||
" ,",
|
||||
Next_Station2.ToString(),
|
||||
",",
|
||||
Drict2.ToString(),
|
||||
" ,",
|
||||
LongTime2.ToString(),
|
||||
",",
|
||||
loc_x.ToString(),
|
||||
",",
|
||||
loc_y.ToString(),
|
||||
")"
|
||||
});
|
||||
return this.db.Command(sqlstr);
|
||||
}
|
||||
|
||||
// Token: 0x060000C9 RID: 201 RVA: 0x00013A88 File Offset: 0x00011C88
|
||||
private void toolStripButton3_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.num_id.Value == 0m || this.cmb_linelist.Text == "";
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = this.add_point((int)Convert.ToInt16(this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0]), (int)Convert.ToInt16(this.num_id.Value), (int)Convert.ToInt16(this.num_plcvalue.Value), this.cmb_bd.SelectedIndex, this.cmb_map.SelectedIndex, (int)Convert.ToInt16((this.cmb_type.SelectedIndex == 1) ? this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0] : "0"), this.cmb_zhangaiwu.SelectedIndex, (int)Convert.ToInt16(this.num_speed.Value), (int)Convert.ToInt16(this.next_loc1.Value), this.cmb_run1.SelectedIndex, (int)Convert.ToInt16(this.next_longtime1.Value), (int)Convert.ToInt16(this.next_loc2.Value), this.cmb_run2.SelectedIndex, (int)Convert.ToInt16(this.next_longtime2.Value), (int)Convert.ToInt16(this.txt_zb.Text.Split(new char[]
|
||||
{
|
||||
','
|
||||
})[0]), (int)Convert.ToInt16(this.txt_zb.Text.Split(new char[]
|
||||
{
|
||||
','
|
||||
})[1])) == "1";
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("添加成功!");
|
||||
this.Control_Point_Load(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000CA RID: 202 RVA: 0x00013C70 File Offset: 0x00011E70
|
||||
private void toolStripButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.delete_point(this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0], this.num_id.Value.ToString()) == "1";
|
||||
if (flag2)
|
||||
{
|
||||
MessageBox.Show("删除成功!");
|
||||
this.Control_Point_Load(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000CB RID: 203 RVA: 0x00013D05 File Offset: 0x00011F05
|
||||
private void toolStripButton5_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.groupBox1.Enabled = true;
|
||||
this.groupBox2.Enabled = true;
|
||||
this.groupBox3.Enabled = true;
|
||||
}
|
||||
|
||||
// Token: 0x060000CC RID: 204 RVA: 0x00013D30 File Offset: 0x00011F30
|
||||
private void toolStripButton2_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.cmb_linelist.Text != "" || this.num_id.Value != 0m || this.num_plcvalue.Value != 0m;
|
||||
if (flag)
|
||||
{
|
||||
this.ds.Tables.Clear();
|
||||
this.str_sql = "SELECT CONVERT( VARCHAR(10),Assembly_Line.ID)+' . '+Line_name as 线体,[Assembly_Line] as 线体编号,[Loc_ID] as 位置编号,[Flag_Value] as 标记值,[Loc_X] as 坐标x,[Loc_Y] as 坐标y,CONVERT( VARCHAR(10),Loc_X)+','+CONVERT( VARCHAR(10),Loc_Y) as 位置坐标,[Binding] as 绑定方式,LandMarkInfo.[Area] as 地图编号,(Case when LandMarkInfo.Assembly_ID >0 THEN '管控停止点' ELSE '管控复位点' END) as 位置类型,[Bank] as 障碍物模式,[Speed] as 速度,[Next_Station1] as 下一站点1,[Drict1] as 运动模式1,[LongTime1] as 运动时间1,[Next_Station2] as 下一站点2,[Drict2] as 运动模式2,[LongTime2] as 运动时间2,[Next_Station3] as 下一站点3,[Drict3] as 运动模式3,[LongTime3] as 运动时间3 FROM LandMarkInfo ,Assembly_Line WHERE LandMarkInfo.Assembly_Line = Assembly_Line.ID";
|
||||
this.ds = this.db.connDt(this.str_sql);
|
||||
bool flag2 = this.cmb_linelist.Text != "" && this.cmb_linelist.Text != "所有线体";
|
||||
if (flag2)
|
||||
{
|
||||
this.str_sql = this.str_sql + " and LandMarkInfo.Assembly_Line = " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
bool flag3 = this.num_id.Value != 0m;
|
||||
if (flag3)
|
||||
{
|
||||
this.str_sql = this.str_sql + " and Landmarkinfo.Loc_id = " + this.num_id.Value.ToString();
|
||||
}
|
||||
bool flag4 = this.num_plcvalue.Value != 0m;
|
||||
if (flag4)
|
||||
{
|
||||
this.str_sql = this.str_sql + " and Landmarkinfo.flag_value = " + this.num_plcvalue.Value.ToString();
|
||||
}
|
||||
this.ds = this.db.connDt(this.str_sql);
|
||||
bool flag5 = this.ds.Tables.Count > 0;
|
||||
if (flag5)
|
||||
{
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000CD RID: 205 RVA: 0x00013EFC File Offset: 0x000120FC
|
||||
private void num_id_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.groupBox1.Enabled && this.num_id.Value != 0m;
|
||||
if (flag)
|
||||
{
|
||||
string str = "SELECT top 1 [Flag_Value] ,[Loc_X] ,[Loc_Y] ,[Binding] ,[Area] ,[Assembly_ID] ,[Bank] ,[Speed] ,[Next_Station1] ,[Drict1] ,[LongTime1] ,[Next_Station2] ,[Drict2] ,[LongTime2] FROM [LandMarkInfo] where loc_id =" + this.num_id.Value.ToString();
|
||||
this.ds1 = this.db.connDt(str);
|
||||
bool flag2 = this.ds1.Tables[0].Rows.Count == 1;
|
||||
if (flag2)
|
||||
{
|
||||
this.button1.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.button1.Visible = false;
|
||||
}
|
||||
}
|
||||
bool flag3 = !this.groupBox1.Enabled;
|
||||
if (flag3)
|
||||
{
|
||||
this.button1.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000CE RID: 206 RVA: 0x00013FC4 File Offset: 0x000121C4
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.ds1.Tables[0].Rows.Count == 1;
|
||||
if (flag)
|
||||
{
|
||||
this.num_plcvalue.Value = Convert.ToInt16(this.ds1.Tables[0].Rows[0]["Flag_Value"].ToString());
|
||||
this.cmb_map.SelectedIndex = (int)Convert.ToInt16(this.ds1.Tables[0].Rows[0]["Area"].ToString());
|
||||
this.cmb_bd.SelectedIndex = (int)Convert.ToInt16(this.ds1.Tables[0].Rows[0]["Binding"].ToString());
|
||||
this.txt_zb.Text = this.ds1.Tables[0].Rows[0]["Loc_X"].ToString() + "," + this.ds1.Tables[0].Rows[0]["Loc_Y"].ToString();
|
||||
this.cmb_type.SelectedIndex = ((this.ds1.Tables[0].Rows[0]["Assembly_ID"].ToString() == "0") ? 0 : 1);
|
||||
this.cmb_zhangaiwu.SelectedIndex = (int)Convert.ToInt16(this.ds1.Tables[0].Rows[0]["Bank"].ToString());
|
||||
this.num_speed.Value = Convert.ToDecimal(this.ds1.Tables[0].Rows[0]["Speed"].ToString());
|
||||
this.next_loc1.Value = Convert.ToDecimal(this.ds1.Tables[0].Rows[0]["Next_Station1"].ToString());
|
||||
this.next_loc2.Value = Convert.ToDecimal(this.ds1.Tables[0].Rows[0]["Next_Station2"].ToString());
|
||||
this.next_longtime1.Value = Convert.ToDecimal(this.ds1.Tables[0].Rows[0]["LongTime1"].ToString());
|
||||
this.next_longtime2.Value = Convert.ToDecimal(this.ds1.Tables[0].Rows[0]["LongTime2"].ToString());
|
||||
this.cmb_run1.SelectedIndex = (int)Convert.ToInt16(this.ds1.Tables[0].Rows[0]["Drict1"].ToString());
|
||||
this.cmb_run2.SelectedIndex = (int)Convert.ToInt16(this.ds1.Tables[0].Rows[0]["Drict2"].ToString());
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000CF RID: 207 RVA: 0x00014348 File Offset: 0x00012548
|
||||
private string update_point(int Assembly_Line, int Loc_ID, int Flag_Value, int Binding, int Area, int Assembly_ID, int Bank, int Speed, int Next_Station1, int Drict1, int LongTime1, int Next_Station2, int Drict2, int LongTime2, int Loc_X, int Loc_Y)
|
||||
{
|
||||
string sqlstr = string.Concat(new string[]
|
||||
{
|
||||
"UPDATE [LandMarkInfo] SET [Flag_Value] = ",
|
||||
Flag_Value.ToString(),
|
||||
" ,[Loc_X] = ",
|
||||
Loc_X.ToString(),
|
||||
" ,[Loc_Y] = ",
|
||||
Loc_Y.ToString(),
|
||||
" ,[Binding] = ",
|
||||
Binding.ToString(),
|
||||
" ,[Area] = ",
|
||||
Area.ToString(),
|
||||
" ,[Assembly_ID] = ",
|
||||
Assembly_ID.ToString(),
|
||||
" ,[Bank] = ",
|
||||
Bank.ToString(),
|
||||
" ,[Speed] = ",
|
||||
Speed.ToString(),
|
||||
" ,[Next_Station1] = ",
|
||||
Next_Station1.ToString(),
|
||||
" ,[Drict1] = ",
|
||||
Drict1.ToString(),
|
||||
" ,[LongTime1] = ",
|
||||
LongTime1.ToString(),
|
||||
" ,[Next_Station2] = ",
|
||||
Next_Station2.ToString(),
|
||||
" ,[Drict2] = ",
|
||||
Drict2.ToString(),
|
||||
" ,[LongTime2] = ",
|
||||
LongTime2.ToString(),
|
||||
" WHERE [Assembly_Line] = ",
|
||||
Assembly_Line.ToString(),
|
||||
" and [Loc_ID] =",
|
||||
Loc_ID.ToString()
|
||||
});
|
||||
return this.db.Command(sqlstr);
|
||||
}
|
||||
|
||||
// Token: 0x060000D0 RID: 208 RVA: 0x000144B4 File Offset: 0x000126B4
|
||||
private void toolStripButton6_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.update_point((int)Convert.ToInt16(this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0]), (int)Convert.ToInt16(this.num_id.Value), (int)Convert.ToInt16(this.num_plcvalue.Value), this.cmb_bd.SelectedIndex, this.cmb_map.SelectedIndex, (int)Convert.ToInt16((this.cmb_type.SelectedIndex == 1) ? this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0] : "0"), this.cmb_zhangaiwu.SelectedIndex, (int)Convert.ToInt16(this.num_speed.Value), (int)Convert.ToInt16(this.next_loc1.Value), this.cmb_run1.SelectedIndex, (int)Convert.ToInt16(this.next_longtime1.Value), (int)Convert.ToInt16(this.next_loc2.Value), this.cmb_run2.SelectedIndex, (int)Convert.ToInt16(this.next_longtime2.Value), (int)Convert.ToInt16(this.txt_zb.Text.Split(new char[]
|
||||
{
|
||||
','
|
||||
})[0]), (int)Convert.ToInt16(this.txt_zb.Text.Split(new char[]
|
||||
{
|
||||
','
|
||||
})[1])) == "1";
|
||||
if (flag2)
|
||||
{
|
||||
MessageBox.Show("更新成功!");
|
||||
this.Control_Point_Load(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000127 RID: 295
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x04000128 RID: 296
|
||||
private DataSet ds = new DataSet();
|
||||
|
||||
// Token: 0x04000129 RID: 297
|
||||
private string str_sql = "";
|
||||
|
||||
// Token: 0x0400012A RID: 298
|
||||
private DataSet ds1;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
+190
@@ -0,0 +1,190 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200000F RID: 15
|
||||
public partial class DatabaseSet : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x060000DD RID: 221 RVA: 0x000173E0 File Offset: 0x000155E0
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x060000DE RID: 222 RVA: 0x00017418 File Offset: 0x00015618
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.button1 = new global::System.Windows.Forms.Button();
|
||||
this.savebtn = new global::System.Windows.Forms.Button();
|
||||
this.textBox1 = new global::System.Windows.Forms.TextBox();
|
||||
this.textBox2 = new global::System.Windows.Forms.TextBox();
|
||||
this.textBox3 = new global::System.Windows.Forms.TextBox();
|
||||
this.textBox4 = new global::System.Windows.Forms.TextBox();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.textBox5 = new global::System.Windows.Forms.TextBox();
|
||||
this.label5 = new global::System.Windows.Forms.Label();
|
||||
base.SuspendLayout();
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(54, 32);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(63, 14);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "服务器:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(54, 121);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(63, 14);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "用户名:";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(68, 166);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(49, 14);
|
||||
this.label3.TabIndex = 2;
|
||||
this.label3.Text = "密码:";
|
||||
this.button1.Font = new global::System.Drawing.Font("宋体", 10.5f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point, 134);
|
||||
this.button1.ForeColor = global::System.Drawing.Color.Blue;
|
||||
this.button1.Location = new global::System.Drawing.Point(122, 289);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new global::System.Drawing.Size(120, 30);
|
||||
this.button1.TabIndex = 3;
|
||||
this.button1.Text = "测试连接";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new global::System.EventHandler(this.button1_Click);
|
||||
this.savebtn.Font = new global::System.Drawing.Font("宋体", 10.5f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point, 134);
|
||||
this.savebtn.ForeColor = global::System.Drawing.Color.Blue;
|
||||
this.savebtn.Location = new global::System.Drawing.Point(251, 289);
|
||||
this.savebtn.Name = "savebtn";
|
||||
this.savebtn.Size = new global::System.Drawing.Size(120, 30);
|
||||
this.savebtn.TabIndex = 4;
|
||||
this.savebtn.Text = "保 存";
|
||||
this.savebtn.UseVisualStyleBackColor = true;
|
||||
this.savebtn.Click += new global::System.EventHandler(this.savebtn_Click);
|
||||
this.textBox1.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBox1.Location = new global::System.Drawing.Point(128, 26);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.ReadOnly = true;
|
||||
this.textBox1.Size = new global::System.Drawing.Size(247, 23);
|
||||
this.textBox1.TabIndex = 5;
|
||||
this.textBox2.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBox2.Location = new global::System.Drawing.Point(128, 75);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.ReadOnly = true;
|
||||
this.textBox2.Size = new global::System.Drawing.Size(247, 23);
|
||||
this.textBox2.TabIndex = 6;
|
||||
this.textBox3.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBox3.Location = new global::System.Drawing.Point(128, 118);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.ReadOnly = true;
|
||||
this.textBox3.Size = new global::System.Drawing.Size(247, 23);
|
||||
this.textBox3.TabIndex = 7;
|
||||
this.textBox4.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBox4.Location = new global::System.Drawing.Point(128, 163);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.PasswordChar = '*';
|
||||
this.textBox4.ReadOnly = true;
|
||||
this.textBox4.Size = new global::System.Drawing.Size(247, 23);
|
||||
this.textBox4.TabIndex = 9;
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(54, 78);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(63, 14);
|
||||
this.label4.TabIndex = 8;
|
||||
this.label4.Text = "数据库:";
|
||||
this.panel1.BackColor = global::System.Drawing.Color.FromArgb(192, 192, 255);
|
||||
this.panel1.Location = new global::System.Drawing.Point(11, 269);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(429, 2);
|
||||
this.panel1.TabIndex = 22;
|
||||
this.textBox5.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBox5.Location = new global::System.Drawing.Point(128, 209);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.ReadOnly = true;
|
||||
this.textBox5.Size = new global::System.Drawing.Size(247, 23);
|
||||
this.textBox5.TabIndex = 24;
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new global::System.Drawing.Point(40, 211);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new global::System.Drawing.Size(77, 14);
|
||||
this.label5.TabIndex = 23;
|
||||
this.label5.Text = "项目编号:";
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(7f, 14f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = global::System.Drawing.Color.White;
|
||||
base.ClientSize = new global::System.Drawing.Size(450, 337);
|
||||
base.Controls.Add(this.textBox5);
|
||||
base.Controls.Add(this.label5);
|
||||
base.Controls.Add(this.panel1);
|
||||
base.Controls.Add(this.textBox4);
|
||||
base.Controls.Add(this.label4);
|
||||
base.Controls.Add(this.textBox3);
|
||||
base.Controls.Add(this.textBox2);
|
||||
base.Controls.Add(this.textBox1);
|
||||
base.Controls.Add(this.savebtn);
|
||||
base.Controls.Add(this.button1);
|
||||
base.Controls.Add(this.label3);
|
||||
base.Controls.Add(this.label2);
|
||||
base.Controls.Add(this.label1);
|
||||
this.Font = new global::System.Drawing.Font("宋体", 10.5f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point, 134);
|
||||
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
base.MaximizeBox = false;
|
||||
base.MinimizeBox = false;
|
||||
base.Name = "DatabaseSet";
|
||||
base.ShowIcon = false;
|
||||
base.ShowInTaskbar = false;
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "数据库服务器设置";
|
||||
base.ResumeLayout(false);
|
||||
base.PerformLayout();
|
||||
}
|
||||
|
||||
// Token: 0x04000173 RID: 371
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x04000174 RID: 372
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x04000175 RID: 373
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x04000176 RID: 374
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x04000177 RID: 375
|
||||
private global::System.Windows.Forms.Button button1;
|
||||
|
||||
// Token: 0x04000178 RID: 376
|
||||
private global::System.Windows.Forms.Button savebtn;
|
||||
|
||||
// Token: 0x04000179 RID: 377
|
||||
private global::System.Windows.Forms.TextBox textBox1;
|
||||
|
||||
// Token: 0x0400017A RID: 378
|
||||
private global::System.Windows.Forms.TextBox textBox2;
|
||||
|
||||
// Token: 0x0400017B RID: 379
|
||||
private global::System.Windows.Forms.TextBox textBox3;
|
||||
|
||||
// Token: 0x0400017C RID: 380
|
||||
private global::System.Windows.Forms.TextBox textBox4;
|
||||
|
||||
// Token: 0x0400017D RID: 381
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x0400017E RID: 382
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x0400017F RID: 383
|
||||
private global::System.Windows.Forms.TextBox textBox5;
|
||||
|
||||
// Token: 0x04000180 RID: 384
|
||||
private global::System.Windows.Forms.Label label5;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
using Microsoft.Data.ConnectionUI;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200000F RID: 15
|
||||
public partial class DatabaseSet : Form
|
||||
{
|
||||
// Token: 0x060000D3 RID: 211
|
||||
[DllImport("user32.dll")]
|
||||
private static extern int SetWindowRgn(IntPtr hWnd, IntPtr hRgn, bool bRedraw);
|
||||
|
||||
// Token: 0x060000D4 RID: 212
|
||||
[DllImport("gdi32.dll")]
|
||||
private static extern IntPtr CreateRoundRectRgn(int x1, int y1, int x2, int y2, int cx, int cy);
|
||||
|
||||
// Token: 0x060000D5 RID: 213 RVA: 0x00016F6C File Offset: 0x0001516C
|
||||
public DatabaseSet()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.tempconnectStr = Param.connectStr;
|
||||
string[] array = Param.connectStr.Split(new char[]
|
||||
{
|
||||
';'
|
||||
});
|
||||
try
|
||||
{
|
||||
this.textBox1.Text = array[0].Split(new char[]
|
||||
{
|
||||
'='
|
||||
})[1];
|
||||
this.textBox2.Text = array[1].Split(new char[]
|
||||
{
|
||||
'='
|
||||
})[1];
|
||||
this.textBox5.Text = Param.Pro_id;
|
||||
this.textBox3.Text = array[2].Split(new char[]
|
||||
{
|
||||
'='
|
||||
})[1];
|
||||
bool flag = this.textBox3.Text == "True";
|
||||
if (flag)
|
||||
{
|
||||
this.textBox3.Text = "Windows身份验证";
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000D6 RID: 214 RVA: 0x00017068 File Offset: 0x00015268
|
||||
private void savebtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "" && mainfrm.newmainfrm != null;
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = Param.connectStr == this.tempconnectStr || this.textBox5.Text.Trim() == "";
|
||||
if (!flag2)
|
||||
{
|
||||
FileRW.WriteIniValue("conn", "conn", this.tempconnectStr, Application.StartupPath + "\\info.ini");
|
||||
FileRW.WriteIniValue("item_id", "item_id", Param.Pro_id, Application.StartupPath + "\\info.ini");
|
||||
bool flag3 = mainfrm.newmainfrm != null;
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("数据库连接配置已保存成功!", "信息", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
base.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("数据库连接配置已保存成功,请重启软件!", "信息", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
Application.Exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000D7 RID: 215 RVA: 0x00017178 File Offset: 0x00015378
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataConnectionDialog dataConnectionDialog = new DataConnectionDialog();
|
||||
dataConnectionDialog.DataSources.Add(DataSource.SqlDataSource);
|
||||
dataConnectionDialog.SelectedDataSource = DataSource.SqlDataSource;
|
||||
dataConnectionDialog.SelectedDataProvider = DataProvider.SqlDataProvider;
|
||||
bool flag = DataConnectionDialog.Show(dataConnectionDialog) == DialogResult.OK;
|
||||
if (flag)
|
||||
{
|
||||
this.tempconnectStr = dataConnectionDialog.ConnectionString;
|
||||
string[] array = this.tempconnectStr.Split(new char[]
|
||||
{
|
||||
';'
|
||||
});
|
||||
try
|
||||
{
|
||||
this.textBox1.Text = array[0].Split(new char[]
|
||||
{
|
||||
'='
|
||||
})[1];
|
||||
this.textBox2.Text = array[1].Split(new char[]
|
||||
{
|
||||
'='
|
||||
})[1];
|
||||
this.textBox5.Text = this.textBox2.Text.Split(new char[]
|
||||
{
|
||||
'_'
|
||||
})[2];
|
||||
this.tempconnectStr = this.tempconnectStr.Replace(this.textBox5.Text, "XXXXX");
|
||||
Param.Pro_id = this.textBox5.Text;
|
||||
this.textBox3.Text = array[2].Split(new char[]
|
||||
{
|
||||
'='
|
||||
})[1];
|
||||
bool flag2 = this.textBox3.Text == "True";
|
||||
if (flag2)
|
||||
{
|
||||
this.textBox3.Text = "Windows身份验证";
|
||||
}
|
||||
this.textBox4.Text = array[3].Split(new char[]
|
||||
{
|
||||
'='
|
||||
})[1];
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000D8 RID: 216 RVA: 0x00008E3F File Offset: 0x0000703F
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
base.Close();
|
||||
}
|
||||
|
||||
// Token: 0x060000D9 RID: 217 RVA: 0x00017318 File Offset: 0x00015518
|
||||
private void panel3_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
bool flag = this.isMouseDown;
|
||||
if (flag)
|
||||
{
|
||||
Point mousePosition = Control.MousePosition;
|
||||
mousePosition.Offset(this.mouseOffset.X, this.mouseOffset.Y);
|
||||
base.Location = mousePosition;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000DA RID: 218 RVA: 0x00017360 File Offset: 0x00015560
|
||||
private void panel3_MouseUp(object sender, MouseEventArgs e)
|
||||
{
|
||||
bool flag = e.Button == MouseButtons.Left;
|
||||
if (flag)
|
||||
{
|
||||
this.isMouseDown = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000DB RID: 219 RVA: 0x00017388 File Offset: 0x00015588
|
||||
private void panel3_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
bool flag = e.Button == MouseButtons.Left;
|
||||
if (flag)
|
||||
{
|
||||
int x = -e.X - 2 * SystemInformation.FrameBorderSize.Width;
|
||||
int y = -e.Y - 99;
|
||||
this.mouseOffset = new Point(x, y);
|
||||
this.isMouseDown = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000DC RID: 220 RVA: 0x00002460 File Offset: 0x00000660
|
||||
protected override void OnResize(EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000170 RID: 368
|
||||
private Point mouseOffset;
|
||||
|
||||
// Token: 0x04000171 RID: 369
|
||||
private bool isMouseDown;
|
||||
|
||||
// Token: 0x04000172 RID: 370
|
||||
private string tempconnectStr;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Generated
+776
@@ -0,0 +1,776 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000003 RID: 3
|
||||
public partial class Frm_A17168 : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x06000043 RID: 67 RVA: 0x000066A4 File Offset: 0x000048A4
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x06000044 RID: 68 RVA: 0x000066DC File Offset: 0x000048DC
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new global::System.ComponentModel.Container();
|
||||
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::AGVSystem.Frm_A17168));
|
||||
global::System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle = new global::System.Windows.Forms.DataGridViewCellStyle();
|
||||
global::System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new global::System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel3 = new global::System.Windows.Forms.Panel();
|
||||
this.panel8 = new global::System.Windows.Forms.Panel();
|
||||
this.pnl10 = new global::System.Windows.Forms.Panel();
|
||||
this.lab13 = new global::System.Windows.Forms.Label();
|
||||
this.pnl11 = new global::System.Windows.Forms.Panel();
|
||||
this.lab11 = new global::System.Windows.Forms.Label();
|
||||
this.pnl9 = new global::System.Windows.Forms.Panel();
|
||||
this.lab9 = new global::System.Windows.Forms.Label();
|
||||
this.pnl8 = new global::System.Windows.Forms.Panel();
|
||||
this.lab8 = new global::System.Windows.Forms.Label();
|
||||
this.pnl7 = new global::System.Windows.Forms.Panel();
|
||||
this.lab7 = new global::System.Windows.Forms.Label();
|
||||
this.pnl6 = new global::System.Windows.Forms.Panel();
|
||||
this.lab6 = new global::System.Windows.Forms.Label();
|
||||
this.pnl5 = new global::System.Windows.Forms.Panel();
|
||||
this.lab5 = new global::System.Windows.Forms.Label();
|
||||
this.pnl4 = new global::System.Windows.Forms.Panel();
|
||||
this.lab4 = new global::System.Windows.Forms.Label();
|
||||
this.pnl3 = new global::System.Windows.Forms.Panel();
|
||||
this.lab3 = new global::System.Windows.Forms.Label();
|
||||
this.pnl2 = new global::System.Windows.Forms.Panel();
|
||||
this.lab2 = new global::System.Windows.Forms.Label();
|
||||
this.pnl1 = new global::System.Windows.Forms.Panel();
|
||||
this.lab1 = new global::System.Windows.Forms.Label();
|
||||
this.vScrollBar1 = new global::System.Windows.Forms.VScrollBar();
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.panel2 = new global::System.Windows.Forms.Panel();
|
||||
this.tm_AgvInfo = new global::System.Windows.Forms.Timer(this.components);
|
||||
this.timer1 = new global::System.Windows.Forms.Timer(this.components);
|
||||
this.instantDiCtrl1 = new global::Automation.BDaq.InstantDiCtrl(this.components);
|
||||
this.instantDoCtrl1 = new global::Automation.BDaq.InstantDoCtrl(this.components);
|
||||
this.instantDiCtrl2 = new global::Automation.BDaq.InstantDiCtrl(this.components);
|
||||
this.instantDoCtrl2 = new global::Automation.BDaq.InstantDoCtrl(this.components);
|
||||
this.instantDiCtrl3 = new global::Automation.BDaq.InstantDiCtrl(this.components);
|
||||
this.instantDoCtrl3 = new global::Automation.BDaq.InstantDoCtrl(this.components);
|
||||
this.tm_card = new global::System.Windows.Forms.Timer(this.components);
|
||||
this.panel4 = new global::System.Windows.Forms.Panel();
|
||||
this.panel5 = new global::System.Windows.Forms.Panel();
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
this.设备编号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.设备位置 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.状态 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.复位 = new global::System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.在线状态 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.panel9 = new global::System.Windows.Forms.Panel();
|
||||
this.panel13 = new global::System.Windows.Forms.Panel();
|
||||
this.pictureBox14 = new global::System.Windows.Forms.PictureBox();
|
||||
this.label28 = new global::System.Windows.Forms.Label();
|
||||
this.panel12 = new global::System.Windows.Forms.Panel();
|
||||
this.pictureBox13 = new global::System.Windows.Forms.PictureBox();
|
||||
this.label25 = new global::System.Windows.Forms.Label();
|
||||
this.panel11 = new global::System.Windows.Forms.Panel();
|
||||
this.pictureBox12 = new global::System.Windows.Forms.PictureBox();
|
||||
this.label24 = new global::System.Windows.Forms.Label();
|
||||
this.panel10 = new global::System.Windows.Forms.Panel();
|
||||
this.pictureBox11 = new global::System.Windows.Forms.PictureBox();
|
||||
this.label26 = new global::System.Windows.Forms.Label();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.panel7 = new global::System.Windows.Forms.Panel();
|
||||
this.timer3 = new global::System.Windows.Forms.Timer(this.components);
|
||||
this.tm_btn = new global::System.Windows.Forms.Timer(this.components);
|
||||
this.panel8.SuspendLayout();
|
||||
this.pnl10.SuspendLayout();
|
||||
this.pnl11.SuspendLayout();
|
||||
this.pnl9.SuspendLayout();
|
||||
this.pnl8.SuspendLayout();
|
||||
this.pnl7.SuspendLayout();
|
||||
this.pnl6.SuspendLayout();
|
||||
this.pnl5.SuspendLayout();
|
||||
this.pnl4.SuspendLayout();
|
||||
this.pnl3.SuspendLayout();
|
||||
this.pnl2.SuspendLayout();
|
||||
this.pnl1.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.panel5.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
this.panel9.SuspendLayout();
|
||||
this.panel13.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.pictureBox14).BeginInit();
|
||||
this.panel12.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.pictureBox13).BeginInit();
|
||||
this.panel11.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.pictureBox12).BeginInit();
|
||||
this.panel10.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.pictureBox11).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.panel3.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.panel3.BackgroundImageLayout = global::System.Windows.Forms.ImageLayout.Center;
|
||||
this.panel3.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new global::System.Drawing.Size(982, 369);
|
||||
this.panel3.TabIndex = 5;
|
||||
this.panel3.Tag = "1";
|
||||
this.panel3.DoubleClick += new global::System.EventHandler(this.panel3_DoubleClick);
|
||||
this.panel3.MouseClick += new global::System.Windows.Forms.MouseEventHandler(this.panel3_MouseClick);
|
||||
this.panel3.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.panel3_MouseMove);
|
||||
this.panel8.Controls.Add(this.pnl10);
|
||||
this.panel8.Controls.Add(this.pnl11);
|
||||
this.panel8.Controls.Add(this.pnl9);
|
||||
this.panel8.Controls.Add(this.pnl8);
|
||||
this.panel8.Controls.Add(this.pnl7);
|
||||
this.panel8.Controls.Add(this.pnl6);
|
||||
this.panel8.Controls.Add(this.pnl5);
|
||||
this.panel8.Controls.Add(this.pnl4);
|
||||
this.panel8.Controls.Add(this.pnl3);
|
||||
this.panel8.Controls.Add(this.pnl2);
|
||||
this.panel8.Controls.Add(this.pnl1);
|
||||
this.panel8.Controls.Add(this.vScrollBar1);
|
||||
this.panel8.Dock = global::System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel8.Location = new global::System.Drawing.Point(0, 750);
|
||||
this.panel8.Name = "panel8";
|
||||
this.panel8.Size = new global::System.Drawing.Size(1292, 30);
|
||||
this.panel8.TabIndex = 12;
|
||||
this.panel8.Tag = " ";
|
||||
this.panel8.Visible = false;
|
||||
this.pnl10.Controls.Add(this.lab13);
|
||||
this.pnl10.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.pnl10.Location = new global::System.Drawing.Point(0, 320);
|
||||
this.pnl10.Name = "pnl10";
|
||||
this.pnl10.Size = new global::System.Drawing.Size(1275, 32);
|
||||
this.pnl10.TabIndex = 13;
|
||||
this.pnl10.Tag = " ";
|
||||
this.pnl10.Visible = false;
|
||||
this.lab13.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.lab13.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.lab13.Name = "lab13";
|
||||
this.lab13.Size = new global::System.Drawing.Size(98, 32);
|
||||
this.lab13.TabIndex = 15;
|
||||
this.lab13.Text = "车门线:";
|
||||
this.lab13.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.pnl11.Controls.Add(this.lab11);
|
||||
this.pnl11.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.pnl11.Location = new global::System.Drawing.Point(0, 288);
|
||||
this.pnl11.Name = "pnl11";
|
||||
this.pnl11.Size = new global::System.Drawing.Size(1275, 32);
|
||||
this.pnl11.TabIndex = 11;
|
||||
this.pnl11.Tag = " ";
|
||||
this.pnl11.Visible = false;
|
||||
this.lab11.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.lab11.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.lab11.Name = "lab11";
|
||||
this.lab11.Size = new global::System.Drawing.Size(98, 32);
|
||||
this.lab11.TabIndex = 15;
|
||||
this.lab11.Text = "车门线:";
|
||||
this.lab11.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.pnl9.Controls.Add(this.lab9);
|
||||
this.pnl9.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.pnl9.Location = new global::System.Drawing.Point(0, 256);
|
||||
this.pnl9.Name = "pnl9";
|
||||
this.pnl9.Size = new global::System.Drawing.Size(1275, 32);
|
||||
this.pnl9.TabIndex = 9;
|
||||
this.pnl9.Tag = " ";
|
||||
this.pnl9.Visible = false;
|
||||
this.lab9.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.lab9.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.lab9.Name = "lab9";
|
||||
this.lab9.Size = new global::System.Drawing.Size(98, 32);
|
||||
this.lab9.TabIndex = 15;
|
||||
this.lab9.Text = "车门线:";
|
||||
this.lab9.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.pnl8.Controls.Add(this.lab8);
|
||||
this.pnl8.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.pnl8.Location = new global::System.Drawing.Point(0, 224);
|
||||
this.pnl8.Name = "pnl8";
|
||||
this.pnl8.Size = new global::System.Drawing.Size(1275, 32);
|
||||
this.pnl8.TabIndex = 8;
|
||||
this.pnl8.Tag = " ";
|
||||
this.pnl8.Visible = false;
|
||||
this.lab8.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.lab8.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.lab8.Name = "lab8";
|
||||
this.lab8.Size = new global::System.Drawing.Size(98, 32);
|
||||
this.lab8.TabIndex = 14;
|
||||
this.lab8.Text = "车门线:";
|
||||
this.lab8.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.pnl7.Controls.Add(this.lab7);
|
||||
this.pnl7.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.pnl7.Location = new global::System.Drawing.Point(0, 192);
|
||||
this.pnl7.Name = "pnl7";
|
||||
this.pnl7.Size = new global::System.Drawing.Size(1275, 32);
|
||||
this.pnl7.TabIndex = 7;
|
||||
this.pnl7.Tag = " ";
|
||||
this.pnl7.Visible = false;
|
||||
this.lab7.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.lab7.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.lab7.Name = "lab7";
|
||||
this.lab7.Size = new global::System.Drawing.Size(98, 32);
|
||||
this.lab7.TabIndex = 13;
|
||||
this.lab7.Text = "车门线:";
|
||||
this.lab7.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.pnl6.Controls.Add(this.lab6);
|
||||
this.pnl6.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.pnl6.Location = new global::System.Drawing.Point(0, 160);
|
||||
this.pnl6.Name = "pnl6";
|
||||
this.pnl6.Size = new global::System.Drawing.Size(1275, 32);
|
||||
this.pnl6.TabIndex = 6;
|
||||
this.pnl6.Tag = " ";
|
||||
this.pnl6.Visible = false;
|
||||
this.lab6.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.lab6.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.lab6.Name = "lab6";
|
||||
this.lab6.Size = new global::System.Drawing.Size(98, 32);
|
||||
this.lab6.TabIndex = 13;
|
||||
this.lab6.Text = "车门线:";
|
||||
this.lab6.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.pnl5.Controls.Add(this.lab5);
|
||||
this.pnl5.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.pnl5.Location = new global::System.Drawing.Point(0, 128);
|
||||
this.pnl5.Name = "pnl5";
|
||||
this.pnl5.Size = new global::System.Drawing.Size(1275, 32);
|
||||
this.pnl5.TabIndex = 5;
|
||||
this.pnl5.Tag = " ";
|
||||
this.pnl5.Visible = false;
|
||||
this.lab5.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.lab5.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.lab5.Name = "lab5";
|
||||
this.lab5.Size = new global::System.Drawing.Size(98, 32);
|
||||
this.lab5.TabIndex = 12;
|
||||
this.lab5.Text = "车门线:";
|
||||
this.lab5.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.pnl4.Controls.Add(this.lab4);
|
||||
this.pnl4.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.pnl4.Location = new global::System.Drawing.Point(0, 96);
|
||||
this.pnl4.Name = "pnl4";
|
||||
this.pnl4.Size = new global::System.Drawing.Size(1275, 32);
|
||||
this.pnl4.TabIndex = 4;
|
||||
this.pnl4.Tag = " ";
|
||||
this.pnl4.Visible = false;
|
||||
this.lab4.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.lab4.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.lab4.Name = "lab4";
|
||||
this.lab4.Size = new global::System.Drawing.Size(98, 32);
|
||||
this.lab4.TabIndex = 11;
|
||||
this.lab4.Text = "底盘长:";
|
||||
this.lab4.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.pnl3.Controls.Add(this.lab3);
|
||||
this.pnl3.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.pnl3.Location = new global::System.Drawing.Point(0, 64);
|
||||
this.pnl3.Name = "pnl3";
|
||||
this.pnl3.Size = new global::System.Drawing.Size(1275, 32);
|
||||
this.pnl3.TabIndex = 3;
|
||||
this.pnl3.Tag = " ";
|
||||
this.pnl3.Visible = false;
|
||||
this.lab3.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.lab3.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.lab3.Name = "lab3";
|
||||
this.lab3.Size = new global::System.Drawing.Size(98, 32);
|
||||
this.lab3.TabIndex = 11;
|
||||
this.lab3.Text = "底盘短:";
|
||||
this.lab3.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.pnl2.Controls.Add(this.lab2);
|
||||
this.pnl2.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.pnl2.Location = new global::System.Drawing.Point(0, 32);
|
||||
this.pnl2.Name = "pnl2";
|
||||
this.pnl2.Size = new global::System.Drawing.Size(1275, 32);
|
||||
this.pnl2.TabIndex = 2;
|
||||
this.pnl2.Tag = " ";
|
||||
this.pnl2.Visible = false;
|
||||
this.lab2.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.lab2.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.lab2.Name = "lab2";
|
||||
this.lab2.Size = new global::System.Drawing.Size(98, 32);
|
||||
this.lab2.TabIndex = 11;
|
||||
this.lab2.Text = "内饰二:";
|
||||
this.lab2.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.pnl1.Controls.Add(this.lab1);
|
||||
this.pnl1.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.pnl1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.pnl1.Name = "pnl1";
|
||||
this.pnl1.Size = new global::System.Drawing.Size(1275, 32);
|
||||
this.pnl1.TabIndex = 1;
|
||||
this.pnl1.Tag = " ";
|
||||
this.pnl1.Visible = false;
|
||||
this.lab1.Dock = global::System.Windows.Forms.DockStyle.Left;
|
||||
this.lab1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.lab1.Name = "lab1";
|
||||
this.lab1.Size = new global::System.Drawing.Size(98, 32);
|
||||
this.lab1.TabIndex = 10;
|
||||
this.lab1.Text = "设备列表:";
|
||||
this.lab1.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.vScrollBar1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.vScrollBar1.LargeChange = 1;
|
||||
this.vScrollBar1.Location = new global::System.Drawing.Point(1275, 0);
|
||||
this.vScrollBar1.Maximum = 2;
|
||||
this.vScrollBar1.Name = "vScrollBar1";
|
||||
this.vScrollBar1.Size = new global::System.Drawing.Size(17, 30);
|
||||
this.vScrollBar1.TabIndex = 21;
|
||||
this.vScrollBar1.ValueChanged += new global::System.EventHandler(this.vScrollBar1_ValueChanged);
|
||||
this.panel1.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.panel1.BackgroundImageLayout = global::System.Windows.Forms.ImageLayout.Center;
|
||||
this.panel1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(576, 528);
|
||||
this.panel1.TabIndex = 13;
|
||||
this.panel1.Tag = "3";
|
||||
this.panel1.DoubleClick += new global::System.EventHandler(this.panel3_DoubleClick);
|
||||
this.panel1.MouseClick += new global::System.Windows.Forms.MouseEventHandler(this.panel3_MouseClick);
|
||||
this.panel1.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.panel1_MouseMove);
|
||||
this.panel2.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.panel2.BackgroundImageLayout = global::System.Windows.Forms.ImageLayout.Center;
|
||||
this.panel2.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new global::System.Drawing.Size(535, 444);
|
||||
this.panel2.TabIndex = 14;
|
||||
this.panel2.Tag = "2";
|
||||
this.panel2.DoubleClick += new global::System.EventHandler(this.panel3_DoubleClick);
|
||||
this.panel2.MouseClick += new global::System.Windows.Forms.MouseEventHandler(this.panel3_MouseClick);
|
||||
this.panel2.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.panel2_MouseMove);
|
||||
this.tm_AgvInfo.Interval = 2000;
|
||||
this.tm_AgvInfo.Tick += new global::System.EventHandler(this.timer1_Tick);
|
||||
this.timer1.Enabled = true;
|
||||
this.timer1.Interval = 1000;
|
||||
this.timer1.Tick += new global::System.EventHandler(this.tm_Tick);
|
||||
this.instantDiCtrl1._StateStream = (global::Automation.BDaq.DeviceStateStreamer)componentResourceManager.GetObject("instantDiCtrl1._StateStream");
|
||||
this.instantDoCtrl1._StateStream = (global::Automation.BDaq.DeviceStateStreamer)componentResourceManager.GetObject("instantDoCtrl1._StateStream");
|
||||
this.instantDiCtrl2._StateStream = (global::Automation.BDaq.DeviceStateStreamer)componentResourceManager.GetObject("instantDiCtrl2._StateStream");
|
||||
this.instantDoCtrl2._StateStream = (global::Automation.BDaq.DeviceStateStreamer)componentResourceManager.GetObject("instantDoCtrl2._StateStream");
|
||||
this.instantDiCtrl3._StateStream = (global::Automation.BDaq.DeviceStateStreamer)componentResourceManager.GetObject("instantDiCtrl3._StateStream");
|
||||
this.instantDoCtrl3._StateStream = (global::Automation.BDaq.DeviceStateStreamer)componentResourceManager.GetObject("instantDoCtrl3._StateStream");
|
||||
this.tm_card.Enabled = true;
|
||||
this.tm_card.Tick += new global::System.EventHandler(this.tm_card_Tick);
|
||||
this.panel4.BackColor = global::System.Drawing.SystemColors.Control;
|
||||
this.panel4.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel4.Controls.Add(this.panel5);
|
||||
this.panel4.Controls.Add(this.panel9);
|
||||
this.panel4.Controls.Add(this.panel7);
|
||||
this.panel4.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.panel4.Location = new global::System.Drawing.Point(975, 0);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new global::System.Drawing.Size(317, 750);
|
||||
this.panel4.TabIndex = 16;
|
||||
this.panel5.BackColor = global::System.Drawing.SystemColors.Control;
|
||||
this.panel5.Controls.Add(this.dataGridView1);
|
||||
this.panel5.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel5.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.panel5.Name = "panel5";
|
||||
this.panel5.Size = new global::System.Drawing.Size(315, 503);
|
||||
this.panel5.TabIndex = 0;
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.SystemColors.Control;
|
||||
this.dataGridView1.ColumnHeadersHeight = 30;
|
||||
this.dataGridView1.Columns.AddRange(new global::System.Windows.Forms.DataGridViewColumn[]
|
||||
{
|
||||
this.设备编号,
|
||||
this.设备位置,
|
||||
this.状态,
|
||||
this.复位,
|
||||
this.在线状态
|
||||
});
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
dataGridViewCellStyle.Alignment = global::System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle.BackColor = global::System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle.Font = new global::System.Drawing.Font("宋体", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point, 134);
|
||||
dataGridViewCellStyle.ForeColor = global::System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle.SelectionBackColor = global::System.Drawing.SystemColors.ControlLight;
|
||||
dataGridViewCellStyle.SelectionForeColor = global::System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle.WrapMode = global::System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle;
|
||||
this.dataGridView1.RowHeadersVisible = false;
|
||||
this.dataGridView1.RowHeadersWidth = 51;
|
||||
this.dataGridView1.RowTemplate.Height = 45;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(315, 503);
|
||||
this.dataGridView1.TabIndex = 6;
|
||||
this.dataGridView1.DataError += new global::System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dataGridView1_DataError);
|
||||
this.设备编号.DataPropertyName = "设备编号";
|
||||
dataGridViewCellStyle2.Alignment = global::System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle2.Font = new global::System.Drawing.Font("宋体", 10.5f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point, 134);
|
||||
this.设备编号.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.设备编号.HeaderText = "设备编号";
|
||||
this.设备编号.MinimumWidth = 6;
|
||||
this.设备编号.Name = "设备编号";
|
||||
this.设备编号.ReadOnly = true;
|
||||
this.设备编号.Width = 65;
|
||||
this.设备位置.DataPropertyName = "设备位置";
|
||||
this.设备位置.HeaderText = "设备位置";
|
||||
this.设备位置.MinimumWidth = 6;
|
||||
this.设备位置.Name = "设备位置";
|
||||
this.设备位置.ReadOnly = true;
|
||||
this.设备位置.Width = 65;
|
||||
this.状态.DataPropertyName = "状态";
|
||||
this.状态.HeaderText = "状态";
|
||||
this.状态.MinimumWidth = 6;
|
||||
this.状态.Name = "状态";
|
||||
this.状态.ReadOnly = true;
|
||||
this.状态.Width = 115;
|
||||
this.复位.DataPropertyName = "复位";
|
||||
this.复位.FalseValue = "0";
|
||||
this.复位.HeaderText = "复位";
|
||||
this.复位.MinimumWidth = 6;
|
||||
this.复位.Name = "复位";
|
||||
this.复位.TrueValue = "1";
|
||||
this.复位.Visible = false;
|
||||
this.复位.Width = 40;
|
||||
this.在线状态.DataPropertyName = "在线状态";
|
||||
this.在线状态.HeaderText = "在线状态";
|
||||
this.在线状态.MinimumWidth = 6;
|
||||
this.在线状态.Name = "在线状态";
|
||||
this.在线状态.Width = 125;
|
||||
this.panel9.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel9.Controls.Add(this.panel13);
|
||||
this.panel9.Controls.Add(this.panel12);
|
||||
this.panel9.Controls.Add(this.panel11);
|
||||
this.panel9.Controls.Add(this.panel10);
|
||||
this.panel9.Controls.Add(this.label1);
|
||||
this.panel9.Dock = global::System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel9.Location = new global::System.Drawing.Point(0, 503);
|
||||
this.panel9.Name = "panel9";
|
||||
this.panel9.Size = new global::System.Drawing.Size(315, 167);
|
||||
this.panel9.TabIndex = 20;
|
||||
this.panel13.BackColor = global::System.Drawing.SystemColors.Control;
|
||||
this.panel13.Controls.Add(this.pictureBox14);
|
||||
this.panel13.Controls.Add(this.label28);
|
||||
this.panel13.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.panel13.Location = new global::System.Drawing.Point(0, 96);
|
||||
this.panel13.Name = "panel13";
|
||||
this.panel13.Size = new global::System.Drawing.Size(313, 24);
|
||||
this.panel13.TabIndex = 10;
|
||||
this.pictureBox14.BackColor = global::System.Drawing.Color.White;
|
||||
this.pictureBox14.Location = new global::System.Drawing.Point(22, 4);
|
||||
this.pictureBox14.Name = "pictureBox14";
|
||||
this.pictureBox14.Size = new global::System.Drawing.Size(16, 16);
|
||||
this.pictureBox14.TabIndex = 7;
|
||||
this.pictureBox14.TabStop = false;
|
||||
this.label28.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.label28.ForeColor = global::System.Drawing.Color.FromArgb(192, 0, 192);
|
||||
this.label28.Location = new global::System.Drawing.Point(144, 0);
|
||||
this.label28.Name = "label28";
|
||||
this.label28.Size = new global::System.Drawing.Size(169, 24);
|
||||
this.label28.TabIndex = 6;
|
||||
this.label28.Text = "设备未开机或断网";
|
||||
this.label28.TextAlign = global::System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.panel12.BackColor = global::System.Drawing.SystemColors.Control;
|
||||
this.panel12.Controls.Add(this.pictureBox13);
|
||||
this.panel12.Controls.Add(this.label25);
|
||||
this.panel12.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.panel12.Location = new global::System.Drawing.Point(0, 72);
|
||||
this.panel12.Name = "panel12";
|
||||
this.panel12.Size = new global::System.Drawing.Size(313, 24);
|
||||
this.panel12.TabIndex = 9;
|
||||
this.pictureBox13.BackColor = global::System.Drawing.Color.Red;
|
||||
this.pictureBox13.Location = new global::System.Drawing.Point(22, 4);
|
||||
this.pictureBox13.Name = "pictureBox13";
|
||||
this.pictureBox13.Size = new global::System.Drawing.Size(16, 16);
|
||||
this.pictureBox13.TabIndex = 7;
|
||||
this.pictureBox13.TabStop = false;
|
||||
this.label25.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.label25.ForeColor = global::System.Drawing.Color.FromArgb(192, 0, 192);
|
||||
this.label25.Location = new global::System.Drawing.Point(144, 0);
|
||||
this.label25.Name = "label25";
|
||||
this.label25.Size = new global::System.Drawing.Size(169, 24);
|
||||
this.label25.TabIndex = 6;
|
||||
this.label25.Text = "故障报警";
|
||||
this.label25.TextAlign = global::System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.panel11.BackColor = global::System.Drawing.SystemColors.Control;
|
||||
this.panel11.Controls.Add(this.pictureBox12);
|
||||
this.panel11.Controls.Add(this.label24);
|
||||
this.panel11.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.panel11.Location = new global::System.Drawing.Point(0, 48);
|
||||
this.panel11.Name = "panel11";
|
||||
this.panel11.Size = new global::System.Drawing.Size(313, 24);
|
||||
this.panel11.TabIndex = 8;
|
||||
this.pictureBox12.BackColor = global::System.Drawing.Color.FromArgb(255, 255, 128);
|
||||
this.pictureBox12.Location = new global::System.Drawing.Point(22, 4);
|
||||
this.pictureBox12.Name = "pictureBox12";
|
||||
this.pictureBox12.Size = new global::System.Drawing.Size(16, 16);
|
||||
this.pictureBox12.TabIndex = 7;
|
||||
this.pictureBox12.TabStop = false;
|
||||
this.label24.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.label24.ForeColor = global::System.Drawing.Color.FromArgb(192, 0, 192);
|
||||
this.label24.Location = new global::System.Drawing.Point(144, 0);
|
||||
this.label24.Name = "label24";
|
||||
this.label24.Size = new global::System.Drawing.Size(169, 24);
|
||||
this.label24.TabIndex = 6;
|
||||
this.label24.Text = "障碍物、低电压报警";
|
||||
this.label24.TextAlign = global::System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.panel10.BackColor = global::System.Drawing.SystemColors.Control;
|
||||
this.panel10.Controls.Add(this.pictureBox11);
|
||||
this.panel10.Controls.Add(this.label26);
|
||||
this.panel10.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.panel10.Location = new global::System.Drawing.Point(0, 24);
|
||||
this.panel10.Name = "panel10";
|
||||
this.panel10.Size = new global::System.Drawing.Size(313, 24);
|
||||
this.panel10.TabIndex = 7;
|
||||
this.pictureBox11.BackColor = global::System.Drawing.Color.Lime;
|
||||
this.pictureBox11.Location = new global::System.Drawing.Point(22, 4);
|
||||
this.pictureBox11.Name = "pictureBox11";
|
||||
this.pictureBox11.Size = new global::System.Drawing.Size(16, 16);
|
||||
this.pictureBox11.TabIndex = 7;
|
||||
this.pictureBox11.TabStop = false;
|
||||
this.label26.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.label26.ForeColor = global::System.Drawing.Color.FromArgb(192, 0, 192);
|
||||
this.label26.Location = new global::System.Drawing.Point(144, 0);
|
||||
this.label26.Name = "label26";
|
||||
this.label26.Size = new global::System.Drawing.Size(169, 24);
|
||||
this.label26.TabIndex = 6;
|
||||
this.label26.Text = "设备正常";
|
||||
this.label26.TextAlign = global::System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.label1.BackColor = global::System.Drawing.Color.FromArgb(192, 255, 192);
|
||||
this.label1.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.label1.Font = new global::System.Drawing.Font("宋体", 10.5f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point, 134);
|
||||
this.label1.ForeColor = global::System.Drawing.Color.FromArgb(0, 0, 192);
|
||||
this.label1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(313, 24);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "设备状态说明";
|
||||
this.label1.TextAlign = global::System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.panel7.BackgroundImage = global::AGVSystem.Properties.Resources.csg___副本;
|
||||
this.panel7.BackgroundImageLayout = global::System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.panel7.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel7.Dock = global::System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel7.Location = new global::System.Drawing.Point(0, 670);
|
||||
this.panel7.Name = "panel7";
|
||||
this.panel7.Size = new global::System.Drawing.Size(315, 78);
|
||||
this.panel7.TabIndex = 19;
|
||||
this.timer3.Enabled = true;
|
||||
this.timer3.Interval = 6000;
|
||||
this.timer3.Tick += new global::System.EventHandler(this.timer3_Tick);
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = global::System.Drawing.SystemColors.Control;
|
||||
base.ClientSize = new global::System.Drawing.Size(1292, 780);
|
||||
base.Controls.Add(this.panel4);
|
||||
base.Controls.Add(this.panel2);
|
||||
base.Controls.Add(this.panel1);
|
||||
base.Controls.Add(this.panel3);
|
||||
base.Controls.Add(this.panel8);
|
||||
this.ForeColor = global::System.Drawing.SystemColors.ControlText;
|
||||
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
|
||||
base.Name = "Frm_A17168";
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "设备调度监控";
|
||||
base.TopMost = true;
|
||||
base.FormClosed += new global::System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed);
|
||||
base.Load += new global::System.EventHandler(this.Form1_Load);
|
||||
this.panel8.ResumeLayout(false);
|
||||
this.pnl10.ResumeLayout(false);
|
||||
this.pnl11.ResumeLayout(false);
|
||||
this.pnl9.ResumeLayout(false);
|
||||
this.pnl8.ResumeLayout(false);
|
||||
this.pnl7.ResumeLayout(false);
|
||||
this.pnl6.ResumeLayout(false);
|
||||
this.pnl5.ResumeLayout(false);
|
||||
this.pnl4.ResumeLayout(false);
|
||||
this.pnl3.ResumeLayout(false);
|
||||
this.pnl2.ResumeLayout(false);
|
||||
this.pnl1.ResumeLayout(false);
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.panel5.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
this.panel9.ResumeLayout(false);
|
||||
this.panel13.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.pictureBox14).EndInit();
|
||||
this.panel12.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.pictureBox13).EndInit();
|
||||
this.panel11.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.pictureBox12).EndInit();
|
||||
this.panel10.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.pictureBox11).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x04000035 RID: 53
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x04000036 RID: 54
|
||||
private global::System.Windows.Forms.Panel panel8;
|
||||
|
||||
// Token: 0x04000037 RID: 55
|
||||
private global::System.Windows.Forms.Panel pnl8;
|
||||
|
||||
// Token: 0x04000038 RID: 56
|
||||
private global::System.Windows.Forms.Panel pnl7;
|
||||
|
||||
// Token: 0x04000039 RID: 57
|
||||
private global::System.Windows.Forms.Panel pnl6;
|
||||
|
||||
// Token: 0x0400003A RID: 58
|
||||
private global::System.Windows.Forms.Panel pnl5;
|
||||
|
||||
// Token: 0x0400003B RID: 59
|
||||
private global::System.Windows.Forms.Panel pnl4;
|
||||
|
||||
// Token: 0x0400003C RID: 60
|
||||
private global::System.Windows.Forms.Panel pnl2;
|
||||
|
||||
// Token: 0x0400003D RID: 61
|
||||
private global::System.Windows.Forms.Panel pnl3;
|
||||
|
||||
// Token: 0x0400003E RID: 62
|
||||
private global::System.Windows.Forms.Panel panel3;
|
||||
|
||||
// Token: 0x0400003F RID: 63
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x04000040 RID: 64
|
||||
private global::System.Windows.Forms.Panel panel2;
|
||||
|
||||
// Token: 0x04000041 RID: 65
|
||||
private global::System.Windows.Forms.Panel pnl10;
|
||||
|
||||
// Token: 0x04000042 RID: 66
|
||||
private global::System.Windows.Forms.Panel pnl11;
|
||||
|
||||
// Token: 0x04000043 RID: 67
|
||||
private global::System.Windows.Forms.Panel pnl9;
|
||||
|
||||
// Token: 0x04000044 RID: 68
|
||||
private global::System.Windows.Forms.Timer tm_AgvInfo;
|
||||
|
||||
// Token: 0x04000045 RID: 69
|
||||
private global::System.Windows.Forms.Timer timer1;
|
||||
|
||||
// Token: 0x04000046 RID: 70
|
||||
private global::System.Windows.Forms.VScrollBar vScrollBar1;
|
||||
|
||||
// Token: 0x04000047 RID: 71
|
||||
private global::System.Windows.Forms.Label lab5;
|
||||
|
||||
// Token: 0x04000048 RID: 72
|
||||
private global::System.Windows.Forms.Label lab4;
|
||||
|
||||
// Token: 0x04000049 RID: 73
|
||||
private global::System.Windows.Forms.Label lab3;
|
||||
|
||||
// Token: 0x0400004A RID: 74
|
||||
private global::System.Windows.Forms.Label lab2;
|
||||
|
||||
// Token: 0x0400004B RID: 75
|
||||
private global::System.Windows.Forms.Label lab7;
|
||||
|
||||
// Token: 0x0400004C RID: 76
|
||||
private global::System.Windows.Forms.Label lab6;
|
||||
|
||||
// Token: 0x0400004D RID: 77
|
||||
private global::System.Windows.Forms.Label lab8;
|
||||
|
||||
// Token: 0x0400004E RID: 78
|
||||
private global::System.Windows.Forms.Label lab13;
|
||||
|
||||
// Token: 0x0400004F RID: 79
|
||||
private global::System.Windows.Forms.Label lab11;
|
||||
|
||||
// Token: 0x04000050 RID: 80
|
||||
private global::System.Windows.Forms.Label lab9;
|
||||
|
||||
// Token: 0x04000051 RID: 81
|
||||
private global::Automation.BDaq.InstantDiCtrl instantDiCtrl1;
|
||||
|
||||
// Token: 0x04000052 RID: 82
|
||||
private global::Automation.BDaq.InstantDoCtrl instantDoCtrl1;
|
||||
|
||||
// Token: 0x04000053 RID: 83
|
||||
private global::Automation.BDaq.InstantDiCtrl instantDiCtrl2;
|
||||
|
||||
// Token: 0x04000054 RID: 84
|
||||
private global::Automation.BDaq.InstantDoCtrl instantDoCtrl2;
|
||||
|
||||
// Token: 0x04000055 RID: 85
|
||||
private global::Automation.BDaq.InstantDiCtrl instantDiCtrl3;
|
||||
|
||||
// Token: 0x04000056 RID: 86
|
||||
private global::Automation.BDaq.InstantDoCtrl instantDoCtrl3;
|
||||
|
||||
// Token: 0x04000057 RID: 87
|
||||
private global::System.Windows.Forms.Timer tm_card;
|
||||
|
||||
// Token: 0x04000058 RID: 88
|
||||
private global::System.Windows.Forms.Panel panel4;
|
||||
|
||||
// Token: 0x04000059 RID: 89
|
||||
private global::System.Windows.Forms.Panel panel5;
|
||||
|
||||
// Token: 0x0400005A RID: 90
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x0400005B RID: 91
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 设备编号;
|
||||
|
||||
// Token: 0x0400005C RID: 92
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 设备位置;
|
||||
|
||||
// Token: 0x0400005D RID: 93
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 状态;
|
||||
|
||||
// Token: 0x0400005E RID: 94
|
||||
private global::System.Windows.Forms.DataGridViewCheckBoxColumn 复位;
|
||||
|
||||
// Token: 0x0400005F RID: 95
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 在线状态;
|
||||
|
||||
// Token: 0x04000060 RID: 96
|
||||
private global::System.Windows.Forms.Timer timer3;
|
||||
|
||||
// Token: 0x04000061 RID: 97
|
||||
private global::System.Windows.Forms.Panel panel7;
|
||||
|
||||
// Token: 0x04000062 RID: 98
|
||||
private global::System.Windows.Forms.Panel panel9;
|
||||
|
||||
// Token: 0x04000063 RID: 99
|
||||
private global::System.Windows.Forms.Panel panel13;
|
||||
|
||||
// Token: 0x04000064 RID: 100
|
||||
private global::System.Windows.Forms.PictureBox pictureBox14;
|
||||
|
||||
// Token: 0x04000065 RID: 101
|
||||
private global::System.Windows.Forms.Label label28;
|
||||
|
||||
// Token: 0x04000066 RID: 102
|
||||
private global::System.Windows.Forms.Panel panel12;
|
||||
|
||||
// Token: 0x04000067 RID: 103
|
||||
private global::System.Windows.Forms.PictureBox pictureBox13;
|
||||
|
||||
// Token: 0x04000068 RID: 104
|
||||
private global::System.Windows.Forms.Label label25;
|
||||
|
||||
// Token: 0x04000069 RID: 105
|
||||
private global::System.Windows.Forms.Panel panel11;
|
||||
|
||||
// Token: 0x0400006A RID: 106
|
||||
private global::System.Windows.Forms.PictureBox pictureBox12;
|
||||
|
||||
// Token: 0x0400006B RID: 107
|
||||
private global::System.Windows.Forms.Label label24;
|
||||
|
||||
// Token: 0x0400006C RID: 108
|
||||
private global::System.Windows.Forms.Panel panel10;
|
||||
|
||||
// Token: 0x0400006D RID: 109
|
||||
private global::System.Windows.Forms.PictureBox pictureBox11;
|
||||
|
||||
// Token: 0x0400006E RID: 110
|
||||
private global::System.Windows.Forms.Label label26;
|
||||
|
||||
// Token: 0x0400006F RID: 111
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x04000070 RID: 112
|
||||
private global::System.Windows.Forms.Timer tm_btn;
|
||||
|
||||
// Token: 0x04000071 RID: 113
|
||||
private global::System.Windows.Forms.Panel pnl1;
|
||||
|
||||
// Token: 0x04000072 RID: 114
|
||||
private global::System.Windows.Forms.Label lab1;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+55
@@ -0,0 +1,55 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000016 RID: 22
|
||||
public partial class Frm_Path_Status : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x06000128 RID: 296 RVA: 0x00036878 File Offset: 0x00034A78
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x06000129 RID: 297 RVA: 0x000368B0 File Offset: 0x00034AB0
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = global::System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersWidth = 60;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(655, 391);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
this.dataGridView1.RowStateChanged += new global::System.Windows.Forms.DataGridViewRowStateChangedEventHandler(this.dataGridView1_RowStateChanged);
|
||||
this.dataGridView1.DoubleClick += new global::System.EventHandler(this.dataGridView1_DoubleClick);
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(655, 391);
|
||||
base.Controls.Add(this.dataGridView1);
|
||||
base.Name = "Frm_Path_Status";
|
||||
this.Text = "管控路口现况";
|
||||
base.FormClosed += new global::System.Windows.Forms.FormClosedEventHandler(this.Frm_Path_Status_FormClosed);
|
||||
base.Load += new global::System.EventHandler(this.Frm_Path_Status_Load);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x0400041D RID: 1053
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x0400041E RID: 1054
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000016 RID: 22
|
||||
public partial class Frm_Path_Status : Form
|
||||
{
|
||||
// Token: 0x06000123 RID: 291 RVA: 0x00036590 File Offset: 0x00034790
|
||||
public Frm_Path_Status()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
// Token: 0x06000124 RID: 292 RVA: 0x000365A8 File Offset: 0x000347A8
|
||||
private void Frm_Path_Status_Load(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = mainfrm.ds_CrossInfo != null && mainfrm.ds_CrossInfo.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.dataGridView1.DataSource = mainfrm.ds_CrossInfo.Tables[0];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000125 RID: 293 RVA: 0x000365F2 File Offset: 0x000347F2
|
||||
private void Frm_Path_Status_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
mainfrm.frm_Path_Status = null;
|
||||
}
|
||||
|
||||
// Token: 0x06000126 RID: 294 RVA: 0x0000A0B4 File Offset: 0x000082B4
|
||||
private void dataGridView1_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e)
|
||||
{
|
||||
e.Row.HeaderCell.Value = string.Format("{0}", e.Row.Index + 1);
|
||||
}
|
||||
|
||||
// Token: 0x06000127 RID: 295 RVA: 0x000365FC File Offset: 0x000347FC
|
||||
private void dataGridView1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.dataGridView1.RowCount == 0;
|
||||
if (!flag)
|
||||
{
|
||||
bool flag2 = MessageBox.Show("是否复位该路口?", "消息", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) == DialogResult.No;
|
||||
if (!flag2)
|
||||
{
|
||||
int[] array = new int[]
|
||||
{
|
||||
(int)Convert.ToInt16(mainfrm.ds_CrossInfo.Tables[0].Rows[this.dataGridView1.CurrentRow.Index]["当前产线编号"].ToString()),
|
||||
(int)Convert.ToInt16(mainfrm.ds_CrossInfo.Tables[0].Rows[this.dataGridView1.CurrentRow.Index]["当前地标编号"].ToString())
|
||||
};
|
||||
for (int i = 0; i < mainfrm.ds_CrossInfo.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string text = mainfrm.ds_CrossInfo.Tables[0].Rows[i]["当前地标编号"].ToString();
|
||||
string text2 = mainfrm.ds_CrossInfo.Tables[0].Rows[i]["AGV编号"].ToString();
|
||||
bool flag3 = mainfrm.ds_CrossInfo.Tables[0].Rows[i]["当前产线编号"].ToString() == array[0].ToString() && mainfrm.ds_CrossInfo.Tables[0].Rows[i]["当前地标编号"].ToString() == array[1].ToString() && mainfrm.ds_CrossInfo.Tables[0].Rows[i]["AGV编号"].ToString() != "0";
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("AGV-" + mainfrm.ds_CrossInfo.Tables[0].Rows[i]["AGV编号"].ToString() + "占用路口信息被清除!");
|
||||
mainfrm.ds_CrossInfo.Tables[0].Rows[i]["AGV编号"] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,829 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AgvCar;
|
||||
using AGVSystem.A17168;
|
||||
using AGVSystem.Cls;
|
||||
using BllSql;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000013 RID: 19
|
||||
public class Func
|
||||
{
|
||||
// Token: 0x060000FC RID: 252 RVA: 0x0001DB8C File Offset: 0x0001BD8C
|
||||
public static void CreatePanelLocation(string id, int direction, int x, int y, int area, string Assembly_ID)
|
||||
{
|
||||
Panel panel = new Panel();
|
||||
bool flag = area == 1;
|
||||
if (flag)
|
||||
{
|
||||
panel.Parent = mainfrm.Map1;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = area == 2;
|
||||
if (flag2)
|
||||
{
|
||||
panel.Parent = mainfrm.Map2;
|
||||
}
|
||||
else
|
||||
{
|
||||
panel.Parent = mainfrm.Map3;
|
||||
}
|
||||
}
|
||||
panel.BackColor = Color.Transparent;
|
||||
Label label = new Label();
|
||||
label.Visible = Param.Location_ID_Dispaly;
|
||||
label.Text = id;
|
||||
bool flag3 = Assembly_ID != "0" || Assembly_ID != "";
|
||||
if (flag3)
|
||||
{
|
||||
label.Tag = Assembly_ID + "-" + id;
|
||||
label.DoubleClick += Path_Reset.label12_DoubleClick;
|
||||
label.MouseClick += Func.label_MouseClick;
|
||||
label.MouseUp += Func.label_UpClick;
|
||||
label.MouseDown += Func.label_DownClick;
|
||||
label.MouseMove += Func.label_MoveClick;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag4 = !Param.Display_CrossID;
|
||||
if (flag4)
|
||||
{
|
||||
label.ForeColor = Color.Black;
|
||||
}
|
||||
}
|
||||
label.AutoSize = false;
|
||||
label.Height = Param.Icon_Size;
|
||||
label.Width = Param.Icon_Size;
|
||||
panel.Width = Param.Icon_Size;
|
||||
panel.Height = Param.Icon_Size;
|
||||
label.Parent = panel;
|
||||
label.BackColor = Color.Transparent;
|
||||
label.Font = new Font("宋体", 9f, FontStyle.Regular);
|
||||
label.TextAlign = ContentAlignment.MiddleCenter;
|
||||
bool flag5 = direction == 1;
|
||||
if (flag5)
|
||||
{
|
||||
panel.Location = new Point(x, y - Param.Icon_Size / 2);
|
||||
panel.Tag = id + "-1";
|
||||
label.Dock = DockStyle.Left;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag6 = direction == 2;
|
||||
if (flag6)
|
||||
{
|
||||
panel.Location = new Point(x, y - Param.Icon_Size / 2);
|
||||
panel.Tag = id + "-2";
|
||||
label.Dock = DockStyle.Left;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag7 = direction == 3;
|
||||
if (flag7)
|
||||
{
|
||||
panel.Location = new Point(x - Param.Icon_Size / 2, y);
|
||||
panel.Tag = id + "-3";
|
||||
label.Dock = DockStyle.Top;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag8 = direction == 4;
|
||||
if (flag8)
|
||||
{
|
||||
panel.Location = new Point(x - Param.Icon_Size / 2, y);
|
||||
panel.Tag = id + "-4";
|
||||
label.Dock = DockStyle.Top;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000FD RID: 253 RVA: 0x0001DE24 File Offset: 0x0001C024
|
||||
private static void label_MouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
bool flag = e.Button == MouseButtons.Right;
|
||||
if (flag)
|
||||
{
|
||||
Func.loc_flag = (int)Convert.ToInt16(((Label)sender).Text);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000FE RID: 254 RVA: 0x0001DE5C File Offset: 0x0001C05C
|
||||
private static void label_UpClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
Func.moveFlag = false;
|
||||
try
|
||||
{
|
||||
bool flag = (Control.ModifierKeys & Keys.Control) == Keys.Control;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = Param.UserName_temp == "";
|
||||
if (flag2)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
Label label = (Label)sender;
|
||||
int num = (int)Convert.ToInt16(label.Text);
|
||||
bool flag3 = MessageBox.Show(string.Format("是否移动该{0}地标?", num), "消息", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) == DialogResult.No;
|
||||
if (!flag3)
|
||||
{
|
||||
bool flag4 = label.Parent.GetType() == typeof(Panel);
|
||||
if (flag4)
|
||||
{
|
||||
Panel panel = label.Parent as Panel;
|
||||
int y = panel.Top + Param.Icon_Size / 2;
|
||||
int left = panel.Left;
|
||||
Console.WriteLine(string.Concat(new string[]
|
||||
{
|
||||
num.ToString(),
|
||||
"up === X:",
|
||||
left.ToString(),
|
||||
"Y:",
|
||||
y.ToString()
|
||||
}));
|
||||
Func.UpLocation(num, left, y);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000FF RID: 255 RVA: 0x0001DFB0 File Offset: 0x0001C1B0
|
||||
private static void label_DownClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
Func.moveFlag = true;
|
||||
Func.xPos = e.X;
|
||||
Func.yPos = e.Y;
|
||||
}
|
||||
|
||||
// Token: 0x06000100 RID: 256 RVA: 0x0001DFD0 File Offset: 0x0001C1D0
|
||||
private static void label_MoveClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
bool flag = !Func.moveFlag;
|
||||
if (!flag)
|
||||
{
|
||||
Label label = (Label)sender;
|
||||
int num = (int)Convert.ToInt16(label.Text);
|
||||
bool flag2 = label.Parent.GetType() == typeof(Panel);
|
||||
if (flag2)
|
||||
{
|
||||
Panel panel = label.Parent as Panel;
|
||||
panel.Top += e.Y - Func.yPos;
|
||||
panel.Left += e.X - Func.xPos;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000101 RID: 257 RVA: 0x0001E064 File Offset: 0x0001C264
|
||||
private static void UpLocation(int rfid, int x, int y)
|
||||
{
|
||||
try
|
||||
{
|
||||
string a = Func.db_conn.Command(string.Format("UPDATE [LandMarkInfo] SET [Loc_X] = {0},[Loc_Y] = {1} WHERE [Loc_ID] = {2}", x, y, rfid));
|
||||
bool flag = a == "1";
|
||||
if (flag)
|
||||
{
|
||||
Console.WriteLine(string.Format("{0} 更新成功!x:{1},y:{2} ", rfid, x, y));
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000102 RID: 258 RVA: 0x0001E0E8 File Offset: 0x0001C2E8
|
||||
public static void DgvUpdate(DataGridView dgv, int row, string columnname, bool value)
|
||||
{
|
||||
object obj = Func.obj_dgvupdate;
|
||||
lock (obj)
|
||||
{
|
||||
Func.dgvUpdate(dgv, row, columnname, value);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000103 RID: 259 RVA: 0x0001E130 File Offset: 0x0001C330
|
||||
private static void dgvUpdate(DataGridView dgv, int row, string columnname, bool value)
|
||||
{
|
||||
dgv.Rows[row].Cells[columnname].Value = value;
|
||||
bool flag = columnname == "Status";
|
||||
if (flag)
|
||||
{
|
||||
if (value)
|
||||
{
|
||||
dgv.Rows[row].DefaultCellStyle.ForeColor = Color.Red;
|
||||
}
|
||||
else
|
||||
{
|
||||
dgv.Rows[row].Cells["联网状态"].Value = value;
|
||||
dgv.Rows[row].DefaultCellStyle.ForeColor = Color.Gray;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = columnname == "联网状态";
|
||||
if (flag2)
|
||||
{
|
||||
if (value)
|
||||
{
|
||||
dgv.Rows[row].DefaultCellStyle.ForeColor = Color.Black;
|
||||
}
|
||||
else
|
||||
{
|
||||
dgv.Rows[row].DefaultCellStyle.ForeColor = Color.Red;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000104 RID: 260 RVA: 0x0001E234 File Offset: 0x0001C434
|
||||
public static int AgvIpToId(string IP)
|
||||
{
|
||||
object obj = Func.obj_AgvIpToId;
|
||||
int result;
|
||||
lock (obj)
|
||||
{
|
||||
int num = 0;
|
||||
DataTable dataTable = new DataView(mainfrm.ds_Agvlist.Tables[0])
|
||||
{
|
||||
RowFilter = "IPAddress='" + IP + "'",
|
||||
RowStateFilter = DataViewRowState.OriginalRows
|
||||
}.ToTable();
|
||||
try
|
||||
{
|
||||
num = (int)Convert.ToInt16(dataTable.Rows[0]["ID"].ToString());
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
result = num;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000105 RID: 261 RVA: 0x0001E2F4 File Offset: 0x0001C4F4
|
||||
public static void Agv_Car_Status(int agv_id, bool run_status, int warn_level, int current_location, int map_id, int run_fx)
|
||||
{
|
||||
try
|
||||
{
|
||||
Func.agvcar[agv_id - 1].Car_Warn_Level = warn_level;
|
||||
bool flag = current_location != Func.Agv_Location_Temp[agv_id - 1];
|
||||
if (flag)
|
||||
{
|
||||
Func.agvcar[agv_id - 1].Run_Status = false;
|
||||
Func.Agv_Location_Temp[agv_id - 1] = current_location;
|
||||
}
|
||||
else
|
||||
{
|
||||
Func.agvcar[agv_id - 1].Run_Status = run_status;
|
||||
}
|
||||
bool flag2 = current_location == 0;
|
||||
if (!flag2)
|
||||
{
|
||||
Func.run_time = 0;
|
||||
Func.run_model = 0;
|
||||
Func.next_loc = 0;
|
||||
Panel panel = new Panel();
|
||||
Panel panel2 = new Panel();
|
||||
Panel panel3 = new Panel();
|
||||
bool flag3 = map_id == 1;
|
||||
if (flag3)
|
||||
{
|
||||
panel3 = mainfrm.Map1;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag4 = map_id == 2;
|
||||
if (flag4)
|
||||
{
|
||||
panel3 = mainfrm.Map2;
|
||||
}
|
||||
else
|
||||
{
|
||||
panel3 = mainfrm.Map3;
|
||||
}
|
||||
}
|
||||
foreach (object obj in panel3.Controls)
|
||||
{
|
||||
Control control = (Control)obj;
|
||||
bool flag5 = control.GetType().Name == "Panel";
|
||||
if (flag5)
|
||||
{
|
||||
bool flag6 = (int)Convert.ToInt16(control.Tag.ToString().Split(new char[]
|
||||
{
|
||||
'-'
|
||||
})[0]) == current_location;
|
||||
if (flag6)
|
||||
{
|
||||
panel = (Panel)control;
|
||||
bool flag7 = panel != (Panel)Func.agvcar[agv_id - 1].Parent && !Func.agvcar[agv_id - 1].Run_Status;
|
||||
if (flag7)
|
||||
{
|
||||
Func.agvcar[agv_id - 1].Refresh();
|
||||
panel2 = (Panel)Func.agvcar[agv_id - 1].Parent;
|
||||
Func.agvcar[agv_id - 1].Parent = panel;
|
||||
Func.agvcar[agv_id - 1].BringToFront();
|
||||
bool flag8 = panel.Tag.ToString().Split(new char[]
|
||||
{
|
||||
'-'
|
||||
})[1] == "1";
|
||||
if (flag8)
|
||||
{
|
||||
Func.agvcar[agv_id - 1].Dock = DockStyle.Left;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag9 = panel.Tag.ToString().Split(new char[]
|
||||
{
|
||||
'-'
|
||||
})[1] == "2";
|
||||
if (flag9)
|
||||
{
|
||||
Func.agvcar[agv_id - 1].Dock = DockStyle.Right;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag10 = panel.Tag.ToString().Split(new char[]
|
||||
{
|
||||
'-'
|
||||
})[1] == "3";
|
||||
if (flag10)
|
||||
{
|
||||
Func.agvcar[agv_id - 1].Dock = DockStyle.Top;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag11 = panel.Tag.ToString().Split(new char[]
|
||||
{
|
||||
'-'
|
||||
})[1] == "4";
|
||||
if (flag11)
|
||||
{
|
||||
Func.agvcar[agv_id - 1].Dock = DockStyle.Bottom;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag12 = panel == (Panel)Func.agvcar[agv_id - 1].Parent && Func.agvcar[agv_id - 1].Run_Status;
|
||||
if (flag12)
|
||||
{
|
||||
bool flag13 = Func.agvcar[agv_id - 1].Parent != panel3;
|
||||
if (flag13)
|
||||
{
|
||||
panel2 = (Panel)Func.agvcar[agv_id - 1].Parent;
|
||||
Func.agvcar[agv_id - 1].Dock = DockStyle.None;
|
||||
Func.agvcar[agv_id - 1].Parent = panel3;
|
||||
string name = panel3.Name;
|
||||
Func.agvcar[agv_id - 1].Location = panel2.Location;
|
||||
Func.agvcar[agv_id - 1].BringToFront();
|
||||
Func.nextStation((int)Convert.ToInt16(Func.agvcar[agv_id - 1].Tag.ToString().Split(new char[]
|
||||
{
|
||||
'-'
|
||||
})[1]), current_location, run_fx, out Func.run_time, out Func.run_model, out Func.next_loc);
|
||||
Func.agvcar[agv_id - 1].TimeLong = Func.run_time;
|
||||
Func.agvcar[agv_id - 1].Run_Model = Func.run_model;
|
||||
bool flag14 = Func.next_loc != 0;
|
||||
if (flag14)
|
||||
{
|
||||
foreach (object obj2 in panel3.Controls)
|
||||
{
|
||||
Control control2 = (Control)obj2;
|
||||
bool flag15 = control2.GetType().Name == "Panel";
|
||||
if (flag15)
|
||||
{
|
||||
bool flag16 = (int)Convert.ToInt16(control2.Tag.ToString().Split(new char[]
|
||||
{
|
||||
'-'
|
||||
})[0]) == Func.next_loc;
|
||||
if (flag16)
|
||||
{
|
||||
Func.agvcar[agv_id - 1].NextLocation = control2.Location;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
int num = 0;
|
||||
foreach (object obj3 in panel.Controls)
|
||||
{
|
||||
Control control3 = (Control)obj3;
|
||||
num += Param.Icon_Size;
|
||||
}
|
||||
bool flag17 = panel.Tag != null && (panel.Tag.ToString().Split(new char[]
|
||||
{
|
||||
'-'
|
||||
})[1] == "3" || panel.Tag.ToString().Split(new char[]
|
||||
{
|
||||
'-'
|
||||
})[1] == "4");
|
||||
if (flag17)
|
||||
{
|
||||
panel.Height = num;
|
||||
}
|
||||
else
|
||||
{
|
||||
panel.Width = num;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000106 RID: 262 RVA: 0x0001E8F0 File Offset: 0x0001CAF0
|
||||
private static void nextStation(int Assembly_ID, int Landmark_ID, int flag, out int run_time1, out int run_model1, out int next_loc1)
|
||||
{
|
||||
run_time1 = 0;
|
||||
run_model1 = 0;
|
||||
next_loc1 = 0;
|
||||
DataTable dataTable = new DataView(mainfrm.ds_linelandmark.Tables[0])
|
||||
{
|
||||
RowFilter = "Assembly_Line=" + Assembly_ID.ToString() + " and LOC_ID= " + Landmark_ID.ToString(),
|
||||
RowStateFilter = DataViewRowState.OriginalRows
|
||||
}.ToTable();
|
||||
try
|
||||
{
|
||||
bool flag2 = dataTable.Rows.Count == 1;
|
||||
if (flag2)
|
||||
{
|
||||
bool flag3 = flag == 1;
|
||||
if (flag3)
|
||||
{
|
||||
next_loc1 = (int)Convert.ToInt16(dataTable.Rows[0]["Next_Station1"]);
|
||||
run_time1 = (int)Convert.ToInt16(dataTable.Rows[0]["LongTime1"]);
|
||||
run_model1 = (int)Convert.ToInt16(dataTable.Rows[0]["Drict1"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag4 = flag == 2;
|
||||
if (flag4)
|
||||
{
|
||||
next_loc1 = (int)Convert.ToInt16(dataTable.Rows[0]["Next_Station1"]);
|
||||
run_time1 = (int)Convert.ToInt16(dataTable.Rows[0]["LongTime2"]);
|
||||
run_model1 = (int)Convert.ToInt16(dataTable.Rows[0]["Drict2"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag5 = flag == 3;
|
||||
if (flag5)
|
||||
{
|
||||
next_loc1 = (int)Convert.ToInt16(dataTable.Rows[0]["Next_Station1"]);
|
||||
run_time1 = (int)Convert.ToInt16(dataTable.Rows[0]["LongTime2"]);
|
||||
run_model1 = (int)Convert.ToInt16(dataTable.Rows[0]["Drict2"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000107 RID: 263 RVA: 0x0001EAC4 File Offset: 0x0001CCC4
|
||||
public static void Agv_Alarm_Insert(int del_agv_no, string Assembly_Name, string Assembly_Id, int AGV_Internal_No, string AlarmInfo, int agv_no)
|
||||
{
|
||||
object obj = Func.obj_agv_alarm_insert;
|
||||
lock (obj)
|
||||
{
|
||||
Func.agv_alarm_insert(del_agv_no, Assembly_Name, Assembly_Id, AGV_Internal_No, AlarmInfo, agv_no);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000108 RID: 264 RVA: 0x0001EB10 File Offset: 0x0001CD10
|
||||
private static void agv_alarm_insert(int del_agv_no, string Assembly_Name, string Assembly_Id, int AGV_Internal_No, string AlarmInfo, int agv_no)
|
||||
{
|
||||
bool flag = del_agv_no == 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = false;
|
||||
bool flag3 = mainfrm.ds_AgvWarn.Tables[0].Rows.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
for (int i = 0; i < mainfrm.ds_AgvWarn.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
bool flag4 = (int)Convert.ToInt16(mainfrm.ds_AgvWarn.Tables[0].Rows[i][3].ToString()) == agv_no && mainfrm.ds_AgvWarn.Tables[0].Rows[i][5].ToString().Trim() == AlarmInfo.Trim();
|
||||
if (flag4)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
bool flag5 = !flag2;
|
||||
if (flag5)
|
||||
{
|
||||
DataRow dataRow = mainfrm.ds_AgvWarn.Tables[0].NewRow();
|
||||
dataRow[0] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
|
||||
dataRow[1] = Assembly_Id;
|
||||
dataRow[2] = Assembly_Name;
|
||||
dataRow[3] = agv_no;
|
||||
dataRow[4] = AGV_Internal_No;
|
||||
dataRow[5] = AlarmInfo;
|
||||
mainfrm.ds_AgvWarn.Tables[0].Rows.Add(dataRow);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int j = 0; j < mainfrm.ds_AgvWarn.Tables[0].Rows.Count; j++)
|
||||
{
|
||||
bool flag6 = AlarmInfo == "正常";
|
||||
if (flag6)
|
||||
{
|
||||
bool flag7 = (int)Convert.ToInt16(mainfrm.ds_AgvWarn.Tables[0].Rows[j][3]) == del_agv_no;
|
||||
if (flag7)
|
||||
{
|
||||
bool flag8 = !mainfrm.ds_AgvWarn.Tables[0].Rows[j][5].ToString().Contains("障碍物");
|
||||
if (flag8)
|
||||
{
|
||||
Warn_Log item = new Warn_Log(mainfrm.ds_AgvWarn.Tables[0].Rows[j][0].ToString(), mainfrm.ds_AgvWarn.Tables[0].Rows[j][3].ToString(), mainfrm.ds_AgvWarn.Tables[0].Rows[j][5].ToString(), DateTime.Now.ToString());
|
||||
UPDateDBList.upDbList.Add(item);
|
||||
}
|
||||
mainfrm.ds_AgvWarn.Tables[0].Rows.RemoveAt(j);
|
||||
j--;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag9 = (int)Convert.ToInt16(mainfrm.ds_AgvWarn.Tables[0].Rows[j][3]) == del_agv_no && mainfrm.ds_AgvWarn.Tables[0].Rows[j][5].ToString() == AlarmInfo;
|
||||
if (flag9)
|
||||
{
|
||||
bool flag10 = !mainfrm.ds_AgvWarn.Tables[0].Rows[j][5].ToString().Contains("障碍物");
|
||||
if (flag10)
|
||||
{
|
||||
Warn_Log item2 = new Warn_Log(mainfrm.ds_AgvWarn.Tables[0].Rows[j][0].ToString(), mainfrm.ds_AgvWarn.Tables[0].Rows[j][3].ToString(), mainfrm.ds_AgvWarn.Tables[0].Rows[j][5].ToString(), DateTime.Now.ToString());
|
||||
UPDateDBList.upDbList.Add(item2);
|
||||
}
|
||||
mainfrm.ds_AgvWarn.Tables[0].Rows.RemoveAt(j);
|
||||
j--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000109 RID: 265 RVA: 0x0001EF80 File Offset: 0x0001D180
|
||||
public static void CrossInfo_Insert(string Assembly_Name, string Assembly_Id, int AGV_Internal_No, int LandMark, string Info, int agv_no, int plc_value, int internal_id, int line_id, string line_name)
|
||||
{
|
||||
object obj = Func.obj_crossinfo_insert1;
|
||||
lock (obj)
|
||||
{
|
||||
Func.crossInfo_Insert(Assembly_Name, Assembly_Id, AGV_Internal_No, LandMark, Info, agv_no, plc_value, internal_id, line_id, line_name);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600010A RID: 266 RVA: 0x0001EFD4 File Offset: 0x0001D1D4
|
||||
public static void crossInfo_Insert(string Assembly_Name, string Assembly_Id, int AGV_Internal_No, int LandMark, string Info, int agv_no, int plc_value, int internal_id, int line_id, string line_name)
|
||||
{
|
||||
string sqlstr = string.Concat(new string[]
|
||||
{
|
||||
"INSERT INTO [Go_Log] ([Dt] ,[Agv_id] ,[Type] ,[Location],[plc_value] ,[Internal_ID],[Line_ID] ,[Line_Name]) VALUES ('",
|
||||
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"),
|
||||
"',",
|
||||
agv_no.ToString(),
|
||||
",'",
|
||||
Info,
|
||||
"',",
|
||||
LandMark.ToString(),
|
||||
",",
|
||||
plc_value.ToString(),
|
||||
",",
|
||||
internal_id.ToString(),
|
||||
",",
|
||||
line_id.ToString(),
|
||||
",'",
|
||||
line_name,
|
||||
"')"
|
||||
});
|
||||
Func.db_conn.Command(sqlstr);
|
||||
}
|
||||
|
||||
// Token: 0x0600010B RID: 267 RVA: 0x0001F0A4 File Offset: 0x0001D2A4
|
||||
public static void CrossInfo_Insert(string Assembly_Name, string Assembly_Id, int AGV_Internal_No, int LandMark, string Info, int agv_no, int plc_value)
|
||||
{
|
||||
UPDateDBList.upDbList.Add(new CrossInfo_Insert(DateTime.Now, Assembly_Name, Assembly_Id, AGV_Internal_No, LandMark, Info, agv_no, plc_value));
|
||||
}
|
||||
|
||||
// Token: 0x0600010C RID: 268 RVA: 0x0001F0D4 File Offset: 0x0001D2D4
|
||||
public static int GetLandMarkId(int assemblyline_id, int value)
|
||||
{
|
||||
object obj = Func.obj_GetLandMarkId;
|
||||
int result;
|
||||
lock (obj)
|
||||
{
|
||||
int num = 0;
|
||||
DataTable dataTable = new DataView(mainfrm.ds_linelandmark.Tables[0])
|
||||
{
|
||||
RowFilter = "Flag_Value=" + value.ToString() + " and Assembly_Line= " + assemblyline_id.ToString(),
|
||||
RowStateFilter = DataViewRowState.OriginalRows
|
||||
}.ToTable();
|
||||
try
|
||||
{
|
||||
bool flag2 = dataTable.Rows.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
num = (int)Convert.ToInt16(dataTable.Rows[0]["Loc_ID"].ToString());
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
result = num;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x0600010D RID: 269 RVA: 0x0001F1B0 File Offset: 0x0001D3B0
|
||||
public static void Change_Rec(int agv_id, int current_loc, int histroy_loc, DateTime dt, int internal_id, int line_id, string line_name)
|
||||
{
|
||||
object obj = Func.obj_change;
|
||||
lock (obj)
|
||||
{
|
||||
bool flag2 = mainfrm.ds_Change.Tables[0].Rows.Count == 0;
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = histroy_loc == 0;
|
||||
if (!flag3)
|
||||
{
|
||||
bool flag4 = false;
|
||||
bool flag5 = false;
|
||||
bool flag6 = mainfrm.ds_Change.Tables[0].Rows.Count > 0;
|
||||
if (flag6)
|
||||
{
|
||||
foreach (object obj2 in mainfrm.ds_Change.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj2;
|
||||
bool flag7 = (int)Convert.ToInt16(dataRow[0].ToString()) == current_loc;
|
||||
if (flag7)
|
||||
{
|
||||
flag4 = true;
|
||||
return;
|
||||
}
|
||||
bool flag8 = (int)Convert.ToInt16(dataRow[0].ToString()) == histroy_loc;
|
||||
if (flag8)
|
||||
{
|
||||
flag5 = true;
|
||||
}
|
||||
}
|
||||
bool flag9 = !flag4 && flag5;
|
||||
if (flag9)
|
||||
{
|
||||
Func.db_conn.Command(string.Concat(new string[]
|
||||
{
|
||||
"INSERT INTO [Change_Log]([Agv_ID] ,[Start_time],[Finish_time] ,[Location_ID],internal_id, line_id, line_name) VALUES(",
|
||||
agv_id.ToString(),
|
||||
",'",
|
||||
dt.ToString(),
|
||||
"','",
|
||||
DateTime.Now.ToString(),
|
||||
"',",
|
||||
histroy_loc.ToString(),
|
||||
",",
|
||||
internal_id.ToString(),
|
||||
",",
|
||||
line_id.ToString(),
|
||||
",'",
|
||||
line_name,
|
||||
"')"
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600010E RID: 270 RVA: 0x0001F3C0 File Offset: 0x0001D5C0
|
||||
public static void Change_Rec(int agv_id, int current_loc, int histroy_loc, DateTime dt)
|
||||
{
|
||||
object obj = Func.obj_change1;
|
||||
lock (obj)
|
||||
{
|
||||
bool flag2 = mainfrm.ds_Change.Tables[0].Rows.Count == 0;
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = histroy_loc == 0;
|
||||
if (!flag3)
|
||||
{
|
||||
bool flag4 = false;
|
||||
bool flag5 = false;
|
||||
bool flag6 = mainfrm.ds_Change.Tables[0].Rows.Count > 0;
|
||||
if (flag6)
|
||||
{
|
||||
foreach (object obj2 in mainfrm.ds_Change.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj2;
|
||||
bool flag7 = (int)Convert.ToInt16(dataRow[0].ToString()) == current_loc;
|
||||
if (flag7)
|
||||
{
|
||||
flag4 = true;
|
||||
return;
|
||||
}
|
||||
bool flag8 = (int)Convert.ToInt16(dataRow[0].ToString()) == histroy_loc;
|
||||
if (flag8)
|
||||
{
|
||||
flag5 = true;
|
||||
}
|
||||
}
|
||||
bool flag9 = !flag4 && flag5;
|
||||
if (flag9)
|
||||
{
|
||||
Func.db_conn.Command(string.Concat(new string[]
|
||||
{
|
||||
"INSERT INTO [Change_Log]([Agv_ID] ,[Start_time],[Finish_time] ,[Location_ID]) VALUES(",
|
||||
agv_id.ToString(),
|
||||
",'",
|
||||
dt.ToString(),
|
||||
"','",
|
||||
DateTime.Now.ToString(),
|
||||
"',",
|
||||
histroy_loc.ToString(),
|
||||
")"
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001F6 RID: 502
|
||||
public static Agv[] agvcar;
|
||||
|
||||
// Token: 0x040001F7 RID: 503
|
||||
public static AgvInfo[] AgvInfo;
|
||||
|
||||
// Token: 0x040001F8 RID: 504
|
||||
public static ClsDBConn_sql db_conn = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x040001F9 RID: 505
|
||||
public static BllBase bBllBase = new BllBase();
|
||||
|
||||
// Token: 0x040001FA RID: 506
|
||||
public static int[] Agv_Location_Temp;
|
||||
|
||||
// Token: 0x040001FB RID: 507
|
||||
public static int loc_flag = 0;
|
||||
|
||||
// Token: 0x040001FC RID: 508
|
||||
private static bool moveFlag = false;
|
||||
|
||||
// Token: 0x040001FD RID: 509
|
||||
private static int xPos;
|
||||
|
||||
// Token: 0x040001FE RID: 510
|
||||
private static int yPos;
|
||||
|
||||
// Token: 0x040001FF RID: 511
|
||||
private static object obj_dgvupdate = new object();
|
||||
|
||||
// Token: 0x04000200 RID: 512
|
||||
private static object obj_AgvIpToId = new object();
|
||||
|
||||
// Token: 0x04000201 RID: 513
|
||||
private static int run_time;
|
||||
|
||||
// Token: 0x04000202 RID: 514
|
||||
private static int run_model;
|
||||
|
||||
// Token: 0x04000203 RID: 515
|
||||
private static int next_loc = 0;
|
||||
|
||||
// Token: 0x04000204 RID: 516
|
||||
private static object obj_agv_alarm_insert = new object();
|
||||
|
||||
// Token: 0x04000205 RID: 517
|
||||
private static object obj_crossinfo_insert1 = new object();
|
||||
|
||||
// Token: 0x04000206 RID: 518
|
||||
private static object obj_crossinfo_insert = new object();
|
||||
|
||||
// Token: 0x04000207 RID: 519
|
||||
private static object obj_GetLandMarkId = new object();
|
||||
|
||||
// Token: 0x04000208 RID: 520
|
||||
private static object obj_change = new object();
|
||||
|
||||
// Token: 0x04000209 RID: 521
|
||||
private static object obj_change1 = new object();
|
||||
}
|
||||
}
|
||||
Generated
+574
@@ -0,0 +1,574 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000010 RID: 16
|
||||
public partial class InputSet : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x060000E8 RID: 232 RVA: 0x0001873C File Offset: 0x0001693C
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x060000E9 RID: 233 RVA: 0x00018774 File Offset: 0x00016974
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::AGVSystem.InputSet));
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.groupBox1 = new global::System.Windows.Forms.GroupBox();
|
||||
this.label9 = new global::System.Windows.Forms.Label();
|
||||
this.numericUpDown3 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.comboBox8 = new global::System.Windows.Forms.ComboBox();
|
||||
this.label8 = new global::System.Windows.Forms.Label();
|
||||
this.label7 = new global::System.Windows.Forms.Label();
|
||||
this.comboBox7 = new global::System.Windows.Forms.ComboBox();
|
||||
this.comboBox6 = new global::System.Windows.Forms.ComboBox();
|
||||
this.comboBox5 = new global::System.Windows.Forms.ComboBox();
|
||||
this.numericUpDown2 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.textBox1 = new global::System.Windows.Forms.TextBox();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label6 = new global::System.Windows.Forms.Label();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.comboBox4 = new global::System.Windows.Forms.ComboBox();
|
||||
this.numericUpDown1 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label5 = new global::System.Windows.Forms.Label();
|
||||
this.comboBox1 = new global::System.Windows.Forms.ComboBox();
|
||||
this.comboBox3 = new global::System.Windows.Forms.ComboBox();
|
||||
this.comboBox2 = new global::System.Windows.Forms.ComboBox();
|
||||
this.toolStrip1 = new global::System.Windows.Forms.ToolStrip();
|
||||
this.toolStripButton1 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton4 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton5 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton6 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
this.板卡编号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.端口号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.端口位 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.输入值 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.区分 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.起始位ID = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.中转位ID = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.最终位ID = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.备注 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.comboBox9 = new global::System.Windows.Forms.ComboBox();
|
||||
this.panel1.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown3).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown2).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown1).BeginInit();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.panel1.Controls.Add(this.groupBox1);
|
||||
this.panel1.Controls.Add(this.toolStrip1);
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.panel1.Location = new global::System.Drawing.Point(675, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(442, 670);
|
||||
this.panel1.TabIndex = 0;
|
||||
this.groupBox1.Controls.Add(this.comboBox9);
|
||||
this.groupBox1.Controls.Add(this.label9);
|
||||
this.groupBox1.Controls.Add(this.numericUpDown3);
|
||||
this.groupBox1.Controls.Add(this.comboBox8);
|
||||
this.groupBox1.Controls.Add(this.label8);
|
||||
this.groupBox1.Controls.Add(this.label7);
|
||||
this.groupBox1.Controls.Add(this.comboBox7);
|
||||
this.groupBox1.Controls.Add(this.comboBox6);
|
||||
this.groupBox1.Controls.Add(this.comboBox5);
|
||||
this.groupBox1.Controls.Add(this.numericUpDown2);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Controls.Add(this.label2);
|
||||
this.groupBox1.Controls.Add(this.textBox1);
|
||||
this.groupBox1.Controls.Add(this.label3);
|
||||
this.groupBox1.Controls.Add(this.label6);
|
||||
this.groupBox1.Controls.Add(this.label4);
|
||||
this.groupBox1.Controls.Add(this.comboBox4);
|
||||
this.groupBox1.Controls.Add(this.numericUpDown1);
|
||||
this.groupBox1.Controls.Add(this.label5);
|
||||
this.groupBox1.Controls.Add(this.comboBox1);
|
||||
this.groupBox1.Controls.Add(this.comboBox3);
|
||||
this.groupBox1.Controls.Add(this.comboBox2);
|
||||
this.groupBox1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox1.Enabled = false;
|
||||
this.groupBox1.Location = new global::System.Drawing.Point(0, 71);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new global::System.Drawing.Size(442, 599);
|
||||
this.groupBox1.TabIndex = 42;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new global::System.Drawing.Point(30, 454);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new global::System.Drawing.Size(77, 12);
|
||||
this.label9.TabIndex = 48;
|
||||
this.label9.Text = "终点位编号:";
|
||||
this.numericUpDown3.Location = new global::System.Drawing.Point(114, 452);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown = this.numericUpDown3;
|
||||
int[] array = new int[4];
|
||||
array[0] = 1000;
|
||||
numericUpDown.Maximum = new decimal(array);
|
||||
this.numericUpDown3.Name = "numericUpDown3";
|
||||
this.numericUpDown3.Size = new global::System.Drawing.Size(120, 21);
|
||||
this.numericUpDown3.TabIndex = 47;
|
||||
this.comboBox8.FormattingEnabled = true;
|
||||
this.comboBox8.Items.AddRange(new object[]
|
||||
{
|
||||
"呼叫控制",
|
||||
"放行控制"
|
||||
});
|
||||
this.comboBox8.Location = new global::System.Drawing.Point(113, 270);
|
||||
this.comboBox8.Name = "comboBox8";
|
||||
this.comboBox8.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox8.TabIndex = 46;
|
||||
this.comboBox8.SelectedIndexChanged += new global::System.EventHandler(this.comboBox8_SelectedIndexChanged);
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new global::System.Drawing.Point(42, 275);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label8.TabIndex = 45;
|
||||
this.label8.Text = "控制类型:";
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new global::System.Drawing.Point(30, 389);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new global::System.Drawing.Size(77, 12);
|
||||
this.label7.TabIndex = 44;
|
||||
this.label7.Text = "中转位编号:";
|
||||
this.comboBox7.FormattingEnabled = true;
|
||||
this.comboBox7.Items.AddRange(new object[]
|
||||
{
|
||||
"0",
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7"
|
||||
});
|
||||
this.comboBox7.Location = new global::System.Drawing.Point(241, 142);
|
||||
this.comboBox7.Name = "comboBox7";
|
||||
this.comboBox7.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox7.TabIndex = 43;
|
||||
this.comboBox7.Visible = false;
|
||||
this.comboBox6.FormattingEnabled = true;
|
||||
this.comboBox6.Items.AddRange(new object[]
|
||||
{
|
||||
"0",
|
||||
"1",
|
||||
"2",
|
||||
"3"
|
||||
});
|
||||
this.comboBox6.Location = new global::System.Drawing.Point(241, 78);
|
||||
this.comboBox6.Name = "comboBox6";
|
||||
this.comboBox6.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox6.TabIndex = 42;
|
||||
this.comboBox6.Visible = false;
|
||||
this.comboBox5.FormattingEnabled = true;
|
||||
this.comboBox5.Items.AddRange(new object[]
|
||||
{
|
||||
"",
|
||||
"card1",
|
||||
"card2",
|
||||
"card3"
|
||||
});
|
||||
this.comboBox5.Location = new global::System.Drawing.Point(241, 14);
|
||||
this.comboBox5.Name = "comboBox5";
|
||||
this.comboBox5.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox5.TabIndex = 41;
|
||||
this.comboBox5.Visible = false;
|
||||
this.numericUpDown2.Location = new global::System.Drawing.Point(114, 387);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown2 = this.numericUpDown2;
|
||||
int[] array2 = new int[4];
|
||||
array2[0] = 1000;
|
||||
numericUpDown2.Maximum = new decimal(array2);
|
||||
this.numericUpDown2.Name = "numericUpDown2";
|
||||
this.numericUpDown2.Size = new global::System.Drawing.Size(120, 21);
|
||||
this.numericUpDown2.TabIndex = 40;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(30, 328);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(77, 12);
|
||||
this.label1.TabIndex = 28;
|
||||
this.label1.Text = "起始位编号:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(42, 17);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 29;
|
||||
this.label2.Text = "板卡选择:";
|
||||
this.textBox1.Location = new global::System.Drawing.Point(113, 520);
|
||||
this.textBox1.Multiline = true;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new global::System.Drawing.Size(240, 64);
|
||||
this.textBox1.TabIndex = 39;
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(66, 81);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label3.TabIndex = 30;
|
||||
this.label3.Text = "Prot:";
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new global::System.Drawing.Point(66, 523);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label6.TabIndex = 38;
|
||||
this.label6.Text = "备注:";
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(72, 145);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(35, 12);
|
||||
this.label4.TabIndex = 31;
|
||||
this.label4.Text = "Bit:";
|
||||
this.comboBox4.FormattingEnabled = true;
|
||||
this.comboBox4.Items.AddRange(new object[]
|
||||
{
|
||||
"0",
|
||||
"1"
|
||||
});
|
||||
this.comboBox4.Location = new global::System.Drawing.Point(113, 208);
|
||||
this.comboBox4.Name = "comboBox4";
|
||||
this.comboBox4.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox4.TabIndex = 37;
|
||||
this.numericUpDown1.Location = new global::System.Drawing.Point(113, 326);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown3 = this.numericUpDown1;
|
||||
int[] array3 = new int[4];
|
||||
array3[0] = 1000;
|
||||
numericUpDown3.Maximum = new decimal(array3);
|
||||
this.numericUpDown1.Name = "numericUpDown1";
|
||||
this.numericUpDown1.Size = new global::System.Drawing.Size(120, 21);
|
||||
this.numericUpDown1.TabIndex = 32;
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new global::System.Drawing.Point(24, 212);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new global::System.Drawing.Size(83, 12);
|
||||
this.label5.TabIndex = 36;
|
||||
this.label5.Text = "Input Value:";
|
||||
this.comboBox1.FormattingEnabled = true;
|
||||
this.comboBox1.Items.AddRange(new object[]
|
||||
{
|
||||
"",
|
||||
"card1",
|
||||
"card2",
|
||||
"card3"
|
||||
});
|
||||
this.comboBox1.Location = new global::System.Drawing.Point(113, 14);
|
||||
this.comboBox1.Name = "comboBox1";
|
||||
this.comboBox1.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox1.TabIndex = 33;
|
||||
this.comboBox3.FormattingEnabled = true;
|
||||
this.comboBox3.Items.AddRange(new object[]
|
||||
{
|
||||
"0",
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7"
|
||||
});
|
||||
this.comboBox3.Location = new global::System.Drawing.Point(113, 142);
|
||||
this.comboBox3.Name = "comboBox3";
|
||||
this.comboBox3.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox3.TabIndex = 35;
|
||||
this.comboBox2.FormattingEnabled = true;
|
||||
this.comboBox2.Items.AddRange(new object[]
|
||||
{
|
||||
"0",
|
||||
"1",
|
||||
"2",
|
||||
"3"
|
||||
});
|
||||
this.comboBox2.Location = new global::System.Drawing.Point(113, 78);
|
||||
this.comboBox2.Name = "comboBox2";
|
||||
this.comboBox2.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox2.TabIndex = 34;
|
||||
this.toolStrip1.BackColor = global::System.Drawing.Color.White;
|
||||
this.toolStrip1.ImageScalingSize = new global::System.Drawing.Size(64, 64);
|
||||
this.toolStrip1.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.toolStripButton1,
|
||||
this.toolStripButton2,
|
||||
this.toolStripButton3,
|
||||
this.toolStripButton4,
|
||||
this.toolStripButton5,
|
||||
this.toolStripButton6
|
||||
});
|
||||
this.toolStrip1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new global::System.Drawing.Size(442, 71);
|
||||
this.toolStrip1.TabIndex = 28;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
this.toolStripButton1.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton1.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton1.Image");
|
||||
this.toolStripButton1.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton1.Text = "新建";
|
||||
this.toolStripButton1.Click += new global::System.EventHandler(this.toolStripButton1_Click);
|
||||
this.toolStripButton2.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton2.Enabled = false;
|
||||
this.toolStripButton2.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton2.Image");
|
||||
this.toolStripButton2.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton2.Text = "查询";
|
||||
this.toolStripButton3.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton3.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton3.Image");
|
||||
this.toolStripButton3.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton3.Text = "添加";
|
||||
this.toolStripButton3.Click += new global::System.EventHandler(this.toolStripButton3_Click);
|
||||
this.toolStripButton4.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton4.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton4.Image");
|
||||
this.toolStripButton4.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton4.Name = "toolStripButton4";
|
||||
this.toolStripButton4.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton4.Text = "删除";
|
||||
this.toolStripButton4.Click += new global::System.EventHandler(this.toolStripButton4_Click);
|
||||
this.toolStripButton5.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton5.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton5.Image");
|
||||
this.toolStripButton5.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton5.Name = "toolStripButton5";
|
||||
this.toolStripButton5.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton5.Text = "更新";
|
||||
this.toolStripButton5.Click += new global::System.EventHandler(this.toolStripButton5_Click);
|
||||
this.toolStripButton6.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton6.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton6.Image");
|
||||
this.toolStripButton6.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton6.Name = "toolStripButton6";
|
||||
this.toolStripButton6.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton6.Text = "保存";
|
||||
this.toolStripButton6.Click += new global::System.EventHandler(this.toolStripButton6_Click);
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeight = 30;
|
||||
this.dataGridView1.Columns.AddRange(new global::System.Windows.Forms.DataGridViewColumn[]
|
||||
{
|
||||
this.板卡编号,
|
||||
this.端口号,
|
||||
this.端口位,
|
||||
this.输入值,
|
||||
this.区分,
|
||||
this.起始位ID,
|
||||
this.中转位ID,
|
||||
this.最终位ID,
|
||||
this.备注
|
||||
});
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.GridColor = global::System.Drawing.Color.DimGray;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersWidth = 60;
|
||||
this.dataGridView1.RowTemplate.Height = 30;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(675, 670);
|
||||
this.dataGridView1.TabIndex = 20;
|
||||
this.dataGridView1.DoubleClick += new global::System.EventHandler(this.dataGridView1_DoubleClick);
|
||||
this.板卡编号.DataPropertyName = "板卡编号";
|
||||
this.板卡编号.HeaderText = "板卡编号";
|
||||
this.板卡编号.Name = "板卡编号";
|
||||
this.板卡编号.ReadOnly = true;
|
||||
this.端口号.DataPropertyName = "端口号";
|
||||
this.端口号.HeaderText = "端口号";
|
||||
this.端口号.Name = "端口号";
|
||||
this.端口号.ReadOnly = true;
|
||||
this.端口位.DataPropertyName = "端口位";
|
||||
this.端口位.HeaderText = "端口位";
|
||||
this.端口位.Name = "端口位";
|
||||
this.端口位.ReadOnly = true;
|
||||
this.输入值.DataPropertyName = "输入值";
|
||||
this.输入值.HeaderText = "输入值";
|
||||
this.输入值.Name = "输入值";
|
||||
this.输入值.ReadOnly = true;
|
||||
this.区分.DataPropertyName = "区分";
|
||||
this.区分.HeaderText = "区分";
|
||||
this.区分.Name = "区分";
|
||||
this.区分.ReadOnly = true;
|
||||
this.起始位ID.DataPropertyName = "起始位ID";
|
||||
this.起始位ID.HeaderText = "起始位ID";
|
||||
this.起始位ID.Name = "起始位ID";
|
||||
this.起始位ID.ReadOnly = true;
|
||||
this.中转位ID.DataPropertyName = "中转位ID";
|
||||
this.中转位ID.HeaderText = "中转位ID";
|
||||
this.中转位ID.Name = "中转位ID";
|
||||
this.中转位ID.ReadOnly = true;
|
||||
this.最终位ID.DataPropertyName = "最终位ID";
|
||||
this.最终位ID.HeaderText = "最终位ID";
|
||||
this.最终位ID.Name = "最终位ID";
|
||||
this.最终位ID.ReadOnly = true;
|
||||
this.备注.DataPropertyName = "备注";
|
||||
this.备注.HeaderText = "备注";
|
||||
this.备注.Name = "备注";
|
||||
this.备注.ReadOnly = true;
|
||||
this.备注.Width = 200;
|
||||
this.comboBox9.FormattingEnabled = true;
|
||||
this.comboBox9.Items.AddRange(new object[]
|
||||
{
|
||||
"0",
|
||||
"1"
|
||||
});
|
||||
this.comboBox9.Location = new global::System.Drawing.Point(241, 208);
|
||||
this.comboBox9.Name = "comboBox9";
|
||||
this.comboBox9.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox9.TabIndex = 49;
|
||||
this.comboBox9.Visible = false;
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(1117, 670);
|
||||
base.Controls.Add(this.dataGridView1);
|
||||
base.Controls.Add(this.panel1);
|
||||
base.Name = "InputSet";
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "板卡Input设置";
|
||||
base.WindowState = global::System.Windows.Forms.FormWindowState.Maximized;
|
||||
base.Load += new global::System.EventHandler(this.InputSet_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown3).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown2).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown1).EndInit();
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x04000185 RID: 389
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x04000186 RID: 390
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x04000187 RID: 391
|
||||
private global::System.Windows.Forms.ToolStrip toolStrip1;
|
||||
|
||||
// Token: 0x04000188 RID: 392
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
|
||||
// Token: 0x04000189 RID: 393
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton2;
|
||||
|
||||
// Token: 0x0400018A RID: 394
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
|
||||
// Token: 0x0400018B RID: 395
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton4;
|
||||
|
||||
// Token: 0x0400018C RID: 396
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton5;
|
||||
|
||||
// Token: 0x0400018D RID: 397
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton6;
|
||||
|
||||
// Token: 0x0400018E RID: 398
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x0400018F RID: 399
|
||||
private global::System.Windows.Forms.GroupBox groupBox1;
|
||||
|
||||
// Token: 0x04000190 RID: 400
|
||||
private global::System.Windows.Forms.ComboBox comboBox7;
|
||||
|
||||
// Token: 0x04000191 RID: 401
|
||||
private global::System.Windows.Forms.ComboBox comboBox6;
|
||||
|
||||
// Token: 0x04000192 RID: 402
|
||||
private global::System.Windows.Forms.ComboBox comboBox5;
|
||||
|
||||
// Token: 0x04000193 RID: 403
|
||||
private global::System.Windows.Forms.NumericUpDown numericUpDown2;
|
||||
|
||||
// Token: 0x04000194 RID: 404
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x04000195 RID: 405
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x04000196 RID: 406
|
||||
private global::System.Windows.Forms.TextBox textBox1;
|
||||
|
||||
// Token: 0x04000197 RID: 407
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x04000198 RID: 408
|
||||
private global::System.Windows.Forms.Label label6;
|
||||
|
||||
// Token: 0x04000199 RID: 409
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x0400019A RID: 410
|
||||
private global::System.Windows.Forms.ComboBox comboBox4;
|
||||
|
||||
// Token: 0x0400019B RID: 411
|
||||
private global::System.Windows.Forms.NumericUpDown numericUpDown1;
|
||||
|
||||
// Token: 0x0400019C RID: 412
|
||||
private global::System.Windows.Forms.Label label5;
|
||||
|
||||
// Token: 0x0400019D RID: 413
|
||||
private global::System.Windows.Forms.ComboBox comboBox1;
|
||||
|
||||
// Token: 0x0400019E RID: 414
|
||||
private global::System.Windows.Forms.ComboBox comboBox3;
|
||||
|
||||
// Token: 0x0400019F RID: 415
|
||||
private global::System.Windows.Forms.ComboBox comboBox2;
|
||||
|
||||
// Token: 0x040001A0 RID: 416
|
||||
private global::System.Windows.Forms.ComboBox comboBox8;
|
||||
|
||||
// Token: 0x040001A1 RID: 417
|
||||
private global::System.Windows.Forms.Label label8;
|
||||
|
||||
// Token: 0x040001A2 RID: 418
|
||||
private global::System.Windows.Forms.Label label7;
|
||||
|
||||
// Token: 0x040001A3 RID: 419
|
||||
private global::System.Windows.Forms.Label label9;
|
||||
|
||||
// Token: 0x040001A4 RID: 420
|
||||
private global::System.Windows.Forms.NumericUpDown numericUpDown3;
|
||||
|
||||
// Token: 0x040001A5 RID: 421
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 板卡编号;
|
||||
|
||||
// Token: 0x040001A6 RID: 422
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 端口号;
|
||||
|
||||
// Token: 0x040001A7 RID: 423
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 端口位;
|
||||
|
||||
// Token: 0x040001A8 RID: 424
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 输入值;
|
||||
|
||||
// Token: 0x040001A9 RID: 425
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 区分;
|
||||
|
||||
// Token: 0x040001AA RID: 426
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 起始位ID;
|
||||
|
||||
// Token: 0x040001AB RID: 427
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 中转位ID;
|
||||
|
||||
// Token: 0x040001AC RID: 428
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 最终位ID;
|
||||
|
||||
// Token: 0x040001AD RID: 429
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 备注;
|
||||
|
||||
// Token: 0x040001AE RID: 430
|
||||
private global::System.Windows.Forms.ComboBox comboBox9;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,243 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000010 RID: 16
|
||||
public partial class InputSet : Form
|
||||
{
|
||||
// Token: 0x060000DF RID: 223 RVA: 0x00017C56 File Offset: 0x00015E56
|
||||
public InputSet()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
// Token: 0x060000E0 RID: 224 RVA: 0x00017C8C File Offset: 0x00015E8C
|
||||
private void comboBox8_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.comboBox8.SelectedIndex == 1;
|
||||
if (flag)
|
||||
{
|
||||
this.label7.Visible = false;
|
||||
this.numericUpDown2.Visible = false;
|
||||
this.label9.Visible = false;
|
||||
this.numericUpDown3.Visible = false;
|
||||
this.numericUpDown2.Value = 0m;
|
||||
this.numericUpDown3.Value = 0m;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.label7.Visible = true;
|
||||
this.numericUpDown2.Visible = true;
|
||||
this.label9.Visible = true;
|
||||
this.numericUpDown3.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000E1 RID: 225 RVA: 0x00017D3C File Offset: 0x00015F3C
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.flag = 0;
|
||||
this.groupBox1.Enabled = true;
|
||||
this.comboBox1.SelectedIndex = 0;
|
||||
this.comboBox2.SelectedIndex = 0;
|
||||
this.comboBox3.SelectedIndex = 0;
|
||||
this.comboBox4.SelectedIndex = 0;
|
||||
this.comboBox5.SelectedIndex = 0;
|
||||
this.comboBox6.SelectedIndex = 0;
|
||||
this.comboBox7.SelectedIndex = 0;
|
||||
this.comboBox8.SelectedIndex = 0;
|
||||
this.comboBox9.SelectedIndex = 0;
|
||||
this.textBox1.Text = "";
|
||||
this.numericUpDown1.Value = 0m;
|
||||
this.numericUpDown2.Value = 0m;
|
||||
this.numericUpDown3.Value = 0m;
|
||||
}
|
||||
|
||||
// Token: 0x060000E2 RID: 226 RVA: 0x00017E18 File Offset: 0x00016018
|
||||
private void InputSet_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.strsql = "SELECT [Card_ID] as 板卡编号 ,[Port] as 端口号 ,[Bit] as 端口位 ,[Value] as 输入值,[Class] as 区分 ,[Loc1] as 起始位ID ,[Loc2] as 中转位ID ,[Loc3] as 最终位ID ,[Remark] as 备注 FROM [IO_Accept]";
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt(this.strsql);
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
}
|
||||
|
||||
// Token: 0x060000E3 RID: 227 RVA: 0x00017E78 File Offset: 0x00016078
|
||||
private void toolStripButton3_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.flag = 0;
|
||||
this.strsql = string.Concat(new string[]
|
||||
{
|
||||
"INSERT INTO [IO_Accept] ([Card_ID] ,[Port] ,[Bit] ,[Value] ,[Class] ,[Loc1] ,[Loc2] ,[Loc3] ,[Remark]) VALUES (",
|
||||
this.comboBox1.SelectedIndex.ToString(),
|
||||
",",
|
||||
this.comboBox2.SelectedIndex.ToString(),
|
||||
",",
|
||||
this.comboBox3.SelectedIndex.ToString(),
|
||||
",",
|
||||
this.comboBox4.SelectedIndex.ToString(),
|
||||
",",
|
||||
this.comboBox8.SelectedIndex.ToString(),
|
||||
",",
|
||||
this.numericUpDown1.Value.ToString(),
|
||||
",",
|
||||
this.numericUpDown2.Value.ToString(),
|
||||
",",
|
||||
this.numericUpDown3.Value.ToString(),
|
||||
",'",
|
||||
this.textBox1.Text,
|
||||
"')"
|
||||
});
|
||||
bool flag2 = this.db.Command(this.strsql) == "1";
|
||||
if (flag2)
|
||||
{
|
||||
MessageBox.Show("添加成功!");
|
||||
this.InputSet_Load(null, null);
|
||||
this.toolStripButton1_Click(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000E4 RID: 228 RVA: 0x00018024 File Offset: 0x00016224
|
||||
private void dataGridView1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.dataGridView1.RowCount > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.flag = 0;
|
||||
this.comboBox1.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["板卡编号"].Value);
|
||||
this.comboBox5.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["板卡编号"].Value);
|
||||
this.comboBox2.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["端口号"].Value);
|
||||
this.comboBox6.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["端口号"].Value);
|
||||
this.comboBox3.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["端口位"].Value);
|
||||
this.comboBox7.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["端口位"].Value);
|
||||
this.comboBox4.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["输入值"].Value);
|
||||
this.comboBox9.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["输入值"].Value);
|
||||
this.comboBox8.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["区分"].Value);
|
||||
this.numericUpDown1.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["起始位ID"].Value);
|
||||
this.numericUpDown2.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["中转位ID"].Value);
|
||||
this.numericUpDown3.Value = Convert.ToDecimal(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["最终位ID"].Value);
|
||||
this.textBox1.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["备注"].Value.ToString();
|
||||
this.groupBox1.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000E5 RID: 229 RVA: 0x000183DE File Offset: 0x000165DE
|
||||
private void toolStripButton5_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.groupBox1.Enabled = true;
|
||||
this.flag = 1;
|
||||
}
|
||||
|
||||
// Token: 0x060000E6 RID: 230 RVA: 0x000183F8 File Offset: 0x000165F8
|
||||
private void toolStripButton6_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.flag == 1;
|
||||
if (flag2)
|
||||
{
|
||||
this.strsql = string.Concat(new string[]
|
||||
{
|
||||
"UPDATE [IO_Accept] SET [Card_ID] = ",
|
||||
this.comboBox1.SelectedIndex.ToString(),
|
||||
",[Port] = ",
|
||||
this.comboBox2.SelectedIndex.ToString(),
|
||||
",[Bit] = ",
|
||||
this.comboBox3.SelectedIndex.ToString(),
|
||||
",[Value] = ",
|
||||
this.comboBox4.SelectedIndex.ToString(),
|
||||
",[Class] = ",
|
||||
this.comboBox8.SelectedIndex.ToString(),
|
||||
",[Loc1] = ",
|
||||
this.numericUpDown1.Value.ToString(),
|
||||
",[Loc2] = ",
|
||||
this.numericUpDown2.Value.ToString(),
|
||||
",[Loc3] = ",
|
||||
this.numericUpDown3.Value.ToString(),
|
||||
",[Remark] = '",
|
||||
this.textBox1.Text,
|
||||
"' WHERE [Card_ID] = ",
|
||||
this.comboBox5.SelectedIndex.ToString(),
|
||||
" and [Port] = ",
|
||||
this.comboBox6.SelectedIndex.ToString(),
|
||||
" and [Bit] = ",
|
||||
this.comboBox7.SelectedIndex.ToString(),
|
||||
" and [Value] = ",
|
||||
this.comboBox9.SelectedIndex.ToString()
|
||||
});
|
||||
bool flag3 = this.db.Command(this.strsql) == "1";
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("更新成功!");
|
||||
this.InputSet_Load(null, null);
|
||||
this.toolStripButton1_Click(null, null);
|
||||
this.flag = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000E7 RID: 231 RVA: 0x0001862C File Offset: 0x0001682C
|
||||
private void toolStripButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.flag = 0;
|
||||
this.strsql = string.Concat(new string[]
|
||||
{
|
||||
" DELETE FROM [IO_Accept] WHERE [Card_ID] = ",
|
||||
this.comboBox5.SelectedIndex.ToString(),
|
||||
" and [Port] =",
|
||||
this.comboBox6.SelectedIndex.ToString(),
|
||||
" and [Bit] = ",
|
||||
this.comboBox7.SelectedIndex.ToString(),
|
||||
" and Value = ",
|
||||
this.comboBox9.SelectedIndex.ToString()
|
||||
});
|
||||
bool flag2 = this.db.Command(this.strsql) == "1";
|
||||
if (flag2)
|
||||
{
|
||||
MessageBox.Show("删除成功!");
|
||||
this.InputSet_Load(null, null);
|
||||
this.toolStripButton1_Click(null, null);
|
||||
this.flag = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000181 RID: 385
|
||||
private string strsql;
|
||||
|
||||
// Token: 0x04000182 RID: 386
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x04000183 RID: 387
|
||||
private DataSet ds = new DataSet();
|
||||
|
||||
// Token: 0x04000184 RID: 388
|
||||
private int flag = 0;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Generated
+286
@@ -0,0 +1,286 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000017 RID: 23
|
||||
public partial class Linemanage : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x06000134 RID: 308 RVA: 0x00037008 File Offset: 0x00035208
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x06000135 RID: 309 RVA: 0x00037040 File Offset: 0x00035240
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::AGVSystem.Linemanage));
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.txt_id = new global::System.Windows.Forms.TextBox();
|
||||
this.txt_line_name = new global::System.Windows.Forms.TextBox();
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
this.线体编号 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.线体名称 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.所属地图 = new global::System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.splitContainer1 = new global::System.Windows.Forms.SplitContainer();
|
||||
this.groupBox1 = new global::System.Windows.Forms.GroupBox();
|
||||
this.comboBox1 = new global::System.Windows.Forms.ComboBox();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.toolStrip1 = new global::System.Windows.Forms.ToolStrip();
|
||||
this.toolStripButton1 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton4 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton5 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton6 = new global::System.Windows.Forms.ToolStripButton();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
base.SuspendLayout();
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(83, 43);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "编号:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(83, 88);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "名称:";
|
||||
this.txt_id.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.txt_id.Location = new global::System.Drawing.Point(129, 40);
|
||||
this.txt_id.Name = "txt_id";
|
||||
this.txt_id.Size = new global::System.Drawing.Size(100, 21);
|
||||
this.txt_id.TabIndex = 2;
|
||||
this.txt_line_name.Location = new global::System.Drawing.Point(129, 85);
|
||||
this.txt_line_name.Name = "txt_line_name";
|
||||
this.txt_line_name.Size = new global::System.Drawing.Size(216, 21);
|
||||
this.txt_line_name.TabIndex = 3;
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToResizeRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeight = 40;
|
||||
this.dataGridView1.Columns.AddRange(new global::System.Windows.Forms.DataGridViewColumn[]
|
||||
{
|
||||
this.线体编号,
|
||||
this.线体名称,
|
||||
this.所属地图
|
||||
});
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersVisible = false;
|
||||
this.dataGridView1.RowTemplate.Height = 30;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(518, 466);
|
||||
this.dataGridView1.TabIndex = 5;
|
||||
this.dataGridView1.DoubleClick += new global::System.EventHandler(this.dataGridView1_DoubleClick);
|
||||
this.线体编号.DataPropertyName = "线体编号";
|
||||
this.线体编号.HeaderText = "线体编号";
|
||||
this.线体编号.Name = "线体编号";
|
||||
this.线体编号.ReadOnly = true;
|
||||
this.线体编号.Width = 80;
|
||||
this.线体名称.DataPropertyName = "线体名称";
|
||||
this.线体名称.HeaderText = "线体名称";
|
||||
this.线体名称.Name = "线体名称";
|
||||
this.线体名称.ReadOnly = true;
|
||||
this.线体名称.Width = 200;
|
||||
this.所属地图.DataPropertyName = "所属地图";
|
||||
this.所属地图.HeaderText = "所属地图";
|
||||
this.所属地图.Name = "所属地图";
|
||||
this.所属地图.ReadOnly = true;
|
||||
this.所属地图.Width = 80;
|
||||
this.splitContainer1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = global::System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.splitContainer1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dataGridView1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.groupBox1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.toolStrip1);
|
||||
this.splitContainer1.Size = new global::System.Drawing.Size(967, 466);
|
||||
this.splitContainer1.SplitterDistance = 518;
|
||||
this.splitContainer1.TabIndex = 17;
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Controls.Add(this.label2);
|
||||
this.groupBox1.Controls.Add(this.comboBox1);
|
||||
this.groupBox1.Controls.Add(this.txt_id);
|
||||
this.groupBox1.Controls.Add(this.label3);
|
||||
this.groupBox1.Controls.Add(this.txt_line_name);
|
||||
this.groupBox1.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox1.Location = new global::System.Drawing.Point(0, 71);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new global::System.Drawing.Size(445, 219);
|
||||
this.groupBox1.TabIndex = 28;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "线体信息";
|
||||
this.comboBox1.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBox1.FormattingEnabled = true;
|
||||
this.comboBox1.Items.AddRange(new object[]
|
||||
{
|
||||
"NULL",
|
||||
"AGV路线图1",
|
||||
"AGV路线图2",
|
||||
"AGV路线图3"
|
||||
});
|
||||
this.comboBox1.Location = new global::System.Drawing.Point(129, 130);
|
||||
this.comboBox1.Name = "comboBox1";
|
||||
this.comboBox1.Size = new global::System.Drawing.Size(141, 20);
|
||||
this.comboBox1.TabIndex = 21;
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(59, 133);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label3.TabIndex = 20;
|
||||
this.label3.Text = "所属地图:";
|
||||
this.toolStrip1.BackColor = global::System.Drawing.Color.White;
|
||||
this.toolStrip1.ImageScalingSize = new global::System.Drawing.Size(64, 64);
|
||||
this.toolStrip1.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.toolStripButton1,
|
||||
this.toolStripButton2,
|
||||
this.toolStripButton3,
|
||||
this.toolStripButton4,
|
||||
this.toolStripButton5,
|
||||
this.toolStripButton6
|
||||
});
|
||||
this.toolStrip1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new global::System.Drawing.Size(445, 71);
|
||||
this.toolStrip1.TabIndex = 27;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
this.toolStripButton1.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton1.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton1.Image");
|
||||
this.toolStripButton1.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton1.Text = "新建";
|
||||
this.toolStripButton1.Click += new global::System.EventHandler(this.toolStripButton1_Click);
|
||||
this.toolStripButton2.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton2.Enabled = false;
|
||||
this.toolStripButton2.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton2.Image");
|
||||
this.toolStripButton2.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton2.Text = "查询";
|
||||
this.toolStripButton3.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton3.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton3.Image");
|
||||
this.toolStripButton3.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton3.Text = "添加";
|
||||
this.toolStripButton3.Click += new global::System.EventHandler(this.toolStripButton3_Click);
|
||||
this.toolStripButton4.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton4.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton4.Image");
|
||||
this.toolStripButton4.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton4.Name = "toolStripButton4";
|
||||
this.toolStripButton4.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton4.Text = "删除";
|
||||
this.toolStripButton4.Click += new global::System.EventHandler(this.toolStripButton4_Click);
|
||||
this.toolStripButton5.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton5.Enabled = false;
|
||||
this.toolStripButton5.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton5.Image");
|
||||
this.toolStripButton5.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton5.Name = "toolStripButton5";
|
||||
this.toolStripButton5.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton5.Text = "更新";
|
||||
this.toolStripButton6.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton6.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton6.Image");
|
||||
this.toolStripButton6.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton6.Name = "toolStripButton6";
|
||||
this.toolStripButton6.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton6.Text = "保存";
|
||||
this.toolStripButton6.Click += new global::System.EventHandler(this.toolStripButton6_Click);
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(967, 466);
|
||||
base.Controls.Add(this.splitContainer1);
|
||||
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.Fixed3D;
|
||||
base.Name = "Linemanage";
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "运行线体管理";
|
||||
base.Load += new global::System.EventHandler(this.Linemanage_Load);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x04000421 RID: 1057
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x04000422 RID: 1058
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x04000423 RID: 1059
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x04000424 RID: 1060
|
||||
private global::System.Windows.Forms.TextBox txt_id;
|
||||
|
||||
// Token: 0x04000425 RID: 1061
|
||||
private global::System.Windows.Forms.TextBox txt_line_name;
|
||||
|
||||
// Token: 0x04000426 RID: 1062
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x04000427 RID: 1063
|
||||
private global::System.Windows.Forms.SplitContainer splitContainer1;
|
||||
|
||||
// Token: 0x04000428 RID: 1064
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 线体编号;
|
||||
|
||||
// Token: 0x04000429 RID: 1065
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 线体名称;
|
||||
|
||||
// Token: 0x0400042A RID: 1066
|
||||
private global::System.Windows.Forms.DataGridViewTextBoxColumn 所属地图;
|
||||
|
||||
// Token: 0x0400042B RID: 1067
|
||||
private global::System.Windows.Forms.ComboBox comboBox1;
|
||||
|
||||
// Token: 0x0400042C RID: 1068
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x0400042D RID: 1069
|
||||
private global::System.Windows.Forms.ToolStrip toolStrip1;
|
||||
|
||||
// Token: 0x0400042E RID: 1070
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
|
||||
// Token: 0x0400042F RID: 1071
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton2;
|
||||
|
||||
// Token: 0x04000430 RID: 1072
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
|
||||
// Token: 0x04000431 RID: 1073
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton4;
|
||||
|
||||
// Token: 0x04000432 RID: 1074
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton5;
|
||||
|
||||
// Token: 0x04000433 RID: 1075
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton6;
|
||||
|
||||
// Token: 0x04000434 RID: 1076
|
||||
private global::System.Windows.Forms.GroupBox groupBox1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,191 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000017 RID: 23
|
||||
public partial class Linemanage : Form
|
||||
{
|
||||
// Token: 0x0600012A RID: 298 RVA: 0x00036A63 File Offset: 0x00034C63
|
||||
public Linemanage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
// Token: 0x0600012B RID: 299 RVA: 0x00036A94 File Offset: 0x00034C94
|
||||
private void Linemanage_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.ds = this.db.connDt("select id as 线体编号 , line_name as 线体名称 , area as 所属地图 from Assembly_Line");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
}
|
||||
base.WindowState = FormWindowState.Maximized;
|
||||
}
|
||||
|
||||
// Token: 0x0600012C RID: 300 RVA: 0x00036AF8 File Offset: 0x00034CF8
|
||||
private void dataGridView1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.dataGridView1.RowCount > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.txt_id.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["线体编号"].Value.ToString();
|
||||
this.txt_line_name.Text = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["线体名称"].Value.ToString();
|
||||
this.comboBox1.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["所属地图"].Value.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600012D RID: 301 RVA: 0x00036BF4 File Offset: 0x00034DF4
|
||||
private int Delete_Assembly_Line(string id)
|
||||
{
|
||||
int result = 0;
|
||||
try
|
||||
{
|
||||
result = (int)Convert.ToInt16(this.db.Command("delete from Assembly_Line where id = " + id));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x0600012E RID: 302 RVA: 0x00036C40 File Offset: 0x00034E40
|
||||
private int Update_Assembly_Line(string id, string name, int map)
|
||||
{
|
||||
int result = 0;
|
||||
try
|
||||
{
|
||||
result = (int)Convert.ToInt16(this.db.Command(string.Concat(new string[]
|
||||
{
|
||||
"update Assembly_Line set line_name='",
|
||||
name,
|
||||
"' , area = ",
|
||||
map.ToString(),
|
||||
" where id = ",
|
||||
id
|
||||
})));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x0600012F RID: 303 RVA: 0x00036CB4 File Offset: 0x00034EB4
|
||||
private int Add_Assembly_Line(string id, string name, int map)
|
||||
{
|
||||
int result = 0;
|
||||
try
|
||||
{
|
||||
result = (int)Convert.ToInt16(this.db.Command(string.Concat(new string[]
|
||||
{
|
||||
"insert into Assembly_Line (id , line_name,area ) values (",
|
||||
id,
|
||||
",'",
|
||||
name,
|
||||
"',",
|
||||
map.ToString(),
|
||||
") "
|
||||
})));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000130 RID: 304 RVA: 0x00036D30 File Offset: 0x00034F30
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.txt_id.Text = "";
|
||||
this.txt_line_name.Text = "";
|
||||
this.comboBox1.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000131 RID: 305 RVA: 0x00036D64 File Offset: 0x00034F64
|
||||
private void toolStripButton3_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.txt_id.Text.Trim() == "" || this.txt_line_name.Text.Trim() == "";
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = this.Add_Assembly_Line(this.txt_id.Text, this.txt_line_name.Text, this.comboBox1.SelectedIndex) > 0;
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("添加成功!");
|
||||
this.Linemanage_Load(null, null);
|
||||
this.txt_id.Text = "";
|
||||
this.txt_line_name.Text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000132 RID: 306 RVA: 0x00036E4C File Offset: 0x0003504C
|
||||
private void toolStripButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.txt_id.Text.Trim() == "" || this.txt_line_name.Text.Trim() == "";
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = this.Delete_Assembly_Line(this.txt_id.Text.Trim()) > 0;
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("删除成功!");
|
||||
this.Linemanage_Load(null, null);
|
||||
this.txt_id.Text = "";
|
||||
this.txt_line_name.Text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000133 RID: 307 RVA: 0x00036F20 File Offset: 0x00035120
|
||||
private void toolStripButton6_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.txt_id.Text.Trim() == "" || this.txt_line_name.Text.Trim() == "";
|
||||
if (!flag2)
|
||||
{
|
||||
bool flag3 = this.Update_Assembly_Line(this.txt_id.Text, this.txt_line_name.Text, this.comboBox1.SelectedIndex + 1) > 0;
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("修改成功!");
|
||||
this.Linemanage_Load(null, null);
|
||||
this.txt_id.Text = "";
|
||||
this.txt_line_name.Text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400041F RID: 1055
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x04000420 RID: 1056
|
||||
private DataSet ds = new DataSet();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
+531
@@ -0,0 +1,531 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000011 RID: 17
|
||||
public partial class Location_Set : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x060000EF RID: 239 RVA: 0x0001A8C4 File Offset: 0x00018AC4
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x060000F0 RID: 240 RVA: 0x0001A8FC File Offset: 0x00018AFC
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.txt_zb_x = new global::System.Windows.Forms.TextBox();
|
||||
this.label10 = new global::System.Windows.Forms.Label();
|
||||
this.num_speed = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label9 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_zhangaiwu = new global::System.Windows.Forms.ComboBox();
|
||||
this.label8 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_type = new global::System.Windows.Forms.ComboBox();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.label5 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_bd = new global::System.Windows.Forms.ComboBox();
|
||||
this.label6 = new global::System.Windows.Forms.Label();
|
||||
this.label7 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_map = new global::System.Windows.Forms.ComboBox();
|
||||
this.groupBox2 = new global::System.Windows.Forms.GroupBox();
|
||||
this.next_longtime1 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label14 = new global::System.Windows.Forms.Label();
|
||||
this.label13 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_run1 = new global::System.Windows.Forms.ComboBox();
|
||||
this.label12 = new global::System.Windows.Forms.Label();
|
||||
this.label11 = new global::System.Windows.Forms.Label();
|
||||
this.next_loc1 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.groupBox3 = new global::System.Windows.Forms.GroupBox();
|
||||
this.next_longtime2 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label15 = new global::System.Windows.Forms.Label();
|
||||
this.label16 = new global::System.Windows.Forms.Label();
|
||||
this.cmb_run2 = new global::System.Windows.Forms.ComboBox();
|
||||
this.label17 = new global::System.Windows.Forms.Label();
|
||||
this.label18 = new global::System.Windows.Forms.Label();
|
||||
this.next_loc2 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.num_plcvalue = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.num_id = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.button1 = new global::System.Windows.Forms.Button();
|
||||
this.txt_zb_y = new global::System.Windows.Forms.TextBox();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_speed).BeginInit();
|
||||
this.groupBox2.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_longtime1).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_loc1).BeginInit();
|
||||
this.groupBox3.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_longtime2).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_loc2).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_plcvalue).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_id).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.txt_zb_x.Location = new global::System.Drawing.Point(107, 72);
|
||||
this.txt_zb_x.Name = "txt_zb_x";
|
||||
this.txt_zb_x.ReadOnly = true;
|
||||
this.txt_zb_x.Size = new global::System.Drawing.Size(45, 21);
|
||||
this.txt_zb_x.TabIndex = 29;
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new global::System.Drawing.Point(168, 261);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new global::System.Drawing.Size(47, 12);
|
||||
this.label10.TabIndex = 28;
|
||||
this.label10.Text = "米/分钟";
|
||||
this.num_speed.Enabled = false;
|
||||
this.num_speed.Location = new global::System.Drawing.Point(107, 255);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown = this.num_speed;
|
||||
int[] array = new int[4];
|
||||
array[0] = 10000;
|
||||
numericUpDown.Maximum = new decimal(array);
|
||||
this.num_speed.Name = "num_speed";
|
||||
this.num_speed.Size = new global::System.Drawing.Size(56, 21);
|
||||
this.num_speed.TabIndex = 27;
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new global::System.Drawing.Point(29, 260);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label9.TabIndex = 26;
|
||||
this.label9.Text = "设备速度:";
|
||||
this.cmb_zhangaiwu.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.cmb_zhangaiwu.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_zhangaiwu.Enabled = false;
|
||||
this.cmb_zhangaiwu.FormattingEnabled = true;
|
||||
this.cmb_zhangaiwu.Items.AddRange(new object[]
|
||||
{
|
||||
"NULL",
|
||||
"bank1",
|
||||
"bank2",
|
||||
"bank3",
|
||||
"bank4",
|
||||
"bank5",
|
||||
"bank6",
|
||||
"bank7",
|
||||
"bank8",
|
||||
"bank9",
|
||||
"bank10",
|
||||
"bank11",
|
||||
"bank12",
|
||||
"bank13",
|
||||
"bank14",
|
||||
"bank15",
|
||||
"bank16"
|
||||
});
|
||||
this.cmb_zhangaiwu.Location = new global::System.Drawing.Point(107, 144);
|
||||
this.cmb_zhangaiwu.Name = "cmb_zhangaiwu";
|
||||
this.cmb_zhangaiwu.Size = new global::System.Drawing.Size(102, 20);
|
||||
this.cmb_zhangaiwu.TabIndex = 25;
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new global::System.Drawing.Point(15, 149);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new global::System.Drawing.Size(77, 12);
|
||||
this.label8.TabIndex = 24;
|
||||
this.label8.Text = "障碍物模式:";
|
||||
this.cmb_type.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.cmb_type.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_type.Enabled = false;
|
||||
this.cmb_type.FormattingEnabled = true;
|
||||
this.cmb_type.Items.AddRange(new object[]
|
||||
{
|
||||
"管控复位点",
|
||||
"管控停止点"
|
||||
});
|
||||
this.cmb_type.Location = new global::System.Drawing.Point(107, 218);
|
||||
this.cmb_type.Name = "cmb_type";
|
||||
this.cmb_type.Size = new global::System.Drawing.Size(102, 20);
|
||||
this.cmb_type.TabIndex = 23;
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(29, 79);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label4.TabIndex = 4;
|
||||
this.label4.Text = "位置坐标:";
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new global::System.Drawing.Point(29, 225);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label5.TabIndex = 22;
|
||||
this.label5.Text = "位置类型:";
|
||||
this.cmb_bd.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_bd.FormattingEnabled = true;
|
||||
this.cmb_bd.Items.AddRange(new object[]
|
||||
{
|
||||
"NULL",
|
||||
"左端",
|
||||
"右端",
|
||||
"顶部",
|
||||
"底部"
|
||||
});
|
||||
this.cmb_bd.Location = new global::System.Drawing.Point(107, 107);
|
||||
this.cmb_bd.Name = "cmb_bd";
|
||||
this.cmb_bd.Size = new global::System.Drawing.Size(102, 20);
|
||||
this.cmb_bd.TabIndex = 21;
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new global::System.Drawing.Point(28, 113);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label6.TabIndex = 6;
|
||||
this.label6.Text = "绑定方式:";
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new global::System.Drawing.Point(29, 187);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label7.TabIndex = 9;
|
||||
this.label7.Text = "所属地图:";
|
||||
this.cmb_map.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_map.FormattingEnabled = true;
|
||||
this.cmb_map.Items.AddRange(new object[]
|
||||
{
|
||||
"NULL",
|
||||
"AGV路线图1",
|
||||
"AGV路线图2",
|
||||
"AGV路线图3"
|
||||
});
|
||||
this.cmb_map.Location = new global::System.Drawing.Point(107, 182);
|
||||
this.cmb_map.Name = "cmb_map";
|
||||
this.cmb_map.Size = new global::System.Drawing.Size(102, 20);
|
||||
this.cmb_map.TabIndex = 14;
|
||||
this.groupBox2.Controls.Add(this.next_longtime1);
|
||||
this.groupBox2.Controls.Add(this.label14);
|
||||
this.groupBox2.Controls.Add(this.label13);
|
||||
this.groupBox2.Controls.Add(this.cmb_run1);
|
||||
this.groupBox2.Controls.Add(this.label12);
|
||||
this.groupBox2.Controls.Add(this.label11);
|
||||
this.groupBox2.Controls.Add(this.next_loc1);
|
||||
this.groupBox2.Dock = global::System.Windows.Forms.DockStyle.Bottom;
|
||||
this.groupBox2.Location = new global::System.Drawing.Point(0, 288);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new global::System.Drawing.Size(362, 93);
|
||||
this.groupBox2.TabIndex = 31;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Next Station1";
|
||||
this.next_longtime1.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.next_longtime1.Location = new global::System.Drawing.Point(238, 25);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown2 = this.next_longtime1;
|
||||
int[] array2 = new int[4];
|
||||
array2[0] = 10000;
|
||||
numericUpDown2.Maximum = new decimal(array2);
|
||||
this.next_longtime1.Name = "next_longtime1";
|
||||
this.next_longtime1.Size = new global::System.Drawing.Size(68, 21);
|
||||
this.next_longtime1.TabIndex = 27;
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new global::System.Drawing.Point(309, 30);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new global::System.Drawing.Size(11, 12);
|
||||
this.label14.TabIndex = 28;
|
||||
this.label14.Text = "s";
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new global::System.Drawing.Point(177, 27);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label13.TabIndex = 26;
|
||||
this.label13.Text = "运行时间:";
|
||||
this.cmb_run1.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.cmb_run1.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_run1.FormattingEnabled = true;
|
||||
this.cmb_run1.Items.AddRange(new object[]
|
||||
{
|
||||
"NULL",
|
||||
"沿X轴运动",
|
||||
"沿Y轴运动",
|
||||
"先沿X轴运动,再沿Y轴运动",
|
||||
"先沿Y轴运动,再沿X轴运动",
|
||||
"沿斜线运动"
|
||||
});
|
||||
this.cmb_run1.Location = new global::System.Drawing.Point(84, 61);
|
||||
this.cmb_run1.Name = "cmb_run1";
|
||||
this.cmb_run1.Size = new global::System.Drawing.Size(250, 20);
|
||||
this.cmb_run1.TabIndex = 25;
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new global::System.Drawing.Point(6, 64);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label12.TabIndex = 24;
|
||||
this.label12.Text = "运动模式:";
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new global::System.Drawing.Point(6, 27);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label11.TabIndex = 11;
|
||||
this.label11.Text = "位置编号:";
|
||||
this.next_loc1.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.next_loc1.Location = new global::System.Drawing.Point(84, 25);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown3 = this.next_loc1;
|
||||
int[] array3 = new int[4];
|
||||
array3[0] = 10000;
|
||||
numericUpDown3.Maximum = new decimal(array3);
|
||||
this.next_loc1.Name = "next_loc1";
|
||||
this.next_loc1.Size = new global::System.Drawing.Size(79, 21);
|
||||
this.next_loc1.TabIndex = 12;
|
||||
this.groupBox3.Controls.Add(this.next_longtime2);
|
||||
this.groupBox3.Controls.Add(this.label15);
|
||||
this.groupBox3.Controls.Add(this.label16);
|
||||
this.groupBox3.Controls.Add(this.cmb_run2);
|
||||
this.groupBox3.Controls.Add(this.label17);
|
||||
this.groupBox3.Controls.Add(this.label18);
|
||||
this.groupBox3.Controls.Add(this.next_loc2);
|
||||
this.groupBox3.Dock = global::System.Windows.Forms.DockStyle.Bottom;
|
||||
this.groupBox3.Location = new global::System.Drawing.Point(0, 381);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new global::System.Drawing.Size(362, 92);
|
||||
this.groupBox3.TabIndex = 32;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "Next Station2";
|
||||
this.next_longtime2.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.next_longtime2.Location = new global::System.Drawing.Point(237, 23);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown4 = this.next_longtime2;
|
||||
int[] array4 = new int[4];
|
||||
array4[0] = 10000;
|
||||
numericUpDown4.Maximum = new decimal(array4);
|
||||
this.next_longtime2.Name = "next_longtime2";
|
||||
this.next_longtime2.Size = new global::System.Drawing.Size(68, 21);
|
||||
this.next_longtime2.TabIndex = 27;
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.Location = new global::System.Drawing.Point(308, 28);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new global::System.Drawing.Size(11, 12);
|
||||
this.label15.TabIndex = 28;
|
||||
this.label15.Text = "s";
|
||||
this.label16.AutoSize = true;
|
||||
this.label16.Location = new global::System.Drawing.Point(175, 25);
|
||||
this.label16.Name = "label16";
|
||||
this.label16.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label16.TabIndex = 26;
|
||||
this.label16.Text = "运行时间:";
|
||||
this.cmb_run2.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.cmb_run2.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_run2.FormattingEnabled = true;
|
||||
this.cmb_run2.Items.AddRange(new object[]
|
||||
{
|
||||
"NULL",
|
||||
"沿X轴运动",
|
||||
"沿Y轴运动",
|
||||
"先沿X轴运动,再沿Y轴运动",
|
||||
"先沿Y轴运动,再沿X轴运动",
|
||||
"沿斜线运动"
|
||||
});
|
||||
this.cmb_run2.Location = new global::System.Drawing.Point(84, 61);
|
||||
this.cmb_run2.Name = "cmb_run2";
|
||||
this.cmb_run2.Size = new global::System.Drawing.Size(250, 20);
|
||||
this.cmb_run2.TabIndex = 25;
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new global::System.Drawing.Point(6, 64);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label17.TabIndex = 24;
|
||||
this.label17.Text = "运动模式:";
|
||||
this.label18.AutoSize = true;
|
||||
this.label18.Location = new global::System.Drawing.Point(6, 25);
|
||||
this.label18.Name = "label18";
|
||||
this.label18.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label18.TabIndex = 11;
|
||||
this.label18.Text = "位置编号:";
|
||||
this.next_loc2.BackColor = global::System.Drawing.SystemColors.ScrollBar;
|
||||
this.next_loc2.Location = new global::System.Drawing.Point(84, 23);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown5 = this.next_loc2;
|
||||
int[] array5 = new int[4];
|
||||
array5[0] = 10000;
|
||||
numericUpDown5.Maximum = new decimal(array5);
|
||||
this.next_loc2.Name = "next_loc2";
|
||||
this.next_loc2.Size = new global::System.Drawing.Size(79, 21);
|
||||
this.next_loc2.TabIndex = 12;
|
||||
this.num_plcvalue.Enabled = false;
|
||||
this.num_plcvalue.Location = new global::System.Drawing.Point(107, 38);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown6 = this.num_plcvalue;
|
||||
int[] array6 = new int[4];
|
||||
array6[0] = 10000;
|
||||
numericUpDown6.Maximum = new decimal(array6);
|
||||
this.num_plcvalue.Name = "num_plcvalue";
|
||||
this.num_plcvalue.ReadOnly = true;
|
||||
this.num_plcvalue.Size = new global::System.Drawing.Size(102, 21);
|
||||
this.num_plcvalue.TabIndex = 36;
|
||||
this.num_id.BackColor = global::System.Drawing.SystemColors.Control;
|
||||
this.num_id.Enabled = false;
|
||||
this.num_id.Location = new global::System.Drawing.Point(107, 4);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown7 = this.num_id;
|
||||
int[] array7 = new int[4];
|
||||
array7[0] = 10000;
|
||||
numericUpDown7.Maximum = new decimal(array7);
|
||||
this.num_id.Name = "num_id";
|
||||
this.num_id.ReadOnly = true;
|
||||
this.num_id.Size = new global::System.Drawing.Size(102, 21);
|
||||
this.num_id.TabIndex = 35;
|
||||
this.num_id.ValueChanged += new global::System.EventHandler(this.num_id_ValueChanged);
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(41, 43);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(53, 12);
|
||||
this.label3.TabIndex = 34;
|
||||
this.label3.Text = "标记值:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(29, 9);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 33;
|
||||
this.label2.Text = "位置编号:";
|
||||
this.button1.Location = new global::System.Drawing.Point(275, 9);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new global::System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 37;
|
||||
this.button1.Text = "保存";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new global::System.EventHandler(this.button1_Click);
|
||||
this.txt_zb_y.Location = new global::System.Drawing.Point(163, 72);
|
||||
this.txt_zb_y.Name = "txt_zb_y";
|
||||
this.txt_zb_y.ReadOnly = true;
|
||||
this.txt_zb_y.Size = new global::System.Drawing.Size(45, 21);
|
||||
this.txt_zb_y.TabIndex = 38;
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(362, 473);
|
||||
base.Controls.Add(this.txt_zb_y);
|
||||
base.Controls.Add(this.button1);
|
||||
base.Controls.Add(this.num_plcvalue);
|
||||
base.Controls.Add(this.num_id);
|
||||
base.Controls.Add(this.label3);
|
||||
base.Controls.Add(this.label2);
|
||||
base.Controls.Add(this.groupBox2);
|
||||
base.Controls.Add(this.txt_zb_x);
|
||||
base.Controls.Add(this.label10);
|
||||
base.Controls.Add(this.label4);
|
||||
base.Controls.Add(this.num_speed);
|
||||
base.Controls.Add(this.cmb_map);
|
||||
base.Controls.Add(this.label9);
|
||||
base.Controls.Add(this.label7);
|
||||
base.Controls.Add(this.cmb_zhangaiwu);
|
||||
base.Controls.Add(this.label6);
|
||||
base.Controls.Add(this.label8);
|
||||
base.Controls.Add(this.cmb_bd);
|
||||
base.Controls.Add(this.cmb_type);
|
||||
base.Controls.Add(this.label5);
|
||||
base.Controls.Add(this.groupBox3);
|
||||
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
base.Name = "Location_Set";
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "位置属性设置";
|
||||
base.Load += new global::System.EventHandler(this.Location_Set_Load);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_speed).EndInit();
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_longtime1).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_loc1).EndInit();
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.groupBox3.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_longtime2).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.next_loc2).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_plcvalue).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num_id).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
base.PerformLayout();
|
||||
}
|
||||
|
||||
// Token: 0x040001B3 RID: 435
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x040001B4 RID: 436
|
||||
private global::System.Windows.Forms.TextBox txt_zb_x;
|
||||
|
||||
// Token: 0x040001B5 RID: 437
|
||||
private global::System.Windows.Forms.Label label10;
|
||||
|
||||
// Token: 0x040001B6 RID: 438
|
||||
private global::System.Windows.Forms.NumericUpDown num_speed;
|
||||
|
||||
// Token: 0x040001B7 RID: 439
|
||||
private global::System.Windows.Forms.Label label9;
|
||||
|
||||
// Token: 0x040001B8 RID: 440
|
||||
private global::System.Windows.Forms.ComboBox cmb_zhangaiwu;
|
||||
|
||||
// Token: 0x040001B9 RID: 441
|
||||
private global::System.Windows.Forms.Label label8;
|
||||
|
||||
// Token: 0x040001BA RID: 442
|
||||
private global::System.Windows.Forms.ComboBox cmb_type;
|
||||
|
||||
// Token: 0x040001BB RID: 443
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x040001BC RID: 444
|
||||
private global::System.Windows.Forms.Label label5;
|
||||
|
||||
// Token: 0x040001BD RID: 445
|
||||
private global::System.Windows.Forms.ComboBox cmb_bd;
|
||||
|
||||
// Token: 0x040001BE RID: 446
|
||||
private global::System.Windows.Forms.Label label6;
|
||||
|
||||
// Token: 0x040001BF RID: 447
|
||||
private global::System.Windows.Forms.Label label7;
|
||||
|
||||
// Token: 0x040001C0 RID: 448
|
||||
private global::System.Windows.Forms.ComboBox cmb_map;
|
||||
|
||||
// Token: 0x040001C1 RID: 449
|
||||
private global::System.Windows.Forms.GroupBox groupBox2;
|
||||
|
||||
// Token: 0x040001C2 RID: 450
|
||||
private global::System.Windows.Forms.NumericUpDown next_longtime1;
|
||||
|
||||
// Token: 0x040001C3 RID: 451
|
||||
private global::System.Windows.Forms.Label label14;
|
||||
|
||||
// Token: 0x040001C4 RID: 452
|
||||
private global::System.Windows.Forms.Label label13;
|
||||
|
||||
// Token: 0x040001C5 RID: 453
|
||||
private global::System.Windows.Forms.ComboBox cmb_run1;
|
||||
|
||||
// Token: 0x040001C6 RID: 454
|
||||
private global::System.Windows.Forms.Label label12;
|
||||
|
||||
// Token: 0x040001C7 RID: 455
|
||||
private global::System.Windows.Forms.Label label11;
|
||||
|
||||
// Token: 0x040001C8 RID: 456
|
||||
private global::System.Windows.Forms.NumericUpDown next_loc1;
|
||||
|
||||
// Token: 0x040001C9 RID: 457
|
||||
private global::System.Windows.Forms.GroupBox groupBox3;
|
||||
|
||||
// Token: 0x040001CA RID: 458
|
||||
private global::System.Windows.Forms.NumericUpDown next_longtime2;
|
||||
|
||||
// Token: 0x040001CB RID: 459
|
||||
private global::System.Windows.Forms.Label label15;
|
||||
|
||||
// Token: 0x040001CC RID: 460
|
||||
private global::System.Windows.Forms.Label label16;
|
||||
|
||||
// Token: 0x040001CD RID: 461
|
||||
private global::System.Windows.Forms.ComboBox cmb_run2;
|
||||
|
||||
// Token: 0x040001CE RID: 462
|
||||
private global::System.Windows.Forms.Label label17;
|
||||
|
||||
// Token: 0x040001CF RID: 463
|
||||
private global::System.Windows.Forms.Label label18;
|
||||
|
||||
// Token: 0x040001D0 RID: 464
|
||||
private global::System.Windows.Forms.NumericUpDown next_loc2;
|
||||
|
||||
// Token: 0x040001D1 RID: 465
|
||||
private global::System.Windows.Forms.NumericUpDown num_plcvalue;
|
||||
|
||||
// Token: 0x040001D2 RID: 466
|
||||
private global::System.Windows.Forms.NumericUpDown num_id;
|
||||
|
||||
// Token: 0x040001D3 RID: 467
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x040001D4 RID: 468
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x040001D5 RID: 469
|
||||
private global::System.Windows.Forms.Button button1;
|
||||
|
||||
// Token: 0x040001D6 RID: 470
|
||||
private global::System.Windows.Forms.TextBox txt_zb_y;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000011 RID: 17
|
||||
public partial class Location_Set : Form
|
||||
{
|
||||
// Token: 0x060000EA RID: 234 RVA: 0x0001A01C File Offset: 0x0001821C
|
||||
public Location_Set(int id, int x, int y, int map)
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.txt_zb_x.Text = x.ToString();
|
||||
this.txt_zb_y.Text = y.ToString();
|
||||
this.cmb_map.SelectedIndex = map;
|
||||
this.num_id.Value = id;
|
||||
}
|
||||
|
||||
// Token: 0x060000EB RID: 235 RVA: 0x0001A0B0 File Offset: 0x000182B0
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.strsql = string.Concat(new string[]
|
||||
{
|
||||
"UPDATE [LandMarkInfo] SET [Flag_Value] = ",
|
||||
this.num_plcvalue.Value.ToString(),
|
||||
",[Loc_X] = ",
|
||||
this.txt_zb_x.Text,
|
||||
",[Loc_Y] = ",
|
||||
this.txt_zb_y.Text,
|
||||
",[Binding] = ",
|
||||
this.cmb_bd.SelectedIndex.ToString(),
|
||||
",[Area] = ",
|
||||
this.cmb_map.SelectedIndex.ToString(),
|
||||
",[Bank] = ",
|
||||
this.cmb_zhangaiwu.SelectedIndex.ToString(),
|
||||
",[Speed] = ",
|
||||
this.num_speed.Value.ToString(),
|
||||
",[Next_Station1] = ",
|
||||
this.next_loc1.Value.ToString(),
|
||||
",[Drict1] = ",
|
||||
this.cmb_run1.SelectedIndex.ToString(),
|
||||
",[LongTime1] = ",
|
||||
this.next_longtime1.Value.ToString(),
|
||||
",[Next_Station2] = ",
|
||||
this.next_loc2.Value.ToString(),
|
||||
",[Drict2] = ",
|
||||
this.cmb_run2.SelectedIndex.ToString(),
|
||||
",[LongTime2] = ",
|
||||
this.next_longtime2.Value.ToString(),
|
||||
" WHERE [Loc_ID] = ",
|
||||
this.num_id.Value.ToString()
|
||||
});
|
||||
string a = this.db.Command(this.strsql);
|
||||
bool flag2 = a == "1";
|
||||
if (flag2)
|
||||
{
|
||||
MessageBox.Show("更新成功!");
|
||||
base.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000EC RID: 236 RVA: 0x0001A2E0 File Offset: 0x000184E0
|
||||
private void num_id_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.value = -100;
|
||||
this.strsql = "SELECT [Loc_ID] ,[Flag_Value],[Binding],[Area],[Assembly_ID],[Bank],[Speed],[Next_Station1],[Drict1],[LongTime1] ,[Next_Station2] ,[Drict2] ,[LongTime2] FROM [LandMarkInfo] where Loc_ID =" + this.num_id.Value.ToString();
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt(this.strsql);
|
||||
bool flag = this.ds.Tables[0].Rows.Count == 1;
|
||||
if (flag)
|
||||
{
|
||||
this.num_plcvalue.Value = Convert.ToDecimal(this.ds.Tables[0].Rows[0][0].ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.ds.Tables[0].Rows.Count > 1;
|
||||
if (flag2)
|
||||
{
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
bool flag3 = this.value == -100;
|
||||
if (flag3)
|
||||
{
|
||||
this.value = (int)Convert.ToInt16(dataRow[0].ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag4 = this.value != (int)Convert.ToInt16(dataRow[0].ToString());
|
||||
if (flag4)
|
||||
{
|
||||
MessageBox.Show(this.num_id.Value.ToString() + "对应的标记值有误!");
|
||||
this.button1.Enabled = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
bool flag5 = this.ds.Tables[0].Rows.Count >= 1;
|
||||
if (flag5)
|
||||
{
|
||||
this.num_plcvalue.Value = Convert.ToDecimal(this.ds.Tables[0].Rows[0][1].ToString());
|
||||
this.cmb_map.SelectedIndex = (int)Convert.ToInt16(this.ds.Tables[0].Rows[0][3].ToString());
|
||||
this.cmb_bd.SelectedIndex = (int)Convert.ToInt16(this.ds.Tables[0].Rows[0][2].ToString());
|
||||
this.cmb_type.SelectedIndex = ((this.ds.Tables[0].Rows[0][4].ToString() == "0") ? 0 : 1);
|
||||
this.cmb_zhangaiwu.SelectedIndex = (int)Convert.ToInt16(this.ds.Tables[0].Rows[0][5].ToString());
|
||||
this.num_speed.Value = Convert.ToDecimal(this.ds.Tables[0].Rows[0][6].ToString());
|
||||
this.next_loc1.Value = Convert.ToDecimal(this.ds.Tables[0].Rows[0][7].ToString());
|
||||
this.next_loc2.Value = Convert.ToDecimal(this.ds.Tables[0].Rows[0][10].ToString());
|
||||
this.next_longtime1.Value = Convert.ToDecimal(this.ds.Tables[0].Rows[0][9].ToString());
|
||||
this.next_longtime2.Value = Convert.ToDecimal(this.ds.Tables[0].Rows[0][12].ToString());
|
||||
this.cmb_run1.SelectedIndex = (int)Convert.ToInt16(this.ds.Tables[0].Rows[0][8].ToString());
|
||||
this.cmb_run2.SelectedIndex = (int)Convert.ToInt16(this.ds.Tables[0].Rows[0][11].ToString());
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000ED RID: 237 RVA: 0x0001A790 File Offset: 0x00018990
|
||||
private void next_loc1_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.strsql = "SELECT [Loc_X] ,[Loc_Y] FROM LandMarkInfo WHERE Loc_ID =" + this.next_loc1.Value.ToString();
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt(this.strsql);
|
||||
bool flag = this.ds.Tables[0].Rows.Count == 1;
|
||||
if (flag)
|
||||
{
|
||||
this.next_longtime1.Value = Math.Abs((int)(Convert.ToInt16(this.ds.Tables[0].Rows[0][0].ToString()) - Convert.ToInt16(this.txt_zb_x.Text))) + Math.Abs((int)(Convert.ToInt16(this.ds.Tables[0].Rows[0][1].ToString()) - Convert.ToInt16(this.txt_zb_y.Text)));
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000EE RID: 238 RVA: 0x0001A8A6 File Offset: 0x00018AA6
|
||||
private void Location_Set_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.next_loc1.ValueChanged += this.next_loc1_ValueChanged;
|
||||
}
|
||||
|
||||
// Token: 0x040001AF RID: 431
|
||||
private string strsql = "";
|
||||
|
||||
// Token: 0x040001B0 RID: 432
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x040001B1 RID: 433
|
||||
private DataSet ds = new DataSet();
|
||||
|
||||
// Token: 0x040001B2 RID: 434
|
||||
private int value = -100;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Generated
+412
@@ -0,0 +1,412 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000012 RID: 18
|
||||
public partial class OutputSet : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x060000FA RID: 250 RVA: 0x0001C920 File Offset: 0x0001AB20
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x060000FB RID: 251 RVA: 0x0001C958 File Offset: 0x0001AB58
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::AGVSystem.OutputSet));
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.groupBox1 = new global::System.Windows.Forms.GroupBox();
|
||||
this.comboBox7 = new global::System.Windows.Forms.ComboBox();
|
||||
this.comboBox6 = new global::System.Windows.Forms.ComboBox();
|
||||
this.comboBox5 = new global::System.Windows.Forms.ComboBox();
|
||||
this.numericUpDown2 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.textBox1 = new global::System.Windows.Forms.TextBox();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label6 = new global::System.Windows.Forms.Label();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.comboBox4 = new global::System.Windows.Forms.ComboBox();
|
||||
this.numericUpDown1 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label5 = new global::System.Windows.Forms.Label();
|
||||
this.comboBox1 = new global::System.Windows.Forms.ComboBox();
|
||||
this.comboBox3 = new global::System.Windows.Forms.ComboBox();
|
||||
this.comboBox2 = new global::System.Windows.Forms.ComboBox();
|
||||
this.label7 = new global::System.Windows.Forms.Label();
|
||||
this.toolStrip1 = new global::System.Windows.Forms.ToolStrip();
|
||||
this.toolStripButton1 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton4 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton5 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton6 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
this.panel1.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown2).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown1).BeginInit();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.panel1.Controls.Add(this.groupBox1);
|
||||
this.panel1.Controls.Add(this.label7);
|
||||
this.panel1.Controls.Add(this.toolStrip1);
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.panel1.Location = new global::System.Drawing.Point(485, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(436, 505);
|
||||
this.panel1.TabIndex = 0;
|
||||
this.groupBox1.Controls.Add(this.comboBox7);
|
||||
this.groupBox1.Controls.Add(this.comboBox6);
|
||||
this.groupBox1.Controls.Add(this.comboBox5);
|
||||
this.groupBox1.Controls.Add(this.numericUpDown2);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Controls.Add(this.label2);
|
||||
this.groupBox1.Controls.Add(this.textBox1);
|
||||
this.groupBox1.Controls.Add(this.label3);
|
||||
this.groupBox1.Controls.Add(this.label6);
|
||||
this.groupBox1.Controls.Add(this.label4);
|
||||
this.groupBox1.Controls.Add(this.comboBox4);
|
||||
this.groupBox1.Controls.Add(this.numericUpDown1);
|
||||
this.groupBox1.Controls.Add(this.label5);
|
||||
this.groupBox1.Controls.Add(this.comboBox1);
|
||||
this.groupBox1.Controls.Add(this.comboBox3);
|
||||
this.groupBox1.Controls.Add(this.comboBox2);
|
||||
this.groupBox1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox1.Enabled = false;
|
||||
this.groupBox1.Location = new global::System.Drawing.Point(0, 71);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new global::System.Drawing.Size(436, 434);
|
||||
this.groupBox1.TabIndex = 41;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.comboBox7.FormattingEnabled = true;
|
||||
this.comboBox7.Items.AddRange(new object[]
|
||||
{
|
||||
"0",
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7"
|
||||
});
|
||||
this.comboBox7.Location = new global::System.Drawing.Point(250, 217);
|
||||
this.comboBox7.Name = "comboBox7";
|
||||
this.comboBox7.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox7.TabIndex = 43;
|
||||
this.comboBox7.Visible = false;
|
||||
this.comboBox6.FormattingEnabled = true;
|
||||
this.comboBox6.Items.AddRange(new object[]
|
||||
{
|
||||
"0",
|
||||
"1",
|
||||
"2",
|
||||
"3"
|
||||
});
|
||||
this.comboBox6.Location = new global::System.Drawing.Point(250, 153);
|
||||
this.comboBox6.Name = "comboBox6";
|
||||
this.comboBox6.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox6.TabIndex = 42;
|
||||
this.comboBox6.Visible = false;
|
||||
this.comboBox5.FormattingEnabled = true;
|
||||
this.comboBox5.Items.AddRange(new object[]
|
||||
{
|
||||
"",
|
||||
"card1",
|
||||
"card2",
|
||||
"card3"
|
||||
});
|
||||
this.comboBox5.Location = new global::System.Drawing.Point(250, 89);
|
||||
this.comboBox5.Name = "comboBox5";
|
||||
this.comboBox5.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox5.TabIndex = 41;
|
||||
this.comboBox5.Visible = false;
|
||||
this.numericUpDown2.Location = new global::System.Drawing.Point(250, 26);
|
||||
this.numericUpDown2.Name = "numericUpDown2";
|
||||
this.numericUpDown2.Size = new global::System.Drawing.Size(120, 21);
|
||||
this.numericUpDown2.TabIndex = 40;
|
||||
this.numericUpDown2.Visible = false;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(53, 28);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label1.TabIndex = 28;
|
||||
this.label1.Text = "位置编号:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(51, 92);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 29;
|
||||
this.label2.Text = "板卡选择:";
|
||||
this.textBox1.Location = new global::System.Drawing.Point(122, 347);
|
||||
this.textBox1.Multiline = true;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new global::System.Drawing.Size(240, 64);
|
||||
this.textBox1.TabIndex = 39;
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(75, 156);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label3.TabIndex = 30;
|
||||
this.label3.Text = "Prot:";
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new global::System.Drawing.Point(75, 350);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label6.TabIndex = 38;
|
||||
this.label6.Text = "备注:";
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(81, 220);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(35, 12);
|
||||
this.label4.TabIndex = 31;
|
||||
this.label4.Text = "Bit:";
|
||||
this.comboBox4.FormattingEnabled = true;
|
||||
this.comboBox4.Items.AddRange(new object[]
|
||||
{
|
||||
"0",
|
||||
"1"
|
||||
});
|
||||
this.comboBox4.Location = new global::System.Drawing.Point(122, 283);
|
||||
this.comboBox4.Name = "comboBox4";
|
||||
this.comboBox4.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox4.TabIndex = 37;
|
||||
this.comboBox4.TextChanged += new global::System.EventHandler(this.comboBox4_TextChanged);
|
||||
this.numericUpDown1.Location = new global::System.Drawing.Point(122, 26);
|
||||
this.numericUpDown1.Name = "numericUpDown1";
|
||||
this.numericUpDown1.Size = new global::System.Drawing.Size(120, 21);
|
||||
this.numericUpDown1.TabIndex = 32;
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new global::System.Drawing.Point(27, 287);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new global::System.Drawing.Size(89, 12);
|
||||
this.label5.TabIndex = 36;
|
||||
this.label5.Text = "Output Value:";
|
||||
this.comboBox1.FormattingEnabled = true;
|
||||
this.comboBox1.Items.AddRange(new object[]
|
||||
{
|
||||
"",
|
||||
"card1",
|
||||
"card2",
|
||||
"card3"
|
||||
});
|
||||
this.comboBox1.Location = new global::System.Drawing.Point(122, 89);
|
||||
this.comboBox1.Name = "comboBox1";
|
||||
this.comboBox1.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox1.TabIndex = 33;
|
||||
this.comboBox3.FormattingEnabled = true;
|
||||
this.comboBox3.Items.AddRange(new object[]
|
||||
{
|
||||
"0",
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7"
|
||||
});
|
||||
this.comboBox3.Location = new global::System.Drawing.Point(122, 217);
|
||||
this.comboBox3.Name = "comboBox3";
|
||||
this.comboBox3.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox3.TabIndex = 35;
|
||||
this.comboBox2.FormattingEnabled = true;
|
||||
this.comboBox2.Items.AddRange(new object[]
|
||||
{
|
||||
"0",
|
||||
"1",
|
||||
"2",
|
||||
"3"
|
||||
});
|
||||
this.comboBox2.Location = new global::System.Drawing.Point(122, 153);
|
||||
this.comboBox2.Name = "comboBox2";
|
||||
this.comboBox2.Size = new global::System.Drawing.Size(121, 20);
|
||||
this.comboBox2.TabIndex = 34;
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new global::System.Drawing.Point(250, 369);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new global::System.Drawing.Size(0, 12);
|
||||
this.label7.TabIndex = 40;
|
||||
this.toolStrip1.BackColor = global::System.Drawing.Color.White;
|
||||
this.toolStrip1.ImageScalingSize = new global::System.Drawing.Size(64, 64);
|
||||
this.toolStrip1.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.toolStripButton1,
|
||||
this.toolStripButton2,
|
||||
this.toolStripButton3,
|
||||
this.toolStripButton4,
|
||||
this.toolStripButton5,
|
||||
this.toolStripButton6
|
||||
});
|
||||
this.toolStrip1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new global::System.Drawing.Size(436, 71);
|
||||
this.toolStrip1.TabIndex = 27;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
this.toolStripButton1.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton1.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton1.Image");
|
||||
this.toolStripButton1.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton1.Text = "新建";
|
||||
this.toolStripButton1.Click += new global::System.EventHandler(this.toolStripButton1_Click);
|
||||
this.toolStripButton2.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton2.Enabled = false;
|
||||
this.toolStripButton2.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton2.Image");
|
||||
this.toolStripButton2.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton2.Text = "查询";
|
||||
this.toolStripButton3.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton3.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton3.Image");
|
||||
this.toolStripButton3.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton3.Text = "添加";
|
||||
this.toolStripButton3.Click += new global::System.EventHandler(this.toolStripButton3_Click);
|
||||
this.toolStripButton4.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton4.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton4.Image");
|
||||
this.toolStripButton4.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton4.Name = "toolStripButton4";
|
||||
this.toolStripButton4.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton4.Text = "删除";
|
||||
this.toolStripButton4.Click += new global::System.EventHandler(this.toolStripButton4_Click);
|
||||
this.toolStripButton5.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton5.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton5.Image");
|
||||
this.toolStripButton5.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton5.Name = "toolStripButton5";
|
||||
this.toolStripButton5.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton5.Text = "更新";
|
||||
this.toolStripButton5.Click += new global::System.EventHandler(this.toolStripButton5_Click);
|
||||
this.toolStripButton6.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton6.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton6.Image");
|
||||
this.toolStripButton6.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton6.Name = "toolStripButton6";
|
||||
this.toolStripButton6.Size = new global::System.Drawing.Size(68, 68);
|
||||
this.toolStripButton6.Text = "保存";
|
||||
this.toolStripButton6.Click += new global::System.EventHandler(this.toolStripButton6_Click);
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeight = 30;
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.GridColor = global::System.Drawing.Color.DimGray;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersWidth = 60;
|
||||
this.dataGridView1.RowTemplate.Height = 30;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(485, 505);
|
||||
this.dataGridView1.TabIndex = 19;
|
||||
this.dataGridView1.DoubleClick += new global::System.EventHandler(this.dataGridView1_DoubleClick);
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(921, 505);
|
||||
base.Controls.Add(this.dataGridView1);
|
||||
base.Controls.Add(this.panel1);
|
||||
base.Name = "OutputSet";
|
||||
this.Text = "板卡output设置";
|
||||
base.WindowState = global::System.Windows.Forms.FormWindowState.Maximized;
|
||||
base.Load += new global::System.EventHandler(this.OutputSet_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown2).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown1).EndInit();
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x040001DA RID: 474
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x040001DB RID: 475
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x040001DC RID: 476
|
||||
private global::System.Windows.Forms.TextBox textBox1;
|
||||
|
||||
// Token: 0x040001DD RID: 477
|
||||
private global::System.Windows.Forms.Label label6;
|
||||
|
||||
// Token: 0x040001DE RID: 478
|
||||
private global::System.Windows.Forms.ComboBox comboBox4;
|
||||
|
||||
// Token: 0x040001DF RID: 479
|
||||
private global::System.Windows.Forms.Label label5;
|
||||
|
||||
// Token: 0x040001E0 RID: 480
|
||||
private global::System.Windows.Forms.ComboBox comboBox3;
|
||||
|
||||
// Token: 0x040001E1 RID: 481
|
||||
private global::System.Windows.Forms.ComboBox comboBox2;
|
||||
|
||||
// Token: 0x040001E2 RID: 482
|
||||
private global::System.Windows.Forms.ComboBox comboBox1;
|
||||
|
||||
// Token: 0x040001E3 RID: 483
|
||||
private global::System.Windows.Forms.NumericUpDown numericUpDown1;
|
||||
|
||||
// Token: 0x040001E4 RID: 484
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x040001E5 RID: 485
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x040001E6 RID: 486
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x040001E7 RID: 487
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x040001E8 RID: 488
|
||||
private global::System.Windows.Forms.ToolStrip toolStrip1;
|
||||
|
||||
// Token: 0x040001E9 RID: 489
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
|
||||
// Token: 0x040001EA RID: 490
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton2;
|
||||
|
||||
// Token: 0x040001EB RID: 491
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
|
||||
// Token: 0x040001EC RID: 492
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton4;
|
||||
|
||||
// Token: 0x040001ED RID: 493
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton5;
|
||||
|
||||
// Token: 0x040001EE RID: 494
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton6;
|
||||
|
||||
// Token: 0x040001EF RID: 495
|
||||
private global::System.Windows.Forms.Label label7;
|
||||
|
||||
// Token: 0x040001F0 RID: 496
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x040001F1 RID: 497
|
||||
private global::System.Windows.Forms.GroupBox groupBox1;
|
||||
|
||||
// Token: 0x040001F2 RID: 498
|
||||
private global::System.Windows.Forms.ComboBox comboBox7;
|
||||
|
||||
// Token: 0x040001F3 RID: 499
|
||||
private global::System.Windows.Forms.ComboBox comboBox6;
|
||||
|
||||
// Token: 0x040001F4 RID: 500
|
||||
private global::System.Windows.Forms.ComboBox comboBox5;
|
||||
|
||||
// Token: 0x040001F5 RID: 501
|
||||
private global::System.Windows.Forms.NumericUpDown numericUpDown2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000012 RID: 18
|
||||
public partial class OutputSet : Form
|
||||
{
|
||||
// Token: 0x060000F1 RID: 241 RVA: 0x0001BFF0 File Offset: 0x0001A1F0
|
||||
public OutputSet()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
// Token: 0x060000F2 RID: 242 RVA: 0x0001C020 File Offset: 0x0001A220
|
||||
private void comboBox4_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.comboBox4.SelectedIndex == 0;
|
||||
if (flag)
|
||||
{
|
||||
this.label7.Text = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.comboBox4.SelectedIndex == 1;
|
||||
if (flag2)
|
||||
{
|
||||
this.label7.Text = "低电平输出";
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag3 = this.comboBox4.SelectedIndex == 2;
|
||||
if (flag3)
|
||||
{
|
||||
this.label7.Text = "高电平输出";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000F3 RID: 243 RVA: 0x0001C09C File Offset: 0x0001A29C
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.groupBox1.Enabled = true;
|
||||
this.numericUpDown1.Value = 0m;
|
||||
this.comboBox1.SelectedIndex = 1;
|
||||
this.comboBox2.SelectedIndex = 1;
|
||||
this.comboBox3.SelectedIndex = 1;
|
||||
this.comboBox4.SelectedIndex = 1;
|
||||
this.textBox1.Text = "";
|
||||
}
|
||||
|
||||
// Token: 0x060000F4 RID: 244 RVA: 0x0001C110 File Offset: 0x0001A310
|
||||
private void OutputSet_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.strsql = "SELECT [Loc_ID] as 位置编号,[Card_ID] as 板卡编号,[Port] as 端口号,[Bit] as 端口位,[Value] as 输出值,[Remark] as 备注 FROM [IO_Set]";
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.ds.Tables.Clear();
|
||||
}
|
||||
this.ds = this.db.connDt(this.strsql);
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
}
|
||||
|
||||
// Token: 0x060000F5 RID: 245 RVA: 0x0001C188 File Offset: 0x0001A388
|
||||
private void toolStripButton3_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.numericUpDown1.Value == 0m || this.comboBox1.Text == "" || this.comboBox2.Text == "" || this.comboBox3.Text == "" || this.comboBox4.Text == "";
|
||||
if (!flag2)
|
||||
{
|
||||
this.strsql = string.Concat(new string[]
|
||||
{
|
||||
"INSERT INTO [IO_Set] ([Loc_ID],[Card_ID],[Port] ,[Bit] ,[Value] ,[Remark]) VALUES (",
|
||||
this.numericUpDown1.Value.ToString(),
|
||||
",",
|
||||
this.comboBox1.SelectedIndex.ToString(),
|
||||
",",
|
||||
this.comboBox2.SelectedIndex.ToString(),
|
||||
",",
|
||||
this.comboBox3.SelectedIndex.ToString(),
|
||||
",",
|
||||
this.comboBox4.Text,
|
||||
",'",
|
||||
this.textBox1.Text,
|
||||
"')"
|
||||
});
|
||||
bool flag3 = this.db.Command(this.strsql) == "1";
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("添加成功!");
|
||||
this.OutputSet_Load(null, null);
|
||||
this.groupBox1.Enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000F6 RID: 246 RVA: 0x0001C348 File Offset: 0x0001A548
|
||||
private void dataGridView1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.dataGridView1.Rows.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.numericUpDown1.Value = Convert.ToDecimal(this.dataGridView1.CurrentRow.Cells[0].Value.ToString());
|
||||
this.numericUpDown2.Value = Convert.ToDecimal(this.dataGridView1.CurrentRow.Cells[0].Value.ToString());
|
||||
this.comboBox1.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.CurrentRow.Cells[1].Value.ToString());
|
||||
this.comboBox5.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.CurrentRow.Cells[1].Value.ToString());
|
||||
this.comboBox2.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.CurrentRow.Cells[2].Value.ToString());
|
||||
this.comboBox6.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.CurrentRow.Cells[2].Value.ToString());
|
||||
this.comboBox3.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.CurrentRow.Cells[3].Value.ToString());
|
||||
this.comboBox7.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.CurrentRow.Cells[3].Value.ToString());
|
||||
this.comboBox4.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.CurrentRow.Cells[4].Value.ToString());
|
||||
this.textBox1.Text = this.dataGridView1.CurrentRow.Cells[5].Value.ToString();
|
||||
this.groupBox1.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000F7 RID: 247 RVA: 0x0001C564 File Offset: 0x0001A764
|
||||
private void toolStripButton5_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.groupBox1.Enabled = true;
|
||||
}
|
||||
|
||||
// Token: 0x060000F8 RID: 248 RVA: 0x0001C574 File Offset: 0x0001A774
|
||||
private void toolStripButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.numericUpDown1.Value == 0m || this.comboBox1.Text == "" || this.comboBox2.Text == "" || this.comboBox3.Text == "" || this.comboBox4.Text == "";
|
||||
if (!flag2)
|
||||
{
|
||||
this.strsql = string.Concat(new string[]
|
||||
{
|
||||
"DELETE FROM io_set where [Loc_ID] =",
|
||||
this.numericUpDown1.Value.ToString(),
|
||||
" and [Card_ID] = ",
|
||||
this.comboBox1.SelectedIndex.ToString(),
|
||||
" and [Port] =",
|
||||
this.comboBox2.SelectedIndex.ToString(),
|
||||
" and [Bit] =",
|
||||
this.comboBox3.SelectedIndex.ToString()
|
||||
});
|
||||
bool flag3 = this.db.Command(this.strsql) == "1";
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("删除成功!");
|
||||
this.OutputSet_Load(null, null);
|
||||
this.groupBox1.Enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000F9 RID: 249 RVA: 0x0001C6F8 File Offset: 0x0001A8F8
|
||||
private void toolStripButton6_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = this.numericUpDown1.Value == 0m || this.comboBox1.Text == "" || this.comboBox2.Text == "" || this.comboBox3.Text == "";
|
||||
if (!flag2)
|
||||
{
|
||||
this.strsql = string.Concat(new string[]
|
||||
{
|
||||
"update io_set set [Loc_ID] = ",
|
||||
this.numericUpDown1.Value.ToString(),
|
||||
",[Card_ID] = ",
|
||||
this.comboBox1.SelectedIndex.ToString(),
|
||||
",[Port] = ",
|
||||
this.comboBox2.SelectedIndex.ToString(),
|
||||
",[Bit] = ",
|
||||
this.comboBox3.SelectedIndex.ToString(),
|
||||
",[Value] =",
|
||||
this.comboBox4.SelectedIndex.ToString(),
|
||||
",[Remark] = '",
|
||||
this.textBox1.Text,
|
||||
"' where [Loc_ID] =",
|
||||
this.numericUpDown2.Value.ToString(),
|
||||
" and [Card_ID] = ",
|
||||
this.comboBox5.SelectedIndex.ToString(),
|
||||
" and [Port] =",
|
||||
this.comboBox6.SelectedIndex.ToString(),
|
||||
" and [Bit] =",
|
||||
this.comboBox7.SelectedIndex.ToString()
|
||||
});
|
||||
bool flag3 = this.db.Command(this.strsql) == "1";
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("更新成功!");
|
||||
this.OutputSet_Load(null, null);
|
||||
this.groupBox1.Enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001D7 RID: 471
|
||||
private string strsql;
|
||||
|
||||
// Token: 0x040001D8 RID: 472
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x040001D9 RID: 473
|
||||
private DataSet ds = new DataSet();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
+205
@@ -0,0 +1,205 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200001A RID: 26
|
||||
public partial class Point_loc_Set : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x0600017C RID: 380 RVA: 0x0003D9A4 File Offset: 0x0003BBA4
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x0600017D RID: 381 RVA: 0x0003D9DC File Offset: 0x0003BBDC
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.cmb = new global::System.Windows.Forms.ComboBox();
|
||||
this.num2 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.num1 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.num = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.button1 = new global::System.Windows.Forms.Button();
|
||||
this.cmb_linelist = new global::System.Windows.Forms.ComboBox();
|
||||
this.label5 = new global::System.Windows.Forms.Label();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num2).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num1).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(56, 39);
|
||||
this.label1.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "位置编号:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(60, 152);
|
||||
this.label2.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(53, 15);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "坐标X:";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(60, 207);
|
||||
this.label3.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(53, 15);
|
||||
this.label3.TabIndex = 2;
|
||||
this.label3.Text = "坐标Y:";
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(59, 275);
|
||||
this.label4.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(52, 15);
|
||||
this.label4.TabIndex = 3;
|
||||
this.label4.Text = "对齐:";
|
||||
this.cmb.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb.FormattingEnabled = true;
|
||||
this.cmb.Items.AddRange(new object[]
|
||||
{
|
||||
"",
|
||||
"左对齐",
|
||||
"右对齐",
|
||||
"顶部对齐",
|
||||
"底部对齐"
|
||||
});
|
||||
this.cmb.Location = new global::System.Drawing.Point(143, 268);
|
||||
this.cmb.Margin = new global::System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.cmb.Name = "cmb";
|
||||
this.cmb.Size = new global::System.Drawing.Size(160, 23);
|
||||
this.cmb.TabIndex = 4;
|
||||
this.num2.Location = new global::System.Drawing.Point(143, 210);
|
||||
this.num2.Margin = new global::System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown = this.num2;
|
||||
int[] array = new int[4];
|
||||
array[0] = 5000;
|
||||
numericUpDown.Maximum = new decimal(array);
|
||||
this.num2.Minimum = new decimal(new int[]
|
||||
{
|
||||
5000,
|
||||
0,
|
||||
0,
|
||||
int.MinValue
|
||||
});
|
||||
this.num2.Name = "num2";
|
||||
this.num2.Size = new global::System.Drawing.Size(160, 25);
|
||||
this.num2.TabIndex = 5;
|
||||
this.num1.Location = new global::System.Drawing.Point(143, 151);
|
||||
this.num1.Margin = new global::System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown2 = this.num1;
|
||||
int[] array2 = new int[4];
|
||||
array2[0] = 5000;
|
||||
numericUpDown2.Maximum = new decimal(array2);
|
||||
this.num1.Minimum = new decimal(new int[]
|
||||
{
|
||||
5000,
|
||||
0,
|
||||
0,
|
||||
int.MinValue
|
||||
});
|
||||
this.num1.Name = "num1";
|
||||
this.num1.Size = new global::System.Drawing.Size(160, 25);
|
||||
this.num1.TabIndex = 6;
|
||||
this.num.Location = new global::System.Drawing.Point(143, 36);
|
||||
this.num.Margin = new global::System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown3 = this.num;
|
||||
int[] array3 = new int[4];
|
||||
array3[0] = 60000;
|
||||
numericUpDown3.Maximum = new decimal(array3);
|
||||
this.num.Name = "num";
|
||||
this.num.Size = new global::System.Drawing.Size(160, 25);
|
||||
this.num.TabIndex = 7;
|
||||
this.button1.Location = new global::System.Drawing.Point(208, 317);
|
||||
this.button1.Margin = new global::System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new global::System.Drawing.Size(140, 51);
|
||||
this.button1.TabIndex = 8;
|
||||
this.button1.Text = "保 存";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new global::System.EventHandler(this.button1_Click);
|
||||
this.cmb_linelist.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_linelist.FormattingEnabled = true;
|
||||
this.cmb_linelist.Location = new global::System.Drawing.Point(143, 86);
|
||||
this.cmb_linelist.Margin = new global::System.Windows.Forms.Padding(4);
|
||||
this.cmb_linelist.Name = "cmb_linelist";
|
||||
this.cmb_linelist.Size = new global::System.Drawing.Size(160, 23);
|
||||
this.cmb_linelist.TabIndex = 16;
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new global::System.Drawing.Point(56, 89);
|
||||
this.label5.Margin = new global::System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new global::System.Drawing.Size(82, 15);
|
||||
this.label5.TabIndex = 15;
|
||||
this.label5.Text = "线体名称:";
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(8f, 15f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(398, 422);
|
||||
base.Controls.Add(this.cmb_linelist);
|
||||
base.Controls.Add(this.label5);
|
||||
base.Controls.Add(this.button1);
|
||||
base.Controls.Add(this.num);
|
||||
base.Controls.Add(this.num1);
|
||||
base.Controls.Add(this.num2);
|
||||
base.Controls.Add(this.cmb);
|
||||
base.Controls.Add(this.label4);
|
||||
base.Controls.Add(this.label3);
|
||||
base.Controls.Add(this.label2);
|
||||
base.Controls.Add(this.label1);
|
||||
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
base.Margin = new global::System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
base.Name = "Point_loc_Set";
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "位置设置";
|
||||
base.TopMost = true;
|
||||
base.Load += new global::System.EventHandler(this.Point_loc_Set_Load);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num2).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num1).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.num).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
base.PerformLayout();
|
||||
}
|
||||
|
||||
// Token: 0x040004C2 RID: 1218
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x040004C3 RID: 1219
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x040004C4 RID: 1220
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x040004C5 RID: 1221
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x040004C6 RID: 1222
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x040004C7 RID: 1223
|
||||
private global::System.Windows.Forms.ComboBox cmb;
|
||||
|
||||
// Token: 0x040004C8 RID: 1224
|
||||
private global::System.Windows.Forms.NumericUpDown num2;
|
||||
|
||||
// Token: 0x040004C9 RID: 1225
|
||||
private global::System.Windows.Forms.NumericUpDown num1;
|
||||
|
||||
// Token: 0x040004CA RID: 1226
|
||||
private global::System.Windows.Forms.NumericUpDown num;
|
||||
|
||||
// Token: 0x040004CB RID: 1227
|
||||
private global::System.Windows.Forms.Button button1;
|
||||
|
||||
// Token: 0x040004CC RID: 1228
|
||||
private global::System.Windows.Forms.ComboBox cmb_linelist;
|
||||
|
||||
// Token: 0x040004CD RID: 1229
|
||||
private global::System.Windows.Forms.Label label5;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200001A RID: 26
|
||||
public partial class Point_loc_Set : Form
|
||||
{
|
||||
// Token: 0x06000178 RID: 376 RVA: 0x0003D743 File Offset: 0x0003B943
|
||||
public Point_loc_Set()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
// Token: 0x06000179 RID: 377 RVA: 0x0003D768 File Offset: 0x0003B968
|
||||
public Point_loc_Set(int x, int y)
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.num1.Value = x;
|
||||
this.num2.Value = y;
|
||||
}
|
||||
|
||||
// Token: 0x0600017A RID: 378 RVA: 0x0003D7BC File Offset: 0x0003B9BC
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.cmb.SelectedIndex > 0;
|
||||
if (flag)
|
||||
{
|
||||
string sqlstr = string.Concat(new string[]
|
||||
{
|
||||
"UPDATE [LandMarkInfo] SET[Loc_X] =",
|
||||
this.num1.Value.ToString(),
|
||||
" ,[Loc_Y] = ",
|
||||
this.num2.Value.ToString(),
|
||||
" ,[Binding] = ",
|
||||
this.cmb.SelectedIndex.ToString(),
|
||||
" WHERE[Loc_ID]=",
|
||||
this.num.Value.ToString(),
|
||||
" And Assembly_Line=",
|
||||
this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0]
|
||||
});
|
||||
bool flag2 = "1" == this.db.Command(sqlstr);
|
||||
if (flag2)
|
||||
{
|
||||
base.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600017B RID: 379 RVA: 0x0003D8B4 File Offset: 0x0003BAB4
|
||||
private void Point_loc_Set_Load(object sender, EventArgs e)
|
||||
{
|
||||
DataSet dataSet = this.db.connDt("select CONVERT( VARCHAR(10),id) +' . '+ line_name as info from Assembly_Line order by id");
|
||||
bool flag = dataSet.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = dataSet.Tables[0].Rows.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
this.cmb_linelist.Items.Add("");
|
||||
foreach (object obj in dataSet.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_linelist.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
dataSet.Tables.Clear();
|
||||
}
|
||||
|
||||
// Token: 0x040004C1 RID: 1217
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200001B RID: 27
|
||||
internal static class Program
|
||||
{
|
||||
// Token: 0x0600017E RID: 382
|
||||
[DllImport("User32.dll")]
|
||||
private static extern bool SetForegroundWindow(IntPtr hWnd);
|
||||
|
||||
// Token: 0x0600017F RID: 383
|
||||
[DllImport("User32.dll")]
|
||||
private static extern bool ShowWindowAsync(IntPtr hWnd, int cmdShow);
|
||||
|
||||
// Token: 0x06000180 RID: 384 RVA: 0x0003E230 File Offset: 0x0003C430
|
||||
[STAThread]
|
||||
private static void Main()
|
||||
{
|
||||
try
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Process process = Program.RunningInstance();
|
||||
mainfrm.init2();
|
||||
bool flag = process == null;
|
||||
if (flag)
|
||||
{
|
||||
Application.Run(new mainfrm());
|
||||
}
|
||||
else
|
||||
{
|
||||
Program.HandleRunningInstance(process);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000181 RID: 385 RVA: 0x0003E290 File Offset: 0x0003C490
|
||||
public static Process RunningInstance()
|
||||
{
|
||||
Process currentProcess = Process.GetCurrentProcess();
|
||||
Process[] processesByName = Process.GetProcessesByName(currentProcess.ProcessName);
|
||||
foreach (Process process in processesByName)
|
||||
{
|
||||
bool flag = process.Id != currentProcess.Id;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = Assembly.GetExecutingAssembly().Location.Replace("/", "\\") == currentProcess.MainModule.FileName;
|
||||
if (flag2)
|
||||
{
|
||||
return process;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000182 RID: 386 RVA: 0x0003E31F File Offset: 0x0003C51F
|
||||
public static void HandleRunningInstance(Process instance)
|
||||
{
|
||||
Program.ShowWindowAsync(instance.MainWindowHandle, 3);
|
||||
Program.SetForegroundWindow(instance.MainWindowHandle);
|
||||
}
|
||||
|
||||
// Token: 0x040004CE RID: 1230
|
||||
private const int WS_SHOWNORMAL = 3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[assembly: AssemblyVersion("4.0.0.0")]
|
||||
[assembly: AssemblyTitle("AGV 调度管理系统")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("华晓精密(苏州)有限公司")]
|
||||
[assembly: AssemblyProduct("AGVSystem")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2015")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("07628622-77c1-41a8-adf1-e2c9be20a4c9")]
|
||||
[assembly: AssemblyFileVersion("4.0.0.0")]
|
||||
@@ -0,0 +1,238 @@
|
||||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace AGVSystem.Properties
|
||||
{
|
||||
// Token: 0x02000022 RID: 34
|
||||
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[DebuggerNonUserCode]
|
||||
[CompilerGenerated]
|
||||
internal class Resources
|
||||
{
|
||||
// Token: 0x060001DE RID: 478 RVA: 0x0004F07E File Offset: 0x0004D27E
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x1700000C RID: 12
|
||||
// (get) Token: 0x060001DF RID: 479 RVA: 0x0004F088 File Offset: 0x0004D288
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
bool flag = Resources.resourceMan == null;
|
||||
if (flag)
|
||||
{
|
||||
ResourceManager resourceManager = new ResourceManager("AGVSystem.Properties.Resources", typeof(Resources).Assembly);
|
||||
Resources.resourceMan = resourceManager;
|
||||
}
|
||||
return Resources.resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700000D RID: 13
|
||||
// (get) Token: 0x060001E0 RID: 480 RVA: 0x0004F0D0 File Offset: 0x0004D2D0
|
||||
// (set) Token: 0x060001E1 RID: 481 RVA: 0x0004F0E7 File Offset: 0x0004D2E7
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return Resources.resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
Resources.resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700000E RID: 14
|
||||
// (get) Token: 0x060001E2 RID: 482 RVA: 0x0004F0F0 File Offset: 0x0004D2F0
|
||||
internal static Bitmap _0
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("0", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700000F RID: 15
|
||||
// (get) Token: 0x060001E3 RID: 483 RVA: 0x0004F120 File Offset: 0x0004D320
|
||||
internal static Bitmap _1
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("1", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000010 RID: 16
|
||||
// (get) Token: 0x060001E4 RID: 484 RVA: 0x0004F150 File Offset: 0x0004D350
|
||||
internal static Bitmap _6
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("_6", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000011 RID: 17
|
||||
// (get) Token: 0x060001E5 RID: 485 RVA: 0x0004F180 File Offset: 0x0004D380
|
||||
internal static Bitmap _8
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("_8", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000012 RID: 18
|
||||
// (get) Token: 0x060001E6 RID: 486 RVA: 0x0004F1B0 File Offset: 0x0004D3B0
|
||||
internal static Bitmap agv1_32
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("agv1_32", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000013 RID: 19
|
||||
// (get) Token: 0x060001E7 RID: 487 RVA: 0x0004F1E0 File Offset: 0x0004D3E0
|
||||
internal static Bitmap agv2_32
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("agv2_32", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000014 RID: 20
|
||||
// (get) Token: 0x060001E8 RID: 488 RVA: 0x0004F210 File Offset: 0x0004D410
|
||||
internal static Bitmap agv3_32
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("agv3_32", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000015 RID: 21
|
||||
// (get) Token: 0x060001E9 RID: 489 RVA: 0x0004F240 File Offset: 0x0004D440
|
||||
internal static Bitmap agv4_32
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("agv4_32", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000016 RID: 22
|
||||
// (get) Token: 0x060001EA RID: 490 RVA: 0x0004F270 File Offset: 0x0004D470
|
||||
internal static Bitmap csg___副本
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("csg - 副本", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000017 RID: 23
|
||||
// (get) Token: 0x060001EB RID: 491 RVA: 0x0004F2A0 File Offset: 0x0004D4A0
|
||||
internal static Bitmap hui
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("hui", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000018 RID: 24
|
||||
// (get) Token: 0x060001EC RID: 492 RVA: 0x0004F2D0 File Offset: 0x0004D4D0
|
||||
internal static Bitmap ledHigh
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("ledHigh", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000019 RID: 25
|
||||
// (get) Token: 0x060001ED RID: 493 RVA: 0x0004F300 File Offset: 0x0004D500
|
||||
internal static Bitmap ledLow
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("ledLow", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700001A RID: 26
|
||||
// (get) Token: 0x060001EE RID: 494 RVA: 0x0004F330 File Offset: 0x0004D530
|
||||
internal static Bitmap lv
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("lv", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700001B RID: 27
|
||||
// (get) Token: 0x060001EF RID: 495 RVA: 0x0004F360 File Offset: 0x0004D560
|
||||
internal static Bitmap 华晓logo
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("华晓logo", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700001C RID: 28
|
||||
// (get) Token: 0x060001F0 RID: 496 RVA: 0x0004F390 File Offset: 0x0004D590
|
||||
internal static Bitmap 华晓logo1
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("华晓logo1", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700001D RID: 29
|
||||
// (get) Token: 0x060001F1 RID: 497 RVA: 0x0004F3C0 File Offset: 0x0004D5C0
|
||||
internal static Bitmap 未标题_1_拷贝
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("未标题-1 拷贝", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040005C0 RID: 1472
|
||||
private static ResourceManager resourceMan;
|
||||
|
||||
// Token: 0x040005C1 RID: 1473
|
||||
private static CultureInfo resourceCulture;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
+387
@@ -0,0 +1,387 @@
|
||||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Configuration;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace AGVSystem.Properties
|
||||
{
|
||||
// Token: 0x02000023 RID: 35
|
||||
[CompilerGenerated]
|
||||
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.6.0.0")]
|
||||
internal sealed partial class Settings : ApplicationSettingsBase
|
||||
{
|
||||
// Token: 0x1700001E RID: 30
|
||||
// (get) Token: 0x060001F2 RID: 498 RVA: 0x0004F3F0 File Offset: 0x0004D5F0
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return Settings.defaultInstance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700001F RID: 31
|
||||
// (get) Token: 0x060001F3 RID: 499 RVA: 0x0004F408 File Offset: 0x0004D608
|
||||
// (set) Token: 0x060001F4 RID: 500 RVA: 0x0004F42A File Offset: 0x0004D62A
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int Product_bp_using
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["Product_bp_using"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["Product_bp_using"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000020 RID: 32
|
||||
// (get) Token: 0x060001F5 RID: 501 RVA: 0x0004F440 File Offset: 0x0004D640
|
||||
// (set) Token: 0x060001F6 RID: 502 RVA: 0x0004F462 File Offset: 0x0004D662
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int Product_bp_backup
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["Product_bp_backup"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["Product_bp_backup"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000021 RID: 33
|
||||
// (get) Token: 0x060001F7 RID: 503 RVA: 0x0004F478 File Offset: 0x0004D678
|
||||
// (set) Token: 0x060001F8 RID: 504 RVA: 0x0004F49A File Offset: 0x0004D69A
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int Product_xc_using
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["Product_xc_using"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["Product_xc_using"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000022 RID: 34
|
||||
// (get) Token: 0x060001F9 RID: 505 RVA: 0x0004F4B0 File Offset: 0x0004D6B0
|
||||
// (set) Token: 0x060001FA RID: 506 RVA: 0x0004F4D2 File Offset: 0x0004D6D2
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int Product_xc_backup
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["Product_xc_backup"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["Product_xc_backup"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000023 RID: 35
|
||||
// (get) Token: 0x060001FB RID: 507 RVA: 0x0004F4E8 File Offset: 0x0004D6E8
|
||||
// (set) Token: 0x060001FC RID: 508 RVA: 0x0004F50A File Offset: 0x0004D70A
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int Use_bp_using
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["Use_bp_using"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["Use_bp_using"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000024 RID: 36
|
||||
// (get) Token: 0x060001FD RID: 509 RVA: 0x0004F520 File Offset: 0x0004D720
|
||||
// (set) Token: 0x060001FE RID: 510 RVA: 0x0004F542 File Offset: 0x0004D742
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int Use_bp_backup
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["Use_bp_backup"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["Use_bp_backup"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000025 RID: 37
|
||||
// (get) Token: 0x060001FF RID: 511 RVA: 0x0004F558 File Offset: 0x0004D758
|
||||
// (set) Token: 0x06000200 RID: 512 RVA: 0x0004F57A File Offset: 0x0004D77A
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int Use_xc_backup
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["Use_xc_backup"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["Use_xc_backup"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000026 RID: 38
|
||||
// (get) Token: 0x06000201 RID: 513 RVA: 0x0004F590 File Offset: 0x0004D790
|
||||
// (set) Token: 0x06000202 RID: 514 RVA: 0x0004F5B2 File Offset: 0x0004D7B2
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int Use_xc_using
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["Use_xc_using"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["Use_xc_using"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000027 RID: 39
|
||||
// (get) Token: 0x06000203 RID: 515 RVA: 0x0004F5C8 File Offset: 0x0004D7C8
|
||||
// (set) Token: 0x06000204 RID: 516 RVA: 0x0004F5EA File Offset: 0x0004D7EA
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("True")]
|
||||
public bool A17083_loc20
|
||||
{
|
||||
get
|
||||
{
|
||||
return (bool)this["A17083_loc20"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17083_loc20"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000028 RID: 40
|
||||
// (get) Token: 0x06000205 RID: 517 RVA: 0x0004F600 File Offset: 0x0004D800
|
||||
// (set) Token: 0x06000206 RID: 518 RVA: 0x0004F622 File Offset: 0x0004D822
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("True")]
|
||||
public bool A17083_loc48
|
||||
{
|
||||
get
|
||||
{
|
||||
return (bool)this["A17083_loc48"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17083_loc48"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000029 RID: 41
|
||||
// (get) Token: 0x06000207 RID: 519 RVA: 0x0004F638 File Offset: 0x0004D838
|
||||
// (set) Token: 0x06000208 RID: 520 RVA: 0x0004F65A File Offset: 0x0004D85A
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int A17099_loc1
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["A17099_loc1"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17099_loc1"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700002A RID: 42
|
||||
// (get) Token: 0x06000209 RID: 521 RVA: 0x0004F670 File Offset: 0x0004D870
|
||||
// (set) Token: 0x0600020A RID: 522 RVA: 0x0004F692 File Offset: 0x0004D892
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("1")]
|
||||
public int A17099_loc2
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["A17099_loc2"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17099_loc2"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700002B RID: 43
|
||||
// (get) Token: 0x0600020B RID: 523 RVA: 0x0004F6A8 File Offset: 0x0004D8A8
|
||||
// (set) Token: 0x0600020C RID: 524 RVA: 0x0004F6CA File Offset: 0x0004D8CA
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int A17099_loc3
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["A17099_loc3"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17099_loc3"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700002C RID: 44
|
||||
// (get) Token: 0x0600020D RID: 525 RVA: 0x0004F6E0 File Offset: 0x0004D8E0
|
||||
// (set) Token: 0x0600020E RID: 526 RVA: 0x0004F702 File Offset: 0x0004D902
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("1")]
|
||||
public int A17099_loc4
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["A17099_loc4"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17099_loc4"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700002D RID: 45
|
||||
// (get) Token: 0x0600020F RID: 527 RVA: 0x0004F718 File Offset: 0x0004D918
|
||||
// (set) Token: 0x06000210 RID: 528 RVA: 0x0004F73A File Offset: 0x0004D93A
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("1")]
|
||||
public int A17099_loc5
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["A17099_loc5"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17099_loc5"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700002E RID: 46
|
||||
// (get) Token: 0x06000211 RID: 529 RVA: 0x0004F750 File Offset: 0x0004D950
|
||||
// (set) Token: 0x06000212 RID: 530 RVA: 0x0004F772 File Offset: 0x0004D972
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int A17099_loc15
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["A17099_loc15"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17099_loc15"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700002F RID: 47
|
||||
// (get) Token: 0x06000213 RID: 531 RVA: 0x0004F788 File Offset: 0x0004D988
|
||||
// (set) Token: 0x06000214 RID: 532 RVA: 0x0004F7AA File Offset: 0x0004D9AA
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("1")]
|
||||
public int A17099_loc16
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["A17099_loc16"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17099_loc16"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000030 RID: 48
|
||||
// (get) Token: 0x06000215 RID: 533 RVA: 0x0004F7C0 File Offset: 0x0004D9C0
|
||||
// (set) Token: 0x06000216 RID: 534 RVA: 0x0004F7E2 File Offset: 0x0004D9E2
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("0")]
|
||||
public int A17099_loc17
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["A17099_loc17"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17099_loc17"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000031 RID: 49
|
||||
// (get) Token: 0x06000217 RID: 535 RVA: 0x0004F7F8 File Offset: 0x0004D9F8
|
||||
// (set) Token: 0x06000218 RID: 536 RVA: 0x0004F81A File Offset: 0x0004DA1A
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("1")]
|
||||
public int A17099_loc18
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["A17099_loc18"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17099_loc18"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000032 RID: 50
|
||||
// (get) Token: 0x06000219 RID: 537 RVA: 0x0004F830 File Offset: 0x0004DA30
|
||||
// (set) Token: 0x0600021A RID: 538 RVA: 0x0004F852 File Offset: 0x0004DA52
|
||||
[UserScopedSetting]
|
||||
[DebuggerNonUserCode]
|
||||
[DefaultSettingValue("3")]
|
||||
public int A17194_Qty_Flag
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this["A17194_Qty_Flag"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this["A17194_Qty_Flag"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040005C2 RID: 1474
|
||||
private static Settings defaultInstance = (Settings)SettingsBase.Synchronized(new Settings());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile CurrentProfile="(Default)" GeneratedClassNamespace="AGVSystem.Properties" GeneratedClassName="Settings" xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="Product_bp_using" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="Product_bp_backup" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="Product_xc_using" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="Product_xc_backup" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="Use_bp_using" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="Use_bp_backup" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="Use_xc_backup" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="Use_xc_using" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17083_loc20" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17083_loc48" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17099_loc1" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17099_loc2" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">1</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17099_loc3" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17099_loc4" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">1</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17099_loc5" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">1</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17099_loc15" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17099_loc16" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">1</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17099_loc17" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">0</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17099_loc18" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">1</Value>
|
||||
</Setting>
|
||||
<Setting Name="A17194_Qty_Flag" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">3</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
@@ -0,0 +1,165 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200000B RID: 11
|
||||
internal class Senddataset
|
||||
{
|
||||
// Token: 0x060000A0 RID: 160 RVA: 0x00011BD8 File Offset: 0x0000FDD8
|
||||
public static string DatasetToJson(DataSet dataSet)
|
||||
{
|
||||
string text = "{";
|
||||
foreach (object obj in dataSet.Tables)
|
||||
{
|
||||
DataTable dataTable = (DataTable)obj;
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
text,
|
||||
"\"",
|
||||
dataTable.TableName,
|
||||
"\":",
|
||||
Senddataset.DataTableToJson(dataTable),
|
||||
","
|
||||
});
|
||||
}
|
||||
text = text.TrimEnd(new char[]
|
||||
{
|
||||
','
|
||||
});
|
||||
return text + "}";
|
||||
}
|
||||
|
||||
// Token: 0x060000A1 RID: 161 RVA: 0x00011C94 File Offset: 0x0000FE94
|
||||
public static string DataTableToJson(DataTable dt)
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.Append("[");
|
||||
DataRowCollection rows = dt.Rows;
|
||||
for (int i = 0; i < rows.Count; i++)
|
||||
{
|
||||
stringBuilder.Append("{");
|
||||
for (int j = 0; j < dt.Columns.Count; j++)
|
||||
{
|
||||
string columnName = dt.Columns[j].ColumnName;
|
||||
string text = rows[i][j].ToString();
|
||||
Type dataType = dt.Columns[j].DataType;
|
||||
stringBuilder.Append("\"" + columnName + "\":");
|
||||
text = Senddataset.StringFormat(text, dataType);
|
||||
bool flag = j < dt.Columns.Count - 1;
|
||||
if (flag)
|
||||
{
|
||||
stringBuilder.Append(text + ",");
|
||||
}
|
||||
else
|
||||
{
|
||||
stringBuilder.Append(text);
|
||||
}
|
||||
}
|
||||
stringBuilder.Append("},");
|
||||
}
|
||||
stringBuilder.Remove(stringBuilder.Length - 1, 1);
|
||||
stringBuilder.Append("]");
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
|
||||
// Token: 0x060000A2 RID: 162 RVA: 0x00011DD4 File Offset: 0x0000FFD4
|
||||
private static string StringFormat(string str, Type type)
|
||||
{
|
||||
bool flag = type == typeof(string);
|
||||
if (flag)
|
||||
{
|
||||
str = Senddataset.StringToJson(str);
|
||||
str = "\"" + str + "\"";
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = type == typeof(DateTime);
|
||||
if (flag2)
|
||||
{
|
||||
str = "\"" + str + "\"";
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag3 = type == typeof(bool);
|
||||
if (flag3)
|
||||
{
|
||||
str = str.ToLower();
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag4 = type != typeof(string) && string.IsNullOrEmpty(str);
|
||||
if (flag4)
|
||||
{
|
||||
str = "\"" + str + "\"";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
// Token: 0x060000A3 RID: 163 RVA: 0x00011E98 File Offset: 0x00010098
|
||||
private static string StringToJson(string s)
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
int i = 0;
|
||||
while (i < s.Length)
|
||||
{
|
||||
char c = s.ToCharArray()[i];
|
||||
char c2 = c;
|
||||
char c3 = c2;
|
||||
if (c3 <= '"')
|
||||
{
|
||||
switch (c3)
|
||||
{
|
||||
case '\b':
|
||||
stringBuilder.Append("\\b");
|
||||
break;
|
||||
case '\t':
|
||||
stringBuilder.Append("\\t");
|
||||
break;
|
||||
case '\n':
|
||||
stringBuilder.Append("\\n");
|
||||
break;
|
||||
case '\v':
|
||||
goto IL_CA;
|
||||
case '\f':
|
||||
stringBuilder.Append("\\f");
|
||||
break;
|
||||
case '\r':
|
||||
stringBuilder.Append("\\r");
|
||||
break;
|
||||
default:
|
||||
if (c3 != '"')
|
||||
{
|
||||
goto IL_CA;
|
||||
}
|
||||
stringBuilder.Append("\\\"");
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (c3 != '/')
|
||||
{
|
||||
if (c3 != '\\')
|
||||
{
|
||||
goto IL_CA;
|
||||
}
|
||||
stringBuilder.Append("\\\\");
|
||||
}
|
||||
else
|
||||
{
|
||||
stringBuilder.Append("\\/");
|
||||
}
|
||||
IL_D4:
|
||||
i++;
|
||||
continue;
|
||||
IL_CA:
|
||||
stringBuilder.Append(c);
|
||||
goto IL_D4;
|
||||
}
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+1676
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,525 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Threading;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200000C RID: 12
|
||||
public class Soc_Client
|
||||
{
|
||||
// Token: 0x14000003 RID: 3
|
||||
// (add) Token: 0x060000A5 RID: 165 RVA: 0x00011F9C File Offset: 0x0001019C
|
||||
// (remove) Token: 0x060000A6 RID: 166 RVA: 0x00011FD4 File Offset: 0x000101D4
|
||||
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public event Soc_Client.StartListeHandler StartListen;
|
||||
|
||||
// Token: 0x14000004 RID: 4
|
||||
// (add) Token: 0x060000A7 RID: 167 RVA: 0x0001200C File Offset: 0x0001020C
|
||||
// (remove) Token: 0x060000A8 RID: 168 RVA: 0x00012044 File Offset: 0x00010244
|
||||
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public event Soc_Client.ReceiveMsgHandler OnMsgReceived;
|
||||
|
||||
// Token: 0x060000A9 RID: 169 RVA: 0x0001207C File Offset: 0x0001027C
|
||||
public Soc_Client(string hostName, int port)
|
||||
{
|
||||
this.IPAdress = hostName;
|
||||
IPAddress[] hostAddresses = Dns.GetHostAddresses(hostName);
|
||||
this.hostEndPoint = new IPEndPoint(hostAddresses[hostAddresses.Length - 1], port);
|
||||
this.clientSocket = new Socket(this.hostEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
|
||||
}
|
||||
|
||||
// Token: 0x060000AA RID: 170 RVA: 0x00012114 File Offset: 0x00010314
|
||||
private bool Connect()
|
||||
{
|
||||
bool result;
|
||||
using (SocketAsyncEventArgs socketAsyncEventArgs = new SocketAsyncEventArgs())
|
||||
{
|
||||
try
|
||||
{
|
||||
socketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
socketAsyncEventArgs.RemoteEndPoint = this.hostEndPoint;
|
||||
socketAsyncEventArgs.Completed += this.OnConnect;
|
||||
this.clientSocket.ConnectAsync(socketAsyncEventArgs);
|
||||
bool flag = this.autoConnectEvent.WaitOne(1000);
|
||||
bool flag2 = this.connected;
|
||||
if (flag2)
|
||||
{
|
||||
this.lisnterSocketAsyncEventArgs = new SocketAsyncEventArgs();
|
||||
byte[] array = new byte[50];
|
||||
this.lisnterSocketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
this.lisnterSocketAsyncEventArgs.SetBuffer(array, 0, array.Length);
|
||||
this.lisnterSocketAsyncEventArgs.Completed += this.OnReceive;
|
||||
this.StartListen();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
result = false;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x060000AB RID: 171 RVA: 0x00012218 File Offset: 0x00010418
|
||||
private void OnConnect(object sender, SocketAsyncEventArgs e)
|
||||
{
|
||||
this.connected = (e.SocketError == 0);
|
||||
this.autoConnectEvent.Set();
|
||||
}
|
||||
|
||||
// Token: 0x060000AC RID: 172 RVA: 0x00012238 File Offset: 0x00010438
|
||||
public void Send(byte[] mes)
|
||||
{
|
||||
bool flag = this.connected;
|
||||
if (flag)
|
||||
{
|
||||
EventHandler<SocketAsyncEventArgs> eventHandler = null;
|
||||
SocketAsyncEventArgs senderSocketAsyncEventArgs = null;
|
||||
List<SocketAsyncEventArgs> obj = this.s_lst;
|
||||
lock (obj)
|
||||
{
|
||||
bool flag3 = this.s_lst.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
senderSocketAsyncEventArgs = this.s_lst[this.s_lst.Count - 1];
|
||||
this.s_lst.RemoveAt(this.s_lst.Count - 1);
|
||||
}
|
||||
}
|
||||
bool flag4 = senderSocketAsyncEventArgs == null;
|
||||
if (flag4)
|
||||
{
|
||||
senderSocketAsyncEventArgs = new SocketAsyncEventArgs();
|
||||
senderSocketAsyncEventArgs.UserToken = this.clientSocket;
|
||||
senderSocketAsyncEventArgs.RemoteEndPoint = this.clientSocket.RemoteEndPoint;
|
||||
bool flag5 = eventHandler == null;
|
||||
if (flag5)
|
||||
{
|
||||
eventHandler = delegate(object sender, SocketAsyncEventArgs _e)
|
||||
{
|
||||
List<SocketAsyncEventArgs> obj2 = this.s_lst;
|
||||
lock (obj2)
|
||||
{
|
||||
this.s_lst.Add(senderSocketAsyncEventArgs);
|
||||
}
|
||||
};
|
||||
}
|
||||
senderSocketAsyncEventArgs.Completed += eventHandler;
|
||||
}
|
||||
senderSocketAsyncEventArgs.SetBuffer(mes, 0, mes.Length);
|
||||
this.clientSocket.SendAsync(senderSocketAsyncEventArgs);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.connected = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000AD RID: 173 RVA: 0x0001238C File Offset: 0x0001058C
|
||||
public void Listen()
|
||||
{
|
||||
bool flag = this.connected && this.clientSocket != null;
|
||||
if (flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
(this.lisnterSocketAsyncEventArgs.UserToken as Socket).ReceiveAsync(this.lisnterSocketAsyncEventArgs);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000AE RID: 174 RVA: 0x000123EC File Offset: 0x000105EC
|
||||
private int Disconnect()
|
||||
{
|
||||
int result = 0;
|
||||
try
|
||||
{
|
||||
this.clientSocket.Shutdown(SocketShutdown.Both);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
try
|
||||
{
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
this.connected = false;
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x060000AF RID: 175 RVA: 0x00012450 File Offset: 0x00010650
|
||||
private void OnReceive(object sender, SocketAsyncEventArgs e)
|
||||
{
|
||||
bool flag = e.BytesTransferred == 0;
|
||||
if (flag)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.clientSocket.Shutdown(SocketShutdown.Both);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
bool flag2 = this.clientSocket.Connected;
|
||||
if (flag2)
|
||||
{
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
}
|
||||
byte[] info = new byte[1];
|
||||
this.OnMsgReceived(info);
|
||||
}
|
||||
else
|
||||
{
|
||||
byte[] array = new byte[e.BytesTransferred];
|
||||
for (int i = 0; i < e.BytesTransferred; i++)
|
||||
{
|
||||
array[i] = e.Buffer[i];
|
||||
}
|
||||
this.OnMsgReceived(array);
|
||||
this.Listen();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000B0 RID: 176 RVA: 0x00012524 File Offset: 0x00010724
|
||||
private void SimaticSocketClient_OnMsgReceived(byte[] info)
|
||||
{
|
||||
bool flag = info[0] > 0;
|
||||
if (flag)
|
||||
{
|
||||
byte b = 0;
|
||||
while ((int)b < info.Length)
|
||||
{
|
||||
bool flag2 = this.Offset < 24;
|
||||
if (flag2)
|
||||
{
|
||||
this.RecvData_Temp[this.Offset] = info[(int)b];
|
||||
this.Offset++;
|
||||
}
|
||||
b += 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (byte b2 = 0; b2 < 24; b2 += 1)
|
||||
{
|
||||
this.RecvData_Temp[(int)b2] = 0;
|
||||
}
|
||||
this.Offset = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000B1 RID: 177 RVA: 0x000125B0 File Offset: 0x000107B0
|
||||
public bool OpenLinkPLC()
|
||||
{
|
||||
this.StartListen += this.SimaticSocketClient_StartListen;
|
||||
this.OnMsgReceived += this.SimaticSocketClient_OnMsgReceived;
|
||||
bool flag = this.Connect();
|
||||
bool flag2 = !flag;
|
||||
return !flag2 || flag;
|
||||
}
|
||||
|
||||
// Token: 0x060000B2 RID: 178 RVA: 0x00012600 File Offset: 0x00010800
|
||||
public int CloseLinkPLC()
|
||||
{
|
||||
return this.Disconnect();
|
||||
}
|
||||
|
||||
// Token: 0x060000B3 RID: 179 RVA: 0x00012618 File Offset: 0x00010818
|
||||
private void SimaticSocketClient_StartListen()
|
||||
{
|
||||
this.Listen();
|
||||
}
|
||||
|
||||
// Token: 0x060000B4 RID: 180 RVA: 0x00012624 File Offset: 0x00010824
|
||||
public int WriteInfo(int value_fx, int value_mb, int value_control)
|
||||
{
|
||||
object obj = this.write_obj;
|
||||
int result;
|
||||
lock (obj)
|
||||
{
|
||||
int num = -1;
|
||||
byte[] array = new byte[]
|
||||
{
|
||||
243,
|
||||
1,
|
||||
Convert.ToByte(value_fx),
|
||||
0,
|
||||
Convert.ToByte(value_mb % 256),
|
||||
Convert.ToByte(value_mb / 256),
|
||||
0,
|
||||
0,
|
||||
Convert.ToByte(value_control),
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
207
|
||||
};
|
||||
array[13] = this.FCS(array)[0];
|
||||
int num2 = 0;
|
||||
this.Offset = 0;
|
||||
this.RecvData_Temp[0] = 0;
|
||||
this.RecvData_Temp[1] = 0;
|
||||
this.RecvData_Temp[22] = 0;
|
||||
this.RecvData_Temp[23] = 0;
|
||||
this.Send(array);
|
||||
while ((this.RecvData_Temp[0] == 0 || this.RecvData_Temp[23] == 0) && num2 < 350)
|
||||
{
|
||||
Thread.Sleep(2);
|
||||
num2++;
|
||||
}
|
||||
bool flag2 = num2 < 350;
|
||||
if (flag2)
|
||||
{
|
||||
bool flag3 = this.RecvData_Temp[0] == 243 && this.RecvData_Temp[1] == 2 && this.RecvData_Temp[23] == 207;
|
||||
if (flag3)
|
||||
{
|
||||
num = 0;
|
||||
}
|
||||
}
|
||||
this.Offset = 0;
|
||||
this.RecvData_Temp[0] = 0;
|
||||
this.RecvData_Temp[1] = 0;
|
||||
this.RecvData_Temp[22] = 0;
|
||||
this.RecvData_Temp[23] = 0;
|
||||
result = num;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x060000B5 RID: 181 RVA: 0x000127DC File Offset: 0x000109DC
|
||||
public int WriteInfo(int value_mb, int isDrop, out byte[] results)
|
||||
{
|
||||
object obj = this.write_obj;
|
||||
int result;
|
||||
lock (obj)
|
||||
{
|
||||
int num = -1;
|
||||
byte[] array = new byte[]
|
||||
{
|
||||
243,
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
Convert.ToByte(value_mb % 256),
|
||||
Convert.ToByte(value_mb / 256),
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
Convert.ToByte(isDrop),
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
207
|
||||
};
|
||||
array[13] = this.FCS(array)[0];
|
||||
results = new byte[24];
|
||||
for (byte b = 0; b < 24; b += 1)
|
||||
{
|
||||
results[(int)b] = 0;
|
||||
}
|
||||
int num2 = 0;
|
||||
this.Offset = 0;
|
||||
this.RecvData_Temp[0] = 0;
|
||||
this.RecvData_Temp[1] = 0;
|
||||
this.RecvData_Temp[22] = 0;
|
||||
this.RecvData_Temp[23] = 0;
|
||||
this.Send(array);
|
||||
while ((this.RecvData_Temp[0] == 0 || this.RecvData_Temp[23] == 0) && num2 < 350)
|
||||
{
|
||||
Thread.Sleep(2);
|
||||
num2++;
|
||||
}
|
||||
bool flag2 = num2 < 350;
|
||||
if (flag2)
|
||||
{
|
||||
bool flag3 = this.RecvData_Temp[0] == 243 && this.RecvData_Temp[1] == 2 && this.RecvData_Temp[23] == 207;
|
||||
if (flag3)
|
||||
{
|
||||
num = 0;
|
||||
for (byte b2 = 0; b2 < 23; b2 += 1)
|
||||
{
|
||||
results[(int)b2] = this.RecvData_Temp[(int)b2];
|
||||
}
|
||||
}
|
||||
}
|
||||
this.Offset = 0;
|
||||
this.RecvData_Temp[0] = 0;
|
||||
this.RecvData_Temp[1] = 0;
|
||||
this.RecvData_Temp[22] = 0;
|
||||
this.RecvData_Temp[23] = 0;
|
||||
result = num;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x060000B6 RID: 182 RVA: 0x000129DC File Offset: 0x00010BDC
|
||||
private byte[] FCS(byte[] b)
|
||||
{
|
||||
int num = 0;
|
||||
byte[] array = new byte[2];
|
||||
for (int i = 0; i < b.Length - 1; i++)
|
||||
{
|
||||
num += (int)b[i];
|
||||
}
|
||||
string hexString = num.ToString("X2").Substring(num.ToString("X2").Length - 2, 2);
|
||||
return Soc_Client.strToToHexByte(hexString);
|
||||
}
|
||||
|
||||
// Token: 0x060000B7 RID: 183 RVA: 0x00012A48 File Offset: 0x00010C48
|
||||
private static byte[] strToToHexByte(string hexString)
|
||||
{
|
||||
hexString = hexString.Replace(" ", "");
|
||||
bool flag = hexString.Length % 2 != 0;
|
||||
if (flag)
|
||||
{
|
||||
hexString += " ";
|
||||
}
|
||||
byte[] array = new byte[hexString.Length / 2];
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
{
|
||||
array[i] = Convert.ToByte(hexString.Substring(i * 2, 2), 16);
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x060000B8 RID: 184 RVA: 0x00012AC0 File Offset: 0x00010CC0
|
||||
public int ReadInfo(out int[] results)
|
||||
{
|
||||
object obj = this.read_obj;
|
||||
int result;
|
||||
lock (obj)
|
||||
{
|
||||
int num = -1;
|
||||
byte[] array = new byte[15];
|
||||
results = new int[24];
|
||||
byte b = 0;
|
||||
while ((int)b < results.Length)
|
||||
{
|
||||
results[(int)b] = 0;
|
||||
b += 1;
|
||||
}
|
||||
array[0] = 243;
|
||||
array[1] = 10;
|
||||
array[2] = 0;
|
||||
array[3] = 0;
|
||||
array[4] = 0;
|
||||
array[5] = 0;
|
||||
array[6] = 0;
|
||||
array[7] = 0;
|
||||
array[8] = 0;
|
||||
array[9] = 0;
|
||||
array[10] = 0;
|
||||
array[11] = 0;
|
||||
array[12] = 0;
|
||||
array[13] = 0;
|
||||
array[14] = 207;
|
||||
array[13] = this.FCS(array)[0];
|
||||
int num2 = 0;
|
||||
this.Offset = 0;
|
||||
this.RecvData_Temp[0] = 0;
|
||||
this.RecvData_Temp[1] = 0;
|
||||
this.RecvData_Temp[23] = 0;
|
||||
this.Send(array);
|
||||
while ((this.RecvData_Temp[0] == 0 || this.RecvData_Temp[23] == 0) && num2 < 350)
|
||||
{
|
||||
Thread.Sleep(2);
|
||||
num2++;
|
||||
}
|
||||
bool flag2 = num2 < 350;
|
||||
if (flag2)
|
||||
{
|
||||
bool flag3 = this.RecvData_Temp[0] == 243 && this.RecvData_Temp[1] == 11 && this.RecvData_Temp[23] == 207;
|
||||
if (flag3)
|
||||
{
|
||||
num = 0;
|
||||
for (byte b2 = 0; b2 < 23; b2 += 1)
|
||||
{
|
||||
results[(int)b2] = (int)this.RecvData_Temp[(int)b2];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag4 = this.RecvData_Temp[23] == 0;
|
||||
if (flag4)
|
||||
{
|
||||
num = -3;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.Offset = 0;
|
||||
this.RecvData_Temp[0] = 0;
|
||||
this.RecvData_Temp[1] = 0;
|
||||
this.RecvData_Temp[22] = 0;
|
||||
this.RecvData_Temp[23] = 0;
|
||||
result = num;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x060000B9 RID: 185 RVA: 0x00012CBC File Offset: 0x00010EBC
|
||||
public void Dispose()
|
||||
{
|
||||
bool flag = this.clientSocket.Connected;
|
||||
if (flag)
|
||||
{
|
||||
this.clientSocket.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000117 RID: 279
|
||||
public string IPAdress;
|
||||
|
||||
// Token: 0x04000118 RID: 280
|
||||
public bool connected = false;
|
||||
|
||||
// Token: 0x04000119 RID: 281
|
||||
public Socket clientSocket;
|
||||
|
||||
// Token: 0x0400011A RID: 282
|
||||
private IPEndPoint hostEndPoint;
|
||||
|
||||
// Token: 0x0400011B RID: 283
|
||||
private AutoResetEvent autoConnectEvent = new AutoResetEvent(false);
|
||||
|
||||
// Token: 0x0400011C RID: 284
|
||||
private SocketAsyncEventArgs lisnterSocketAsyncEventArgs;
|
||||
|
||||
// Token: 0x0400011F RID: 287
|
||||
private List<SocketAsyncEventArgs> s_lst = new List<SocketAsyncEventArgs>();
|
||||
|
||||
// Token: 0x04000120 RID: 288
|
||||
private object write_obj = new object();
|
||||
|
||||
// Token: 0x04000121 RID: 289
|
||||
private int Offset = 0;
|
||||
|
||||
// Token: 0x04000122 RID: 290
|
||||
private byte[] RecvData_Temp = new byte[24];
|
||||
|
||||
// Token: 0x04000123 RID: 291
|
||||
private object read_obj = new object();
|
||||
|
||||
// Token: 0x0200003E RID: 62
|
||||
// (Invoke) Token: 0x060002E3 RID: 739
|
||||
public delegate void StartListeHandler();
|
||||
|
||||
// Token: 0x0200003F RID: 63
|
||||
// (Invoke) Token: 0x060002E7 RID: 743
|
||||
public delegate void ReceiveMsgHandler(byte[] info);
|
||||
}
|
||||
}
|
||||
Generated
+568
@@ -0,0 +1,568 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200001D RID: 29
|
||||
public partial class SysSet : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x060001BC RID: 444 RVA: 0x00048C5C File Offset: 0x00046E5C
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x060001BD RID: 445 RVA: 0x00048C94 File Offset: 0x00046E94
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.groupBox1 = new global::System.Windows.Forms.GroupBox();
|
||||
this.textBox6 = new global::System.Windows.Forms.TextBox();
|
||||
this.textBox5 = new global::System.Windows.Forms.TextBox();
|
||||
this.textBox4 = new global::System.Windows.Forms.TextBox();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.groupBox2 = new global::System.Windows.Forms.GroupBox();
|
||||
this.button3 = new global::System.Windows.Forms.Button();
|
||||
this.button2 = new global::System.Windows.Forms.Button();
|
||||
this.button1 = new global::System.Windows.Forms.Button();
|
||||
this.txt_path3 = new global::System.Windows.Forms.TextBox();
|
||||
this.txt_path2 = new global::System.Windows.Forms.TextBox();
|
||||
this.txt_path1 = new global::System.Windows.Forms.TextBox();
|
||||
this.checkBox3 = new global::System.Windows.Forms.CheckBox();
|
||||
this.checkBox2 = new global::System.Windows.Forms.CheckBox();
|
||||
this.checkBox1 = new global::System.Windows.Forms.CheckBox();
|
||||
this.groupBox3 = new global::System.Windows.Forms.GroupBox();
|
||||
this.numericUpDown1 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.button4 = new global::System.Windows.Forms.Button();
|
||||
this.groupBox4 = new global::System.Windows.Forms.GroupBox();
|
||||
this.numericUpDown4 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.numericUpDown3 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.numericUpDown2 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.cK_IO3 = new global::System.Windows.Forms.CheckBox();
|
||||
this.cK_IO2 = new global::System.Windows.Forms.CheckBox();
|
||||
this.cK_IO1 = new global::System.Windows.Forms.CheckBox();
|
||||
this.groupBox5 = new global::System.Windows.Forms.GroupBox();
|
||||
this.chk_location_auto_display = new global::System.Windows.Forms.CheckBox();
|
||||
this.chk_load_path_his = new global::System.Windows.Forms.CheckBox();
|
||||
this.chk_auto_control = new global::System.Windows.Forms.CheckBox();
|
||||
this.tabControl1 = new global::System.Windows.Forms.TabControl();
|
||||
this.tabPage1 = new global::System.Windows.Forms.TabPage();
|
||||
this.tabPage2 = new global::System.Windows.Forms.TabPage();
|
||||
this.grp_A16587 = new global::System.Windows.Forms.GroupBox();
|
||||
this.dateTimePicker2 = new global::System.Windows.Forms.DateTimePicker();
|
||||
this.dateTimePicker1 = new global::System.Windows.Forms.DateTimePicker();
|
||||
this.label7 = new global::System.Windows.Forms.Label();
|
||||
this.label6 = new global::System.Windows.Forms.Label();
|
||||
this.numericUpDown5 = new global::System.Windows.Forms.NumericUpDown();
|
||||
this.label5 = new global::System.Windows.Forms.Label();
|
||||
this.button5 = new global::System.Windows.Forms.Button();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown1).BeginInit();
|
||||
this.groupBox4.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown4).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown3).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown2).BeginInit();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.grp_A16587.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown5).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.groupBox1.Controls.Add(this.textBox6);
|
||||
this.groupBox1.Controls.Add(this.textBox5);
|
||||
this.groupBox1.Controls.Add(this.textBox4);
|
||||
this.groupBox1.Controls.Add(this.label3);
|
||||
this.groupBox1.Controls.Add(this.label2);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox1.Location = new global::System.Drawing.Point(3, 3);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new global::System.Drawing.Size(470, 109);
|
||||
this.groupBox1.TabIndex = 0;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "项目信息";
|
||||
this.textBox6.BorderStyle = global::System.Windows.Forms.BorderStyle.None;
|
||||
this.textBox6.Location = new global::System.Drawing.Point(92, 71);
|
||||
this.textBox6.Name = "textBox6";
|
||||
this.textBox6.ReadOnly = true;
|
||||
this.textBox6.Size = new global::System.Drawing.Size(250, 14);
|
||||
this.textBox6.TabIndex = 5;
|
||||
this.textBox5.BorderStyle = global::System.Windows.Forms.BorderStyle.None;
|
||||
this.textBox5.Location = new global::System.Drawing.Point(92, 46);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.ReadOnly = true;
|
||||
this.textBox5.Size = new global::System.Drawing.Size(250, 14);
|
||||
this.textBox5.TabIndex = 4;
|
||||
this.textBox4.BorderStyle = global::System.Windows.Forms.BorderStyle.None;
|
||||
this.textBox4.Location = new global::System.Drawing.Point(92, 21);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.ReadOnly = true;
|
||||
this.textBox4.Size = new global::System.Drawing.Size(250, 14);
|
||||
this.textBox4.TabIndex = 3;
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(45, 74);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label3.TabIndex = 2;
|
||||
this.label3.Text = "备注:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(21, 49);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "工厂名称:";
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(21, 24);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "项目编号:";
|
||||
this.groupBox2.Controls.Add(this.button3);
|
||||
this.groupBox2.Controls.Add(this.button2);
|
||||
this.groupBox2.Controls.Add(this.button1);
|
||||
this.groupBox2.Controls.Add(this.txt_path3);
|
||||
this.groupBox2.Controls.Add(this.txt_path2);
|
||||
this.groupBox2.Controls.Add(this.txt_path1);
|
||||
this.groupBox2.Controls.Add(this.checkBox3);
|
||||
this.groupBox2.Controls.Add(this.checkBox2);
|
||||
this.groupBox2.Controls.Add(this.checkBox1);
|
||||
this.groupBox2.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox2.Location = new global::System.Drawing.Point(3, 246);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new global::System.Drawing.Size(470, 142);
|
||||
this.groupBox2.TabIndex = 1;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "地图信息";
|
||||
this.button3.Location = new global::System.Drawing.Point(117, 103);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new global::System.Drawing.Size(75, 23);
|
||||
this.button3.TabIndex = 11;
|
||||
this.button3.Text = "选择地图";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Click += new global::System.EventHandler(this.button3_Click);
|
||||
this.button2.Location = new global::System.Drawing.Point(117, 62);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new global::System.Drawing.Size(75, 23);
|
||||
this.button2.TabIndex = 10;
|
||||
this.button2.Text = "选择地图";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new global::System.EventHandler(this.button2_Click);
|
||||
this.button1.Location = new global::System.Drawing.Point(117, 21);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new global::System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 9;
|
||||
this.button1.Text = "选择地图";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new global::System.EventHandler(this.button1_Click);
|
||||
this.txt_path3.Location = new global::System.Drawing.Point(198, 103);
|
||||
this.txt_path3.Name = "txt_path3";
|
||||
this.txt_path3.Size = new global::System.Drawing.Size(264, 21);
|
||||
this.txt_path3.TabIndex = 8;
|
||||
this.txt_path2.Location = new global::System.Drawing.Point(198, 62);
|
||||
this.txt_path2.Name = "txt_path2";
|
||||
this.txt_path2.Size = new global::System.Drawing.Size(264, 21);
|
||||
this.txt_path2.TabIndex = 7;
|
||||
this.txt_path1.Location = new global::System.Drawing.Point(198, 21);
|
||||
this.txt_path1.Name = "txt_path1";
|
||||
this.txt_path1.Size = new global::System.Drawing.Size(264, 21);
|
||||
this.txt_path1.TabIndex = 6;
|
||||
this.checkBox3.AutoSize = true;
|
||||
this.checkBox3.Enabled = false;
|
||||
this.checkBox3.Location = new global::System.Drawing.Point(24, 105);
|
||||
this.checkBox3.Name = "checkBox3";
|
||||
this.checkBox3.Size = new global::System.Drawing.Size(84, 16);
|
||||
this.checkBox3.TabIndex = 5;
|
||||
this.checkBox3.Text = "启用地图三";
|
||||
this.checkBox3.UseVisualStyleBackColor = true;
|
||||
this.checkBox2.AutoSize = true;
|
||||
this.checkBox2.Enabled = false;
|
||||
this.checkBox2.Location = new global::System.Drawing.Point(24, 64);
|
||||
this.checkBox2.Name = "checkBox2";
|
||||
this.checkBox2.Size = new global::System.Drawing.Size(84, 16);
|
||||
this.checkBox2.TabIndex = 4;
|
||||
this.checkBox2.Text = "启用地图二";
|
||||
this.checkBox2.UseVisualStyleBackColor = true;
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Enabled = false;
|
||||
this.checkBox1.Location = new global::System.Drawing.Point(24, 23);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new global::System.Drawing.Size(84, 16);
|
||||
this.checkBox1.TabIndex = 3;
|
||||
this.checkBox1.Text = "启用地图一";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
this.groupBox3.Controls.Add(this.numericUpDown1);
|
||||
this.groupBox3.Controls.Add(this.label4);
|
||||
this.groupBox3.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox3.Location = new global::System.Drawing.Point(3, 3);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new global::System.Drawing.Size(470, 76);
|
||||
this.groupBox3.TabIndex = 2;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "日志操作";
|
||||
this.numericUpDown1.Location = new global::System.Drawing.Point(117, 31);
|
||||
this.numericUpDown1.Name = "numericUpDown1";
|
||||
this.numericUpDown1.Size = new global::System.Drawing.Size(55, 21);
|
||||
this.numericUpDown1.TabIndex = 1;
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(30, 37);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(167, 12);
|
||||
this.label4.TabIndex = 0;
|
||||
this.label4.Text = "系统日志保存 天";
|
||||
this.button4.Location = new global::System.Drawing.Point(370, 477);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new global::System.Drawing.Size(95, 31);
|
||||
this.button4.TabIndex = 3;
|
||||
this.button4.Text = "保 存 ";
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
this.button4.Click += new global::System.EventHandler(this.button4_Click);
|
||||
this.groupBox4.Controls.Add(this.numericUpDown4);
|
||||
this.groupBox4.Controls.Add(this.numericUpDown3);
|
||||
this.groupBox4.Controls.Add(this.numericUpDown2);
|
||||
this.groupBox4.Controls.Add(this.cK_IO3);
|
||||
this.groupBox4.Controls.Add(this.cK_IO2);
|
||||
this.groupBox4.Controls.Add(this.cK_IO1);
|
||||
this.groupBox4.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox4.Location = new global::System.Drawing.Point(3, 112);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new global::System.Drawing.Size(470, 134);
|
||||
this.groupBox4.TabIndex = 4;
|
||||
this.groupBox4.TabStop = false;
|
||||
this.groupBox4.Text = "IO卡选择";
|
||||
this.numericUpDown4.Location = new global::System.Drawing.Point(216, 97);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown = this.numericUpDown4;
|
||||
int[] array = new int[4];
|
||||
array[0] = 10000;
|
||||
numericUpDown.Maximum = new decimal(array);
|
||||
this.numericUpDown4.Name = "numericUpDown4";
|
||||
this.numericUpDown4.Size = new global::System.Drawing.Size(82, 21);
|
||||
this.numericUpDown4.TabIndex = 8;
|
||||
this.numericUpDown3.Location = new global::System.Drawing.Point(216, 60);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown2 = this.numericUpDown3;
|
||||
int[] array2 = new int[4];
|
||||
array2[0] = 10000;
|
||||
numericUpDown2.Maximum = new decimal(array2);
|
||||
this.numericUpDown3.Name = "numericUpDown3";
|
||||
this.numericUpDown3.Size = new global::System.Drawing.Size(82, 21);
|
||||
this.numericUpDown3.TabIndex = 7;
|
||||
this.numericUpDown2.Location = new global::System.Drawing.Point(216, 22);
|
||||
global::System.Windows.Forms.NumericUpDown numericUpDown3 = this.numericUpDown2;
|
||||
int[] array3 = new int[4];
|
||||
array3[0] = 10000;
|
||||
numericUpDown3.Maximum = new decimal(array3);
|
||||
this.numericUpDown2.Name = "numericUpDown2";
|
||||
this.numericUpDown2.Size = new global::System.Drawing.Size(82, 21);
|
||||
this.numericUpDown2.TabIndex = 6;
|
||||
this.cK_IO3.AutoSize = true;
|
||||
this.cK_IO3.Enabled = false;
|
||||
this.cK_IO3.Location = new global::System.Drawing.Point(24, 98);
|
||||
this.cK_IO3.Name = "cK_IO3";
|
||||
this.cK_IO3.Size = new global::System.Drawing.Size(318, 16);
|
||||
this.cK_IO3.TabIndex = 5;
|
||||
this.cK_IO3.Text = "启用IO卡三 扫描周期: 毫秒";
|
||||
this.cK_IO3.UseVisualStyleBackColor = true;
|
||||
this.cK_IO2.AutoSize = true;
|
||||
this.cK_IO2.Enabled = false;
|
||||
this.cK_IO2.Location = new global::System.Drawing.Point(24, 61);
|
||||
this.cK_IO2.Name = "cK_IO2";
|
||||
this.cK_IO2.Size = new global::System.Drawing.Size(318, 16);
|
||||
this.cK_IO2.TabIndex = 4;
|
||||
this.cK_IO2.Text = "启用IO卡二 扫描周期: 毫秒";
|
||||
this.cK_IO2.UseVisualStyleBackColor = true;
|
||||
this.cK_IO1.AutoSize = true;
|
||||
this.cK_IO1.Enabled = false;
|
||||
this.cK_IO1.Location = new global::System.Drawing.Point(24, 23);
|
||||
this.cK_IO1.Name = "cK_IO1";
|
||||
this.cK_IO1.Size = new global::System.Drawing.Size(318, 16);
|
||||
this.cK_IO1.TabIndex = 3;
|
||||
this.cK_IO1.Text = "启用IO卡一 扫描周期: 毫秒";
|
||||
this.cK_IO1.UseVisualStyleBackColor = true;
|
||||
this.groupBox5.Controls.Add(this.chk_location_auto_display);
|
||||
this.groupBox5.Controls.Add(this.chk_load_path_his);
|
||||
this.groupBox5.Controls.Add(this.chk_auto_control);
|
||||
this.groupBox5.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox5.Location = new global::System.Drawing.Point(3, 79);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new global::System.Drawing.Size(470, 155);
|
||||
this.groupBox5.TabIndex = 5;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "其它设置";
|
||||
this.chk_location_auto_display.AutoSize = true;
|
||||
this.chk_location_auto_display.Location = new global::System.Drawing.Point(23, 36);
|
||||
this.chk_location_auto_display.Name = "chk_location_auto_display";
|
||||
this.chk_location_auto_display.Size = new global::System.Drawing.Size(138, 16);
|
||||
this.chk_location_auto_display.TabIndex = 6;
|
||||
this.chk_location_auto_display.Text = "动态实时显示AGV位置";
|
||||
this.chk_location_auto_display.UseVisualStyleBackColor = true;
|
||||
this.chk_load_path_his.AutoSize = true;
|
||||
this.chk_load_path_his.Location = new global::System.Drawing.Point(23, 111);
|
||||
this.chk_load_path_his.Name = "chk_load_path_his";
|
||||
this.chk_load_path_his.Size = new global::System.Drawing.Size(240, 16);
|
||||
this.chk_load_path_his.TabIndex = 5;
|
||||
this.chk_load_path_his.Text = "启动软件时,自动加载前次管控逻辑关系";
|
||||
this.chk_load_path_his.UseVisualStyleBackColor = true;
|
||||
this.chk_auto_control.AutoSize = true;
|
||||
this.chk_auto_control.Location = new global::System.Drawing.Point(24, 73);
|
||||
this.chk_auto_control.Name = "chk_auto_control";
|
||||
this.chk_auto_control.Size = new global::System.Drawing.Size(216, 16);
|
||||
this.chk_auto_control.TabIndex = 3;
|
||||
this.chk_auto_control.Text = "启动软件时,自动开始设备调度管控";
|
||||
this.chk_auto_control.UseVisualStyleBackColor = true;
|
||||
this.tabControl1.Controls.Add(this.tabPage1);
|
||||
this.tabControl1.Controls.Add(this.tabPage2);
|
||||
this.tabControl1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControl1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.Size = new global::System.Drawing.Size(484, 542);
|
||||
this.tabControl1.TabIndex = 6;
|
||||
this.tabPage1.Controls.Add(this.groupBox2);
|
||||
this.tabPage1.Controls.Add(this.button4);
|
||||
this.tabPage1.Controls.Add(this.groupBox4);
|
||||
this.tabPage1.Controls.Add(this.groupBox1);
|
||||
this.tabPage1.Location = new global::System.Drawing.Point(4, 22);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new global::System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new global::System.Drawing.Size(476, 516);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "系统参数";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
this.tabPage2.Controls.Add(this.grp_A16587);
|
||||
this.tabPage2.Controls.Add(this.button5);
|
||||
this.tabPage2.Controls.Add(this.groupBox5);
|
||||
this.tabPage2.Controls.Add(this.groupBox3);
|
||||
this.tabPage2.Location = new global::System.Drawing.Point(4, 22);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new global::System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new global::System.Drawing.Size(476, 516);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "用户参数";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
this.grp_A16587.Controls.Add(this.dateTimePicker2);
|
||||
this.grp_A16587.Controls.Add(this.dateTimePicker1);
|
||||
this.grp_A16587.Controls.Add(this.label7);
|
||||
this.grp_A16587.Controls.Add(this.label6);
|
||||
this.grp_A16587.Controls.Add(this.numericUpDown5);
|
||||
this.grp_A16587.Controls.Add(this.label5);
|
||||
this.grp_A16587.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.grp_A16587.Location = new global::System.Drawing.Point(3, 234);
|
||||
this.grp_A16587.Name = "grp_A16587";
|
||||
this.grp_A16587.Size = new global::System.Drawing.Size(470, 144);
|
||||
this.grp_A16587.TabIndex = 7;
|
||||
this.grp_A16587.TabStop = false;
|
||||
this.grp_A16587.Text = "取料等待时间、巡检时间设置";
|
||||
this.grp_A16587.Visible = false;
|
||||
this.dateTimePicker2.CustomFormat = "HH:mm";
|
||||
this.dateTimePicker2.Format = global::System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker2.Location = new global::System.Drawing.Point(107, 105);
|
||||
this.dateTimePicker2.Name = "dateTimePicker2";
|
||||
this.dateTimePicker2.Size = new global::System.Drawing.Size(93, 21);
|
||||
this.dateTimePicker2.TabIndex = 5;
|
||||
this.dateTimePicker1.CustomFormat = "HH:mm";
|
||||
this.dateTimePicker1.Format = global::System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker1.Location = new global::System.Drawing.Point(107, 70);
|
||||
this.dateTimePicker1.Name = "dateTimePicker1";
|
||||
this.dateTimePicker1.Size = new global::System.Drawing.Size(93, 21);
|
||||
this.dateTimePicker1.TabIndex = 4;
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new global::System.Drawing.Point(30, 111);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new global::System.Drawing.Size(71, 12);
|
||||
this.label7.TabIndex = 3;
|
||||
this.label7.Text = "巡检时间2:";
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new global::System.Drawing.Point(30, 76);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new global::System.Drawing.Size(71, 12);
|
||||
this.label6.TabIndex = 2;
|
||||
this.label6.Text = "巡检时间1:";
|
||||
this.numericUpDown5.Location = new global::System.Drawing.Point(145, 35);
|
||||
this.numericUpDown5.Name = "numericUpDown5";
|
||||
this.numericUpDown5.Size = new global::System.Drawing.Size(55, 21);
|
||||
this.numericUpDown5.TabIndex = 1;
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new global::System.Drawing.Point(30, 37);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new global::System.Drawing.Size(215, 12);
|
||||
this.label5.TabIndex = 0;
|
||||
this.label5.Text = "呼叫取料等待时间: 分钟";
|
||||
this.button5.Location = new global::System.Drawing.Point(370, 477);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new global::System.Drawing.Size(95, 31);
|
||||
this.button5.TabIndex = 6;
|
||||
this.button5.Text = "保 存 ";
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
this.button5.Click += new global::System.EventHandler(this.button5_Click);
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(484, 542);
|
||||
base.Controls.Add(this.tabControl1);
|
||||
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
base.Name = "SysSet";
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "系统参数";
|
||||
base.TopMost = true;
|
||||
base.Load += new global::System.EventHandler(this.SysSet_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.groupBox3.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown1).EndInit();
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.groupBox4.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown4).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown3).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown2).EndInit();
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox5.PerformLayout();
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
this.grp_A16587.ResumeLayout(false);
|
||||
this.grp_A16587.PerformLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.numericUpDown5).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x04000552 RID: 1362
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x04000553 RID: 1363
|
||||
private global::System.Windows.Forms.GroupBox groupBox1;
|
||||
|
||||
// Token: 0x04000554 RID: 1364
|
||||
private global::System.Windows.Forms.TextBox textBox6;
|
||||
|
||||
// Token: 0x04000555 RID: 1365
|
||||
private global::System.Windows.Forms.TextBox textBox5;
|
||||
|
||||
// Token: 0x04000556 RID: 1366
|
||||
private global::System.Windows.Forms.TextBox textBox4;
|
||||
|
||||
// Token: 0x04000557 RID: 1367
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x04000558 RID: 1368
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x04000559 RID: 1369
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x0400055A RID: 1370
|
||||
private global::System.Windows.Forms.GroupBox groupBox2;
|
||||
|
||||
// Token: 0x0400055B RID: 1371
|
||||
private global::System.Windows.Forms.Button button3;
|
||||
|
||||
// Token: 0x0400055C RID: 1372
|
||||
private global::System.Windows.Forms.Button button2;
|
||||
|
||||
// Token: 0x0400055D RID: 1373
|
||||
private global::System.Windows.Forms.Button button1;
|
||||
|
||||
// Token: 0x0400055E RID: 1374
|
||||
private global::System.Windows.Forms.TextBox txt_path3;
|
||||
|
||||
// Token: 0x0400055F RID: 1375
|
||||
private global::System.Windows.Forms.TextBox txt_path2;
|
||||
|
||||
// Token: 0x04000560 RID: 1376
|
||||
private global::System.Windows.Forms.TextBox txt_path1;
|
||||
|
||||
// Token: 0x04000561 RID: 1377
|
||||
private global::System.Windows.Forms.CheckBox checkBox3;
|
||||
|
||||
// Token: 0x04000562 RID: 1378
|
||||
private global::System.Windows.Forms.CheckBox checkBox2;
|
||||
|
||||
// Token: 0x04000563 RID: 1379
|
||||
private global::System.Windows.Forms.CheckBox checkBox1;
|
||||
|
||||
// Token: 0x04000564 RID: 1380
|
||||
private global::System.Windows.Forms.GroupBox groupBox3;
|
||||
|
||||
// Token: 0x04000565 RID: 1381
|
||||
private global::System.Windows.Forms.NumericUpDown numericUpDown1;
|
||||
|
||||
// Token: 0x04000566 RID: 1382
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x04000567 RID: 1383
|
||||
private global::System.Windows.Forms.Button button4;
|
||||
|
||||
// Token: 0x04000568 RID: 1384
|
||||
private global::System.Windows.Forms.GroupBox groupBox4;
|
||||
|
||||
// Token: 0x04000569 RID: 1385
|
||||
private global::System.Windows.Forms.NumericUpDown numericUpDown4;
|
||||
|
||||
// Token: 0x0400056A RID: 1386
|
||||
private global::System.Windows.Forms.NumericUpDown numericUpDown3;
|
||||
|
||||
// Token: 0x0400056B RID: 1387
|
||||
private global::System.Windows.Forms.NumericUpDown numericUpDown2;
|
||||
|
||||
// Token: 0x0400056C RID: 1388
|
||||
private global::System.Windows.Forms.CheckBox cK_IO3;
|
||||
|
||||
// Token: 0x0400056D RID: 1389
|
||||
private global::System.Windows.Forms.CheckBox cK_IO2;
|
||||
|
||||
// Token: 0x0400056E RID: 1390
|
||||
private global::System.Windows.Forms.CheckBox cK_IO1;
|
||||
|
||||
// Token: 0x0400056F RID: 1391
|
||||
private global::System.Windows.Forms.GroupBox groupBox5;
|
||||
|
||||
// Token: 0x04000570 RID: 1392
|
||||
private global::System.Windows.Forms.CheckBox chk_load_path_his;
|
||||
|
||||
// Token: 0x04000571 RID: 1393
|
||||
private global::System.Windows.Forms.CheckBox chk_auto_control;
|
||||
|
||||
// Token: 0x04000572 RID: 1394
|
||||
private global::System.Windows.Forms.TabControl tabControl1;
|
||||
|
||||
// Token: 0x04000573 RID: 1395
|
||||
private global::System.Windows.Forms.TabPage tabPage1;
|
||||
|
||||
// Token: 0x04000574 RID: 1396
|
||||
private global::System.Windows.Forms.TabPage tabPage2;
|
||||
|
||||
// Token: 0x04000575 RID: 1397
|
||||
private global::System.Windows.Forms.Button button5;
|
||||
|
||||
// Token: 0x04000576 RID: 1398
|
||||
private global::System.Windows.Forms.CheckBox chk_location_auto_display;
|
||||
|
||||
// Token: 0x04000577 RID: 1399
|
||||
private global::System.Windows.Forms.GroupBox grp_A16587;
|
||||
|
||||
// Token: 0x04000578 RID: 1400
|
||||
private global::System.Windows.Forms.DateTimePicker dateTimePicker2;
|
||||
|
||||
// Token: 0x04000579 RID: 1401
|
||||
private global::System.Windows.Forms.DateTimePicker dateTimePicker1;
|
||||
|
||||
// Token: 0x0400057A RID: 1402
|
||||
private global::System.Windows.Forms.Label label7;
|
||||
|
||||
// Token: 0x0400057B RID: 1403
|
||||
private global::System.Windows.Forms.Label label6;
|
||||
|
||||
// Token: 0x0400057C RID: 1404
|
||||
private global::System.Windows.Forms.NumericUpDown numericUpDown5;
|
||||
|
||||
// Token: 0x0400057D RID: 1405
|
||||
private global::System.Windows.Forms.Label label5;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
using AGVSystem.Properties;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200001D RID: 29
|
||||
public partial class SysSet : Form
|
||||
{
|
||||
// Token: 0x060001B5 RID: 437 RVA: 0x00048506 File Offset: 0x00046706
|
||||
public SysSet()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
// Token: 0x060001B6 RID: 438 RVA: 0x00048520 File Offset: 0x00046720
|
||||
private void button4_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
ClsDBConn_sql clsDBConn_sql = new ClsDBConn_sql();
|
||||
Param.map1_path = this.txt_path1.Text;
|
||||
Param.map2_path = this.txt_path2.Text;
|
||||
Param.map3_path = this.txt_path3.Text;
|
||||
Param.map1_status = this.checkBox1.Checked;
|
||||
Param.map2_status = this.checkBox2.Checked;
|
||||
Param.map3_status = this.checkBox3.Checked;
|
||||
Param.Load_Path_His = this.chk_load_path_his.Checked;
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + Param.map1_status.ToString() + "' WHERE [Col_Name] ='map1_status'");
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + Param.map2_status.ToString() + "' WHERE [Col_Name] ='map2_status'");
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + Param.map3_status.ToString() + "' WHERE [Col_Name] ='map3_status'");
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + this.numericUpDown2.Value.ToString() + "' WHERE [Col_Name] ='Card1_Interval'");
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + this.numericUpDown3.Value.ToString() + "' WHERE [Col_Name] ='Card2_Interval'");
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + this.numericUpDown4.Value.ToString() + "' WHERE [Col_Name] ='Card3_Interval'");
|
||||
Settings.Default.Save();
|
||||
base.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001B7 RID: 439 RVA: 0x000486C0 File Offset: 0x000468C0
|
||||
private void SysSet_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.checkBox1.Checked = Param.map1_status;
|
||||
this.checkBox2.Checked = Param.map2_status;
|
||||
this.checkBox3.Checked = Param.map3_status;
|
||||
this.chk_auto_control.Checked = Param.Auto_Control;
|
||||
this.chk_load_path_his.Checked = Param.Load_Path_His;
|
||||
this.chk_location_auto_display.Checked = Param.Agv_Location_Auto_Display;
|
||||
this.textBox4.Text = Param.Pro_id;
|
||||
this.textBox5.Text = Param.Pro_factory;
|
||||
this.textBox6.Text = Param.Pro_remark;
|
||||
this.numericUpDown1.Value = Param.Day_Count;
|
||||
this.numericUpDown2.Value = Param.Card1_Interval;
|
||||
this.numericUpDown3.Value = Param.Card2_Interval;
|
||||
this.numericUpDown4.Value = Param.Card3_Interval;
|
||||
bool flag = this.numericUpDown2.Value > 0m;
|
||||
if (flag)
|
||||
{
|
||||
this.cK_IO1.Checked = true;
|
||||
}
|
||||
bool flag2 = this.numericUpDown3.Value > 0m;
|
||||
if (flag2)
|
||||
{
|
||||
this.cK_IO2.Checked = true;
|
||||
}
|
||||
bool flag3 = this.numericUpDown4.Value > 0m;
|
||||
if (flag3)
|
||||
{
|
||||
this.cK_IO3.Checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001B8 RID: 440 RVA: 0x00048834 File Offset: 0x00046A34
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
openFileDialog.Filter = "图片文件png|*.png|图片文件jpg|*.jpg|所有文件(*.*)|*.*";
|
||||
bool flag2 = openFileDialog.ShowDialog() == DialogResult.OK;
|
||||
if (flag2)
|
||||
{
|
||||
this.txt_path1.Text = openFileDialog.FileName;
|
||||
try
|
||||
{
|
||||
File.Copy(openFileDialog.FileName, Application.StartupPath + "\\map\\" + Param.Pro_id + "_1", true);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
bool flag3 = ex.GetType().Name == "IOException";
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("您可能已打开AGV调度监控页面,请重启软件后再设置!", "参数设置", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001B9 RID: 441 RVA: 0x00048910 File Offset: 0x00046B10
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
openFileDialog.Filter = "图片文件png|*.png|图片文件jpg|*.jpg|所有文件(*.*)|*.*";
|
||||
bool flag2 = openFileDialog.ShowDialog() == DialogResult.OK;
|
||||
if (flag2)
|
||||
{
|
||||
this.txt_path2.Text = openFileDialog.FileName;
|
||||
try
|
||||
{
|
||||
File.Copy(openFileDialog.FileName, Application.StartupPath + "\\map\\" + Param.Pro_id + "_2", true);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
bool flag3 = ex.GetType().Name == "IOException";
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("您可能已打开AGV调度监控页面,请重启软件后再设置!", "参数设置", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001BA RID: 442 RVA: 0x000489EC File Offset: 0x00046BEC
|
||||
private void button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
openFileDialog.Filter = "图片文件png|*.png|图片文件jpg|*.jpg|所有文件(*.*)|*.*";
|
||||
bool flag2 = openFileDialog.ShowDialog() == DialogResult.OK;
|
||||
if (flag2)
|
||||
{
|
||||
this.txt_path3.Text = openFileDialog.FileName;
|
||||
try
|
||||
{
|
||||
File.Copy(openFileDialog.FileName, Application.StartupPath + "\\map\\" + Param.Pro_id + "_3", true);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
bool flag3 = ex.GetType().Name == "IOException";
|
||||
if (flag3)
|
||||
{
|
||||
MessageBox.Show("您可能已打开AGV调度监控页面,请重启软件后再设置!", "参数设置", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001BB RID: 443 RVA: 0x00048AC8 File Offset: 0x00046CC8
|
||||
private void button5_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = Param.UserName_temp == "";
|
||||
if (flag)
|
||||
{
|
||||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
Param.Day_Count = (int)this.numericUpDown1.Value;
|
||||
Param.Xj_Time1 = this.dateTimePicker1.Value.TimeOfDay.ToString();
|
||||
Param.Xj_Time2 = this.dateTimePicker2.Value.TimeOfDay.ToString();
|
||||
ClsDBConn_sql clsDBConn_sql = new ClsDBConn_sql();
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + this.chk_load_path_his.Checked.ToString() + "' WHERE [Col_Name] ='Load_Path_His'");
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + this.chk_auto_control.Checked.ToString() + "' WHERE [Col_Name] ='Auto_Control'");
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + Param.Day_Count.ToString() + "' WHERE [Col_Name] ='Day_Count'");
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + this.chk_location_auto_display.Checked.ToString() + "' WHERE [Col_Name] ='AgvLoc_Dynamic_Display'");
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + Param.Xj_Time1.ToString() + "' WHERE [Col_Name] ='Xj_Time1'");
|
||||
clsDBConn_sql.Command("UPDATE [SysParam] SET [Col_Value] ='" + Param.Xj_Time2.ToString() + "' WHERE [Col_Name] ='Xj_Time2'");
|
||||
Settings.Default.Save();
|
||||
base.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,149 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200000D RID: 13
|
||||
public class WriteTxt
|
||||
{
|
||||
// Token: 0x060000BA RID: 186 RVA: 0x00012CE8 File Offset: 0x00010EE8
|
||||
public static void SaveLog1(string fileMsg, string filename, string Assembly_name)
|
||||
{
|
||||
object obj = WriteTxt.obj_saveLog1;
|
||||
lock (obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (FileStream fileStream = new FileStream(WriteTxt.GetFilePath1(filename, Assembly_name), FileMode.Append, FileAccess.Write))
|
||||
{
|
||||
using (StreamWriter streamWriter = new StreamWriter(fileStream))
|
||||
{
|
||||
streamWriter.WriteLine(WriteTxt.GetCurrentTimeString() + fileMsg);
|
||||
streamWriter.Close();
|
||||
fileStream.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
WriteTxt.SaveLog1(fileMsg, filename, Assembly_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000BB RID: 187 RVA: 0x00012DB0 File Offset: 0x00010FB0
|
||||
private static string GetCurrentTimeString()
|
||||
{
|
||||
return "[" + DateTime.Now.ToLongTimeString() + "]:";
|
||||
}
|
||||
|
||||
// Token: 0x060000BC RID: 188 RVA: 0x00012DE0 File Offset: 0x00010FE0
|
||||
private static string GetFilePath1(string str, string Assembly_Name)
|
||||
{
|
||||
string path = string.Concat(new string[]
|
||||
{
|
||||
Application.StartupPath,
|
||||
"\\log\\",
|
||||
DateTime.Now.ToString("yyyyMMdd"),
|
||||
"\\",
|
||||
Assembly_Name
|
||||
});
|
||||
bool flag = !Directory.Exists(path);
|
||||
if (flag)
|
||||
{
|
||||
Directory.CreateDirectory(path);
|
||||
}
|
||||
string text = string.Concat(new string[]
|
||||
{
|
||||
Application.StartupPath,
|
||||
"\\log\\",
|
||||
DateTime.Now.ToString("yyyyMMdd"),
|
||||
"\\",
|
||||
Assembly_Name
|
||||
});
|
||||
bool flag2 = !Directory.Exists(text);
|
||||
if (flag2)
|
||||
{
|
||||
Directory.CreateDirectory(text);
|
||||
}
|
||||
return text + "\\" + str + "_.log";
|
||||
}
|
||||
|
||||
// Token: 0x060000BD RID: 189 RVA: 0x00012EB0 File Offset: 0x000110B0
|
||||
public static void SaveLog2(string fileMsg)
|
||||
{
|
||||
object obj = WriteTxt.obj_saveLog2;
|
||||
lock (obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
bool flag2 = !Directory.Exists("c:\\pathlog\\");
|
||||
if (flag2)
|
||||
{
|
||||
Directory.CreateDirectory("c:\\pathlog\\");
|
||||
}
|
||||
using (FileStream fileStream = new FileStream("c:\\pathlog\\" + DateTime.Now.ToString("yyyyMMdd") + "_.log", FileMode.Append, FileAccess.Write))
|
||||
{
|
||||
using (StreamWriter streamWriter = new StreamWriter(fileStream))
|
||||
{
|
||||
streamWriter.WriteLine(WriteTxt.GetCurrentTimeString() + fileMsg);
|
||||
streamWriter.Close();
|
||||
fileStream.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
WriteTxt.SaveLog2(fileMsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000BE RID: 190 RVA: 0x00012FB4 File Offset: 0x000111B4
|
||||
public static void SaveLog3(string fileMsg, string id)
|
||||
{
|
||||
object obj = WriteTxt.obj_saveLog3;
|
||||
lock (obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
bool flag2 = !Directory.Exists("c:\\neclog\\" + DateTime.Now.ToString("yyyyMMdd"));
|
||||
if (flag2)
|
||||
{
|
||||
Directory.CreateDirectory("c:\\neclog\\" + DateTime.Now.ToString("yyyyMMdd"));
|
||||
}
|
||||
using (FileStream fileStream = new FileStream(string.Concat(new string[]
|
||||
{
|
||||
"c:\\neclog\\",
|
||||
DateTime.Now.ToString("yyyyMMdd"),
|
||||
"\\",
|
||||
id,
|
||||
"_.log"
|
||||
}), FileMode.Append, FileAccess.Write))
|
||||
{
|
||||
using (StreamWriter streamWriter = new StreamWriter(fileStream))
|
||||
{
|
||||
streamWriter.WriteLine(WriteTxt.GetCurrentTimeString() + fileMsg);
|
||||
streamWriter.Close();
|
||||
fileStream.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
WriteTxt.SaveLog3(fileMsg, id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000124 RID: 292
|
||||
private static object obj_saveLog1 = new object();
|
||||
|
||||
// Token: 0x04000125 RID: 293
|
||||
private static object obj_saveLog2 = new object();
|
||||
|
||||
// Token: 0x04000126 RID: 294
|
||||
private static object obj_saveLog3 = new object();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="AGVSystem.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/></startup><userSettings>
|
||||
<AGVSystem.Properties.Settings>
|
||||
<setting name="Product_bp_using" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="Product_bp_backup" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="Product_xc_using" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="Product_xc_backup" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="Use_bp_using" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="Use_bp_backup" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="Use_xc_backup" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="Use_xc_using" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="A17083_loc20" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="A17083_loc48" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="A17099_loc1" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="A17099_loc2" serializeAs="String">
|
||||
<value>1</value>
|
||||
</setting>
|
||||
<setting name="A17099_loc3" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="A17099_loc4" serializeAs="String">
|
||||
<value>1</value>
|
||||
</setting>
|
||||
<setting name="A17099_loc5" serializeAs="String">
|
||||
<value>1</value>
|
||||
</setting>
|
||||
<setting name="A17099_loc15" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="A17099_loc16" serializeAs="String">
|
||||
<value>1</value>
|
||||
</setting>
|
||||
<setting name="A17099_loc17" serializeAs="String">
|
||||
<value>0</value>
|
||||
</setting>
|
||||
<setting name="A17099_loc18" serializeAs="String">
|
||||
<value>1</value>
|
||||
</setting>
|
||||
<setting name="A17194_Qty_Flag" serializeAs="String">
|
||||
<value>3</value>
|
||||
</setting>
|
||||
</AGVSystem.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<!-- UAC 清单选项
|
||||
如果要更改 Windows 用户帐户控制级别,请用以下节点之一替换
|
||||
requestedExecutionLevel 节点。
|
||||
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
|
||||
|
||||
指定 requestedExecutionLevel 节点将会禁用文件和注册表虚拟化。
|
||||
如果要利用文件和注册表虚拟化实现向后
|
||||
兼容性,则删除 requestedExecutionLevel 节点。
|
||||
-->
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
<applicationRequestMinimum>
|
||||
<PermissionSet class="System.Security.PermissionSet" version="1" Unrestricted="true" ID="Custom" SameSite="site" />
|
||||
<defaultAssemblyRequest permissionSetReference="Custom" />
|
||||
</applicationRequestMinimum>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- 此应用程序设计使用的所有 Windows 版本的列表。Windows 将会自动选择最兼容的环境。-->
|
||||
<!-- 如果应用程序设计使用 Windows 7,请取消注释以下 supportedOS 节点-->
|
||||
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>-->
|
||||
</application>
|
||||
</compatibility>
|
||||
<!-- 启用 Windows 公共控件和对话框的主题(Windows XP 和更高版本) -->
|
||||
<!-- <dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
processorArchitecture="*"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*"
|
||||
/>
|
||||
</dependentAssembly>
|
||||
</dependency>-->
|
||||
</asmv1:assembly>
|
||||
Generated
+6673
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,481 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
using AGVSystem.Properties;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000015 RID: 21
|
||||
public partial class frm_card : Form
|
||||
{
|
||||
// Token: 0x0600011A RID: 282 RVA: 0x00020BA8 File Offset: 0x0001EDA8
|
||||
public frm_card()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.l1[0] = this.lab1;
|
||||
this.l1[1] = this.lab2;
|
||||
this.l1[2] = this.lab3;
|
||||
this.l1[3] = this.lab4;
|
||||
this.l1[4] = this.lab5;
|
||||
this.l1[5] = this.lab6;
|
||||
this.l1[6] = this.lab7;
|
||||
this.l1[7] = this.lab8;
|
||||
this.l1[8] = this.lab9;
|
||||
this.l1[9] = this.lab10;
|
||||
this.l1[10] = this.lab11;
|
||||
this.l1[11] = this.lab12;
|
||||
this.l1[12] = this.lab13;
|
||||
this.l1[13] = this.lab14;
|
||||
this.l1[14] = this.lab15;
|
||||
this.l1[15] = this.lab16;
|
||||
this.l1[16] = this.lab17;
|
||||
this.l1[17] = this.lab18;
|
||||
this.l1[18] = this.lab19;
|
||||
this.l1[19] = this.lab20;
|
||||
this.l1[20] = this.lab21;
|
||||
this.l1[21] = this.lab22;
|
||||
this.l1[22] = this.lab23;
|
||||
this.l1[23] = this.lab24;
|
||||
this.l1[24] = this.lab25;
|
||||
this.l1[25] = this.lab26;
|
||||
this.l1[26] = this.lab27;
|
||||
this.l1[27] = this.lab28;
|
||||
this.l1[28] = this.lab29;
|
||||
this.l1[29] = this.lab30;
|
||||
this.l1[30] = this.lab31;
|
||||
this.l1[31] = this.lab32;
|
||||
this.pbox1[0] = this.pictureBox1_1;
|
||||
this.pbox1[1] = this.pictureBox1_2;
|
||||
this.pbox1[2] = this.pictureBox1_3;
|
||||
this.pbox1[3] = this.pictureBox1_4;
|
||||
this.pbox1[4] = this.pictureBox1_5;
|
||||
this.pbox1[5] = this.pictureBox1_6;
|
||||
this.pbox1[6] = this.pictureBox1_7;
|
||||
this.pbox1[7] = this.pictureBox1_8;
|
||||
this.pbox1[8] = this.pictureBox1_9;
|
||||
this.pbox1[9] = this.pictureBox1_10;
|
||||
this.pbox1[10] = this.pictureBox1_11;
|
||||
this.pbox1[11] = this.pictureBox1_12;
|
||||
this.pbox1[12] = this.pictureBox1_13;
|
||||
this.pbox1[13] = this.pictureBox1_14;
|
||||
this.pbox1[14] = this.pictureBox1_15;
|
||||
this.pbox1[15] = this.pictureBox1_16;
|
||||
this.pbox1[16] = this.pictureBox1_17;
|
||||
this.pbox1[17] = this.pictureBox1_18;
|
||||
this.pbox1[18] = this.pictureBox1_19;
|
||||
this.pbox1[19] = this.pictureBox1_20;
|
||||
this.pbox1[20] = this.pictureBox1_21;
|
||||
this.pbox1[21] = this.pictureBox1_22;
|
||||
this.pbox1[22] = this.pictureBox1_23;
|
||||
this.pbox1[23] = this.pictureBox1_24;
|
||||
this.pbox1[24] = this.pictureBox1_25;
|
||||
this.pbox1[25] = this.pictureBox1_26;
|
||||
this.pbox1[26] = this.pictureBox1_27;
|
||||
this.pbox1[27] = this.pictureBox1_28;
|
||||
this.pbox1[28] = this.pictureBox1_29;
|
||||
this.pbox1[29] = this.pictureBox1_30;
|
||||
this.pbox1[30] = this.pictureBox1_31;
|
||||
this.pbox1[31] = this.pictureBox1_32;
|
||||
this.pbox1[16].Enabled = false;
|
||||
this.pbox1[17].Enabled = false;
|
||||
this.pbox1[18].Enabled = false;
|
||||
this.pbox1[19].Enabled = false;
|
||||
this.pbox1[20].Enabled = false;
|
||||
this.pbox1[21].Enabled = false;
|
||||
this.pbox1[22].Enabled = false;
|
||||
this.pbox1[23].Enabled = false;
|
||||
this.pbox1[24].Enabled = false;
|
||||
this.pbox1[25].Enabled = false;
|
||||
this.pbox1[26].Enabled = false;
|
||||
this.pbox1[27].Enabled = false;
|
||||
this.pbox1[28].Enabled = false;
|
||||
this.pbox1[29].Enabled = false;
|
||||
this.pbox1[30].Enabled = false;
|
||||
this.pbox1[31].Enabled = false;
|
||||
ClsDBConn_sql clsDBConn_sql = new ClsDBConn_sql();
|
||||
DataSet dataSet = new DataSet();
|
||||
bool flag = Param.Card1_Interval > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.checkBox1.Checked = true;
|
||||
dataSet = clsDBConn_sql.connDt("SELECT [ID] ,[CLASS],[BIT] ,[REMARK] FROM [IO_CARD] where ID='CARD0' ORDER BY[CLASS], [BIT]");
|
||||
int num = 0;
|
||||
int count = dataSet.Tables[0].Rows.Count;
|
||||
foreach (object obj in dataSet.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
bool flag2 = num < 32;
|
||||
if (flag2)
|
||||
{
|
||||
this.l1[num].Text = dataRow[3].ToString();
|
||||
num++;
|
||||
}
|
||||
}
|
||||
this.timer1.Interval = Param.Card1_Interval + 10;
|
||||
this.timer1.Enabled = true;
|
||||
Param.card1.Output1 = 0;
|
||||
string text = Convert.ToString(Param.card1.Output1, 2).PadLeft(8, '0');
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
bool flag3 = text.Substring(7 - i, 1) == "0";
|
||||
if (flag3)
|
||||
{
|
||||
this.pbox1[16 + i].BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pbox1[16 + i].BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
}
|
||||
text = Convert.ToString(Param.card1.Output2, 2).PadLeft(8, '0');
|
||||
for (int j = 0; j < 8; j++)
|
||||
{
|
||||
bool flag4 = text.Substring(7 - j, 1) == "0";
|
||||
if (flag4)
|
||||
{
|
||||
this.pbox1[24 + j].BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pbox1[24 + j].BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
}
|
||||
for (int k = 0; k < 16; k++)
|
||||
{
|
||||
this.pbox1[16 + k].Click += this.picBox1_Click;
|
||||
}
|
||||
}
|
||||
this.l2[0] = this.label75;
|
||||
this.l2[1] = this.label74;
|
||||
this.l2[2] = this.label73;
|
||||
this.l2[3] = this.label72;
|
||||
this.l2[4] = this.label71;
|
||||
this.l2[5] = this.label70;
|
||||
this.l2[6] = this.label69;
|
||||
this.l2[7] = this.label68;
|
||||
this.l2[8] = this.label67;
|
||||
this.l2[9] = this.label66;
|
||||
this.l2[10] = this.label65;
|
||||
this.l2[11] = this.label64;
|
||||
this.l2[12] = this.label63;
|
||||
this.l2[13] = this.label62;
|
||||
this.l2[14] = this.label61;
|
||||
this.l2[15] = this.label60;
|
||||
this.l2[16] = this.label33;
|
||||
this.l2[17] = this.label32;
|
||||
this.l2[18] = this.label31;
|
||||
this.l2[19] = this.label30;
|
||||
this.l2[20] = this.label29;
|
||||
this.l2[21] = this.label28;
|
||||
this.l2[22] = this.label27;
|
||||
this.l2[23] = this.label26;
|
||||
this.l2[24] = this.label25;
|
||||
this.l2[25] = this.label24;
|
||||
this.l2[26] = this.label23;
|
||||
this.l2[27] = this.label22;
|
||||
this.l2[28] = this.label21;
|
||||
this.l2[29] = this.label20;
|
||||
this.l2[30] = this.label19;
|
||||
this.l2[31] = this.label18;
|
||||
this.pbox2[0] = this.pictureBox32;
|
||||
this.pbox2[1] = this.pictureBox31;
|
||||
this.pbox2[2] = this.pictureBox30;
|
||||
this.pbox2[3] = this.pictureBox29;
|
||||
this.pbox2[4] = this.pictureBox28;
|
||||
this.pbox2[5] = this.pictureBox27;
|
||||
this.pbox2[6] = this.pictureBox26;
|
||||
this.pbox2[7] = this.pictureBox25;
|
||||
this.pbox2[8] = this.pictureBox24;
|
||||
this.pbox2[9] = this.pictureBox23;
|
||||
this.pbox2[10] = this.pictureBox22;
|
||||
this.pbox2[11] = this.pictureBox21;
|
||||
this.pbox2[12] = this.pictureBox20;
|
||||
this.pbox2[13] = this.pictureBox19;
|
||||
this.pbox2[14] = this.pictureBox18;
|
||||
this.pbox2[15] = this.pictureBox17;
|
||||
this.pbox2[16] = this.pictureBox16;
|
||||
this.pbox2[17] = this.pictureBox15;
|
||||
this.pbox2[18] = this.pictureBox14;
|
||||
this.pbox2[19] = this.pictureBox13;
|
||||
this.pbox2[20] = this.pictureBox12;
|
||||
this.pbox2[21] = this.pictureBox11;
|
||||
this.pbox2[22] = this.pictureBox10;
|
||||
this.pbox2[23] = this.pictureBox9;
|
||||
this.pbox2[24] = this.pictureBox8;
|
||||
this.pbox2[25] = this.pictureBox7;
|
||||
this.pbox2[26] = this.pictureBox6;
|
||||
this.pbox2[27] = this.pictureBox5;
|
||||
this.pbox2[28] = this.pictureBox4;
|
||||
this.pbox2[29] = this.pictureBox3;
|
||||
this.pbox2[30] = this.pictureBox2;
|
||||
this.pbox2[31] = this.pictureBox1;
|
||||
bool flag5 = dataSet.Tables.Count > 0;
|
||||
if (flag5)
|
||||
{
|
||||
dataSet.Tables.Clear();
|
||||
}
|
||||
bool flag6 = Param.Card2_Interval > 0;
|
||||
if (flag6)
|
||||
{
|
||||
this.checkBox2.Checked = true;
|
||||
dataSet = clsDBConn_sql.connDt("SELECT [ID] ,[CLASS],[BIT] ,[REMARK] FROM [IO_CARD] where ID='CARD1' ORDER BY[CLASS], [BIT]");
|
||||
int num2 = 0;
|
||||
foreach (object obj2 in dataSet.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow2 = (DataRow)obj2;
|
||||
this.l2[num2].Text = dataRow2[3].ToString();
|
||||
num2++;
|
||||
}
|
||||
this.timer2.Interval = Param.Card2_Interval + 10;
|
||||
this.timer2.Enabled = true;
|
||||
string text2 = Convert.ToString(Param.card2.Output1, 2).PadLeft(8, '0');
|
||||
for (int l = 0; l < 8; l++)
|
||||
{
|
||||
bool flag7 = text2.Substring(7 - l, 1) == "0";
|
||||
if (flag7)
|
||||
{
|
||||
this.pbox2[16 + l].BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pbox2[16 + l].BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
}
|
||||
text2 = Convert.ToString(Param.card2.Output2, 2).PadLeft(8, '0');
|
||||
for (int m = 0; m < 8; m++)
|
||||
{
|
||||
bool flag8 = text2.Substring(7 - m, 1) == "0";
|
||||
if (flag8)
|
||||
{
|
||||
this.pbox2[24 + m].BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pbox2[24 + m].BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
}
|
||||
for (int n = 0; n < 16; n++)
|
||||
{
|
||||
this.pbox2[16 + n].Click += this.picBox2_Click;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600011B RID: 283 RVA: 0x000218CC File Offset: 0x0001FACC
|
||||
private void picBox1_Click(object sender, EventArgs e)
|
||||
{
|
||||
PictureBox pictureBox = (PictureBox)sender;
|
||||
bool flag = Convert.ToInt16(pictureBox.Tag) < 9;
|
||||
if (flag)
|
||||
{
|
||||
string text = Convert.ToString(Param.card1.Output1, 2).PadLeft(8, '0');
|
||||
text = text.Substring((int)(7 - (Convert.ToInt16(pictureBox.Tag) - 1)), 1);
|
||||
bool flag2 = text == "0";
|
||||
if (flag2)
|
||||
{
|
||||
Param.card1.WriteBit(0, (int)(Convert.ToInt16(pictureBox.Tag) - 1), 1);
|
||||
pictureBox.BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
else
|
||||
{
|
||||
Param.card1.WriteBit(0, (int)(Convert.ToInt16(pictureBox.Tag) - 1), 0);
|
||||
pictureBox.BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string text = Convert.ToString(Param.card1.Output2, 2).PadLeft(8, '0');
|
||||
text = text.Substring((int)(7 - (Convert.ToInt16(pictureBox.Tag) - 9)), 1);
|
||||
bool flag3 = text == "0";
|
||||
if (flag3)
|
||||
{
|
||||
Param.card1.WriteBit(1, (int)(Convert.ToInt16(pictureBox.Tag) - 9), 1);
|
||||
pictureBox.BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
else
|
||||
{
|
||||
Param.card1.WriteBit(1, (int)(Convert.ToInt16(pictureBox.Tag) - 9), 0);
|
||||
pictureBox.BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600011C RID: 284 RVA: 0x00021A28 File Offset: 0x0001FC28
|
||||
private void picBox2_Click(object sender, EventArgs e)
|
||||
{
|
||||
PictureBox pictureBox = (PictureBox)sender;
|
||||
bool flag = Convert.ToInt16(pictureBox.Tag) < 9;
|
||||
if (flag)
|
||||
{
|
||||
string text = Convert.ToString(Param.card2.Output1, 2).PadLeft(8, '0');
|
||||
text = text.Substring((int)(7 - (Convert.ToInt16(pictureBox.Tag) - 1)), 1);
|
||||
bool flag2 = text == "0";
|
||||
if (flag2)
|
||||
{
|
||||
Param.card2.WriteBit(0, (int)(7 - (Convert.ToInt16(pictureBox.Tag) - 1)), 1);
|
||||
pictureBox.BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
else
|
||||
{
|
||||
Param.card2.WriteBit(0, (int)(7 - (Convert.ToInt16(pictureBox.Tag) - 1)), 0);
|
||||
pictureBox.BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string text = Convert.ToString(Param.card2.Output2, 2).PadLeft(8, '0');
|
||||
text = text.Substring((int)(7 - (Convert.ToInt16(pictureBox.Tag) - 9)), 1);
|
||||
bool flag3 = text == "0";
|
||||
if (flag3)
|
||||
{
|
||||
Param.card2.WriteBit(0, (int)(7 - (Convert.ToInt16(pictureBox.Tag) - 9)), 1);
|
||||
pictureBox.BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
else
|
||||
{
|
||||
Param.card2.WriteBit(0, (int)(7 - (Convert.ToInt16(pictureBox.Tag) - 9)), 0);
|
||||
pictureBox.BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600011D RID: 285 RVA: 0x00021B8C File Offset: 0x0001FD8C
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
this.temp = Convert.ToString(Param.card1.Input1, 2).PadLeft(8, '0');
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
bool flag = this.temp.Substring(7 - i, 1) == "0";
|
||||
if (flag)
|
||||
{
|
||||
this.pbox1[i].BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pbox1[i].BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
}
|
||||
this.temp = Convert.ToString(Param.card1.Input2, 2).PadLeft(8, '0');
|
||||
for (int j = 0; j < 8; j++)
|
||||
{
|
||||
bool flag2 = this.temp.Substring(7 - j, 1) == "0";
|
||||
if (flag2)
|
||||
{
|
||||
this.pbox1[8 + j].BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pbox1[8 + j].BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600011E RID: 286 RVA: 0x00021C8C File Offset: 0x0001FE8C
|
||||
private void timer2_Tick(object sender, EventArgs e)
|
||||
{
|
||||
this.temp2 = Convert.ToString(Param.card2.Input1, 2).PadLeft(8, '0');
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
bool flag = this.temp2.Substring(7 - i, 1) == "0";
|
||||
if (flag)
|
||||
{
|
||||
this.pbox2[i].BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pbox2[i].BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
}
|
||||
this.temp2 = Convert.ToString(Param.card2.Input2, 2).PadLeft(8, '0');
|
||||
for (int j = 0; j < 8; j++)
|
||||
{
|
||||
bool flag2 = this.temp2.Substring(7 - j, 1) == "0";
|
||||
if (flag2)
|
||||
{
|
||||
this.pbox2[8 + j].BackgroundImage = Resources.ledLow;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pbox2[8 + j].BackgroundImage = Resources.ledHigh;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600011F RID: 287 RVA: 0x00021D8C File Offset: 0x0001FF8C
|
||||
private void frm_card_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
mainfrm.frm_card1 = null;
|
||||
}
|
||||
|
||||
// Token: 0x06000120 RID: 288 RVA: 0x00021D98 File Offset: 0x0001FF98
|
||||
private void checkBox4_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool @checked = this.checkBox4.Checked;
|
||||
if (@checked)
|
||||
{
|
||||
this.pbox1[16].Enabled = true;
|
||||
this.pbox1[17].Enabled = true;
|
||||
this.pbox1[18].Enabled = true;
|
||||
this.pbox1[19].Enabled = true;
|
||||
this.pbox1[20].Enabled = true;
|
||||
this.pbox1[21].Enabled = true;
|
||||
this.pbox1[22].Enabled = true;
|
||||
this.pbox1[23].Enabled = true;
|
||||
this.pbox1[24].Enabled = true;
|
||||
this.pbox1[25].Enabled = true;
|
||||
this.pbox1[26].Enabled = true;
|
||||
this.pbox1[27].Enabled = true;
|
||||
this.pbox1[28].Enabled = true;
|
||||
this.pbox1[29].Enabled = true;
|
||||
this.pbox1[30].Enabled = true;
|
||||
this.pbox1[31].Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pbox1[16].Enabled = false;
|
||||
this.pbox1[17].Enabled = false;
|
||||
this.pbox1[18].Enabled = false;
|
||||
this.pbox1[19].Enabled = false;
|
||||
this.pbox1[20].Enabled = false;
|
||||
this.pbox1[21].Enabled = false;
|
||||
this.pbox1[22].Enabled = false;
|
||||
this.pbox1[23].Enabled = false;
|
||||
this.pbox1[24].Enabled = false;
|
||||
this.pbox1[25].Enabled = false;
|
||||
this.pbox1[26].Enabled = false;
|
||||
this.pbox1[27].Enabled = false;
|
||||
this.pbox1[28].Enabled = false;
|
||||
this.pbox1[29].Enabled = false;
|
||||
this.pbox1[30].Enabled = false;
|
||||
this.pbox1[31].Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400021B RID: 539
|
||||
private Label[] l1 = new Label[32];
|
||||
|
||||
// Token: 0x0400021C RID: 540
|
||||
private Label[] l2 = new Label[32];
|
||||
|
||||
// Token: 0x0400021D RID: 541
|
||||
private Label[] l3 = new Label[32];
|
||||
|
||||
// Token: 0x0400021E RID: 542
|
||||
private PictureBox[] pbox1 = new PictureBox[32];
|
||||
|
||||
// Token: 0x0400021F RID: 543
|
||||
private PictureBox[] pbox2 = new PictureBox[32];
|
||||
|
||||
// Token: 0x04000220 RID: 544
|
||||
private PictureBox[] pbox3 = new PictureBox[32];
|
||||
|
||||
// Token: 0x04000221 RID: 545
|
||||
private string temp;
|
||||
|
||||
// Token: 0x04000222 RID: 546
|
||||
private string temp2;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
+270
@@ -0,0 +1,270 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000020 RID: 32
|
||||
public partial class frmchangefind : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x060001D3 RID: 467 RVA: 0x0004CFE8 File Offset: 0x0004B1E8
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x060001D4 RID: 468 RVA: 0x0004D020 File Offset: 0x0004B220
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea = new global::System.Windows.Forms.DataVisualization.Charting.ChartArea();
|
||||
global::System.Windows.Forms.DataVisualization.Charting.Legend legend = new global::System.Windows.Forms.DataVisualization.Charting.Legend();
|
||||
global::System.Windows.Forms.DataVisualization.Charting.Series series = new global::System.Windows.Forms.DataVisualization.Charting.Series();
|
||||
this.splitContainer1 = new global::System.Windows.Forms.SplitContainer();
|
||||
this.cmb_gz = new global::System.Windows.Forms.ComboBox();
|
||||
this.cmb_agv = new global::System.Windows.Forms.ComboBox();
|
||||
this.dateTimePicker2 = new global::System.Windows.Forms.DateTimePicker();
|
||||
this.cmb_linelist = new global::System.Windows.Forms.ComboBox();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.dateTimePicker1 = new global::System.Windows.Forms.DateTimePicker();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.button2 = new global::System.Windows.Forms.Button();
|
||||
this.button1 = new global::System.Windows.Forms.Button();
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
this.splitContainer2 = new global::System.Windows.Forms.SplitContainer();
|
||||
this.chart1 = new global::System.Windows.Forms.DataVisualization.Charting.Chart();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer2).BeginInit();
|
||||
this.splitContainer2.Panel1.SuspendLayout();
|
||||
this.splitContainer2.Panel2.SuspendLayout();
|
||||
this.splitContainer2.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.chart1).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.splitContainer1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = global::System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = global::System.Windows.Forms.Orientation.Horizontal;
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmb_gz);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmb_agv);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dateTimePicker2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmb_linelist);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label4);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label3);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dateTimePicker1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.panel1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
|
||||
this.splitContainer1.Size = new global::System.Drawing.Size(924, 460);
|
||||
this.splitContainer1.SplitterDistance = 79;
|
||||
this.splitContainer1.TabIndex = 0;
|
||||
this.cmb_gz.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_gz.FormattingEnabled = true;
|
||||
this.cmb_gz.Items.AddRange(new object[]
|
||||
{
|
||||
"",
|
||||
"防撞",
|
||||
"急停",
|
||||
"驱动",
|
||||
"牵引帮",
|
||||
"电量",
|
||||
"充电电极"
|
||||
});
|
||||
this.cmb_gz.Location = new global::System.Drawing.Point(504, 48);
|
||||
this.cmb_gz.Name = "cmb_gz";
|
||||
this.cmb_gz.Size = new global::System.Drawing.Size(145, 20);
|
||||
this.cmb_gz.TabIndex = 17;
|
||||
this.cmb_agv.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_agv.FormattingEnabled = true;
|
||||
this.cmb_agv.Location = new global::System.Drawing.Point(504, 19);
|
||||
this.cmb_agv.Name = "cmb_agv";
|
||||
this.cmb_agv.Size = new global::System.Drawing.Size(82, 20);
|
||||
this.cmb_agv.TabIndex = 16;
|
||||
this.dateTimePicker2.CustomFormat = "yyyy-MM-dd HH:MM:ss";
|
||||
this.dateTimePicker2.Format = global::System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker2.Location = new global::System.Drawing.Point(242, 16);
|
||||
this.dateTimePicker2.Name = "dateTimePicker2";
|
||||
this.dateTimePicker2.Size = new global::System.Drawing.Size(157, 21);
|
||||
this.dateTimePicker2.TabIndex = 15;
|
||||
this.cmb_linelist.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_linelist.FormattingEnabled = true;
|
||||
this.cmb_linelist.Location = new global::System.Drawing.Point(79, 48);
|
||||
this.cmb_linelist.Name = "cmb_linelist";
|
||||
this.cmb_linelist.Size = new global::System.Drawing.Size(320, 20);
|
||||
this.cmb_linelist.TabIndex = 14;
|
||||
this.cmb_linelist.SelectedIndexChanged += new global::System.EventHandler(this.cmb_linelist_SelectedIndexChanged);
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(433, 51);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label4.TabIndex = 8;
|
||||
this.label4.Text = "故障类型:";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(439, 22);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(59, 12);
|
||||
this.label3.TabIndex = 4;
|
||||
this.label3.Text = "AGV编号:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(8, 51);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "线体名称:";
|
||||
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:MM:ss";
|
||||
this.dateTimePicker1.Format = global::System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker1.Location = new global::System.Drawing.Point(79, 16);
|
||||
this.dateTimePicker1.Name = "dateTimePicker1";
|
||||
this.dateTimePicker1.Size = new global::System.Drawing.Size(157, 21);
|
||||
this.dateTimePicker1.TabIndex = 1;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(32, 22);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "时间:";
|
||||
this.panel1.Controls.Add(this.button2);
|
||||
this.panel1.Controls.Add(this.button1);
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.panel1.Location = new global::System.Drawing.Point(598, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(326, 79);
|
||||
this.panel1.TabIndex = 13;
|
||||
this.button2.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.button2.Location = new global::System.Drawing.Point(67, 0);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new global::System.Drawing.Size(132, 79);
|
||||
this.button2.TabIndex = 12;
|
||||
this.button2.Text = "查 询";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new global::System.EventHandler(this.button2_Click);
|
||||
this.button1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.button1.Location = new global::System.Drawing.Point(199, 0);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new global::System.Drawing.Size(127, 79);
|
||||
this.button1.TabIndex = 10;
|
||||
this.button1.Text = "导 出";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new global::System.EventHandler(this.button1_Click);
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = global::System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersWidth = 70;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(283, 375);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
this.dataGridView1.RowStateChanged += new global::System.Windows.Forms.DataGridViewRowStateChangedEventHandler(this.dataGridView1_RowStateChanged);
|
||||
this.splitContainer2.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.splitContainer2.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer2.FixedPanel = global::System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.splitContainer2.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.splitContainer2.Name = "splitContainer2";
|
||||
this.splitContainer2.Panel1.Controls.Add(this.dataGridView1);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.chart1);
|
||||
this.splitContainer2.Size = new global::System.Drawing.Size(924, 377);
|
||||
this.splitContainer2.SplitterDistance = 285;
|
||||
this.splitContainer2.TabIndex = 1;
|
||||
chartArea.Name = "ChartArea1";
|
||||
this.chart1.ChartAreas.Add(chartArea);
|
||||
this.chart1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
legend.Name = "Legend1";
|
||||
this.chart1.Legends.Add(legend);
|
||||
this.chart1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.chart1.Name = "chart1";
|
||||
series.BackImageAlignment = global::System.Windows.Forms.DataVisualization.Charting.ChartImageAlignmentStyle.Center;
|
||||
series.ChartArea = "ChartArea1";
|
||||
series.IsValueShownAsLabel = true;
|
||||
series.Legend = "Legend1";
|
||||
series.Name = "充电次数";
|
||||
this.chart1.Series.Add(series);
|
||||
this.chart1.Size = new global::System.Drawing.Size(633, 375);
|
||||
this.chart1.TabIndex = 0;
|
||||
this.chart1.Text = "chart1";
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(924, 460);
|
||||
base.Controls.Add(this.splitContainer1);
|
||||
base.Name = "frmchangefind";
|
||||
this.Text = "充电记录";
|
||||
base.Load += new global::System.EventHandler(this.frmfind_Load);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.PerformLayout();
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
this.splitContainer2.Panel1.ResumeLayout(false);
|
||||
this.splitContainer2.Panel2.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer2).EndInit();
|
||||
this.splitContainer2.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.chart1).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x0400059E RID: 1438
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x0400059F RID: 1439
|
||||
private global::System.Windows.Forms.SplitContainer splitContainer1;
|
||||
|
||||
// Token: 0x040005A0 RID: 1440
|
||||
private global::System.Windows.Forms.Button button1;
|
||||
|
||||
// Token: 0x040005A1 RID: 1441
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x040005A2 RID: 1442
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x040005A3 RID: 1443
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x040005A4 RID: 1444
|
||||
private global::System.Windows.Forms.DateTimePicker dateTimePicker1;
|
||||
|
||||
// Token: 0x040005A5 RID: 1445
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x040005A6 RID: 1446
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x040005A7 RID: 1447
|
||||
private global::System.Windows.Forms.Button button2;
|
||||
|
||||
// Token: 0x040005A8 RID: 1448
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x040005A9 RID: 1449
|
||||
private global::System.Windows.Forms.DateTimePicker dateTimePicker2;
|
||||
|
||||
// Token: 0x040005AA RID: 1450
|
||||
private global::System.Windows.Forms.ComboBox cmb_linelist;
|
||||
|
||||
// Token: 0x040005AB RID: 1451
|
||||
private global::System.Windows.Forms.ComboBox cmb_agv;
|
||||
|
||||
// Token: 0x040005AC RID: 1452
|
||||
private global::System.Windows.Forms.ComboBox cmb_gz;
|
||||
|
||||
// Token: 0x040005AD RID: 1453
|
||||
private global::System.Windows.Forms.SplitContainer splitContainer2;
|
||||
|
||||
// Token: 0x040005AE RID: 1454
|
||||
private global::System.Windows.Forms.DataVisualization.Charting.Chart chart1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Forms.DataVisualization.Charting;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000020 RID: 32
|
||||
public partial class frmchangefind : Form
|
||||
{
|
||||
// Token: 0x060001CC RID: 460 RVA: 0x0004C7A0 File Offset: 0x0004A9A0
|
||||
public frmchangefind(string str)
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.Text = str;
|
||||
this.label4.Visible = false;
|
||||
this.cmb_gz.Visible = false;
|
||||
base.WindowState = FormWindowState.Maximized;
|
||||
this.dateTimePicker2.Value = DateTime.Now;
|
||||
this.dateTimePicker1.Value = DateTime.Now.AddHours(-1.0);
|
||||
}
|
||||
|
||||
// Token: 0x060001CD RID: 461 RVA: 0x0004C838 File Offset: 0x0004AA38
|
||||
private void frmfind_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.ds = this.db.connDt("select CONVERT( VARCHAR(10),id) +' . '+ line_name as info from Assembly_Line order by id");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
this.cmb_linelist.Items.Add("");
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_linelist.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
this.ds.Tables.Clear();
|
||||
}
|
||||
|
||||
// Token: 0x060001CE RID: 462 RVA: 0x0004C940 File Offset: 0x0004AB40
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT [Start_time] as 充电时间, '* '+convert (nvarchar(10),agvinfo.id) +' / '+convert (nvarchar(10),AgvInfo.Internal_ID) as '设备编号' , Assembly_Line.Line_name as 所属线体 ,[Location_ID] as 充电位置,time_long as 充电时长, [Unit] as 单位 FROM [Change_Log] , AgvInfo , Assembly_Line where [Change_Log].Agv_ID = AgvInfo.ID and AgvInfo.Assembly_Line = Assembly_Line.ID and [Start_time] between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag = this.cmb_linelist.Text != "";
|
||||
if (flag)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
bool flag2 = this.cmb_agv.Text != "";
|
||||
if (flag2)
|
||||
{
|
||||
text = text + " and AgvInfo.Internal_ID= " + this.cmb_agv.Text;
|
||||
}
|
||||
text += " order by Assembly_Line.ID , 充电时间";
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt(text);
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
this.dataGridView1.Columns[0].DefaultCellStyle.Format = "yyyy-MM-dd HH:mm:ss";
|
||||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT agvinfo.id as '设备编号', COUNT(*) as 充电次数 FROM [Change_Log] , AgvInfo , Assembly_Line where [Change_Log].Agv_ID = AgvInfo.ID and AgvInfo.Assembly_Line = Assembly_Line.ID and [Start_time] between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag4 = this.cmb_linelist.Text != "";
|
||||
if (flag4)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
bool flag5 = this.cmb_agv.Text != "";
|
||||
if (flag5)
|
||||
{
|
||||
text = text + " and AgvInfo.Internal_ID= " + this.cmb_agv.Text;
|
||||
}
|
||||
text += " group by agvinfo.id ";
|
||||
text += " order by agvinfo.id";
|
||||
DataSet dataSet = this.db.connDt(text);
|
||||
List<string> list = new List<string>();
|
||||
List<int> list2 = new List<int>();
|
||||
foreach (object obj in dataSet.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
list.Add(dataRow[0].ToString() + "号");
|
||||
list2.Add((int)Convert.ToInt16(dataRow[1].ToString()));
|
||||
}
|
||||
this.chart1.Series[0].Points.DataBindXY(list, new IEnumerable[]
|
||||
{
|
||||
list2
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001CF RID: 463 RVA: 0x0004CC68 File Offset: 0x0004AE68
|
||||
private void cmb_linelist_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.cmb_linelist.Text != "";
|
||||
if (flag)
|
||||
{
|
||||
this.ds = this.db.connDt("select Internal_ID from AgvInfo where [Assembly_Line] =" + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0] + " order by Internal_ID");
|
||||
bool flag2 = this.ds.Tables.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
this.cmb_agv.Items.Clear();
|
||||
this.cmb_agv.Items.Add("");
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_agv.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001D0 RID: 464 RVA: 0x0004CDB8 File Offset: 0x0004AFB8
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.dataGridView1.RowCount > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.SaveAs();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001D1 RID: 465 RVA: 0x0004CDE0 File Offset: 0x0004AFE0
|
||||
private void SaveAs()
|
||||
{
|
||||
SaveFileDialog saveFileDialog = new SaveFileDialog();
|
||||
saveFileDialog.Filter = "Execl files (*.xls)|*.xls";
|
||||
saveFileDialog.FilterIndex = 0;
|
||||
saveFileDialog.RestoreDirectory = true;
|
||||
saveFileDialog.CreatePrompt = true;
|
||||
saveFileDialog.Title = "Export Excel File To";
|
||||
saveFileDialog.ShowDialog();
|
||||
Stream stream;
|
||||
try
|
||||
{
|
||||
stream = saveFileDialog.OpenFile();
|
||||
}
|
||||
catch
|
||||
{
|
||||
return;
|
||||
}
|
||||
StreamWriter streamWriter = new StreamWriter(stream, Encoding.GetEncoding(0));
|
||||
string text = "";
|
||||
try
|
||||
{
|
||||
for (int i = 0; i < this.dataGridView1.ColumnCount; i++)
|
||||
{
|
||||
bool flag = i > 0;
|
||||
if (flag)
|
||||
{
|
||||
text += "\t";
|
||||
}
|
||||
text += this.dataGridView1.Columns[i].HeaderText;
|
||||
}
|
||||
streamWriter.WriteLine(text);
|
||||
for (int j = 0; j < this.dataGridView1.Rows.Count; j++)
|
||||
{
|
||||
string text2 = "";
|
||||
for (int k = 0; k < this.dataGridView1.Columns.Count; k++)
|
||||
{
|
||||
bool flag2 = k > 0;
|
||||
if (flag2)
|
||||
{
|
||||
text2 += "\t";
|
||||
}
|
||||
text2 += this.dataGridView1.Rows[j].Cells[k].Value.ToString();
|
||||
}
|
||||
streamWriter.WriteLine(text2);
|
||||
}
|
||||
streamWriter.Close();
|
||||
stream.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.ToString());
|
||||
}
|
||||
finally
|
||||
{
|
||||
streamWriter.Close();
|
||||
stream.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001D2 RID: 466 RVA: 0x0000A0B4 File Offset: 0x000082B4
|
||||
private void dataGridView1_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e)
|
||||
{
|
||||
e.Row.HeaderCell.Value = string.Format("{0}", e.Row.Index + 1);
|
||||
}
|
||||
|
||||
// Token: 0x0400059C RID: 1436
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x0400059D RID: 1437
|
||||
private DataSet ds = new DataSet();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Generated
+223
@@ -0,0 +1,223 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000014 RID: 20
|
||||
public partial class frmfind : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x06000118 RID: 280 RVA: 0x0002014C File Offset: 0x0001E34C
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x06000119 RID: 281 RVA: 0x00020184 File Offset: 0x0001E384
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.splitContainer1 = new global::System.Windows.Forms.SplitContainer();
|
||||
this.cmb_gz = new global::System.Windows.Forms.ComboBox();
|
||||
this.cmb_agv = new global::System.Windows.Forms.ComboBox();
|
||||
this.dateTimePicker2 = new global::System.Windows.Forms.DateTimePicker();
|
||||
this.cmb_linelist = new global::System.Windows.Forms.ComboBox();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.dateTimePicker1 = new global::System.Windows.Forms.DateTimePicker();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.button2 = new global::System.Windows.Forms.Button();
|
||||
this.button1 = new global::System.Windows.Forms.Button();
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.splitContainer1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = global::System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = global::System.Windows.Forms.Orientation.Horizontal;
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmb_gz);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmb_agv);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dateTimePicker2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmb_linelist);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label4);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label3);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dateTimePicker1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.panel1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.dataGridView1);
|
||||
this.splitContainer1.Size = new global::System.Drawing.Size(924, 460);
|
||||
this.splitContainer1.SplitterDistance = 79;
|
||||
this.splitContainer1.TabIndex = 0;
|
||||
this.cmb_gz.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_gz.FormattingEnabled = true;
|
||||
this.cmb_gz.Items.AddRange(new object[]
|
||||
{
|
||||
"",
|
||||
"防撞",
|
||||
"急停",
|
||||
"驱动",
|
||||
"牵引帮",
|
||||
"电量",
|
||||
"充电电极"
|
||||
});
|
||||
this.cmb_gz.Location = new global::System.Drawing.Point(504, 48);
|
||||
this.cmb_gz.Name = "cmb_gz";
|
||||
this.cmb_gz.Size = new global::System.Drawing.Size(145, 20);
|
||||
this.cmb_gz.TabIndex = 17;
|
||||
this.cmb_agv.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_agv.FormattingEnabled = true;
|
||||
this.cmb_agv.Location = new global::System.Drawing.Point(504, 19);
|
||||
this.cmb_agv.Name = "cmb_agv";
|
||||
this.cmb_agv.Size = new global::System.Drawing.Size(82, 20);
|
||||
this.cmb_agv.TabIndex = 16;
|
||||
this.dateTimePicker2.CustomFormat = "yyyy-MM-dd HH:mm:ss";
|
||||
this.dateTimePicker2.Format = global::System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker2.Location = new global::System.Drawing.Point(242, 16);
|
||||
this.dateTimePicker2.Name = "dateTimePicker2";
|
||||
this.dateTimePicker2.Size = new global::System.Drawing.Size(157, 21);
|
||||
this.dateTimePicker2.TabIndex = 15;
|
||||
this.cmb_linelist.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_linelist.FormattingEnabled = true;
|
||||
this.cmb_linelist.Location = new global::System.Drawing.Point(79, 48);
|
||||
this.cmb_linelist.Name = "cmb_linelist";
|
||||
this.cmb_linelist.Size = new global::System.Drawing.Size(320, 20);
|
||||
this.cmb_linelist.TabIndex = 14;
|
||||
this.cmb_linelist.SelectedIndexChanged += new global::System.EventHandler(this.cmb_linelist_SelectedIndexChanged);
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(433, 51);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label4.TabIndex = 8;
|
||||
this.label4.Text = "故障类型:";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(439, 22);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(59, 12);
|
||||
this.label3.TabIndex = 4;
|
||||
this.label3.Text = "AGV编号:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(8, 51);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "线体名称:";
|
||||
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss";
|
||||
this.dateTimePicker1.Format = global::System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker1.Location = new global::System.Drawing.Point(79, 16);
|
||||
this.dateTimePicker1.Name = "dateTimePicker1";
|
||||
this.dateTimePicker1.Size = new global::System.Drawing.Size(157, 21);
|
||||
this.dateTimePicker1.TabIndex = 1;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(32, 22);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "时间:";
|
||||
this.panel1.Controls.Add(this.button2);
|
||||
this.panel1.Controls.Add(this.button1);
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.panel1.Location = new global::System.Drawing.Point(598, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(326, 79);
|
||||
this.panel1.TabIndex = 13;
|
||||
this.button2.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.button2.Location = new global::System.Drawing.Point(67, 0);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new global::System.Drawing.Size(132, 79);
|
||||
this.button2.TabIndex = 12;
|
||||
this.button2.Text = "查 询";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new global::System.EventHandler(this.button2_Click);
|
||||
this.button1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.button1.Location = new global::System.Drawing.Point(199, 0);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new global::System.Drawing.Size(127, 79);
|
||||
this.button1.TabIndex = 10;
|
||||
this.button1.Text = "导 出";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new global::System.EventHandler(this.button1_Click);
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = global::System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersWidth = 70;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(924, 377);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
this.dataGridView1.RowStateChanged += new global::System.Windows.Forms.DataGridViewRowStateChangedEventHandler(this.dataGridView1_RowStateChanged);
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(924, 460);
|
||||
base.Controls.Add(this.splitContainer1);
|
||||
base.Name = "frmfind";
|
||||
this.Text = "frmfind";
|
||||
base.Load += new global::System.EventHandler(this.frmfind_Load);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.PerformLayout();
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x0400020C RID: 524
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x0400020D RID: 525
|
||||
private global::System.Windows.Forms.SplitContainer splitContainer1;
|
||||
|
||||
// Token: 0x0400020E RID: 526
|
||||
private global::System.Windows.Forms.Button button1;
|
||||
|
||||
// Token: 0x0400020F RID: 527
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x04000210 RID: 528
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x04000211 RID: 529
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x04000212 RID: 530
|
||||
private global::System.Windows.Forms.DateTimePicker dateTimePicker1;
|
||||
|
||||
// Token: 0x04000213 RID: 531
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x04000214 RID: 532
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x04000215 RID: 533
|
||||
private global::System.Windows.Forms.Button button2;
|
||||
|
||||
// Token: 0x04000216 RID: 534
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x04000217 RID: 535
|
||||
private global::System.Windows.Forms.DateTimePicker dateTimePicker2;
|
||||
|
||||
// Token: 0x04000218 RID: 536
|
||||
private global::System.Windows.Forms.ComboBox cmb_linelist;
|
||||
|
||||
// Token: 0x04000219 RID: 537
|
||||
private global::System.Windows.Forms.ComboBox cmb_agv;
|
||||
|
||||
// Token: 0x0400021A RID: 538
|
||||
private global::System.Windows.Forms.ComboBox cmb_gz;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,329 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000014 RID: 20
|
||||
public partial class frmfind : Form
|
||||
{
|
||||
// Token: 0x06000111 RID: 273 RVA: 0x0001F618 File Offset: 0x0001D818
|
||||
public frmfind(string str)
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.Text = str;
|
||||
bool flag = str != "异常报警日志";
|
||||
if (flag)
|
||||
{
|
||||
this.label4.Visible = false;
|
||||
this.cmb_gz.Visible = false;
|
||||
}
|
||||
base.WindowState = FormWindowState.Maximized;
|
||||
this.dateTimePicker2.Value = DateTime.Now;
|
||||
this.dateTimePicker1.Value = DateTime.Now.AddHours(-1.0);
|
||||
}
|
||||
|
||||
// Token: 0x06000112 RID: 274 RVA: 0x0001F6C0 File Offset: 0x0001D8C0
|
||||
private void frmfind_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.ds = this.db.connDt("select CONVERT( VARCHAR(10),id) +' . '+ line_name as info from Assembly_Line order by id");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
this.cmb_linelist.Items.Add("");
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_linelist.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
this.ds.Tables.Clear();
|
||||
}
|
||||
|
||||
// Token: 0x06000113 RID: 275 RVA: 0x0001F7C8 File Offset: 0x0001D9C8
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string text = "";
|
||||
bool flag = this.Text == "异常报警日志";
|
||||
if (flag)
|
||||
{
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT Dt as '发生时间',Assembly_Line.line_name as '所属线体' ,'* '+convert (nvarchar(10),agvinfo.id) +' / '+convert (nvarchar(10),AgvInfo.Internal_ID) as '设备编号' ,Warn_Log.[Type] as '故障类型' ,[Reset] as '故障恢复时间' FROM [Warn_Log],AgvInfo,Assembly_Line where Warn_Log.Agv_id = AgvInfo.ID and AgvInfo.Assembly_Line = Assembly_Line.id and Dt between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag2 = this.cmb_linelist.Text != "";
|
||||
if (flag2)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
bool flag3 = this.cmb_agv.Text != "";
|
||||
if (flag3)
|
||||
{
|
||||
text = text + " and AgvInfo.Internal_ID= " + this.cmb_agv.Text;
|
||||
}
|
||||
bool flag4 = this.cmb_gz.Text != "";
|
||||
if (flag4)
|
||||
{
|
||||
text = text + " and warn_log.type like '%" + this.cmb_gz.Text + "%'";
|
||||
}
|
||||
text += " order by Assembly_Line.ID , dt";
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag5 = this.Text == "地标读取日志";
|
||||
if (flag5)
|
||||
{
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT Dt as '读取时间',Assembly_Line.line_name as '所属线体' ,'* '+convert (nvarchar(10),agvinfo.id) +' / '+convert (nvarchar(10),AgvInfo.Internal_ID) as '设备编号' ,Location_Log.Loc_ID as '位置编号' , Location_Log.Value as 'plc发送值',[Loc_ID2] as 路径编号 ,[Value2] as plc路径值 FROM [Location_Log],AgvInfo,Assembly_Line where Location_Log.Agv_id = AgvInfo.ID and AgvInfo.Assembly_Line = Assembly_Line.id and Dt between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag6 = this.cmb_linelist.Text != "";
|
||||
if (flag6)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
bool flag7 = this.cmb_agv.Text != "";
|
||||
if (flag7)
|
||||
{
|
||||
text = text + " and AgvInfo.Internal_ID= " + this.cmb_agv.Text;
|
||||
}
|
||||
text += " order by Assembly_Line.ID , dt";
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag8 = this.Text == "AGV放行日志";
|
||||
if (flag8)
|
||||
{
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT Dt as '发生时间',Assembly_Line.line_name as '所属线体' ,'* '+convert (nvarchar(10),agvinfo.id) +' / '+convert (nvarchar(10),AgvInfo.Internal_ID) as '设备编号' ,go_Log.[Type] as '类型' ,go_log.Location as '位置编号' , go_log.plc_Value as 'plc发送值' FROM [go_Log] left join AgvInfo on go_Log.Agv_id = AgvInfo.ID and Dt between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag9 = this.cmb_agv.Text != "";
|
||||
if (flag9)
|
||||
{
|
||||
text = text + " and AgvInfo.Internal_ID= " + this.cmb_agv.Text;
|
||||
}
|
||||
text += " right join Assembly_Line on AgvInfo.Assembly_Line = Assembly_Line.id ";
|
||||
bool flag10 = this.cmb_linelist.Text != "";
|
||||
if (flag10)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
text += " left join landmarkinfo on landmarkinfo.loc_id = go_log.location";
|
||||
text += " order by Assembly_Line.ID , dt";
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag11 = this.Text == "网络异常日志";
|
||||
if (flag11)
|
||||
{
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT Dt as '发生时间',Assembly_Line.line_name as '所属线体' ,'* '+convert (nvarchar(10),agvinfo.id) +' / '+convert (nvarchar(10),AgvInfo.Internal_ID) as '设备编号' ,net_Log.[Type] as '故障类型' FROM [net_Log],AgvInfo,Assembly_Line where net_Log.Agv_id = AgvInfo.ID and AgvInfo.Assembly_Line = Assembly_Line.id and Dt between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag12 = this.cmb_linelist.Text != "";
|
||||
if (flag12)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
bool flag13 = this.cmb_agv.Text != "";
|
||||
if (flag13)
|
||||
{
|
||||
text = text + " and AgvInfo.Internal_ID= " + this.cmb_agv.Text;
|
||||
}
|
||||
text += " order by Assembly_Line.ID , dt";
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag14 = this.Text == "充电记录";
|
||||
if (flag14)
|
||||
{
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT [Start_time] as 充电时间, '* '+convert (nvarchar(10),agvinfo.id) +' / '+convert (nvarchar(10),AgvInfo.Internal_ID) as '设备编号' , Assembly_Line.Line_name as 所属线体 ,[Location_ID] as 充电位置,[Unit] as 充电时长 FROM [Change_Log] , AgvInfo , Assembly_Line where [Change_Log].Agv_ID = AgvInfo.ID and AgvInfo.Assembly_Line = Assembly_Line.ID and [Start_time] between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag15 = this.cmb_linelist.Text != "";
|
||||
if (flag15)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
bool flag16 = this.cmb_agv.Text != "";
|
||||
if (flag16)
|
||||
{
|
||||
text = text + " and AgvInfo.Internal_ID= " + this.cmb_agv.Text;
|
||||
}
|
||||
text += " order by Assembly_Line.ID , 充电时间";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt(text);
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
this.dataGridView1.Columns[0].DefaultCellStyle.Format = "yyyy-MM-dd HH:mm:ss";
|
||||
this.dataGridView1.Columns[0].Width = 200;
|
||||
this.dataGridView1.Columns[3].Width = 200;
|
||||
bool flag17 = this.Text == "异常报警日志";
|
||||
if (flag17)
|
||||
{
|
||||
this.dataGridView1.Columns[4].DefaultCellStyle.Format = "yyyy-MM-dd HH:mm:ss";
|
||||
this.dataGridView1.Columns[4].Width = 200;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000114 RID: 276 RVA: 0x0001FDCC File Offset: 0x0001DFCC
|
||||
private void cmb_linelist_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.cmb_linelist.Text != "";
|
||||
if (flag)
|
||||
{
|
||||
this.ds = this.db.connDt("select Internal_ID from AgvInfo where [Assembly_Line] =" + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0] + " order by Internal_ID");
|
||||
bool flag2 = this.ds.Tables.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
this.cmb_agv.Items.Clear();
|
||||
this.cmb_agv.Items.Add("");
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_agv.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000115 RID: 277 RVA: 0x0001FF1C File Offset: 0x0001E11C
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.dataGridView1.RowCount > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.SaveAs();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000116 RID: 278 RVA: 0x0001FF44 File Offset: 0x0001E144
|
||||
private void SaveAs()
|
||||
{
|
||||
SaveFileDialog saveFileDialog = new SaveFileDialog();
|
||||
saveFileDialog.Filter = "Execl files (*.xls)|*.xls";
|
||||
saveFileDialog.FilterIndex = 0;
|
||||
saveFileDialog.RestoreDirectory = true;
|
||||
saveFileDialog.CreatePrompt = true;
|
||||
saveFileDialog.Title = "Export Excel File To";
|
||||
saveFileDialog.ShowDialog();
|
||||
Stream stream;
|
||||
try
|
||||
{
|
||||
stream = saveFileDialog.OpenFile();
|
||||
}
|
||||
catch
|
||||
{
|
||||
return;
|
||||
}
|
||||
StreamWriter streamWriter = new StreamWriter(stream, Encoding.GetEncoding(0));
|
||||
string text = "";
|
||||
try
|
||||
{
|
||||
for (int i = 0; i < this.dataGridView1.ColumnCount; i++)
|
||||
{
|
||||
bool flag = i > 0;
|
||||
if (flag)
|
||||
{
|
||||
text += "\t";
|
||||
}
|
||||
text += this.dataGridView1.Columns[i].HeaderText;
|
||||
}
|
||||
streamWriter.WriteLine(text);
|
||||
for (int j = 0; j < this.dataGridView1.Rows.Count; j++)
|
||||
{
|
||||
string text2 = "";
|
||||
for (int k = 0; k < this.dataGridView1.Columns.Count; k++)
|
||||
{
|
||||
bool flag2 = k > 0;
|
||||
if (flag2)
|
||||
{
|
||||
text2 += "\t";
|
||||
}
|
||||
text2 += this.dataGridView1.Rows[j].Cells[k].Value.ToString();
|
||||
}
|
||||
streamWriter.WriteLine(text2);
|
||||
}
|
||||
streamWriter.Close();
|
||||
stream.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.ToString());
|
||||
}
|
||||
finally
|
||||
{
|
||||
streamWriter.Close();
|
||||
stream.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000117 RID: 279 RVA: 0x0000A0B4 File Offset: 0x000082B4
|
||||
private void dataGridView1_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e)
|
||||
{
|
||||
e.Row.HeaderCell.Value = string.Format("{0}", e.Row.Index + 1);
|
||||
}
|
||||
|
||||
// Token: 0x0400020A RID: 522
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x0400020B RID: 523
|
||||
private DataSet ds = new DataSet();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Generated
+242
@@ -0,0 +1,242 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000021 RID: 33
|
||||
public partial class frmnetfind : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x060001DC RID: 476 RVA: 0x0004E508 File Offset: 0x0004C708
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x060001DD RID: 477 RVA: 0x0004E540 File Offset: 0x0004C740
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea = new global::System.Windows.Forms.DataVisualization.Charting.ChartArea();
|
||||
global::System.Windows.Forms.DataVisualization.Charting.Legend legend = new global::System.Windows.Forms.DataVisualization.Charting.Legend();
|
||||
global::System.Windows.Forms.DataVisualization.Charting.Series series = new global::System.Windows.Forms.DataVisualization.Charting.Series();
|
||||
this.splitContainer1 = new global::System.Windows.Forms.SplitContainer();
|
||||
this.cmb_agv = new global::System.Windows.Forms.ComboBox();
|
||||
this.dateTimePicker2 = new global::System.Windows.Forms.DateTimePicker();
|
||||
this.cmb_linelist = new global::System.Windows.Forms.ComboBox();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.dateTimePicker1 = new global::System.Windows.Forms.DateTimePicker();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.button2 = new global::System.Windows.Forms.Button();
|
||||
this.button1 = new global::System.Windows.Forms.Button();
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
this.splitContainer2 = new global::System.Windows.Forms.SplitContainer();
|
||||
this.chart1 = new global::System.Windows.Forms.DataVisualization.Charting.Chart();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer2).BeginInit();
|
||||
this.splitContainer2.Panel1.SuspendLayout();
|
||||
this.splitContainer2.Panel2.SuspendLayout();
|
||||
this.splitContainer2.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.chart1).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.splitContainer1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = global::System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = global::System.Windows.Forms.Orientation.Horizontal;
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmb_agv);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dateTimePicker2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmb_linelist);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label3);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dateTimePicker1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.panel1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
|
||||
this.splitContainer1.Size = new global::System.Drawing.Size(924, 460);
|
||||
this.splitContainer1.SplitterDistance = 79;
|
||||
this.splitContainer1.TabIndex = 0;
|
||||
this.cmb_agv.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_agv.FormattingEnabled = true;
|
||||
this.cmb_agv.Location = new global::System.Drawing.Point(504, 19);
|
||||
this.cmb_agv.Name = "cmb_agv";
|
||||
this.cmb_agv.Size = new global::System.Drawing.Size(82, 20);
|
||||
this.cmb_agv.TabIndex = 16;
|
||||
this.dateTimePicker2.CustomFormat = "yyyy-MM-dd HH:MM:ss";
|
||||
this.dateTimePicker2.Format = global::System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker2.Location = new global::System.Drawing.Point(242, 16);
|
||||
this.dateTimePicker2.Name = "dateTimePicker2";
|
||||
this.dateTimePicker2.Size = new global::System.Drawing.Size(157, 21);
|
||||
this.dateTimePicker2.TabIndex = 15;
|
||||
this.cmb_linelist.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_linelist.FormattingEnabled = true;
|
||||
this.cmb_linelist.Location = new global::System.Drawing.Point(79, 48);
|
||||
this.cmb_linelist.Name = "cmb_linelist";
|
||||
this.cmb_linelist.Size = new global::System.Drawing.Size(320, 20);
|
||||
this.cmb_linelist.TabIndex = 14;
|
||||
this.cmb_linelist.SelectedIndexChanged += new global::System.EventHandler(this.cmb_linelist_SelectedIndexChanged);
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(439, 22);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(59, 12);
|
||||
this.label3.TabIndex = 4;
|
||||
this.label3.Text = "AGV编号:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(8, 51);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "线体名称:";
|
||||
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:MM:ss";
|
||||
this.dateTimePicker1.Format = global::System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker1.Location = new global::System.Drawing.Point(79, 16);
|
||||
this.dateTimePicker1.Name = "dateTimePicker1";
|
||||
this.dateTimePicker1.Size = new global::System.Drawing.Size(157, 21);
|
||||
this.dateTimePicker1.TabIndex = 1;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(32, 22);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "时间:";
|
||||
this.panel1.Controls.Add(this.button2);
|
||||
this.panel1.Controls.Add(this.button1);
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.panel1.Location = new global::System.Drawing.Point(598, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(326, 79);
|
||||
this.panel1.TabIndex = 13;
|
||||
this.button2.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.button2.Location = new global::System.Drawing.Point(67, 0);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new global::System.Drawing.Size(132, 79);
|
||||
this.button2.TabIndex = 12;
|
||||
this.button2.Text = "查 询";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new global::System.EventHandler(this.button2_Click);
|
||||
this.button1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.button1.Location = new global::System.Drawing.Point(199, 0);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new global::System.Drawing.Size(127, 79);
|
||||
this.button1.TabIndex = 10;
|
||||
this.button1.Text = "导 出";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new global::System.EventHandler(this.button1_Click);
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = global::System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersWidth = 70;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(592, 377);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
this.dataGridView1.RowStateChanged += new global::System.Windows.Forms.DataGridViewRowStateChangedEventHandler(this.dataGridView1_RowStateChanged);
|
||||
this.splitContainer2.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer2.FixedPanel = global::System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer2.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.splitContainer2.Name = "splitContainer2";
|
||||
this.splitContainer2.Panel1.Controls.Add(this.dataGridView1);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.chart1);
|
||||
this.splitContainer2.Size = new global::System.Drawing.Size(924, 377);
|
||||
this.splitContainer2.SplitterDistance = 592;
|
||||
this.splitContainer2.TabIndex = 1;
|
||||
this.chart1.BorderlineColor = global::System.Drawing.Color.DimGray;
|
||||
this.chart1.BorderlineDashStyle = global::System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Dash;
|
||||
chartArea.Name = "ChartArea1";
|
||||
this.chart1.ChartAreas.Add(chartArea);
|
||||
this.chart1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
legend.Enabled = false;
|
||||
legend.Name = "Legend1";
|
||||
this.chart1.Legends.Add(legend);
|
||||
this.chart1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.chart1.Name = "chart1";
|
||||
series.ChartArea = "ChartArea1";
|
||||
series.IsValueShownAsLabel = true;
|
||||
series.Label = "#VALX: #VAL";
|
||||
series.Legend = "Legend1";
|
||||
series.Name = "Series1";
|
||||
series.XValueType = global::System.Windows.Forms.DataVisualization.Charting.ChartValueType.String;
|
||||
series.YValueType = global::System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
|
||||
this.chart1.Series.Add(series);
|
||||
this.chart1.Size = new global::System.Drawing.Size(328, 377);
|
||||
this.chart1.TabIndex = 2;
|
||||
this.chart1.Text = "chart2";
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(924, 460);
|
||||
base.Controls.Add(this.splitContainer1);
|
||||
base.Name = "frmnetfind";
|
||||
this.Text = "frmfind";
|
||||
base.Load += new global::System.EventHandler(this.frmfind_Load);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.PerformLayout();
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
this.splitContainer2.Panel1.ResumeLayout(false);
|
||||
this.splitContainer2.Panel2.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer2).EndInit();
|
||||
this.splitContainer2.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.chart1).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x040005B1 RID: 1457
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x040005B2 RID: 1458
|
||||
private global::System.Windows.Forms.SplitContainer splitContainer1;
|
||||
|
||||
// Token: 0x040005B3 RID: 1459
|
||||
private global::System.Windows.Forms.Button button1;
|
||||
|
||||
// Token: 0x040005B4 RID: 1460
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x040005B5 RID: 1461
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x040005B6 RID: 1462
|
||||
private global::System.Windows.Forms.DateTimePicker dateTimePicker1;
|
||||
|
||||
// Token: 0x040005B7 RID: 1463
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x040005B8 RID: 1464
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x040005B9 RID: 1465
|
||||
private global::System.Windows.Forms.Button button2;
|
||||
|
||||
// Token: 0x040005BA RID: 1466
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x040005BB RID: 1467
|
||||
private global::System.Windows.Forms.DateTimePicker dateTimePicker2;
|
||||
|
||||
// Token: 0x040005BC RID: 1468
|
||||
private global::System.Windows.Forms.ComboBox cmb_linelist;
|
||||
|
||||
// Token: 0x040005BD RID: 1469
|
||||
private global::System.Windows.Forms.ComboBox cmb_agv;
|
||||
|
||||
// Token: 0x040005BE RID: 1470
|
||||
private global::System.Windows.Forms.SplitContainer splitContainer2;
|
||||
|
||||
// Token: 0x040005BF RID: 1471
|
||||
private global::System.Windows.Forms.DataVisualization.Charting.Chart chart1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Forms.DataVisualization.Charting;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000021 RID: 33
|
||||
public partial class frmnetfind : Form
|
||||
{
|
||||
// Token: 0x060001D5 RID: 469 RVA: 0x0004DCA0 File Offset: 0x0004BEA0
|
||||
public frmnetfind(string str)
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.Text = str;
|
||||
base.WindowState = FormWindowState.Maximized;
|
||||
this.dateTimePicker2.Value = DateTime.Now;
|
||||
this.dateTimePicker1.Value = DateTime.Now.AddHours(-1.0);
|
||||
}
|
||||
|
||||
// Token: 0x060001D6 RID: 470 RVA: 0x0004DD1C File Offset: 0x0004BF1C
|
||||
private void frmfind_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.ds = this.db.connDt("select CONVERT( VARCHAR(10),id) +' . '+ line_name as info from Assembly_Line order by id");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
this.cmb_linelist.Items.Add("");
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_linelist.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
this.ds.Tables.Clear();
|
||||
}
|
||||
|
||||
// Token: 0x060001D7 RID: 471 RVA: 0x0004DE24 File Offset: 0x0004C024
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT Dt as '发生时间',Assembly_Line.line_name as '所属线体' ,'* '+convert (nvarchar(10),agvinfo.id) +' / '+convert (nvarchar(10),AgvInfo.Internal_ID) as '设备编号' ,net_Log.[Type] as '故障类型' FROM [net_Log],AgvInfo,Assembly_Line where net_Log.Agv_id = AgvInfo.ID and AgvInfo.Assembly_Line = Assembly_Line.id and Dt between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag = this.cmb_linelist.Text != "";
|
||||
if (flag)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
bool flag2 = this.cmb_agv.Text != "";
|
||||
if (flag2)
|
||||
{
|
||||
text = text + " and AgvInfo.Internal_ID= " + this.cmb_agv.Text;
|
||||
}
|
||||
text += " order by Assembly_Line.ID , dt";
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt(text);
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
this.dataGridView1.Columns[0].DefaultCellStyle.Format = "yyyy-MM-dd HH:mm:ss";
|
||||
this.dataGridView1.Columns[0].Width = 200;
|
||||
this.dataGridView1.Columns[3].Width = 200;
|
||||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT agvinfo.id ,count(*) as 次数 FROM [net_Log],AgvInfo,Assembly_Line where net_Log.Agv_id = AgvInfo.ID and AgvInfo.Assembly_Line = Assembly_Line.id and Dt between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag4 = this.cmb_linelist.Text != "";
|
||||
if (flag4)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
text += "group by agvinfo.id ";
|
||||
DataSet dataSet = this.db.connDt(text);
|
||||
List<string> list = new List<string>();
|
||||
List<int> list2 = new List<int>();
|
||||
foreach (object obj in dataSet.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
list.Add("agv-" + dataRow[0].ToString());
|
||||
list2.Add((int)Convert.ToInt16(dataRow[1].ToString()));
|
||||
}
|
||||
this.chart1.Series[0]["PieLabelStyle"] = "Outside";
|
||||
this.chart1.Series[0]["PieLineColor"] = "Black";
|
||||
this.chart1.Series[0].Points.DataBindXY(list, new IEnumerable[]
|
||||
{
|
||||
list2
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001D8 RID: 472 RVA: 0x0004E188 File Offset: 0x0004C388
|
||||
private void cmb_linelist_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.cmb_linelist.Text != "";
|
||||
if (flag)
|
||||
{
|
||||
this.ds = this.db.connDt("select Internal_ID from AgvInfo where [Assembly_Line] =" + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0] + " order by Internal_ID");
|
||||
bool flag2 = this.ds.Tables.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
this.cmb_agv.Items.Clear();
|
||||
this.cmb_agv.Items.Add("");
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_agv.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001D9 RID: 473 RVA: 0x0004E2D8 File Offset: 0x0004C4D8
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.dataGridView1.RowCount > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.SaveAs();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001DA RID: 474 RVA: 0x0004E300 File Offset: 0x0004C500
|
||||
private void SaveAs()
|
||||
{
|
||||
SaveFileDialog saveFileDialog = new SaveFileDialog();
|
||||
saveFileDialog.Filter = "Execl files (*.xls)|*.xls";
|
||||
saveFileDialog.FilterIndex = 0;
|
||||
saveFileDialog.RestoreDirectory = true;
|
||||
saveFileDialog.CreatePrompt = true;
|
||||
saveFileDialog.Title = "Export Excel File To";
|
||||
saveFileDialog.ShowDialog();
|
||||
Stream stream;
|
||||
try
|
||||
{
|
||||
stream = saveFileDialog.OpenFile();
|
||||
}
|
||||
catch
|
||||
{
|
||||
return;
|
||||
}
|
||||
StreamWriter streamWriter = new StreamWriter(stream, Encoding.GetEncoding(0));
|
||||
string text = "";
|
||||
try
|
||||
{
|
||||
for (int i = 0; i < this.dataGridView1.ColumnCount; i++)
|
||||
{
|
||||
bool flag = i > 0;
|
||||
if (flag)
|
||||
{
|
||||
text += "\t";
|
||||
}
|
||||
text += this.dataGridView1.Columns[i].HeaderText;
|
||||
}
|
||||
streamWriter.WriteLine(text);
|
||||
for (int j = 0; j < this.dataGridView1.Rows.Count; j++)
|
||||
{
|
||||
string text2 = "";
|
||||
for (int k = 0; k < this.dataGridView1.Columns.Count; k++)
|
||||
{
|
||||
bool flag2 = k > 0;
|
||||
if (flag2)
|
||||
{
|
||||
text2 += "\t";
|
||||
}
|
||||
text2 += this.dataGridView1.Rows[j].Cells[k].Value.ToString();
|
||||
}
|
||||
streamWriter.WriteLine(text2);
|
||||
}
|
||||
streamWriter.Close();
|
||||
stream.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.ToString());
|
||||
}
|
||||
finally
|
||||
{
|
||||
streamWriter.Close();
|
||||
stream.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001DB RID: 475 RVA: 0x0000A0B4 File Offset: 0x000082B4
|
||||
private void dataGridView1_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e)
|
||||
{
|
||||
e.Row.HeaderCell.Value = string.Format("{0}", e.Row.Index + 1);
|
||||
}
|
||||
|
||||
// Token: 0x040005AF RID: 1455
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x040005B0 RID: 1456
|
||||
private DataSet ds = new DataSet();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
+339
@@ -0,0 +1,339 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200001F RID: 31
|
||||
public partial class frmwarnfind : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x060001CA RID: 458 RVA: 0x0004B760 File Offset: 0x00049960
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x060001CB RID: 459 RVA: 0x0004B798 File Offset: 0x00049998
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea = new global::System.Windows.Forms.DataVisualization.Charting.ChartArea();
|
||||
global::System.Windows.Forms.DataVisualization.Charting.Legend legend = new global::System.Windows.Forms.DataVisualization.Charting.Legend();
|
||||
global::System.Windows.Forms.DataVisualization.Charting.Series series = new global::System.Windows.Forms.DataVisualization.Charting.Series();
|
||||
global::System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new global::System.Windows.Forms.DataVisualization.Charting.ChartArea();
|
||||
global::System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new global::System.Windows.Forms.DataVisualization.Charting.Legend();
|
||||
global::System.Windows.Forms.DataVisualization.Charting.Series series2 = new global::System.Windows.Forms.DataVisualization.Charting.Series();
|
||||
this.splitContainer1 = new global::System.Windows.Forms.SplitContainer();
|
||||
this.cmb_gz = new global::System.Windows.Forms.ComboBox();
|
||||
this.cmb_agv = new global::System.Windows.Forms.ComboBox();
|
||||
this.dateTimePicker2 = new global::System.Windows.Forms.DateTimePicker();
|
||||
this.cmb_linelist = new global::System.Windows.Forms.ComboBox();
|
||||
this.label4 = new global::System.Windows.Forms.Label();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.dateTimePicker1 = new global::System.Windows.Forms.DateTimePicker();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.button2 = new global::System.Windows.Forms.Button();
|
||||
this.button1 = new global::System.Windows.Forms.Button();
|
||||
this.dataGridView1 = new global::System.Windows.Forms.DataGridView();
|
||||
this.chart1 = new global::System.Windows.Forms.DataVisualization.Charting.Chart();
|
||||
this.splitContainer2 = new global::System.Windows.Forms.SplitContainer();
|
||||
this.tabControl1 = new global::System.Windows.Forms.TabControl();
|
||||
this.tabPage1 = new global::System.Windows.Forms.TabPage();
|
||||
this.tabPage2 = new global::System.Windows.Forms.TabPage();
|
||||
this.chart2 = new global::System.Windows.Forms.DataVisualization.Charting.Chart();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.chart1).BeginInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer2).BeginInit();
|
||||
this.splitContainer2.Panel1.SuspendLayout();
|
||||
this.splitContainer2.Panel2.SuspendLayout();
|
||||
this.splitContainer2.SuspendLayout();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.chart2).BeginInit();
|
||||
base.SuspendLayout();
|
||||
this.splitContainer1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = global::System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = global::System.Windows.Forms.Orientation.Horizontal;
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmb_gz);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmb_agv);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dateTimePicker2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmb_linelist);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label4);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label3);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dateTimePicker1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.panel1);
|
||||
this.splitContainer1.Panel1.Paint += new global::System.Windows.Forms.PaintEventHandler(this.splitContainer1_Panel1_Paint);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
|
||||
this.splitContainer1.Size = new global::System.Drawing.Size(1020, 460);
|
||||
this.splitContainer1.SplitterDistance = 78;
|
||||
this.splitContainer1.TabIndex = 0;
|
||||
this.cmb_gz.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_gz.FormattingEnabled = true;
|
||||
this.cmb_gz.Items.AddRange(new object[]
|
||||
{
|
||||
"null"
|
||||
});
|
||||
this.cmb_gz.Location = new global::System.Drawing.Point(502, 47);
|
||||
this.cmb_gz.Name = "cmb_gz";
|
||||
this.cmb_gz.Size = new global::System.Drawing.Size(145, 20);
|
||||
this.cmb_gz.TabIndex = 17;
|
||||
this.cmb_agv.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_agv.FormattingEnabled = true;
|
||||
this.cmb_agv.Location = new global::System.Drawing.Point(502, 17);
|
||||
this.cmb_agv.Name = "cmb_agv";
|
||||
this.cmb_agv.Size = new global::System.Drawing.Size(82, 20);
|
||||
this.cmb_agv.TabIndex = 16;
|
||||
this.dateTimePicker2.CustomFormat = "yyyy-MM-dd HH:MM:ss";
|
||||
this.dateTimePicker2.Format = global::System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker2.Location = new global::System.Drawing.Point(240, 14);
|
||||
this.dateTimePicker2.Name = "dateTimePicker2";
|
||||
this.dateTimePicker2.Size = new global::System.Drawing.Size(157, 21);
|
||||
this.dateTimePicker2.TabIndex = 15;
|
||||
this.cmb_linelist.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_linelist.FormattingEnabled = true;
|
||||
this.cmb_linelist.Location = new global::System.Drawing.Point(77, 47);
|
||||
this.cmb_linelist.Name = "cmb_linelist";
|
||||
this.cmb_linelist.Size = new global::System.Drawing.Size(320, 20);
|
||||
this.cmb_linelist.TabIndex = 14;
|
||||
this.cmb_linelist.SelectedIndexChanged += new global::System.EventHandler(this.cmb_linelist_SelectedIndexChanged);
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new global::System.Drawing.Point(431, 50);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label4.TabIndex = 8;
|
||||
this.label4.Text = "故障类型:";
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new global::System.Drawing.Point(437, 20);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(59, 12);
|
||||
this.label3.TabIndex = 4;
|
||||
this.label3.Text = "AGV编号:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new global::System.Drawing.Point(6, 50);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "线体名称:";
|
||||
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:MM:ss";
|
||||
this.dateTimePicker1.Format = global::System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker1.Location = new global::System.Drawing.Point(77, 14);
|
||||
this.dateTimePicker1.Name = "dateTimePicker1";
|
||||
this.dateTimePicker1.Size = new global::System.Drawing.Size(157, 21);
|
||||
this.dateTimePicker1.TabIndex = 1;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new global::System.Drawing.Point(30, 20);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(41, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "时间:";
|
||||
this.panel1.Controls.Add(this.button2);
|
||||
this.panel1.Controls.Add(this.button1);
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.panel1.Location = new global::System.Drawing.Point(694, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(326, 78);
|
||||
this.panel1.TabIndex = 13;
|
||||
this.button2.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.button2.Location = new global::System.Drawing.Point(67, 0);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new global::System.Drawing.Size(132, 78);
|
||||
this.button2.TabIndex = 12;
|
||||
this.button2.Text = "查 询";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new global::System.EventHandler(this.button2_Click);
|
||||
this.button1.Dock = global::System.Windows.Forms.DockStyle.Right;
|
||||
this.button1.Location = new global::System.Drawing.Point(199, 0);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new global::System.Drawing.Size(127, 78);
|
||||
this.button1.TabIndex = 10;
|
||||
this.button1.Text = "导 出";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new global::System.EventHandler(this.button1_Click);
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.BackgroundColor = global::System.Drawing.Color.White;
|
||||
this.dataGridView1.ColumnHeadersHeight = 30;
|
||||
this.dataGridView1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersWidth = 70;
|
||||
this.dataGridView1.RowTemplate.Height = 30;
|
||||
this.dataGridView1.SelectionMode = global::System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new global::System.Drawing.Size(687, 376);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
this.dataGridView1.RowStateChanged += new global::System.Windows.Forms.DataGridViewRowStateChangedEventHandler(this.dataGridView1_RowStateChanged);
|
||||
chartArea.Name = "ChartArea1";
|
||||
this.chart1.ChartAreas.Add(chartArea);
|
||||
this.chart1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
legend.Enabled = false;
|
||||
legend.Name = "Legend1";
|
||||
this.chart1.Legends.Add(legend);
|
||||
this.chart1.Location = new global::System.Drawing.Point(3, 3);
|
||||
this.chart1.Name = "chart1";
|
||||
series.ChartArea = "ChartArea1";
|
||||
series.ChartType = global::System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie;
|
||||
series.IsValueShownAsLabel = true;
|
||||
series.Label = "#VALX: #VAL";
|
||||
series.Legend = "Legend1";
|
||||
series.Name = "Series1";
|
||||
series.XValueType = global::System.Windows.Forms.DataVisualization.Charting.ChartValueType.String;
|
||||
series.YValueType = global::System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
|
||||
this.chart1.Series.Add(series);
|
||||
this.chart1.Size = new global::System.Drawing.Size(311, 333);
|
||||
this.chart1.TabIndex = 0;
|
||||
this.chart1.Text = "chart1";
|
||||
this.splitContainer2.BorderStyle = global::System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.splitContainer2.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer2.FixedPanel = global::System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer2.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.splitContainer2.Name = "splitContainer2";
|
||||
this.splitContainer2.Panel1.Controls.Add(this.dataGridView1);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.tabControl1);
|
||||
this.splitContainer2.Size = new global::System.Drawing.Size(1020, 378);
|
||||
this.splitContainer2.SplitterDistance = 689;
|
||||
this.splitContainer2.TabIndex = 2;
|
||||
this.tabControl1.Controls.Add(this.tabPage1);
|
||||
this.tabControl1.Controls.Add(this.tabPage2);
|
||||
this.tabControl1.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControl1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.Size = new global::System.Drawing.Size(325, 376);
|
||||
this.tabControl1.TabIndex = 1;
|
||||
this.tabPage1.Controls.Add(this.chart1);
|
||||
this.tabPage1.Location = new global::System.Drawing.Point(4, 22);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new global::System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new global::System.Drawing.Size(317, 339);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "按故障种类";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
this.tabPage2.Controls.Add(this.chart2);
|
||||
this.tabPage2.Location = new global::System.Drawing.Point(4, 22);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new global::System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new global::System.Drawing.Size(317, 350);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "按AGV编号";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
chartArea2.Name = "ChartArea1";
|
||||
this.chart2.ChartAreas.Add(chartArea2);
|
||||
this.chart2.Dock = global::System.Windows.Forms.DockStyle.Fill;
|
||||
legend2.Enabled = false;
|
||||
legend2.Name = "Legend1";
|
||||
this.chart2.Legends.Add(legend2);
|
||||
this.chart2.Location = new global::System.Drawing.Point(3, 3);
|
||||
this.chart2.Name = "chart2";
|
||||
series2.ChartArea = "ChartArea1";
|
||||
series2.IsValueShownAsLabel = true;
|
||||
series2.Label = "#VALX: #VAL";
|
||||
series2.Legend = "Legend1";
|
||||
series2.Name = "Series1";
|
||||
series2.XValueType = global::System.Windows.Forms.DataVisualization.Charting.ChartValueType.String;
|
||||
series2.YValueType = global::System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
|
||||
this.chart2.Series.Add(series2);
|
||||
this.chart2.Size = new global::System.Drawing.Size(311, 344);
|
||||
this.chart2.TabIndex = 1;
|
||||
this.chart2.Text = "chart2";
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(1020, 460);
|
||||
base.Controls.Add(this.splitContainer1);
|
||||
base.Name = "frmwarnfind";
|
||||
this.Text = "异常报警日志";
|
||||
base.Load += new global::System.EventHandler(this.frmfind_Load);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.PerformLayout();
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.dataGridView1).EndInit();
|
||||
((global::System.ComponentModel.ISupportInitialize)this.chart1).EndInit();
|
||||
this.splitContainer2.Panel1.ResumeLayout(false);
|
||||
this.splitContainer2.Panel2.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.splitContainer2).EndInit();
|
||||
this.splitContainer2.ResumeLayout(false);
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
((global::System.ComponentModel.ISupportInitialize)this.chart2).EndInit();
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
|
||||
// Token: 0x04000587 RID: 1415
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x04000588 RID: 1416
|
||||
private global::System.Windows.Forms.SplitContainer splitContainer1;
|
||||
|
||||
// Token: 0x04000589 RID: 1417
|
||||
private global::System.Windows.Forms.Button button1;
|
||||
|
||||
// Token: 0x0400058A RID: 1418
|
||||
private global::System.Windows.Forms.Label label4;
|
||||
|
||||
// Token: 0x0400058B RID: 1419
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x0400058C RID: 1420
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x0400058D RID: 1421
|
||||
private global::System.Windows.Forms.DateTimePicker dateTimePicker1;
|
||||
|
||||
// Token: 0x0400058E RID: 1422
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x0400058F RID: 1423
|
||||
private global::System.Windows.Forms.DataGridView dataGridView1;
|
||||
|
||||
// Token: 0x04000590 RID: 1424
|
||||
private global::System.Windows.Forms.Button button2;
|
||||
|
||||
// Token: 0x04000591 RID: 1425
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x04000592 RID: 1426
|
||||
private global::System.Windows.Forms.DateTimePicker dateTimePicker2;
|
||||
|
||||
// Token: 0x04000593 RID: 1427
|
||||
private global::System.Windows.Forms.ComboBox cmb_linelist;
|
||||
|
||||
// Token: 0x04000594 RID: 1428
|
||||
private global::System.Windows.Forms.ComboBox cmb_agv;
|
||||
|
||||
// Token: 0x04000595 RID: 1429
|
||||
private global::System.Windows.Forms.ComboBox cmb_gz;
|
||||
|
||||
// Token: 0x04000596 RID: 1430
|
||||
private global::System.Windows.Forms.DataVisualization.Charting.Chart chart1;
|
||||
|
||||
// Token: 0x04000597 RID: 1431
|
||||
private global::System.Windows.Forms.SplitContainer splitContainer2;
|
||||
|
||||
// Token: 0x04000598 RID: 1432
|
||||
private global::System.Windows.Forms.TabControl tabControl1;
|
||||
|
||||
// Token: 0x04000599 RID: 1433
|
||||
private global::System.Windows.Forms.TabPage tabPage1;
|
||||
|
||||
// Token: 0x0400059A RID: 1434
|
||||
private global::System.Windows.Forms.TabPage tabPage2;
|
||||
|
||||
// Token: 0x0400059B RID: 1435
|
||||
private global::System.Windows.Forms.DataVisualization.Charting.Chart chart2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,310 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Forms.DataVisualization.Charting;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x0200001F RID: 31
|
||||
public partial class frmwarnfind : Form
|
||||
{
|
||||
// Token: 0x060001C2 RID: 450 RVA: 0x0004AB54 File Offset: 0x00048D54
|
||||
public frmwarnfind()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
base.WindowState = FormWindowState.Maximized;
|
||||
this.dateTimePicker2.Value = DateTime.Now;
|
||||
this.dateTimePicker1.Value = DateTime.Now.AddHours(-1.0);
|
||||
this.ds = this.db.connDt("SELECT [Warn_Info] FROM [dbo].[Warn_Info] where Warn_Info not like'%正常%'");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_gz.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
this.cmb_gz.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
// Token: 0x060001C3 RID: 451 RVA: 0x0004ACA8 File Offset: 0x00048EA8
|
||||
private void frmfind_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.ds = this.db.connDt("select CONVERT( VARCHAR(10),id) +' . '+ line_name as info from Assembly_Line order by id");
|
||||
bool flag = this.ds.Tables.Count > 0;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
this.cmb_linelist.Items.Add("");
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_linelist.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
this.ds.Tables.Clear();
|
||||
}
|
||||
|
||||
// Token: 0x060001C4 RID: 452 RVA: 0x0004ADB0 File Offset: 0x00048FB0
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string text = "";
|
||||
bool flag = this.Text == "异常报警日志";
|
||||
if (flag)
|
||||
{
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT Dt as '发生时间',Assembly_Line.line_name as '所属线体' ,'* '+convert (nvarchar(10),agvinfo.id) +' / '+convert (nvarchar(10),AgvInfo.Internal_ID) as '设备编号' ,Warn_Log.[Type] as '故障类型' ,[Reset] as '故障恢复时间' FROM [Warn_Log],AgvInfo,Assembly_Line where Warn_Log.Agv_id = AgvInfo.ID and AgvInfo.Assembly_Line = Assembly_Line.id and Dt between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag2 = this.cmb_linelist.Text != "";
|
||||
if (flag2)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
bool flag3 = this.cmb_agv.Text != "";
|
||||
if (flag3)
|
||||
{
|
||||
text = text + " and AgvInfo.Internal_ID= " + this.cmb_agv.Text;
|
||||
}
|
||||
bool flag4 = this.cmb_gz.SelectedIndex != 0;
|
||||
if (flag4)
|
||||
{
|
||||
text = text + " and warn_log.type like '%" + this.cmb_gz.Text + "%'";
|
||||
}
|
||||
text += " order by Assembly_Line.ID , dt";
|
||||
}
|
||||
this.ds.Tables.Clear();
|
||||
this.ds = this.db.connDt(text);
|
||||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||||
this.dataGridView1.Columns[0].DefaultCellStyle.Format = "yyyy-MM-dd HH:mm:ss";
|
||||
this.dataGridView1.Columns[0].Width = 200;
|
||||
this.dataGridView1.Columns[3].Width = 200;
|
||||
bool flag5 = this.Text == "异常报警日志";
|
||||
if (flag5)
|
||||
{
|
||||
this.dataGridView1.Columns[4].DefaultCellStyle.Format = "yyyy-MM-dd HH:mm:ss";
|
||||
this.dataGridView1.Columns[4].Width = 200;
|
||||
}
|
||||
bool flag6 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag6)
|
||||
{
|
||||
bool flag7 = this.cmb_gz.SelectedIndex == 0;
|
||||
DataSet dataSet;
|
||||
if (flag7)
|
||||
{
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT Warn_Log.[Type] as '故障类型' ,count(*) as 次数 FROM [Warn_Log],AgvInfo,Assembly_Line where Warn_Log.Agv_id = AgvInfo.ID and AgvInfo.Assembly_Line = Assembly_Line.id and Dt between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag8 = this.cmb_linelist.Text != "";
|
||||
if (flag8)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
bool flag9 = this.cmb_agv.Text != "";
|
||||
if (flag9)
|
||||
{
|
||||
text = text + " and AgvInfo.Internal_ID= " + this.cmb_agv.Text;
|
||||
}
|
||||
text += "group by Warn_Log.[Type] ";
|
||||
dataSet = this.db.connDt(text);
|
||||
List<string> list = new List<string>();
|
||||
List<int> list2 = new List<int>();
|
||||
foreach (object obj in dataSet.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
list.Add(dataRow[0].ToString());
|
||||
list2.Add((int)Convert.ToInt16(dataRow[1].ToString()));
|
||||
}
|
||||
this.chart1.Series[0]["PieLabelStyle"] = "Outside";
|
||||
this.chart1.Series[0]["PieLineColor"] = "Black";
|
||||
this.chart1.Series[0].Points.DataBindXY(list, new IEnumerable[]
|
||||
{
|
||||
list2
|
||||
});
|
||||
}
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"SELECT agvinfo.id ,count(*) as 次数 FROM [Warn_Log],AgvInfo,Assembly_Line where Warn_Log.Agv_id = AgvInfo.ID and AgvInfo.Assembly_Line = Assembly_Line.id and Dt between '",
|
||||
this.dateTimePicker1.Value.ToString(),
|
||||
"' and '",
|
||||
this.dateTimePicker2.Value.ToString(),
|
||||
"' "
|
||||
});
|
||||
bool flag10 = this.cmb_linelist.Text != "";
|
||||
if (flag10)
|
||||
{
|
||||
text = text + " and Assembly_Line.id= " + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0];
|
||||
}
|
||||
bool flag11 = this.cmb_agv.Text != "";
|
||||
if (flag11)
|
||||
{
|
||||
text = text + " and AgvInfo.Internal_ID= " + this.cmb_agv.Text;
|
||||
}
|
||||
text += "group by agvinfo.id ";
|
||||
dataSet = this.db.connDt(text);
|
||||
List<string> list3 = new List<string>();
|
||||
List<int> list4 = new List<int>();
|
||||
foreach (object obj2 in dataSet.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow2 = (DataRow)obj2;
|
||||
list3.Add("agv-" + dataRow2[0].ToString());
|
||||
list4.Add((int)Convert.ToInt16(dataRow2[1].ToString()));
|
||||
}
|
||||
this.chart2.Series[0]["PieLabelStyle"] = "Outside";
|
||||
this.chart2.Series[0]["PieLineColor"] = "Black";
|
||||
this.chart2.Series[0].Points.DataBindXY(list3, new IEnumerable[]
|
||||
{
|
||||
list4
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001C5 RID: 453 RVA: 0x0004B3E0 File Offset: 0x000495E0
|
||||
private void cmb_linelist_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.cmb_linelist.Text != "";
|
||||
if (flag)
|
||||
{
|
||||
this.ds = this.db.connDt("select Internal_ID from AgvInfo where [Assembly_Line] =" + this.cmb_linelist.Text.Split(new char[]
|
||||
{
|
||||
'.'
|
||||
})[0] + " order by Internal_ID");
|
||||
bool flag2 = this.ds.Tables.Count > 0;
|
||||
if (flag2)
|
||||
{
|
||||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||||
if (flag3)
|
||||
{
|
||||
this.cmb_agv.Items.Clear();
|
||||
this.cmb_agv.Items.Add("");
|
||||
foreach (object obj in this.ds.Tables[0].Rows)
|
||||
{
|
||||
DataRow dataRow = (DataRow)obj;
|
||||
this.cmb_agv.Items.Add(dataRow[0].ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001C6 RID: 454 RVA: 0x0004B530 File Offset: 0x00049730
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.dataGridView1.RowCount > 0;
|
||||
if (flag)
|
||||
{
|
||||
this.SaveAs();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001C7 RID: 455 RVA: 0x0004B558 File Offset: 0x00049758
|
||||
private void SaveAs()
|
||||
{
|
||||
SaveFileDialog saveFileDialog = new SaveFileDialog();
|
||||
saveFileDialog.Filter = "Execl files (*.xls)|*.xls";
|
||||
saveFileDialog.FilterIndex = 0;
|
||||
saveFileDialog.RestoreDirectory = true;
|
||||
saveFileDialog.CreatePrompt = true;
|
||||
saveFileDialog.Title = "Export Excel File To";
|
||||
saveFileDialog.ShowDialog();
|
||||
Stream stream;
|
||||
try
|
||||
{
|
||||
stream = saveFileDialog.OpenFile();
|
||||
}
|
||||
catch
|
||||
{
|
||||
return;
|
||||
}
|
||||
StreamWriter streamWriter = new StreamWriter(stream, Encoding.GetEncoding(0));
|
||||
string text = "";
|
||||
try
|
||||
{
|
||||
for (int i = 0; i < this.dataGridView1.ColumnCount; i++)
|
||||
{
|
||||
bool flag = i > 0;
|
||||
if (flag)
|
||||
{
|
||||
text += "\t";
|
||||
}
|
||||
text += this.dataGridView1.Columns[i].HeaderText;
|
||||
}
|
||||
streamWriter.WriteLine(text);
|
||||
for (int j = 0; j < this.dataGridView1.Rows.Count; j++)
|
||||
{
|
||||
string text2 = "";
|
||||
for (int k = 0; k < this.dataGridView1.Columns.Count; k++)
|
||||
{
|
||||
bool flag2 = k > 0;
|
||||
if (flag2)
|
||||
{
|
||||
text2 += "\t";
|
||||
}
|
||||
text2 += this.dataGridView1.Rows[j].Cells[k].Value.ToString();
|
||||
}
|
||||
streamWriter.WriteLine(text2);
|
||||
}
|
||||
streamWriter.Close();
|
||||
stream.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.ToString());
|
||||
}
|
||||
finally
|
||||
{
|
||||
streamWriter.Close();
|
||||
stream.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060001C8 RID: 456 RVA: 0x0000A0B4 File Offset: 0x000082B4
|
||||
private void dataGridView1_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e)
|
||||
{
|
||||
e.Row.HeaderCell.Value = string.Format("{0}", e.Row.Index + 1);
|
||||
}
|
||||
|
||||
// Token: 0x060001C9 RID: 457 RVA: 0x00002460 File Offset: 0x00000660
|
||||
private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000585 RID: 1413
|
||||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||||
|
||||
// Token: 0x04000586 RID: 1414
|
||||
private DataSet ds = new DataSet();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Generated
+134
@@ -0,0 +1,134 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000018 RID: 24
|
||||
public partial class logon : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x0600013A RID: 314 RVA: 0x00037ED0 File Offset: 0x000360D0
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x0600013B RID: 315 RVA: 0x00037F08 File Offset: 0x00036108
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::AGVSystem.logon));
|
||||
this.panel1 = new global::System.Windows.Forms.Panel();
|
||||
this.panel2 = new global::System.Windows.Forms.Panel();
|
||||
this.label3 = new global::System.Windows.Forms.Label();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.label2 = new global::System.Windows.Forms.Label();
|
||||
this.txtName = new global::System.Windows.Forms.TextBox();
|
||||
this.txtPW = new global::System.Windows.Forms.TextBox();
|
||||
this.button1 = new global::System.Windows.Forms.Button();
|
||||
this.panel1.SuspendLayout();
|
||||
base.SuspendLayout();
|
||||
this.panel1.Controls.Add(this.panel2);
|
||||
this.panel1.Controls.Add(this.label3);
|
||||
this.panel1.Dock = global::System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new global::System.Drawing.Size(425, 58);
|
||||
this.panel1.TabIndex = 1;
|
||||
this.panel2.BackgroundImage = (global::System.Drawing.Image)componentResourceManager.GetObject("panel2.BackgroundImage");
|
||||
this.panel2.BackgroundImageLayout = global::System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.panel2.Location = new global::System.Drawing.Point(-1, -1);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new global::System.Drawing.Size(111, 68);
|
||||
this.panel2.TabIndex = 2;
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new global::System.Drawing.Font("微软雅黑", 15.75f, global::System.Drawing.FontStyle.Bold | global::System.Drawing.FontStyle.Underline, global::System.Drawing.GraphicsUnit.Point, 134);
|
||||
this.label3.ForeColor = global::System.Drawing.Color.Chocolate;
|
||||
this.label3.Location = new global::System.Drawing.Point(129, 21);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new global::System.Drawing.Size(167, 28);
|
||||
this.label3.TabIndex = 1;
|
||||
this.label3.Text = "AGV 管 理 系 统";
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new global::System.Drawing.Font("宋体", 10.5f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point, 134);
|
||||
this.label1.Location = new global::System.Drawing.Point(81, 102);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(63, 14);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "用户名:";
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new global::System.Drawing.Font("宋体", 10.5f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point, 134);
|
||||
this.label2.Location = new global::System.Drawing.Point(81, 148);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new global::System.Drawing.Size(63, 14);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "密 码 :";
|
||||
this.txtName.Location = new global::System.Drawing.Point(154, 95);
|
||||
this.txtName.Name = "txtName";
|
||||
this.txtName.Size = new global::System.Drawing.Size(145, 21);
|
||||
this.txtName.TabIndex = 4;
|
||||
this.txtPW.Location = new global::System.Drawing.Point(154, 141);
|
||||
this.txtPW.Name = "txtPW";
|
||||
this.txtPW.PasswordChar = '*';
|
||||
this.txtPW.Size = new global::System.Drawing.Size(145, 21);
|
||||
this.txtPW.TabIndex = 5;
|
||||
this.txtPW.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.txtPW_KeyDown);
|
||||
this.button1.Location = new global::System.Drawing.Point(254, 225);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new global::System.Drawing.Size(85, 31);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "确 认";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new global::System.EventHandler(this.button1_Click);
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = global::System.Drawing.SystemColors.Control;
|
||||
base.ClientSize = new global::System.Drawing.Size(425, 290);
|
||||
base.Controls.Add(this.button1);
|
||||
base.Controls.Add(this.txtPW);
|
||||
base.Controls.Add(this.txtName);
|
||||
base.Controls.Add(this.label2);
|
||||
base.Controls.Add(this.label1);
|
||||
base.Controls.Add(this.panel1);
|
||||
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
base.MaximizeBox = false;
|
||||
base.MinimizeBox = false;
|
||||
base.Name = "logon";
|
||||
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "管理员登录";
|
||||
base.TopMost = true;
|
||||
base.Load += new global::System.EventHandler(this.log_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
base.ResumeLayout(false);
|
||||
base.PerformLayout();
|
||||
}
|
||||
|
||||
// Token: 0x04000435 RID: 1077
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x04000436 RID: 1078
|
||||
private global::System.Windows.Forms.Panel panel1;
|
||||
|
||||
// Token: 0x04000437 RID: 1079
|
||||
private global::System.Windows.Forms.Button button1;
|
||||
|
||||
// Token: 0x04000438 RID: 1080
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x04000439 RID: 1081
|
||||
private global::System.Windows.Forms.Label label2;
|
||||
|
||||
// Token: 0x0400043A RID: 1082
|
||||
private global::System.Windows.Forms.TextBox txtName;
|
||||
|
||||
// Token: 0x0400043B RID: 1083
|
||||
private global::System.Windows.Forms.TextBox txtPW;
|
||||
|
||||
// Token: 0x0400043C RID: 1084
|
||||
private global::System.Windows.Forms.Label label3;
|
||||
|
||||
// Token: 0x0400043D RID: 1085
|
||||
private global::System.Windows.Forms.Panel panel2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AGVSystem.Cls;
|
||||
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000018 RID: 24
|
||||
public partial class logon : Form
|
||||
{
|
||||
// Token: 0x06000136 RID: 310 RVA: 0x00037CEC File Offset: 0x00035EEC
|
||||
public logon()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
Param.UserName = FileRW.ReadIniValue("UserName", "Name", Application.StartupPath + "\\info.ini");
|
||||
Param.Password = FileRW.ReadIniValue("PassWord", "PassWord", Application.StartupPath + "\\info.ini");
|
||||
this.txtName.Text = Param.UserName_temp;
|
||||
this.txtPW.Text = Param.Password_temp;
|
||||
bool flag = this.txtName.Text != "";
|
||||
if (flag)
|
||||
{
|
||||
this.button1.Text = "退出管理员";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000137 RID: 311 RVA: 0x00037DA4 File Offset: 0x00035FA4
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool flag = this.button1.Text == "退出管理员";
|
||||
if (flag)
|
||||
{
|
||||
Param.UserName_temp = "";
|
||||
Param.Password_temp = "";
|
||||
mainfrm.toolStripStatusLabel.Text = "当前用户:匿名登录";
|
||||
base.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
bool flag2 = Param.UserName == this.txtName.Text.Trim() && Param.Password == this.txtPW.Text.Trim();
|
||||
if (flag2)
|
||||
{
|
||||
Param.UserName_temp = Param.UserName;
|
||||
Param.Password_temp = Param.Password;
|
||||
mainfrm.toolStripStatusLabel.Text = "当前用户:管理员";
|
||||
base.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000138 RID: 312 RVA: 0x00037E68 File Offset: 0x00036068
|
||||
private void txtPW_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
bool flag = e.KeyCode == Keys.Return;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2 = this.txtName.Text != "" && this.txtPW.Text == "";
|
||||
if (flag2)
|
||||
{
|
||||
this.button1_Click(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000139 RID: 313 RVA: 0x00037EC4 File Offset: 0x000360C4
|
||||
private void log_Load(object sender, EventArgs e)
|
||||
{
|
||||
base.WindowState = FormWindowState.Normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Generated
+836
@@ -0,0 +1,836 @@
|
||||
namespace AGVSystem
|
||||
{
|
||||
// Token: 0x02000019 RID: 25
|
||||
public partial class mainfrm : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x06000175 RID: 373 RVA: 0x0003B250 File Offset: 0x00039450
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
bool flag = disposing && this.components != null;
|
||||
if (flag)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x06000176 RID: 374 RVA: 0x0003B288 File Offset: 0x00039488
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new global::System.ComponentModel.Container();
|
||||
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::AGVSystem.mainfrm));
|
||||
this.statusStrip1 = new global::System.Windows.Forms.StatusStrip();
|
||||
this.toolStripStatusLabel7 = new global::System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel6 = new global::System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.lab_project_info = new global::System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel4 = new global::System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolS_timer = new global::System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel5 = new global::System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel2 = new global::System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel8 = new global::System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel9 = new global::System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel3 = new global::System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel1 = new global::System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStrip1 = new global::System.Windows.Forms.ToolStrip();
|
||||
this.tbtn_start = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS1 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_stop1 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS2 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_stop2 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS3 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_warn = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS4 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_ap_st = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS5 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolS_inter = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS17 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton3 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator3 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_agvm = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS6 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_xt = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS7 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_ap_info = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS8 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_pathset = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS9 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_dbset = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS10 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_change = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS18 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_yc_log = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS11 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_lj_log = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS12 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton1 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator1 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton2 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator2 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_database_set = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS13 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.tbtn_param_set = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS14 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton4 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator4 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton13 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS15 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton14 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.toolS16 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton16 = new global::System.Windows.Forms.ToolStripButton();
|
||||
this.menuStrip1 = new global::System.Windows.Forms.MenuStrip();
|
||||
this.yunxingjiankongToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.资料管理ToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem2 = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.output设置ToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.input设置ToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem1 = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.aGV列表ToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem4 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.一键复位ToolStripMenuItem1 = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem3 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.一键停止ToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem5 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.一键复位ToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.一键关机ToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.系统设置ToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.报表查询RToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.帮助ToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.cmb_map = new global::System.Windows.Forms.ToolStripComboBox();
|
||||
this.itemList = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.timer1 = new global::System.Windows.Forms.Timer(this.components);
|
||||
this.timer2 = new global::System.Windows.Forms.Timer(this.components);
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
base.SuspendLayout();
|
||||
this.statusStrip1.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.toolStripStatusLabel7,
|
||||
this.toolStripStatusLabel6,
|
||||
this.lab_project_info,
|
||||
this.toolStripStatusLabel4,
|
||||
this.toolS_timer,
|
||||
this.toolStripStatusLabel5,
|
||||
this.toolStripStatusLabel2,
|
||||
this.toolStripStatusLabel8,
|
||||
this.toolStripStatusLabel9,
|
||||
this.toolStripStatusLabel3,
|
||||
this.toolStripStatusLabel1
|
||||
});
|
||||
this.statusStrip1.Location = new global::System.Drawing.Point(0, 621);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new global::System.Drawing.Size(1424, 22);
|
||||
this.statusStrip1.TabIndex = 1;
|
||||
this.statusStrip1.Text = "statusStrip1";
|
||||
this.toolStripStatusLabel7.Name = "toolStripStatusLabel7";
|
||||
this.toolStripStatusLabel7.Size = new global::System.Drawing.Size(116, 17);
|
||||
this.toolStripStatusLabel7.Text = "当前用户:匿名登录";
|
||||
this.toolStripStatusLabel6.AutoSize = false;
|
||||
this.toolStripStatusLabel6.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripStatusLabel6.Image");
|
||||
this.toolStripStatusLabel6.Name = "toolStripStatusLabel6";
|
||||
this.toolStripStatusLabel6.Size = new global::System.Drawing.Size(32, 17);
|
||||
this.toolStripStatusLabel6.Text = " ";
|
||||
this.lab_project_info.Name = "lab_project_info";
|
||||
this.lab_project_info.Size = new global::System.Drawing.Size(233, 17);
|
||||
this.lab_project_info.Text = " 本软件仅适用于***** 项目代码:****";
|
||||
this.toolStripStatusLabel4.AutoSize = false;
|
||||
this.toolStripStatusLabel4.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripStatusLabel4.Image");
|
||||
this.toolStripStatusLabel4.Name = "toolStripStatusLabel4";
|
||||
this.toolStripStatusLabel4.Size = new global::System.Drawing.Size(32, 17);
|
||||
this.toolStripStatusLabel4.Text = " ";
|
||||
this.toolS_timer.Name = "toolS_timer";
|
||||
this.toolS_timer.Size = new global::System.Drawing.Size(137, 17);
|
||||
this.toolS_timer.Text = "2016-11-9 12:10:30";
|
||||
this.toolStripStatusLabel5.AutoSize = false;
|
||||
this.toolStripStatusLabel5.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripStatusLabel5.Image");
|
||||
this.toolStripStatusLabel5.Name = "toolStripStatusLabel5";
|
||||
this.toolStripStatusLabel5.Size = new global::System.Drawing.Size(32, 17);
|
||||
this.toolStripStatusLabel5.Text = " ";
|
||||
this.toolStripStatusLabel2.Name = "toolStripStatusLabel2";
|
||||
this.toolStripStatusLabel2.Size = new global::System.Drawing.Size(73, 17);
|
||||
this.toolStripStatusLabel2.Text = "X:0;Y:0";
|
||||
this.toolStripStatusLabel2.Visible = false;
|
||||
this.toolStripStatusLabel2.TextChanged += new global::System.EventHandler(this.toolStripStatusLabel2_TextChanged);
|
||||
this.toolStripStatusLabel8.AutoSize = false;
|
||||
this.toolStripStatusLabel8.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripStatusLabel8.Image");
|
||||
this.toolStripStatusLabel8.Name = "toolStripStatusLabel8";
|
||||
this.toolStripStatusLabel8.Size = new global::System.Drawing.Size(32, 17);
|
||||
this.toolStripStatusLabel8.Text = " ";
|
||||
this.toolStripStatusLabel9.Name = "toolStripStatusLabel9";
|
||||
this.toolStripStatusLabel9.Size = new global::System.Drawing.Size(100, 17);
|
||||
this.toolStripStatusLabel9.Text = " ";
|
||||
this.toolStripStatusLabel3.Name = "toolStripStatusLabel3";
|
||||
this.toolStripStatusLabel3.Size = new global::System.Drawing.Size(112, 17);
|
||||
this.toolStripStatusLabel3.Text = " ";
|
||||
this.toolStripStatusLabel1.AutoSize = false;
|
||||
this.toolStripStatusLabel1.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripStatusLabel1.Image");
|
||||
this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
|
||||
this.toolStripStatusLabel1.Size = new global::System.Drawing.Size(32, 17);
|
||||
this.toolStripStatusLabel1.Text = " ";
|
||||
this.toolStrip1.BackColor = global::System.Drawing.Color.White;
|
||||
this.toolStrip1.ImageScalingSize = new global::System.Drawing.Size(64, 48);
|
||||
this.toolStrip1.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.tbtn_start,
|
||||
this.toolS1,
|
||||
this.tbtn_stop1,
|
||||
this.toolS2,
|
||||
this.tbtn_stop2,
|
||||
this.toolS3,
|
||||
this.tbtn_warn,
|
||||
this.toolS4,
|
||||
this.tbtn_ap_st,
|
||||
this.toolS5,
|
||||
this.toolS_inter,
|
||||
this.toolS17,
|
||||
this.toolStripButton3,
|
||||
this.toolStripSeparator3,
|
||||
this.tbtn_agvm,
|
||||
this.toolS6,
|
||||
this.tbtn_xt,
|
||||
this.toolS7,
|
||||
this.tbtn_ap_info,
|
||||
this.toolS8,
|
||||
this.tbtn_pathset,
|
||||
this.toolS9,
|
||||
this.tbtn_dbset,
|
||||
this.toolS10,
|
||||
this.tbtn_change,
|
||||
this.toolS18,
|
||||
this.tbtn_yc_log,
|
||||
this.toolS11,
|
||||
this.tbtn_lj_log,
|
||||
this.toolS12,
|
||||
this.toolStripButton1,
|
||||
this.toolStripSeparator1,
|
||||
this.toolStripButton2,
|
||||
this.toolStripSeparator2,
|
||||
this.tbtn_database_set,
|
||||
this.toolS13,
|
||||
this.tbtn_param_set,
|
||||
this.toolS14,
|
||||
this.toolStripButton4,
|
||||
this.toolStripSeparator4,
|
||||
this.toolStripButton13,
|
||||
this.toolS15,
|
||||
this.toolStripButton14,
|
||||
this.toolS16,
|
||||
this.toolStripButton16
|
||||
});
|
||||
this.toolStrip1.Location = new global::System.Drawing.Point(0, 29);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new global::System.Drawing.Size(1424, 74);
|
||||
this.toolStrip1.TabIndex = 2;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
this.tbtn_start.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_start.Image");
|
||||
this.tbtn_start.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_start.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_start.Name = "tbtn_start";
|
||||
this.tbtn_start.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_start.Text = "启动调度";
|
||||
this.tbtn_start.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_start.Click += new global::System.EventHandler(this.toolStripButton18_Click);
|
||||
this.toolS1.Name = "toolS1";
|
||||
this.toolS1.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_stop1.Enabled = false;
|
||||
this.tbtn_stop1.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_stop1.Image");
|
||||
this.tbtn_stop1.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_stop1.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_stop1.Name = "tbtn_stop1";
|
||||
this.tbtn_stop1.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_stop1.Text = "暂停调度";
|
||||
this.tbtn_stop1.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_stop1.Click += new global::System.EventHandler(this.toolStripButton2_Click);
|
||||
this.toolS2.Name = "toolS2";
|
||||
this.toolS2.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_stop2.Enabled = false;
|
||||
this.tbtn_stop2.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_stop2.Image");
|
||||
this.tbtn_stop2.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_stop2.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_stop2.Name = "tbtn_stop2";
|
||||
this.tbtn_stop2.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_stop2.Text = "停止调度";
|
||||
this.tbtn_stop2.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_stop2.Click += new global::System.EventHandler(this.tbtn_stop2_Click);
|
||||
this.toolS3.Name = "toolS3";
|
||||
this.toolS3.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_warn.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_warn.Image");
|
||||
this.tbtn_warn.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_warn.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_warn.Name = "tbtn_warn";
|
||||
this.tbtn_warn.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_warn.Text = "报警列表";
|
||||
this.tbtn_warn.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_warn.Click += new global::System.EventHandler(this.tbtn_warn_Click);
|
||||
this.toolS4.Name = "toolS4";
|
||||
this.toolS4.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_ap_st.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_ap_st.Image");
|
||||
this.tbtn_ap_st.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_ap_st.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_ap_st.Name = "tbtn_ap_st";
|
||||
this.tbtn_ap_st.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_ap_st.Text = "AP状态";
|
||||
this.tbtn_ap_st.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_ap_st.Click += new global::System.EventHandler(this.toolStripButton4_Click);
|
||||
this.toolS5.Name = "toolS5";
|
||||
this.toolS5.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.toolS_inter.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolS_inter.Image");
|
||||
this.toolS_inter.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolS_inter.Name = "toolS_inter";
|
||||
this.toolS_inter.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.toolS_inter.Text = "外接信号";
|
||||
this.toolS_inter.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.toolS_inter.Visible = false;
|
||||
this.toolS_inter.Click += new global::System.EventHandler(this.toolS_inter_Click);
|
||||
this.toolS17.Name = "toolS17";
|
||||
this.toolS17.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.toolStripButton3.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton3.Image");
|
||||
this.toolStripButton3.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.toolStripButton3.Text = "路口现况";
|
||||
this.toolStripButton3.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.toolStripButton3.Click += new global::System.EventHandler(this.toolStripButton3_Click);
|
||||
this.toolStripSeparator3.Name = "toolStripSeparator3";
|
||||
this.toolStripSeparator3.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_agvm.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_agvm.Image");
|
||||
this.tbtn_agvm.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_agvm.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_agvm.Name = "tbtn_agvm";
|
||||
this.tbtn_agvm.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_agvm.Text = "设备管理";
|
||||
this.tbtn_agvm.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_agvm.Click += new global::System.EventHandler(this.toolStripButton5_Click);
|
||||
this.toolS6.Name = "toolS6";
|
||||
this.toolS6.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_xt.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_xt.Image");
|
||||
this.tbtn_xt.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_xt.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_xt.Name = "tbtn_xt";
|
||||
this.tbtn_xt.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_xt.Text = "线路管理";
|
||||
this.tbtn_xt.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_xt.Click += new global::System.EventHandler(this.toolStripButton6_Click);
|
||||
this.toolS7.Name = "toolS7";
|
||||
this.toolS7.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_ap_info.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_ap_info.Image");
|
||||
this.tbtn_ap_info.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_ap_info.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_ap_info.Name = "tbtn_ap_info";
|
||||
this.tbtn_ap_info.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_ap_info.Text = "AP信息";
|
||||
this.tbtn_ap_info.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_ap_info.Click += new global::System.EventHandler(this.toolStripButton7_Click);
|
||||
this.toolS8.Name = "toolS8";
|
||||
this.toolS8.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_pathset.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_pathset.Image");
|
||||
this.tbtn_pathset.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_pathset.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_pathset.Name = "tbtn_pathset";
|
||||
this.tbtn_pathset.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_pathset.Text = "路口设置";
|
||||
this.tbtn_pathset.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_pathset.Click += new global::System.EventHandler(this.toolStripButton8_Click);
|
||||
this.toolS9.Name = "toolS9";
|
||||
this.toolS9.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_dbset.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_dbset.Image");
|
||||
this.tbtn_dbset.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_dbset.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_dbset.Name = "tbtn_dbset";
|
||||
this.tbtn_dbset.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_dbset.Text = "地标设置";
|
||||
this.tbtn_dbset.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_dbset.Click += new global::System.EventHandler(this.toolStripButton11_Click);
|
||||
this.toolS10.Name = "toolS10";
|
||||
this.toolS10.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_change.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_change.Image");
|
||||
this.tbtn_change.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_change.Name = "tbtn_change";
|
||||
this.tbtn_change.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_change.Text = "充电记录";
|
||||
this.tbtn_change.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_change.Click += new global::System.EventHandler(this.tbtn_change_Click);
|
||||
this.toolS18.Name = "toolS18";
|
||||
this.toolS18.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_yc_log.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_yc_log.Image");
|
||||
this.tbtn_yc_log.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_yc_log.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_yc_log.Name = "tbtn_yc_log";
|
||||
this.tbtn_yc_log.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_yc_log.Text = "故障记录";
|
||||
this.tbtn_yc_log.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_yc_log.ToolTipText = "AGV异常报警记录";
|
||||
this.tbtn_yc_log.Click += new global::System.EventHandler(this.tbtn_yc_log_Click);
|
||||
this.toolS11.Name = "toolS11";
|
||||
this.toolS11.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_lj_log.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_lj_log.Image");
|
||||
this.tbtn_lj_log.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_lj_log.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_lj_log.Name = "tbtn_lj_log";
|
||||
this.tbtn_lj_log.Size = new global::System.Drawing.Size(84, 71);
|
||||
this.tbtn_lj_log.Text = "地标读取日志";
|
||||
this.tbtn_lj_log.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_lj_log.Click += new global::System.EventHandler(this.tbtn_lj_log_Click);
|
||||
this.toolS12.Name = "toolS12";
|
||||
this.toolS12.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.toolStripButton1.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton1.Image");
|
||||
this.toolStripButton1.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.toolStripButton1.Text = "放行日志";
|
||||
this.toolStripButton1.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.toolStripButton1.Click += new global::System.EventHandler(this.toolStripButton1_Click_1);
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.toolStripButton2.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton2.Image");
|
||||
this.toolStripButton2.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.toolStripButton2.Text = "网络日志";
|
||||
this.toolStripButton2.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.toolStripButton2.Click += new global::System.EventHandler(this.toolStripButton2_Click_1);
|
||||
this.toolStripSeparator2.Name = "toolStripSeparator2";
|
||||
this.toolStripSeparator2.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_database_set.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_database_set.Image");
|
||||
this.tbtn_database_set.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_database_set.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_database_set.Name = "tbtn_database_set";
|
||||
this.tbtn_database_set.Size = new global::System.Drawing.Size(72, 71);
|
||||
this.tbtn_database_set.Text = "数据库配置";
|
||||
this.tbtn_database_set.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_database_set.Click += new global::System.EventHandler(this.tbtn_database_set_Click);
|
||||
this.toolS13.Name = "toolS13";
|
||||
this.toolS13.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.tbtn_param_set.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("tbtn_param_set.Image");
|
||||
this.tbtn_param_set.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.tbtn_param_set.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.tbtn_param_set.Name = "tbtn_param_set";
|
||||
this.tbtn_param_set.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.tbtn_param_set.Text = "参数设置";
|
||||
this.tbtn_param_set.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.tbtn_param_set.Click += new global::System.EventHandler(this.toolStripButton12_Click);
|
||||
this.toolS14.Name = "toolS14";
|
||||
this.toolS14.Size = new global::System.Drawing.Size(6, 74);
|
||||
this.toolStripButton4.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton4.Image");
|
||||
this.toolStripButton4.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton4.Name = "toolStripButton4";
|
||||
this.toolStripButton4.Size = new global::System.Drawing.Size(72, 69);
|
||||
this.toolStripButton4.Text = "管理员登录";
|
||||
this.toolStripButton4.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.toolStripButton4.Click += new global::System.EventHandler(this.toolStripButton4_Click_1);
|
||||
this.toolStripSeparator4.Name = "toolStripSeparator4";
|
||||
this.toolStripSeparator4.Size = new global::System.Drawing.Size(6, 23);
|
||||
this.toolStripButton13.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton13.Image");
|
||||
this.toolStripButton13.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.toolStripButton13.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton13.Name = "toolStripButton13";
|
||||
this.toolStripButton13.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.toolStripButton13.Text = "退出程序";
|
||||
this.toolStripButton13.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.toolStripButton13.Click += new global::System.EventHandler(this.toolStripButton13_Click);
|
||||
this.toolS15.Name = "toolS15";
|
||||
this.toolS15.Size = new global::System.Drawing.Size(6, 23);
|
||||
this.toolStripButton14.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton14.Image");
|
||||
this.toolStripButton14.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.toolStripButton14.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton14.Name = "toolStripButton14";
|
||||
this.toolStripButton14.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.toolStripButton14.Text = "帮助";
|
||||
this.toolStripButton14.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.toolStripButton14.Click += new global::System.EventHandler(this.toolStripButton14_Click);
|
||||
this.toolS16.Name = "toolS16";
|
||||
this.toolS16.Size = new global::System.Drawing.Size(6, 23);
|
||||
this.toolStripButton16.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("toolStripButton16.Image");
|
||||
this.toolStripButton16.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.toolStripButton16.ImageTransparentColor = global::System.Drawing.Color.Magenta;
|
||||
this.toolStripButton16.Name = "toolStripButton16";
|
||||
this.toolStripButton16.Size = new global::System.Drawing.Size(68, 71);
|
||||
this.toolStripButton16.Text = "关于";
|
||||
this.toolStripButton16.TextImageRelation = global::System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.toolStripButton16.Click += new global::System.EventHandler(this.toolStripButton16_Click);
|
||||
this.menuStrip1.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.yunxingjiankongToolStripMenuItem,
|
||||
this.资料管理ToolStripMenuItem,
|
||||
this.toolStripMenuItem2,
|
||||
this.toolStripMenuItem1,
|
||||
this.系统设置ToolStripMenuItem,
|
||||
this.报表查询RToolStripMenuItem,
|
||||
this.帮助ToolStripMenuItem,
|
||||
this.cmb_map,
|
||||
this.itemList
|
||||
});
|
||||
this.menuStrip1.Location = new global::System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new global::System.Drawing.Size(1424, 29);
|
||||
this.menuStrip1.TabIndex = 3;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
this.menuStrip1.ItemClicked += new global::System.Windows.Forms.ToolStripItemClickedEventHandler(this.menuStrip1_ItemClicked);
|
||||
this.yunxingjiankongToolStripMenuItem.BackColor = global::System.Drawing.Color.White;
|
||||
this.yunxingjiankongToolStripMenuItem.Name = "yunxingjiankongToolStripMenuItem";
|
||||
this.yunxingjiankongToolStripMenuItem.Size = new global::System.Drawing.Size(100, 25);
|
||||
this.yunxingjiankongToolStripMenuItem.Text = "运行监控(&R)";
|
||||
this.yunxingjiankongToolStripMenuItem.Click += new global::System.EventHandler(this.yunxingjiankongToolStripMenuItem_Click);
|
||||
this.资料管理ToolStripMenuItem.Name = "资料管理ToolStripMenuItem";
|
||||
this.资料管理ToolStripMenuItem.Size = new global::System.Drawing.Size(108, 25);
|
||||
this.资料管理ToolStripMenuItem.Text = "资料管理( &M)";
|
||||
this.资料管理ToolStripMenuItem.Click += new global::System.EventHandler(this.资料管理ToolStripMenuItem_Click);
|
||||
this.toolStripMenuItem2.DropDownItems.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.output设置ToolStripMenuItem,
|
||||
this.input设置ToolStripMenuItem
|
||||
});
|
||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
||||
this.toolStripMenuItem2.Size = new global::System.Drawing.Size(58, 25);
|
||||
this.toolStripMenuItem2.Text = "IO设置";
|
||||
this.toolStripMenuItem2.Click += new global::System.EventHandler(this.toolStripMenuItem2_Click);
|
||||
this.output设置ToolStripMenuItem.Name = "output设置ToolStripMenuItem";
|
||||
this.output设置ToolStripMenuItem.Size = new global::System.Drawing.Size(140, 22);
|
||||
this.output设置ToolStripMenuItem.Text = "Output设置";
|
||||
this.output设置ToolStripMenuItem.Click += new global::System.EventHandler(this.output设置ToolStripMenuItem_Click);
|
||||
this.input设置ToolStripMenuItem.Name = "input设置ToolStripMenuItem";
|
||||
this.input设置ToolStripMenuItem.Size = new global::System.Drawing.Size(140, 22);
|
||||
this.input设置ToolStripMenuItem.Text = "Input 设置";
|
||||
this.input设置ToolStripMenuItem.Click += new global::System.EventHandler(this.input设置ToolStripMenuItem_Click);
|
||||
this.toolStripMenuItem1.DropDownItems.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.aGV列表ToolStripMenuItem,
|
||||
this.toolStripMenuItem4,
|
||||
this.一键复位ToolStripMenuItem1,
|
||||
this.toolStripMenuItem3,
|
||||
this.一键停止ToolStripMenuItem,
|
||||
this.toolStripMenuItem5,
|
||||
this.一键复位ToolStripMenuItem,
|
||||
this.一键关机ToolStripMenuItem
|
||||
});
|
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||
this.toolStripMenuItem1.Size = new global::System.Drawing.Size(69, 25);
|
||||
this.toolStripMenuItem1.Text = "AGV控制";
|
||||
this.toolStripMenuItem1.Click += new global::System.EventHandler(this.toolStripMenuItem1_Click);
|
||||
this.aGV列表ToolStripMenuItem.Name = "aGV列表ToolStripMenuItem";
|
||||
this.aGV列表ToolStripMenuItem.Size = new global::System.Drawing.Size(180, 22);
|
||||
this.aGV列表ToolStripMenuItem.Text = "AGV列表";
|
||||
this.aGV列表ToolStripMenuItem.Click += new global::System.EventHandler(this.aGV列表ToolStripMenuItem_Click);
|
||||
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
|
||||
this.toolStripMenuItem4.Size = new global::System.Drawing.Size(177, 6);
|
||||
this.一键复位ToolStripMenuItem1.Name = "一键复位ToolStripMenuItem1";
|
||||
this.一键复位ToolStripMenuItem1.Size = new global::System.Drawing.Size(180, 22);
|
||||
this.一键复位ToolStripMenuItem1.Text = "一键复位";
|
||||
this.一键复位ToolStripMenuItem1.Click += new global::System.EventHandler(this.一键复位ToolStripMenuItem1_Click);
|
||||
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
|
||||
this.toolStripMenuItem3.Size = new global::System.Drawing.Size(177, 6);
|
||||
this.一键停止ToolStripMenuItem.Name = "一键停止ToolStripMenuItem";
|
||||
this.一键停止ToolStripMenuItem.Size = new global::System.Drawing.Size(180, 22);
|
||||
this.一键停止ToolStripMenuItem.Text = "一键停止";
|
||||
this.一键停止ToolStripMenuItem.Click += new global::System.EventHandler(this.一键停止ToolStripMenuItem_Click);
|
||||
this.toolStripMenuItem5.Name = "toolStripMenuItem5";
|
||||
this.toolStripMenuItem5.Size = new global::System.Drawing.Size(177, 6);
|
||||
this.一键复位ToolStripMenuItem.Name = "一键复位ToolStripMenuItem";
|
||||
this.一键复位ToolStripMenuItem.Size = new global::System.Drawing.Size(180, 22);
|
||||
this.一键复位ToolStripMenuItem.Text = "一键复位";
|
||||
this.一键复位ToolStripMenuItem.Visible = false;
|
||||
this.一键关机ToolStripMenuItem.Name = "一键关机ToolStripMenuItem";
|
||||
this.一键关机ToolStripMenuItem.Size = new global::System.Drawing.Size(180, 22);
|
||||
this.一键关机ToolStripMenuItem.Text = "一键关机";
|
||||
this.一键关机ToolStripMenuItem.Click += new global::System.EventHandler(this.一键关机ToolStripMenuItem_Click);
|
||||
this.系统设置ToolStripMenuItem.Name = "系统设置ToolStripMenuItem";
|
||||
this.系统设置ToolStripMenuItem.Size = new global::System.Drawing.Size(99, 25);
|
||||
this.系统设置ToolStripMenuItem.Text = "系统设置(&S)";
|
||||
this.系统设置ToolStripMenuItem.Click += new global::System.EventHandler(this.系统设置ToolStripMenuItem_Click);
|
||||
this.报表查询RToolStripMenuItem.Name = "报表查询RToolStripMenuItem";
|
||||
this.报表查询RToolStripMenuItem.Size = new global::System.Drawing.Size(99, 25);
|
||||
this.报表查询RToolStripMenuItem.Text = "报表查询(&P)";
|
||||
this.报表查询RToolStripMenuItem.Click += new global::System.EventHandler(this.报表查询RToolStripMenuItem_Click);
|
||||
this.帮助ToolStripMenuItem.Name = "帮助ToolStripMenuItem";
|
||||
this.帮助ToolStripMenuItem.Size = new global::System.Drawing.Size(77, 25);
|
||||
this.帮助ToolStripMenuItem.Text = "帮助(&H)";
|
||||
this.帮助ToolStripMenuItem.Click += new global::System.EventHandler(this.帮助ToolStripMenuItem_Click);
|
||||
this.cmb_map.DropDownStyle = global::System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_map.Enabled = false;
|
||||
this.cmb_map.Items.AddRange(new object[]
|
||||
{
|
||||
"Map Page 1."
|
||||
});
|
||||
this.cmb_map.Name = "cmb_map";
|
||||
this.cmb_map.Size = new global::System.Drawing.Size(121, 25);
|
||||
this.cmb_map.SelectedIndexChanged += new global::System.EventHandler(this.cmb_map_SelectedIndexChanged);
|
||||
this.itemList.Name = "itemList";
|
||||
this.itemList.Size = new global::System.Drawing.Size(68, 25);
|
||||
this.itemList.Text = "项目列表";
|
||||
this.timer1.Interval = 1000;
|
||||
this.timer1.Tick += new global::System.EventHandler(this.timer1_Tick);
|
||||
this.timer2.Enabled = true;
|
||||
this.timer2.Interval = 120000;
|
||||
this.timer2.Tick += new global::System.EventHandler(this.timer2_Tick);
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 12f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackgroundImage = (global::System.Drawing.Image)componentResourceManager.GetObject("$this.BackgroundImage");
|
||||
this.BackgroundImageLayout = global::System.Windows.Forms.ImageLayout.Center;
|
||||
base.ClientSize = new global::System.Drawing.Size(1424, 643);
|
||||
base.Controls.Add(this.toolStrip1);
|
||||
base.Controls.Add(this.statusStrip1);
|
||||
base.Controls.Add(this.menuStrip1);
|
||||
this.DoubleBuffered = true;
|
||||
base.IsMdiContainer = true;
|
||||
base.MainMenuStrip = this.menuStrip1;
|
||||
base.Name = "mainfrm";
|
||||
this.Text = "AGV调度管理系统 特锐德电气股份有限公司";
|
||||
base.WindowState = global::System.Windows.Forms.FormWindowState.Maximized;
|
||||
base.FormClosing += new global::System.Windows.Forms.FormClosingEventHandler(this.mainfrm_FormClosing);
|
||||
base.Load += new global::System.EventHandler(this.mainfrm_Load);
|
||||
base.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.mainfrm_MouseMove);
|
||||
base.Resize += new global::System.EventHandler(this.mainfrm_Resize);
|
||||
this.statusStrip1.ResumeLayout(false);
|
||||
this.statusStrip1.PerformLayout();
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
this.menuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.PerformLayout();
|
||||
base.ResumeLayout(false);
|
||||
base.PerformLayout();
|
||||
}
|
||||
|
||||
// Token: 0x04000470 RID: 1136
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x04000471 RID: 1137
|
||||
private global::System.Windows.Forms.StatusStrip statusStrip1;
|
||||
|
||||
// Token: 0x04000472 RID: 1138
|
||||
private global::System.Windows.Forms.ToolStrip toolStrip1;
|
||||
|
||||
// Token: 0x04000473 RID: 1139
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS1;
|
||||
|
||||
// Token: 0x04000474 RID: 1140
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_stop1;
|
||||
|
||||
// Token: 0x04000475 RID: 1141
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS2;
|
||||
|
||||
// Token: 0x04000476 RID: 1142
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_warn;
|
||||
|
||||
// Token: 0x04000477 RID: 1143
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS4;
|
||||
|
||||
// Token: 0x04000478 RID: 1144
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_ap_st;
|
||||
|
||||
// Token: 0x04000479 RID: 1145
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS5;
|
||||
|
||||
// Token: 0x0400047A RID: 1146
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_agvm;
|
||||
|
||||
// Token: 0x0400047B RID: 1147
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS6;
|
||||
|
||||
// Token: 0x0400047C RID: 1148
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_xt;
|
||||
|
||||
// Token: 0x0400047D RID: 1149
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS7;
|
||||
|
||||
// Token: 0x0400047E RID: 1150
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_ap_info;
|
||||
|
||||
// Token: 0x0400047F RID: 1151
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS8;
|
||||
|
||||
// Token: 0x04000480 RID: 1152
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_pathset;
|
||||
|
||||
// Token: 0x04000481 RID: 1153
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS3;
|
||||
|
||||
// Token: 0x04000482 RID: 1154
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_stop2;
|
||||
|
||||
// Token: 0x04000483 RID: 1155
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS9;
|
||||
|
||||
// Token: 0x04000484 RID: 1156
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_yc_log;
|
||||
|
||||
// Token: 0x04000485 RID: 1157
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS10;
|
||||
|
||||
// Token: 0x04000486 RID: 1158
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_dbset;
|
||||
|
||||
// Token: 0x04000487 RID: 1159
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS11;
|
||||
|
||||
// Token: 0x04000488 RID: 1160
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_param_set;
|
||||
|
||||
// Token: 0x04000489 RID: 1161
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS14;
|
||||
|
||||
// Token: 0x0400048A RID: 1162
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton13;
|
||||
|
||||
// Token: 0x0400048B RID: 1163
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS15;
|
||||
|
||||
// Token: 0x0400048C RID: 1164
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton14;
|
||||
|
||||
// Token: 0x0400048D RID: 1165
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS13;
|
||||
|
||||
// Token: 0x0400048E RID: 1166
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_database_set;
|
||||
|
||||
// Token: 0x0400048F RID: 1167
|
||||
private global::System.Windows.Forms.MenuStrip menuStrip1;
|
||||
|
||||
// Token: 0x04000490 RID: 1168
|
||||
private global::System.Windows.Forms.ToolStripMenuItem yunxingjiankongToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000491 RID: 1169
|
||||
private global::System.Windows.Forms.ToolStripStatusLabel lab_project_info;
|
||||
|
||||
// Token: 0x04000492 RID: 1170
|
||||
private global::System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel2;
|
||||
|
||||
// Token: 0x04000493 RID: 1171
|
||||
private global::System.Windows.Forms.ToolStripMenuItem 资料管理ToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000494 RID: 1172
|
||||
private global::System.Windows.Forms.ToolStripMenuItem 系统设置ToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000495 RID: 1173
|
||||
private global::System.Windows.Forms.ToolStripMenuItem 帮助ToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000496 RID: 1174
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS16;
|
||||
|
||||
// Token: 0x04000497 RID: 1175
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton16;
|
||||
|
||||
// Token: 0x04000498 RID: 1176
|
||||
private global::System.Windows.Forms.ToolStripMenuItem 报表查询RToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000499 RID: 1177
|
||||
private global::System.Windows.Forms.ToolStripStatusLabel toolS_timer;
|
||||
|
||||
// Token: 0x0400049A RID: 1178
|
||||
private global::System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel4;
|
||||
|
||||
// Token: 0x0400049B RID: 1179
|
||||
private global::System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel5;
|
||||
|
||||
// Token: 0x0400049C RID: 1180
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS12;
|
||||
|
||||
// Token: 0x0400049D RID: 1181
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_lj_log;
|
||||
|
||||
// Token: 0x0400049E RID: 1182
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_start;
|
||||
|
||||
// Token: 0x0400049F RID: 1183
|
||||
private global::System.Windows.Forms.ToolStripComboBox cmb_map;
|
||||
|
||||
// Token: 0x040004A0 RID: 1184
|
||||
private global::System.Windows.Forms.Timer timer1;
|
||||
|
||||
// Token: 0x040004A1 RID: 1185
|
||||
private global::System.Windows.Forms.ToolStripButton toolS_inter;
|
||||
|
||||
// Token: 0x040004A2 RID: 1186
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS17;
|
||||
|
||||
// Token: 0x040004A3 RID: 1187
|
||||
private global::System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;
|
||||
|
||||
// Token: 0x040004A4 RID: 1188
|
||||
private global::System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel3;
|
||||
|
||||
// Token: 0x040004A5 RID: 1189
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
|
||||
// Token: 0x040004A6 RID: 1190
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
|
||||
// Token: 0x040004A7 RID: 1191
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton2;
|
||||
|
||||
// Token: 0x040004A8 RID: 1192
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
|
||||
|
||||
// Token: 0x040004A9 RID: 1193
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
|
||||
// Token: 0x040004AA RID: 1194
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
|
||||
|
||||
// Token: 0x040004AB RID: 1195
|
||||
private global::System.Windows.Forms.ToolStripButton toolStripButton4;
|
||||
|
||||
// Token: 0x040004AC RID: 1196
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
|
||||
|
||||
// Token: 0x040004AD RID: 1197
|
||||
private global::System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel7;
|
||||
|
||||
// Token: 0x040004AE RID: 1198
|
||||
private global::System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel6;
|
||||
|
||||
// Token: 0x040004AF RID: 1199
|
||||
private global::System.Windows.Forms.ToolStripButton tbtn_change;
|
||||
|
||||
// Token: 0x040004B0 RID: 1200
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolS18;
|
||||
|
||||
// Token: 0x040004B1 RID: 1201
|
||||
private global::System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel8;
|
||||
|
||||
// Token: 0x040004B2 RID: 1202
|
||||
private global::System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel9;
|
||||
|
||||
// Token: 0x040004B3 RID: 1203
|
||||
private global::System.Windows.Forms.ToolStripMenuItem itemList;
|
||||
|
||||
// Token: 0x040004B4 RID: 1204
|
||||
private global::System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
|
||||
|
||||
// Token: 0x040004B5 RID: 1205
|
||||
private global::System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
|
||||
|
||||
// Token: 0x040004B6 RID: 1206
|
||||
private global::System.Windows.Forms.ToolStripMenuItem output设置ToolStripMenuItem;
|
||||
|
||||
// Token: 0x040004B7 RID: 1207
|
||||
private global::System.Windows.Forms.ToolStripMenuItem input设置ToolStripMenuItem;
|
||||
|
||||
// Token: 0x040004B8 RID: 1208
|
||||
private global::System.Windows.Forms.ToolStripMenuItem aGV列表ToolStripMenuItem;
|
||||
|
||||
// Token: 0x040004B9 RID: 1209
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolStripMenuItem4;
|
||||
|
||||
// Token: 0x040004BA RID: 1210
|
||||
private global::System.Windows.Forms.ToolStripMenuItem 一键复位ToolStripMenuItem1;
|
||||
|
||||
// Token: 0x040004BB RID: 1211
|
||||
private global::System.Windows.Forms.ToolStripMenuItem 一键停止ToolStripMenuItem;
|
||||
|
||||
// Token: 0x040004BC RID: 1212
|
||||
private global::System.Windows.Forms.ToolStripMenuItem 一键复位ToolStripMenuItem;
|
||||
|
||||
// Token: 0x040004BD RID: 1213
|
||||
private global::System.Windows.Forms.ToolStripMenuItem 一键关机ToolStripMenuItem;
|
||||
|
||||
// Token: 0x040004BE RID: 1214
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolStripMenuItem3;
|
||||
|
||||
// Token: 0x040004BF RID: 1215
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolStripMenuItem5;
|
||||
|
||||
// Token: 0x040004C0 RID: 1216
|
||||
private global::System.Windows.Forms.Timer timer2;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user