|
@@ -1,4 +1,6 @@
|
|
using CCWin;
|
|
using CCWin;
|
|
|
|
+using NamePipeClient;
|
|
|
|
+using NamePipeClient.Model;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Linq;
|
|
using Newtonsoft.Json.Linq;
|
|
using SufeiUtil;
|
|
using SufeiUtil;
|
|
@@ -11,6 +13,7 @@ using System.Net.Security;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
using System.Text;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using System.Windows.Forms;
|
|
|
|
+using Utils;
|
|
|
|
|
|
namespace MOKA_Factory_Tools
|
|
namespace MOKA_Factory_Tools
|
|
{
|
|
{
|
|
@@ -193,6 +196,29 @@ namespace MOKA_Factory_Tools
|
|
}
|
|
}
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
+ #region 进程通信
|
|
|
|
+ // 启动服务;
|
|
|
|
+ ProcUtils.StartService("FTYService");
|
|
|
|
+ if (Utils.ProcUtils.IsServiceStart("FTYService"))
|
|
|
|
+ {
|
|
|
|
+ PipeClient client = new PipeClient("MOKA_FTYService", "127.0.0.1");
|
|
|
|
+ if (client != null)
|
|
|
|
+ {
|
|
|
|
+ client.SendData(new ToolInfo()
|
|
|
|
+ {
|
|
|
|
+ appName = "SCBC Factory Tools",
|
|
|
|
+ devicemodel = "SCBC Factory Tools",
|
|
|
|
+ dnum = loginOutput1.factorynum,
|
|
|
|
+ factoryname = loginOutput1.factoryname,
|
|
|
|
+ procName = Application.ProductName,
|
|
|
|
+ toolPath = AppDomain.CurrentDomain.BaseDirectory,
|
|
|
|
+ toolVersion = Utils.FileUtils.GetAssemblyVersion(),
|
|
|
|
+ type = "pc"
|
|
|
|
+ }, 0);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ #endregion
|
|
|
|
+
|
|
CommonMethod.FactoryName = loginOutput1.factoryname;
|
|
CommonMethod.FactoryName = loginOutput1.factoryname;
|
|
UpgradeMsgList upgradeMsgList = new UpgradeMsgList();
|
|
UpgradeMsgList upgradeMsgList = new UpgradeMsgList();
|
|
var FactoryNum = loginOutput1.factorynum;
|
|
var FactoryNum = loginOutput1.factorynum;
|