private void RenderMinuteWidget(ComponentController paComponentController, ViewWidgetSubscriptionRow paWidgetSubscriptionRow) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSMinuteIcon); paComponentController.AddAttribute(HtmlAttribute.Src, paWidgetSubscriptionRow.Icon); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); }
public SubControlWidgetGroup(ViewWidgetSubscriptionRow paWidgetSubscriptionRow, DataRow[] paWidgetRows) { clWidgetRows = paWidgetRows; clWidgetSubscriptionRow = paWidgetSubscriptionRow; clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clEffectiveRole = ApplicationFrame.GetInstance().GetEffectiveRoleList(); }
private void RenderWidgetListContainer(ComponentController paComponentController) { ViewWidgetSubscriptionRow lcWidgetSubscriptionRow; DataRow[] lcWidgetRows; lcWidgetRows = ApplicationFrame.GetInstance().ActiveSubscription.ActiveWidgetSubscription.ActiveTable.Select(ctFLTType, ctCOLSortPriority); paComponentController.AddElementType(ComponentController.ElementType.List); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidgetList); paComponentController.RenderBeginTag(HtmlTag.Div); lcWidgetSubscriptionRow = new ViewWidgetSubscriptionRow(null); if (lcWidgetRows != null) { for (int lcCount = 0; lcCount < lcWidgetRows.Length; lcCount++) { lcWidgetSubscriptionRow.Row = lcWidgetRows[lcCount]; RenderWidgetRow(paComponentController, lcWidgetSubscriptionRow); } } paComponentController.RenderEndTag(); }
private void RenderWidgetGroup(ComponentController paComponentController, ViewWidgetSubscriptionRow paWidgetSubscriptionRow) { SubControlWidgetGroup lcSubCompositeGroup; if ((paWidgetSubscriptionRow != null) && (VerifyRole(paWidgetSubscriptionRow.RequireRole))) { lcSubCompositeGroup = new SubControlWidgetGroup(paWidgetSubscriptionRow, GetWidgetRowList(paWidgetSubscriptionRow.Grouping)); lcSubCompositeGroup.RenderChildMode(paComponentController); } }
private void RenderChildWidget(ComponentController paComponentController, ViewWidgetSubscriptionRow paWidgetSubscriptionRow) { SubControlWidgetIcon lcSubCompositeWidget; if ((paWidgetSubscriptionRow != null) && (VerifyRole(paWidgetSubscriptionRow.RequireRole))) { lcSubCompositeWidget = new SubControlWidgetIcon(); lcSubCompositeWidget.SC_WidgetIcon = paWidgetSubscriptionRow.Icon; lcSubCompositeWidget.SC_WidgetLabel = paWidgetSubscriptionRow.IconLabel; lcSubCompositeWidget.SC_WidgetLink = paWidgetSubscriptionRow.Link; lcSubCompositeWidget.SC_WidgetCategory = paWidgetSubscriptionRow.Category; lcSubCompositeWidget.RenderChildMode(paComponentController); } }
private void RenderMinuteWidgetEntries(ComponentController paComponentController) { ViewWidgetSubscriptionRow lcWidgetSubscriptionRow; if (clWidgetRows != null) { lcWidgetSubscriptionRow = new ViewWidgetSubscriptionRow(null); for (int lcCount = 0; lcCount < clWidgetRows.Length; lcCount++) { lcWidgetSubscriptionRow.Row = clWidgetRows[lcCount]; if (lcWidgetSubscriptionRow.Type != ctTYPGroup) { RenderMinuteWidget(paComponentController, lcWidgetSubscriptionRow); } } } }
private void RenderWidgetRow(ComponentController paComponentController, ViewWidgetSubscriptionRow paWidgetRow) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidgetRow); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Name, paWidgetRow.WidgetName); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, paWidgetRow.RequireRole.ToLower()); paComponentController.AddElementType(ComponentController.ElementType.Row); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.AddAttribute(HtmlAttribute.Src, paWidgetRow.Icon); paComponentController.RenderBeginTag(HtmlTag.Img); paComponentController.RenderEndTag(); paComponentController.RenderBeginTag(HtmlTag.Span); paComponentController.Write(clLanguageManager.GetText(paWidgetRow.IconLabel)); paComponentController.RenderEndTag(); RenderToggleButton(paComponentController); paComponentController.RenderEndTag(); }
private void RenderWidgetEntries(ComponentController paComponentController, DataRow[] paWidgetRows) { ViewWidgetSubscriptionRow lcWidgetSubscriptionRow; String lcPreviousWidgetName; if (paWidgetRows != null) { lcWidgetSubscriptionRow = new ViewWidgetSubscriptionRow(null); lcPreviousWidgetName = String.Empty; for (int lcCount = 0; lcCount < paWidgetRows.Length; lcCount++) { lcWidgetSubscriptionRow.Row = paWidgetRows[lcCount]; if (lcWidgetSubscriptionRow.Type != ctTYPGROUP) { if ((lcWidgetSubscriptionRow.WidgetName != lcPreviousWidgetName) && (lcWidgetSubscriptionRow.Status == ctSTAActive)) { RenderWidget(paComponentController, lcWidgetSubscriptionRow); } } else { if (clSettingManager.AppGrouping.Contains(lcWidgetSubscriptionRow.Grouping.ToLower())) { RenderWidgetGroup(paComponentController, lcWidgetSubscriptionRow); } else { RenderWidgetEntries(paComponentController, GetWidgetRowList(lcWidgetSubscriptionRow.Grouping)); } } lcPreviousWidgetName = lcWidgetSubscriptionRow.WidgetName; } } }