Beispiel #1
0
        protected override void OnInit(EventArgs e)
        {
            Key = Convert.ToInt32(Request["id"]);
            H5Div container = new H5Div();

            container.CssClass = "container";
            container.Attributes.Add("value", FunctionCode.ToString());
            Gcontainer = container;
            Form.Controls.Add(container);
            RenderTitle();

            H5Div work_follow_content = new H5Div();

            work_follow_content.CssClass = "work_follow_content";
            Gwork_follow_content         = work_follow_content;
            Gcontainer.Controls.Add(work_follow_content);

            RenderRequestPerson();

            RenderReasonBox();

            RenderWorkFollow();

            RenderFunction();

            ComfirmReasonBox();
        }
Beispiel #2
0
        public H5Control GetControl(H5Columns item)
        {
            H5Control c = new H5Control();

            if (item.HC_CONTROL_TYPE == "H5TextBox")
            {
                c             = new H5TextBox();
                c.CssClass    = "phone_control";
                c.target      = item.HC_NAME;
                c.placeholder = item.HC_DESC;
            }

            if (item.HC_CONTROL_TYPE == "H5DateTime")
            {
                c             = new H5DateTime();
                c.CssClass    = "phone_control";
                c.target      = item.HC_NAME;
                c.placeholder = item.HC_DESC;
            }

            if (item.HC_CONTROL_TYPE == "H5Date")
            {
                c             = new H5Date();
                c.CssClass    = "phone_control";
                c.target      = item.HC_NAME;
                c.placeholder = item.HC_DESC;
            }

            if (item.HC_CONTROL_TYPE == "H5NumberBox")
            {
                c             = new H5NumberBox();
                c.CssClass    = "phone_control";
                c.target      = item.HC_NAME;
                c.placeholder = item.HC_DESC;
            }

            if (item.HC_CONTROL_TYPE == "H5TextArea")
            {
                c             = new H5TextArea();
                c.CssClass    = "full_control";
                c.target      = item.HC_NAME;
                c.placeholder = item.HC_DESC;
            }

            if (!string.IsNullOrEmpty(item.HC_RULE))
            {
                c.rule      = item.HC_RULE;
                c.rule_desc = item.HC_URL_DESC;
            }
            c.CssClass += " IData ";

            return(c);
        }
Beispiel #3
0
        protected override void OnInit(EventArgs e)
        {
            H5Div container = new H5Div();

            container.CssClass = "container";
            container.Attributes.Add("value", FunctionCode.ToString());
            Gcontainer = container;
            Form.Controls.Add(container);

            RenderTitle();

            RenderContent();
        }
Beispiel #4
0
        public void RenderReasonBox()
        {
            H5Div item3 = new H5Div();

            item3.CssClass = "item3";
            Gitem3         = item3;
            Gwork_follow_content.Controls.Add(item3);

            H5TextArea c = new H5TextArea();

            c.CssClass    = "full_control Idata";
            c.target      = "WF_REASON";
            c.placeholder = "审批意见(100字以内)";
            item3.Controls.Add(c);
        }
Beispiel #5
0
        protected override void OnInit(EventArgs e)
        {
            H5Div container = new H5Div();

            StringBuilder str_function_code = new StringBuilder();

            FunctionCodeList.ForEach(o => str_function_code.Append("_" + o.ToString()));
            container.CssClass = "container";
            container.Attributes.Add("value", str_function_code.ToString().Substring(1));
            Gcontainer = container;
            Form.Controls.Add(container);

            RenderTitle();

            RenderTag();

            RenderContent();
        }
Beispiel #6
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);
                }
            }
        }