public string Query()
        {
            string str   = base.Request.Form["Title"];
            string str2  = base.Request.Form["Address"];
            string str3  = base.Request.Form["typeid"];
            string text  = base.Request.Form["sidx"];
            string text2 = base.Request.Form["sord"];

            RoadFlow.Platform.Dictionary dictionary = new RoadFlow.Platform.Dictionary();
            RoadFlow.Platform.AppLibrary appLibrary = new RoadFlow.Platform.AppLibrary();
            string type       = str3.IsGuid() ? appLibrary.GetAllChildsIDString(str3.ToGuid()) : "";
            int    pageSize   = Tools.GetPageSize();
            int    pageNumber = Tools.GetPageNumber();
            string order      = (text.IsNullOrEmpty() ? "Title" : text) + " " + (text2.IsNullOrEmpty() ? "asc" : text2);
            long   count;
            List <RoadFlow.Data.Model.AppLibrary> pagerData = appLibrary.GetPagerData(out count, pageSize, pageNumber, str.Trim1(), type, str2.Trim1(), order);
            JsonData jsonData = new JsonData();

            foreach (RoadFlow.Data.Model.AppLibrary item in pagerData)
            {
                string empty = string.Empty;
                empty = ((!item.Ico.IsFontIco()) ? ("<img src=\"" + item.Ico.Trim1() + "\" style=\"vertical-align:middle;\" />") : ("<i class=\"fa " + item.Ico.Trim1() + "\" style=\"font-size:14px;vertical-align:middle;" + (item.Color.IsNullOrEmpty() ? "" : ("color:" + item.Color + ";")) + "\"></i>"));
                JsonData jsonData2 = new JsonData();
                jsonData2["id"]        = item.ID.ToString();
                jsonData2["Title"]     = empty + "<span style=\"vertical-align:middle;margin-left:4px;\">" + item.Title + "</span>";
                jsonData2["Address"]   = item.Address;
                jsonData2["TypeTitle"] = dictionary.GetTitle(item.Type);
                jsonData2["Opation"]   = "<a class=\"editlink\" href=\"javascript:void(0);\" onclick=\"edit('" + item.ID.ToString() + "');return false;\" style=\"margin-right:6px;\">编辑</a><a class=\"editlink\" href=\"javascript:void(0);\" onclick=\"editsubpage('" + item.ID.ToString() + "');return false;\">子页面</a>";
                jsonData.Add(jsonData2);
            }
            return("{\"userdata\":{\"total\":" + count + ",\"pagesize\":" + pageSize + ",\"pagenumber\":" + pageNumber + "},\"rows\":" + jsonData.ToJson() + "}");
        }
Esempio n. 2
0
        public string Tree1()
        {
            string msg;

            if (!Tools.CheckLogin(out msg) && !RoadFlow.Platform.WeiXin.Organize.CheckLogin())
            {
                return("");
            }
            RoadFlow.Platform.Dictionary dictionary = new RoadFlow.Platform.Dictionary();
            string text  = base.Request.QueryString["root"];
            bool   flag2 = "1" == base.Request.QueryString["ischild"];
            Guid   test  = Guid.Empty;

            if (!text.IsNullOrEmpty() && !text.IsGuid(out test))
            {
                RoadFlow.Data.Model.Dictionary byCode = dictionary.GetByCode(text);
                if (byCode != null)
                {
                    test = byCode.ID;
                }
            }
            RoadFlow.Data.Model.Dictionary dictionary2 = (test != Guid.Empty) ? dictionary.Get(test) : dictionary.GetRoot();
            bool          flag          = dictionary.HasChilds(dictionary2.ID);
            StringBuilder stringBuilder = new StringBuilder("[", 1000);

            stringBuilder.Append("{");
            stringBuilder.AppendFormat("\"id\":\"{0}\",", dictionary2.ID);
            stringBuilder.AppendFormat("\"parentID\":\"{0}\",", dictionary2.ParentID);
            stringBuilder.AppendFormat("\"title\":\"{0}\",", dictionary2.Title);
            stringBuilder.AppendFormat("\"type\":\"{0}\",", flag ? "0" : "2");
            stringBuilder.AppendFormat("\"ico\":\"{0}\",", base.Url.Content("~/images/ico/role.gif"));
            stringBuilder.AppendFormat("\"hasChilds\":\"{0}\",", flag ? "1" : "0");
            stringBuilder.Append("\"childs\":[");
            List <RoadFlow.Data.Model.Dictionary> childs = dictionary.GetChilds(dictionary2.ID);
            int num   = 0;
            int count = childs.Count;

            foreach (RoadFlow.Data.Model.Dictionary item in childs)
            {
                stringBuilder.Append("{");
                stringBuilder.AppendFormat("\"id\":\"{0}\",", item.ID);
                stringBuilder.AppendFormat("\"parentID\":\"{0}\",", item.ParentID);
                stringBuilder.AppendFormat("\"title\":\"{0}\",", item.Title);
                stringBuilder.AppendFormat("\"ico\":\"{0}\",", "");
                stringBuilder.AppendFormat("\"hasChilds\":\"{0}\",", dictionary.HasChilds(item.ID) ? "1" : "0");
                stringBuilder.Append("\"childs\":[");
                stringBuilder.Append("]");
                stringBuilder.Append("}");
                if (num++ < count - 1)
                {
                    stringBuilder.Append(",");
                }
            }
            stringBuilder.Append("]");
            stringBuilder.Append("}");
            stringBuilder.Append("]");
            return(stringBuilder.ToString());
        }
        public string GetNote()
        {
            string str    = base.Request.QueryString["id"];
            string result = "";
            Guid   test;

            if (str.IsGuid(out test))
            {
                RoadFlow.Data.Model.Dictionary dictionary = new RoadFlow.Platform.Dictionary().Get(test, true);
                if (dictionary != null)
                {
                    result = dictionary.Note;
                }
            }
            return(result);
        }
