Example #1
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;
            }
        }
Example #2
0
        /// <summary>
        /// Initializes the data.
        /// </summary>
        protected override void InitData()
        {
            _accountingObjectsPresenter.DisplayByIsCustomerVendor(true);
            _ProjectsPresenter.DisplayActive();
            _currenciesPresenter.DisplayActive();
            _budgetSourcesPresenter.DisplayActive();
            _ContractPresenter.Display(KeyValue);
            if (KeyValue != null)
            {
                //_ContractPresenter.Display(KeyValue);
                if (!string.IsNullOrEmpty(VendorId))
                {
                    txtVendorBank.Text = _accountingObjects.Where(x => x.AccountingObjectId == VendorId).ToList().Count != 0 ? _accountingObjects.Where(x => x.AccountingObjectId == VendorId).FirstOrDefault().BankName : "";
                }
            }
            else
            {
                dateStartDate.EditValue  = DateTime.Now;
                dateFinishDate.EditValue = DateTime.Now;
                dateSign.EditValue       = DateTime.Now;
            }

            #region dinh dang so tien tren tab phu luc hop dong

            gridViewContract.Columns["ExchangeValue"].DisplayFormat.FormatType   = FormatType.Numeric;
            gridViewContract.Columns["ExchangeValue"].DisplayFormat.FormatString = "C";

            gridViewContract.Columns["ExchangeRate"].DisplayFormat.FormatType   = FormatType.Numeric;
            gridViewContract.Columns["ExchangeRate"].DisplayFormat.FormatString = "C";

            gridViewContract.Columns["Prices"].DisplayFormat.FormatType   = FormatType.Numeric;
            gridViewContract.Columns["Prices"].DisplayFormat.FormatString = "C";

            #endregion
        }
Example #3
0
        protected override void InitData()
        {
            CostMethods             = new ObjectGeneral().GetCostMethods();
            this.InventoryItemTypes = this.InventoryItemTypes;
            _departmentsPresenter.DisplayActive();
            _currenciesPresenter.DisplayActive();
            _accountsPresenter.DisplayActive();

            if (KeyValue != null)
            {
                _inventoryItemPresenter.Display(KeyValue);
            }
            else
            {
                txtInventoryItemCode.Text = GetAutoNumber();
            }
        }
 protected override void InitData()
 {
     _accountsPresenter.DisplayActive();
     _voucherTypesPresenter.DisplayActive();
     _refTypesPresenter.Display();
     _budgetSourcesPresenter.DisplayActive();
     _budgetItemsPresenter.DisplayActive();
     _currencyPresenter.DisplayActive();
     if (KeyValue != null)
     {
         _autoBusinessPresenter.Display(KeyValue);
     }
 }
Example #5
0
 /// <summary>
 /// Loads the data.
 /// </summary>
 public void LoadData()
 {
     try
     {
         _currenciesPresenter.DisplayActive();
         //cboCurrencyCode.Properties.Items.Add(GlobalVariable.MainCurrencyId);
         cboCurrencyCode.EditValue = GlobalVariable.MainCurrencyId;//cboCurrencyCode.Properties.Items[0];
         //_reportListPresenter.GetReportsByIsActive(true);
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }