示例#1
0
        private void PopulatePostCodes()
        {
            CurrentStep         = this["CopyToMI"];
            CurrentStep.Timeout = _populatePostCodesTimeout;
            CurrentStep.Start();
            CurrentStep.UpdateProgress(0, "copy post code data to MI");
            MIStagingStoredProcedures spRunner = new MIStagingStoredProcedures();

            spRunner.PopulatePostCodes(_populatePostCodesTimeout);
            CurrentStep.Finish(true);
        }
示例#2
0
        private void TruncateMIPostCodeData()
        {
            CurrentStep         = this["DeletePreviousFromMI"];
            CurrentStep.Timeout = _truncateMIPostCodeDataTimeout;
            CurrentStep.Start();
            CurrentStep.UpdateProgress(0, "Deleting previous post code files from MI");
            MIStagingStoredProcedures spRunner = new MIStagingStoredProcedures();

            spRunner.TruncateMIPostCodeData(_truncateMIPostCodeDataTimeout);
            CurrentStep.Finish(true);
        }
 /// <summary>
 /// Removes old data for the current file from the loading area.
 /// </summary>
 private void DeleteFromLoadingArea()
 {
     CurrentStep         = this["DeleteFromLoadingArea"];
     CurrentStep.Timeout = _deleteParticipantDataTimeout;
     CurrentStep.Start();
     CurrentStep.UpdateProgress(0, "Deleting previous file from loading area");
     if (_fileType == "Participant")
     {
         MIStagingStoredProcedures spRunner = new MIStagingStoredProcedures();
         spRunner.DeleteParticipantData(ProviderKey, _deleteParticipantDataTimeout);
     }
     CurrentStep.Finish(true);
 }
        private void CopyBulkLoadedData()
        {
            CurrentStep         = this["CopyBulkLoadedData"];
            CurrentStep.Timeout = _copyParticipantBulkLoadedFlatTimeout;
            CurrentStep.Start();
            CurrentStep.UpdateProgress(0, "Copying bulk data");
            if (_fileType == "Participant")
            {
                MIStagingStoredProcedures spRunner = new MIStagingStoredProcedures();
                spRunner.CopyParticipantBulkLoadedFlat(ProviderKey, _copyParticipantBulkLoadedFlatTimeout);
            }
            UpdateHistoryStatus("Loaded");

            CurrentStep.Finish(true);
        }