예제 #1
0
        public void RenderTag()
        {
            H5Div navgite = new H5Div();

            navgite.CssClass = "navgite";
            Gcontainer.Controls.Add(navgite);

            H5Span other = new H5Span();

            other.CssClass  = "other item active";
            other.InnerText = "我的审批";
            navgite.Controls.Add(other);

            H5Span me = new H5Span();

            me.CssClass  = "me item";
            me.InnerText = "我的发起";
            navgite.Controls.Add(me);

            H5Div line = new H5Div();

            line.CssClass = "line";
            navgite.Controls.Add(line);
        }
예제 #2
0
        public void RenderForm()
        {
            H5Div form = new H5Div();

            form.CssClass = "form";
            Gcontainer.Controls.Add(form);

            List <H5Columns> list = H5Column;

            foreach (H5Columns o in list)
            {
                if (o.HC_CONTROL_TYPE == "H5TextArea")
                {
                    H5Div item3 = new H5Div();
                    item3.CssClass = "item3";
                    form.Controls.Add(item3);

                    H5Control c = GetControl(o);
                    item3.Controls.Add(c);
                }
                else
                {
                    H5Div item = new H5Div();
                    item.CssClass = "item";
                    form.Controls.Add(item);

                    H5Span item_head = new H5Span();
                    item_head.CssClass  = "item_head";
                    item_head.InnerHtml = o.HC_DESC;
                    item.Controls.Add(item_head);

                    H5Control c = GetControl(o);
                    item.Controls.Add(c);
                }
            }
        }