private string createList(string UserType)
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder("");

            sb.Append("<table class=\"table table-border table-bordered table-hover table-bg table-sort\" id=\"tablelist\">");
            sb.Append("<thead>");
            sb.Append("<tr class=\"text-c\">");
            sb.Append("<th width='10%'>序号</th>");
            sb.Append("<th width='40%'>是否权限</th>");
            sb.Append("<th width='50%'>订单类型</th>");
            sb.Append("</tr>");
            sb.Append("</thead>");

            sb.Append("<tbody id='ItemBody'>");
            Business.Sys.BusinessUserOrderTypeRight bc = new project.Business.Sys.BusinessUserOrderTypeRight();
            foreach (Entity.Sys.EntityUserOrderTypeRights it in bc.GetUserOrderTypeRightInfo(UserType))
            {
                row++;
                sb.Append("<tr class=\"text-c\">");
                sb.Append("<td align='center'>" + row.ToString() + "</td>");
                sb.Append("<td align='center'><input type='checkbox' name='chkmenu' id='" + it.OrderType + "'" + (it.Right ? "checked='checked'" : "") + " /></td>");
                sb.Append("<td align='center'>" + it.OrderTypeName + "</td>");
                sb.Append("</td>");
                sb.Append("</tr>");
            }
            sb.Append("</tbody>");
            sb.Append("</table>");
            return(sb.ToString());
        }
        private string submitaction(JsonArrayParse jp)
        {
            JsonObjectCollection collection = new JsonObjectCollection();
            string isok    = "1";
            string errrow  = "";
            string errinfo = "";

            try
            {
                errrow = "保存出现错误!";
                obj.ExecuteNonQuery("delete from Sys_UserOrderTypeRight where UserType='" + jp.getValue("UserType") + "'");

                int    col      = -1;
                string jsonText = jp.getValue("ID");
                foreach (string str in jsonText.Split('@'))
                {
                    col++;
                    if (str == "")
                    {
                        continue;
                    }

                    Business.Sys.BusinessUserOrderTypeRight bc = new project.Business.Sys.BusinessUserOrderTypeRight();
                    bc.Entity.OrderType = str;
                    bc.Entity.UserType  = jp.getValue("UserType");
                    int row = bc.Save();
                    if (row < 1)
                    {
                        isok     = "2";
                        errinfo += errrow + ";";
                    }
                    else
                    {
                        errrow = "";
                    }
                }
            }
            catch { isok = "2"; errinfo = errrow; }

            collection.Add(new JsonStringValue("type", "submit"));
            collection.Add(new JsonStringValue("flag", isok));
            collection.Add(new JsonStringValue("errinfo", errinfo));

            return(collection.ToString());
        }