public string GetForm1(string flag, string dtp_current_start, string dtp_current_end, string dtp_period_start, string dtp_period_end)
        {
            Response.ContentType  = "application/json";
            Response.Charset      = "utf-8";
            Response.CacheControl = "no-cache";
            //Response.AppendHeader("Content-encoding", "gzip");
            //flag = "all";
            //dtp_current_start = "2019-01-01";
            //dtp_current_end = "2019-02-01";
            //dtp_period_start = "2019-03-01";
            //dtp_period_end = "2019-04-05";

            if (flag == "" ||
                dtp_current_start == "" ||
                dtp_current_end == "" ||
                dtp_period_start == "" ||
                dtp_period_end == "")
            {
                return("");
            }
            var list = new SameReriodIncomeReportService(flag
                                                         , dtp_current_start
                                                         , dtp_current_end
                                                         , dtp_period_start
                                                         , dtp_period_end).Do();
            var result = new LayPadding <SamePeriodIncomRatio>
            {
                result = true,
                msg    = "success",
                list   = list,
                count  = list.Count
            };

            return(result.ToJson());
        }
Пример #2
0
 public Demo()
 {
     ReportDataSourceName = "DataSet1";
     FileName             = "CurrentPeriod";
     service = new SameReriodIncomeReportService(this);
 }