You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
860 B
26 lines
860 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using QMAPP.Common.Web.Models;
|
|
|
|
namespace QMAPP.Common.Web
|
|
{
|
|
public class ReportHelper
|
|
{
|
|
/// <summary>
|
|
/// 返回一个QueryTimeRangeModel对象,其属性EndDate为System.DateTime.Now值,
|
|
/// BeginDate是在System.DateTime.Now天数的基础上加上指定的Value值
|
|
/// </summary>
|
|
/// <param name="value">指定的天数</param>
|
|
/// <returns></returns>
|
|
public QueryTimeRangeModel GetQueryTimeRange(double value)
|
|
{
|
|
QueryTimeRangeModel model = new QueryTimeRangeModel();
|
|
model.EndDate = System.DateTime.Now.ToString("yyyy-MM-dd");
|
|
model.BeginDate = System.DateTime.Now.AddDays(value).ToString("yyyy-MM-dd");
|
|
|
|
return model;
|
|
}
|
|
}
|
|
}
|
|
|