PageRenderTime 20ms CodeModel.GetById 8ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/Docs/07-Implementacion/Source/trunk/EDUAR_Regular/EDUAR/EDUAR_UI/Private/Account/Profiles.aspx

http://blpm.googlecode.com/
ASP.NET | 173 lines | 172 code | 1 blank | 0 comment | 0 complexity | d7e77d1d9f0f95595e2f47ed56f46727 MD5 | raw file
  1<%@ Page Title="Modificar Perfiles" Language="C#" MasterPageFile="~/EDUARMaster.Master"
  2    AutoEventWireup="true" CodeBehind="Profiles.aspx.cs" Inherits="EDUAR_UI.Profiles" %>
  3
  4<%@ MasterType VirtualPath="~/EDUARMaster.Master" %>
  5<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
  6</asp:Content>
  7<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  8    <table width="100%" cellpadding="1" cellspacing="5" border="0">
  9        <tr>
 10            <td style="width: 80%; vertical-align: text-top">
 11                <h2>
 12                    Modificar Perfiles<hr />
 13                </h2>
 14            </td>
 15            <td style="width: 20%; text-align: right" rowspan="2">
 16                <asp:Image ID="Image1" ImageUrl="~/Images/user-properties.png" runat="server" AlternateText="Modificar Perfiles"
 17                    ToolTip="Modificar Perfiles" />
 18            </td>
 19        </tr>
 20    </table>
 21    <asp:UpdatePanel ID="udpFiltros" runat="server" UpdateMode="Conditional">
 22        <ContentTemplate>
 23            <table class="tablaInterna" cellpadding="0" cellspacing="0">
 24                <tr>
 25                    <td align="right">
 26                        <asp:ImageButton ID="btnBuscar" OnClick="btnBuscar_Click" runat="server" ToolTip="Buscar"
 27                            ImageUrl="~/Images/botonBuscar.png" />
 28                        <asp:ImageButton ID="btnNuevo" OnClick="btnNuevo_Click" runat="server" ToolTip="Nuevo"
 29                            ImageUrl="~/Images/botonNuevo.png" />
 30                        <asp:ImageButton ID="btnGuardar" OnClick="btnGuardar_Click" runat="server" ToolTip="Guardar"
 31                            ImageUrl="~/Images/botonGuardar.png" />
 32                        <asp:ImageButton ID="btnVolver" OnClick="btnVolver_Click" runat="server" ToolTip="Volver"
 33                            ImageUrl="~/Images/botonVolver.png" />
 34                    </td>
 35                </tr>
 36            </table>
 37            <asp:UpdatePanel ID="udpControlesBusqueda" runat="server" UpdateMode="Conditional">
 38                <ContentTemplate>
 39                    <table class="tablaInterna" cellpadding="1" cellspacing="5">
 40                        <tr>
 41                            <td colspan="2">
 42                                <h3>
 43                                    Buscar</h3>
 44                            </td>
 45                        </tr>
 46                        <tr>
 47                            <td valign="top" style="width: 10%">
 48                                <asp:Label ID="lblRolesBusqueda" runat="server" Text="Perfiles:"></asp:Label>
 49                            </td>
 50                            <td style="width: 90%">
 51                                <asp:CheckBoxList ID="chkListRolesBusqueda" TabIndex="2" runat="server">
 52                                </asp:CheckBoxList>
 53                            </td>
 54                        </tr>
 55                    </table>
 56                    <br />
 57                </ContentTemplate>
 58                <Triggers>
 59                    <asp:AsyncPostBackTrigger ControlID="btnGuardar" EventName="Click" />
 60                </Triggers>
 61            </asp:UpdatePanel>
 62        </ContentTemplate>
 63        <Triggers>
 64            <asp:AsyncPostBackTrigger ControlID="gvwPerfiles" EventName="RowCommand" />
 65            <asp:AsyncPostBackTrigger ControlID="btnNuevo" EventName="Click" />
 66        </Triggers>
 67    </asp:UpdatePanel>
 68    <asp:UpdatePanel ID="udpGrilla" runat="server" UpdateMode="Conditional">
 69        <ContentTemplate>
 70            <asp:GridView ID="gvwPerfiles" runat="server" PagerSettings-Visible="true" BorderStyle="Solid"
 71                OnRowCommand="gvwPerfiles_RowCommand" Width="100%" AutoGenerateColumns="False"
 72                AllowPaging="True" DataKeyNames="RoleId">
 73                <EmptyDataRowStyle HorizontalAlign="Center" />
 74                <Columns>
 75                    <asp:TemplateField HeaderText="Acciones">
 76                        <HeaderStyle HorizontalAlign="center" Width="5%" />
 77                        <ItemStyle HorizontalAlign="center" />
 78                        <ItemTemplate>
 79                            <asp:ImageButton ID="modificarPerfil" runat="server" CommandName="Editar" CommandArgument='<%# Bind("RoleId") %>'
 80                                ToolTip="Editar" ImageUrl="~/Images/Grillas/action_edit.png" />
 81                            <asp:ImageButton ID="eliminarPerfil" runat="server" CommandName="Eliminar" CommandArgument='<%# Bind("Nombre") %>'
 82                                ToolTip="Eliminar" ImageUrl="~/Images/Grillas/action_delete.png" />
 83                        </ItemTemplate>
 84                    </asp:TemplateField>
 85                    <asp:TemplateField HeaderText="Perfil">
 86                        <HeaderStyle HorizontalAlign="left" Width="20%" />
 87                        <ItemStyle HorizontalAlign="left" />
 88                        <ItemTemplate>
 89                            <asp:Label ID="nombre" runat="server" Text='<%# Bind("Nombre") %>'></asp:Label>
 90                        </ItemTemplate>
 91                    </asp:TemplateField>
 92                    <asp:TemplateField HeaderText="Descripcion">
 93                        <HeaderStyle HorizontalAlign="left" Width="75%" />
 94                        <ItemStyle HorizontalAlign="left" />
 95                        <ItemTemplate>
 96                            <asp:Label ID="descripcion" runat="server" Text='<%# Bind("Descripcion") %>'></asp:Label>
 97                        </ItemTemplate>
 98                    </asp:TemplateField>
 99                </Columns>
