/// <summary> /// 初始化dbtune管理工作流程 /// </summary> private void InitDbtuneDbtuneManageWorkFlow() { if (this._workFlow == EnumWorkFlow.TablePartition.ToString()) { InitDbConnect(); this.txbDbPort.Text = "5151"; CommonUtil.WriteBlog(this.txbBlog, "--- SDE服务当前未连接"); this.cmbDbtuneKeyWord.SelectedIndex = -1; this.txbDbtuneParamValue.Text = string.Empty; this.cmbDbtuneKeyWord.Properties.Items.Clear(); } this.lciConnTips_2.Visibility = LayoutVisibility.Always; this.cmbDbtuneKeyWord.Enabled = false; this._dbtuneConfigHelper = null; this._dbtuneConfigParam = null; this._featureClass = null; this.btnImportFeature.Text = string.Empty; this.lciConnTips_1.Visibility = LayoutVisibility.Never; this._tbPtitionHelper = null; this._partitionParam = null; this.cmbTablespace.SelectedIndex = -1; this.cmbOriginTable.SelectedIndex = -1; this.cmbTablespace.Properties.Items.Clear(); this.cmbOriginTable.Properties.Items.Clear(); this._workFlow = EnumWorkFlow.DbtuneManage.ToString(); }
/// <summary> /// 执行数据表分区工作 /// </summary> /// <param name="txbBlog"></param> /// <param name="partitionParam"></param> /// <param name="tbpHelper"></param> internal static void ExcutePartition(MemoEdit txbBlog, PartitionParam partitionParam, TablePartitionHelper tbpHelper) { tbpHelper = new TablePartitionHelper(partitionParam); if (tbpHelper.PartitionByExchange()) { WriteBlog(txbBlog, "--- 执行成功"); } else { WriteBlog(txbBlog, "--- 执行失败,请检查参数"); } }
/// <summary> /// 初始化dbtune配置工作流程 /// </summary> private void InitDbtuneConfigWorkFlow() { if (this._workFlow == EnumWorkFlow.TablePartition.ToString()) { InitDbConnect(); this.txbDbPort.Text = "5151"; CommonUtil.WriteBlog(this.txbBlog, "--- SDE服务当前未连接"); this.btnImportFeature.Text = string.Empty; this.cmbColumnIdentity.SelectedIndex = -1; this.cmbPartitionWay.SelectedIndex = -1; this.txbTips.Text = string.Empty; this.btnAssignTablespace.Text = string.Empty; this.txbTargetName.Text = string.Empty; this.cmbColumnIdentity.Properties.Items.Clear(); } this.lciConnTips_1.Visibility = LayoutVisibility.Always; this._dbtuneConfigParam = new DbtuneConfigParam(); this._dbtuneConfigParam.Clear(); this._featureClass = null; this._partitionCount = -1; this._columnInfoSet = new Dictionary <string, string>(); this._boundary = new Dictionary <string, double>(); this._partitionInfoSet = new List <PartitionInfo>(); this._partitionRefer = new List <string>(); this.btnImportFeature.Enabled = false; this._tbPtitionHelper = null; this._partitionParam = null; this.cmbTablespace.SelectedIndex = -1; this.cmbOriginTable.SelectedIndex = -1; this.cmbTablespace.Properties.Items.Clear(); this.cmbOriginTable.Properties.Items.Clear(); this._dbtuneManageHelper = null; this.cmbDbtuneKeyWord.SelectedIndex = -1; this.txbDbtuneParamValue.Text = string.Empty; this.cmbDbtuneKeyWord.Properties.Items.Clear(); this.lciConnTips_2.Visibility = LayoutVisibility.Never; this._workFlow = EnumWorkFlow.DbtuneConfigure.ToString(); }