示例#1
0
        void Render(RequestUrlKind kind, String path, String search, TextWriter writer)
        {
            ExpandoObject loadPrms = new ExpandoObject();

            loadPrms.Append(_controller.CheckPeriod(HttpUtility.ParseQueryString(search)), toPascalCase: true);
            SetSqlQueryParams(loadPrms);
            if (path.StartsWith("app/"))
            {
                _controller.RenderApplicationKind(kind, path, loadPrms, writer).Wait();
            }
            else
            {
                _controller.RenderElementKind(kind, path, loadPrms, writer).Wait();
            }
        }
示例#2
0
 void Export(String path, String search, HttpResponseBase response)
 {
     // HTTP GET
     try
     {
         ExpandoObject loadPrms = new ExpandoObject();
         loadPrms.Append(_controller.CheckPeriod(HttpUtility.ParseQueryString(search)), toPascalCase: true);
         SetSqlParams(loadPrms);
         _controller.Export(path, TenantId, UserId, loadPrms, response).Wait();
     }
     catch (Exception ex)
     {
         WriteExceptionStatus(ex, response);
     }
 }
示例#3
0
 void SetQueryStringAndSqlQueryParams(ExpandoObject prms)
 {
     SetUserTenantToParams(prms);
     SetUserCompanyToParams(prms);
     prms.Append(_controller.CheckPeriod(HttpUtility.ParseQueryString(this.Search)), toPascalCase: true);
 }