示例#1
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("ScheduleRuleMinutely",
                         new XAttribute("Guid", this.Guid),
                         new XAttribute("StartingOn", this.StartingOn.ToString("o", CultureInfo.InvariantCulture)),
                         new XAttribute("EachMinutes", this.EachMinutes)));
 }
示例#2
0
 internal XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("ValueUserQueryElement",
                         Label == null ? null : new XAttribute("Label", Label),
                         Href == null ? null : new XAttribute("Href", Href),
                         new XAttribute("UserQuery", ctx.Include(UserQuery))));
 }
示例#3
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("UserChartPart",
                         new XAttribute("ShowData", ShowData),
                         new XAttribute("AllowChangeShowData", AllowChangeShowData),
                         new XAttribute("UserChart", ctx.Include(UserChart))));
 }
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("WorkflowScriptRetryStrategy",
                         new XAttribute("Guid", Guid),
                         new XAttribute("Rule", Rule)
                         ));
 }
示例#5
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("Filter",
                         new XAttribute("Token", Token.Token.FullKey()),
                         new XAttribute("Operation", Operation),
                         new XAttribute("Value", ValueString ?? "")));
 }
示例#6
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("HolidayCalendar",
                         new XAttribute("Guid", this.Guid),
                         new XAttribute("Name", this.Name),
                         new XElement("Holidays", this.Holidays.Select(p => p.ToXml(ctx)))));
 }
示例#7
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("ToolbarMenu",
                         new XAttribute("Guid", Guid),
                         new XAttribute("Name", Name),
                         Owner == null ? null : new XAttribute("Owner", Owner.Key()),
                         new XElement("Elements", Elements.Select(p => p.ToXml(ctx)))));
 }
示例#8
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("Column",
                         new XAttribute("Token", Token.Token.FullKey()),
                         SummaryToken != null ? new XAttribute("SummaryToken", SummaryToken.Token.FullKey()) : null !,
                         DisplayName.HasText() ? new XAttribute("DisplayName", DisplayName) : null !,
                         HiddenColumn ? new XAttribute("HiddenColumn", HiddenColumn) : null !));
 }
示例#9
0
 internal XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("Part",
         new XAttribute("Row", Row),
         new XAttribute("StartColumn", StartColumn),
         new XAttribute("Columns", Columns),
         Title == null ? null : new XAttribute("Title", Title),
         Content.ToXml(ctx));
 }
示例#10
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("CombinedUserChartPart",
                         new XAttribute("ShowData", ShowData),
                         new XAttribute("AllowChangeShowData", AllowChangeShowData),
                         new XAttribute("CombinePinnedFiltersWithSameLabel", CombinePinnedFiltersWithSameLabel),
                         new XAttribute("UseSameScale", UseSameScale),
                         UserCharts.Select(uc => new XElement("UserChart", new XAttribute("Guid", ctx.Include(uc))))));
 }
示例#11
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("UserChartPart",
                         new XAttribute("ShowData", ShowData),
                         new XAttribute("AllowChangeShowData", AllowChangeShowData),
                         CreateNew ? new XAttribute("CreateNew", CreateNew) : null !,
                         AutoRefresh ? new XAttribute("AutoRefresh", AutoRefresh) : null !,
                         new XAttribute("UserChart", ctx.Include(UserChart))));
 }
示例#12
0
 internal XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("Part",
                         new XAttribute("Row", Row),
                         new XAttribute("StartColumn", StartColumn),
                         new XAttribute("Columns", Columns),
                         Title == null ? null : new XAttribute("Title", Title),
                         Content.ToXml(ctx)));
 }
示例#13
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("UserQueryPart",
                         new XAttribute("UserQuery", ctx.Include(UserQuery)),
                         new XAttribute("RenderMode", RenderMode.ToString()),
                         new XAttribute("AllowSelection", AllowSelection.ToString()),
                         new XAttribute("ShowFooter", ShowFooter.ToString())
                         ));
 }
