//尾差处理
 private void ManageTailDifference(ref TailDifferenceViewModel tailDifferenceViewModel)
 {
     tailDifferenceViewModel.AnnualPriceDifference = njc.ToString();
     if (catagorySet.pcc_jk.costValue != 0)
     {
         catagorySet.pcc_jk.costValue += njc;
         tailDifferenceViewModel.ItemWithTailDifference = catagorySet.pcc_jk.catagoryName;
         tailDifferenceViewModel.TailDifference         = catagorySet.pcc_weicha.costValue.ToString();
         catagorySet.pcc_jk.costValue += catagorySet.pcc_weicha.costValue;
     }
     else if (catagorySet.pcc_dl.costValue != 0)
     {
         catagorySet.pcc_dl.costValue += njc;
         tailDifferenceViewModel.ItemWithTailDifference = catagorySet.pcc_dl.catagoryName;
         tailDifferenceViewModel.TailDifference         = catagorySet.pcc_weicha.costValue.ToString();
         catagorySet.pcc_dl.costValue += catagorySet.pcc_weicha.costValue;
     }
     else if (catagorySet.pcc_pd_az.costValue != 0)
     {
         catagorySet.pcc_pd_az.costValue += njc;
         tailDifferenceViewModel.ItemWithTailDifference = catagorySet.pcc_pd_az.catagoryName;
         tailDifferenceViewModel.TailDifference         = catagorySet.pcc_weicha.costValue.ToString();
         catagorySet.pcc_pd_az.costValue += catagorySet.pcc_weicha.costValue;
     }
     else if (catagorySet.pcc_pd_sb.costValue != 0)
     {
         catagorySet.pcc_pd_sb.costValue += njc;
         tailDifferenceViewModel.ItemWithTailDifference = catagorySet.pcc_pd_sb.catagoryName;
         tailDifferenceViewModel.TailDifference         = catagorySet.pcc_weicha.costValue.ToString();
         catagorySet.pcc_pd_sb.costValue += catagorySet.pcc_weicha.costValue;
     }
     else if (catagorySet.pcc_pd_jz.costValue != 0)
     {
         catagorySet.pcc_pd_jz.costValue += njc;
         tailDifferenceViewModel.ItemWithTailDifference = catagorySet.pcc_pd_jz.catagoryName;
         tailDifferenceViewModel.TailDifference         = catagorySet.pcc_weicha.costValue.ToString();
         catagorySet.pcc_pd_jz.costValue += catagorySet.pcc_weicha.costValue;
     }
     else if (catagorySet.pcc_tx_az.costValue != 0)
     {
         catagorySet.pcc_tx_az.costValue += njc;
         tailDifferenceViewModel.ItemWithTailDifference = catagorySet.pcc_tx_az.catagoryName;
         tailDifferenceViewModel.TailDifference         = catagorySet.pcc_weicha.costValue.ToString();
         catagorySet.pcc_tx_az.costValue += catagorySet.pcc_weicha.costValue;
     }
     else if (catagorySet.pcc_tx_sb.costValue != 0)
     {
         catagorySet.pcc_tx_sb.costValue += njc;
         tailDifferenceViewModel.ItemWithTailDifference = catagorySet.pcc_tx_sb.catagoryName;
         tailDifferenceViewModel.TailDifference         = catagorySet.pcc_weicha.costValue.ToString();
         catagorySet.pcc_tx_sb.costValue += catagorySet.pcc_weicha.costValue;
     }
     else
     {
         catagorySet.pcc_tx_jz.costValue += njc;
         tailDifferenceViewModel.ItemWithTailDifference = catagorySet.pcc_tx_jz.catagoryName;
         tailDifferenceViewModel.TailDifference         = catagorySet.pcc_weicha.costValue.ToString();
         catagorySet.pcc_tx_jz.costValue += catagorySet.pcc_weicha.costValue;
     }
 }
        public void GetData()
        {
            if (!CheckImportFile())
            {
                return;
            }
            if (CheckFIleExist())
            {
                this.Condition = "待更新";
                string    datafile = "App\\data\\" + ProjectName + ".est";
                DataSet   ds       = XmlOperate.GetDataSet(datafile);
                DataTable dt       = ds.Tables[0];
                DataTable dt2      = ds.Tables[1];
                estimateSetViewModel = new ProjectEstimateSetViewModel(dt);
                tdvm = new TailDifferenceViewModel();
                tdvm.TailDifference         = dt2.DefaultView[0]["TailDifference"].ToString();
                tdvm.ItemWithTailDifference = dt2.DefaultView[0]["ItemWithTailDifference"].ToString();
                tdvm.CompositeTaxRate       = dt2.DefaultView[0]["CompositeTaxRate"].ToString();
                tdvm.AnnualPriceDifference  = dt2.DefaultView[0]["AnnualPriceDifference"].ToString();
                ManageTailDifference(ref tdvm);
                estimateSetViewModel.GetDataToFinanceData(proc, catagorySet);
                estimateSetViewModel.SetToDestCompositeTaxRate(tdvm.Double_CompositeTaxRate);
            }

            else
            {
                this.Condition = "待生成";
                string    mouldpath = "App\\data\\mould";
                DataSet   ds        = XmlOperate.GetDataSet(mouldpath);
                DataTable dt        = ds.Tables[0];
                DataTable dt2       = ds.Tables[1];
                estimateSetViewModel = new ProjectEstimateSetViewModel(dt);
                tdvm = new TailDifferenceViewModel();
                tdvm.TailDifference         = dt2.DefaultView[0]["TailDifference"].ToString();
                tdvm.ItemWithTailDifference = dt2.DefaultView[0]["ItemWithTailDifference"].ToString();
                tdvm.CompositeTaxRate       = dt2.DefaultView[0]["CompositeTaxRate"].ToString();
                tdvm.AnnualPriceDifference  = dt2.DefaultView[0]["AnnualPriceDifference"].ToString();

                ManageTailDifference(ref tdvm);
                estimateSetViewModel.GetDataToFinanceData(proc, catagorySet);
                estimateSetViewModel.SetToDestCompositeTaxRate(tdvm.Double_CompositeTaxRate);
            }
        }