100            </asp:GridView>
101            <asp:UpdatePanel ID="udpEditRoles" runat="server" UpdateMode="Conditional">
102                <ContentTemplate>
103                    <table class="tablaInterna" cellpadding="1" cellspacing="5">
104                        <tr>
105                            <td colspan="2">
106                                <h3>
107                                    Editar Perfil</h3>
108                            </td>
109                        </tr>
110                        <tr>
111                            <td valign="top">
112                                <asp:Label ID="lblNombre" runat="server" Text="Nombre:"></asp:Label>
113                            </td>
114                            <td valign="top">
115                                <asp:Label ID="lblNombreRol" runat="server"></asp:Label>
116                            </td>
117                        </tr>
118                        <tr>
119                            <td valign="top">
120                                <asp:Label ID="lblDescripcion" runat="server" Text="Descripcion:"></asp:Label>
121                            </td>
122                            <td valign="top">
123                                <asp:TextBox runat="server" ID="txtDescripcion" CssClass="txtMultilinea" TextMode="MultiLine"
124                                    MaxLength="256" />
125                            </td>
126                        </tr>
127                    </table>
128                </ContentTemplate>
129                <Triggers>
130                    <asp:AsyncPostBackTrigger ControlID="btnGuardar" EventName="Click" />
131                </Triggers>
132            </asp:UpdatePanel>
133            <asp:UpdatePanel ID="udpNewRol" runat="server" UpdateMode="Conditional">
134                <ContentTemplate>
135                    <table class="tablaInterna" cellpadding="1" cellspacing="5">
136                        <tr>
137                            <td colspan="2">
138                                <h3>
139                                    Nuevo Perfil</h3>
140                            </td>
141                        </tr>
142                        <tr>
143                            <td valign="top">
144                                <asp:Label ID="lblNuevoRol" runat="server" Text="Nombre:"></asp:Label>
145                            </td>
146                            <td valign="top">
147                                <asp:TextBox ID="txtNuevoRol" runat="server" />
148                            </td>
149                        </tr>
150                        <tr>
151                            <td valign="top">
152                                <asp:Label ID="lblNuevaDescripcion" runat="server" Text="Descripcion:"></asp:Label>
153                            </td>
154                            <td valign="top">
155                                <asp:TextBox runat="server" ID="txtNuevaDescripcion" CssClass="txtMultilinea" TextMode="MultiLine"
156                                    MaxLength="256" />
157                            </td>
158                        </tr>
159                    </table>
160                </ContentTemplate>
161                <Triggers>
162                    <asp:AsyncPostBackTrigger ControlID="btnGuardar" EventName="Click" />
163                </Triggers>
164            </asp:UpdatePanel>
165        </ContentTemplate>
166        <Triggers>
167            <asp:AsyncPostBackTrigger ControlID="btnBuscar" EventName="Click" />
168            <asp:AsyncPostBackTrigger ControlID="btnNuevo" EventName="Click" />
169            <asp:AsyncPostBackTrigger ControlID="btnGuardar" EventName="Click" />
170            <asp:AsyncPostBackTrigger ControlID="gvwPerfiles" EventName="RowCommand" />
171        </Triggers>
172    </asp:UpdatePanel>
173</asp:Content>