示例#14
0
 internal XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("Column",
                         Token == null ? null : new XAttribute("Token", this.Token.Token.FullKey()),
                         DisplayName == null ? null : new XAttribute("DisplayName", this.DisplayName),
                         OrderByIndex == null ? null : new XAttribute("OrderByIndex", this.OrderByIndex),
                         OrderByType == null ? null : new XAttribute("OrderByType", this.OrderByType)
                         ));
 }
示例#15
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("WorkflowCondition",
                         new XAttribute("Guid", Guid),
                         new XAttribute("Name", Name),
                         new XAttribute("MainEntityType", ctx.TypeToName(MainEntityType)),
                         new XElement("Eval",
                                      new XElement("Script", new XCData(Eval.Script)))));
 }
示例#16
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("Toolbar",
                         new XAttribute("Guid", Guid),
                         new XAttribute("Name", Name),
                         Owner == null ? null ! : new XAttribute("Owner", Owner.Key()),
                         Priority == null ? null ! : new XAttribute("Priority", Priority.Value.ToString()),
                         new XElement("Elements", Elements.Select(p => p.ToXml(ctx)))));
 }
示例#17
0
 internal XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("Pinned",
                         Label.DefaultToNull()?.Let(l => new XAttribute("Label", l)) !,
                         Column?.Let(l => new XAttribute("Column", l)) !,
                         Row?.Let(l => new XAttribute("Row", l)) !,
                         Active == PinnedFilterActive.Always ? null ! : new XAttribute("Active", Active.ToString()) !,
                         SplitText == false ? null ! : new XAttribute("SplitText", SplitText)
                         ));
 }
示例#18
0
 internal XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("Pinned",
                         Label.DefaultToNull()?.Let(l => new XAttribute("Label", l)),
                         Column?.Let(l => new XAttribute("Column", l)),
                         Row?.Let(l => new XAttribute("Row", l)),
                         DisableOnNull == false ? null : new XAttribute("DisableOnNull", DisableOnNull),
                         SplitText == false ? null : new XAttribute("SplitText", SplitText)
                         ));
 }
示例#19
0
 internal XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("Column",
                         Token == null ? null ! : new XAttribute("Token", this.Token.Token.FullKey()),
                         !DisplayName.HasText() ? null ! : new XAttribute("DisplayName", this.DisplayName),
                         !Format.HasText() ? null ! : new XAttribute("Format", this.Format),
                         OrderByIndex == null ! ? null ! : new XAttribute("OrderByIndex", this.OrderByIndex),
                         OrderByType == null ! ? null ! : new XAttribute("OrderByType", this.OrderByType)
                         ));
 }
示例#20
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("WorkflowScript",
                         new XAttribute("Guid", Guid),
                         new XAttribute("Name", Name),
                         new XAttribute("MainEntityType", ctx.TypeToName(MainEntityType)),
                         new XElement("Eval",
                                      new XElement("Script", new XCData(Eval.Script)),
                                      string.IsNullOrEmpty(Eval.CustomTypes) ? null ! : new XElement("CustomTypes", new XCData(Eval.Script)))
                         ));
 }
示例#21
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("UserChartPart",
                         new XAttribute(nameof(UserChart), ctx.Include(UserChart)),
                         ShowData ? new XAttribute(nameof(ShowData), ShowData) : null,
                         AllowChangeShowData ? new XAttribute(nameof(AllowChangeShowData), AllowChangeShowData) : null,
                         IsQueryCached ? new XAttribute(nameof(IsQueryCached), IsQueryCached) : null,
                         CreateNew ? new XAttribute(nameof(CreateNew), CreateNew) : null !,
                         AutoRefresh ? new XAttribute(nameof(AutoRefresh), AutoRefresh) : null !
                         ));
 }
