Esempio n. 1
0
 /// <summary>
 /// Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     if (KeyValue != null)
     {
         _customerPresenter.Display(KeyValue);
     }
     _banksPresenter.DisplayActive();
 }
Esempio n. 2
0
 protected override void InitData()
 {
     if (KeyValue != null)
     {
         _vendorPresenter.Display(KeyValue);
     }
     else
     {
         txtCode.Text = GetAutoNumber();
     }
     _banksPresenter.DisplayActive();
 }
Esempio n. 3
0
        /// <summary>
        /// Handles the Load event of the FrmS13H 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 FrmS13H_Load(object sender, EventArgs e)
        {
            _accountsPresenter.DisplayActive();
            _currenciesPresenter.DisplayActive();
            _banksPresenter.DisplayActive(true);

            SelectionAccount = new GridCheckMarksSelection(gridAccountsView);
            SelectionAccount.CheckMarkColumn.VisibleIndex = 0;
            SelectionAccount.CheckMarkColumn.Width        = 10;
            SelectionAccount.SelectAll();
            switch (1)
            {
            case 1:
            case 2:
                break;
            }

            Selection = new GridCheckMarksSelection(grdViewBank);
            Selection.CheckMarkColumn.VisibleIndex = 0;
            Selection.CheckMarkColumn.Width        = 10;
            Selection.SelectAll();
            switch (1)
            {
            case 1:
            case 2:
                break;
            }
        }
Esempio n. 4
0
        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;
        }
Esempio n. 5
0
 private void InitData()
 {
     _banksPresenter.DisplayActive(true);
     _projectsPresenter.Display();
     _accountingObjectsPresenter.Display();
     _budgetChaptersPresenter.Display();
     _budgetItemsPresenter.DisplayActive(true);
 }
Esempio n. 6
0
        /// <summary>
        /// Handles the Load event of the FrmS12AH 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 FrmS12AH_Load(object sender, System.EventArgs e)
        {
            _accountsPresenter.Display();
            _banksPresenter.DisplayActive();
            var currencyCode = GlobalVariable.CurrencyViewReport;

            grdLookUpAccount.EditValue = currencyCode == "USD" ? "11221" : "11222";
        }
Esempio n. 7
0
        /// <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";
        }
        protected override void LoadDataIntoGrid()
        {
            _fixedAssetsPresenter.DisplayByActive(true);
            _departmentsPresenter.DisplayActive();
            _banksPresenter.DisplayActive(true);

            bindingSource.AllowNew = true;

            _pUInvoicesPresenter.Display((int)this.RefTypeId);
        }
Esempio n. 9
0
 protected override void InitData()
 {
     if (KeyValue != null)
     {
         _accountPresenter.Display(KeyValue);
         _accountsPresenter.DisplayForComboTree(int.Parse(KeyValue));
         _accountCategoriesPresenter.DisplayActive();
         _banksPresenter.DisplayActive();
         if (AccountCode == "11122" || AccountCode == "11222")
         {
             cboCurrencyCode.Properties.Items.Add(_globalVariable.CurrencyLocal);
         }
         else
         {
             if (AccountCode == "11121" || AccountCode == "11221")
             {
                 cboCurrencyCode.Properties.Items.Add(_globalVariable.CurrencyAccounting);
             }
             else
             {
                 cboCurrencyCode.Properties.Items.Add(_globalVariable.CurrencyLocal);
                 if (_globalVariable.CurrencyLocal != _globalVariable.CurrencyAccounting)
                 {
                     cboCurrencyCode.Properties.Items.Add(_globalVariable.CurrencyAccounting);
                 }
             }
         }
     }
     else
     {
         _accountsPresenter.DisplayActive();
         _accountCategoriesPresenter.DisplayActive();
         _banksPresenter.DisplayActive();
         chkIsActive.Checked = true;
         cboCurrencyCode.Properties.Items.Add(_globalVariable.CurrencyLocal);
         if (_globalVariable.CurrencyLocal != _globalVariable.CurrencyAccounting)
         {
             cboCurrencyCode.Properties.Items.Add(_globalVariable.CurrencyAccounting);
         }
         cboCurrencyCode.Visible = false;
     }
     cboCurrencyCode.Visible = chkIsCurrency.Checked;
 }
Esempio n. 10
0
        /// <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)
        {
            _budgetChaptersPresenter.DisplayByIsActive(true);
            _budgetKindItemsPresenter.DisplayActive();
            _banksPresenter.DisplayActive(true);
            _accountsPresenter.DisplayActive();

            cboBudgetChapter.EditValue     = @"<<Tổng hợp>>";
            cboBudgetSubKindItem.EditValue = @"<<Tổng hợp>>";
            cboBankId.EditValue            = @"0";
        }
        /// <summary>
        /// Handles the Load event of the FrmCash05 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 FrmCash05_Load(object sender, EventArgs e)
        {
            _banksPresenter.DisplayActive(true);
            _projectsPresenter.DisplayActive();
            //BindSelectDesignReport();
            cboSelectDesignReport.EditValue = 0;
            checkDisplayValue.Checked       = true;

            cboBank.EditValue    = "<<Tất cả>>";
            cboProject.EditValue = "<<Tất cả>>";
            cboSelectDesignReport.SelectedIndex = 0;
        }
Esempio n. 12
0
        /// <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)
        {
            _budgetChaptersPresenter.DisplayByIsActive(true);
            _budgetKindItemsPresenter.DisplayActive();
            _banksPresenter.DisplayActive(true);
            _accountsPresenter.DisplayActive();


            // dateTimeRangeV1.cboDateRange.SelectedIndex = GlobalVariable.DateRangeSelectedIndex;
            dateTimeRangeV1.cboDateRange.EditValue = GlobalVariable.ServerName;
            dateTimeRangeV1.FromDate = GlobalVariable.FromDate;
            dateTimeRangeV1.ToDate   = GlobalVariable.ToDate;

            cboBudgetChapter.EditValue     = @"<<Tổng hợp>>";
            cboBudgetSubKindItem.EditValue = @"<<Tổng hợp>>";
            cboBankId.EditValue            = @"0";
            cboAccountNumber.EditValue     = @"1121";
        }
 /// <summary>
 /// Handles the Load event of the FrmC203NS 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 FrmC203NS_Load(object sender, EventArgs e)
 {
     //dateTimeRangeV1.DateRangePeriodMode = DateRangeMode.All;
     BindLookUpBudgetSourceKind();
     _budgetSourcesPresenter.DisplayActive();
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _budgetItemsPresenter.DisplayActive(true);
     _banksPresenter.DisplayActive(true);
     _projectsPresenter.DisplayActive();
     cboBudgetSource.EditValue        = @"<<Tất cả>>";
     cboBudgetChapter.EditValue       = @"<<Tất cả>>";
     cboBudgetSubKindItem.EditValue   = @"<<Tất cả>>";
     cboMethod.EditValue              = @"<<Tất cả>>";
     lookupBudgetSourceKind.EditValue = @"<<Tất cả>>";
     cboProject.EditValue             = @"<<Không chọn>>";
     cboBankAccount.EditValue         = @"<<Không chọn>>";
     Selection = new GridCheckMarksSelection(gridViewBudgetItem);
     Selection.CheckMarkColumn.VisibleIndex = 0;
     Selection.CheckMarkColumn.Width        = 10;
 }
 private void InitData()
 {
     _banksPresenter.DisplayActive(true);
     _projectsPresenter.Display();
 }