1926 lines
61 KiB
C#
1926 lines
61 KiB
C#
using System;
|
||
using System.ComponentModel;
|
||
using System.Data;
|
||
using System.Drawing;
|
||
using System.Windows.Forms;
|
||
using AGVSystem.Cls;
|
||
|
||
namespace AGVSystem
|
||
{
|
||
// Token: 0x0200001C RID: 28
|
||
public partial class SetControl : Form
|
||
{
|
||
// Token: 0x06000183 RID: 387 RVA: 0x0003E33C File Offset: 0x0003C53C
|
||
public SetControl(int w, int h)
|
||
{
|
||
this.InitializeComponent();
|
||
this.panel3.Enabled = false;
|
||
this.panel4.Enabled = false;
|
||
this.panel5.Enabled = false;
|
||
this.panel6.Enabled = false;
|
||
this.panel7.Enabled = false;
|
||
this.panel8.Enabled = false;
|
||
this.panel9.Enabled = false;
|
||
this.panel10.Enabled = false;
|
||
this.panel11.Enabled = false;
|
||
this.panel12.Enabled = false;
|
||
this.panel13.Enabled = false;
|
||
this.panel14.Enabled = false;
|
||
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_standard_line.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line1.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line2.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line3.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line4.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line5.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line6.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line7.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line8.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line9.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line10.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line11.Items.Add(dataRow[0].ToString());
|
||
this.cmb_line12.Items.Add(dataRow[0].ToString());
|
||
}
|
||
this.cmb_standard_line.Items.Add("");
|
||
this.cmb_line1.Items.Add("");
|
||
this.cmb_line2.Items.Add("");
|
||
this.cmb_line3.Items.Add("");
|
||
this.cmb_line4.Items.Add("");
|
||
this.cmb_line5.Items.Add("");
|
||
this.cmb_line6.Items.Add("");
|
||
this.cmb_line7.Items.Add("");
|
||
this.cmb_line8.Items.Add("");
|
||
this.cmb_line9.Items.Add("");
|
||
this.cmb_line10.Items.Add("");
|
||
this.cmb_line11.Items.Add("");
|
||
this.cmb_line12.Items.Add("");
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000184 RID: 388 RVA: 0x0003E78C File Offset: 0x0003C98C
|
||
private void btn_Click()
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.cmb_standard_line.Text == "" || this.cmb_point_id.Text == "";
|
||
if (flag2)
|
||
{
|
||
MessageBox.Show("请设置线体名称和管控点编号!");
|
||
}
|
||
else
|
||
{
|
||
bool flag3 = this.cmb_line1.Text != "";
|
||
if (flag3)
|
||
{
|
||
bool flag4 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode ) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line1.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value1.Text,
|
||
",0,",
|
||
this.cmb_rst1.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag4)
|
||
{
|
||
this.lab_st1.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st1.Text = "×";
|
||
}
|
||
}
|
||
bool flag5 = this.cmb_line2.Text != "";
|
||
if (flag5)
|
||
{
|
||
bool flag6 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode ) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line2.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value2.Text,
|
||
",0,",
|
||
this.cmb_rst2.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag6)
|
||
{
|
||
this.lab_st2.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st2.Text = "×";
|
||
}
|
||
}
|
||
bool flag7 = this.cmb_line3.Text != "";
|
||
if (flag7)
|
||
{
|
||
bool flag8 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode ) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line3.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value3.Text,
|
||
",0,",
|
||
this.cmb_rst3.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag8)
|
||
{
|
||
this.lab_st3.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st3.Text = "×";
|
||
}
|
||
}
|
||
bool flag9 = this.cmb_line4.Text != "";
|
||
if (flag9)
|
||
{
|
||
bool flag10 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode ) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line4.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value4.Text,
|
||
",0,",
|
||
this.cmb_rst4.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag10)
|
||
{
|
||
this.lab_st4.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st4.Text = "×";
|
||
}
|
||
}
|
||
bool flag11 = this.cmb_line5.Text != "";
|
||
if (flag11)
|
||
{
|
||
bool flag12 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line5.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value5.Text,
|
||
",0,",
|
||
this.cmb_rst5.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag12)
|
||
{
|
||
this.lab_st5.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st5.Text = "×";
|
||
}
|
||
}
|
||
bool flag13 = this.cmb_line6.Text != "";
|
||
if (flag13)
|
||
{
|
||
bool flag14 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode ) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line6.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value6.Text,
|
||
",0,",
|
||
this.cmb_rst6.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag14)
|
||
{
|
||
this.lab_st6.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st6.Text = "×";
|
||
}
|
||
}
|
||
bool flag15 = this.cmb_line7.Text != "";
|
||
if (flag15)
|
||
{
|
||
bool flag16 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode ) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line7.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value7.Text,
|
||
",0,",
|
||
this.cmb_rst7.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag16)
|
||
{
|
||
this.lab_st7.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st7.Text = "×";
|
||
}
|
||
}
|
||
bool flag17 = this.cmb_line8.Text != "";
|
||
if (flag17)
|
||
{
|
||
bool flag18 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode ) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line8.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value8.Text,
|
||
",0,",
|
||
this.cmb_rst8.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag18)
|
||
{
|
||
this.lab_st8.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st8.Text = "×";
|
||
}
|
||
}
|
||
bool flag19 = this.cmb_line9.Text != "";
|
||
if (flag19)
|
||
{
|
||
bool flag20 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode ) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line9.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value9.Text,
|
||
",0,",
|
||
this.cmb_rst9.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag20)
|
||
{
|
||
this.lab_st9.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st9.Text = "×";
|
||
}
|
||
}
|
||
bool flag21 = this.cmb_line10.Text != "";
|
||
if (flag21)
|
||
{
|
||
bool flag22 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode ) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line10.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value10.Text,
|
||
",0,",
|
||
this.cmb_rst10.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag22)
|
||
{
|
||
this.lab_st10.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st10.Text = "×";
|
||
}
|
||
}
|
||
bool flag23 = this.cmb_line11.Text != "";
|
||
if (flag23)
|
||
{
|
||
bool flag24 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode ) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line11.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value11.Text,
|
||
",0,",
|
||
this.cmb_rst11.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag24)
|
||
{
|
||
this.lab_st11.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st11.Text = "×";
|
||
}
|
||
}
|
||
bool flag25 = this.cmb_line12.Text != "";
|
||
if (flag25)
|
||
{
|
||
bool flag26 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"insert into Crossing_LandMark ( Assembly_ID, LandMark_ID, Assembly_ID2, LandMark_ID2, agv_no , Reset_Mode ) values (",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_point_id.Text,
|
||
",",
|
||
this.cmb_line12.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
",",
|
||
this.cmb_value12.Text,
|
||
",0,",
|
||
this.cmb_rst12.SelectedIndex.ToString(),
|
||
")"
|
||
})) == "1";
|
||
if (flag26)
|
||
{
|
||
this.lab_st12.Text = "√";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st12.Text = "×";
|
||
}
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.str_sql = "SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0];
|
||
this.ds = this.db.connDt(this.str_sql);
|
||
bool flag27 = this.ds.Tables.Count > 0;
|
||
if (flag27)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000185 RID: 389 RVA: 0x0003F5A8 File Offset: 0x0003D7A8
|
||
private void cmb_standard_line_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_point_id.Items.Clear();
|
||
this.comboBox1.Items.Clear();
|
||
this.ds.Tables.Clear();
|
||
this.lab_plc_value.Text = "";
|
||
bool flag = this.cmb_standard_line.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_point_id.Items.Add(dataRow[0].ToString());
|
||
this.comboBox1.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
this.cmb_point_id_TextChanged(null, null);
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000186 RID: 390 RVA: 0x0003F73C File Offset: 0x0003D93C
|
||
private void cmb_point_id_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.lab_plc_value.Text = this.comboBox1.Items[this.cmb_point_id.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x06000187 RID: 391 RVA: 0x0003F76C File Offset: 0x0003D96C
|
||
private void cmb_line1_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value1.Items.Clear();
|
||
this.cmb_plc1.Items.Clear();
|
||
this.cmb_plc1.Text = "";
|
||
this.cmb_value1.Text = "";
|
||
this.cmb_rst1.SelectedIndex = 1;
|
||
this.lab_st1.Text = "";
|
||
bool flag = this.cmb_line1.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line1.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value1.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc1.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000188 RID: 392 RVA: 0x0003F914 File Offset: 0x0003DB14
|
||
private void cmb_line2_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value2.Items.Clear();
|
||
this.cmb_plc2.Items.Clear();
|
||
this.cmb_plc2.Text = "";
|
||
this.cmb_value2.Text = "";
|
||
this.lab_st2.Text = "";
|
||
this.cmb_rst2.SelectedIndex = 1;
|
||
bool flag = this.cmb_line2.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line2.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value2.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc2.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000189 RID: 393 RVA: 0x0003FABC File Offset: 0x0003DCBC
|
||
private void cmb_line3_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value3.Items.Clear();
|
||
this.cmb_plc3.Items.Clear();
|
||
this.cmb_plc3.Text = "";
|
||
this.cmb_value3.Text = "";
|
||
this.lab_st3.Text = "";
|
||
this.cmb_rst3.SelectedIndex = 1;
|
||
bool flag = this.cmb_line3.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line3.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value3.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc3.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x0600018A RID: 394 RVA: 0x0003FC64 File Offset: 0x0003DE64
|
||
private void cmb_line4_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value4.Items.Clear();
|
||
this.cmb_plc4.Items.Clear();
|
||
this.cmb_plc4.Text = "";
|
||
this.cmb_value4.Text = "";
|
||
this.lab_st4.Text = "";
|
||
this.cmb_rst4.SelectedIndex = 1;
|
||
bool flag = this.cmb_line4.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line4.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value4.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc4.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x0600018B RID: 395 RVA: 0x0003FE0C File Offset: 0x0003E00C
|
||
private void cmb_line5_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value5.Items.Clear();
|
||
this.cmb_plc5.Items.Clear();
|
||
this.cmb_plc5.Text = "";
|
||
this.cmb_value5.Text = "";
|
||
this.lab_st5.Text = "";
|
||
this.cmb_rst5.SelectedIndex = 1;
|
||
bool flag = this.cmb_line5.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line5.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value5.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc5.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x0600018C RID: 396 RVA: 0x0003FFB4 File Offset: 0x0003E1B4
|
||
private void cmb_line6_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value6.Items.Clear();
|
||
this.cmb_plc6.Items.Clear();
|
||
this.cmb_plc6.Text = "";
|
||
this.cmb_value6.Text = "";
|
||
this.lab_st6.Text = "";
|
||
this.cmb_rst6.SelectedIndex = 1;
|
||
bool flag = this.cmb_line6.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line6.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value6.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc6.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x0600018D RID: 397 RVA: 0x0004015C File Offset: 0x0003E35C
|
||
private void cmb_value1_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc1.Text = this.cmb_plc1.Items[this.cmb_value1.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x0600018E RID: 398 RVA: 0x0004018B File Offset: 0x0003E38B
|
||
private void cmb_value2_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc2.Text = this.cmb_plc2.Items[this.cmb_value2.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x0600018F RID: 399 RVA: 0x000401BA File Offset: 0x0003E3BA
|
||
private void cmb_value3_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc3.Text = this.cmb_plc3.Items[this.cmb_value3.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x06000190 RID: 400 RVA: 0x000401E9 File Offset: 0x0003E3E9
|
||
private void cmb_value4_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc4.Text = this.cmb_plc4.Items[this.cmb_value4.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x06000191 RID: 401 RVA: 0x00040218 File Offset: 0x0003E418
|
||
private void cmb_value5_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc5.Text = this.cmb_plc5.Items[this.cmb_value5.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x06000192 RID: 402 RVA: 0x00040247 File Offset: 0x0003E447
|
||
private void cmb_value6_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc6.Text = this.cmb_plc6.Items[this.cmb_value6.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x06000193 RID: 403 RVA: 0x00040278 File Offset: 0x0003E478
|
||
private void cmb_point_id_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_line1.Text = "";
|
||
this.cmb_line2.Text = "";
|
||
this.cmb_line3.Text = "";
|
||
this.cmb_line4.Text = "";
|
||
this.cmb_line5.Text = "";
|
||
this.cmb_line6.Text = "";
|
||
this.cmb_line7.Text = "";
|
||
this.cmb_line8.Text = "";
|
||
this.cmb_line9.Text = "";
|
||
this.cmb_line10.Text = "";
|
||
this.cmb_line11.Text = "";
|
||
this.cmb_line12.Text = "";
|
||
this.ds.Tables.Clear();
|
||
this.str_sql = "SELECT CONVERT( VARCHAR(10),name1.ID) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 ";
|
||
bool flag = this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] != null && this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] != "";
|
||
if (flag)
|
||
{
|
||
this.str_sql = this.str_sql + " and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0];
|
||
}
|
||
bool flag2 = this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] != null && this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] != "";
|
||
if (flag2)
|
||
{
|
||
this.str_sql = this.str_sql + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0];
|
||
}
|
||
this.ds = this.db.connDt(this.str_sql);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000194 RID: 404 RVA: 0x000404BC File Offset: 0x0003E6BC
|
||
private void dataGridView1_DoubleClick(object sender, EventArgs e)
|
||
{
|
||
bool flag = this.dataGridView1.RowCount > 0;
|
||
if (flag)
|
||
{
|
||
string b = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["线体名称"].Value.ToString();
|
||
string b2 = this.dataGridView1.Rows[this.dataGridView1.CurrentRow.Index].Cells["位置编号"].Value.ToString();
|
||
this.cmb_line1.Text = "";
|
||
this.cmb_line2.Text = "";
|
||
this.cmb_line3.Text = "";
|
||
this.cmb_line4.Text = "";
|
||
this.cmb_line5.Text = "";
|
||
this.cmb_line6.Text = "";
|
||
this.cmb_line7.Text = "";
|
||
this.cmb_line8.Text = "";
|
||
this.cmb_line9.Text = "";
|
||
this.cmb_line10.Text = "";
|
||
this.cmb_line11.Text = "";
|
||
this.cmb_line12.Text = "";
|
||
for (int i = 0; i < this.dataGridView1.RowCount; i++)
|
||
{
|
||
bool flag2 = this.dataGridView1.Rows[i].Cells["线体名称"].Value.ToString() == b && this.dataGridView1.Rows[i].Cells["位置编号"].Value.ToString() == b2;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.cmb_line1.Text == "";
|
||
if (flag3)
|
||
{
|
||
this.cmb_line1.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value1.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst1.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
else
|
||
{
|
||
bool flag4 = this.cmb_line2.Text == "";
|
||
if (flag4)
|
||
{
|
||
this.cmb_line2.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value2.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst2.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
else
|
||
{
|
||
bool flag5 = this.cmb_line3.Text == "";
|
||
if (flag5)
|
||
{
|
||
this.cmb_line3.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value3.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst3.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
else
|
||
{
|
||
bool flag6 = this.cmb_line4.Text == "";
|
||
if (flag6)
|
||
{
|
||
this.cmb_line4.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value4.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst4.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
else
|
||
{
|
||
bool flag7 = this.cmb_line5.Text == "";
|
||
if (flag7)
|
||
{
|
||
this.cmb_line5.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value5.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst5.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
else
|
||
{
|
||
bool flag8 = this.cmb_line6.Text == "";
|
||
if (flag8)
|
||
{
|
||
this.cmb_line6.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value6.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst6.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
else
|
||
{
|
||
bool flag9 = this.cmb_line7.Text == "";
|
||
if (flag9)
|
||
{
|
||
this.cmb_line7.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value7.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst7.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
else
|
||
{
|
||
bool flag10 = this.cmb_line8.Text == "";
|
||
if (flag10)
|
||
{
|
||
this.cmb_line8.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value8.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst8.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
else
|
||
{
|
||
bool flag11 = this.cmb_line9.Text == "";
|
||
if (flag11)
|
||
{
|
||
this.cmb_line9.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value9.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst9.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
else
|
||
{
|
||
bool flag12 = this.cmb_line10.Text == "";
|
||
if (flag12)
|
||
{
|
||
this.cmb_line10.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value10.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst10.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
else
|
||
{
|
||
bool flag13 = this.cmb_line11.Text == "";
|
||
if (flag13)
|
||
{
|
||
this.cmb_line11.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value11.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst11.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
else
|
||
{
|
||
bool flag14 = this.cmb_line12.Text == "";
|
||
if (flag14)
|
||
{
|
||
this.cmb_line12.Text = this.dataGridView1.Rows[i].Cells["参考线体"].Value.ToString();
|
||
this.cmb_value12.Text = this.dataGridView1.Rows[i].Cells["参考位置编号"].Value.ToString();
|
||
this.cmb_rst12.SelectedIndex = (int)Convert.ToInt16(this.dataGridView1.Rows[i].Cells["复位模式"].Value.ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
this.panel3.Enabled = false;
|
||
this.panel4.Enabled = false;
|
||
this.panel5.Enabled = false;
|
||
this.panel6.Enabled = false;
|
||
this.panel7.Enabled = false;
|
||
this.panel8.Enabled = false;
|
||
this.panel9.Enabled = false;
|
||
this.panel10.Enabled = false;
|
||
this.panel11.Enabled = false;
|
||
this.panel12.Enabled = false;
|
||
this.panel13.Enabled = false;
|
||
this.panel14.Enabled = false;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000195 RID: 405 RVA: 0x000410DC File Offset: 0x0003F2DC
|
||
private void btn_del1_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line1.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value1.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st1.Text = "√";
|
||
this.cmb_line1.Text = "";
|
||
this.cmb_value1.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st1.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000196 RID: 406 RVA: 0x000412A4 File Offset: 0x0003F4A4
|
||
private void btn_del2_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line2.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value2.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st2.Text = "√";
|
||
this.cmb_line2.Text = "";
|
||
this.cmb_value2.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st2.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000197 RID: 407 RVA: 0x0004146C File Offset: 0x0003F66C
|
||
private void btn_del3_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line3.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value3.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st3.Text = "√";
|
||
this.cmb_line3.Text = "";
|
||
this.cmb_value3.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st3.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000198 RID: 408 RVA: 0x00041634 File Offset: 0x0003F834
|
||
private void btn_del4_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line4.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value4.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st4.Text = "√";
|
||
this.cmb_line4.Text = "";
|
||
this.cmb_value4.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st4.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000199 RID: 409 RVA: 0x000417FC File Offset: 0x0003F9FC
|
||
private void btn_del5_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line5.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value5.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st5.Text = "√";
|
||
this.cmb_line5.Text = "";
|
||
this.cmb_value5.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st5.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x0600019A RID: 410 RVA: 0x000419C4 File Offset: 0x0003FBC4
|
||
private void btn_del6_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line6.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value6.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st6.Text = "√";
|
||
this.cmb_line6.Text = "";
|
||
this.cmb_value6.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st6.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x0600019B RID: 411 RVA: 0x00002460 File Offset: 0x00000660
|
||
private void groupBox2_Enter(object sender, EventArgs e)
|
||
{
|
||
}
|
||
|
||
// Token: 0x0600019C RID: 412 RVA: 0x00041B8C File Offset: 0x0003FD8C
|
||
private void cmb_line7_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value7.Items.Clear();
|
||
this.cmb_plc7.Items.Clear();
|
||
this.cmb_plc7.Text = "";
|
||
this.cmb_value7.Text = "";
|
||
this.lab_st7.Text = "";
|
||
this.cmb_rst7.SelectedIndex = 1;
|
||
bool flag = this.cmb_line7.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line7.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value7.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc7.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x0600019D RID: 413 RVA: 0x00041D34 File Offset: 0x0003FF34
|
||
private void cmb_line8_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value8.Items.Clear();
|
||
this.cmb_plc8.Items.Clear();
|
||
this.cmb_plc8.Text = "";
|
||
this.cmb_value8.Text = "";
|
||
this.lab_st8.Text = "";
|
||
this.cmb_rst8.SelectedIndex = 1;
|
||
bool flag = this.cmb_line8.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line8.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value8.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc8.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x0600019E RID: 414 RVA: 0x00041EDC File Offset: 0x000400DC
|
||
private void cmb_line9_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value9.Items.Clear();
|
||
this.cmb_plc9.Items.Clear();
|
||
this.cmb_plc9.Text = "";
|
||
this.cmb_value9.Text = "";
|
||
this.lab_st9.Text = "";
|
||
this.cmb_rst9.SelectedIndex = 1;
|
||
bool flag = this.cmb_line9.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line9.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value9.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc9.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x0600019F RID: 415 RVA: 0x00042084 File Offset: 0x00040284
|
||
private void cmb_line10_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value10.Items.Clear();
|
||
this.cmb_plc10.Items.Clear();
|
||
this.cmb_plc10.Text = "";
|
||
this.cmb_value10.Text = "";
|
||
this.lab_st10.Text = "";
|
||
this.cmb_rst10.SelectedIndex = 1;
|
||
bool flag = this.cmb_line10.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line10.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value10.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc10.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x060001A0 RID: 416 RVA: 0x0004222C File Offset: 0x0004042C
|
||
private void cmb_line11_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value11.Items.Clear();
|
||
this.cmb_plc11.Items.Clear();
|
||
this.cmb_plc11.Text = "";
|
||
this.cmb_value11.Text = "";
|
||
this.lab_st11.Text = "";
|
||
this.cmb_rst11.SelectedIndex = 1;
|
||
bool flag = this.cmb_line11.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line11.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value11.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc11.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x060001A1 RID: 417 RVA: 0x000423D4 File Offset: 0x000405D4
|
||
private void cmb_line12_TextChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_value12.Items.Clear();
|
||
this.cmb_plc12.Items.Clear();
|
||
this.cmb_plc12.Text = "";
|
||
this.cmb_value12.Text = "";
|
||
this.lab_st12.Text = "";
|
||
this.cmb_rst12.SelectedIndex = 1;
|
||
bool flag = this.cmb_line12.Text == "";
|
||
if (!flag)
|
||
{
|
||
this.ds = this.db.connDt("SELECT distinct [Loc_ID] ,[Flag_Value] FROM [LandMarkInfo] where [Assembly_Line] = " + this.cmb_line12.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Assembly_ID <>0");
|
||
bool flag2 = this.ds.Tables.Count > 0;
|
||
if (flag2)
|
||
{
|
||
bool flag3 = this.ds.Tables[0].Rows.Count > 0;
|
||
if (flag3)
|
||
{
|
||
foreach (object obj in this.ds.Tables[0].Rows)
|
||
{
|
||
DataRow dataRow = (DataRow)obj;
|
||
this.cmb_value12.Items.Add(dataRow[0].ToString());
|
||
this.cmb_plc12.Items.Add(dataRow[1].ToString());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x060001A2 RID: 418 RVA: 0x0004257C File Offset: 0x0004077C
|
||
private void cmb_value7_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc7.Text = this.cmb_plc7.Items[this.cmb_value7.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x060001A3 RID: 419 RVA: 0x000425AB File Offset: 0x000407AB
|
||
private void cmb_value8_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc8.Text = this.cmb_plc8.Items[this.cmb_value8.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x060001A4 RID: 420 RVA: 0x000425DA File Offset: 0x000407DA
|
||
private void cmb_value9_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc9.Text = this.cmb_plc9.Items[this.cmb_value9.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x060001A5 RID: 421 RVA: 0x00042609 File Offset: 0x00040809
|
||
private void cmb_value10_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc10.Text = this.cmb_plc10.Items[this.cmb_value10.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x060001A6 RID: 422 RVA: 0x00042638 File Offset: 0x00040838
|
||
private void cmb_value11_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc11.Text = this.cmb_plc11.Items[this.cmb_value11.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x060001A7 RID: 423 RVA: 0x00042667 File Offset: 0x00040867
|
||
private void cmb_value12_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
this.cmb_plc12.Text = this.cmb_plc12.Items[this.cmb_value12.SelectedIndex].ToString();
|
||
}
|
||
|
||
// Token: 0x060001A8 RID: 424 RVA: 0x00042698 File Offset: 0x00040898
|
||
private void btn_del7_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line7.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value7.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st7.Text = "√";
|
||
this.cmb_line7.Text = "";
|
||
this.cmb_value7.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st7.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x060001A9 RID: 425 RVA: 0x00042860 File Offset: 0x00040A60
|
||
private void btn_del8_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line8.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value8.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st8.Text = "√";
|
||
this.cmb_line8.Text = "";
|
||
this.cmb_value8.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st8.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x060001AA RID: 426 RVA: 0x00042A28 File Offset: 0x00040C28
|
||
private void btn_del9_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line9.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value9.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st9.Text = "√";
|
||
this.cmb_line9.Text = "";
|
||
this.cmb_value9.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st9.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x060001AB RID: 427 RVA: 0x00042BF0 File Offset: 0x00040DF0
|
||
private void btn_del10_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line10.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value10.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st10.Text = "√";
|
||
this.cmb_line10.Text = "";
|
||
this.cmb_value10.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st10.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x060001AC RID: 428 RVA: 0x00042DB8 File Offset: 0x00040FB8
|
||
private void btn_del11_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line11.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value11.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st11.Text = "√";
|
||
this.cmb_line11.Text = "";
|
||
this.cmb_value11.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st11.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x060001AD RID: 429 RVA: 0x00042F80 File Offset: 0x00041180
|
||
private void btn_del12_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
bool flag2 = this.db.Command(string.Concat(new string[]
|
||
{
|
||
"delete from Crossing_LandMark where assembly_id = ",
|
||
this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id = ",
|
||
this.cmb_point_id.Text,
|
||
" and assembly_id2 = ",
|
||
this.cmb_line12.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0],
|
||
" and landmark_id2 = ",
|
||
this.cmb_value12.Text
|
||
})) == "1";
|
||
if (flag2)
|
||
{
|
||
this.lab_st12.Text = "√";
|
||
this.cmb_line12.Text = "";
|
||
this.cmb_value12.Text = "";
|
||
}
|
||
else
|
||
{
|
||
this.lab_st12.Text = "×";
|
||
}
|
||
this.ds.Tables.Clear();
|
||
this.ds = this.db.connDt("SELECT CONVERT( VARCHAR(10),name1.id) +' . '+ name1.line_name as 线体名称, Crossing_LandMark.LandMark_ID as 位置编号, CONVERT( VARCHAR(10),name2.id) +' . '+ name2.line_name as 参考线体, Crossing_LandMark.LandMark_ID2 as 参考位置编号, reset_mode as 复位模式 ,Crossing_LandMark.agv_no AS 当前路口AGV FROM Crossing_LandMark, Assembly_Line as name1 , Assembly_Line as name2 where name1.id = Crossing_LandMark.Assembly_ID and name2.id = Crossing_LandMark.Assembly_ID2 and Crossing_LandMark.Assembly_id= " + this.cmb_standard_line.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0] + " and Crossing_LandMark.landmark_id= " + this.cmb_point_id.Text.Split(new char[]
|
||
{
|
||
'.'
|
||
})[0]);
|
||
bool flag3 = this.ds.Tables.Count > 0;
|
||
if (flag3)
|
||
{
|
||
this.dataGridView1.DataSource = this.ds.Tables[0];
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x060001AE RID: 430 RVA: 0x00002460 File Offset: 0x00000660
|
||
private void toolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
|
||
{
|
||
}
|
||
|
||
// Token: 0x060001AF RID: 431 RVA: 0x00043148 File Offset: 0x00041348
|
||
private void toolStripButton5_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
this.panel3.Enabled = true;
|
||
this.panel4.Enabled = true;
|
||
this.panel5.Enabled = true;
|
||
this.panel6.Enabled = true;
|
||
this.panel7.Enabled = true;
|
||
this.panel8.Enabled = true;
|
||
this.panel9.Enabled = true;
|
||
this.panel10.Enabled = true;
|
||
this.panel11.Enabled = true;
|
||
this.panel12.Enabled = true;
|
||
this.panel13.Enabled = true;
|
||
this.panel14.Enabled = true;
|
||
}
|
||
}
|
||
|
||
// Token: 0x060001B0 RID: 432 RVA: 0x00043220 File Offset: 0x00041420
|
||
private void toolStripButton6_Click(object sender, EventArgs e)
|
||
{
|
||
bool flag = Param.UserName_temp == "";
|
||
if (flag)
|
||
{
|
||
MessageBox.Show("请登录管理员权限!", "AGV调度管理系统", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
||
}
|
||
else
|
||
{
|
||
this.btn_Click();
|
||
this.panel3.Enabled = false;
|
||
this.panel4.Enabled = false;
|
||
this.panel5.Enabled = false;
|
||
this.panel6.Enabled = false;
|
||
this.panel7.Enabled = false;
|
||
this.panel8.Enabled = false;
|
||
this.panel9.Enabled = false;
|
||
this.panel10.Enabled = false;
|
||
this.panel11.Enabled = false;
|
||
this.panel12.Enabled = false;
|
||
this.panel13.Enabled = false;
|
||
this.panel14.Enabled = false;
|
||
}
|
||
}
|
||
|
||
// Token: 0x060001B1 RID: 433 RVA: 0x00002460 File Offset: 0x00000660
|
||
private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e)
|
||
{
|
||
}
|
||
|
||
// Token: 0x060001B2 RID: 434 RVA: 0x00002460 File Offset: 0x00000660
|
||
private void toolStripButton4_Click(object sender, EventArgs e)
|
||
{
|
||
}
|
||
|
||
// Token: 0x040004CF RID: 1231
|
||
private ClsDBConn_sql db = new ClsDBConn_sql();
|
||
|
||
// Token: 0x040004D0 RID: 1232
|
||
private DataSet ds = new DataSet();
|
||
|
||
// Token: 0x040004D1 RID: 1233
|
||
private string str_sql = "";
|
||
}
|
||
}
|