Esempio n. 4
0
        public string TreeRefresh()
        {
            string msg;

            if (!Tools.CheckLogin(out msg) && !RoadFlow.Platform.WeiXin.Organize.CheckLogin())
            {
                return("");
            }
            Guid test;

            if (!base.Request.QueryString["refreshid"].IsGuid(out test))
            {
                base.Response.Write("[]");
            }
            StringBuilder stringBuilder = new StringBuilder("[", 1000);

            RoadFlow.Platform.Dictionary dictionary = new RoadFlow.Platform.Dictionary();
            IOrderedEnumerable <RoadFlow.Data.Model.Dictionary> orderedEnumerable = from p in dictionary.GetChilds(test)
                                                                                    orderby p.Sort
                                                                                    select p;
            int num  = 0;
            int num2 = orderedEnumerable.Count();

            foreach (RoadFlow.Data.Model.Dictionary item in orderedEnumerable)
            {
                bool flag = dictionary.HasChilds(item.ID);
                stringBuilder.Append("{");
                stringBuilder.AppendFormat("\"id\":\"{0}\",", item.ID);
                stringBuilder.AppendFormat("\"parentID\":\"{0}\",", item.ParentID);
                stringBuilder.AppendFormat("\"title\":\"{0}\",", item.Title);
                stringBuilder.AppendFormat("\"type\":\"{0}\",", flag ? "1" : "2");
                stringBuilder.AppendFormat("\"ico\":\"{0}\",", "");
                stringBuilder.AppendFormat("\"hasChilds\":\"{0}\",", flag ? "1" : "0");
                stringBuilder.Append("\"childs\":[");
                stringBuilder.Append("]");
                stringBuilder.Append("}");
                if (num++ < num2 - 1)
                {
                    stringBuilder.Append(",");
                }
            }
            stringBuilder.Append("]");
            return(stringBuilder.ToString());
        }
