Beispiel #1
0
        private void LoadHeader(Form_able form)
        {
            Dictionary <string, object> header_Items = form.list_Header_Items;
            Html_Generator htmlG = new Html_Generator();
            string         html  = "";

            foreach (KeyValuePair <string, object> header in header_Items)
            {
                html += "<div class=\"row\"><div class=\"col-lg-12\"><label id=\"variable_Label_" + header.Key + "\" class=\"col-lg-6 control-label\">" + header.Key + "</label>";
                html += "<label id = \"variable_WebControl_" + Guid.NewGuid() + "\" class=\"col-lg-6\"> " + header.Value + "</label>";
                html += "</div>";
                html += "</div>";
            }


            div_Listable_header.Controls.Add(new LiteralControl(html));
        }
Beispiel #2
0
        private void LoadFlow(Form_able abstract_Iter_able, List <object> value, List <string> index)
        {
            IQuery_able facade = abstract_Iter_able.facade.getFacade();

            current_Viewable = new CNTR_Viewable();
            List <string>             key_List    = abstract_Iter_able.list_Column_Headers;
            List_able                 list_Able   = new List_able();
            List <Abstract_Iter_able> object_List = facade.GetByIdWhere(value, index);
            string iterable_Title = abstract_Iter_able.GetType().ToString();

            list_Able.setListableState(iterable_Title, object_List);
            current_Viewable.setViewState(list_Able, iterable_Title, key_List);
            string key_String = "";
            int    j          = 0;

            foreach (string key in key_List)
            {
                key_String += "Key" + j + "= " + key + " | ";
                j++;
            }
        }
Beispiel #3
0
        private void LoadForm(Abstract_Iter_able abstract_Iter_able, List <object> value, List <string> index, Form_able form)
        {
            IQuery_able facade = abstract_Iter_able.getFacade();

            current_Viewable = new CNTR_Viewable();
            List <string> key_List = abstract_Iter_able.getListOfKeys();
            List <Guid>   aggregate_Indexes;
            List_able     list_Able = new List_able();

            if (form == null)
            {
                aggregate_Indexes = new List <Guid> {
                };
            }
            else
            {
                aggregate_Indexes = form.list_View_Items;
            }
            List <Abstract_Iter_able> object_List;

            object_List = facade.GetAll();

            string iterable_Title = abstract_Iter_able.GetType().ToString();

            list_Able.setListableState(iterable_Title, object_List.Cast <Abstract_Iter_able>().ToList());
            current_Viewable.setViewState(list_Able, iterable_Title, key_List);

            string key_String = "";
            int    j          = 0;

            foreach (string key in key_List)
            {
                key_String += "Key" + j + "= " + key + " | ";
                j++;
            }
        }