/// <summary>
        /// 开始导入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btn_ImportAll(object sender, EventArgs e)
        {
            string retValue = this.CheckEnableSubmit();

            if (retValue == "Ok")
            {
                ParamsImport psv = new ParamsImport();
                psv.Tg_TableName = "TBPM_STRINFODQO";
                psv.Tg_Engid     = ViewState["TaskID"].ToString();
                ////psv.Tg_FatherIndex = "";

                psv.Src_TableName = "View_TM_DQO";
                psv.Src_Engid     = ddlEngName.SelectedValue.Split('%')[0];
                ////psv.Src_FatherIndex = "";



                psv.Bef_RepTuhao_1 = txtOldTu_1.Text.Trim();
                psv.Aft_RepTuhao_1 = txtNewTu_1.Text.Trim();
                psv.Bef_RepTuhao_2 = txtOldTu_2.Text.Trim();
                psv.Aft_RepTuhao_2 = txtNewTu_2.Text.Trim();

                for (int i = 0; i < Convert.ToInt16((ViewState["CurrentFX"]).ToString()); i++)
                {
                    ZCZJ_DPF.UserInputZongxu tt = (ZCZJ_DPF.UserInputZongxu)tb1.FindControl("UserInputZongxu_" + (i + 1).ToString());
                    if (tt.Visible)
                    {
                        psv.Src_FatherIndex = ((TextBox)tt.FindControl("txtBeforeFX")).Text.Trim().Split('|')[1].Trim();
                        psv.Tg_FatherIndex  = ((TextBox)tt.FindControl("txtAfterFX")).Text.Trim();
                        psv.NotImport       = tt.ArrayNotImport.Replace("-", "'");
                        psv.Tg_TotalTaishu  = lblNumber.Text.Trim();
                        try
                        {
                            this.ExecImport(psv);
                            ((TextBox)tt.FindControl("txtBeforeFX")).Text = "";
                            ((TextBox)tt.FindControl("txtAfterFX")).Text  = "";
                        }
                        catch (Exception)
                        {
                            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('导入【" + psv.Src_FatherIndex + "】时出错,该父序及后续父序导入未完成!!!\\r\\r可能原因:复制导致目标工程中序号重复');", true);
                            return;
                        }
                    }
                }
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('导入完成!!!');", true);
            }
            else if (retValue.Contains("BelongTo"))
            {
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('无法导入!!!\\r【复制后父序】存在归属关系!!!');", true);
            }
            else if (retValue.Contains("Empty"))
            {
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('无法导入!!!\\r【待复制父序】及【复制后父序】不能为空!!!');", true);
            }
            else if (retValue.Contains("NoFather"))
            {
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('无法导入!!!\\r父级不存在!!!');", true);
            }
        }
        protected void GetAllControl()
        {
            for (int i = 0; i < Convert.ToInt16((ViewState["CurrentFX"]).ToString()); i++)
            {
                Control uiz = this.Page.LoadControl("../Controls/UserInputZongxu.ascx");
                uiz.ID = "UserInputZongxu_" + (i + 1).ToString();

                TableRow tr1 = new TableRow();
                tr1.ID = "tr1_" + (i + 1).ToString();
                TableCell td1 = new TableCell();
                td1.ID = "td1_" + (i + 1).ToString();

                td1.Controls.Add(uiz);
                tr1.Cells.Add(td1);
                tb1.Rows.Add(tr1);

                ZCZJ_DPF.UserInputZongxu tt = (ZCZJ_DPF.UserInputZongxu)uiz;


                tt.FZ              = ddlFZ.SelectedValue;
                tt.TabelName       = "View_TM_DQO";
                tt.TaskID          = ddlEngName.SelectedValue;
                tt.TabelNameTarget = "View_TM_DQO";
                tt.TaskIDTarget    = ViewState["TaskID"].ToString();

                ((AjaxControlToolkit.AutoCompleteExtender)tt.FindControl("AutoCompleteExtender")).ContextKey = tt.TabelName + "@" + tt.TaskID;//BM_ZONGXU(BM_XUHAO)@TableName@TaskID
            }
            ((ImageButton)((ZCZJ_DPF.UserInputZongxu)tb1.FindControl("UserInputZongxu_1")).FindControl("imgbDelete")).Visible = false;
        }
        protected string CheckEnableSubmit()
        {
            ArrayList array_bx_ax = new ArrayList();

            for (int i = 0; i < Convert.ToInt16((ViewState["CurrentFX"]).ToString()); i++)
            {
                ZCZJ_DPF.UserInputZongxu tt = (ZCZJ_DPF.UserInputZongxu)tb1.FindControl("UserInputZongxu_" + (i + 1).ToString());
                if (tt.Visible)
                {
                    CopyBx_Ax cba = new CopyBx_Ax(((TextBox)tt.FindControl("txtBeforeFX")).Text, ((TextBox)tt.FindControl("txtAfterFX")).Text);
                    array_bx_ax.Add(cba);
                    if (((Label)tt.FindControl("lblTip")).Visible && ((Label)tt.FindControl("lblTip")).Text == "没有父级,无法导入")
                    {
                        return("NoFather");
                    }
                }
            }

            foreach (object obj in array_bx_ax)
            {
                CopyBx_Ax ba = obj as CopyBx_Ax;
                if (ba.AX == "" || ba.BX == "")
                {
                    return("Empty");
                }
            }

            int cytimes = array_bx_ax.Count;

            for (int i = 0; i < cytimes; i++)
            {
                for (int j = 0; j < cytimes; j++)
                {
                    if (i != j)
                    {
                        CopyBx_Ax ba_i = array_bx_ax[i] as CopyBx_Ax;
                        CopyBx_Ax ba_j = array_bx_ax[j] as CopyBx_Ax;
                        if (ba_i.AX.Contains(ba_j.AX))
                        {
                            return("BelongTo");
                        }
                    }
                }
            }
            return("Ok");
        }
        protected void GetContextKey()
        {
            for (int i = 0; i < Convert.ToInt16((ViewState["CurrentFX"]).ToString()); i++)
            {
                ZCZJ_DPF.UserInputZongxu tt = (ZCZJ_DPF.UserInputZongxu)tb1.FindControl("UserInputZongxu_" + (i + 1).ToString());

                tt.FZ              = ddlFZ.SelectedValue;
                tt.TabelName       = "View_TM_DQO";
                tt.TaskID          = ddlEngName.SelectedValue.Split('%')[0];
                tt.TabelNameTarget = "View_TM_DQO";
                tt.TaskIDTarget    = ViewState["TaskID"].ToString();

                ((AjaxControlToolkit.AutoCompleteExtender)tt.FindControl("AutoCompleteExtender")).ContextKey = tt.TabelName + "@" + tt.TaskID;//BM_ZONGXU(BM_XUHAO)@TableName@TaskID
            }
        }