Esempio n. 5
0
        public string Query()
        {
            new List <RoadFlow.Data.Model.WorkFlow>();
            RoadFlow.Platform.Users    users    = new RoadFlow.Platform.Users();
            RoadFlow.Platform.WorkFlow workFlow = new RoadFlow.Platform.WorkFlow();
            string name   = base.Request.Form["flow_name"];
            string str    = base.Request.Form["typeid"];
            string text   = base.Request.Form["sidx"];
            string text2  = base.Request.Form["sord"];
            bool   flag   = "1" == base.Request.Form["openlist"];
            string typeid = "";

            if (str.IsGuid())
            {
                typeid = new RoadFlow.Platform.Dictionary().GetAllChildsIDString(str.ToGuid());
            }
            int    num        = flag ? 10 : RoadFlow.Utility.Tools.GetPageSize();
            int    pageNumber = RoadFlow.Utility.Tools.GetPageNumber();
            string order      = (text.IsNullOrEmpty() ? "CreateDate" : text) + " " + (text2.IsNullOrEmpty() ? "asc" : text2);
            long   count;
            List <RoadFlow.Data.Model.WorkFlow> pagerData = workFlow.GetPagerData(out count, num, pageNumber, RoadFlow.Platform.Users.CurrentUserID.ToString(), typeid, name, order);
            JsonData jsonData = new JsonData();

            foreach (RoadFlow.Data.Model.WorkFlow item in pagerData)
            {
                JsonData jsonData2 = new JsonData();
                jsonData2["id"]           = item.ID.ToString();
                jsonData2["Name"]         = item.Name;
                jsonData2["CreateDate"]   = item.CreateDate.ToDateTimeString();
                jsonData2["CreateUserID"] = users.GetName(item.CreateUserID);
                jsonData2["Status"]       = workFlow.GetStatusTitle(item.Status);
                if (flag)
                {
                    jsonData2["Edit"] = "<a href=\"javascript:void(0);\" onclick=\"openflow('" + item.ID + "');return false;\"><img src=\"" + base.Url.Content("~/Images/ico/topic_edit.gif") + "\" alt=\"\" style=\"vertical-align:middle; border:0;\" /><span style=\"vertical-align:middle; margin-left:3px;\">编辑</span></a>";
                }
                else
                {
                    jsonData2["Edit"] = "<a class=\"editlink\" href=\"javascript:void(0);\" onclick=\"openflow('" + item.ID + "','" + item.Name + "');return false;\"><span style=\"vertical-align:middle;\">编辑</span></a><a class=\"deletelink\" href=\"javascript:void(0);\" style=\"margin-left:5px\" onclick=\"delflow('" + item.ID + "'); return false;\"><span style=\"vertical-align:middle;\">删除</span></a><a href=\"javascript:void(0);\" style=\"margin-left:5px\" onclick=\"ExportFlow('" + item.ID + "'); return false;\"><span style=\"vertical-align:middle; background:url(../Images/ico/arrow_medium_right.png) no-repeat;padding-left:18px;\">导出</span></a>";
                }
                jsonData.Add(jsonData2);
            }
            return("{\"userdata\":{\"total\":" + count + ",\"pagesize\":" + num + ",\"pagenumber\":" + pageNumber + "},\"rows\":" + jsonData.ToJson() + "}");
        }
