From 59dc2aa6e3fe7f699c4f2d03b774763142c5698d Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期六, 05 七月 2025 17:31:54 +0800 Subject: [PATCH] 添加货位容器关系表锁、调整货架行号和记录表同步逻辑 --- device/SnapManager.cs | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/device/SnapManager.cs b/device/SnapManager.cs index fd494b6..625a39b 100644 --- a/device/SnapManager.cs +++ b/device/SnapManager.cs @@ -11,24 +11,24 @@ if (_snapDevice == null) { _snapDevice = new SnapDevice(); } - //_snapDevice.LoadInfo(snap); // TODO SNAP + _snapDevice.LoadInfo(snap); // SNAP } public static string GetCapturePicturePath() { - //DateTime now = DateTime.Now; - //string path = Settings.CaptureUrl; - //string fileName = string.Format("{0}{1}{2}{3}{4}{5}", now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second) + ".jpg"; - //string filePath = path + "\\" + fileName; + //return string.Empty; + // SNAP - //if (_snapDevice.SnapPictureToFileOK(ref filePath)) { - // return filePath; - //} - //else { - // return string.Empty; - //} + DateTime now = DateTime.Now; + string path = Settings.CaptureUrl; + string fileName = string.Format("{0}{1}{2}{3}{4}{5}", now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second) + ".jpg"; + string filePath = path + "\\" + fileName; - // TODO SNAP - return string.Empty; + if (_snapDevice.SnapPictureToFileOK(ref filePath)) { + return filePath; + } + else { + return string.Empty; + } } } } -- Gitblit v1.9.1