Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FrmXtraReportList"/> class.
 /// </summary>
 public FrmXtraReportList()
 {
     InitializeComponent();
     _reportGroupPresenter = new ReportGroupPresenter(this);
     _reportListPresenter  = new ReportListPresenter(this);
     _reportHelper         = new ReportHelper();
     CommonVariable        = new GlobalVariable();
     dateTimeRangeV.DateRangePeriodMode = DateRangeMode.Reduce;
     dateTimeRangeV.InitSelectedIndex   = 0;
     dateTimeRangeV.InitData(DateTime.Parse(CommonVariable.PostedDate));
 }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FrmXtraReportList"/> class.
        /// </summary>
        public FrmXtraReportList()
        {
            InitializeComponent();
            _reportGroupPresenter = new ReportGroupPresenter(this);
            _reportListPresenter  = new ReportListPresenter(this);
            _reportHelper         = new ReportHelper();
            _currenciesPresenter  = new CurrenciesPresenter(this);
            dtReportPeriod.DateRangePeriodMode = DateRangeMode.Reduce;
            //dtReportPeriod.InitSelectedIndex = GlobalVariable.DateRangeSelectedIndex;
            dtReportPeriod.InitSelectedIndex = 0;
            var basePostedDate = DateTime.ParseExact(GlobalVariable.PostedDate, "dd/MM/yyyy", CultureInfo.InvariantCulture);

            dtReportPeriod.InitData(new DateTime(basePostedDate.Year, 1, 1));
            dtReportPeriod.FromDate = (new DateTime(basePostedDate.Year, 1, 1));
            dtReportPeriod.ToDate   = (new DateTime(basePostedDate.Year, 12, 31));
        }