Esempio n. 1
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;
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     _accountsPresenter.DisplayActive();
     _budgetSourcesPresenter.DisplayActive();
     if (KeyValue != null)
     {
         _accountTransferPresenter.Display(KeyValue);
     }
 }
 protected override void InitData()
 {
     _accountsPresenter.DisplayActive();
     _voucherTypesPresenter.DisplayActive();
     _refTypesPresenter.Display();
     _budgetSourcesPresenter.DisplayActive();
     _budgetItemsPresenter.DisplayActive();
     _currencyPresenter.DisplayActive();
     if (KeyValue != null)
     {
         _autoBusinessPresenter.Display(KeyValue);
     }
 }
Esempio n. 4
0
 protected override void LoadDataIntoGrid()
 {
     _budgetItemsPresenter.DisplayActive();
     _budgetSourcesPresenter.DisplayActive();
     _voucherTypesPresenter.DisplayActive();
     _autoBusinessParallelsPresenter.Display();
 }
        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;
        }
Esempio n. 6
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
        }
Esempio n. 7
0
 /// <summary>
 /// Loads the data into grid.
 /// </summary>
 protected override void LoadDataIntoGrid()
 {
     InitRepositoryControlData();
     _budgetKindItemsPresenter.DisplayActive();
     _budgetSourcesPresenter.DisplayActive();
     _budgetItemsPresenter.DisplayActive(true);
     _buBudgetReservesPresenter.Display((int)RefType.BUBudgetReserve);
 }
Esempio n. 8
0
 /// <summary>
 /// Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     _budgetSourcesPresenter.DisplayActive();
     if (KeyValue != null)
     {
         _exchangeRatePresenter.Display(int.Parse(KeyValue));
     }
 }
        protected override void LoadDataIntoGrid()
        {
            InitRepositoryControlData();

            _budgetSourcesPresenter.DisplayActive();
            bindingSource.AllowNew = true;

            _bUTransfersPresenter.Display((int)this.RefTypeId);
        }
 private void FrmS03H_Load(object sender, EventArgs e)
 {
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _budgetSourcesPresenter.DisplayActive();
     checkAddSameEntry.Checked   = false;
     cboBudgetSource.EditValue   = "<<Tổng hợp>>";
     cboBudgetChapter.EditValue  = "<<Tổng hợp>>";
     cboBudgetKindItem.EditValue = "<<Tổng hợp>>";
 }
 /// <summary>
 /// Handles the Load event of the FrmB01BCQT 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 FrmB01BCQT_Load(object sender, EventArgs e)
 {
     //dateTimeRangeV1.DateRangePeriodMode = DateRangeMode.All;
     _budgetSourcesPresenter.DisplayActive();
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     cboBudgetSource.EditValue      = @"<<Tổng hợp>>";
     cboBudgetChapter.EditValue     = @"<<Tổng hợp>>";
     cboBudgetSubKindItem.EditValue = @"<<Tổng hợp>>";
 }
 /// <summary>
 /// Handles the Load event of the FrmFinance 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 FrmFinance_Load(object sender, EventArgs e)
 {
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _budgetSourcesPresenter.DisplayActive();
     cboBudgetChapter.EditValue  = @"<<Tổng hợp>>";
     cboBudgetKindItem.EditValue = @"<<Tổng hợp>>";
     cboBudgetSourceId.EditValue = @"<<Tổng hợp>>";
     lookUpEdit1.SelectedIndex   = 0;
     rndOption.SelectedIndex     = 1;
 }
 /// <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 FrmS102H1_Load(object sender, System.EventArgs e)
 {
     _budgetSourcesPresenter.DisplayActive();
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _projectsPresenter.DisplayActive();
     cboBudgetSource.EditValue = @"<<Tổng hợp>>";
     cboBudgetChapter.EditValue = @"<<Tổng hợp>>";
     cboBudgetKindItem.EditValue = @"<<Tổng hợp>>";
     cboProject.EditValue = @"<<Tổng hợp>>";
 }
 /// <summary>
 /// Handles the Load event of the FrmF0101BCQT 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 FrmF0101BCQT_Load(object sender, System.EventArgs e)
 {
     //dateTimeRangeV1.DateRangePeriodMode = DateRangeMode.All;
     //dateTimeRangeV1.InitSelectedIndex = GlobalVariable.DateRangeSelectedIndex;
     _budgetSourcesPresenter.DisplayActive();
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     cboBudgetSource.EditValue      = @"<<Tổng hợp>>";
     cboBudgetChapter.EditValue     = @"<<Tổng hợp>>";
     cboBudgetSubKindItem.EditValue = @"<<Tổng hợp>>";
 }
