index.xsd 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.jee-soft.cn/index"
  3. targetNamespace="http://www.jee-soft.cn/index" elementFormDefault="qualified">
  4. <xs:element name="indexColumns">
  5. <xs:complexType>
  6. <xs:sequence>
  7. <xs:element name="indexColumn" type="indexColumn" minOccurs="1" maxOccurs="unbounded"></xs:element>
  8. </xs:sequence>
  9. </xs:complexType>
  10. </xs:element>
  11. <xs:complexType name="indexColumn">
  12. <xs:attribute name="name" type="xs:string" use="required">
  13. <xs:annotation>
  14. <xs:documentation>栏目名称.</xs:documentation>
  15. </xs:annotation>
  16. </xs:attribute>
  17. <xs:attribute name="alias" type="xs:string" use="required">
  18. <xs:annotation>
  19. <xs:documentation>栏目别名.</xs:documentation>
  20. </xs:annotation>
  21. </xs:attribute>
  22. <xs:attribute name="catalog" type="xs:long">
  23. <xs:annotation>
  24. <xs:documentation>栏目分类.</xs:documentation>
  25. </xs:annotation>
  26. </xs:attribute>
  27. <xs:attribute name="colType" type="colType" use="required">
  28. <xs:annotation>
  29. <xs:documentation>栏目类型.</xs:documentation>
  30. </xs:annotation>
  31. </xs:attribute>
  32. <xs:attribute name="dataMode" type="dataMode" use="required">
  33. <xs:annotation>
  34. <xs:documentation>数据加载方式.</xs:documentation>
  35. </xs:annotation>
  36. </xs:attribute>
  37. <xs:attribute name="dataFrom" type="xs:string">
  38. <xs:annotation>
  39. <xs:documentation>数据来源.</xs:documentation>
  40. </xs:annotation>
  41. </xs:attribute>
  42. <xs:attribute name="dsAlias" type="xs:string" >
  43. <xs:annotation>
  44. <xs:documentation>数据别名.</xs:documentation>
  45. </xs:annotation>
  46. </xs:attribute>
  47. <xs:attribute name="dsName" type="xs:string" >
  48. <xs:annotation>
  49. <xs:documentation>数据源名称.</xs:documentation>
  50. </xs:annotation>
  51. </xs:attribute>
  52. <xs:attribute name="colHeight" type="xs:string">
  53. <xs:annotation>
  54. <xs:documentation>栏目高度.</xs:documentation>
  55. </xs:annotation>
  56. </xs:attribute>
  57. <xs:attribute name="colUrl" type="xs:string" >
  58. <xs:annotation>
  59. <xs:documentation>栏目url.</xs:documentation>
  60. </xs:annotation>
  61. </xs:attribute>
  62. <xs:attribute name="templateHtml" type="xs:string" >
  63. <xs:annotation>
  64. <xs:documentation>栏目模版.</xs:documentation>
  65. </xs:annotation>
  66. </xs:attribute>
  67. <xs:attribute name="isPublic" type="xs:short" use="required" >
  68. <xs:annotation>
  69. <xs:documentation>是否公共栏目.</xs:documentation>
  70. </xs:annotation>
  71. </xs:attribute>
  72. <xs:attribute name="orgId" type="xs:long" >
  73. <xs:annotation>
  74. <xs:documentation>所属组织ID.</xs:documentation>
  75. </xs:annotation>
  76. </xs:attribute>
  77. <xs:attribute name="supportRefesh" type="xs:short" default="0" >
  78. <xs:annotation>
  79. <xs:documentation>是否支持刷新.</xs:documentation>
  80. </xs:annotation>
  81. </xs:attribute>
  82. <xs:attribute name="refeshTime" type="xs:int" >
  83. <xs:annotation>
  84. <xs:documentation>刷新时间.</xs:documentation>
  85. </xs:annotation>
  86. </xs:attribute>
  87. <xs:attribute name="showEffect" type="showEffect" use="required" >
  88. <xs:annotation>
  89. <xs:documentation>展示效果.</xs:documentation>
  90. </xs:annotation>
  91. </xs:attribute>
  92. <xs:attribute name="memo" type="xs:string" >
  93. <xs:annotation>
  94. <xs:documentation>描述.</xs:documentation>
  95. </xs:annotation>
  96. </xs:attribute>
  97. </xs:complexType>
  98. <!-- 栏目类型 -->
  99. <xs:simpleType name="colType">
  100. <xs:annotation>
  101. <xs:documentation>栏目类型</xs:documentation>
  102. </xs:annotation>
  103. <xs:restriction base="xs:short">
  104. <xs:enumeration value="0" ><xs:annotation><xs:documentation>一般类型栏目</xs:documentation></xs:annotation></xs:enumeration>
  105. <xs:enumeration value="1" ><xs:annotation><xs:documentation>图表类型栏目</xs:documentation></xs:annotation></xs:enumeration>
  106. <xs:enumeration value="2" ><xs:annotation><xs:documentation>日历类型栏目</xs:documentation></xs:annotation></xs:enumeration>
  107. <xs:enumeration value="3" ><xs:annotation><xs:documentation>滚动类型栏目</xs:documentation></xs:annotation></xs:enumeration>
  108. </xs:restriction>
  109. </xs:simpleType>
  110. <!-- 数据加载方式 -->
  111. <xs:simpleType name="dataMode">
  112. <xs:annotation>
  113. <xs:documentation>数据加载方式.</xs:documentation>
  114. </xs:annotation>
  115. <xs:restriction base="xs:short">
  116. <xs:enumeration value="0" ><xs:annotation><xs:documentation>服务方法</xs:documentation></xs:annotation></xs:enumeration>
  117. <xs:enumeration value="1" ><xs:annotation><xs:documentation>自定义查询</xs:documentation></xs:annotation></xs:enumeration>
  118. </xs:restriction>
  119. </xs:simpleType>
  120. <!-- 数据加载方式 -->
  121. <xs:simpleType name="showEffect">
  122. <xs:annotation>
  123. <xs:documentation>展示效果.</xs:documentation>
  124. </xs:annotation>
  125. <xs:restriction base="xs:short">
  126. <xs:enumeration value="0" ><xs:annotation><xs:documentation>默认效果</xs:documentation></xs:annotation></xs:enumeration>
  127. <xs:enumeration value="1" ><xs:annotation><xs:documentation>走马灯</xs:documentation></xs:annotation></xs:enumeration>
  128. <xs:enumeration value="2" ><xs:annotation><xs:documentation>幻灯片</xs:documentation></xs:annotation></xs:enumeration>
  129. </xs:restriction>
  130. </xs:simpleType>
  131. </xs:schema>