81 lines
1.9 KiB
C#
81 lines
1.9 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace AGVSystem
|
|
{
|
|
// Token: 0x0200001A RID: 26
|
|
public partial class Point_loc_Set : Form
|
|
{
|
|
// Token: 0x06000178 RID: 376 RVA: 0x0003D743 File Offset: 0x0003B943
|
|
public Point_loc_Set()
|
|
{
|
|
this.InitializeComponent();
|
|
}
|
|
|
|
// Token: 0x06000179 RID: 377 RVA: 0x0003D768 File Offset: 0x0003B968
|
|
public Point_loc_Set(int x, int y)
|
|
{
|
|
this.InitializeComponent();
|
|
this.num1.Value = x;
|
|
this.num2.Value = y;
|
|
}
|
|
|
|
// Token: 0x0600017A RID: 378 RVA: 0x0003D7BC File Offset: 0x0003B9BC
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
bool flag = this.cmb.SelectedIndex > 0;
|
|
if (flag)
|
|
{
|
|
string sqlstr = string.Concat(new string[]
|
|
{
|
|
"UPDATE [LandMarkInfo] SET[Loc_X] =",
|
|
this.num1.Value.ToString(),
|
|
" ,[Loc_Y] = ",
|
|
this.num2.Value.ToString(),
|
|
" ,[Binding] = ",
|
|
this.cmb.SelectedIndex.ToString(),
|
|
" WHERE[Loc_ID]=",
|
|
this.num.Value.ToString(),
|
|
" And Assembly_Line=",
|
|
this.cmb_linelist.Text.Split(new char[]
|
|
{
|
|
'.'
|
|
})[0]
|
|
});
|
|
bool flag2 = "1" == this.db.Command(sqlstr);
|
|
if (flag2)
|
|
{
|
|
base.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600017B RID: 379 RVA: 0x0003D8B4 File Offset: 0x0003BAB4
|
|
private void Point_loc_Set_Load(object sender, EventArgs e)
|
|
{
|
|
DataSet dataSet = this.db.connDt("select CONVERT( VARCHAR(10),id) +' . '+ line_name as info from Assembly_Line order by id");
|
|
bool flag = dataSet.Tables.Count > 0;
|
|
if (flag)
|
|
{
|
|
bool flag2 = dataSet.Tables[0].Rows.Count > 0;
|
|
if (flag2)
|
|
{
|
|
this.cmb_linelist.Items.Add("");
|
|
foreach (object obj in dataSet.Tables[0].Rows)
|
|
{
|
|
DataRow dataRow = (DataRow)obj;
|
|
this.cmb_linelist.Items.Add(dataRow[0].ToString());
|
|
}
|
|
}
|
|
}
|
|
dataSet.Tables.Clear();
|
|
}
|
|
|
|
// Token: 0x040004C1 RID: 1217
|
|
private ClsDBConn_sql db = new ClsDBConn_sql();
|
|
}
|
|
}
|