示例#1
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);
        }
示例#2
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);
        }