示例#1
0
 /// <summary>
 /// Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     _accountsPresenter.DisplayActive();
     _budgetSourcesPresenter.DisplayActive();
     if (KeyValue != null)
     {
         _accountTransferPresenter.Display(KeyValue);
     }
 }
 /// <summary>
 /// Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     _accountsPresenter.DisplayActive();
     if (KeyValue != null)
     {
         _stockPresenter.Display(KeyValue);
     }
     else
     {
         txtStockCode.Text = GetAutoNumber();
     }
 }
        protected override void InitData()
        {
            _accountsPresenter.DisplayActive();
            _budgetSourcesPresenter.DisplayActive();
            _budgetItemsPresenter.DisplayActive();
            _voucherTypesPresenter.DisplayActive();

            if (KeyValue != null)
            {
                _autoBusinessParallelPresenter.Display(Convert.ToInt32(KeyValue));
            }
        }
        protected override void InitData()
        {
            _accountsPresenter.DisplayActive();
            _budgetItemsPresenter.DisplayActive();
            _budgetSourcesPresenter.Display();

            if (KeyValue == null)
            {
                return;
            }
            _budgetSourcePresenter.Display(KeyValue);
        }
 protected override void InitData()
 {
     _accountsPresenter.DisplayActive();
     _voucherTypesPresenter.DisplayActive();
     _refTypesPresenter.Display();
     _budgetSourcesPresenter.DisplayActive();
     _budgetItemsPresenter.DisplayActive();
     _currencyPresenter.DisplayActive();
     if (KeyValue != null)
     {
         _autoBusinessPresenter.Display(KeyValue);
     }
 }
 /// <summary>
 ///     Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     _accountsPresenter.DisplayActive();
     _stocksPresenter.DisplayByIsActive(true);
     _inventoryItemCategoriesPresenter.Display(true);
     _accountingObjectsPresenters.DisplayActive(true);
     if (KeyValue != null)
     {
         _inventoryItemPresenter.Display(KeyValue);
     }
     else
     {
         IsTool = false;
     }
 }
示例#7
0
        /// <summary>
        /// Initializes the data.
        /// </summary>
        protected override void InitData()
        {
            cboActivityID.Properties.TextEditStyle   = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            cboAllocateType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;

            _budgetItemsPresenter.DisplayActive();
            _budgetSourcesPresenter.DisplayActive();
            _accountsPresenter.DisplayActive();

            if (KeyValue != null)
            {
                _capitalAllocatePresenter.Display(KeyValue);
            }
            else
            {
                SetStateControl();
                cboAllocateType.SelectedIndex = 0;//.GetDataSourceValue(grdLookUpBudgetItemID.Properties.ValueMember, 0);
                txtAllocatePercent.Text       = @"0";
                //grdLookUpBudgetSourceID.EditValue = grdLookUpBudgetSourceID.Properties.GetRowByKeyValue(grdLookUpBudgetSourceID.Properties.ValueMember, 0);
                //grdLookUpCapitalAccount.EditValue = grdLookUpCapitalAccount.Properties.GetDataSourceValue(grdLookUpCapitalAccount.Properties.ValueMember, 0);
                //grdLookUpExpenseAccount.EditValue = grdLookUpExpenseAccount.Properties.GetDataSourceValue(grdLookUpExpenseAccount.Properties.ValueMember, 0);
                //grdLookUpRevenueAccount.EditValue = grdLookUpRevenueAccount.Properties.GetDataSourceValue(grdLookUpRevenueAccount.Properties.ValueMember, 0);
                //grdLookUpBudgetItemID.EditValue = grdLookUpBudgetItemID.Properties.GetDataSourceValue(grdLookUpBudgetItemID.Properties.ValueMember, 0);

                grdLookUpBudgetSourceID.EditValue = grdLookUpBudgetSourceID.Properties.GetKeyValue(0);
                grdLookUpCapitalAccount.EditValue = grdLookUpCapitalAccount.Properties.GetKeyValue(0);
                grdLookUpExpenseAccount.EditValue = grdLookUpExpenseAccount.Properties.GetKeyValue(0);
                grdLookUpRevenueAccount.EditValue = grdLookUpRevenueAccount.Properties.GetKeyValue(0);
                grdLookUpBudgetItemID.EditValue   = grdLookUpBudgetItemID.Properties.GetKeyValue(0);

                chkIsActive.Checked = true;
            }
        }
        protected override void InitData()
        {
            var objectGeneral = new ObjectGeneral();

            PayItemCodes = objectGeneral.GetPayItemCodes();
            Types        = objectGeneral.GetPayItemTypes();

            _globalVariable = new GlobalVariable();
            _accountsPresenter.DisplayActive();
            _budgetItemsPresenter.DisplayActive();
            _budgetSourcesPresenter.DisplayActive();
            if (KeyValue != null)
            {
                _payItemPresenter.Display(KeyValue);
            }
            else
            {
                CreditAccountCode = _globalVariable.CurrencyCodeOfSalary == @"USD" ? @"11121" : "11122";
            }
            if (ActionMode == ActionModeEnum.Edit)
            {
                lookUpPayItemCode.Enabled = false;
            }

            memoDescription.Enabled = false;
        }
