コード例 #1
0
    protected string GetDateTimeText(object registerPeriod)
    {
        DateTime startDate = DateTime.Now;
        DateTime endDate   = DateTime.Now;

        return(RepositoryDisplayFormatter.GetDateTimeText(
                   registerPeriod,
                   ReportFilterUtilities.ConvertToPeriodType(uxPeriodGraphicDrop.SelectedValue),
                   startDate,
                   endDate));
    }
コード例 #2
0
    protected string GetDateTimeText(object registerPeriod)
    {
        DateTime startDate = DateTime.Now;
        DateTime endDate   = DateTime.Now;

        if (ReportFilterUtilities.ConvertToPeriodType(uxPeriodDrop.SelectedValue) == PeriodType.Custom)
        {
            startDate = uxStartDateCalendarPopup.SelectedDate;
            endDate   = uxEndDateCalendarPopUp.SelectedDate;
        }
        return(RepositoryDisplayFormatter.GetDateTimeText(
                   registerPeriod,
                   ReportFilterUtilities.ConvertToPeriodType(uxPeriodDrop.SelectedValue),
                   startDate,
                   endDate));
    }