示例#22
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("UserQueryPart",
                         new XAttribute(nameof(UserQuery), ctx.Include(UserQuery)),
                         new XAttribute(nameof(RenderMode), RenderMode),
                         new XAttribute(nameof(AllowSelection), AllowSelection),
                         ShowFooter ? new XAttribute(nameof(ShowFooter), ShowFooter) : null,
                         CreateNew ? new XAttribute(nameof(CreateNew), CreateNew) : null,
                         IsQueryCached ? new XAttribute(nameof(IsQueryCached), IsQueryCached) : null
                         ));
 }
示例#23
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("Dashboard",
                         new XAttribute("Guid", Guid),
                         new XAttribute("DisplayName", DisplayName),
                         EntityType == null ? null : new XAttribute("EntityType", ctx.TypeToName(EntityType)),
                         Owner == null ? null : new XAttribute("Owner", Owner.Key()),
                         DashboardPriority == null ? null : new XAttribute("DashboardPriority", DashboardPriority.Value.ToString()),
                         EmbeddedInEntity == null ? null : new XAttribute("EmbeddedInEntity", EmbeddedInEntity.Value.ToString()),
                         new XElement("Parts", Parts.Select(p => p.ToXml(ctx)))));
 }
示例#24
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("JoyrideStepStyle",
                         new XAttribute("Guid", Guid),
                         new XElement("Name", Name),
                         BackgroundColor.IsNullOrEmpty() ? null : new XElement("BackgroundColor", BackgroundColor),
                         MainColor.IsNullOrEmpty() ? null : new XElement("MainColor", MainColor),
                         Color.IsNullOrEmpty() ? null : new XElement("Color", Color),
                         BorderRadius.IsNullOrEmpty() ? null : new XElement("BorderRadius", BorderRadius),
                         TextAlign.IsNullOrEmpty() ? null : new XElement("TextAlign", TextAlign),
                         Width.IsNullOrEmpty() ? null : new XElement("Width", Width)));
 }
示例#25
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("CombinedUserChartPart",
                         ShowData ? new XAttribute(nameof(ShowData), ShowData) : null,
                         AllowChangeShowData ? new XAttribute(nameof(AllowChangeShowData), AllowChangeShowData) : null,
                         CombinePinnedFiltersWithSameLabel ? new XAttribute(nameof(CombinePinnedFiltersWithSameLabel), CombinePinnedFiltersWithSameLabel) : null,
                         UseSameScale ? new XAttribute(nameof(UseSameScale), UseSameScale) : null,
                         UserCharts.Select(uc => new XElement("UserChart",
                                                              new XAttribute("Guid", ctx.Include(uc.UserChart)),
                                                              uc.IsQueryCached ? new XAttribute(nameof(uc.IsQueryCached), uc.IsQueryCached) : null))
                         ));
 }
示例#26
0
        public XElement ToXml(IToXmlContext ctx)
        {
            return(new XElement("EmailMasterTemplate",
                                new XAttribute("Name", this.Name ?? ""),
                                new XAttribute("Guid", this.Guid),

                                new XElement("Messages", this.Messages.Select(x =>
                                                                              new XElement("Message",
                                                                                           new XAttribute("CultureInfo", x.CultureInfo.Name),
                                                                                           new XCData(x.Text)
                                                                                           )))));
        }
示例#27
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("Joyride",
                         new XAttribute("Guid", Guid),
                         new XElement("Name", Name),
                         Culture == null ? null : new XElement("Culture", Culture.Key()),
                         new XElement("Type", Type.ToString()),
                         new XElement("Steps", Steps.Select(p => p.ToXml(ctx))),
                         new XElement("ShowSkipButton", ShowSkipButton),
                         new XElement("ShowStepsProgress", ShowStepsProgress),
                         new XElement("KeyboardNavigation", KeyboardNavigation),
                         new XElement("Debug", Debug)));
 }
