SDC C-Project CF Review 프로그램
LYW
2021-07-09 6bb39b058bce38f80645e1e54d03a172f74dba3b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#pragma once
 
//#include "CommendParam.h"
 
//A2E FTPUploader
 
class CFTPParamCopyData
{
public:
    CFTPParamCopyData()
    {
        memset(strLocalFilePath,0,sizeof(char)*255);
        memset(strHostSubFolder,0,sizeof(char)*255);
        memset(strFindFileName,0,sizeof(char)*255);
        memset(strFolderPath,0,sizeof(char)*255);
        memset(strFolderFormat,0,sizeof(char)*255);
        bUpload = TRUE;
        bDelete = FALSE;
        bMakeResultFile = FALSE;
    }
    ~CFTPParamCopyData()
    {
 
    }
    char strLocalFilePath[255];
    char strHostSubFolder[255];
    char strFindFileName[255];
    char strFolderPath[255];
    char strFolderFormat[255];    
    BOOL bUpload;
    BOOL bDelete;
    BOOL bMakeResultFile;
};
 
class CFTPStackCopyData
{
public:
    CFTPStackCopyData()
    {
        memset(strLotID,0,sizeof(char)*255);
        memset(strGlassID,0,sizeof(char)*255);
    }
    ~CFTPStackCopyData()
    {
 
    }
    char strLotID[255];
    char strGlassID[255];
};
 
class CFileUploadControl
{
public:
    CFileUploadControl(void);
    ~CFileUploadControl(void);
 
    void RestartFTPUploader(CString strFilePath);
    void RestartCopyManager(CString strFilePath);
    void StartFTPUploader(CString strFilePath);
    void StartCopyManager(CString strFilePath);
    BOOL UploadFileByFTPUploader(CString strLocalFilePath, CString strHostSubFolder, BOOL bDelete=FALSE);
    //BOOL UploadFileByFTPUploader(CCommendParam &Param);
    BOOL DownloadFileByFTPUploader(CString strHostSubFolder, CString strLocalFilePath);
    BOOL FindDownloadFileByFTPUploader(CString strHostSubFolder, CString strLocalFilePath, CString strFileName);
    BOOL UploadImageByFTPUploader(CString strLocalFolderPath, CString strHostSubFolder, CString strFileFormat, BOOL bDelete=FALSE);
    //BOOL UploadImageByFTPUploader(CCommendParam &Param);
    //BOOL DownloadStack(CString strHostSubFolder, CString strLocalFilePath, CString strFileName);
 
    //BOOL MakeResultInfoByCopyManager(CString strRawFolderPath, CString strHostFolderPath, BOOL bFTPUpload=FALSE);
    
    CRITICAL_SECTION m_csImgUpload;
 
protected:
    BOOL KillProcess(CString strProcess);
};