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.

173 lines
5.2 KiB

  1. <%@ Control Language='C#' Inherits='UDDI.Web.ServiceControl' %>
  2. <%@ Register TagPrefix='uddi' Namespace='UDDI.Web' Assembly='uddi.web' %>
  3. <%@ Import Namespace='System.Data' %>
  4. <%@ Import Namespace='UDDI' %>
  5. <%@ Import Namespace='UDDI.API' %>
  6. <%@ Import Namespace='UDDI.Web' %>
  7. <%@ Import Namespace='UDDI.API.Business' %>
  8. <%@ Import Namespace='UDDI.API.Service' %>
  9. <asp:DataGrid
  10. ID='grid'
  11. Border='0'
  12. Cellpadding='4'
  13. Cellspacing='0'
  14. EnableViewState='false'
  15. Width='100%'
  16. AutoGenerateColumns='false'
  17. OnEditCommand='Service_Edit'
  18. OnDeleteCommand='Service_Delete'
  19. ItemStyle-VerticalAlign='top'
  20. Runat='server'>
  21. <EditItemStyle CssClass='tableEditItem' />
  22. <HeaderStyle CssClass='tableHeader' />
  23. <ItemStyle CssClass='tableItem' />
  24. <AlternatingItemStyle CssClass='tableAlternatingItem' />
  25. <FooterStyle CssClass='tableFooter' />
  26. <Columns>
  27. <asp:TemplateColumn>
  28. <HeaderTemplate>
  29. <%# Localization.GetString( "HEADING_SERVICE" ) %>
  30. </HeaderTemplate>
  31. <ItemTemplate>
  32. <uddi:UddiLabel
  33. Text='<%# ( (BusinessService)Container.DataItem).Names[0].Value %>'
  34. CssClass='rowItem'
  35. Runat='Server' />
  36. </ItemTemplate>
  37. </asp:TemplateColumn>
  38. <asp:TemplateColumn HeaderStyle-Width='150px'>
  39. <HeaderTemplate>
  40. <%# Localization.GetString( "HEADING_ACTIONS" ) %>
  41. </HeaderTemplate>
  42. <ItemTemplate>
  43. <nobr>
  44. <uddi:UddiButton
  45. CommandName='Edit'
  46. Text='[[BUTTON_VIEW]]'
  47. EditModeDisable='true'
  48. Width='60px'
  49. CssClass='button'
  50. CausesValidation='false'
  51. Runat='server' />
  52. <uddi:UddiButton
  53. CommandName='Delete'
  54. Text='[[BUTTON_DELETE]]'
  55. EditModeDisable='true'
  56. Width='60px'
  57. CssClass='button'
  58. CausesValidation='false'
  59. Runat='server' />
  60. </nobr>
  61. </ItemTemplate>
  62. <FooterTemplate>
  63. <uddi:UddiButton
  64. Text='[[BUTTON_ADD_SERVICE]]'
  65. EditModeDisable='true'
  66. Width='125px'
  67. CssClass='button'
  68. OnClick='Service_Add'
  69. CausesValidation='false'
  70. Runat='Server' />
  71. </FooterTemplate>
  72. </asp:TemplateColumn>
  73. <asp:TemplateColumn HeaderStyle-Width='150px'>
  74. <HeaderTemplate>
  75. <%# Localization.GetString( "HEADING_SERVICE" ) %>
  76. </HeaderTemplate>
  77. <ItemTemplate>
  78. <asp:HyperLink
  79. Text='<%# HttpUtility.HtmlEncode( ((BusinessService)Container.DataItem).Names[0].Value )%>'
  80. NavigateUrl='<%# "../details/servicedetail.aspx?search=" + Request[ "search" ] + "&frames="+(frames?"true":"false")+"&key=" + ((BusinessService)Container.DataItem).ServiceKey %>'
  81. CssClass='rowItem'
  82. Runat='Server' />
  83. </ItemTemplate>
  84. </asp:TemplateColumn>
  85. </Columns>
  86. </asp:DataGrid>
  87. <br>
  88. <br>
  89. <asp:DataGrid
  90. ID='projectionsGrid'
  91. Border='0'
  92. Cellpadding='4'
  93. Cellspacing='0'
  94. EnableViewState='false'
  95. Width='100%'
  96. AutoGenerateColumns='false'
  97. OnEditCommand='ServiceProjection_View'
  98. ItemStyle-VerticalAlign='top'
  99. Runat='server'>
  100. <EditItemStyle CssClass='tableEditItem' />
  101. <HeaderStyle CssClass='tableHeader' />
  102. <ItemStyle CssClass='tableItem' />
  103. <AlternatingItemStyle CssClass='tableAlternatingItem' />
  104. <FooterStyle CssClass='tableFooter' />
  105. <Columns>
  106. <asp:TemplateColumn>
  107. <HeaderTemplate>
  108. <%# Localization.GetString( "HEADING_SERVICEPROJECTIONS" ) %>
  109. </HeaderTemplate>
  110. <ItemTemplate>
  111. <div><uddi:UddiLabel
  112. Text='<%# (((BusinessService)Container.DataItem).Names.Count>0)?((BusinessService)Container.DataItem).Names[0].Value:Localization.GetString( "BUTTON_PROJECTIONBROKEN" ) %>'
  113. CssClass='rowItem'
  114. Runat='Server' /></div>
  115. </ItemTemplate>
  116. </asp:TemplateColumn>
  117. <asp:TemplateColumn HeaderStyle-Width='150px'>
  118. <HeaderTemplate>
  119. <%# Localization.GetString( "HEADING_ACTIONS" ) %>
  120. </HeaderTemplate>
  121. <ItemTemplate>
  122. <uddi:UddiButton
  123. CommandName='edit'
  124. Text='[[BUTTON_VIEW]]'
  125. EditModeDisable='true'
  126. Width='125px'
  127. CssClass='button'
  128. CausesValidation='false'
  129. Runat='server'
  130. Enabled='<%# (((BusinessService)Container.DataItem).Names.Count>0)%>'
  131. />
  132. </ItemTemplate>
  133. </asp:TemplateColumn>
  134. <asp:TemplateColumn HeaderStyle-Width='150px'>
  135. <HeaderTemplate>
  136. <%# Localization.GetString( "HEADING_SERVICEPROJECTIONS" ) %>
  137. </HeaderTemplate>
  138. <ItemTemplate>
  139. <uddi:UddiLabel
  140. Text='<%# ((((BusinessService)Container.DataItem).Names.Count>0)?((BusinessService)Container.DataItem).Names[ 0 ].Value:Localization.GetString( "BUTTON_PROJECTIONBROKEN" ) )%>'
  141. CssClass='rowItem'
  142. Runat='Server' />
  143. <asp:HyperLink
  144. Text='<%# Localization.GetString( "BUTTON_VIEW_SERVICE_PROJECTION" ) %>'
  145. NavigateUrl='<%# "../details/servicedetail.aspx?projectionKey="+parentKey+"&search=" + Request[ "search" ] + "&frames="+(frames?"true":"false")+"&key=" + ((BusinessService)Container.DataItem).ServiceKey %>'
  146. CssClass='rowItem'
  147. Visible='<%#(((BusinessService)Container.DataItem).Names.Count>0)%>'
  148. Runat='Server' />
  149. </ItemTemplate>
  150. </asp:TemplateColumn>
  151. </Columns>
  152. </asp:DataGrid>