Esempio n. 6
0
        public ActionResult Body(FormCollection collection)
        {
            RoadFlow.Platform.Dictionary   dictionary  = new RoadFlow.Platform.Dictionary();
            RoadFlow.Data.Model.Dictionary dictionary2 = null;
            string str = base.Request.QueryString["id"];

            if (str.IsGuid())
            {
                dictionary2 = dictionary.Get(str.ToGuid());
            }
            if (dictionary2 == null)
            {
                dictionary2 = dictionary.GetRoot();
            }
            if (collection != null)
            {
                string text = (dictionary2.ParentID == Guid.Empty) ? dictionary2.ID.ToString() : dictionary2.ParentID.ToString();
                if (!base.Request.Form["Delete"].IsNullOrEmpty())
                {
                    int num = dictionary.DeleteAndAllChilds(dictionary2.ID);
                    dictionary.RefreshCache();
                    RoadFlow.Platform.Log.Add("删除了数据字典及其下级共" + num.ToString() + "项", dictionary2.Serialize(), RoadFlow.Platform.Log.Types.数据字典);
                    base.ViewBag.Script = "alert('删除成功!');parent.frames[0].reLoad('" + text + "');window.location='Body?id=" + dictionary2.ParentID.ToString() + "&appid=" + base.Request.QueryString["appid"] + "';";
                    return(View(dictionary2));
                }
                string text2  = base.Request.Form["Title"];
                string text3  = base.Request.Form["Code"];
                string text4  = base.Request.Form["Values"];
                string text5  = base.Request.Form["Note"];
                string text6  = base.Request.Form["Other"];
                string oldXML = dictionary2.Serialize();
                dictionary2.Code  = (text3.IsNullOrEmpty() ? null : text3.Trim());
                dictionary2.Note  = (text5.IsNullOrEmpty() ? null : text5.Trim());
                dictionary2.Other = (text6.IsNullOrEmpty() ? null : text6.Trim());
                dictionary2.Title = text2.Trim();
                dictionary2.Value = (text4.IsNullOrEmpty() ? null : text4.Trim());
                dictionary.Update(dictionary2);
                dictionary.RefreshCache();
                RoadFlow.Platform.Log.Add("修改了数据字典项", "", RoadFlow.Platform.Log.Types.数据字典, oldXML, dictionary2.Serialize());
                base.ViewBag.Script = "alert('保存成功!');parent.frames[0].reLoad('" + text + "');";
            }
            return(View(dictionary2));
        }
        public string Query()
        {
            new List <RoadFlow.Data.Model.WorkFlowForm>();
            RoadFlow.Platform.WorkFlowForm workFlowForm = new RoadFlow.Platform.WorkFlowForm();
            string text   = base.Request.Form["form_name"];
            string text2  = base.Request.Form["typeid"];
            string text3  = base.Request.Form["sidx"];
            string text4  = base.Request.Form["sord"];
            bool   flag   = "1" == base.Request.Form["openlist"];
            string typeid = "";

            if (text2.IsGuid())
            {
                typeid = new RoadFlow.Platform.Dictionary().GetAllChildsIDString(text2.ToGuid());
            }
            int    num        = flag ? 10 : RoadFlow.Utility.Tools.GetPageSize();
            int    pageNumber = RoadFlow.Utility.Tools.GetPageNumber();
            string order      = (text3.IsNullOrEmpty() ? "WriteTime" : text3) + " " + (text4.IsNullOrEmpty() ? "asc" : text4);
            string text5      = "&appid=" + base.Request.QueryString["appid"] + "&typeid=" + text2 + "&name=" + text.UrlEncode();
            long   count;
            List <RoadFlow.Data.Model.WorkFlowForm> pagerData = workFlowForm.GetPagerData(out count, num, pageNumber, "", typeid, text, order);
            JsonData jsonData = new JsonData();

            foreach (RoadFlow.Data.Model.WorkFlowForm item in pagerData)
            {
                JsonData jsonData2 = new JsonData();
                jsonData2["id"]             = item.ID.ToString();
                jsonData2["Name"]           = item.Name;
                jsonData2["CreateUserName"] = item.CreateUserName;
                jsonData2["CreateTime"]     = item.CreateTime.ToDateTimeString();
                jsonData2["LastModifyTime"] = item.LastModifyTime.ToDateTimeString();
                if (flag)
                {
                    jsonData2["Edit"] = string.Format("<a href=\"javascript:void(0);\" onclick=\"openform('{0}');return false;\"><img src=\"{1}/Images/ico/topic_edit.gif\" alt=\"\" style=\"vertical-align:middle; border:0;\" /><span style=\"vertical-align:middle;margin-left:2px;\">编辑</span></a><a href=\"javascript:void(0);\" onclick=\"delform('{0}');return false;\"><img src=\"{1}/Images/ico/topic_del.gif\" alt=\"\" style=\"vertical-align:middle; border:0; margin-left:5px;\" /><span style=\"vertical-align:middle;margin-left:2px;\">删除</span></a>", item.ID.ToString(), WebMvc.Common.Tools.BaseUrl);
                }
                else
                {
                    jsonData2["Edit"] = "<a class=\"editlink\" href=\"javascript:void(0);\" onclick=\"openform('" + item.ID.ToString() + "','" + item.Name + "');return false;\"><span style=\"vertical-align:middle;\">编辑</span></a><a class=\"deletelink\" href=\"javascript:void(0);\" style=\"margin-left:5px;\" onclick=\"delform('" + item.ID.ToString() + "'); return false;\"><span style=\"vertical-align:middle;\">删除</span></a><a href=\"javascript:void(0);\" style=\"margin-left:5px;\" onclick=\"ExportForm('" + item.ID.ToString() + "'); return false;\"><span style=\"vertical-align:middle; background:url(../Images/ico/arrow_medium_right.png) no-repeat;padding-left:18px;\">导出</span></a>";
                }
                jsonData.Add(jsonData2);
            }
            return("{\"userdata\":{\"total\":" + count + ",\"pagesize\":" + num + ",\"pagenumber\":" + pageNumber + "},\"rows\":" + jsonData.ToJson() + "}");
        }
        public string GetNames()
        {
            string obj = base.Request.QueryString["values"] ?? "";

            RoadFlow.Platform.Dictionary dictionary = new RoadFlow.Platform.Dictionary();
            StringBuilder stringBuilder             = new StringBuilder();

            string[] array = obj.Split(',');
            foreach (string str in array)
            {
                RoadFlow.Data.Model.Dictionary dictionary2 = dictionary.Get(str.ToGuid(), true);
                if (dictionary2 != null)
                {
                    stringBuilder.Append(dictionary2.Title);
                    stringBuilder.Append(',');
                }
            }
            return(stringBuilder.ToString().TrimEnd(','));
        }
