private void CoreEnvelopeAssessConfigForm_Load(object sender, EventArgs e)
        {
            this.ownerForm  = (CoreEnvelopeAssessForm)this.Owner;
            assessCoreDatas = ownerForm.coreAssessResult.assessCoreDataList.Select(item => (CorePointExt)item.Clone()).ToList();
            foreach (CorePointExt cpe in assessCoreDatas)
            {
                ListViewItem item = new ListViewItem();
                item.Checked = cpe.isAssess;
                item.Text    = cpe.pointName;
                item.Name    = cpe.pointName;
                this.coreAssesslistView.Items.Add(item);
            }

            this.txtTopMarginMin.Text  = ownerForm.coreAssessResult.topMarginMin.ToString();
            this.txtTopMarginMax.Text  = ownerForm.coreAssessResult.topMarginMax.ToString();
            this.txtDownMarginMin.Text = ownerForm.coreAssessResult.downMarginMin.ToString();
            this.txtDownMarginMax.Text = ownerForm.coreAssessResult.downMarginMax.ToString();
        }
        private void btnConfirm_Click(object sender, EventArgs e)
        {
            if (this.treeCoreEnvelope.SelectedNode == null)
            {
                MessageBox.Show("请选择结点");
                return;
            }
            CoreEnvelopeAssessForm parentForm = ((CoreEnvelopeAssessForm)this.Owner);
            TreeNode selNode = this.treeCoreEnvelope.SelectedNode;

            if (flag == 0)
            {
                //从重心设计中加载数据
                for (int i = 0; i < lstCoreEnvelopeDesign.Count; i++)
                {
                    if (selNode.ToolTipText == i.ToString())
                    {
                        List <CorePointExt> cpeList = new List <CorePointExt>();
                        foreach (NodeFormula nf in lstCoreEnvelopeDesign[i].FormulaList)
                        {
                            CorePointExt cpe = new CorePointExt();
                            cpe.pointName   = nf.NodeName;
                            cpe.pointXValue = nf.XFormula.Value;
                            cpe.pointYValue = nf.YFormula.Value;
                            cpe.isAssess    = false;
                            cpeList.Add(cpe);
                        }
                        parentForm.saveCoreGridView(cpeList, "0");
                        break;
                    }
                }
            }
            else if (flag == 1)
            {
                //从重心裁剪中加载数据
                for (int i = 0; i < lstCutResultData.Count; i++)
                {
                    if (selNode.ToolTipText == i.ToString())
                    {
                        List <CorePointExt> cpeList = new List <CorePointExt>();
                        foreach (CorePointData cpd in lstCutResultData[i].lstCutEnvelopeCore)
                        {
                            cpeList.Add(CommonUtil.corePointDataToCorePoinExt(cpd));
                        }
                        parentForm.saveCoreGridView(cpeList, "0");
                        break;
                    }
                }
            }
            else if (flag == 2)
            {
                //从重心数据库中加载数据
                foreach (Model.CoreEnvelopeDesign core in this.lstCoreEnvelope)
                {
                    if (core.Id.ToString() == selNode.Name)
                    {
                        List <CorePointExt>  cpeList = new List <CorePointExt>();
                        List <CorePointData> list    = CoreEnvelopeDesign.GetStringToListCorePointData(core.CoreEnvelope);
                        foreach (CorePointData cpd in list)
                        {
                            cpeList.Add(CommonUtil.corePointDataToCorePoinExt(cpd));
                        }
                        parentForm.saveCoreGridView(cpeList, "0");
                        break;
                    }
                }
            }

            this.Close();
        }
        private void CoreEnvelopeAssessConfigForm_Load(object sender, EventArgs e)
        {
            this.ownerForm = (CoreEnvelopeAssessForm)this.Owner;
            assessCoreDatas=ownerForm.coreAssessResult.assessCoreDataList.Select(item => (CorePointExt)item.Clone()).ToList();
            foreach (CorePointExt cpe in assessCoreDatas)
            {
                ListViewItem item = new ListViewItem();
                item.Tag = cpe.id;
                item.Checked = cpe.isAssess;
                item.Text = cpe.pointName;
                item.Name = cpe.pointName;
                this.coreAssesslistView.Items.Add(item);
            }

                this.txtTopMarginMin.Text = (Convert.ToDouble(ownerForm.coreAssessResult.topMarginMin) * 100).ToString();
            this.txtTopMarginMax.Text = (Convert.ToDouble(ownerForm.coreAssessResult.topMarginMax) * 100).ToString();
            this.txtDownMarginMin.Text = (Convert.ToDouble(ownerForm.coreAssessResult.downMarginMin) * 100).ToString();
            this.txtDownMarginMax.Text = (Convert.ToDouble(ownerForm.coreAssessResult.downMarginMax) * 100).ToString();
        }