|
@@ -1089,31 +1089,16 @@ namespace Agent.Services
|
|
|
var info = new FileInfo(policy.Path);
|
|
|
|
|
|
policy.Create_Date = info.LastWriteTime;
|
|
|
-
|
|
|
- // 데이터베이스에 넣기전 파싱하는 부분 (시험번호, 사용자) 명명규칙
|
|
|
-
|
|
|
- string sFiletype = fileName.Substring(fileName.LastIndexOf('.') + 1);
|
|
|
-
|
|
|
- if (sFiletype == "pdf")
|
|
|
+ String[] strfileName = fileName.Split('_');
|
|
|
+ if (strfileName.Length > 2)
|
|
|
{
|
|
|
- String[] strfileName = fileName.Split('_');
|
|
|
- if (strfileName.Length > 2)
|
|
|
- {
|
|
|
- policy.Work_Emp = strfileName[0].ToString();
|
|
|
- policy.Test_No = strfileName[1].ToString();
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- policy.Work_Emp = null;
|
|
|
- policy.Test_No = null;
|
|
|
- }
|
|
|
- }
|
|
|
- else
|
|
|
+ policy.Work_Emp = strfileName[0].ToString();
|
|
|
+ policy.Test_No = strfileName[1].ToString();
|
|
|
+ }else
|
|
|
{
|
|
|
policy.Work_Emp = null;
|
|
|
policy.Test_No = null;
|
|
|
}
|
|
|
-
|
|
|
//성공
|
|
|
int result = AddFilePolicyHistory(policy, isHashCheck, isLimit);
|
|
|
if (0 < result)
|