var tf = ["true", "false"] var ft = ["false", "true"]; var objectType = ["number", "boolean", "string", "text", "content", "time", "picture", "manage"]; var paramNames = ["objClass", "object", "retName", "process"]; var serviceTypes = ["view", "update", "delete", "change"]; var functionNames = ["search", "info", "baseInfo", "miniInfo", "add", "update", "updateBaseInfo", "save", "submit", "submitConfirm", "delete", "change", "changeBaseInfo", "changeSave", "changeSubmit", "changeSubmitConfirm", "check", "changeCheck", "changeCheckBaseInfo", "enableSubmit", "enableSubmitConfirm", "disableSubmit", "disableSubmitConfirm", "initAdd", "initSubmit", "initSubmitConfirm"]; var sqlParamType = ["char"]; var sqlScope = ["request"]; var sqlTypes=["select"]; var wdXmlSchemas = { //services services: { attrs: { business: null } }, service: { attrs: { name: null, desc: null, type: serviceTypes, authorizable: tf, "public": tf, recall: ft } }, param: { attrs: { name: paramNames, value: null } }, //objects objects: { attrs: { business: null } }, object: { attrs: { name: null, objClass: null, desc: null, children: null } }, field: { attrs: { key: tf, editable: tf, name: null, desc: null, objectId: tf, type: objectType, codebook: null, width: null, keywordNo: null, body: tf, display: null, thumbnail: null, } }, "function": { attrs: { name: functionNames, desc: null, service: null, dest: null, } }, //codebook codebooks: { attrs: { business: null } }, codebook: { attrs: {name:null} }, //sql sqls: { attrs: { business: null } }, sql: { attrs: { name: null, type: sqlTypes, } }, statement: {}, param: { attrs: { name: null, type: sqlParamType, scope: sqlScope, nullable: tf } }, where: { attr: { name: null } }, orderby: { attrs: { value: null, asc: tf } } } function getXmlSchemas(){ return JSON.parse(JSON.stringify(wdXmlSchemas)); }