Merge remote-tracking branch 'origin/master'

master
Tongg 7 months ago
commit 7238632415
  1. 4
      BrilliantSight.csproj
  2. 8
      ViewModel/Grading/GradingLoadingVM.cs
  3. 6
      ViewModel/Grading/GradingResultVM.cs

@ -12,8 +12,8 @@
<Description>晶瞳钻石检测工具</Description>
<Copyright>Copyright ©2025 北京跃洋新视科技有限公司</Copyright>
<Company>北京跃洋新视科技有限公司</Company>
<AssemblyVersion>1.0.2519</AssemblyVersion>
<FileVersion>1.0.2519</FileVersion>
<AssemblyVersion>1.0.2520</AssemblyVersion>
<FileVersion>1.0.2520</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<AssemblyName>BrilliantSightClient</AssemblyName>
<RootNamespace>BrilliantSightClient</RootNamespace>

@ -342,6 +342,8 @@ public class GradingLoadingVM : BaseViewModel,IDisposable
new JProperty("algo_config", JObject.Parse(algo_config))
);
Logger.Info($"算法启动,输入参数(Encrypt):{AESHelper.Encrypt(jsonData.ToString())}");
//算法启动前关闭气泵,算法执行完毕时按需打开,确保算法导致程序闪退后气泵未关闭
SOCClientService.Service.OpenPump(false);
_scanner = new Scanner(diamond);
var detectTask = _scanner.DetectAsyncByJsonStr(jsonData.ToString());
Logger.Info($"开始等待算法结果");
@ -429,10 +431,12 @@ public class GradingLoadingVM : BaseViewModel,IDisposable
parameter.ErrorMsg = _diamnondType;
//实验室模式关闭气泵
if (Common.RunMode == 0)
if (Common.RunMode == 1)
{
SOCClientService.Service.OpenPump(false);
//工厂模式下再打开
SOCClientService.Service.OpenPump(true);
}
_monitorTimer.Dispose();
try
{

@ -1844,7 +1844,11 @@ public class GradingResultVM : BaseViewModel
[Log]
public void ChangeSym(object norm)
{
decimal? order = this.DtResults.Where(x => x.TestItemId != "TWIST").Select(x => x.SymLevel).Max();
//&& x.TestItemId != "GIRDLE_BEZEL" && x.TestItemId != "GIRDLE_BONE" && x.TestItemId != "GIRDLE"
decimal? order = this.DtResults.Where(x =>
x.TestItemId != "TWIST"&& x.TestItemId != "GIRDLE_BEZEL" &&
x.TestItemId != "GIRDLE_BONE" && x.TestItemId != "GIRDLE" )
.Select(x => x.SymLevel).Max();
if (order.HasValue)
{
totalSymGrade = order.Value;

Loading…
Cancel
Save