|
|
@ -1,9 +1,12 @@
|
|
|
|
using NDSD_TouchSocket;
|
|
|
|
using DNSD_DB;
|
|
|
|
|
|
|
|
using NDSD_Screwdriver.Entity;
|
|
|
|
|
|
|
|
using NDSD_TouchSocket;
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel;
|
|
|
|
using System.ComponentModel;
|
|
|
|
using System.Data;
|
|
|
|
using System.Data;
|
|
|
|
using System.Drawing;
|
|
|
|
using System.Drawing;
|
|
|
|
|
|
|
|
using System.Drawing.Text;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
@ -43,7 +46,7 @@ namespace NDSD_Screwdriver
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// RFID列表
|
|
|
|
/// RFID列表
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
string[] RFIDs = new string[]
|
|
|
|
public string[] RFIDs = new string[]
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"1111222233334444",
|
|
|
|
"1111222233334444",
|
|
|
|
"2222222233334444",
|
|
|
|
"2222222233334444",
|
|
|
@ -60,6 +63,7 @@ namespace NDSD_Screwdriver
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MessageBox.Show("服务端打开失败!");
|
|
|
|
MessageBox.Show("服务端打开失败!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -122,7 +126,13 @@ namespace NDSD_Screwdriver
|
|
|
|
/// <param name="e"></param>
|
|
|
|
/// <param name="e"></param>
|
|
|
|
private void TestButton1_Click(object sender, EventArgs e)
|
|
|
|
private void TestButton1_Click(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if(RFIDs.Length == 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MessageBox.Show("没有值,请先设置。");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SetNowRowsLightState(FormUtils.TestRamColor());
|
|
|
|
SetNowRowsLightState(FormUtils.TestRamColor());
|
|
|
|
|
|
|
|
|
|
|
|
RefreshRoll();
|
|
|
|
RefreshRoll();
|
|
|
|
if (++NowRowIndex >= RFIDs.Length)
|
|
|
|
if (++NowRowIndex >= RFIDs.Length)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -132,6 +142,7 @@ namespace NDSD_Screwdriver
|
|
|
|
|
|
|
|
|
|
|
|
private void InitButton_Click(object sender, EventArgs e)
|
|
|
|
private void InitButton_Click(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
NowRowIndex = 0;
|
|
|
|
InitMonitirIntity();
|
|
|
|
InitMonitirIntity();
|
|
|
|
SetRFIDValue(RFIDs);
|
|
|
|
SetRFIDValue(RFIDs);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -205,6 +216,7 @@ namespace NDSD_Screwdriver
|
|
|
|
private void SetNowRowsLightState(LightState lightState)
|
|
|
|
private void SetNowRowsLightState(LightState lightState)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
monitorEntities[NowRowIndex].RowEntitys[2].Color = FormUtils.EnumColorToBrush(lightState);
|
|
|
|
monitorEntities[NowRowIndex].RowEntitys[2].Color = FormUtils.EnumColorToBrush(lightState);
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < RFIDs.Length; i++)
|
|
|
|
for (int i = 0; i < RFIDs.Length; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
monitorEntities[NowRowIndex].RowEntitys[0].Value = i == NowRowIndex ? "=>" : "";
|
|
|
|
monitorEntities[NowRowIndex].RowEntitys[0].Value = i == NowRowIndex ? "=>" : "";
|
|
|
@ -219,5 +231,7 @@ namespace NDSD_Screwdriver
|
|
|
|
monitorEntities[i].RowEntitys[0].Value = i == NowRowIndex ? "=>" : "";
|
|
|
|
monitorEntities[i].RowEntitys[0].Value = i == NowRowIndex ? "=>" : "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|