示例#28
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("UserChart",
                         new XAttribute("Guid", Guid),
                         new XAttribute("DisplayName", DisplayName),
                         new XAttribute("Query", Query.Key),
                         EntityType == null ? null : new XAttribute("EntityType", ctx.TypeToName(EntityType)),
                         new XAttribute("HideQuickLink", HideQuickLink),
                         Owner == null ? null : new XAttribute("Owner", Owner.Key()),
                         new XAttribute("ChartScript", this.ChartScript.Key),
                         Filters.IsNullOrEmpty() ? null : new XElement("Filters", Filters.Select(f => f.ToXml(ctx)).ToList()),
                         new XElement("Columns", Columns.Select(f => f.ToXml(ctx)).ToList()),
                         Parameters.IsNullOrEmpty() ? null : new XElement("Parameters", Parameters.Select(f => f.ToXml(ctx)).ToList())));
 }
示例#29
0
 internal XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("Part",
                         new XAttribute("Row", Row),
                         new XAttribute("StartColumn", StartColumn),
                         new XAttribute("Columns", Columns),
                         Title == null ? null ! : new XAttribute("Title", Title),
                         IconName == null ? null ! : new XAttribute("IconName", IconName),
                         IconColor == null ? null ! : new XAttribute("IconColor", IconColor),
                         InteractionGroup == null ? null ! : new XAttribute("InteractionGroup", InteractionGroup),
                         CustomColor == null ? null ! : new XAttribute("CustomColor", CustomColor),
                         UseIconColorForTitle == false ? null ! : new XAttribute("UseIconColorForTitle", true),
                         Content.ToXml(ctx)));
 }
示例#30
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("JoyrideStep",
                         new XAttribute("Guid", Guid),
                         Culture == null ? null ! : new XElement("Culture", Culture.Key()),
                         new XElement("Title", Title),
                         Text == null ? null ! : new XElement("Text", Text),
                         Style == null ? null ! : new XElement("Style", ctx.Include(Style).ToString()),
                         new XElement("Selector", Selector),
                         new XElement("Position", Position.ToString()),
                         new XElement("Type", Type.ToString()),
                         new XElement("AllowClicksThruHole", AllowClicksThruHole),
                         new XElement("IsFixed", IsFixed)));
 }
示例#31
0
 internal XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("ToolbarElement",
                         new XAttribute("Type", Type),
                         string.IsNullOrEmpty(Label) ? null : new XAttribute("Label", Label),
                         string.IsNullOrEmpty(IconName) ? null : new XAttribute("IconName", IconName),
                         string.IsNullOrEmpty(IconColor) ? null :  new XAttribute("IconColor", IconColor),
                         OpenInPopup ? new XAttribute("OpenInPopup", OpenInPopup) : null,
                         AutoRefreshPeriod == null ? null : new XAttribute("AutoRefreshPeriod", AutoRefreshPeriod),
                         this.Content == null ? null : new XAttribute("Content",
                                                                      this.Content is Lite <QueryEntity>?ctx.QueryToName((Lite <QueryEntity>) this.Content) :
                                                                          this.Content is Lite <PermissionSymbol>?ctx.PermissionToName((Lite <PermissionSymbol>) this.Content) :
                                                                              (object)ctx.Include((Lite <IUserAssetEntity>) this.Content)),
                         string.IsNullOrEmpty(this.Url) ? null : new XAttribute("Url", this.Url)));
 }
示例#32
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("Column",
         new XAttribute("Token", Token.Token.FullKey()),
         DisplayName.HasText() ? new XAttribute("DisplayName", DisplayName) : null);
 }
示例#33
0
 internal XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("LinkElement",
         new XAttribute("Label", Label),
         new XAttribute("Link", Link));
 }
示例#34
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("LinkListPart",
         Links.Select(lin => lin.ToXml(ctx)));
 }
示例#35
0
 internal XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("CountUserQueryElement",
         Label == null ? null : new XAttribute("Label", Label),
         Href == null ? null : new XAttribute("Href", Href),
         new XAttribute("UserQuery", ctx.Include(UserQuery)));
 }
示例#36
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("UserQueryPart",
         new XAttribute("UserQuery", ctx.Include(UserQuery)),
         new XAttribute("AllowSelection", AllowSelection.ToString()));
 }
