/// <summary> /// Loads the data into grid. /// </summary> protected void LoadDataIntoGrid() { IList <ActionForm> dataSource = new List <ActionForm>(); dataSource.Add(new ActionForm(1, "Thêm mới")); dataSource.Add(new ActionForm(2, "Sửa")); dataSource.Add(new ActionForm(3, "Xóa")); dataSource.Add(new ActionForm(4, "Xem")); dataSource.Add(new ActionForm(5, "Nhân bản")); dataSource.Add(new ActionForm(6, "In")); dataSource.Add(new ActionForm(7, "Đăng nhập")); dataSource.Add(new ActionForm(8, "Đăng xuất")); _rsActionView = new GridView(); _rsActionView.OptionsView.ColumnAutoWidth = false; _rsAction = new RepositoryItemGridLookUpEdit { NullText = "", View = _rsActionView, TextEditStyle = TextEditStyles.Standard, }; _rsAction.View.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; _rsAction.View.OptionsView.ShowIndicator = false; _rsAction.PopupFormSize = new Size(10, 150); _rsAction.View.BestFitColumns(); _rsAction.DataSource = dataSource; _rsActionView.PopulateColumns(dataSource); var gridColumnsCollection = new List <XtraColumn>(); gridColumnsCollection.Add(new XtraColumn { ColumnName = "Id", ColumnCaption = "Mã nguồn vốn", ColumnVisible = false, ColumnPosition = 1 }); gridColumnsCollection.Add(new XtraColumn { ColumnName = "Name", ColumnCaption = "Thao tác", ColumnVisible = true, ColumnWith = 180, ColumnPosition = 2 }); XtraColumnCollectionHelper <ActionForm> .ShowXtraColumnInGridView(gridColumnsCollection, _rsActionView); _rsAction.DataSource = dataSource; _rsAction.DisplayMember = "Name"; _rsAction.ValueMember = "Id"; _audittingLogsPresenter.Display(); _refTypesPresenter.Display(); _userProfilesPresenter.Display(); }
protected override void InitData() { _accountsPresenter.DisplayActive(); _voucherTypesPresenter.DisplayActive(); _refTypesPresenter.Display(); _budgetSourcesPresenter.DisplayActive(); _budgetItemsPresenter.DisplayActive(); _currencyPresenter.DisplayActive(); if (KeyValue != null) { _autoBusinessPresenter.Display(KeyValue); } }
/// <summary> /// Handles the Load event of the BaseVoucherListDetail 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 BaseVoucherListDetail_Load(object sender, EventArgs e) { if (DesignMode) { return; } InitializeLayout(); InitVariables(); _refTypesPresenter.Display(); LoadData(); SetRowSelected(RowSelected); GetRowValueSelected(); RefreshToolbar(); }
/// <summary> /// Loads the data into grid. /// </summary> protected void LoadDataIntoGrid() { IList <ActionForm> dataSource = new List <ActionForm>(); dataSource.Add(new ActionForm(1, "Thêm mới")); dataSource.Add(new ActionForm(2, "Sửa")); dataSource.Add(new ActionForm(3, "Xóa")); dataSource.Add(new ActionForm(4, "Xem")); dataSource.Add(new ActionForm(5, "Nhân bản")); dataSource.Add(new ActionForm(6, "In")); dataSource.Add(new ActionForm(7, "Đăng nhập")); dataSource.Add(new ActionForm(8, "Đăng xuất")); _rsAction.DataSource = dataSource; _rsAction.DisplayMember = "Name"; _rsAction.ValueMember = "Id"; _audittingLogsPresenter.Display(); _refTypesPresenter.Display(); _userProfilesPresenter.Display(); }
/// <summary> /// Handles the Load event of the FrmGLVoucherListParamater 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 FrmGLVoucherListParamater_Load(object sender, EventArgs e) { _budgetSourcesPresenter.DisplayActive(); _refTypesPresenter.Display(); _projectsPresenter.Display(); if (_glVoucherListParamatersPresenter != null) { _glVoucherListParamatersPresenter.Display(); } if (_glPaymentListParamatersPresenter != null) { _glPaymentListParamatersPresenter.Display(); } dateTimeRangeV1.DateRangePeriodMode = DateRangeMode.Reduce; //dtReportPeriod.InitSelectedIndex = GlobalVariable.DateRangeSelectedIndex; dateTimeRangeV1.InitSelectedIndex = 0; var basePostedDate = DateTime.ParseExact(GlobalVariable.PostedDate, "dd/MM/yyyy", CultureInfo.InvariantCulture); dateTimeRangeV1.InitData(new DateTime(basePostedDate.Year, 1, 1)); dateTimeRangeV1.FromDate = (new DateTime(basePostedDate.Year, 1, 1)); dateTimeRangeV1.ToDate = (new DateTime(basePostedDate.Year, 12, 31)); btnFilter_Click(null, null); }
/// <summary> /// Loads the data into grid. /// </summary> protected override void LoadDataIntoGrid() { _cashWithdrawTypesPresenter.DisplayList(); _refTypesPresenter.Display(); _autoBusinessesPresenter.Display(); }
/// <summary> /// Loads the data into grid. /// </summary> protected override void LoadDataIntoGrid() { _refTypesPresenter.Display(); }
/// <summary> /// Loads the data into grid. /// </summary> protected override void LoadDataIntoGrid() { _refTypesPresenter.Display(); _voucherTypesPresenter.DisplayActive(); _autoBusinessesPresenter.Display(); }