資源簡介
日志文件清理
代碼片段和文件信息
/******************************************************************************
?*?Project?name???:?DVMS
?*?Block?name?????:?BatchCommon
?*?Author?????????:?FUJITSU)
?*?Create?Date????:?2020/02/24
?*?
?*?Class?Name?????:?CommonClass
?*?Class?Summary??:?設置相關參數類
?*?
?*?History????????:?2020.02.24?FUJITSU)
?*
?*?(C)2020?FUJITSU?CORPORATION.?All?Rights?Reserved.
?*****************************************************************************/
using?System;
using?System.Threading;
namespace?BatchCommon
{
????#region?CommonClass
????public?class?CommonClass
????{
????????private?const?string?xmlFile?=?“DVMSDEL.xml“;
????????#region?變量聲明
????????//實例化
????????FileClass?fileClass?=?new?FileClass();
????????#endregion?變量聲明
????????#region?前處理過程
????????///?
????????///前處理過程,正確返回ture,錯誤返falseMSGID
????????///?
????????public?bool?CommonstartProc(String?jobID)
????????{
????????????try
????????????{
????????????????//?建立Message字典
????????????????MessageClass.InitMsgInfo(xmlFile);
????????????????//?兩次運行檢查,是則結束JOB
????????????????Mutex?mt?=?new?Mutex(true?jobID);
????????????????if?(!mt.WaitOne(0?false))
????????????????{
????????????????????return?false;
????????????????}
????????????????return?true;
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?ex;
????????????}
????????}
????????#endregion?前處理過程
????????#region?結束處理過程
????????//?
????????//?前處理過程,正確返回ture,錯誤返falseMSGID
????????//? ??
????????public?void?CommonEndProc(int?retCode)
????????{
????????????try
????????????{
????????????????//fileClass.CreateRetFile(retCode);
????????????????//?清空字典
????????????????MessageClass.ClearMsgInfo();
????????????????return;
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????throw?ex;
????????????}
????????}
????????#endregion?結束處理過程
????}
????#endregion?CommonClass
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-09-19?14:00??清除日志文件數據庫數據\
?????目錄???????????0??2020-09-19?14:00??清除日志文件數據庫數據\BatchCommon\
?????文件????????3018??2020-06-17?11:54??清除日志文件數據庫數據\BatchCommon\BatchCommon.csproj
?????文件?????????231??2020-06-17?12:01??清除日志文件數據庫數據\BatchCommon\BatchCommon.csproj.user
?????目錄???????????0??2020-09-19?14:00??清除日志文件數據庫數據\BatchCommon\bin\
?????目錄???????????0??2020-09-19?14:00??清除日志文件數據庫數據\BatchCommon\bin\Debug\
?????文件???????22016??2020-06-19?14:37??清除日志文件數據庫數據\BatchCommon\bin\Debug\BatchCommon.dll
?????文件???????65024??2020-06-19?14:37??清除日志文件數據庫數據\BatchCommon\bin\Debug\BatchCommon.pdb
?????目錄???????????0??2020-09-19?14:00??清除日志文件數據庫數據\BatchCommon\bin\Release\
?????文件???????20992??2020-06-17?11:57??清除日志文件數據庫數據\BatchCommon\bin\Release\BatchCommon.dll
?????文件???????56832??2020-06-17?11:57??清除日志文件數據庫數據\BatchCommon\bin\Release\BatchCommon.pdb
?????文件????????2062??2020-06-17?15:32??清除日志文件數據庫數據\BatchCommon\CommonClass.cs
?????文件????????3865??2020-06-19?14:33??清除日志文件數據庫數據\BatchCommon\DBAccess.cs
?????文件?????????164??2020-09-19?14:01??清除日志文件數據庫數據\BatchCommon\DbTable.cs
?????文件????????1357??2020-09-19?14:01??清除日志文件數據庫數據\BatchCommon\DelFile.cs
?????文件????????1291??2020-09-19?14:01??清除日志文件數據庫數據\BatchCommon\DelTable.cs
?????文件????????8687??2020-06-03?10:31??清除日志文件數據庫數據\BatchCommon\FileClass.cs
?????文件?????????203??2020-09-19?14:02??清除日志文件數據庫數據\BatchCommon\Files.cs
?????文件???????13712??2020-06-03?10:31??清除日志文件數據庫數據\BatchCommon\FormateClass.cs
?????文件????????5767??2020-06-03?10:31??清除日志文件數據庫數據\BatchCommon\FtpClass.cs
?????文件????????3112??2020-06-03?10:31??清除日志文件數據庫數據\BatchCommon\GetIniClass.cs
?????文件????????5216??2020-06-03?10:31??清除日志文件數據庫數據\BatchCommon\LogClass.cs
?????文件????????3858??2020-06-03?10:31??清除日志文件數據庫數據\BatchCommon\MessageClass.cs
?????目錄???????????0??2020-09-19?14:00??清除日志文件數據庫數據\BatchCommon\obj\
?????目錄???????????0??2020-09-19?14:00??清除日志文件數據庫數據\BatchCommon\obj\Debug\
?????文件??????????42??2020-06-19?14:37??清除日志文件數據庫數據\BatchCommon\obj\Debug\BatchCommon.csproj.CoreCompileInputs.cache
?????文件????????2652??2020-06-19?14:37??清除日志文件數據庫數據\BatchCommon\obj\Debug\BatchCommon.csproj.FileListAbsolute.txt
?????文件????????8277??2020-07-04?14:44??清除日志文件數據庫數據\BatchCommon\obj\Debug\BatchCommon.csprojAssemblyReference.cache
?????文件???????22016??2020-06-19?14:37??清除日志文件數據庫數據\BatchCommon\obj\Debug\BatchCommon.dll
?????文件???????65024??2020-06-19?14:37??清除日志文件數據庫數據\BatchCommon\obj\Debug\BatchCommon.pdb
?????文件????????6456??2020-06-17?11:23??清除日志文件數據庫數據\BatchCommon\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
............此處省略61個文件信息
- 上一篇:PDFView PDF文件處理59003
- 下一篇:unity讀取Excel
評論
共有 條評論