protected override void InitData()
        {
            _activitysPresenter.DisplayActive(true);
            IsActive = true;

            if (KeyValue != null)
            {
                _activityPresenter.Display(Convert.ToInt32(KeyValue));
            }
        }
예제 #2
0
 /// <summary>
 /// Handles the Load event of the FrmS106H1 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 FrmS106H1_Load(object sender, EventArgs e)
 {
     _budgetSourcesPresenter.DisplayActive();
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _ActivityPresenter.DisplayActive(true);
     cboBudgetSource.EditValue   = @"<<Tổng hợp>>";
     cboBudgetChapter.EditValue  = @"<<Tổng hợp>>";
     cboBudgetKindItem.EditValue = @"<<Tổng hợp>>";
     cboActivity.EditValue       = @"<<Tổng hợp>>";
 }
예제 #3
0
        /// <summary>
        /// Handles the Load event of the FrmS51H 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 FrmS51H_Load(object sender, EventArgs e)
        {
            _inventoryItemCategoriesPresenter.Display(true);
            _activitiesPresenter.DisplayActive(true);
            cboActivity.EditValue      = @"00000000-0000-0000-0000-000000000000";
            cboInventoryType.EditValue = @"00000000-0000-0000-0000-000000000000";
            _inventoryItemsPresenter.DisplayByIsActive(true);
            Selection = new GridCheckMarksSelection(gridInventoryView);
            Selection.CheckMarkColumn.VisibleIndex = 0;
            Selection.CheckMarkColumn.Width        = 40;

            gridInventoryView.OptionsSelection.EnableAppearanceFocusedRow  = true;
            gridInventoryView.OptionsSelection.EnableAppearanceFocusedCell = false;
        }