OEM初版

This commit is contained in:
2025-10-10 17:54:53 +08:00
parent ccbe0f626f
commit 9036f967fc
16 changed files with 1736 additions and 237 deletions

View File

@@ -1,7 +0,0 @@
namespace FATrace.Com
{
public class Class1
{
}
}

View File

@@ -45,6 +45,15 @@ namespace FATrace.Com
}
}
/// <summary>
/// 根据Key取Value值
/// </summary>
/// <param name="key"></param>
public static string GetValue(string key)
{
return ConfigurationManager.AppSettings[key].ToString().Trim();
}
/// <summary>
/// 根据 key 读取字符串配置,不存在时返回默认值。
/// </summary>

24
FATrace.Com/NVRCom.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FATrace.Com
{
/// <summary>
/// NVR 公共的类
/// </summary>
public class NVRCom
{
/// <summary>
/// 获取视频名称
/// </summary>
/// <param name="configKey"></param>
/// <returns></returns>
public static string GetVideoName(string Path,string Code)
{
return $"{Path}\\{DateTime.Now.ToString("yyyy-MM-dd HHmmss")} {Code}.mp4";
}
}
}