Esempio n. 9
0
        public ActionResult Sort(FormCollection collection)
        {
            RoadFlow.Platform.Dictionary dictionary = new RoadFlow.Platform.Dictionary();
            string text  = base.Request.QueryString["id"];
            string text2 = "";
            List <RoadFlow.Data.Model.Dictionary> model = new List <RoadFlow.Data.Model.Dictionary>();
            Guid test;

            if (text.IsGuid(out test))
            {
                RoadFlow.Data.Model.Dictionary dictionary2 = dictionary.Get(test);
                if (dictionary2 != null)
                {
                    model = dictionary.GetChilds(dictionary2.ParentID);
                    text2 = dictionary2.ParentID.ToString();
                }
            }
            if (collection != null)
            {
                string text3 = base.Request.Form["sort"];
                if (text3.IsNullOrEmpty())
                {
                    return(View(model));
                }
                string[] array  = text3.Split(',');
                int      num    = 1;
                string[] array2 = array;
                for (int i = 0; i < array2.Length; i++)
                {
                    Guid test2;
                    if (array2[i].IsGuid(out test2))
                    {
                        dictionary.UpdateSort(test2, num++);
                    }
                }
                dictionary.RefreshCache();
                RoadFlow.Platform.Log.Add("保存了数据字典排序", "保存了ID为:" + text + "的同级排序", RoadFlow.Platform.Log.Types.数据字典);
                base.ViewBag.Script = "parent.frames[0].reLoad('" + text2 + "');";
                model = dictionary.GetChilds(text2.ToGuid());
            }
            return(View(model));
        }
Esempio n. 10
0
        public ActionResult add1(FormCollection collection)
        {
            RoadFlow.Data.Model.Dictionary dictionary  = new RoadFlow.Data.Model.Dictionary();
            RoadFlow.Platform.Dictionary   dictionary2 = new RoadFlow.Platform.Dictionary();
            string text = base.Request.QueryString["id"];

            if (!text.IsGuid())
            {
                RoadFlow.Data.Model.Dictionary root = dictionary2.GetRoot();
                text = ((root != null) ? root.ID.ToString() : "");
            }
            if (!text.IsGuid())
            {
                throw new Exception("未找到父级");
            }
            if (collection != null)
            {
                string text2 = base.Request.Form["Title"];
                string text3 = base.Request.Form["Code"];
                string text4 = base.Request.Form["Values"];
                string text5 = base.Request.Form["Note"];
                string text6 = base.Request.Form["Other"];
                dictionary.ID       = Guid.NewGuid();
                dictionary.Code     = (text3.IsNullOrEmpty() ? null : text3.Trim());
                dictionary.Note     = (text5.IsNullOrEmpty() ? null : text5.Trim());
                dictionary.Other    = (text6.IsNullOrEmpty() ? null : text6.Trim());
                dictionary.ParentID = text.ToGuid();
                dictionary.Sort     = dictionary2.GetMaxSort(text.ToGuid());
                dictionary.Title    = text2.Trim();
                dictionary.Value    = (text4.IsNullOrEmpty() ? null : text4.Trim());
                dictionary2.Add(dictionary);
                dictionary2.RefreshCache();
                RoadFlow.Platform.Log.Add("添加了数据字典项", dictionary.Serialize(), RoadFlow.Platform.Log.Types.数据字典);
                base.ViewBag.Script = "alert('添加成功!');parent.frames[0].reLoad('" + text + "');";
            }
            return(View(dictionary));
        }
