private void memu2CurrentAdjustmentImport_Click(object sender, EventArgs e)
        {
            if (treeViewSort.Nodes.Count == 0)
            {
                XLog.Write("先导入重量数据1数据");
                MessageBox.Show("先导入重量数据1数据");
                return;
            }

            if (mainForm.designProjectData == null)
            {
                MessageBox.Show("重量调整结果没有数据");
                XLog.Write("重量调整结果没有数据");
                return;
            }
            if (mainForm.designProjectData.lstAdjustmentResultData == null || mainForm.designProjectData.lstAdjustmentResultData.Count == 0)
            {
                MessageBox.Show("重量调整结果没有数据");
                XLog.Write("重量调整结果没有数据");
                return;
            }
            strWeightDataType = "data2";
            ImportWeightDataListForm form = new ImportWeightDataListForm(this, mainForm.designProjectData, "weightAdjust");

            form.ShowDialog();
        }
        /// <summary>
        /// 重量数据2从当前重量设计数据导入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolMemuWeihtData2FormWeightDataImport_Click(object sender, EventArgs e)
        {
            if (treeViewSort.Nodes.Count == 0)
            {
                XLog.Write("先导入重量数据1数据");
                MessageBox.Show("先导入重量数据1数据");
                return;
            }

            if (mainForm.designProjectData == null)
            {
                MessageBox.Show("当前重量设计没有数据");
                XLog.Write("当前重量设计没有数据");
                return;
            }
            else
            {
                if ((mainForm.designProjectData.lstWeightArithmetic == null || mainForm.designProjectData.lstWeightArithmetic.Count == 0) &&
                    (mainForm.designProjectData.lstAdjustmentResultData == null || mainForm.designProjectData.lstAdjustmentResultData.Count == 0))
                {
                    MessageBox.Show("当前重量设计没有数据");
                    XLog.Write("当前重量设计没有数据");
                    return;
                }
            }

            strWeightDataType = "data2";
            ImportWeightDataListForm form = new ImportWeightDataListForm(this, mainForm.designProjectData, "weightDesign");

            form.ShowDialog();
        }
        /// <summary>
        /// 从重量设计数据库导入数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void memu1FromWeightDesignDBImport_Click(object sender, EventArgs e)
        {
            BLLWeightDesignData     bllWeightDesign = new BLLWeightDesignData();
            List <WeightDesignData> lstWeightDesign = bllWeightDesign.GetListModel();

            if (lstWeightDesign.Count == 0)
            {
                XLog.Write("数据库没有重量设计数据");
                MessageBox.Show("数据库没有重量设计数据");
            }

            strWeightDataType = "data1";
            ImportWeightDataListForm form = new ImportWeightDataListForm(this, lstWeightDesign, "weightDB");

            form.ShowDialog();
        }
        /// <summary>
        /// 从型号重量数据库导入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void memu1FromTypeDBImport_Click(object sender, EventArgs e)
        {
            BLLTypeWeightData bllTypeWeight = new BLLTypeWeightData();

            List <TypeWeightData> lstTypeWeight = bllTypeWeight.GetListModel();

            if (lstTypeWeight.Count == 0)
            {
                XLog.Write("数据库没有型号重量数据");
                MessageBox.Show("数据库没有型号重量数据");
                return;
            }
            strWeightDataType = "data1";
            ImportWeightDataListForm form = new ImportWeightDataListForm(this, lstTypeWeight, "typeDB");

            form.ShowDialog();
        }
        /// <summary>
        /// 重量数据1从当前重量调整数据导入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolFormAdjustWeightImport_Click(object sender, EventArgs e)
        {
            if (mainForm.designProjectData == null)
            {
                MessageBox.Show("重量调整结果没有数据");
                XLog.Write("重量调整结果没有数据");
                return;
            }
            if (mainForm.designProjectData.lstAdjustmentResultData == null || mainForm.designProjectData.lstAdjustmentResultData.Count == 0)
            {
                MessageBox.Show("重量调整结果没有数据");
                XLog.Write("重量调整结果没有数据");
                return;
            }
            strWeightDataType = "data1";
            ImportWeightDataListForm form = new ImportWeightDataListForm(this, mainForm.designProjectData, "weightAdjust");

            form.ShowDialog();
        }
        /// <summary>
        /// 从当前重量设计数据导入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void memu1FromCurrentWeighDesignImport_Click(object sender, EventArgs e)
        {
            if (mainForm.designProjectData == null)
            {
                MessageBox.Show("当前重量设计没有数据");
                XLog.Write("当前重量设计没有数据");
                return;
            }
            else
            {
                if (mainForm.designProjectData.lstWeightArithmetic == null || mainForm.designProjectData.lstWeightArithmetic.Count == 0)
                {
                    MessageBox.Show("当前重量设计没有数据");
                    XLog.Write("当前重量设计没有数据");
                    return;
                }
            }

            strWeightDataType = "data1";
            ImportWeightDataListForm form = new ImportWeightDataListForm(this, mainForm.designProjectData, "weightDesign");

            form.ShowDialog();
        }
        private void memu2FromDBWeightDataImport_Click(object sender, EventArgs e)
        {
            if (treeViewSort.Nodes.Count == 0)
            {
                XLog.Write("先导入重量数据1数据");
                MessageBox.Show("先导入重量数据1数据");
                return;
            }

            BLLWeightDesignData     bllWeightDesign = new BLLWeightDesignData();
            List <WeightDesignData> lstWeightDesign = bllWeightDesign.GetListModel();

            if (lstWeightDesign.Count == 0)
            {
                XLog.Write("数据库没有重量设计数据");
                MessageBox.Show("数据库没有重量设计数据");
                return;
            }

            strWeightDataType = "data2";
            ImportWeightDataListForm form = new ImportWeightDataListForm(this, lstWeightDesign, "weightDB");

            form.ShowDialog();
        }