コード例 #1
0
        protected baseImporter_Processor(Constant_Fields constantCollection)
        {
            // Create the objects to keep track of errors and items processed
            report = new Importer_Report();
            errors = new List<string>();
            warnings = new List<string>();

            // Save the parameters
            this.constantCollection = constantCollection;

            // Set some constants;
            recordsSavedToDB = 0;
            recordsProcessed = 0;
            recordsSkipped = 0;
            errorCnt = 0;
            preview_counter = 1;
            allow_overlay = false;

            // Load the data tables needed
            //     TrackingDB.CS_TrackingDatabase.Refresh_Bib_Table();
            allInstitutions = SobekCM.Library.Database.SobekCM_Database.Get_Codes_Item_Aggregations(null);

            // Declare the lists which will hold the new bib id and receiving id information
            Provided_Bib_To_New_Bib = new Dictionary<string, string>();
            Provided_Bib_To_New_Receiving = new Dictionary<string, int>();
            New_Bib_IDs = new List<string>();

            // Set some defaults
            default_projects = new List<string>();
            default_material_type = String.Empty;
        }
コード例 #2
0
        protected baseImporter_Processor(Constant_Fields constantCollection)
        {
            // Create the objects to keep track of errors and items processed
            report   = new Importer_Report();
            errors   = new List <string>();
            warnings = new List <string>();

            // Save the parameters
            this.constantCollection = constantCollection;

            // Set some constants;
            recordsSavedToDB = 0;
            recordsProcessed = 0;
            recordsSkipped   = 0;
            errorCnt         = 0;
            preview_counter  = 1;
            allow_overlay    = false;

            // Load the data tables needed
            //     TrackingDB.CS_TrackingDatabase.Refresh_Bib_Table();
            allInstitutions = SobekCM.Library.Database.SobekCM_Database.Get_Codes_Item_Aggregations(null);

            // Declare the lists which will hold the new bib id and receiving id information
            Provided_Bib_To_New_Bib       = new Dictionary <string, string>();
            Provided_Bib_To_New_Receiving = new Dictionary <string, int>();
            New_Bib_IDs = new List <string>();

            // Set some defaults
            default_projects      = new List <string>();
            default_material_type = String.Empty;
        }