ExcelSchema.xsd 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="ExcelSchema" targetNamespace="http://ttnic.org/ExcelSchema.xsd" elementFormDefault="qualified" xmlns="http://ttnic.org/ExcelSchema.xsd" xmlns:mstns="http://ttnic.org/ExcelSchema.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3. <xs:element name="ReportTemplete">
  4. <xs:complexType>
  5. <xs:sequence>
  6. <xs:element name="ExtendableSection" type="ExtendableSection" maxOccurs="unbounded" minOccurs="0" />
  7. <xs:element name="FixedSection" type="FixedSection" minOccurs="0" maxOccurs="unbounded" />
  8. </xs:sequence>
  9. <xs:attribute name="TempleteFile" type="xs:string" use="required" />
  10. </xs:complexType>
  11. </xs:element>
  12. <xs:complexType name="FixedSection">
  13. <xs:sequence>
  14. <xs:element name="Cell" type="Cell" minOccurs="1" maxOccurs="unbounded" />
  15. <xs:element name="UnitCell" type="UnitCell" maxOccurs="unbounded" minOccurs="0" />
  16. </xs:sequence>
  17. <xs:attribute name="Name" type="xs:string" use="required" />
  18. <xs:attribute name="Describe" type="xs:string" use="optional" />
  19. <xs:attribute name="SheetName" type="xs:string" use="required" />
  20. <xs:attribute name="NullString" type="xs:string" default="0" use="optional" />
  21. <xs:attribute name="Rotate" type="xs:boolean" default="false" use="optional" />
  22. <xs:attribute name="ReplateEndPostion" type="xs:string" use="optional" />
  23. <xs:attribute name="ReplateStartPostion" type="xs:string" use="optional" />
  24. </xs:complexType>
  25. <xs:complexType name="Cell">
  26. <xs:sequence>
  27. </xs:sequence>
  28. <xs:attribute name="Position" type="xs:string" use="required" />
  29. <xs:attribute name="DataName" type="xs:string" use="required" />
  30. <xs:attribute name="Describe" type="xs:string" use="optional" />
  31. <xs:attribute name="ValidationEmpty" type="xs:boolean" default="false" use="optional" />
  32. <xs:attribute name="ValidationExpression" type="xs:string" use="optional" />
  33. </xs:complexType>
  34. <xs:complexType name="UnitCell">
  35. <xs:sequence>
  36. <xs:element name="FontInfo" type="FontInfo" maxOccurs="1" minOccurs="0" />
  37. <xs:element name="ImageInfo" type="ImageInfo" maxOccurs="1" minOccurs="0" />
  38. <xs:element name="BorderInfo" type="BorderInfo" maxOccurs="unbounded" minOccurs="0" />
  39. </xs:sequence>
  40. <xs:attribute name="StartPoint" type="xs:string" use="required" />
  41. <xs:attribute name="EndPoint" type="xs:string" use="required" />
  42. <xs:attribute name="Text" type="xs:string" default=" " />
  43. <xs:attribute name="VAlign" type="VAlign" default="xlVAlignCenter" />
  44. <xs:attribute name="HAlign" type="HAlign" default="xlHAlignCenter" />
  45. <xs:attribute name="BackColor" type="Color" default="None" />
  46. <xs:attribute name="Describe" type="xs:string" />
  47. <xs:attribute name="IsImage" type="xs:boolean" default="false" />
  48. </xs:complexType>
  49. <xs:complexType name="ExtendableSection">
  50. <xs:sequence>
  51. <xs:element name="RowDefine" type="RowDefine" maxOccurs="unbounded" minOccurs="1" />
  52. </xs:sequence>
  53. <xs:attribute name="Name" type="xs:string" use="required" />
  54. <xs:attribute name="Descirbe" type="xs:string" use="optional" />
  55. <xs:attribute name="SheetName" type="xs:string" use="required" />
  56. <xs:attribute name="NullString" type="xs:string" default="0" use="optional" />
  57. <xs:attribute name="Rotate" type="xs:boolean" default="true" use="optional" />
  58. <xs:attribute name="Position" type="xs:string" use="optional" />
  59. <xs:attribute name="DownloadMaxCount" type="xs:string" default="" use="optional" />
  60. <xs:attribute name="UploadMaxCount" type="xs:string" default="" use="optional" />
  61. </xs:complexType>
  62. <xs:complexType name="RowDefine">
  63. <xs:sequence>
  64. </xs:sequence>
  65. <xs:attribute name="DataName" type="xs:string" use="required" />
  66. <xs:attribute name="Describe" type="xs:string" use="optional" />
  67. <xs:attribute name="Position" type="xs:string" use="optional" />
  68. <xs:attribute name="ValidationEmpty" type="xs:boolean" default="false" use="optional" />
  69. <xs:attribute name="ValidationExpression" type="xs:string" use="optional" />
  70. <xs:attribute name="Unique" type="xs:boolean" default="false" use="optional" />
  71. </xs:complexType>
  72. <xs:complexType name="FontInfo">
  73. <xs:sequence>
  74. </xs:sequence>
  75. <xs:attribute name="FontName" type="xs:string" />
  76. <xs:attribute name="FontColor" type="Color" default="None" />
  77. <xs:attribute name="IsBold" type="xs:boolean" default="false" />
  78. <xs:attribute name="FontSize" type="xs:string" />
  79. <xs:attribute name="UnderLine" type="UnderLine" default="xlNone" />
  80. <xs:attribute name="IsItalic" type="xs:boolean" default="false" />
  81. <xs:attribute name="Orientation" type="xs:string" default="0" />
  82. </xs:complexType>
  83. <xs:complexType name="ImageInfo">
  84. <xs:sequence>
  85. </xs:sequence>
  86. <xs:attribute name="ImagePath" type="xs:string" use="required" />
  87. <xs:attribute name="ImageWidth" type="xs:decimal" default="0" />
  88. <xs:attribute name="ImageHeight" type="xs:decimal" default="0" />
  89. <xs:attribute name="PaddLeftTop" type="xs:decimal" default="0.0" />
  90. </xs:complexType>
  91. <xs:complexType name="BorderInfo">
  92. <xs:sequence>
  93. </xs:sequence>
  94. <xs:attribute name="BorderWeight" type="BorderWeight" default="xlNone" />
  95. <xs:attribute name="BorderColor" type="Color" default="Black" />
  96. <xs:attribute name="BorderEdge" type="BorderEdge" use="required" />
  97. <xs:attribute name="LineStype" type="LineStype" default="xlNone" />
  98. </xs:complexType>
  99. <xs:simpleType name="BorderEdge">
  100. <xs:restriction base="xs:string">
  101. <xs:enumeration value="xlEdgeTop" />
  102. <xs:enumeration value="xlEdgeBottom" />
  103. <xs:enumeration value="xlEdgeLeft" />
  104. <xs:enumeration value="xlEdgeRight" />
  105. <xs:enumeration value="xlInsideHorizontal" />
  106. <xs:enumeration value="xlInsideVertical" />
  107. <xs:enumeration value="xlDiagonalDown" />
  108. <xs:enumeration value="xlDiagonalUp" />
  109. </xs:restriction>
  110. </xs:simpleType>
  111. <xs:simpleType name="LineStype">
  112. <xs:restriction base="xs:string">
  113. <xs:enumeration value="xlContinuous" />
  114. <xs:enumeration value="xlDash" />
  115. <xs:enumeration value="xlDashDot" />
  116. <xs:enumeration value="xlDashDotDot" />
  117. <xs:enumeration value="xlDot" />
  118. <xs:enumeration value="xlDoubleLine" />
  119. <xs:enumeration value="xlNone" />
  120. <xs:enumeration value="xlSlantDashDot" />
  121. </xs:restriction>
  122. </xs:simpleType>
  123. <xs:simpleType name="BorderWeight">
  124. <xs:restriction base="xs:string">
  125. <xs:enumeration value="xlThin" />
  126. <xs:enumeration value="xlThick" />
  127. <xs:enumeration value="xlMedium" />
  128. <xs:enumeration value="xlHairline" />
  129. <xs:enumeration value="xlNone" />
  130. </xs:restriction>
  131. </xs:simpleType>
  132. <xs:simpleType name="UnderLine">
  133. <xs:restriction base="xs:string">
  134. <xs:enumeration value="xlNone" />
  135. <xs:enumeration value="xlDouble" />
  136. <xs:enumeration value="xlDoubleFill" />
  137. <xs:enumeration value="xlSingle" />
  138. <xs:enumeration value="xlSingleFill" />
  139. </xs:restriction>
  140. </xs:simpleType>
  141. <xs:simpleType name="VAlign">
  142. <xs:restriction base="xs:string">
  143. <xs:enumeration value="xlVAlignTop" />
  144. <xs:enumeration value="xlVAlignCenter" />
  145. <xs:enumeration value="xlVAlignBottom" />
  146. <xs:enumeration value="xlVAlignJustify" />
  147. <xs:enumeration value="xlVAlignDistributed" />
  148. </xs:restriction>
  149. </xs:simpleType>
  150. <xs:simpleType name="HAlign">
  151. <xs:restriction base="xs:string">
  152. <xs:enumeration value="xlHAlignGeneral" />
  153. <xs:enumeration value="xlHAlignLeft" />
  154. <xs:enumeration value="xlHAlignCenter" />
  155. <xs:enumeration value="xlHAlignRight" />
  156. <xs:enumeration value="xlHAlignFill" />
  157. <xs:enumeration value="xlHAlignJustify" />
  158. <xs:enumeration value="xlHAlignCenterAcrossSelection" />
  159. <xs:enumeration value="xlHAlignDistributed" />
  160. </xs:restriction>
  161. </xs:simpleType>
  162. <xs:simpleType name="Color">
  163. <xs:restriction base="xs:string">
  164. <xs:enumeration value="None" />
  165. <xs:enumeration value="Auto" />
  166. <xs:enumeration value="Black" />
  167. <xs:enumeration value="Brown" />
  168. <xs:enumeration value="Olive" />
  169. <xs:enumeration value="DeepLime" />
  170. <xs:enumeration value="DeepGreen" />
  171. <xs:enumeration value="DeepBlue" />
  172. <xs:enumeration value="DarkBlue" />
  173. <xs:enumeration value="Gray80" />
  174. <xs:enumeration value="DeepRed" />
  175. <xs:enumeration value="Orange" />
  176. <xs:enumeration value="DeepOrange" />
  177. <xs:enumeration value="Green" />
  178. <xs:enumeration value="Lime" />
  179. <xs:enumeration value="Blue" />
  180. <xs:enumeration value="BlueGray" />
  181. <xs:enumeration value="Gray50" />
  182. <xs:enumeration value="Red" />
  183. <xs:enumeration value="LightOrange" />
  184. <xs:enumeration value="SliverOrange" />
  185. <xs:enumeration value="SeaGreen" />
  186. <xs:enumeration value="WaterGreen" />
  187. <xs:enumeration value="LittleBlue" />
  188. <xs:enumeration value="Violet" />
  189. <xs:enumeration value="Gray40" />
  190. <xs:enumeration value="Pink" />
  191. <xs:enumeration value="Golden" />
  192. <xs:enumeration value="Yellow" />
  193. <xs:enumeration value="SpringGreen" />
  194. <xs:enumeration value="LimeGreen" />
  195. <xs:enumeration value="SkyBlue" />
  196. <xs:enumeration value="Crimson" />
  197. <xs:enumeration value="Gray25" />
  198. <xs:enumeration value="Rose" />
  199. <xs:enumeration value="Tea" />
  200. <xs:enumeration value="LightYellow" />
  201. <xs:enumeration value="LightGreen" />
  202. <xs:enumeration value="LightLimeGreen" />
  203. <xs:enumeration value="LightBlue" />
  204. <xs:enumeration value="lilac" />
  205. <xs:enumeration value="White" />
  206. </xs:restriction>
  207. </xs:simpleType>
  208. </xs:schema>