Пример #1
0
 public static ContentResult Get(Context context)
 {
     return(new ContentResult
     {
         ContentType = "text/javascript",
         Content = HtmlScripts.ExtendedScripts(context: context)
     });
 }
 public static ContentResult Get(Context context)
 {
     return(new ContentResult
     {
         ContentType = "text/javascript",
         Content = HtmlScripts.ExtendedScripts(
             deptId: context.DeptId,
             userId: context.UserId,
             siteId: context.QueryStrings.Long("site-id"),
             id: context.QueryStrings.Long("id"),
             controller: context.QueryStrings.Data("controller"),
             action: context.QueryStrings.Data("action"))
     });
 }
        public static ContentResult Get(Context context)
        {
            var siteId     = context.QueryStrings.Long("site-id");
            var id         = context.QueryStrings.Long("id");
            var controller = context.QueryStrings.Data("controller");
            var action     = context.QueryStrings.Data("action");
            var siteTop    = siteId == 0 && id == 0 && controller == "items" && action == "index";

            return(new ContentResult
            {
                ContentType = "text/javascript",
                Content = HtmlScripts.ExtendedScripts(
                    context: context,
                    deptId: context.DeptId,
                    groups: context.Groups,
                    userId: context.UserId,
                    siteTop: siteTop,
                    siteId: siteId,
                    id: id,
                    controller: controller,
                    action: action)
            });
        }
Пример #4
0
 /// <summary>
 /// Recursively prints the contents of any POCO object to HTML with specified columns
 /// </summary>
 public static string htmlDump(object target, string[] headers) =>
 HtmlScripts.HtmlDump(target, new HtmlDumpOptions {
     Headers = headers
 });
Пример #5
0
 /// <summary>
 /// Recursively prints the contents of any POCO object to HTML
 /// </summary>
 public static string htmlDump(object target, HtmlDumpOptions options) => HtmlScripts.HtmlDump(target, options);
Пример #6
0
 /// <summary>
 /// Recursively prints the contents of any POCO object to HTML
 /// </summary>
 public static string htmlDump(object target) => HtmlScripts.HtmlDump(target, null);