/// <summary> /// Initializes the data. /// </summary> protected override void InitData() { DBOptionHelper = new GlobalVariable(); _accountsPresenter.Display(); _account = (from accountModel in _accounts where accountModel.AccountId == int.Parse(KeyValue) select accountModel).FirstOrDefault(); _cboCurrencyCode.Items.Add(CurrencyAccounting); if (CurrencyLocal != CurrencyAccounting) { _cboCurrencyCode.Items.Add(CurrencyLocal); } _inventoryItemsPresenter.Display(); //Display //_stocksPresenter.DisplayActive(true) _stocksPresenter.Display(); if (_account == null) { return; } // _openingInventoryEntryPresenter.Display(_account.AccountCode); _openingInventoryEntriesPresenter.Display(_account.AccountCode); Text = @"Nhập số dư ban đầu cho tài khoản " + _account.AccountCode; }
/// <summary> /// Handles the Load event of the FrmS11AH 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 FrmS11AH_Load(object sender, EventArgs e) { _accountsPresenter.Display(); var currencyCode = GlobalVariable.CurrencyViewReport; grdLookUpAccount.EditValue = currencyCode == "USD" ? "11121" : "11122"; }
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; }
/// <summary> /// Handles the Load event of the FrmS12H 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 FrmS12H_Load(object sender, EventArgs e) { _accountsPresenter.Display(); _banksPresenter.DisplayActive(); CurrencyCode = _dbOptionHelper.CurrencyAccounting; var currencyCode = GlobalVariable.CurrencyViewReport; grdLookUpAccount.EditValue = currencyCode == "USD" ? @"11221" : @"11222"; }
private void FrmAccountList_Load(object sender, EventArgs e) { _accountsPresenter.Display(); Selection = new GridCheckMarksSelection(gridViewAccount); Selection.CheckMarkColumn.VisibleIndex = 0; Selection.CheckMarkColumn.Width = 40; StateCheck = true; SetChecked(); gridViewAccount.OptionsSelection.EnableAppearanceFocusedRow = true; gridViewAccount.OptionsSelection.EnableAppearanceFocusedCell = false; }
/// <summary> /// Loads the data into tree. /// </summary> protected override void LoadDataIntoTree() { IList <BalanceSide> dataSource = new List <BalanceSide>(); dataSource.Add(new BalanceSide(0, "Dư Nợ")); dataSource.Add(new BalanceSide(1, "Dư Có")); dataSource.Add(new BalanceSide(2, "Lưỡng tính")); _rsBalanceSide.DataSource = dataSource; _rsBalanceSide.NullText = ""; _rsBalanceSide.DisplayMember = "Name"; _rsBalanceSide.ValueMember = "Id"; _accountsPresenter.Display(); }
/// <summary> /// Initializes the data. /// </summary> protected override void InitData() { _accountsPresenter.Display(); _account = (from accountModel in _accounts where accountModel.AccountId == int.Parse(KeyValue) select accountModel).FirstOrDefault(); _cboCurrencyCode.Items.Add(CurrencyLocal); _cboCurrencyCode.Items.Add(CurrencyAccounting); _fixedAssetsPresenter.Display(); //_openingFixedAssetEntriesPresenter.Display(); //_openingFixedAssetEntryModel = (from openingFixedAssetEntryModel in _openingFixedAssetEntries where openingFixedAssetEntryModel.AccountId == int.Parse(KeyValue) select openingFixedAssetEntryModel).FirstOrDefault(); // if (_account == null) return; // _openingInventoryEntryPresenter.Display(_account.AccountCode); _openingFixedAssetEntriesPresenter.Display(_account.AccountCode); Text = @"Thông tin số dư ban đầu cho tài khoản " + _account.AccountCode; //_inventoryItemsPresenter.Display(); //Display //_stocksPresenter.DisplayActive(true) }
private void FrmS03H_Load(object sender, EventArgs e) { _accountsPresenter.Display(); _accountingObjectsPresenter.Display(); _accountingObjectCategoriesPresenter.Display(); cboAccount.Text = "<<Tất cả>>"; cboAccountingObjectCategory.EditValue = "ALL"; Selection = new GridCheckMarksSelection(gridviewAccountingObject); Selection.CheckMarkColumn.VisibleIndex = 0; Selection.CheckMarkColumn.Width = 40; gridviewAccountingObject.OptionsSelection.EnableAppearanceFocusedRow = true; gridviewAccountingObject.OptionsSelection.EnableAppearanceFocusedCell = false; gridviewAccountingObject.OptionsView.ShowGroupPanel = false; gridviewAccountingObject.OptionsView.ShowIndicator = false; dateTimeRangeV1.cboDateRange.SelectedIndex = GlobalVariable.DateRangeSelectedIndex; dateTimeRangeV1.FromDate = GlobalVariable.FromDate; dateTimeRangeV1.ToDate = GlobalVariable.ToDate; }
/// <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> /// Handles the Load event of the FrmS03H 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 FrmS03H_Load(object sender, EventArgs e) { _budgetChaptersPresenter.DisplayByIsActive(true); _budgetKindItemsPresenter.DisplayActive(); _budgetSourcesPresenter.DisplayActive(); _accountsPresenter.Display(); checkAddSameEntry.Checked = false; dateTimeRangeV1.cboDateRange.SelectedIndex = GlobalVariable.DateRangeSelectedIndex; dateTimeRangeV1.FromDate = GlobalVariable.FromDate; dateTimeRangeV1.ToDate = GlobalVariable.ToDate; checkcboBudgetSource.SetEditValue(@"00000000-0000-0000-0000-000000000000"); checkcboBudgetChapter.EditValue = "<<Tổng hợp>>"; checkcboBudgetKindItem.EditValue = "<<Tổng hợp>>"; Selection = new GridCheckMarksSelection(gridviewAccount); Selection.CheckMarkColumn.VisibleIndex = 0; Selection.CheckMarkColumn.Width = 40; gridviewAccount.OptionsSelection.EnableAppearanceFocusedRow = true; gridviewAccount.OptionsSelection.EnableAppearanceFocusedCell = false; }
protected override void InitData() { _accountsPresenter.Display(); _accountCategoryPresenter.Display(); if (KeyValue != null) { _accountPresenter.Display(KeyValue); _currentCode = AccountNumber; } else { if (CurrentNode != null) { txtAccountCode.Text = ((AccountModel)CurrentNode).AccountNumber; //txtAccountName.Text = @"Tài khoản mới"; this.ParentId = ((AccountModel)CurrentNode).AccountId; this.AccountCategoryId = ((AccountModel)CurrentNode).AccountCategoryId; this.AccountCategoryKind = ((AccountModel)CurrentNode).AccountCategoryKind; //grdLookUpParentID.Text = ((AccountModel)CurrentNode).AccountNumber; // cboBalanceSide.EditValue = ((AccountModel) CurrentNode).AccountCategoryKind; } } }
private void FrmS03BH_Load(object sender, EventArgs e) { _accountsPresenter.Display(); CurrencyCode = _dbOptionHelper.CurrencyAccounting; }
private void FrmS03H_Load(object sender, EventArgs e) { _accountsPresenter.Display(); cboAccount.Text = "<<Tất cả>>"; }
/// <summary> /// Loads the look up edit. /// </summary> public void LoadLookUpEdit() { _accountsPresenter.Display(); }
/// <summary> /// Loads the data into grid. /// </summary> protected override void LoadDataIntoTree() { _accountsPresenter.Display(); }