示例#9
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;
            }
        }
示例#10
0
 /// <summary>
 ///     Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     _accountsPresenter.DisplayActive();
     _stocksPresenter.DisplayByIsActive(true);
     _inventoryItemCategoriesPresenter.DisplayByIsTool(true, true);
     _accountingObjectsPresenters.DisplayActive(true);
     _departmentsPresenter.DisplayActive();
     if (KeyValue != null)
     {
         _inventoryItemPresenter.Display(KeyValue);
     }
     else
     {
         IsTool = true;
     }
     //else txtInventoryItemCode.Text = GetAutoNumber();
 }
示例#11
0
 /// <summary>
 /// Thêm mới tài khoản
 /// </summary>
 private void grdLookUpOrgPriceAccount_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index.Equals(1))
     {
         var frmAccountDetail = new FrmAccountDetail();
         frmAccountDetail.ShowDialog();
         if (frmAccountDetail.CloseBox)
         {
             if (!string.IsNullOrEmpty(GlobalVariable.AccountIDAccountTransferForm))
             {
                 _accountPresenter.DisplayActive();
                 grdLookUpOrgPriceAccount.Properties.DisplayMember = "AccountNumber";
                 grdLookUpOrgPriceAccount.Properties.ValueMember   = "AccountId";
                 grdLookUpOrgPriceAccount.EditValue = GlobalVariable.AccountIDAccountTransferForm;
             }
         }
     }
 }
示例#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();

            cboBudgetChapter.EditValue     = @"<<Tổng hợp>>";
            cboBudgetSubKindItem.EditValue = @"<<Tổng hợp>>";
            cboBankId.EditValue            = @"0";
        }
 /// <summary>
 /// Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     _fixedAssetCategoriesPresenter.DisplayActive();
     _accountsPresenter.DisplayActive();
     if (KeyValue != null)
     {
         _fixedAssetCategoryPresenter.Display(KeyValue);
     }
     else
     {
         _fixedAssetCategoriesPresenter.DisplayActive();
         if (CurrentNode != null)
         {
             txtFixedAssetCategoryCode.Text        = ((FixedAssetCategoryModel)CurrentNode).FixedAssetCategoryCode;
             txtFixedAssetCategoryName.Text        = ((FixedAssetCategoryModel)CurrentNode).FixedAssetCategoryName;
             grdLookUpFixedAssetCategory.EditValue = ((FixedAssetCategoryModel)CurrentNode).FixedAssetCategoryId;
         }
         CapitalAccountCode = "36611";
     }
 }
示例#14
0
 /// <summary>
 /// Handles the Load event of the FrmS22H 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 FrmS22H_Load(object sender, EventArgs e)
 {
     _accountsPresenter.DisplayActive();
     _stocksPresenter.DisplayByIsActive(true);
     _inventoryItemCategoriesPresenter.Display(true);
     cboStock.EditValue         = "5860BBA4-4D5C-411C-A852-FE0DFAF50FD4";
     cboInventoryType.EditValue = "<<Tất cả>>";
     cboAccountNumber.EditValue = "<<Tất cả>>";
     dateTimeRangeV1.cboDateRange.SelectedIndex = GlobalVariable.DateRangeSelectedIndex;
     dateTimeRangeV1.FromDate = GlobalVariable.FromDate;
     dateTimeRangeV1.ToDate   = GlobalVariable.ToDate;
 }