Esempio n. 15
0
 /// <summary>
 /// Handles the Load event of the FrmC302NS 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 FrmC302NS_Load(object sender, EventArgs e)
 {
     _budgetSourcesPresenter.DisplayActive();
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _budgetItemsPresenter.DisplayActive(true);
     _projectsPresenter.DisplayActive();
     //lookupBudgetSourceKind.EditValue = @"<<Tất cả>>";
     cboProject.EditValue = @"<<Không chọn>>";
     //  Selection.CheckMarkColumn.VisibleIndex = 0;
     // Selection.CheckMarkColumn.Width = 10;
 }
        protected override void InitData()
        {
            _accountsPresenter.DisplayActive();
            _budgetSourcesPresenter.DisplayActive();
            _budgetItemsPresenter.DisplayActive();
            _voucherTypesPresenter.DisplayActive();

            if (KeyValue != null)
            {
                _autoBusinessParallelPresenter.Display(Convert.ToInt32(KeyValue));
            }
        }
        /// <summary>
        ///     Handles the Load event of the FrmB01H 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 FrmB01H_Load(object sender, EventArgs e)
        {
            _budgetChaptersPresenter.DisplayByIsActive(true);
            _budgetKindItemsPresenter.DisplayActive();

            _budgetSourcesPresenter.DisplayActive();
            cboBudgetChapter.EditValue  = @"<<Tổng hợp>>";
            cboBudgetKindItem.EditValue = @"<<Tổng hợp>>";
            cboBudgetSourceId.SetEditValue(@"00000000-0000-0000-0000-000000000000");
            cboAccountGrade.EditValue = -1;
            lookUpEdit1.EditValue     = 1;
            InitRepositoryControlData();
        }
        /// <summary>
        /// Initializes the data.
        /// </summary>
        protected override void InitData()
        {
            _budgetSourceCategoriesPresenter.DisplayActive();
            //_banksPresenter.DisplayActive(true);
            //_projectsPresenter.DisplayActive();
            _budgetSourcesPresenter.DisplayActive();

            if (KeyValue != null)
            {
                _budgetSourcePresenter.Display(KeyValue);
            }
            else
            {
                if (CurrentNode != null)
                {
                    txtBudgetSourceCode.Text         = ((BudgetSourceModel)CurrentNode).BudgetSourceCode;
                    gridLookUpEditParentId.EditValue = ((BudgetSourceModel)CurrentNode).BudgetSourceId;
                    gridLookUpEditBudgetSourceCategoryId.EditValue = ((BudgetSourceModel)CurrentNode).BudgetSourceCategoryId;
                    cboBudgetSourceProperty.SelectedIndex          = ((BudgetSourceModel)CurrentNode).BudgetSourceProperty;
                }
            }
        }
 /// <summary>
 /// Handles the Load event of the FrmFinance 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 FrmFinance_Load(object sender, EventArgs e)
 {
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _budgetSourcesPresenter.DisplayActive();
     _budgetSourceCategoriesPresenter.DisplayActive();
     //  _dbOptionHelper.Register();
     cboBudgetSourceId.EditValue   = @"<<Tổng hợp>>";
     cboBudgetChapter.EditValue    = @"<<Tổng hợp>>";
     cboBudgetKindItem.EditValue   = @"<<Tổng hợp>>";
     cboMethodDistribute.EditValue = @"<<Tổng hợp>>";
     cboExpendKind.EditValue       = @"00000000-0000-0000-0000-000000000000";
     rndOption.SelectedIndex       = 1;
     lookUpEdit1.SelectedIndex     = 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 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;
 }
Esempio n. 22
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);
        }
Esempio n. 23
0
 /// <summary>
 /// Handles the Load event of the FrmS04H 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 FrmS04H_Load(object sender, EventArgs e)
 {
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _budgetSourcesPresenter.DisplayActive();
     checkAddSameEntry.Checked = false;
     BindSelectDesignReport();
     dateTimeRangeV1.cboDateRange.SelectedIndex = GlobalVariable.DateRangeSelectedIndex;
     dateTimeRangeV1.FromDate             = GlobalVariable.FromDate;
     dateTimeRangeV1.ToDate               = GlobalVariable.ToDate;
     cboSelectDesignReport.SelectionStart = 1;
     checkcboBudgetSource.EditValue       = "<<Tổng hợp>>";
     checkcboBudgetChapter.EditValue      = "<<Tổng hợp>>";
     checkcboBudgetKindItem.EditValue     = "<<Tổng hợp>>";
 }
 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;
 }
        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;
        }
        private void FrmS101HPartII_Load(object sender, EventArgs e)
        {
            _budgetSourcesPresenter.DisplayActive();
            _budgetChaptersPresenter.DisplayByIsActive(true);
            _budgetKindItemsPresenter.DisplayActive();
            _budgetItemsPresenter.DisplayActive(true);

            //  _projectsPresenter.DisplayActive();
            // _budgetSourceCategoriesPresenter.DisplayActive();
            cboBudgetSource.EditValue   = @"<<Tổng hợp>>";
            cboBudgetChapter.EditValue  = @"<<Tổng hợp>>";
            cboBudgetKindItem.EditValue = @"<<Tổng hợp>>";
            Selection = new GridCheckMarksSelection(gridViewBudgetItem);
            Selection.CheckMarkColumn.VisibleIndex = 0;
            Selection.CheckMarkColumn.Width        = 40;
            gridViewBudgetItem.OptionsSelection.EnableAppearanceFocusedRow  = true;
            gridViewBudgetItem.OptionsSelection.EnableAppearanceFocusedCell = false;
        }
        /// <summary>
        /// Initializes the data.
        /// </summary>
        protected override void InitData()
        {
            _budgetSourcesPresenter.DisplayActive();
            _budgetKindItemsPresenter.DisplayActive();
            _budgetItemsPresenter.DisplayActive(true);
            _budgetChaptersPresenter.DisplayByIsActive(true);
            if (MasterBindingSource != null)
            {
                if (MasterBindingSource.Current != null)
                {
                    KeyValue = ((BUBudgetReserveModel)MasterBindingSource.Current).RefId;
                }
            }
            _buBudgetReservePresenter.Display(KeyValue);

            if (RefType == 0)
            {
                RefType = (int)BuCA.Enum.RefType.BUBudgetReserve;
            }
        }
 /// <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;
 }
Esempio n. 29
0
        /// <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;
        }
 /// <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;
 }