/// <summary> /// Handles the Load event of the FrmFinance control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void FrmFinance_Load(object sender, EventArgs e) { _budgetChaptersPresenter.DisplayByIsActive(true); _budgetKindItemsPresenter.DisplayActive(); _budgetSourcesPresenter.DisplayActive(); _budgetSourceCategoriesPresenter.DisplayActive(); // _dbOptionHelper.Register(); cboBudgetSourceId.EditValue = @"<<Tổng hợp>>"; cboBudgetChapter.EditValue = @"<<Tổng hợp>>"; cboBudgetKindItem.EditValue = @"<<Tổng hợp>>"; cboMethodDistribute.EditValue = @"<<Tổng hợp>>"; cboExpendKind.EditValue = @"00000000-0000-0000-0000-000000000000"; rndOption.SelectedIndex = 1; lookUpEdit1.SelectedIndex = 0; }
/// <summary> /// Initializes the data. /// </summary> protected override void InitData() { _budgetSourceCategoriesPresenter.DisplayActive(); //_banksPresenter.DisplayActive(true); //_projectsPresenter.DisplayActive(); _budgetSourcesPresenter.DisplayActive(); if (KeyValue != null) { _budgetSourcePresenter.Display(KeyValue); } else { if (CurrentNode != null) { txtBudgetSourceCode.Text = ((BudgetSourceModel)CurrentNode).BudgetSourceCode; gridLookUpEditParentId.EditValue = ((BudgetSourceModel)CurrentNode).BudgetSourceId; gridLookUpEditBudgetSourceCategoryId.EditValue = ((BudgetSourceModel)CurrentNode).BudgetSourceCategoryId; cboBudgetSourceProperty.SelectedIndex = ((BudgetSourceModel)CurrentNode).BudgetSourceProperty; } } }
/// <summary> /// Handles the Load event of the FrmS101HPartII control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void FrmS101HPartII_Load(object sender, EventArgs e) { _budgetSourcesPresenter.DisplayActive(); _budgetChaptersPresenter.DisplayByIsActive(true); _budgetKindItemsPresenter.DisplayActive(); _budgetItemsPresenter.DisplayActive(true); _projectsPresenter.DisplayActive(); _budgetSourceCategoriesPresenter.DisplayActive(); cboBudgetSource.EditValue = @"<<Tổng hợp>>"; cboBudgetChapter.EditValue = @"<<Tổng hợp>>"; cboBudgetKindItem.EditValue = @"<<Tổng hợp>>"; cboBudgetSourceCategory.EditValue = @"<<Tổng hợp>>"; cboProject.EditValue = "00000000-0000-0000-0000-000000000000"; cboBudgetSourceCategory.EditValue = @"<<Tổng hợp>>"; Selection = new GridCheckMarksSelection(gridViewBudgetItem); Selection.CheckMarkColumn.VisibleIndex = 0; Selection.CheckMarkColumn.Width = 40; gridViewBudgetItem.OptionsSelection.EnableAppearanceFocusedRow = true; gridViewBudgetItem.OptionsSelection.EnableAppearanceFocusedCell = false; }