示例#15
0
        /// <summary>
        /// Handles the Load event of the FrmS11H 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 FrmS11HDetail_Load(object sender, EventArgs e)
        {
            _budgetChaptersPresenter.DisplayByIsActive(true);
            _budgetKindItemsPresenter.DisplayActive();


            _accountsPresenter.DisplayActive();

            cboBudgetChapter.EditValue     = @"<<Tổng hợp>>";
            cboBudgetSubKindItem.EditValue = @"<<Tổng hợp>>";
            cboAccountNumber.EditValue     = @"1111";
        }
 private void frmS33_H_Load(object sender, EventArgs e)
 {
     switch (_reportID)
     {
     case CommonText.ReportS33_H:
         _accountingObjectsPresenter.DisplayActive(true);
         break;
     }
     _accountsPresenter.DisplayActive();
     dateTimeRangeV1.cboDateRange.SelectedIndex = GlobalVariable.DateRangeSelectedIndex;
     dateTimeRangeV1.FromDate = GlobalVariable.FromDate;
     dateTimeRangeV1.ToDate   = GlobalVariable.ToDate;
 }
示例#17
0
        /// <summary>
        ///     Loads the data into grid.
        /// </summary>
        protected override void LoadDataIntoGrid()
        {
            InitRepositoryControlData();
            _budgetSourcesPresenter.DisplayActive();
            _cashWithdrawTypesPresenter.DisplayList();
            _accountsPresenter.DisplayActive();
            bindingSource.AllowNew = true;

            // Hiển thị các reftype
            // Chuyển khoản kho bạc
            // Chuyển khoản kho bạc mua vật tư hàng hóa
            //var _listRefType = new List<RefTypeModel>() { new RefTypeModel() { RefTypeId = (int)RefType.BUTransfer }, new RefTypeModel() { RefTypeId = (int)RefType.BUTransferPurchase } };
            //_bUTransfersPresenter.Display(_listRefType);
            _bUVoucherListsPresenter.Display((int)RefType.BUNoEstimateVoucherList);
        }
        /// <summary>
        /// Handles the Load event of the FrmS11H 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 FrmS11H_Load(object sender, EventArgs e)
        {
            _budgetChaptersPresenter.DisplayByIsActive(true);
            _budgetKindItemsPresenter.DisplayActive();
            _budgetSourcesPresenter.DisplayActive();

            _accountsPresenter.DisplayActive();
            dateTimeRangeV1.cboDateRange.SelectedIndex = GlobalVariable.DateRangeSelectedIndex;
            dateTimeRangeV1.FromDate       = GlobalVariable.FromDate;
            dateTimeRangeV1.ToDate         = GlobalVariable.ToDate;
            cboBudgetChapter.EditValue     = @"<<Tổng hợp>>";
            cboBudgetSubKindItem.EditValue = @"<<Tổng hợp>>";
            cboBudgetSource.SetEditValue("00000000-0000-0000-0000-000000000000");
            cboAccountNumber.EditValue = @"1111";
        }
 /// <summary>
 /// Handles the Load event of the FrmS101H 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 FrmS101H_Load(object sender, System.EventArgs e)
 {
     _budgetSourcesPresenter.DisplayActive();
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _accountsPresenter.DisplayActive();
     _projectsPresenter.DisplayActive();
     BindLookUpBudgetSourceKind();
     cboBudgetSource.EditValue        = @"<<Tổng hợp>>";
     cboBudgetChapter.EditValue       = @"<<Tổng hợp>>";
     cboBudgetKindItem.EditValue      = @"<<Tổng hợp>>";
     cboAccountNumber.EditValue       = @"<<Tổng hợp>>";
     cboProject.EditValue             = @"00000000-0000-0000-0000-000000000000";
     lookupBudgetSourceKind.ItemIndex = 0;
 }
 private void FrmS27_Load(object sender, EventArgs e)
 {
     _accountsPresenter.DisplayActive();
     _budgetSourcesPresenter.DisplayActive();
     _projectsPresenter.DisplayActive();
     checkcboBudgetSource.EditValue = "<<Tổng hợp>>";
     cbxAccount.ItemIndex           = 6;
     Selection = new GridCheckMarksSelection(gridProjectView);
     Selection.CheckMarkColumn.VisibleIndex    = 0;
     Selection.CheckMarkColumn.Width           = 40;
     dateTimeRangeV1.cboDateRange.SelectedItem = GlobalVariable.DateRangeSelected;
     dateTimeRangeV1.FromDate = GlobalVariable.FromDate;
     dateTimeRangeV1.ToDate   = GlobalVariable.ToDate;
     gridProjectView.OptionsSelection.EnableAppearanceFocusedRow  = false;
     gridProjectView.OptionsSelection.EnableAppearanceFocusedCell = false;
 }
 /// <summary>
 /// Handles the Load event of the FrmS22H 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 FrmS22H_Load(object sender, EventArgs e)
 {
     _accountsPresenter.DisplayActive();
     _stocksPresenter.DisplayByIsActive(true);
     _inventoryItemCategoriesPresenter.Display(true);
     BindSelectDesignReport();
     //cboSelectDesignReport.EditValue = 0;
     //checkAddSameEntry.Checked = true;
     dateTimeRangeV1.cboDateRange.SelectedItem = GlobalVariable.DateRangeSelected;
     dateTimeRangeV1.FromDate   = GlobalVariable.FromDate;
     dateTimeRangeV1.ToDate     = GlobalVariable.ToDate;
     cboStock.EditValue         = "a7f14b9e-71a8-42fd-9cfc-9315e6551a03";
     cboInventoryType.EditValue = "<<Tất cả>>";
     cboInventoryType.Visible   = false;
     labelControl6.Visible      = false;     // ẩn 2 thằng này theo yêu cầu của chị Mai và chị Trinh ngày 21/7
 }
        private void FrmGLVoucherListLedger_Load(object sender, EventArgs e)
        {
            _budgetChaptersPresenter.DisplayByIsActive(true);
            _budgetKindItemsPresenter.DisplayActive();
            _budgetSourcesPresenter.DisplayActive();
            _accountsPresenter.DisplayActive();
            //  _dbOptionHelper.Register();
            cboBudgetSourceId.EditValue = @"<<Tổng hợp>>";
            cboBudgetChapter.EditValue  = @"<<Tổng hợp>>";
            cboBudgetKindItem.EditValue = @"<<Tổng hợp>>";

            Selection = new GridCheckMarksSelection(gridviewAccountingObject);
            Selection.CheckMarkColumn.VisibleIndex = 0;
            Selection.CheckMarkColumn.Width        = 40;
            gridviewAccountingObject.OptionsSelection.EnableAppearanceFocusedRow  = true;
            gridviewAccountingObject.OptionsSelection.EnableAppearanceFocusedCell = false;
        }
