public void RenderAllSubGroups(ComponentController paComponentController, MetaDataRow paMetaDataRow) { List <String> lcSubGroupList; lcSubGroupList = GetSubGroupList(); for (int lcCount = 0; lcCount < lcSubGroupList.Count; lcCount++) { RenderSubGroup(paComponentController, null, lcSubGroupList[lcCount], paMetaDataRow); } }
public void RenderSubGroup(ComponentController paComponentController, String paPrimaryClass, String paSubGroup, MetaDataRow paMetaDataRow) { DataRow[] lcDataRow; InputInfoRow lcInputInfoRow; String lcActiveValue; if ((lcDataRow = GetInputInfoListBySubGroup(paSubGroup)).Length > 0) { lcInputInfoRow = new InputInfoRow(lcDataRow[0]); if (!String.IsNullOrEmpty(lcInputInfoRow.ElementCss)) { if (!lcInputInfoRow.ElementCss.Contains(ctCSSSeparator)) { paPrimaryClass = (paPrimaryClass + " " + lcInputInfoRow.ElementCss).Trim(); } } if (IsAttributeSet(lcInputInfoRow, InputInfoAttribute.PopUpBlock)) { for (int lcCount = 0; lcCount < lcDataRow.Length; lcCount++) { lcInputInfoRow.Row = lcDataRow[lcCount]; if (!IsAttributeSet(lcInputInfoRow, InputInfoAttribute.Title)) { RenderElementComponent(paComponentController, lcInputInfoRow, String.Empty); } } } else { if (IsAttributeSet(lcInputInfoRow, InputInfoAttribute.HideBlock)) { paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Appearance, "hidden"); } paComponentController.AddElementType(ComponentController.ElementType.InputBlock); paComponentController.AddAttribute(HtmlAttribute.Class, paPrimaryClass); paComponentController.RenderBeginTag(HtmlTag.Div); for (int lcCount = 0; lcCount < lcDataRow.Length; lcCount++) { lcInputInfoRow.Row = lcDataRow[lcCount]; if (IsAttributeSet(lcInputInfoRow, InputInfoAttribute.Title)) { RenderTitle(paComponentController, lcInputInfoRow); } else { if ((paMetaDataRow != null) && (paMetaDataRow.HasPreloadedData)) { lcActiveValue = paMetaDataRow.ActiveData.GetData(lcInputInfoRow.InputName, String.Empty); } else { lcActiveValue = ApplicationFrame.GetInstance().ActiveFormInfoManager.TranslateStringExStr(lcInputInfoRow.DefaultValue); } RenderRow(paComponentController, lcInputInfoRow, lcActiveValue); } } paComponentController.RenderEndTag(); } } }