You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmart.Model
- {
- public class FileConfigModel
- {
- public static string ConstPath { get; set; } = string.Empty;
-
- /// <summary>
- /// 变量配置路径
- /// </summary>
- public static string VarConfigPath
- {
- get
- {
- string ReturnValue = null;
- if (Directory.Exists(ConstPath))
- {
- string path = $"{ConstPath}\\{ConfigDirName}\\JSON";
- Directory.CreateDirectory(path);
- ReturnValue = $"{ConstPath}\\{ConfigDirName}\\JSON\\CommunicationPar.json";
- }
- return ReturnValue;
- }
- }
-
- /// <summary>
- /// 变量管理器路径
- /// </summary>
- public static string VarManagerPath => $"{AppDomain.CurrentDomain.BaseDirectory}BPASmart.VariableManager.exe";
-
- /// <summary>
- /// 页面文件夹名称
- /// </summary>
- public const string PageDirName = "Layouts";
-
- /// <summary>
- /// 配置文件文件夹名称
- /// </summary>
- public const string ConfigDirName = "AccessFile";
- }
- }
|