Files
FG2608061/反编译CODE/华晓AGV管理系统/mainfrm.cs
T

1504 lines
48 KiB
C#
Raw Normal View History

using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
using AGVSystem.Cls;
using Automation.BDaq;
namespace AGVSystem
{
// Token: 0x02000019 RID: 25
public partial class mainfrm : Form
{
// Token: 0x0600013C RID: 316 RVA: 0x000384A8 File Offset: 0x000366A8
public mainfrm()
{
this.InitializeComponent();
mainfrm.toolStrip = this.toolStrip1;
mainfrm.newmainfrm = this;
mainfrm.Lab_location = this.toolStripStatusLabel2;
mainfrm.toolStripStatusLabel = this.toolStripStatusLabel7;
mainfrm.toolStrip_info = this.toolStripStatusLabel3;
try
{
for (byte b = 1; b < 40; b += 1)
{
string text = FileRW.ReadIniValue("Item", "Item" + b.ToString(), Application.StartupPath + "\\item.ini");
bool flag = text != "";
if (flag)
{
ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
toolStripMenuItem.Name = "Item" + b.ToString();
toolStripMenuItem.Text = text;
toolStripMenuItem.Click += mainfrm.ToolStripMenuItem_Click;
this.itemList.DropDownItems.Add(toolStripMenuItem);
}
else
{
bool flag2 = b == 1 || b == 2;
if (flag2)
{
this.itemList.Visible = false;
}
}
}
}
catch
{
}
bool flag3 = mainfrm.init2();
if (flag3)
{
this.lab_project_info.Text = string.Concat(new string[]
{
" 本软件仅适用于",
Param.Pro_factory,
" ",
Param.Pro_remark,
" 项目代码:",
Param.Pro_id
});
this.Text = "AGV调度管理系统 " + Param.Pro_factory;
bool flag4 = File.Exists(Application.StartupPath + "\\background\\" + Param.Pro_id + ".png");
if (flag4)
{
this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\background\\" + Param.Pro_id + ".png");
}
bool map2_status = Param.map2_status;
if (map2_status)
{
this.cmb_map.Items.Add("Map Page 2.");
}
bool map3_status = Param.map3_status;
if (map3_status)
{
this.cmb_map.Items.Add("Map Page 3.");
}
this.toolStripButton18_Click(null, null);
this.timer1.Enabled = true;
}
else
{
mainfrm.newmainfrm = null;
DatabaseSet databaseSet = new DatabaseSet();
databaseSet.ShowDialog();
}
}
// Token: 0x0600013D RID: 317 RVA: 0x0003871C File Offset: 0x0003691C
public static bool init2()
{
Param.connectStr = FileRW.ReadIniValue("conn", "conn", Application.StartupPath + "\\info.ini");
Param.Pro_id = FileRW.ReadIniValue("item_id", "item_id", Application.StartupPath + "\\info.ini");
Param.connectStr = Param.connectStr.Replace("XXXXX", Param.Pro_id);
bool flag = Param.connectStr == "";
bool result;
if (flag)
{
DatabaseSet databaseSet = new DatabaseSet();
databaseSet.ShowDialog();
result = false;
}
else
{
for (byte b = 0; b < 4; b += 1)
{
for (byte b2 = 0; b2 < 8; b2 += 1)
{
mainfrm.Card_DI1[(int)b, (int)b2] = 0;
mainfrm.Card_DI2[(int)b, (int)b2] = 0;
mainfrm.Card_DI3[(int)b, (int)b2] = 0;
mainfrm.Card_DO1[(int)b, (int)b2] = 0;
mainfrm.Card_DO2[(int)b, (int)b2] = 0;
mainfrm.Card_DO3[(int)b, (int)b2] = 0;
}
}
try
{
mainfrm.strsql = "SELECT AgvInfo.[IPAddress], AgvInfo.[Status],'false' as 联网状态 , AgvInfo.[Internal_ID], AgvInfo.[Assembly_Line],assembly_line.[line_Name],AgvInfo.[Type],AgvInfo.[ID] ,Assembly_Line.AREA, AgvInfo.[Loc_id] , AgvInfo.[warn_id] , AgvInfo.Mileage , agvinfo.port , agvinfo.WorkType FROM AgvInfo , Assembly_Line where assembly_line.[id] = AgvInfo.[Assembly_Line] order by AgvInfo.[ID]";
ClsDBConn_sql clsDBConn_sql = new ClsDBConn_sql();
mainfrm.ds_Agvlist = clsDBConn_sql.connDt(mainfrm.strsql).Copy();
Param.AGV_Qty = Convert.ToByte(mainfrm.ds_Agvlist.Tables[0].Rows.Count);
Func.AgvInfo = new AgvInfo[(int)Param.AGV_Qty];
mainfrm.All_Agv_Close = new int[(int)Param.AGV_Qty];
mainfrm.All_Agv_Reset = new int[(int)Param.AGV_Qty];
mainfrm.All_Agv_Stop = new int[(int)Param.AGV_Qty];
for (int i = 0; i < mainfrm.ds_Agvlist.Tables[0].Rows.Count; i++)
{
Func.AgvInfo[i] = new AgvInfo();
Func.AgvInfo[i].Agv_ID = (int)Convert.ToInt16(mainfrm.ds_Agvlist.Tables[0].Rows[i]["ID"].ToString());
Func.AgvInfo[i].AssemblyLine = (int)Convert.ToInt16(mainfrm.ds_Agvlist.Tables[0].Rows[i]["Assembly_Line"].ToString());
Func.AgvInfo[i].AssemblyName = mainfrm.ds_Agvlist.Tables[0].Rows[i]["line_Name"].ToString();
Func.AgvInfo[i].Enable = Convert.ToBoolean(mainfrm.ds_Agvlist.Tables[0].Rows[i]["Status"].ToString());
Func.AgvInfo[i].Internal_ID = (int)Convert.ToInt16(mainfrm.ds_Agvlist.Tables[0].Rows[i]["Internal_ID"].ToString());
Func.AgvInfo[i].IP = mainfrm.ds_Agvlist.Tables[0].Rows[i]["IPAddress"].ToString();
Func.AgvInfo[i].Area = (int)Convert.ToInt16(mainfrm.ds_Agvlist.Tables[0].Rows[i]["area"].ToString());
Func.AgvInfo[i].Cross_Location_Go = (int)Convert.ToInt16(mainfrm.ds_Agvlist.Tables[0].Rows[i]["LOC_ID"].ToString());
Func.AgvInfo[i].Cross_Path_Id = (int)Convert.ToInt16(mainfrm.ds_Agvlist.Tables[0].Rows[i]["Warn_ID"].ToString());
Func.AgvInfo[i].Mileage = Convert.ToDouble(mainfrm.ds_Agvlist.Tables[0].Rows[i]["Mileage"].ToString());
Func.AgvInfo[i].Port = (int)Convert.ToInt16(mainfrm.ds_Agvlist.Tables[0].Rows[i]["port"].ToString());
Func.AgvInfo[i].Type = (int)Convert.ToInt16(mainfrm.ds_Agvlist.Tables[0].Rows[i]["Type"].ToString());
Func.AgvInfo[i].WorkType = (int)Convert.ToInt16(mainfrm.ds_Agvlist.Tables[0].Rows[i]["WorkType"].ToString());
Func.AgvInfo[i].Location_Display = 0;
Func.AgvInfo[i].Warn_info = "未上线";
Func.AgvInfo[i].Task_Descrption = "无任务";
Func.AgvInfo[i].Warn_Level = 4;
Func.AgvInfo[i].Control_PLC = (int)Convert.ToInt16(mainfrm.ds_Agvlist.Tables[0].Rows[i]["Type"].ToString());
mainfrm.All_Agv_Stop[i] = 0;
mainfrm.All_Agv_Reset[i] = 0;
mainfrm.All_Agv_Close[i] = 0;
}
mainfrm.strsql = "SELECT [Loc_ID] ,[Card_ID],[Port] ,[Bit] ,[Value] FROM [IO_Set]";
mainfrm.ds_Card_DO = clsDBConn_sql.connDt(mainfrm.strsql).Copy();
mainfrm.strsql = "SELECT [Card_ID] ,[Port] ,[Bit] ,[Value] ,[Class] ,[Loc1] ,[Loc2] ,[Loc3] ,[loc4] ,[loc5] FROM [IO_Accept] where class = 0";
mainfrm.ds_Card_DI_Call = clsDBConn_sql.connDt(mainfrm.strsql).Copy();
mainfrm.strsql = "SELECT [Card_ID] ,[Port] ,[Bit] ,[Value] ,[Class] ,[Loc1] FROM [IO_Accept] where class =1";
mainfrm.ds_Card_DI_Fx = clsDBConn_sql.connDt(mainfrm.strsql).Copy();
mainfrm.strsql = "SELECT [Landmark] FROM [Change_LandMark]";
mainfrm.ds_Change = clsDBConn_sql.connDt(mainfrm.strsql).Copy();
mainfrm.strsql = "SELECT [Warn_ID] ,[Warn_Info] ,[Warn_Level] FROM [Warn_Info] order by Warn_ID";
mainfrm.ds_WarnList = clsDBConn_sql.connDt(mainfrm.strsql).Copy();
mainfrm.strsql = "SELECT [Warn_ID] ,[Warn_Info] ,[Warn_Level] FROM [Warn_InfoPlc] order by Warn_ID";
mainfrm.ds_WarnList_Plc = clsDBConn_sql.connDt(mainfrm.strsql).Copy();
mainfrm.strsql = "SELECT [Assembly_Line],[Loc_ID] ,[Flag_Value] ,[Loc_X] ,[Loc_Y] ,[Binding] ,[Area] ,[Assembly_ID] ,[Bank] ,[Speed] ,[Next_Station1] ,[Drict1] ,[LongTime1] ,[Next_Station2],[Drict2] ,[LongTime2] ,[Next_Station3] ,[Drict3] ,[LongTime3] FROM [LandMarkInfo]";
mainfrm.ds_linelandmark = clsDBConn_sql.connDt(mainfrm.strsql).Copy();
mainfrm.strsql = "SELECT [Assembly_ID] as 当前产线编号, [LandMark_ID] as 当前地标编号, [Assembly_ID2] as 参考产线编号, [LandMark_ID2] as 参考地标编号 , agv_no as AGV编号 ,reset_mode as 复位模式 FROM Crossing_LandMark order by [Assembly_ID] , [LandMark_ID] ";
mainfrm.ds_CrossInfo = clsDBConn_sql.connDt(mainfrm.strsql).Copy();
mainfrm.ds_CrossInfo1 = mainfrm.ds_CrossInfo;
mainfrm.ds_CrossInfo2 = mainfrm.ds_CrossInfo;
mainfrm.ds_CrossInfo3 = mainfrm.ds_CrossInfo;
Func.Agv_Location_Temp = new int[(int)Param.AGV_Qty];
for (int j = 0; j < (int)Param.AGV_Qty; j++)
{
Func.Agv_Location_Temp[j] = 0;
}
mainfrm.Init();
mainfrm.Delog();
DataSet dataSet = new DataSet();
mainfrm.strsql = "SELECT ProjectInfo.[Prj_ID], ProjectInfo.[Prj_Name], ProjectInfo.[Remark] FROM ProjectInfo";
dataSet = mainfrm.db.connDt(mainfrm.strsql);
bool flag2 = dataSet == null;
if (flag2)
{
DatabaseSet databaseSet2 = new DatabaseSet();
databaseSet2.ShowDialog();
return false;
}
bool flag3 = dataSet.Tables[0].Rows.Count > 0;
if (flag3)
{
Param.Pro_id = dataSet.Tables[0].Rows[0][0].ToString();
Param.Pro_factory = dataSet.Tables[0].Rows[0][1].ToString();
Param.Pro_remark = dataSet.Tables[0].Rows[0][2].ToString();
}
mainfrm.strsql = "SELECT '' as 时间 ,'' as 线体编号 , '' as 线体名称 , '' as 设备编号, '' as 内部编号, '' as 报警信息";
mainfrm.ds_AgvWarn = mainfrm.db.connDt(mainfrm.strsql).Copy();
mainfrm.ds_AgvWarn.Tables[0].Rows.RemoveAt(0);
mainfrm.strsql = "SELECT '' as 时间 ,'' as 线体编号 , '' as 线体名称 , '' as 设备编号, '' as 内部编号, '' as 位置, '' as 放行结果";
mainfrm.ds_AGVGo = mainfrm.db.connDt(mainfrm.strsql).Copy();
mainfrm.ds_AGVGo.Tables[0].Rows.RemoveAt(0);
}
catch
{
MessageBox.Show("系统数据库连接参数可能尚未配置,请配置数据库参数!", "华晓AGV管理系统", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return false;
}
bool flag4 = Param.Card1_Interval > 0;
if (flag4)
{
mainfrm.myDevice_DI0 = default(DeviceInformation);
mainfrm.myDevice_DI0.Description = "PCI-1730,BID#0";
mainfrm.myDevice_DI0.DeviceMode = AccessMode.ModeRead;
mainfrm.myDevice_DI0.DeviceNumber = 0;
mainfrm.myDevice_DI0.ModuleIndex = 0;
mainfrm.myDevice_DO0 = default(DeviceInformation);
mainfrm.myDevice_DO0.Description = "PCI-1730,BID#0";
mainfrm.myDevice_DO0.DeviceMode = AccessMode.ModeWrite;
mainfrm.myDevice_DO0.DeviceNumber = 0;
mainfrm.myDevice_DO0.ModuleIndex = 0;
}
bool flag5 = Param.Card2_Interval > 0;
if (flag5)
{
mainfrm.myDevice_DI1 = default(DeviceInformation);
mainfrm.myDevice_DI1.Description = "PCI-1730,BID#1";
mainfrm.myDevice_DI1.DeviceMode = AccessMode.ModeRead;
mainfrm.myDevice_DI1.DeviceNumber = 0;
mainfrm.myDevice_DI1.ModuleIndex = 0;
mainfrm.myDevice_DO1 = default(DeviceInformation);
mainfrm.myDevice_DO1.Description = "PCI-1730,BID#1";
mainfrm.myDevice_DO1.DeviceMode = AccessMode.ModeWrite;
mainfrm.myDevice_DO1.DeviceNumber = 0;
mainfrm.myDevice_DO1.ModuleIndex = 0;
}
bool flag6 = Param.Card3_Interval > 0;
if (flag6)
{
mainfrm.myDevice_DI2 = default(DeviceInformation);
mainfrm.myDevice_DI2.Description = "PCI-1730,BID#2";
mainfrm.myDevice_DI2.DeviceMode = AccessMode.ModeRead;
mainfrm.myDevice_DI2.DeviceNumber = 0;
mainfrm.myDevice_DI2.ModuleIndex = 0;
mainfrm.myDevice_DO2 = default(DeviceInformation);
mainfrm.myDevice_DO2.Description = "PCI-1730,BID#2";
mainfrm.myDevice_DO2.DeviceMode = AccessMode.ModeWrite;
mainfrm.myDevice_DO2.DeviceNumber = 0;
mainfrm.myDevice_DO2.ModuleIndex = 0;
}
result = true;
}
return result;
}
// Token: 0x0600013E RID: 318 RVA: 0x0003915C File Offset: 0x0003735C
private void yunxingjiankongToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
foreach (object obj in this.menuStrip1.Items)
{
ToolStripMenuItem toolStripMenuItem = (ToolStripMenuItem)obj;
toolStripMenuItem.BackColor = Color.WhiteSmoke;
}
}
catch
{
}
((ToolStripMenuItem)sender).BackColor = Color.White;
this.tool_display('R');
}
// Token: 0x0600013F RID: 319 RVA: 0x00002460 File Offset: 0x00000660
private void toolStripButton1_Click(object sender, EventArgs e)
{
}
// Token: 0x06000140 RID: 320 RVA: 0x000391F4 File Offset: 0x000373F4
private void toolStripButton2_Click(object sender, EventArgs e)
{
Param.StartFlag = false;
this.tbtn_start.Text = "开始调度";
this.tbtn_stop2.Enabled = false;
this.tbtn_stop1.Enabled = false;
this.tbtn_start.Enabled = true;
}
// Token: 0x06000141 RID: 321 RVA: 0x00039240 File Offset: 0x00037440
private void 资料管理ToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
foreach (object obj in this.menuStrip1.Items)
{
ToolStripMenuItem toolStripMenuItem = (ToolStripMenuItem)obj;
toolStripMenuItem.BackColor = Color.WhiteSmoke;
}
}
catch
{
}
((ToolStripMenuItem)sender).BackColor = Color.White;
this.tool_display('M');
}
// Token: 0x06000142 RID: 322 RVA: 0x000392D8 File Offset: 0x000374D8
private void 系统设置ToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
foreach (object obj in this.menuStrip1.Items)
{
ToolStripMenuItem toolStripMenuItem = (ToolStripMenuItem)obj;
toolStripMenuItem.BackColor = Color.WhiteSmoke;
}
}
catch
{
}
((ToolStripMenuItem)sender).BackColor = Color.White;
this.tool_display('S');
}
// Token: 0x06000143 RID: 323 RVA: 0x00039370 File Offset: 0x00037570
private void 帮助ToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
foreach (object obj in this.menuStrip1.Items)
{
ToolStripMenuItem toolStripMenuItem = (ToolStripMenuItem)obj;
toolStripMenuItem.BackColor = Color.WhiteSmoke;
}
}
catch
{
}
((ToolStripMenuItem)sender).BackColor = Color.White;
this.tool_display('H');
}
// Token: 0x06000144 RID: 324 RVA: 0x00039408 File Offset: 0x00037608
private void 报表查询RToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
foreach (object obj in this.menuStrip1.Items)
{
ToolStripMenuItem toolStripMenuItem = (ToolStripMenuItem)obj;
toolStripMenuItem.BackColor = Color.WhiteSmoke;
}
}
catch
{
}
((ToolStripMenuItem)sender).BackColor = Color.White;
this.tool_display('P');
}
// Token: 0x06000145 RID: 325 RVA: 0x000394A0 File Offset: 0x000376A0
private void toolStripButton5_Click(object sender, EventArgs e)
{
new AGVManage
{
MdiParent = this
}.Show();
}
// Token: 0x06000146 RID: 326 RVA: 0x000394C4 File Offset: 0x000376C4
private void toolStripButton7_Click(object sender, EventArgs e)
{
new APInfo
{
MdiParent = this
}.Show();
}
// Token: 0x06000147 RID: 327 RVA: 0x000394E8 File Offset: 0x000376E8
private void toolStripButton4_Click(object sender, EventArgs e)
{
new APTest
{
MdiParent = this
}.Show();
}
// Token: 0x06000148 RID: 328 RVA: 0x0003950C File Offset: 0x0003770C
private void toolStripButton8_Click(object sender, EventArgs e)
{
new SetControl(base.ClientSize.Width - 5, base.ClientSize.Height - this.menuStrip1.Height - this.toolStrip1.Height - this.statusStrip1.Height - 5)
{
MdiParent = this
}.Show();
}
// Token: 0x06000149 RID: 329 RVA: 0x00039574 File Offset: 0x00037774
private void toolStripButton6_Click(object sender, EventArgs e)
{
new Linemanage
{
MdiParent = this
}.Show();
}
// Token: 0x0600014A RID: 330 RVA: 0x00039598 File Offset: 0x00037798
private void toolStripButton11_Click(object sender, EventArgs e)
{
new Control_Point(base.ClientSize.Width - 5, base.ClientSize.Height - this.menuStrip1.Height - this.toolStrip1.Height - this.statusStrip1.Height - 5)
{
MdiParent = this
}.Show();
}
// Token: 0x0600014B RID: 331 RVA: 0x00039600 File Offset: 0x00037800
private void toolStripButton18_Click(object sender, EventArgs e)
{
this.tbtn_stop2.ToolTipText = "停止调度";
bool flag = this.frm1 == null;
if (flag)
{
Param.StartFlag = true;
this.tbtn_start.Text = "正在调度";
this.cmb_map.Enabled = true;
try
{
this.frm1 = (Form)Assembly.Load("华晓AGV管理系统").CreateInstance("AGVSystem.Frm_" + Param.Pro_id);
bool flag2 = this.frm1 == null;
if (flag2)
{
MessageBox.Show("没有找到对应的窗体,frm1 = null");
return;
}
}
catch
{
MessageBox.Show("没有找到对应的窗体!");
return;
}
bool flag3 = !Param.Frm_Ischild;
if (flag3)
{
this.frm1.MdiParent = this;
}
this.frm1.StartPosition = FormStartPosition.CenterScreen;
this.frm1.Show();
this.cmb_map.SelectedIndex = 0;
this.tbtn_stop2.Enabled = true;
this.tbtn_stop1.Enabled = true;
this.tbtn_start.Enabled = false;
}
else
{
this.frm1.Activate();
Param.StartFlag = true;
this.tbtn_start.Text = "正在调度";
this.tbtn_stop2.Enabled = true;
this.tbtn_stop1.Enabled = true;
this.tbtn_start.Enabled = false;
}
}
// Token: 0x0600014C RID: 332 RVA: 0x00039778 File Offset: 0x00037978
private void toolStripButton14_Click(object sender, EventArgs e)
{
try
{
Process.Start(Application.StartupPath + "\\华晓AGV管理系统操作手册.pdf");
}
catch
{
MessageBox.Show("没有找到制定文件!");
}
}
// Token: 0x0600014D RID: 333 RVA: 0x000397C0 File Offset: 0x000379C0
private void toolStripButton16_Click(object sender, EventArgs e)
{
AboutBox1 aboutBox = new AboutBox1();
aboutBox.ShowDialog();
}
// Token: 0x0600014E RID: 334 RVA: 0x000397DC File Offset: 0x000379DC
private void mainfrm_Load(object sender, EventArgs e)
{
this.tool_display('R');
bool auto_Control = Param.Auto_Control;
if (auto_Control)
{
this.toolStripButton18_Click(null, null);
}
}
// Token: 0x0600014F RID: 335 RVA: 0x00039808 File Offset: 0x00037A08
private static void Init()
{
mainfrm.db = new ClsDBConn_sql();
DataSet dataSet = new DataSet();
string str = "SELECT [Col_Name],[Col_Value] FROM [SysParam]";
try
{
dataSet = mainfrm.db.connDt(str);
bool flag = dataSet == null;
if (!flag)
{
foreach (object obj in dataSet.Tables[0].Rows)
{
DataRow dataRow = (DataRow)obj;
bool flag2 = dataRow["Col_Name"].ToString().Trim() == "Day_Count";
if (flag2)
{
Param.Day_Count = (int)Convert.ToInt16(dataRow["Col_Value"]);
}
else
{
bool flag3 = dataRow["Col_Name"].ToString().Trim() == "Card1_Interval";
if (flag3)
{
Param.Card1_Interval = (int)Convert.ToInt16(dataRow["Col_Value"]);
}
else
{
bool flag4 = dataRow["Col_Name"].ToString().Trim() == "Card2_Interval";
if (flag4)
{
Param.Card2_Interval = (int)Convert.ToInt16(dataRow["Col_Value"]);
}
else
{
bool flag5 = dataRow["Col_Name"].ToString().Trim() == "Card3_Interval";
if (flag5)
{
Param.Card3_Interval = (int)Convert.ToInt16(dataRow["Col_Value"]);
}
else
{
bool flag6 = dataRow["Col_Name"].ToString().Trim() == "Auto_Control";
if (flag6)
{
Param.Auto_Control = Convert.ToBoolean(dataRow["Col_Value"]);
}
else
{
bool flag7 = dataRow["Col_Name"].ToString().Trim() == "map1_status";
if (flag7)
{
Param.map1_status = Convert.ToBoolean(dataRow["Col_Value"]);
}
else
{
bool flag8 = dataRow["Col_Name"].ToString().Trim() == "map2_status";
if (flag8)
{
Param.map2_status = Convert.ToBoolean(dataRow["Col_Value"]);
}
else
{
bool flag9 = dataRow["Col_Name"].ToString().Trim() == "map3_status";
if (flag9)
{
Param.map3_status = Convert.ToBoolean(dataRow["Col_Value"]);
}
else
{
bool flag10 = dataRow["Col_Name"].ToString().Trim() == "Load_Path_His";
if (flag10)
{
Param.Load_Path_His = Convert.ToBoolean(dataRow["Col_Value"]);
}
else
{
bool flag11 = dataRow["Col_Name"].ToString().Trim() == "AgvLoc_Dynamic_Display";
if (flag11)
{
Param.Agv_Location_Auto_Display = Convert.ToBoolean(dataRow["Col_Value"]);
}
else
{
bool flag12 = dataRow["Col_Name"].ToString().Trim() == "PLC_Type";
if (flag12)
{
Param.PLC_Type = Convert.ToByte(dataRow["Col_Value"]);
}
else
{
bool flag13 = dataRow["Col_Name"].ToString().Trim() == "Frm_Ischild";
if (flag13)
{
Param.Frm_Ischild = Convert.ToBoolean(dataRow["Col_Value"]);
}
else
{
bool flag14 = dataRow["Col_Name"].ToString().Trim() == "Xj_Time1";
if (flag14)
{
Param.Xj_Time1 = dataRow["Col_Value"].ToString();
}
else
{
bool flag15 = dataRow["Col_Name"].ToString().Trim() == "Xj_Time2";
if (flag15)
{
Param.Xj_Time2 = dataRow["Col_Value"].ToString();
}
else
{
bool flag16 = dataRow["Col_Name"].ToString().Trim() == "Car_Size";
if (flag16)
{
Param.Icon_Size = (int)Convert.ToInt16(dataRow["Col_Value"].ToString());
bool flag17 = Param.Icon_Size < 21;
if (flag17)
{
Param.Icon_Size = 21;
}
bool flag18 = Param.Icon_Size > 150;
if (flag18)
{
Param.Icon_Size = 150;
}
}
else
{
bool flag19 = dataRow["Col_Name"].ToString().Trim() == "Location_ID_Dispaly";
if (flag19)
{
Param.Location_ID_Dispaly = Convert.ToBoolean(dataRow["Col_Value"]);
}
else
{
bool flag20 = dataRow["Col_Name"].ToString().Trim() == "Wait_Time1";
if (flag20)
{
Param.Wait_Time1 = (int)Convert.ToInt16(dataRow["Col_Value"]);
}
else
{
bool flag21 = dataRow["Col_Name"].ToString().Trim() == "Wait_Time2";
if (flag21)
{
Param.Wait_Time2 = (int)Convert.ToInt16(dataRow["Col_Value"]);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "华晓AGV管理系统", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
// Token: 0x06000150 RID: 336 RVA: 0x00039DA8 File Offset: 0x00037FA8
private void toolStripButton12_Click(object sender, EventArgs e)
{
new SysSet
{
MdiParent = this
}.Show();
}
// Token: 0x06000151 RID: 337 RVA: 0x00039DCC File Offset: 0x00037FCC
private void tool_display(char a)
{
bool flag = a == 'R';
if (flag)
{
this.tbtn_start.Visible = true;
this.toolS1.Visible = true;
this.tbtn_stop1.Visible = true;
this.toolS2.Visible = true;
this.tbtn_stop2.Visible = true;
this.toolS3.Visible = true;
this.tbtn_warn.Visible = true;
this.toolS4.Visible = true;
this.tbtn_ap_st.Visible = true;
this.toolS5.Visible = true;
this.tbtn_agvm.Visible = false;
this.toolS6.Visible = false;
this.tbtn_xt.Visible = false;
this.toolS7.Visible = false;
this.tbtn_ap_info.Visible = false;
this.toolS8.Visible = false;
this.tbtn_pathset.Visible = false;
this.toolS9.Visible = false;
this.tbtn_dbset.Visible = false;
this.toolS10.Visible = false;
this.tbtn_yc_log.Visible = false;
this.toolS11.Visible = false;
this.tbtn_lj_log.Visible = false;
this.toolS12.Visible = false;
this.tbtn_database_set.Visible = false;
this.toolS13.Visible = false;
this.tbtn_param_set.Visible = false;
this.toolS14.Visible = false;
this.toolS17.Visible = true;
this.toolStripButton1.Visible = false;
this.toolStripSeparator1.Visible = false;
this.toolStripButton2.Visible = false;
this.toolStripSeparator2.Visible = false;
this.toolStripButton3.Visible = true;
this.toolStripSeparator3.Visible = true;
this.toolStripButton4.Visible = false;
this.toolStripSeparator4.Visible = false;
this.toolS18.Visible = false;
this.tbtn_change.Visible = false;
}
else
{
bool flag2 = a == 'M';
if (flag2)
{
this.tbtn_start.Visible = false;
this.toolS1.Visible = false;
this.tbtn_stop1.Visible = false;
this.toolS2.Visible = false;
this.tbtn_stop2.Visible = false;
this.toolS3.Visible = false;
this.tbtn_warn.Visible = false;
this.toolS4.Visible = false;
this.tbtn_ap_st.Visible = false;
this.toolS5.Visible = false;
this.tbtn_agvm.Visible = true;
this.toolS6.Visible = true;
this.tbtn_xt.Visible = true;
this.toolS7.Visible = true;
this.tbtn_ap_info.Visible = true;
this.toolS8.Visible = true;
this.tbtn_pathset.Visible = true;
this.toolS9.Visible = true;
this.tbtn_dbset.Visible = true;
this.toolS10.Visible = true;
this.tbtn_yc_log.Visible = false;
this.toolS11.Visible = false;
this.tbtn_lj_log.Visible = false;
this.toolS12.Visible = false;
this.tbtn_database_set.Visible = false;
this.toolS13.Visible = false;
this.tbtn_param_set.Visible = false;
this.toolS14.Visible = false;
this.toolS_inter.Visible = false;
this.toolS17.Visible = false;
this.toolStripButton1.Visible = false;
this.toolStripSeparator1.Visible = false;
this.toolStripButton2.Visible = false;
this.toolStripSeparator2.Visible = false;
this.toolStripButton3.Visible = false;
this.toolStripSeparator3.Visible = false;
this.toolStripButton4.Visible = false;
this.toolStripSeparator4.Visible = false;
this.toolS18.Visible = false;
this.tbtn_change.Visible = false;
}
else
{
bool flag3 = a == 'S';
if (flag3)
{
this.tbtn_start.Visible = false;
this.toolS1.Visible = false;
this.tbtn_stop1.Visible = false;
this.toolS2.Visible = false;
this.tbtn_stop2.Visible = false;
this.toolS3.Visible = false;
this.tbtn_warn.Visible = false;
this.toolS4.Visible = false;
this.tbtn_ap_st.Visible = false;
this.toolS5.Visible = false;
this.tbtn_agvm.Visible = false;
this.toolS6.Visible = false;
this.tbtn_xt.Visible = false;
this.toolS7.Visible = false;
this.tbtn_ap_info.Visible = false;
this.toolS8.Visible = false;
this.tbtn_pathset.Visible = false;
this.toolS9.Visible = false;
this.tbtn_dbset.Visible = false;
this.toolS10.Visible = false;
this.tbtn_yc_log.Visible = false;
this.toolS11.Visible = false;
this.tbtn_lj_log.Visible = false;
this.toolS12.Visible = false;
this.tbtn_database_set.Visible = true;
this.toolS13.Visible = true;
this.tbtn_param_set.Visible = true;
this.toolS14.Visible = true;
this.toolS_inter.Visible = false;
this.toolS17.Visible = false;
this.toolStripButton1.Visible = false;
this.toolStripSeparator1.Visible = false;
this.toolStripButton2.Visible = false;
this.toolStripSeparator2.Visible = false;
this.toolStripButton3.Visible = false;
this.toolStripSeparator3.Visible = false;
this.toolStripButton4.Visible = true;
this.toolStripSeparator4.Visible = true;
this.toolS18.Visible = false;
this.tbtn_change.Visible = false;
}
else
{
bool flag4 = a == 'P';
if (flag4)
{
this.tbtn_start.Visible = false;
this.toolS1.Visible = false;
this.tbtn_stop1.Visible = false;
this.toolS2.Visible = false;
this.tbtn_stop2.Visible = false;
this.toolS3.Visible = false;
this.tbtn_warn.Visible = false;
this.toolS4.Visible = false;
this.tbtn_ap_st.Visible = false;
this.toolS5.Visible = false;
this.tbtn_agvm.Visible = false;
this.toolS6.Visible = false;
this.tbtn_xt.Visible = false;
this.toolS7.Visible = false;
this.tbtn_ap_info.Visible = false;
this.toolS8.Visible = false;
this.tbtn_pathset.Visible = false;
this.toolS9.Visible = false;
this.tbtn_dbset.Visible = false;
this.toolS10.Visible = false;
this.tbtn_yc_log.Visible = true;
this.toolS11.Visible = true;
this.tbtn_lj_log.Visible = true;
this.toolS12.Visible = true;
this.tbtn_database_set.Visible = false;
this.toolS13.Visible = false;
this.tbtn_param_set.Visible = false;
this.toolS14.Visible = false;
this.toolS_inter.Visible = false;
this.toolS17.Visible = false;
this.toolStripButton1.Visible = true;
this.toolStripSeparator1.Visible = true;
this.toolStripButton2.Visible = true;
this.toolStripSeparator2.Visible = true;
this.toolStripButton3.Visible = false;
this.toolStripSeparator3.Visible = false;
this.toolStripButton4.Visible = false;
this.toolStripSeparator4.Visible = false;
this.toolS18.Visible = true;
this.tbtn_change.Visible = true;
}
else
{
bool flag5 = a == 'H';
if (flag5)
{
this.tbtn_start.Visible = false;
this.toolS1.Visible = false;
this.tbtn_stop1.Visible = false;
this.toolS2.Visible = false;
this.tbtn_stop2.Visible = false;
this.toolS3.Visible = false;
this.tbtn_warn.Visible = false;
this.toolS4.Visible = false;
this.tbtn_ap_st.Visible = false;
this.toolS5.Visible = false;
this.tbtn_agvm.Visible = false;
this.toolS6.Visible = false;
this.tbtn_xt.Visible = false;
this.toolS7.Visible = false;
this.tbtn_ap_info.Visible = false;
this.toolS8.Visible = false;
this.tbtn_pathset.Visible = false;
this.toolS9.Visible = false;
this.tbtn_dbset.Visible = false;
this.toolS10.Visible = false;
this.tbtn_yc_log.Visible = false;
this.toolS11.Visible = false;
this.tbtn_lj_log.Visible = false;
this.toolS12.Visible = false;
this.tbtn_database_set.Visible = false;
this.toolS13.Visible = false;
this.tbtn_param_set.Visible = false;
this.toolS14.Visible = false;
this.toolS_inter.Visible = false;
this.toolS17.Visible = false;
this.toolStripButton1.Visible = false;
this.toolStripSeparator1.Visible = false;
this.toolStripButton2.Visible = false;
this.toolStripSeparator2.Visible = false;
this.toolStripButton3.Visible = false;
this.toolStripSeparator3.Visible = false;
this.toolStripButton4.Visible = false;
this.toolStripSeparator4.Visible = false;
this.toolS18.Visible = false;
this.tbtn_change.Visible = false;
}
}
}
}
}
}
// Token: 0x06000152 RID: 338 RVA: 0x0003A851 File Offset: 0x00038A51
private void cmb_map_SelectedIndexChanged(object sender, EventArgs e)
{
Param.Map_ID = (byte)this.cmb_map.SelectedIndex;
}
// Token: 0x06000153 RID: 339 RVA: 0x0003A865 File Offset: 0x00038A65
private void toolStripButton13_Click(object sender, EventArgs e)
{
Application.Exit();
}
// Token: 0x06000154 RID: 340 RVA: 0x0003A870 File Offset: 0x00038A70
private void tbtn_warn_Click(object sender, EventArgs e)
{
warnlist warnlist = new warnlist();
warnlist.Show();
}
// Token: 0x06000155 RID: 341 RVA: 0x0003A88C File Offset: 0x00038A8C
private void tbtn_stop2_Click(object sender, EventArgs e)
{
bool flag = Param.Thread_Count == -1;
if (flag)
{
Param.Thread_Count = (int)Param.AGV_Qty;
Param.StartFlag = false;
this.tbtn_start.Enabled = true;
this.tbtn_stop1.Enabled = false;
this.tbtn_stop2.Enabled = false;
}
}
// Token: 0x06000156 RID: 342 RVA: 0x0003A8E0 File Offset: 0x00038AE0
private void tbtn_database_set_Click(object sender, EventArgs e)
{
new DatabaseSet
{
MdiParent = this
}.Show();
}
// Token: 0x06000157 RID: 343 RVA: 0x0003A904 File Offset: 0x00038B04
private void timer1_Tick(object sender, EventArgs e)
{
this.toolS_timer.Text = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss ");
bool flag = Param.Thread_Count != -1;
if (flag)
{
this.tbtn_stop2.ToolTipText = "停止调度..." + Param.Thread_Count.ToString();
}
this.day = (byte)DateTime.Now.Day;
bool flag2 = this.day - this.day_temp == 1;
if (flag2)
{
this.day_temp = this.day;
mainfrm.Delog();
}
else
{
this.day_temp = this.day;
}
}
// Token: 0x06000158 RID: 344 RVA: 0x0003A9AC File Offset: 0x00038BAC
private void toolS_inter_Click(object sender, EventArgs e)
{
bool flag = mainfrm.frm_card1 == null;
if (flag)
{
mainfrm.frm_card1 = new frm_card();
mainfrm.frm_card1.MdiParent = this;
mainfrm.frm_card1.Show();
}
else
{
mainfrm.frm_card1.Activate();
}
}
// Token: 0x06000159 RID: 345 RVA: 0x0003A9F8 File Offset: 0x00038BF8
private void mainfrm_MouseMove(object sender, MouseEventArgs e)
{
mainfrm.Lab_location.Text = string.Concat(new string[]
{
"X ",
e.X.ToString(),
" ,Y ",
e.Y.ToString(),
" ]"
});
}
// Token: 0x0600015A RID: 346 RVA: 0x0003AA58 File Offset: 0x00038C58
public static void Delog()
{
mainfrm.db = new ClsDBConn_sql();
string sqlstr = "Delete FROM Go_Log where datediff( day,Dt , SYSDATETIME()) >" + Param.Day_Count.ToString();
mainfrm.db.Command(sqlstr);
sqlstr = "Delete FROM Location_log where datediff( day,Dt , SYSDATETIME()) >" + Param.Day_Count.ToString();
mainfrm.db.Command(sqlstr);
sqlstr = "Delete FROM net_log where datediff( day,Dt , SYSDATETIME()) >" + Param.Day_Count.ToString();
mainfrm.db.Command(sqlstr);
sqlstr = "Delete FROM warn_log where datediff( day,Dt , SYSDATETIME()) >" + Param.Day_Count.ToString();
mainfrm.db.Command(sqlstr);
sqlstr = "Delete FROM change_log where datediff( day,Start_time , SYSDATETIME()) >" + Param.Day_Count.ToString();
mainfrm.db.Command(sqlstr);
}
// Token: 0x0600015B RID: 347 RVA: 0x0003AB18 File Offset: 0x00038D18
private void tbtn_yc_log_Click(object sender, EventArgs e)
{
new frmwarnfind
{
MdiParent = this
}.Show();
}
// Token: 0x0600015C RID: 348 RVA: 0x0003AB3C File Offset: 0x00038D3C
private void tbtn_lj_log_Click(object sender, EventArgs e)
{
new frmfind("地标读取日志")
{
MdiParent = this
}.Show();
}
// Token: 0x0600015D RID: 349 RVA: 0x0003AB64 File Offset: 0x00038D64
private void toolStripButton1_Click_1(object sender, EventArgs e)
{
new frmfind("AGV放行日志")
{
MdiParent = this
}.Show();
}
// Token: 0x0600015E RID: 350 RVA: 0x0003AB8C File Offset: 0x00038D8C
private void toolStripButton2_Click_1(object sender, EventArgs e)
{
new frmnetfind("网络异常日志")
{
MdiParent = this
}.Show();
}
// Token: 0x0600015F RID: 351 RVA: 0x0003ABB4 File Offset: 0x00038DB4
private void toolStripButton3_Click(object sender, EventArgs e)
{
bool flag = mainfrm.frm_Path_Status == null;
if (flag)
{
mainfrm.frm_Path_Status = new Frm_Path_Status();
mainfrm.frm_Path_Status.MdiParent = this;
mainfrm.frm_Path_Status.Width = base.ClientSize.Width - 5;
mainfrm.frm_Path_Status.Height = base.ClientSize.Height - this.menuStrip1.Height - this.toolStrip1.Height - this.statusStrip1.Height - 5;
mainfrm.frm_Path_Status.StartPosition = FormStartPosition.CenterScreen;
mainfrm.frm_Path_Status.Show();
}
else
{
mainfrm.frm_Path_Status.Activate();
}
}
// Token: 0x06000160 RID: 352 RVA: 0x0003AC6C File Offset: 0x00038E6C
private void toolStripButton4_Click_1(object sender, EventArgs e)
{
new logon
{
StartPosition = FormStartPosition.CenterScreen
}.Show();
}
// Token: 0x06000161 RID: 353 RVA: 0x0003AC90 File Offset: 0x00038E90
private void toolStripStatusLabel2_TextChanged(object sender, EventArgs e)
{
bool flag = !this.toolStripStatusLabel2.Visible;
if (flag)
{
this.toolStripStatusLabel2.Visible = !this.toolStripStatusLabel2.Visible;
}
}
// Token: 0x06000162 RID: 354 RVA: 0x0003ACCC File Offset: 0x00038ECC
private void tbtn_change_Click(object sender, EventArgs e)
{
new frmchangefind("充电记录")
{
MdiParent = this
}.Show();
}
// Token: 0x06000163 RID: 355 RVA: 0x0003ACF4 File Offset: 0x00038EF4
private void mainfrm_FormClosing(object sender, FormClosingEventArgs e)
{
bool flag = !this.Force_Closed_Flag;
if (flag)
{
bool flag2 = MessageBox.Show("是否确定要退出AGV调度管理系统?", "警告!", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) == DialogResult.No;
if (flag2)
{
e.Cancel = true;
}
else
{
Application.ExitThread();
}
}
}
// Token: 0x06000164 RID: 356 RVA: 0x0003AD3C File Offset: 0x00038F3C
private void mainfrm_Resize(object sender, EventArgs e)
{
bool flag = this.frm1 != null;
if (flag)
{
this.frm1.Width = mainfrm.newmainfrm.ClientSize.Width - 5;
this.frm1.Height = mainfrm.newmainfrm.ClientSize.Height - 29 - 74 - 22 - 5;
}
}
// Token: 0x06000165 RID: 357 RVA: 0x00002460 File Offset: 0x00000660
private void mainfrm_FormClosing(object sender, EventArgs e)
{
}
// Token: 0x06000166 RID: 358 RVA: 0x0003ADA4 File Offset: 0x00038FA4
private static void ToolStripMenuItem_Click(object sender, EventArgs e)
{
string text = ((ToolStripMenuItem)sender).Text.Split(new char[]
{
'-'
})[0].Trim();
bool flag = MessageBox.Show("当前启动项目:" + Param.Pro_id + ", 是否要变更启动项目=" + text, "启动项目选择", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes;
if (flag)
{
FileRW.WriteIniValue("item_id", "item_id", text, Application.StartupPath + "\\info.ini");
}
}
// Token: 0x06000167 RID: 359 RVA: 0x00002460 File Offset: 0x00000660
private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
}
// Token: 0x06000168 RID: 360 RVA: 0x00002460 File Offset: 0x00000660
private void toolStripMenuItem1_Click(object sender, EventArgs e)
{
}
// Token: 0x06000169 RID: 361 RVA: 0x00002460 File Offset: 0x00000660
private void toolStripMenuItem2_Click(object sender, EventArgs e)
{
}
// Token: 0x0600016A RID: 362 RVA: 0x0003AE20 File Offset: 0x00039020
private void output设置ToolStripMenuItem_Click(object sender, EventArgs e)
{
OutputSet outputSet = new OutputSet();
outputSet.Show();
}
// Token: 0x0600016B RID: 363 RVA: 0x0003AE3C File Offset: 0x0003903C
private void input设置ToolStripMenuItem_Click(object sender, EventArgs e)
{
InputSet inputSet = new InputSet();
inputSet.Show();
}
// Token: 0x0600016C RID: 364 RVA: 0x0003AE58 File Offset: 0x00039058
private void aGV列表ToolStripMenuItem_Click(object sender, EventArgs e)
{
Agv_Status agv_Status = new Agv_Status();
agv_Status.Show();
}
// Token: 0x0600016D RID: 365 RVA: 0x0003AE73 File Offset: 0x00039073
private void timer2_Tick(object sender, EventArgs e)
{
this.memory_Check();
}
// Token: 0x0600016E RID: 366 RVA: 0x0003AE80 File Offset: 0x00039080
private void 一键复位ToolStripMenuItem1_Click(object sender, EventArgs e)
{
bool flag = mainfrm.All_Agv_Reset[0] == 0;
if (flag)
{
bool flag2 = MessageBox.Show("是否复位所有AGV?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes;
if (flag2)
{
this.toolStripStatusLabel3.Text = "正在复位所有AGV";
for (int i = 0; i < (int)Param.AGV_Qty; i++)
{
mainfrm.All_Agv_Reset[i] = 1;
}
}
}
else
{
this.toolStripStatusLabel3.Text = "";
for (int j = 0; j < (int)Param.AGV_Qty; j++)
{
mainfrm.All_Agv_Reset[j] = 0;
}
}
}
// Token: 0x0600016F RID: 367 RVA: 0x0003AF24 File Offset: 0x00039124
private void 一键停止ToolStripMenuItem_Click(object sender, EventArgs e)
{
bool flag = mainfrm.All_Agv_Stop[0] == 0;
if (flag)
{
bool flag2 = MessageBox.Show("所有AGV是否紧急停止运行?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes;
if (flag2)
{
this.toolStripStatusLabel3.Text = "所有AGV正在停止运行!";
for (int i = 0; i < (int)Param.AGV_Qty; i++)
{
mainfrm.All_Agv_Stop[i] = 1;
}
}
else
{
this.toolStripStatusLabel3.Text = "";
for (int j = 0; j < (int)Param.AGV_Qty; j++)
{
mainfrm.All_Agv_Stop[j] = 0;
}
}
}
}
// Token: 0x06000170 RID: 368 RVA: 0x0003AFCC File Offset: 0x000391CC
private void 一键关机ToolStripMenuItem_Click(object sender, EventArgs e)
{
bool flag = mainfrm.All_Agv_Close[0] == 0;
if (flag)
{
bool flag2 = MessageBox.Show("是否关闭所有AGV?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes;
if (flag2)
{
this.toolStripStatusLabel3.Text = "所有AGV正在关机!";
for (int i = 0; i < (int)Param.AGV_Qty; i++)
{
mainfrm.All_Agv_Close[i] = 1;
}
}
}
else
{
this.toolStripStatusLabel3.Text = "";
for (int j = 0; j < (int)Param.AGV_Qty; j++)
{
mainfrm.All_Agv_Close[j] = 0;
}
}
}
// Token: 0x06000171 RID: 369 RVA: 0x00002460 File Offset: 0x00000660
private void bgcmb_SelectedIndexChanged(object sender, EventArgs e)
{
}
// Token: 0x06000172 RID: 370 RVA: 0x0003B070 File Offset: 0x00039270
private void memory_Check()
{
Process[] processes = Process.GetProcesses();
int num = 0;
try
{
bool flag = Func.AgvInfo.Length == 0;
if (!flag)
{
for (int i = 0; i < processes.Length - 1; i++)
{
Process process = processes[i];
bool flag2 = process.ProcessName.Contains("AGV管理系统");
if (flag2)
{
PerformanceCounter performanceCounter = new PerformanceCounter("Process", "Working Set - Private", process.ProcessName);
float num2 = performanceCounter.NextValue();
bool flag3 = performanceCounter.NextValue() >= 1E+09f;
if (flag3)
{
for (int j = 0; j < Func.AgvInfo.Length; j++)
{
bool bPlcLinked = Func.AgvInfo[j].bPlcLinked;
if (bPlcLinked)
{
num++;
}
}
num = 3;
float num3 = (float)num / (float)Func.AgvInfo.Length;
bool flag4 = (double)((float)num / (float)Func.AgvInfo.Length) <= 0.3;
if (flag4)
{
this.Force_Closed_Flag = true;
Application.Exit();
}
}
}
}
}
}
catch
{
}
}
// Token: 0x06000173 RID: 371 RVA: 0x0003B1AC File Offset: 0x000393AC
public void Display()
{
bool visible = this.menuStrip1.Visible;
if (visible)
{
this.menuStrip1.Visible = false;
this.toolStrip1.Visible = false;
this.statusStrip1.Visible = false;
base.FormBorderStyle = FormBorderStyle.None;
}
}
// Token: 0x06000174 RID: 372 RVA: 0x0003B1FC File Offset: 0x000393FC
public void Display2()
{
bool flag = !this.menuStrip1.Visible;
if (flag)
{
this.menuStrip1.Visible = true;
this.toolStrip1.Visible = true;
this.statusStrip1.Visible = true;
base.FormBorderStyle = FormBorderStyle.Sizable;
}
}
// Token: 0x0400043E RID: 1086
public static mainfrm newmainfrm;
// Token: 0x0400043F RID: 1087
public static ToolStrip toolStrip;
// Token: 0x04000440 RID: 1088
public static ToolStripStatusLabel Lab_location;
// Token: 0x04000441 RID: 1089
public static ToolStripStatusLabel toolStripStatusLabel;
// Token: 0x04000442 RID: 1090
public static ToolStripStatusLabel toolStrip_info;
// Token: 0x04000443 RID: 1091
private static ClsDBConn_sql db;
// Token: 0x04000444 RID: 1092
public static Panel Map1;
// Token: 0x04000445 RID: 1093
public static Panel Map2;
// Token: 0x04000446 RID: 1094
public static Panel Map3;
// Token: 0x04000447 RID: 1095
public static int[] All_Agv_Reset;
// Token: 0x04000448 RID: 1096
public static int[] All_Agv_Stop;
// Token: 0x04000449 RID: 1097
public static int[] All_Agv_Close;
// Token: 0x0400044A RID: 1098
public static DataSet ds_AGVGo = new DataSet();
// Token: 0x0400044B RID: 1099
public static DataSet ds_AgvWarn = new DataSet();
// Token: 0x0400044C RID: 1100
public static DataSet ds_WarnList = new DataSet();
// Token: 0x0400044D RID: 1101
public static DataSet ds_WarnList_Plc = new DataSet();
// Token: 0x0400044E RID: 1102
public static DataSet ds_Agvlist = new DataSet();
// Token: 0x0400044F RID: 1103
public static DataSet ds_CrossInfo = new DataSet();
// Token: 0x04000450 RID: 1104
public static DataSet ds_CrossInfo1 = new DataSet();
// Token: 0x04000451 RID: 1105
public static DataSet ds_CrossInfo2 = new DataSet();
// Token: 0x04000452 RID: 1106
public static DataSet ds_CrossInfo3 = new DataSet();
// Token: 0x04000453 RID: 1107
public static DataSet ds_ProductLine = new DataSet();
// Token: 0x04000454 RID: 1108
public static DataSet ds_linelandmark = new DataSet();
// Token: 0x04000455 RID: 1109
public static DataSet ds_AGV_INFO = new DataSet();
// Token: 0x04000456 RID: 1110
public static DataSet ds_Change = new DataSet();
// Token: 0x04000457 RID: 1111
public static DataSet ds_Card_DO = new DataSet();
// Token: 0x04000458 RID: 1112
public static DataSet ds_Card_DI_Call = new DataSet();
// Token: 0x04000459 RID: 1113
public static DataSet ds_Card_DI_Fx = new DataSet();
// Token: 0x0400045A RID: 1114
public static DataSet ds_Location = new DataSet();
// Token: 0x0400045B RID: 1115
public static byte[,] Card_DI1 = new byte[4, 8];
// Token: 0x0400045C RID: 1116
public static byte[,] Card_DI2 = new byte[4, 8];
// Token: 0x0400045D RID: 1117
public static byte[,] Card_DI3 = new byte[4, 8];
// Token: 0x0400045E RID: 1118
public static byte[,] Card_DO1 = new byte[4, 8];
// Token: 0x0400045F RID: 1119
public static byte[,] Card_DO2 = new byte[4, 8];
// Token: 0x04000460 RID: 1120
public static byte[,] Card_DO3 = new byte[4, 8];
// Token: 0x04000461 RID: 1121
public static DataSet ds_Reset_Relation = new DataSet();
// Token: 0x04000462 RID: 1122
public static DataSet ds_Mileage = new DataSet();
// Token: 0x04000463 RID: 1123
public static DeviceInformation myDevice_DI0;
// Token: 0x04000464 RID: 1124
public static DeviceInformation myDevice_DI1;
// Token: 0x04000465 RID: 1125
public static DeviceInformation myDevice_DI2;
// Token: 0x04000466 RID: 1126
public static DeviceInformation myDevice_DO0;
// Token: 0x04000467 RID: 1127
public static DeviceInformation myDevice_DO1;
// Token: 0x04000468 RID: 1128
public static DeviceInformation myDevice_DO2;
// Token: 0x04000469 RID: 1129
private static string strsql;
// Token: 0x0400046A RID: 1130
private Form frm1;
// Token: 0x0400046B RID: 1131
private byte day = 0;
// Token: 0x0400046C RID: 1132
private byte day_temp = 0;
// Token: 0x0400046D RID: 1133
public static frm_card frm_card1;
// Token: 0x0400046E RID: 1134
public static Frm_Path_Status frm_Path_Status;
// Token: 0x0400046F RID: 1135
private bool Force_Closed_Flag = false;
}
}