Parcourir la source

增加魔盒修改唯一码的接口

felix il y a 1 an
Parent
commit
567a1134af

+ 32 - 0
Document/超声机软件安装说明.docx

@@ -0,0 +1,32 @@
+                          超声机软件安装指南
+1、文件准备
+ ftp://192.168.6.32/US/
+ 将文件拷贝到本地
+ A.VinnoApp文件夹
+ 将VinnoApp文件夹拷贝存放在C盘根目录
+ 桌面->此电脑->高级系统设置->环境变量->系统变量->选中Path,点击编辑,
+ 点击新建,将C:\VinnoApp\ipp_2018与C:\VinnoApp\HQPostFilter依次加入。
+
+ftp://192.168.6.32/US/ 环境变量文件也在该目录下,
+ 
+ 添加完连续三个确定,环境设置完成。
+ Shipped*****.exe或者Shipped.zip
+ 注:Shipped*****.exe与Shipped.zip两个文件,只会同时存在一种。
+ 拷贝至本地目录。
+ 若存在的是Shipped*****.exe:
+ 双击exe自动解压缩,会生成一个同名的文件夹,
+ 若存在的是Shipped.zip,解压缩得到Shipped文件夹
+ FISSDK文件夹
+ 替换方法如下,拷贝该目录下的FIS文件夹和FISLib.dll到Shipped\Bin目录下覆盖即可。注:当需要使用自定义物理唯一码登录时,才需要替换。
+ VINNO WES Version.txt
+ 将该文件拷贝至C:\Windows\目录下
+ 
+ 程序运行
+ 运行Shipped\Bin\Vinno.MainMonitor.exe,进行如下选择,探头可选S1-6PV,勾上使用鼠标操作,显示虚拟键盘,启用VideoOutput视频输出。ZoomFactor可自己设置缩放比例。
+ 注:安装杏聆荟安装包的时候不要运行超声机软件,因超声机使用的进程因同名原因会被杏聆荟安装软件杀掉,会触发异常。
+ 退出超声机软件
+ 使用进程管理器,直接杀进程,搜索Vinno开头的进程,都Kill掉
+ 
+ 
+ 异常处理
+ 当启动时报NgsLibWrapper.dll依赖项缺失,Shipped-v54815-1.14.X_V10_POC-dev\etc\products\China\VINNO10P.ini,将	EzonoNgs = 2改为EzonoNgs = 0,并重启超声机软件。如果你选的是其他型号或者海外型号,就找到对应市场下的对应型号的ini文件。

+ 8 - 0
FISSDK/FISIMPL/FISIMPL.cs

@@ -132,6 +132,14 @@ namespace FISIMPL
             }
         }
 
+        public static void ChangeMachineId(string machineId)
+        {
+            if (!string.IsNullOrEmpty(machineId))
+            {
+                CommonParameter.Instance.MachineId = machineId;
+            }
+        }
+
         private static void OnFISLogInfoNotificated(object sender, FISLogEventArgs e)
         {
             Logger.WriteLineWarn($"OnFISLogInfoNotificated Invoke {e.Msg}");

+ 4 - 3
Vinno.FIS.Sonopost/Vinno.FIS.Sonopost.csproj

@@ -108,6 +108,7 @@
     <Compile Include="WebApi\Models\NetworkWireListModel.cs" />
     <Compile Include="WebApi\Models\PagedListRequest.cs" />
     <Compile Include="WebApi\Models\PagedListResponse.cs" />
+    <Compile Include="WebApi\Models\PhysicalUniqueIdRequest.cs" />
     <Compile Include="WebApi\Models\RainbowImageDetectSettingItem.cs" />
     <Compile Include="WebApi\Models\Result.cs" />
     <Compile Include="WebApi\Models\ServerLoginInfoResult.cs" />
@@ -288,8 +289,8 @@
     <EmbeddedResource Include="Assets\wwwroot\libs\layui\font\iconfont.svg" />
     <EmbeddedResource Include="Assets\wwwroot\libs\layui\layui.js" />
     <EmbeddedResource Include="Assets\wwwroot\pages\404.html" />
-	<EmbeddedResource Include="Assets\wwwroot\pages\dicom\capture.html" />
-	<EmbeddedResource Include="Assets\wwwroot\pages\dicom\clearcache.html" />
+    <EmbeddedResource Include="Assets\wwwroot\pages\dicom\capture.html" />
+    <EmbeddedResource Include="Assets\wwwroot\pages\dicom\clearcache.html" />
     <EmbeddedResource Include="Assets\wwwroot\pages\dicom\faillist.html" />
     <EmbeddedResource Include="Assets\wwwroot\pages\dicom\sono.html" />
     <EmbeddedResource Include="Assets\wwwroot\pages\dicom\station.html" />
@@ -303,7 +304,7 @@
     <EmbeddedResource Include="Assets\wwwroot\pages\network\wire.html" />
     <EmbeddedResource Include="Assets\wwwroot\pages\server\login.html" />
     <EmbeddedResource Include="Assets\wwwroot\pages\server\networkcheck.html" />
-	<EmbeddedResource Include="Assets\wwwroot\pages\system\deletesetting.html" />
+    <EmbeddedResource Include="Assets\wwwroot\pages\system\deletesetting.html" />
     <EmbeddedResource Include="Assets\wwwroot\pages\system\log.html" />
     <EmbeddedResource Include="Assets\wwwroot\pages\system\oledlang.html" />
     <EmbeddedResource Include="Assets\wwwroot\pages\system\rainbowimage.html" />

+ 25 - 0
Vinno.FIS.Sonopost/WebApi/Controllers/ServerController.cs

@@ -1,8 +1,10 @@
 using FISLib.Connect;
+using System;
 using System.Linq;
 using Vinno.FIS.Sonopost.Common;
 using Vinno.FIS.Sonopost.Features.Config;
 using Vinno.FIS.Sonopost.WebApi.Models;
+using Vinno.IUS.Common.Log;
 using Vinno.IUS.Common.Utilities;
 
 namespace Vinno.FIS.Sonopost.WebApi.Controllers
@@ -250,6 +252,29 @@ namespace Vinno.FIS.Sonopost.WebApi.Controllers
             });
         }
 
+        /// <summary>
+        /// 修改物理唯一码
+        /// </summary>
+        /// <returns></returns>
+        [WebApiAction]
+        public Result ChangePhysicalUniqueId(PhysicalUniqueIdRequest physicalUniqueIdRequest)
+        {
+            try
+            {
+                if (physicalUniqueIdRequest == null || string.IsNullOrEmpty(physicalUniqueIdRequest.Id))
+                {
+                    return Result.Fail("IdIsEmpty");
+                }
+                FISIMPL.FISIMPL.ChangeMachineId(physicalUniqueIdRequest.Id);
+                return Result.Success();
+            }
+            catch (Exception ex)
+            {
+                Logger.WriteLineError($"ChangePhysicalUniqueId Error:{ex}");
+                return Result.Fail();
+            }
+        }
+
         #region Private Methods
 
         private void UpdateAccount(string name, string password)

+ 7 - 0
Vinno.FIS.Sonopost/WebApi/Models/PhysicalUniqueIdRequest.cs

@@ -0,0 +1,7 @@
+namespace Vinno.FIS.Sonopost.WebApi.Models
+{
+    internal class PhysicalUniqueIdRequest
+    {
+        public string Id { get; set; }
+    }
+}