| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- 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));
- }
|