Ejemplo n.º 1
0
        private void RenderCustomerAddressPanel(ComponentController paComponentController, OrderInfoRow paOrderInfoRow)
        {
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCustomerInfoPanel);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSBriefInfoDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSNameDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(paOrderInfoRow.Name);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSContactNoDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(paOrderInfoRow.ContactNo);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSShortAddressDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(UILogic.CompileShortAddress(paOrderInfoRow.Row));
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSButtonDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDShowDetail);
            paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICODownChevron));
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDHideDetail);
            paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOUpChevron));
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCompleteInfoDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.RenderBeginTag(HtmlTag.Span);
            paComponentController.Write(UILogic.CompileAddress(paOrderInfoRow.Row));
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
Ejemplo n.º 2
0
        private void RenderInfoPanel(ComponentController paComponentController)
        {
            String lcBusinessName;
            String lcAddress;
            String lcContactNo;
            String lcOperatingHour;

            if (clSubscriberRow != null)
            {
                lcBusinessName  = clSubscriberRow.BusinessName;
                lcAddress       = UILogic.CompileAddress(clSubscriberRow.Row);
                lcContactNo     = clSubscriberRow.ContactNo;
                lcOperatingHour = clSubscriberRow.OperatingHour;
            }
            else
            {
                lcBusinessName  = String.Empty;
                lcAddress       = String.Empty;
                lcContactNo     = String.Empty;
                lcOperatingHour = String.Empty;
            }

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoPanel);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoIcon);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.info_sign));
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoText);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(lcBusinessName);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoIcon);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.envelope));
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoText);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(lcAddress);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoIcon);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.phone));
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoText);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(lcContactNo);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoIcon);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(ComponentController.UnicodeStr((int)Fontawesome.time));
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoText);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(lcOperatingHour);
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }