Commit 9d713b21 LN

1

1 个父辈 dd418320
......@@ -32,7 +32,7 @@
<add key="HumitureControllerType" value="0"/>
<add key="UseAIOBOX" value="1"/>
<!--流水线地址和端口配置-->
<!--<add key ="LineServerIp" value ="192.168.1.110"/>-->
<add key ="LineServerIp" value ="192.168.1.110"/>
<add key ="LineServerPort" value ="5246"/>
<!--是否调试状态-->
<add key ="IsInDebug" value ="1"/>
......
......@@ -15,57 +15,57 @@ namespace OnlineStore.ACSingleStore
//#03A9F4
public static Color buttonColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
//public static Color buttonColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
//public static Color buttonColor = System.Drawing.SystemColors.ActiveCaption;
//public static Color buttonColor = System.Drawing.Color.FromArgb(((int)((0x00))), ((int)((0x66))), ((int)(0xFF)));
//private static string skinFileName = Application.StartupPath + @"\Skins\Wave.ssk";
private static string skinFileName = Application.StartupPath + @"\Skins\DiamondBlue.ssk";
//private static string skinFileName = Application.StartupPath + @"\Skins\DiamondBlue.ssk";
public static string SkinFileName
{
set
{
}
get
{
if (SkinsList.Count <= 0)
{
SkinsList = GetSkinList();
}
if (SkinsList.Count > 0 && index >= 0)
{
return SkinsList[index];
}
return skinFileName;
}
}
private static int index = -1;
public static void DefaultSkin()
{
index = -1;
}
public static void NextSkin()
{
index++;
if (index >= SkinsList.Count)
{
index = 0;
}
}
public static List<string> SkinsList = new List<string>();
private static List<string> GetSkinList()
{
List<string> returnList = new System.Collections.Generic.List<string>();
string[] fileList = Directory.GetFiles(Application.StartupPath + @"\Skins");
foreach (string sr in fileList)
{
if (sr.Contains(".ssk"))
{
returnList.Add(sr);
}
}
return returnList;
}
//public static string SkinFileName
//{
// set
// {
// }
// get
// {
// if (SkinsList.Count <= 0)
// {
// SkinsList = GetSkinList();
// }
// if (SkinsList.Count > 0 && index >= 0)
// {
// return SkinsList[index];
// }
// return skinFileName;
// }
//}
//private static int index = -1;
//public static void DefaultSkin()
//{
// index = -1;
//}
//public static void NextSkin()
//{
// index++;
// if (index >= SkinsList.Count)
// {
// index = 0;
// }
//}
//public static List<string> SkinsList = new List<string>();
//private static List<string> GetSkinList()
//{
// List<string> returnList = new System.Collections.Generic.List<string>();
// string[] fileList = Directory.GetFiles(Application.StartupPath + @"\Skins");
// foreach (string sr in fileList)
// {
// if (sr.Contains(".ssk"))
// {
// returnList.Add(sr);
// }
// }
// return returnList;
//}
private static FrmAxisDebug debug = null;
......
......@@ -1349,7 +1349,7 @@ namespace OnlineStore.ACSingleStore
private void button6_Click(object sender, EventArgs e)
{
int hasTray = (int)IOManager.IOValue(IO_Type.TrayCheck_Door);
LineConnect.SendHeart(StoreManager.Config.Id, StoreManager.Config.CID, (int)StoreStatus.StoreOnline, (int)StoreRunStatus.Runing, hasTray,"");
LineConnect.SendHeart(StoreManager.Config.Id, StoreManager.Config.CID, (int)StoreStatus.StoreOnline, (int)StoreRunStatus.Runing, hasTray,(int)StoreAlarmType.None);
}
private void chbDebug_CheckedChanged(object sender, EventArgs e)
......
......@@ -1415,7 +1415,7 @@ namespace OnlineStore.DeviceLibrary
posID = StoreMove.MoveParam.PositionNum;
}
int hasTray = (int)IOManager.IOValue(IO_Type.TrayCheck_Door);
LineConnect.SendHeart(Config.Id, Config.CID, (int)storeStatus, (int)storeRunStatus, hasTray, posID);
LineConnect.SendHeart(Config.Id, Config.CID, (int)storeStatus, (int)storeRunStatus, hasTray, (int)alarmType);
}
HumitureController.QueryData();
HumidityProcess();
......
......@@ -656,7 +656,7 @@ namespace OnlineStore.DeviceLibrary
CloseDoor();
//发送消息给流水线
int hasTray =(int) IOManager.IOValue(IO_Type.TrayCheck_Door);
LineConnect.OutStoreEnd(Config.Id, Config.CID, (int)storeStatus, (int)storeRunStatus, hasTray,StoreMove.MoveParam.PositionNum, StoreMove.MoveParam.PlateH,StoreMove.MoveParam.PlateW);
LineConnect.OutStoreEnd(Config.Id, Config.CID, (int)storeStatus, (int)storeRunStatus, hasTray,(int)alarmType, StoreMove.MoveParam.PositionNum, StoreMove.MoveParam.PlateH,StoreMove.MoveParam.PlateW);
}
else if (StoreMove.MoveStep == StoreMoveStep.SO_13_GoBack)
{
......
......@@ -45,7 +45,7 @@ namespace OnlineStore.DeviceLibrary
return seq;
}
public static void SendHeart(int id,string cid,int ss,int runs,int doorHasTray,string posid)
public static void SendHeart(int id,string cid,int ss,int runs,int doorHasTray,int alarmType)
{
if (client == null)
{
......@@ -61,7 +61,7 @@ namespace OnlineStore.DeviceLibrary
paramList.Add(ss);
paramList.Add(runs);
paramList.Add(doorHasTray);
paramList.Add(posid);
paramList.Add(alarmType);
string heartMsg = ToParamStr(paramList);
client.send(heartMsg);
......@@ -70,7 +70,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil.error("SendHeart 出错:"+ex.ToString());
}
}
public static void OutStoreEnd(int id, string cid, int ss, int runs, int doorHasTray, string posid, string plateH, string plateW)
public static void OutStoreEnd(int id, string cid, int ss, int runs, int doorHasTray, int alarmType,string posid, string plateH, string plateW)
{
if (client == null)
{
......@@ -86,7 +86,7 @@ namespace OnlineStore.DeviceLibrary
paramList.Add(ss);
paramList.Add(runs);
paramList.Add(doorHasTray);
paramList.Add(posid);
paramList.Add(alarmType);
paramList.Add(posid);
paramList.Add(plateH);
paramList.Add(plateW);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!