Пример #1
0
        public void SyncUpload()
        {
            API_FTPServer fTPServer = new API_FTPServer();

            ftpServerList.ftpServers = fTPServer.FTPServerRequest();

            for (int i = 0; i < ftpServerList.ftpServers.Count; i++)
            {
                ftpServer   = ftpServerList.ftpServers[i].ftpServerName;
                ftpUsername = ftpServerList.ftpServers[i].ftpUsername;
                ftpPassword = ftpServerList.ftpServers[i].ftpPassword;
            }

            runStoreProcedure();
        }
Пример #2
0
        public void SyncDownload()
        {
            API_UpdateSyncDetail   updateSyncDetail   = new API_UpdateSyncDetail();
            API_FTPServer          fTPServer          = new API_FTPServer();
            API_DownloadSyncDetail downloadSyncDetail = new API_DownloadSyncDetail();

            downloadSyncDetail.getDownloadSyncDetail();
            ftpServerList.ftpServers = fTPServer.FTPServerRequest();

            for (int i = 0; i < ftpServerList.ftpServers.Count; i++)
            {
                ftpServer   = ftpServerList.ftpServers[i].ftpServerName;
                ftpUsername = ftpServerList.ftpServers[i].ftpUsername;
                ftpPassword = ftpServerList.ftpServers[i].ftpPassword;
            }

            downloadFile();

            insertRecordFormFile();
            deleteFile();
            updateSyncDetail.updateSync();
        }