コード例 #1
0
 public IncomeAndExpenseReportPreviewForm(IncomeAndExpenseTimePeriod timePeriod, SemesterToLoad semesterToLoad, string INN)
 {
     InitializeComponent();
     this.timePeriod     = timePeriod;
     this.semesterToLoad = semesterToLoad;
     this.INN            = INN;
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: YuriShporhun/ESHN
 private void bothSemestersButton_Click(object sender, EventArgs e)
 {
     semesterToLoad = SemesterToLoad.BothSemesters;
     incomeAndExpenseTimePeriod.SetBothSemesterPeriod();
     programLogic.incomeAndExpenseLogic.Load(incomeAndExpenseTimePeriod, GetSelectedINN());
     CheckSemesterButtonsState();
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: YuriShporhun/ESHN
        private void periodButton_Click(object sender, EventArgs e)
        {
            DateTime startDateTime = incomeAndExpenseStartDateTimePicker.Value;
            DateTime endDateTime   = incomeAndExpenseEndDateTimePicker.Value;
            int      compareResult = DateTime.Compare(startDateTime, endDateTime);

            if (compareResult > 0)
            {
                MessageBox.Show("Неправильно задан период выборки данных", "Предупреждение");
                return;
            }
            semesterToLoad = SemesterToLoad.Period;
            incomeAndExpenseTimePeriod.SetPeriod(incomeAndExpenseStartDateTimePicker.Value, incomeAndExpenseEndDateTimePicker.Value);
            programLogic.incomeAndExpenseLogic.Load(incomeAndExpenseTimePeriod, GetSelectedINN());
            CheckSemesterButtonsState();
        }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: YuriShporhun/ESHN
        private void MainForm_Load(object sender, EventArgs e)
        {
            try
            {
                CheckDataBase();
            }
            catch (Exception)
            {
                Environment.Exit(1);
            }

            keyData = CheckLicense();

            AddAvailableINN();

            SetESHNDeclarationPartOneLimits();
            SetESHNDeclarationPartTwoLimits();

            semesterToLoad             = SemesterToLoad.BothSemesters;
            incomeAndExpenseTimePeriod = new IncomeAndExpenseTimePeriod(GetSelectedYear());

            UpdateIncomeAndExpenseDateIntervals();

            programLogic.incomeAndExpenseLogic.Load(incomeAndExpenseTimePeriod, GetSelectedINN());
            programLogic.commonAssetsLogic.Load(GetSelectedINN());

            //IncomeAndExpenseGridView.Columns[0].Width = 60;
            //IncomeAndExpenseGridView.Columns[1].Width = 80;
            //IncomeAndExpenseGridView.Columns[3].Width = 80;
            //IncomeAndExpenseGridView.Columns[4].Width = 80;

            saveBackupDialog.FileName = DateTime.Now.ToShortDateString();

            CheckSemesterButtonsState();
            UseOfPropertyDataGridView.DataSource = useOfProperty;
            RequiredSoftwareChecker.CheckApplicationShortcut();
        }