private void FrmFixedAssetS24H_Load(object sender, EventArgs e) { if ((int)checkChooseFixedAsset.EditValue == 0) { _fixedAssetCategoriesPresenter.Display(); } if ((int)checkChooseFixedAsset.EditValue == 1) { _fixedAssetsPresenter.Display(); } gridFixedAssetControl.Visible = true; Selection = new GridCheckMarksSelection(gridFixedAssetControlView); Selection.CheckMarkColumn.VisibleIndex = 0; Selection.CheckMarkColumn.Width = 10; }
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> /// Loads the data into grid detail. /// LinhMC add 30.9.2016 /// </summary> /// <param name="refId">The reference identifier.</param> protected override void LoadDataIntoGridDetail(long refId) { _fixedAssetsPresenter.Display(); _fixedAssetIncrementsPresenter.DisplayVoucherDetail(refId); _autoBusinessPresenter.DisplayActive(); //_projectsPresenter.DisplayActive(); _voucherTypesPresenter.DisplayActive(); _departmentsPresenter.DisplayActive(); }
/// <summary> /// Initializes a new instance of the <see cref="FrmS22H" /> class. /// </summary> public FrmFixedAssetS24H() { InitializeComponent(); _fixedAssetCategoriesPresenter = new FixedAssetCategoriesPresenter(this); _departmentsPresenter = new DepartmentsPresenter(this); _fixedAssetsPresenter = new FixedAssetsPresenter(this); _fixedAssetsPresenter.Display(); Selection = new GridCheckMarksSelection(gridFixedAssetControlView); Selection.CheckMarkColumn.VisibleIndex = 0; Selection.CheckMarkColumn.Width = 50; }
private void FrmFixedAssetS24H_Load(object sender, EventArgs e) { _departmentsPresenter.Display(); _fixedAssetCategoriesPresenter.DisplayComboCheck(); _fixedAssetsPresenter.Display(); Selection = new GridCheckMarksSelection(gridViewFixedAsset); Selection.CheckMarkColumn.VisibleIndex = 0; Selection.CheckMarkColumn.Width = 5; StateCheck = true; gridViewFixedAsset.OptionsSelection.EnableAppearanceFocusedRow = true; gridViewFixedAsset.OptionsSelection.EnableAppearanceFocusedCell = false; gridViewFixedAsset.OptionsView.ShowAutoFilterRow = true; }
/// <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) }
protected override void LoadDataIntoGrid() { _departmentsPresenter.Display(); _fixedAssetCategoriesPresenter.Display(); _FixedAssetsPresenter.Display(); }
/// <summary> /// Loads the data into grid. /// </summary> protected override void LoadDataIntoGrid() { _fixedAssetsPresenter.Display(); _fixedAssetsPresenter.SaveCompanyProfile(); }