public ManageShortTermLoanPage()
        {
            InitializeComponent();

            int year = (int)(App.Current as App).action.year;
            int season = (int)(App.Current as App).action.season;
            season = MainAction.ConvertSeason(season);
            shortTermLoanAction = new ShortTermLoanAction((App.Current as App).accessDB, year, season, (App.Current as App).action.name);
            DataTable shortTermLoan = new DataTable();
            shortTermLoan = shortTermLoanAction.getShortTermLoan(); //获得已有的贷款数据
            shortLoanInfoDataGrid.ItemsSource = shortTermLoan.DefaultView;
            //处理,显示
            if (season != 1)
            {

                NewSeasonCountingAction newSeasonCountingAction = new NewSeasonCountingAction((App.Current as App).accessDB, year, season, (App.Current as App).action.name);
                newSeasonCountingAction.FinanceTargetCheck();
                newSeasonCountingAction.setNewSeasonCash();
            }
            int n = shortTermLoanAction.updateShortTermLoan();
            if (n == 0)
            {
                (App.Current as App).action.WarningBox("没有做够的资金,企业破产");
            }
        }
        private void Next_Click(object sender, RoutedEventArgs e)
        {
            int year = (int)(App.Current as App).action.year;
            int season = (int)(App.Current as App).action.season;
            season = MainAction.ConvertSeason(season);
            NewSeasonCountingAction newSeasonCountingAction = new NewSeasonCountingAction((App.Current as App).accessDB, year, season, (App.Current as App).action.name);
            if (year == 1)
            {
                newSeasonCountingAction.setInitSeasonCash();
            }
            else
            {
                newSeasonCountingAction.setNewSeasonCash();
            }

            (App.Current as App).action.Update();
        }