Esempio n. 11
0
        public ActionResult Index()
        {
            RoadFlow.Platform.Dictionary dictionary = new RoadFlow.Platform.Dictionary();
            string    obj       = base.Request.QueryString["values"] ?? "";
            string    text7     = base.Request.QueryString["rootid"];
            string    text      = base.Request.QueryString["datasource"];
            string    str       = base.Request.QueryString["sql"];
            DataTable dataTable = new DataTable();

            if ("1" == text)
            {
                string str2 = base.Request.QueryString["dbconn"];
                RoadFlow.Platform.DBConnection   dBConnection = new RoadFlow.Platform.DBConnection();
                RoadFlow.Data.Model.DBConnection dbconn       = dBConnection.Get(str2.ToGuid());
                dataTable = dBConnection.GetDataTable(dbconn, str.UrlDecode().FilterWildcard().ReplaceSelectSql());
            }
            StringBuilder stringBuilder = new StringBuilder();

            string[] array = obj.Split(',');
            foreach (string text2 in array)
            {
                if (!text2.IsNullOrEmpty())
                {
                    if (!(text == "0"))
                    {
                        if (text == "1")
                        {
                            string value = string.Empty;
                            foreach (DataRow row in dataTable.Rows)
                            {
                                if (text2 == row[0].ToString())
                                {
                                    value = ((dataTable.Columns.Count > 1) ? row[1].ToString() : text2);
                                    break;
                                }
                            }
                            stringBuilder.AppendFormat("<div onclick=\"currentDel=this;showinfo('{0}');\" class=\"selectorDiv\" ondblclick=\"currentDel=this;del();\" value=\"{0}\">", text2);
                            stringBuilder.Append(value);
                            stringBuilder.Append("</div>");
                            continue;
                        }
                        if (text == "2")
                        {
                            string text3 = base.Request.QueryString["url2"];
                            if (!text3.IsNullOrEmpty())
                            {
                                text3 = ((text3.IndexOf('?') >= 0) ? (text3 + "&values=" + text2) : (text3 + "?values=" + text2));
                                StringBuilder stringBuilder2 = new StringBuilder();
                                try
                                {
                                    TextWriter writer = new StringWriter(stringBuilder2);
                                    base.Server.Execute(text3, writer);
                                }
                                catch
                                {
                                }
                                stringBuilder.AppendFormat("<div onclick=\"currentDel=this;showinfo('{0}');\" class=\"selectorDiv\" ondblclick=\"currentDel=this;del();\" value=\"{0}\">", text2);
                                stringBuilder.Append(stringBuilder2.ToString());
                                stringBuilder.Append("</div>");
                            }
                            continue;
                        }
                        if (text == "3")
                        {
                            string str3  = base.Request.QueryString["dbconn"];
                            string text4 = base.Request.QueryString["dbtable"];
                            string text5 = base.Request.QueryString["valuefield"];
                            string text6 = base.Request.QueryString["titlefield"];
                            string text8 = base.Request.QueryString["parentfield"];
                            string str4  = base.Request.QueryString["where1"];
                            RoadFlow.Platform.DBConnection   dBConnection2 = new RoadFlow.Platform.DBConnection();
                            RoadFlow.Data.Model.DBConnection dbconn2       = dBConnection2.Get(str3.ToGuid());
                            string    str5       = "select " + text6 + " from " + text4 + " where " + text5 + "='" + text2 + "'";
                            DataTable dataTable2 = dBConnection2.GetDataTable(dbconn2, str5.ReplaceSelectSql());
                            string    value2     = string.Empty;
                            if (dataTable2.Rows.Count > 0)
                            {
                                value2 = dataTable2.Rows[0][0].ToString();
                            }
                            stringBuilder.AppendFormat("<div onclick=\"currentDel=this;showinfo('{0}');\" class=\"selectorDiv\" ondblclick=\"currentDel=this;del();\" value=\"{0}\">", text2);
                            stringBuilder.Append(value2);
                            stringBuilder.Append("</div>");
                            ViewBag.where = str4.UrlEncode();
                            continue;
                        }
                    }
                    Guid test;
                    if (text2.IsGuid(out test))
                    {
                        stringBuilder.AppendFormat("<div onclick=\"currentDel=this;showinfo('{0}');\" class=\"selectorDiv\" ondblclick=\"currentDel=this;del();\" value=\"{0}\">", text2);
                        stringBuilder.Append(dictionary.GetTitle(test));
                        stringBuilder.Append("</div>");
                    }
                }
            }
            base.ViewBag.defaultValuesString = stringBuilder.ToString().Trim1();
            return(View());
        }