using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.Common.Web.Models;
namespace QMAPP.Common.Web
{
public class ReportHelper
{
///
/// 返回一个QueryTimeRangeModel对象,其属性EndDate为System.DateTime.Now值,
/// BeginDate是在System.DateTime.Now天数的基础上加上指定的Value值
///
/// 指定的天数
///
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;
}
}
}