private string SaveJsonObject(NameValueCollection nvc)
 {
     //
     EditorFactory efac = new EditorFactory();
     CiType citype = Utility.EnumConvertor.ConvertFString<CiType>(nvc["citype"]);
     String result = "";
     switch (citype)
     {
         case CiType.MapXML:
             efac.SaveJsonMap(nvc["guid"], nvc["content"]);
             result = "1";
             break;
         case CiType.LayerInclude:
             result = efac.GetMapJsonLayers(nvc["guid"]);
             break;
         case CiType.LayerXML:
             efac.SaveJsonLayer(nvc["guid"], nvc["content"]);
             break;
         case CiType.SymbolXML:
             result = efac.GetJsonSymbol(nvc["guid"]);
             break;
         default:
             ExtjsTree tree = new ExtjsTree() { Text = "ts" };
             result = tree.toJson();
             //result = "{text:'sdfd'}";
             break;
     }
     return result;
 }
        private string SaveForm(NameValueCollection nvc)
        {
            //
            String result = "";
            switch (nvc["cmd"])
            {
                case "saveForm":
                    result = this.SaveForm(nvc);
                    break;

                default:
                    ExtjsTree tree = new ExtjsTree() { Text = "ts" };
                    result = tree.toJson();
                    //result = "{text:'sdfd'}";
                    break;
            }
            return result;
        }