Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="serverTableType"></param>
        protected void SetBulkLists(ServerTableType serverTableType)
        {
            List <IMerge> bulkList = new List <IMerge>();

            foreach (var pattern in patterns)
            {
                foreach (FileInfo file in Rootdir.GetFiles(pattern.Pattern).OrderBy(file => file.Length))
                {
                    bulkList.Add(new BulkTableOperator(pattern.TableName, SchemaName, file, serverTableType, Connection));
                }
            }
            OperatingLists.Add(bulkList);
        }
        public void SetBulkLists()
        {
            List <BulkTableListItem> bulkList = new List <BulkTableListItem>();

            for (int n = 0; n <= (patterns.Length / patterns.Rank - 1); n++)
            {
                foreach (FileInfo file in Rootdir.GetFiles(patterns[n, 1]).OrderBy(file => file.Length))
                {
                    bulkList.Add(new BulkTableListItem(patterns[n, 0], SchemaName, file));
                }
            }
            bulkLists.Add(bulkList);
            //bulkLists.Sort(CompareBulkTableListItem);
        }
Exemple #3
0
        protected void SetProcrdureList()
        {
            List <IMerge> procedureList = new List <IMerge>();

            foreach (var pattern in patterns)
            {
                foreach (FileInfo file in Rootdir.GetFiles(pattern.Pattern).OrderBy(file => file.Length))
                {
                    switch (pattern.Pattern)
                    {
                    case "ACTSTAT.DBF":
                        procedureList.Add(new ActualStatusOperatorSP(file, Connection));
                        break;

                    case "CENTERST.DBF":
                        procedureList.Add(new CenterStatusOperatorSP(file, Connection));
                        break;

                    case "CURENTST.DBF":
                        procedureList.Add(new CurrentStatusOperatorSP(file, Connection));
                        break;

                    case "ESTSTAT.DBF":
                        procedureList.Add(new EstateStatusOperatorSP(file, Connection));
                        break;

                    case "FLATTYPE.DBF":
                        procedureList.Add(new FlatTypeOperatorSP(file, Connection));
                        break;

                    case "INTVSTAT.DBF":
                        procedureList.Add(new IntervalStatusOperatorSP(file, Connection));
                        break;

                    case "HSTSTAT.DBF":
                        procedureList.Add(new HouseStateStatusOperatorSP(file, Connection));
                        break;

                    case "NDOCTYPE.DBF":
                        procedureList.Add(new NormativeDocumentTypeOperatorSP(file, Connection));
                        break;

                    case "OPERSTAT.DBF":
                        procedureList.Add(new OperationStatusOperatorSP(file, Connection));
                        break;

                    case "ROOMTYPE.DBF":
                        procedureList.Add(new RoomTypeOperatorSP(file, Connection));
                        break;

                    case "SOCRBASE.DBF":
                        procedureList.Add(new AddressObjectTypeOperatorSP(file, Connection));
                        break;

                    case "STRSTAT.DBF":
                        procedureList.Add(new StructureStatusOperatorSP(file, Connection));
                        break;

                    case "ADDROB??.DBF":
                        procedureList.Add(new AddressObjectsOperatorSP(file, Connection));
                        break;

                    case "HOUSE??.DBF":
                        procedureList.Add(new HouseOperatorSP(file, Connection));
                        break;

                    case "NORDOC??.DBF":
                        procedureList.Add(new NormativeDocumentOperatorSP(file, Connection));
                        break;

                    case "STEAD??.DBF":
                        procedureList.Add(new SteadOperatorSP(file, Connection));
                        break;

                    case "ROOM??.DBF":
                        procedureList.Add(new RoomOperatorSP(file, Connection));
                        break;

                    case "DHOUSE.DBF":
                        procedureList.Add(new Del_HouseOperatorSP(file, Connection));
                        break;

                    case "DNORDOC.DBF":
                        procedureList.Add(new Del_NormativeDocumentOperatorSP(file, Connection));
                        break;

                    case "DADDROB.DBF":
                        procedureList.Add(new Del_ObjectOperatorSP(file, Connection));
                        break;
                    }
                }
            }
            OperatingLists.Add(procedureList);
        }