Esempio n. 1
0
        /// </summary>
        /// 测试数据: Reports/GetProductDailyData?DataTime=2018-05-11&lineid=1
        public string GetProductDailyData(string DataTime, int lineid = 1)
        {
            ReportServer reportServer = new ReportServer();
            DateTime     starttime    = Convert.ToDateTime(DataTime);
            string       StartDate    = starttime.ToString("yyyy-MM-dd HH:mm:ss");

            DateTime endtime = Convert.ToDateTime(DataTime).AddDays(1);
            string   EndDate = endtime.ToString("yyyy-MM-dd HH:mm:ss");

            return(reportServer.GetProductDailyData(StartDate, EndDate, lineid));
        }