Exemplo n.º 1
0
        protected void RenderSelectionPanel(ComponentController paComponentController, SelectionPanelType paSelectionPanelType, String paMode, String paTitle, Dictionary <String, String> paDictionary)
        {
            SubControlSelectionPanel lcSubControlSelectionPanel;

            lcSubControlSelectionPanel = new SubControlSelectionPanel(paSelectionPanelType.ToString().ToLower(), paMode, paTitle, paDictionary);
            lcSubControlSelectionPanel.RenderChildMode(paComponentController);
        }
Exemplo n.º 2
0
        protected void RenderSelectionControl(ComponentController paComponentController, String paColumnName, Dictionary <String, String> paDictionary, SelectionPanelType paSelectionPanelType)
        {
            String lcActiveValue;
            String lcActiveData;

            GetActiveValue(paSelectionPanelType, out lcActiveValue, out lcActiveData);

            paComponentController.AddAttribute(HtmlAttribute.Value, lcActiveValue.ToUpper());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Type, paSelectionPanelType.ToString().ToLower());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ColumnName, paColumnName.ToLower());
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSSelectionControl);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_OriginalValue, lcActiveValue);
            paComponentController.AddAttribute(HtmlAttribute.ReadOnly, "readonly");
            paComponentController.AddAttribute(HtmlAttribute.Value, lcActiveData);
            paComponentController.AddAttribute(HtmlAttribute.Type, "text");
            paComponentController.RenderBeginTag(HtmlTag.Input);

            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }