-
Notifications
You must be signed in to change notification settings - Fork 9
/
ReportBuilderViewComponent.cs
34 lines (31 loc) · 1.1 KB
/
ReportBuilderViewComponent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using ExpressBase.Common;
using ExpressBase.Objects.ServiceStack_Artifacts;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using ServiceStack;
using ServiceStack.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ExpressBase.Web.Components
{
public class ReportBuilderViewComponent: ViewComponent
{
protected JsonServiceClient ServiceClient { get; set; }
public ReportBuilderViewComponent(IServiceClient _client, IRedisClient _redis)
{
this.ServiceClient = _client as JsonServiceClient;
}
public async Task<IViewComponentResult> InvokeAsync(string dsobj, int tabnum, int type, string refid, string ssurl)
{
ViewBag.dsObj = dsobj;
ViewBag.tabnum = tabnum;
ViewBag.ObjType = type;
ViewBag.Refid = refid;
//var resp = this.ServiceClient.Get<LocationInfoResponse>(new LocationInfoRequest { });
//ViewBag.LocConfig = JsonConvert.SerializeObject(resp.Config);
return View();
}
}
}