Example #1
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
        }
 /// <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>>";
 }
Example #3
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;
 }
        /// <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;
        }
Example #5
0
 /// <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 FrmF0102BCQT_Load(object sender, System.EventArgs e)
 {
     //dateTimeRangeV1.DateRangePeriodMode = DateRangeMode.Reduce;
     //dateTimeRangeV1.InitSelectedIndex = GlobalVariable.DateRangeSelectedIndex;
     _budgetSourcesPresenter.DisplayActive();
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _projectsPresenter.DisplayActive();
     cboBudgetSource.EditValue      = @"<<Tổng hợp>>";
     cboBudgetChapter.EditValue     = @"<<Tổng hợp>>";
     cboBudgetSubKindItem.EditValue = @"<<Tổng hợp>>";
     cboProject.EditValue           = @"<<Tổng hợp>>";
     cboMethod.EditValue            = @"<<Tổng hợp>>";
 }
 /// <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;
 }
Example #8
0
 private void grdLockUpParentId_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Plus)
     {
         using (var frmDetail = new FrmXtraProjectDetail())
         {
             frmDetail.ActionMode = ActionModeEnum.AddNew;
             if (frmDetail.ShowDialog() == DialogResult.OK)
             {
                 _projectsPresenter.DisplayActive();
                 var lstDetails = grdLockUpParentId.Properties.DataSource as List <ProjectModel>;
                 if (lstDetails != null)
                 {
                     grdLockUpParentId.EditValue = lstDetails.OrderByDescending(o => o.ProjectId).FirstOrDefault().ProjectId;
                 }
             }
         }
     }
 }
Example #9
0
 /// <summary>
 /// Handles the Load event of the FrmS101HPartII 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 FrmS101HPartII_Load(object sender, EventArgs e)
 {
     _budgetSourcesPresenter.DisplayActive();
     _budgetChaptersPresenter.DisplayByIsActive(true);
     _budgetKindItemsPresenter.DisplayActive();
     _budgetItemsPresenter.DisplayActive(true);
     _projectsPresenter.DisplayActive();
     BindLookUpBudgetSourceKind();
     cboBudgetSource.EditValue        = @"00000000-0000-0000-0000-000000000000";
     cboBudgetChapter.EditValue       = @"<<Tổng hợp>>";
     cboBudgetKindItem.EditValue      = @"<<Tổng hợp>>";
     cboProject.EditValue             = @"<<Tổng hợp>>";
     cboProject.EditValue             = @"00000000-0000-0000-0000-000000000000";
     lookupBudgetSourceKind.ItemIndex = 0;
     Selection = new GridCheckMarksSelection(gridViewBudgetItem);
     Selection.CheckMarkColumn.VisibleIndex = 0;
     Selection.CheckMarkColumn.Width        = 40;
     gridViewBudgetItem.OptionsSelection.EnableAppearanceFocusedRow  = true;
     gridViewBudgetItem.OptionsSelection.EnableAppearanceFocusedCell = false;
 }
 /// <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;
 }