示例#37
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("UserQuery",
         new XAttribute("Guid", Guid),
         new XAttribute("DisplayName", DisplayName),
         new XAttribute("Query", Query.Key),
         EntityType == null ? null : new XAttribute("EntityType", ctx.TypeToName(EntityType)),
         Owner == null ? null : new XAttribute("Owner", Owner.Key()),
         WithoutFilters == true ? null : new XAttribute("WithoutFilters", true),
         ElementsPerPage == null ? null : new XAttribute("ElementsPerPage", ElementsPerPage),
         PaginationMode == null ? null : new XAttribute("PaginationMode", PaginationMode),
         new XAttribute("ColumnsMode", ColumnsMode),
         Filters.IsNullOrEmpty() ? null : new XElement("Filters", Filters.Select(f => f.ToXml(ctx)).ToList()),
         Columns.IsNullOrEmpty() ? null : new XElement("Columns", Columns.Select(c => c.ToXml(ctx)).ToList()),
         Orders.IsNullOrEmpty() ? null : new XElement("Orders", Orders.Select(o => o.ToXml(ctx)).ToList()));
 }
示例#38
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("UserQueryPart",
         new XAttribute("UserQuery", ctx.Include(UserQuery)));
 }
示例#39
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("UserChart",
         new XAttribute("Guid", Guid),
         new XAttribute("DisplayName", DisplayName),
         new XAttribute("Query", Query.Key),
         EntityType == null ? null : new XAttribute("EntityType", ctx.TypeToName(EntityType)),
         Owner == null ? null : new XAttribute("Owner", Owner.Key()),
         new XAttribute("ChartScript", ChartScript.Name),
         new XAttribute("GroupResults", GroupResults),
         Filters.IsNullOrEmpty() ? null : new XElement("Filters", Filters.Select(f => f.ToXml(ctx)).ToList()),
         new XElement("Columns", Columns.Select(f => f.ToXml(ctx)).ToList()),
         Orders.IsNullOrEmpty() ? null : new XElement("Orders", Orders.Select(f => f.ToXml(ctx)).ToList()),
         Parameters.IsNullOrEmpty() ? null : new XElement("Parameters", Parameters.Select(f => f.ToXml(ctx)).ToList()));
 }
示例#40
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("Filter",
         new XAttribute("Token", Token.Token.FullKey()),
         new XAttribute("Operation", Operation),
         new XAttribute("Value", ValueString));
 }
示例#41
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("Parameter",
         new XAttribute("Name", this.Name),
         new XAttribute("Value", this.Value));
 }
 internal XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("Column",
       Token ==  null ? null : new XAttribute("Token", this.Token.Token.FullKey()),
       DisplayName == null ? null : new XAttribute("DisplayName", this.DisplayName));
 }
示例#43
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("Orden",
         new XAttribute("Token", Token.Token.FullKey()),
         new XAttribute("OrderType", OrderType));
 }
示例#44
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("UserChartPart",
         new XAttribute("ShowData", ShowData),
         new XAttribute("UserChart", ctx.Include(UserChart)));
 }
示例#45
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("CountSearchControlPart",
         UserQueries.Select(cuqe => cuqe.ToXml(ctx)));
 }
示例#46
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return new XElement("Dashboard",
         new XAttribute("Guid", Guid),
         new XAttribute("DisplayName", DisplayName),
         EntityType == null ? null : new XAttribute("EntityType", ctx.TypeToName(EntityType)),
         Owner == null ? null : new XAttribute("Owner", Owner.Key()),
         DashboardPriority == null ? null : new XAttribute("DashboardPriority", DashboardPriority.Value.ToString()),
         EmbeddedInEntity == null ? null : new XAttribute("EmbeddedInEntity", EmbeddedInEntity.Value.ToString()),
         new XElement("Parts", Parts.Select(p => p.ToXml(ctx))));
 }
示例#47
0
 public XElement ToXml(IToXmlContext ctx)
 {
     throw new NotImplementedException();
 }