Exemple #1
0
        public void RenderWorkFollow()
        {
            H5Div work_follow = new H5Div();

            work_follow.CssClass = "work_follow";
            Gwork_follow_content.Controls.Add(work_follow);

            DataTable dt = get_work_follow_data();

            foreach (DataRow dr in dt.Rows)
            {
                work_follow_item c = new work_follow_item();
                c.name        = dr["WF_TO_USER_NAME"].ToString();
                c.HeadImage   = dr["WF_TO_USER_IMAGE"].ToString();
                c.time        = dr["WF_APPROVE_DATE"].ToString();
                c.Reason      = dr["WF_REASON"].ToString();
                c.StatusText  = dr["WF_STATUS_TEXT"].ToString();
                c.StatusClass = dr["WF_STATUS_CLASS"].ToString();
                c.Status      = dr["WF_STATUS"].ToString();
                work_follow.Controls.Add(c);
            }

            H5Div work_follow_empty = new H5Div();

            work_follow_empty.CssClass = "work_follow_empty";
            work_follow.Controls.Add(work_follow_empty);
        }
Exemple #2
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();
        }
Exemple #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();
        }
Exemple #4
0
        public void RenderRequestPerson()
        {
            DataTable dt = get_form_data();

            if (dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];

                request_person obj = new request_person();
                obj.HeadImage   = GData.get_user_image(dr["user_id"].ToString());
                obj.Name        = GData.get_user_name(dr["user_id"].ToString());
                obj.StatusClass = GData.get_status_class(dr["status"].ToString());
                obj.StatusText  = GData.get_status_name(dr["status"].ToString());
                Gwork_follow_content.Controls.Add(obj);


                H5Div detail_message = new H5Div();
                detail_message.CssClass = "detail_message";
                Gwork_follow_content.Controls.Add(detail_message);

                List <H5Columns> list_column = H5Column;
                foreach (H5Columns item in list_column)
                {
                    detail_message_item c = new detail_message_item();
                    c.Key = item.HC_DESC;
                    if (item.HC_CONTROL_TYPE == "H5Date")
                    {
                        if (!string.IsNullOrEmpty(dr[item.HC_NAME].ToString()))
                        {
                            c.Value = Convert.ToDateTime(dr[item.HC_NAME].ToString()).ToString("yyyy-MM-dd");
                        }
                    }

                    if (item.HC_CONTROL_TYPE == "H5DateTime")
                    {
                        if (!string.IsNullOrEmpty(dr[item.HC_NAME].ToString()))
                        {
                            c.Value = Convert.ToDateTime(dr[item.HC_NAME].ToString()).ToString("yyyy-MM-dd HH:mm");
                        }
                    }

                    if (string.IsNullOrEmpty(c.Value))
                    {
                        c.Value = dr[item.HC_NAME].ToString();
                    }

                    detail_message.Controls.Add(c);
                }
            }
        }
Exemple #5
0
        public void RenderContent()
        {
            H5Div content = new H5Div();

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



            H5Div content_scroll = new H5Div();

            content_scroll.CssClass = "content_scroll";
            content.Controls.Add(content_scroll);
        }
Exemple #6
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);
        }
Exemple #7
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();
        }
Exemple #8
0
        public void RenderContent()
        {
            H5Div content = new H5Div();

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

            H5Div content_scroll_other = new H5Div();

            content_scroll_other.CssClass = "content_scroll other";
            content_scroll_other.Attributes.Add("type", "other");
            content.Controls.Add(content_scroll_other);

            H5Div content_scroll_me = new H5Div();

            content_scroll_me.CssClass = "content_scroll me";
            content_scroll_me.Attributes.Add("type", "me");
            content.Controls.Add(content_scroll_me);
        }
Exemple #9
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);
        }
Exemple #10
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);
                }
            }
        }