Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

203 lines
5.7 KiB

  1. <!-- ############################################################################ -->
  2. <!-- ## UDDI Services ## -->
  3. <!-- ## Copyright (c) Microsoft Corporation. All rights reserved. ## -->
  4. <!-- ############################################################################ -->
  5. <%@ Control Language='C#' Inherits='UDDI.Web.IdentifierBagControl' %>
  6. <%@ Register TagPrefix='uddi' Namespace='UDDI.Web' Assembly='uddi.web' %>
  7. <%@ Import Namespace='System.Data' %>
  8. <%@ Import Namespace='UDDI' %>
  9. <%@ Import Namespace='UDDI.API' %>
  10. <script runat='server'>
  11. public bool FindMode;
  12. </script>
  13. <asp:DataGrid
  14. ID='grid'
  15. CellPadding='4'
  16. CellSpacing='0'
  17. Border='0'
  18. Width='100%'
  19. AutoGenerateColumns='false'
  20. OnEditCommand='Identifier_Edit'
  21. OnDeleteCommand='Identifier_Delete'
  22. OnUpdateCommand='Identifier_Update'
  23. OnCancelCommand='Identifier_Cancel'
  24. ShowFooter='True'
  25. ItemStyle-VerticalAlign='top'
  26. Runat='Server'>
  27. <EditItemStyle CssClass='tableEditItem' />
  28. <HeaderStyle CssClass='tableHeader' />
  29. <ItemStyle CssClass='tableItem' />
  30. <AlternatingItemStyle CssClass='tableAlternatingItem' />
  31. <FooterStyle CssClass='tableFooter' />
  32. <Columns>
  33. <asp:TemplateColumn>
  34. <HeaderTemplate>
  35. <%# Localization.GetString( "HEADING_IDENTIFIERS" ) %>
  36. </HeaderTemplate>
  37. <ItemTemplate>
  38. <uddi:UddiLabel
  39. Text='[[TAG_IDENTIFICATION_SCHEME]]'
  40. CssClass='lightHeader'
  41. Runat='Server' />
  42. <uddi:UddiLabel
  43. Text='<%# Lookup.TModelName( ((KeyedReference)Container.DataItem).TModelKey ) %>'
  44. Runat='Server' /><br>
  45. <uddi:UddiLabel
  46. Text='[[TAG_KEY_NAME]]'
  47. CssClass='lightHeader'
  48. Runat='server' />
  49. <uddi:UddiLabel
  50. Text='<%# ((KeyedReference)Container.DataItem).KeyName %>'
  51. Runat='Server' /><br>
  52. <uddi:UddiLabel
  53. Text='[[TAG_KEY_VALUE]]'
  54. CssClass='lightHeader'
  55. Runat='server' />
  56. <uddi:UddiLabel
  57. Text='<%# ((KeyedReference)Container.DataItem).KeyValue %>'
  58. Runat='Server' />
  59. </ItemTemplate>
  60. <EditItemTemplate>
  61. <uddi:StringResource
  62. Name='HELP_BLOCK_IDENTIFIER_BAG'
  63. Runat='server' /><br>
  64. <br>
  65. <uddi:UddiLabel
  66. Text='[[TAG_TMODEL]]'
  67. CssClass='lightHeader'
  68. Runat='server' /><br>
  69. <asp:DropDownList
  70. ID='tModelKey'
  71. Width='200px'
  72. DataSource='<%# Lookup.IdentifierTModelsFiltered() %>'
  73. DataTextField='name'
  74. DataValueField='tModelKey'
  75. Runat='Server' /><br>
  76. <br>
  77. <uddi:UddiLabel
  78. Text='[[TAG_KEY_NAME]]'
  79. CssClass='lightHeader'
  80. Runat='server' /><br>
  81. <uddi:UddiTextBox
  82. ID='keyName'
  83. Width='300px'
  84. MaxLength='255'
  85. Columns='30'
  86. Text='<%# ((KeyedReference)Container.DataItem).KeyName %>'
  87. Selected='true'
  88. OnEnterKeyPressed='OnEnterKeyPressed'
  89. Runat='Server' /><br>
  90. <br>
  91. <uddi:UddiLabel
  92. Text='[[TAG_KEY_VALUE]]'
  93. CssClass='lightHeader'
  94. Runat='server' /><br>
  95. <uddi:UddiTextBox
  96. ID='keyValue'
  97. Width='300px'
  98. Columns='30'
  99. MaxLength='255'
  100. Text='<%# ((KeyedReference)Container.DataItem).KeyValue %>'
  101. OnEnterKeyPressed='OnEnterKeyPressed'
  102. Runat='Server' /><br>
  103. <asp:RequiredFieldValidator
  104. id='requiredkeyValue'
  105. ControlToValidate='keyValue'
  106. ErrorMessage='<%# Localization.GetString( "ERROR_FIELD_REQUIRED" ) %>'
  107. Display='Dynamic'
  108. Runat='server'/>
  109. </EditItemTemplate>
  110. <FooterTemplate>
  111. <asp:Panel
  112. Runat='server'
  113. Visible='<%#!(Lookup.IdentifierTModelsFiltered().Count>0)%>'
  114. >
  115. <uddi:UddiLabel
  116. Text='[[ERROR_NOTMODELS_FOR_IDENTIFIERBAG]]'
  117. Runat='server'
  118. CssClass='helpBlock'
  119. />
  120. <br>
  121. </asp:Panel>
  122. <uddi:UddiLabel
  123. Text='<%# String.Format( Localization.GetString( "TEXT_RECORD_COUNT" ), identifierBag.Count ) %>'
  124. ForeColor='#000000'
  125. Runat='server'
  126. Visible='<%# !FindMode %>' />
  127. </FooterTemplate>
  128. </asp:TemplateColumn>
  129. <asp:TemplateColumn HeaderStyle-Width='150px'>
  130. <HeaderTemplate>
  131. <%# Localization.GetString( "HEADING_ACTIONS" ) %>
  132. </HeaderTemplate>
  133. <ItemTemplate>
  134. <nobr>
  135. <uddi:UddiButton
  136. ID='edit'
  137. CommandName='Edit'
  138. Text='[[BUTTON_EDIT]]'
  139. EditModeDisable='true'
  140. Width='70px'
  141. CssClass='button'
  142. CausesValidation='false'
  143. Runat='server' />
  144. <uddi:UddiButton
  145. ID='delete'
  146. CommandName='Delete'
  147. Text='[[BUTTON_DELETE]]'
  148. EditModeDisable='true'
  149. Width='70px'
  150. CssClass='button'
  151. CausesValidation='false'
  152. Runat='server' />
  153. </nobr>
  154. </ItemTemplate>
  155. <EditItemTemplate>
  156. <nobr>
  157. <uddi:UddiButton
  158. ID='update'
  159. CommandName='Update'
  160. Text='[[BUTTON_UPDATE]]'
  161. Width='70px'
  162. CssClass='button'
  163. CausesValidation='true'
  164. Runat='server' />
  165. <uddi:UddiButton
  166. ID='cancel'
  167. CommandName='Cancel'
  168. Text='[[BUTTON_CANCEL]]'
  169. Width='70px'
  170. CssClass='button'
  171. CausesValidation='false'
  172. Runat='server' />
  173. </nobr>
  174. </EditItemTemplate>
  175. <FooterTemplate>
  176. <uddi:UddiButton
  177. ID='add'
  178. Enabled='<%#(Lookup.IdentifierTModelsFiltered().Count>0)%>'
  179. Text='[[BUTTON_ADD_IDENTIFIER]]'
  180. EditModeDisable='true'
  181. Width='146px'
  182. CssClass='button'
  183. OnClick='Identifier_Add'
  184. CausesValidation='false'
  185. Runat='Server' />
  186. </FooterTemplate>
  187. </asp:TemplateColumn>
  188. </Columns>
  189. </asp:DataGrid>