Pārlūkot izejas kodu

Revert "기능 : .pdf 파일이 아닌 파일들에 대해서는 [di_policy_history] 테이블에 test_no, work_emp 를 수집하지 않는다."

This reverts commit d1c673f20a8f406f11a47643ffb5bf81b87fd53c.
cms 4 mēneši atpakaļ
vecāks
revīzija
b956396abb
1 mainītis faili ar 5 papildinājumiem un 20 dzēšanām
  1. 5 20
      DI/Agent/Services/PolicyService.cs

+ 5 - 20
DI/Agent/Services/PolicyService.cs

@@ -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)