Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangorcy committed Jul 26, 2019
1 parent 047ef44 commit f166ea1
Show file tree
Hide file tree
Showing 40 changed files with 71,348 additions and 95 deletions.
Binary file added .vs/Common.Utility/v16/.suo
Binary file not shown.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a9b67f9b658ad0b2bb227c659c8fd238c01fbda6
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
be0710d06e56d0e33d00ec1bdc2c24a23dc5c08e
Binary file not shown.
876 changes: 876 additions & 0 deletions Utility基础类大全/bin/Debug/Common.Logging.Core.xml

Large diffs are not rendered by default.

Binary file not shown.
2,780 changes: 2,780 additions & 0 deletions Utility基础类大全/bin/Debug/Common.Logging.xml

Large diffs are not rendered by default.

Binary file not shown.
11 changes: 11 additions & 0 deletions Utility基础类大全/bin/Debug/DotNet.Utilities.dll.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="NPOI" publicKeyToken="0df73ec7942b34e1" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.5.0" newVersion="1.2.5.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Binary file not shown.
Binary file not shown.
Binary file added Utility基础类大全/bin/Debug/Ionic.Zip.dll
Binary file not shown.
Binary file not shown.
Binary file added Utility基础类大全/bin/Debug/NPOI.OOXML.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Utility基础类大全/bin/Debug/NPOI.dll
Binary file not shown.
39,149 changes: 39,149 additions & 0 deletions Utility基础类大全/bin/Debug/NPOI.xml

Large diffs are not rendered by default.

Binary file not shown.
8,526 changes: 8,526 additions & 0 deletions Utility基础类大全/bin/Debug/Newtonsoft.Json.xml

Large diffs are not rendered by default.

Binary file not shown.
Binary file added Utility基础类大全/bin/Debug/Quartz.dll
Binary file not shown.
19,970 changes: 19,970 additions & 0 deletions Utility基础类大全/bin/Debug/Quartz.xml

Large diffs are not rendered by default.

Binary file added Utility基础类大全/bin/Debug/itextsharp.dll
Binary file not shown.
Binary file added Utility基础类大全/bin/Debug/stdole.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
98c50e030a693ffa51e52115e86f8b079f48466c
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,30 @@ G:\github合集\Common.Utility\Utility基础类大全\bin\Debug\Quartz.xml
G:\github合集\Common.Utility\Utility基础类大全\obj\Debug\DotNet.Utilities.dll
G:\github合集\Common.Utility\Utility基础类大全\obj\Debug\DotNet.Utilities.pdb
G:\github合集\Common.Utility\Utility基础类大全\obj\Debug\Common.Utility.csprojResolveAssemblyReference.cache
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\obj\Debug\Common.Utility.csproj.CoreCompileInputs.cache
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\DotNet.Utilities.dll.config
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\DotNet.Utilities.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\DotNet.Utilities.pdb
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\Common.Logging.Core.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\Common.Logging.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\ICSharpCode.SharpZipLib.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\itextsharp.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\Microsoft.Office.Interop.Owc11.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\Newtonsoft.Json.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\NPOI.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\NPOI.OOXML.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\NPOI.OpenXml4Net.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\NPOI.OpenXmlFormats.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\OWC10Chart.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\Quartz.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\mscomctl.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\stdole.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\Ionic.Zip.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\Common.Logging.xml
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\Common.Logging.Core.xml
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\Newtonsoft.Json.xml
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\NPOI.xml
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\bin\Debug\Quartz.xml
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\obj\Debug\Common.Utility.csproj.CopyComplete
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\obj\Debug\DotNet.Utilities.dll
C:\Users\Administrator\Source\Repos\Jimmey-Jiang\Common.Utility\Utility基础类大全\obj\Debug\DotNet.Utilities.pdb
Binary file not shown.
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b136ad9014f105ba577907a17bab38b243079791
Binary file not shown.
97 changes: 2 additions & 95 deletions Utility基础类大全/配置文件操作类/ConfigHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static void SetAppConfig(string key,string val)
{
ConfigurationManager.AppSettings.Set(key, val);
string CacheKey = "AppSettings-" + key;
DotNet.Common.DataCache.SetCache(CacheKey, val, DateTime.Now.AddMinutes(180), TimeSpan.Zero);
// DotNet.Common.DataCache.SetCache(CacheKey, val, DateTime.Now.AddMinutes(180), TimeSpan.Zero);
}
#endregion

Expand All @@ -147,26 +147,7 @@ public static void RemoveAppConfig(string key)
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
public static string GetConfigString(string key)
{
string CacheKey = "AppSettings-" + key;
object objModel = DotNet.Common.DataCache.GetCache(CacheKey);
if (objModel == null)
{
try
{
objModel = ConfigurationManager.AppSettings[key];
if (objModel != null)
{
DotNet.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(180), TimeSpan.Zero);
}
}
catch
{ }
}
return objModel.ToString();
}


#endregion

#region 得到AppSettings中的配置字符串信息 没有缓存
Expand All @@ -182,84 +163,10 @@ public static string GetNoCacheConfig(string key)

#endregion

#region 得到AppSettings中的配置Bool信息
/// <summary>
/// 得到AppSettings中的配置Bool信息
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
public static bool GetConfigBool(string key)
{
bool result = false;
string cfgVal = GetConfigString(key);
if (null != cfgVal && string.Empty != cfgVal)
{
try
{
result = bool.Parse(cfgVal);
}
catch (FormatException)
{
// Ignore format exceptions.
}
}
return result;
}

#endregion

#region 得到AppSettings中的配置Decimal信息
/// <summary>
/// 得到AppSettings中的配置Decimal信息
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
public static decimal GetConfigDecimal(string key)
{
decimal result = 0;
string cfgVal = GetConfigString(key);
if (null != cfgVal && string.Empty != cfgVal)
{
try
{
result = decimal.Parse(cfgVal);
}
catch (FormatException)
{
// Ignore format exceptions.
}
}

return result;
}

#endregion

#region 得到AppSettings中的配置int信息
/// <summary>
/// 得到AppSettings中的配置int信息
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
public static int GetConfigInt(string key)
{
int result = 0;
string cfgVal = GetConfigString(key);
if (null != cfgVal && string.Empty != cfgVal)
{
try
{
result = int.Parse(cfgVal);
}
catch (FormatException)
{
// Ignore format exceptions.
}
}

return result;
}
#endregion
}

}

0 comments on commit f166ea1

Please sign in to comment.