diff --git a/插件库/Lskj.Util/PubUtil.cs b/插件库/Lskj.Util/PubUtil.cs
index a02612b..91814ea 100644
--- a/插件库/Lskj.Util/PubUtil.cs
+++ b/插件库/Lskj.Util/PubUtil.cs
@@ -1,328 +1,335 @@
-/******************************
-* 说明:程序通用方法管理类
-* 创建人:龚宇超
-* 创建日期:2017-08-16
-* 修改人:
-* 修改日期:
-* 修改备注:
-* 版本:1.0.0.0
-******************************/
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Forms;
-using System.IO;
-
-namespace Lskj.Util
-{
- ///
- /// 程序通用方法管理类
- ///
- public sealed class PubUtil
- {
- ///
- /// productDynamic图标
- ///
- /// The system update log path.
- public static string ProductDynamic
- {
- get { return AbsolutelyPath + "\\Images\\" + "ProductDynamic\\"; }
- }
- ///
- /// 说明:获取应用程序启动目录
- /// 创建人:龚宇超
- /// 创建日期:2017-08-21
- /// 修改人:
- /// 修改日期:
- /// 修改备注:
- /// 版本:1.0
- ///
- /// System.String.
- public static string AbsolutelyPath
- {
- get { return Application.StartupPath + "\\"; }
- }
- ///
- /// 获取应用程序启动目录下的Lib目录
- ///
- /// The absolutely library path.
- public static string AbsolutelyLibPath
- {
- get { return AbsolutelyPath + "Lib/"; }
- }
- ///
- /// 获取应用程序启动目录下的Browser目录
- ///
- /// The absolutely browser path.
- public static string AbsolutelyBrowserPath
- {
- get { return AbsolutelyPath + "Browser/"; }
- }
- ///
- /// 获取应用程序启动目录下的小平台目录
- ///
- /// The absolutely small client path.
- public static string AbsolutelySmallClientPath
- {
- get { return AbsolutelyPath + "Client.exe"; }
- }
- ///
- /// 说明:获取附件下载存放临时目录
- /// 创建人:龚宇超
- /// 创建日期:2017-11-01
- /// 修改人:
- /// 修改日期:
- /// 修改备注:
- /// 版本:1.0
- ///
- /// System.String.
- public static string FileDownLoadTempPath
- {
- get
- {
- string path = AbsolutelyPath + "TempFiles/";
- if (!Directory.Exists(path))
- {
- Directory.CreateDirectory(path);
- }
- return path;
- }
- }
- ///
- /// 获取打印文件路径
- ///
- /// The print file absolutely path.
- public static string PrintFileAbsolutelyPath
- {
- get { return AbsolutelyPath + "Lib/P_PubPrint.lsp"; }
- }
- ///
- /// 获取新版打印文件路径
- ///
- /// The print file absolutely path.
- public static string PrintFileAbsolutelyPath70
- {
- get { return AbsolutelyPath + "Lib/p_pubprint70.lsp"; }
- }
- ///
- /// 附件exe文件路径
- ///
- /// The name of the file executable.
- public static string AbsolutelyFileUploadPath
- {
- get { return AbsolutelyPath + "Attach/LSTest.exe"; }
- }
- ///
- /// 主界面模块图片加载路径
- ///
- /// The main menu default image.
- public static string MainMenuDefaultImage
- {
- get { return BitMapPath + "Main/Module/"; }
- }
- public static string MesItemImage
- {
- get { return BitMapPath + "MesItem/"; }
- }
- ///
- /// 主界面、登录界面、子系统图片存放位置
- ///
- /// The bit map path.
- public static string BitMapPath
- {
- get { return AbsolutelyPath + "Images/"; }
- }
- ///
- /// 身份证阅读器图片存放位置
- ///
- /// The identifier card bit map path.
- public static string IDCardBitMapPath
- {
- get
- {
- string filePath = AbsolutelyPath + "Card\\";
- if (!Directory.Exists(filePath))
- Directory.CreateDirectory(filePath);
- return filePath;
- }
- }
- ///
- /// 串口通过ini本地设置
- ///
- /// The main menu configuration path.
- public static string TextPath
- {
- get { return AbsolutelyPath + "text.ini"; }
- }
- ///
- /// 模块配置文件存放路径
- ///
- /// The main menu configuration path.
- public static string MainMenuConfigPath
- {
- get { return AbsolutelyPath + "MenuConfig.ini"; }
- }
- ///
- /// 控件缓存数据源
- ///
- /// The identifier card bit map path.
- public static string ControlCacheData
- {
- get
- {
- string filePath = AbsolutelyPath + "ControlData\\";
- if (!Directory.Exists(filePath))
- Directory.CreateDirectory(filePath);
- return filePath;
- }
- }
- ///
- /// Excel模板路径
- ///
- /// The menu excel path.
- public static string MenuExcelPath
- {
- get
- {
- string filePath = AbsolutelyPath + "Templete/";
- if (!Directory.Exists(filePath))
- {
- Directory.CreateDirectory(filePath);
- }
- return filePath;
- }
- }
- ///
- /// 打印模板 repx文件存放地址
- ///
- public static string PrintModePath
- {
- get
- {
- string filePath = AbsolutelyPath + "Reports\\";
- if (!Directory.Exists(filePath))
- {
- Directory.CreateDirectory(filePath);
- }
- return filePath;
- }
- }
- ///
- /// ppt模板 pptx文件存放地址
- ///
- public static string CreatePptPath
- {
- get
- {
- string filePath = AbsolutelyPath + "Pptxs\\";
- if (!Directory.Exists(filePath))
- {
- Directory.CreateDirectory(filePath);
- }
- return filePath;
- }
- }
- ///
- /// 发票扫描图片文件存放地址
- ///
- public static string CreateInvoicePic
- {
- get
- {
- string filePath = AbsolutelyPath + "InvoicePic\\";
- if (!Directory.Exists(filePath))
- {
- Directory.CreateDirectory(filePath);
- }
- return filePath;
- }
- }
- ///
- /// 打印所有模块xml生成地址
- ///
- public static string AllMethodXml
- {
- get
- {
- string filePath = AbsolutelyPath + "AllMethodXml\\";
- if (!Directory.Exists(filePath))
- {
- Directory.CreateDirectory(filePath);
- }
- return filePath;
- }
- }
- ///
- /// 打印模板语言包存放位置
- ///
- public static string PrintModeResourcePath
- {
- get
- {
- return AbsolutelyPath + "Localization\\Chinese (Simplified).frl";
- }
- }
- ///
- /// 软件升级日志
- ///
- /// The system update log path.
- public static string SystemUpdateLogPath
- {
- get { return AbsolutelyPath + "\\Log.txt"; }
- }
- ///
- /// WebView2
- ///
- /// The system update log path.
- public static string WebViewPath
- {
- get { return AbsolutelyPath + "\\Browser3\\"; }
- }
- ///
- /// GridControl操作列图标
- ///
- /// The system update log path.
- public static string GridColumnIco
- {
- get { return AbsolutelyPath + "\\Images\\" + "ColumnIco\\"; }
- }
- public static string TreeViewImagePath
- {
- get { return AbsolutelyPath + "\\Images\\" + "TreeViewImage\\"; }
- }
- public static string PdfSignImagePath
- {
- get
- {
- if (!Directory.Exists(AbsolutelyPath + "\\PdfSign\\" + "PdfSignImage\\"))
- {
- Directory.CreateDirectory(AbsolutelyPath + "\\PdfSign\\" + "PdfSignImage\\");
- }
- return AbsolutelyPath + "\\PdfSign\\" + "PdfSignImage\\";
- }
- }
- public static string PdfSignTempPath
- {
- get
- {
- if (!Directory.Exists(AbsolutelyPath + "\\PdfSign\\" + "PdfSignTemp\\"))
- {
- Directory.CreateDirectory(AbsolutelyPath + "\\PdfSign\\" + "PdfSignTemp\\");
- }
- return AbsolutelyPath + "\\PdfSign\\" + "PdfSignTemp\\";
- }
- }
- public static string PdfSignTempSavePath
- {
- get
- {
- if (!Directory.Exists(AbsolutelyPath + "\\PdfSign\\" + "PdfSignTempSave\\"))
- {
- Directory.CreateDirectory(AbsolutelyPath + "\\PdfSign\\" + "PdfSignTempSave\\");
- }
- return AbsolutelyPath + "\\PdfSign\\" + "PdfSignTempSave\\";
- }
- }
- ///
- /// 菜单默认
\ No newline at end of file
+/******************************
+* 说明:程序通用方法管理类
+* 创建人:龚宇超
+* 创建日期:2017-08-16
+* 修改人:
+* 修改日期:
+* 修改备注:
+* 版本:1.0.0.0
+******************************/
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using System.IO;
+
+namespace Lskj.Util
+{
+ ///
+ /// 程序通用方法管理类
+ ///
+ public sealed class PubUtil
+ {
+ ///
+ /// productDynamic图标
+ ///
+ /// The system update log path.
+ public static string ProductDynamic
+ {
+ get { return AbsolutelyPath + "\\Images\\" + "ProductDynamic\\"; }
+ }
+ ///
+ /// 说明:获取应用程序启动目录
+ /// 创建人:龚宇超
+ /// 创建日期:2017-08-21
+ /// 修改人:
+ /// 修改日期:
+ /// 修改备注:
+ /// 版本:1.0
+ ///
+ /// System.String.
+ public static string AbsolutelyPath
+ {
+ get { return Application.StartupPath + "\\"; }
+ }
+ ///
+ /// 获取应用程序启动目录下的Lib目录
+ ///
+ /// The absolutely library path.
+ public static string AbsolutelyLibPath
+ {
+ get { return AbsolutelyPath + "Lib/"; }
+ }
+ ///
+ /// 获取应用程序启动目录下的Browser目录
+ ///
+ /// The absolutely browser path.
+ public static string AbsolutelyBrowserPath
+ {
+ get { return AbsolutelyPath + "Browser/"; }
+ }
+ ///
+ /// 获取应用程序启动目录下的小平台目录
+ ///
+ /// The absolutely small client path.
+ public static string AbsolutelySmallClientPath
+ {
+ get { return AbsolutelyPath + "Client.exe"; }
+ }
+ ///
+ /// 说明:获取附件下载存放临时目录
+ /// 创建人:龚宇超
+ /// 创建日期:2017-11-01
+ /// 修改人:
+ /// 修改日期:
+ /// 修改备注:
+ /// 版本:1.0
+ ///
+ /// System.String.
+ public static string FileDownLoadTempPath
+ {
+ get
+ {
+ string path = AbsolutelyPath + "TempFiles/";
+ if (!Directory.Exists(path))
+ {
+ Directory.CreateDirectory(path);
+ }
+ return path;
+ }
+ }
+ ///
+ /// 获取打印文件路径
+ ///
+ /// The print file absolutely path.
+ public static string PrintFileAbsolutelyPath
+ {
+ get { return AbsolutelyPath + "Lib/P_PubPrint.lsp"; }
+ }
+ ///
+ /// 获取新版打印文件路径
+ ///
+ /// The print file absolutely path.
+ public static string PrintFileAbsolutelyPath70
+ {
+ get { return AbsolutelyPath + "Lib/p_pubprint70.lsp"; }
+ }
+ ///
+ /// 附件exe文件路径
+ ///
+ /// The name of the file executable.
+ public static string AbsolutelyFileUploadPath
+ {
+ get { return AbsolutelyPath + "Attach/LSTest.exe"; }
+ }
+ ///
+ /// 主界面模块图片加载路径
+ ///
+ /// The main menu default image.
+ public static string MainMenuDefaultImage
+ {
+ get { return BitMapPath + "Main/Module/"; }
+ }
+ public static string MesItemImage
+ {
+ get { return BitMapPath + "MesItem/"; }
+ }
+ ///
+ /// 主界面、登录界面、子系统图片存放位置
+ ///
+ /// The bit map path.
+ public static string BitMapPath
+ {
+ get { return AbsolutelyPath + "Images/"; }
+ }
+ ///
+ /// 身份证阅读器图片存放位置
+ ///
+ /// The identifier card bit map path.
+ public static string IDCardBitMapPath
+ {
+ get
+ {
+ string filePath = AbsolutelyPath + "Card\\";
+ if (!Directory.Exists(filePath))
+ Directory.CreateDirectory(filePath);
+ return filePath;
+ }
+ }
+ ///
+ /// 串口通过ini本地设置
+ ///
+ /// The main menu configuration path.
+ public static string TextPath
+ {
+ get { return AbsolutelyPath + "text.ini"; }
+ }
+ ///
+ /// 模块配置文件存放路径
+ ///
+ /// The main menu configuration path.
+ public static string MainMenuConfigPath
+ {
+ get { return AbsolutelyPath + "MenuConfig.ini"; }
+ }
+ ///
+ /// 控件缓存数据源
+ ///
+ /// The identifier card bit map path.
+ public static string ControlCacheData
+ {
+ get
+ {
+ string filePath = AbsolutelyPath + "ControlData\\";
+ if (!Directory.Exists(filePath))
+ Directory.CreateDirectory(filePath);
+ return filePath;
+ }
+ }
+ ///
+ /// Excel模板路径
+ ///
+ /// The menu excel path.
+ public static string MenuExcelPath
+ {
+ get
+ {
+ string filePath = AbsolutelyPath + "Templete/";
+ if (!Directory.Exists(filePath))
+ {
+ Directory.CreateDirectory(filePath);
+ }
+ return filePath;
+ }
+ }
+ ///
+ /// 打印模板 repx文件存放地址
+ ///
+ public static string PrintModePath
+ {
+ get
+ {
+ string filePath = AbsolutelyPath + "Reports\\";
+ if (!Directory.Exists(filePath))
+ {
+ Directory.CreateDirectory(filePath);
+ }
+ return filePath;
+ }
+ }
+ ///
+ /// ppt模板 pptx文件存放地址
+ ///
+ public static string CreatePptPath
+ {
+ get
+ {
+ string filePath = AbsolutelyPath + "Pptxs\\";
+ if (!Directory.Exists(filePath))
+ {
+ Directory.CreateDirectory(filePath);
+ }
+ return filePath;
+ }
+ }
+ ///
+ /// 发票扫描图片文件存放地址
+ ///
+ public static string CreateInvoicePic
+ {
+ get
+ {
+ string filePath = AbsolutelyPath + "InvoicePic\\";
+ if (!Directory.Exists(filePath))
+ {
+ Directory.CreateDirectory(filePath);
+ }
+ return filePath;
+ }
+ }
+ ///
+ /// 打印所有模块xml生成地址
+ ///
+ public static string AllMethodXml
+ {
+ get
+ {
+ string filePath = AbsolutelyPath + "AllMethodXml\\";
+ if (!Directory.Exists(filePath))
+ {
+ Directory.CreateDirectory(filePath);
+ }
+ return filePath;
+ }
+ }
+ ///
+ /// 打印模板语言包存放位置
+ ///
+ public static string PrintModeResourcePath
+ {
+ get
+ {
+ return AbsolutelyPath + "Localization\\Chinese (Simplified).frl";
+ }
+ }
+ ///
+ /// 软件升级日志
+ ///
+ /// The system update log path.
+ public static string SystemUpdateLogPath
+ {
+ get { return AbsolutelyPath + "\\Log.txt"; }
+ }
+ ///
+ /// WebView2
+ ///
+ /// The system update log path.
+ public static string WebViewPath
+ {
+ get { return AbsolutelyPath + "\\Browser3\\"; }
+ }
+ ///
+ /// GridControl操作列图标
+ ///
+ /// The system update log path.
+ public static string GridColumnIco
+ {
+ get { return AbsolutelyPath + "\\Images\\" + "ColumnIco\\"; }
+ }
+ public static string TreeViewImagePath
+ {
+ get { return AbsolutelyPath + "\\Images\\" + "TreeViewImage\\"; }
+ }
+ public static string PdfSignImagePath
+ {
+ get
+ {
+ if (!Directory.Exists(AbsolutelyPath + "\\PdfSign\\" + "PdfSignImage\\"))
+ {
+ Directory.CreateDirectory(AbsolutelyPath + "\\PdfSign\\" + "PdfSignImage\\");
+ }
+ return AbsolutelyPath + "\\PdfSign\\" + "PdfSignImage\\";
+ }
+ }
+ public static string PdfSignTempPath
+ {
+ get
+ {
+ if (!Directory.Exists(AbsolutelyPath + "\\PdfSign\\" + "PdfSignTemp\\"))
+ {
+ Directory.CreateDirectory(AbsolutelyPath + "\\PdfSign\\" + "PdfSignTemp\\");
+ }
+ return AbsolutelyPath + "\\PdfSign\\" + "PdfSignTemp\\";
+ }
+ }
+ public static string PdfSignTempSavePath
+ {
+ get
+ {
+ if (!Directory.Exists(AbsolutelyPath + "\\PdfSign\\" + "PdfSignTempSave\\"))
+ {
+ Directory.CreateDirectory(AbsolutelyPath + "\\PdfSign\\" + "PdfSignTempSave\\");
+ }
+ return AbsolutelyPath + "\\PdfSign\\" + "PdfSignTempSave\\";
+ }
+ }
+ ///
+ /// 菜单默认图标
+ ///
+ public static string ModuleDefaultPath
+ {
+ get
+ {
+ if (!Directory.Exists(AbsolutelyPath + "Images\\Main\\Module\\Default"))
+ {
\ No newline at end of file