/// <summary>
        /// 获取服务
        /// </summary>
        /// <returns></returns>
        private IDataInit GetService()
        {
            string combValue = this.combInitType.SelectedValue.ToString();

            if (combValue == "0")
            {
                MessageBox.Show("请选择要操作的数据类型");
                return(null);
            }

            DataInitType initType = (DataInitType)Enum.Parse(typeof(DataInitType), combValue);

            IDataInit service = null;

            switch (initType)
            {
            case DataInitType.AdPosition:
                service = new ADPositionInitService();
                break;

            case DataInitType.ApiAuthoriza:
                service = new ApiAuthorizaInitService();
                break;

            case DataInitType.AreaCity:
                service = new SystemAreaInitService();
                break;

            case DataInitType.DefaultTianDaoAdminAccount:
                service = new AdminAccountInitService();
                break;

            case DataInitType.Empirical:
                service = new EmpiricalInitService();
                break;

            case DataInitType.GlobalConfig:
                service = new GlobalConfigInitService();
                break;

            case DataInitType.Industry:
                service = new IndustryInitService();
                break;

            case DataInitType.Level:
                service = new UserLevelInitService();
                break;

            case DataInitType.Points:
                service = new PointsInitService();
                break;

            case DataInitType.ServiceCategory:
                service = new ServiceCategoryInitService();
                break;

            case DataInitType.ProductLibraryCategory:
                service = new ProductLibraryCategoryInitService();
                break;

            case DataInitType.MerchantGoodsSystemCategory:
                service = new MerchantGoodsSystemCategoryInitService();
                break;

            case DataInitType.JobCategory:
                service = new JobCategoryInitService();
                break;
            }

            return(service);
        }
        public BaseInitService(DataInitType initType, string xmlDataFile)
        {
            this.Name = EnumExtensions.GetDesc <DataInitType>(initType.ToString());

            this.XmlFilePath = Path.Combine(AppContext.BaseDirectory, xmlDataFile);
        }