示例#23
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();
            }
        }
示例#24
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";
        }
示例#25
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;
 }
 /// <summary>
 /// Handles the Load event of the FrmS101H3 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 FrmS101H3_Load(object sender, EventArgs e)
 {
     _accountsPresenter.DisplayActive();
     _budgetSourcesPresenter.DisplayActive();
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _budgetItemsPresenter.DisplayActive(true);
     _projectsPresenter.DisplayActive();
     BindLookUpBudgetSourceKind();
     cboAccountNumber.EditValue       = @"<<Tổng hợp>>";
     cboBudgetSource.EditValue        = @"<<Tổng hợp>>";
     cboBudgetChapter.EditValue       = @"<<Tổng hợp>>";
     cboBudgetKindItem.EditValue      = @"<<Tổng hợp>>";
     cboProject.EditValue             = @"<<Tổng hợp>>";
     cboProject.EditValue             = @"<<Tổng hợp>>";
     lookupBudgetSourceKind.ItemIndex = 0;
     Selection = new GridCheckMarksSelection(gridViewBudgetItem);
     Selection.CheckMarkColumn.VisibleIndex = 0;
     Selection.CheckMarkColumn.Width        = 40;
     gridViewBudgetItem.OptionsSelection.EnableAppearanceFocusedRow  = true;
     gridViewBudgetItem.OptionsSelection.EnableAppearanceFocusedCell = false;
 }
示例#27
0
 /// <summary>
 /// Handles the Load event of the FrmF331BNG 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 FrmF331BNG_Load(object sender, EventArgs e)
 {
     _accountsPresenter.DisplayActive();
 }