/// <summary> /// Handles the SelectedIndexChanged event of the cboBudgetItemType control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void cboBudgetItemType_SelectedIndexChanged(object sender, System.EventArgs e) { if (cboBudgetItemType.SelectedIndex == 0) { lblParentID.Text = @"Thuộc nhóm"; grdLookUpEditParentId.Enabled = false; grdLookUpEditParentId.EditValue = null; } else if (cboBudgetItemType.SelectedIndex == 1) { lblParentID.Text = @"Thuộc nhóm"; grdLookUpEditParentId.Enabled = true; _budgetItemsPresenter.Display(0, true); } else if (cboBudgetItemType.SelectedIndex == 2) { lblParentID.Text = @"Thuộc TN"; lblParentID.ToolTip = @"Thuộc tiểu nhóm"; grdLookUpEditParentId.Enabled = true; _budgetItemsPresenter.Display(1, true); } else { lblParentID.Text = @"Thuộc mục"; grdLookUpEditParentId.Enabled = true; _budgetItemsPresenter.Display(2, true); } }
private void FrmS33H_Load(object sender, EventArgs e) { _vendorsPresenter.Display(); _accountsPresenter.Display(); _inventoryItemsPresenter.Display(); _budgetSourcesPresenter.Display(); _budgetItemsPresenter.Display(); _accountingObjectsPresenter.Display(); _voucherTypesPresenter.Display(); _projectsPresenter.Display(); _employeesPresenter.Display(); _accountingObjectsPresenter.Display(); _voucherTypesPresenter.Display(); _departmentsPresenter.Display(); _fixedAssetsPresenter.Display(); _banksPresenter.DisplayActive(); InitDefaultCurrencies(); chkCurrency.Checked = false; // Ẩn theo nghiệp vụ mới từ BA chkCurrency.Enabled = false; chkProject.Enabled = false; chkInventoryItem.Enabled = false; chkVendor.Enabled = false; }
protected override void InitData() { if (KeyValue != null) { _budgetItemPresenter.Display(KeyValue); } else { if (CurrentNode != null) { txtBudgetItemCode.Text = ((BudgetItemModel)CurrentNode).BudgetItemCode; txtBudgetItemName.Text = ((BudgetItemModel)CurrentNode).BudgetItemName; } } _budgetItemsPresenter.Display(); }
/// <summary> /// Initializes the data. /// </summary> protected override void InitData() { if (KeyValue != null) { _fixedAssetCategoryPresenter.Display(KeyValue); } else { if (CurrentNode != null) { txtFixedAssetCategoryCode.Text = ((FixedAssetCategoryModel)CurrentNode).FixedAssetCategoryCode; grdLookUpFixedAssetCategoryKind.EditValue = ((FixedAssetCategoryModel)CurrentNode).FixedAssetCategoryId; } } _fixedAssetCategoriesPresenter.Display(); _budgetChapterPresenter.Display(); _budgetKindItemsPresenter.Display(); _budgetItemsPresenter.Display(); _accountPresenter.Display(); txtFixedAssetCategoryCode.Focus(); }
/// <summary> /// Loads the data into grid. /// </summary> protected override void LoadDataIntoTree() { _budgetItemPresenter.Display(); }