PageRenderTime 15ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/Docs/07-Implementacion/Source/trunk/EDUAR_actual/EDUAR/EDUAR_UI/Private/Mensajes/MsjeEntrada.aspx

http://blpm.googlecode.com/
ASP.NET | 214 lines | 213 code | 1 blank | 0 comment | 1 complexity | 0cb3d0a5a28d91659157d89434fe1d1c MD5 | raw file
  1<%@ Page Title="Recibidos" Language="C#" MasterPageFile="~/EDUARMaster.Master" AutoEventWireup="true"
  2    CodeBehind="MsjeEntrada.aspx.cs" Inherits="EDUAR_UI.MsjeEntrada" Theme="Tema"
  3    StylesheetTheme="Tema" %>
  4
  5<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>
  6<%@ Register Src="~/UserControls/Editor.ascx" TagName="Editor" TagPrefix="edi" %>
  7<%@ MasterType VirtualPath="~/EDUARMaster.Master" %>
  8<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
  9</asp:Content>
 10<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 11    <asp:UpdatePanel ID="udpGrilla" runat="server" UpdateMode="Conditional">
 12        <ContentTemplate>
 13            <table class="tablaInterna" cellpadding="0" cellspacing="0">
 14                <tr>
 15                    <td>
 16                        <h2>
 17                            Recibidos
 18                        </h2>
 19                        <br />
 20                    </td>
 21                    <td align="right">
 22                        <asp:ImageButton ID="btnEnviar" OnClick="btnEnviar_Click" runat="server" ToolTip="Enviar"
 23                            ImageUrl="~/Images/botonEnviarMail.png" Visible="false" />
 24                        <asp:ImageButton ID="btnNuevo" OnClick="btnNuevo_Click" runat="server" ToolTip="Nuevo Mensaje"
 25                            ImageUrl="~/Images/botonNuevoMail.png" Visible="true" />
 26                        <asp:ImageButton ID="btnEnviados" OnClick="btnEnviados_Click" runat="server" ToolTip="Enviados"
 27                            ImageUrl="~/Images/botonEnviados.png" Visible="true" />
 28                        <asp:ImageButton ID="btnEliminar" runat="server" ToolTip="Eliminar Seleccionados"
 29                            AlternateText="Eliminar Seleccionados" ImageUrl="~/Images/mail-delete.png" OnClick="btnEliminar_Click" />
 30                        <asp:ImageButton ID="btnVolver" OnClick="btnVolver_Click" runat="server" ToolTip="Volver"
 31                            ImageUrl="~/Images/botonVolver.png" Visible="false" />
 32                    </td>
 33                </tr>
 34            </table>
 35            <table class="tablaInterna" cellpadding="0" cellspacing="0">
 36                <tr>
 37                    <td>
 38                    </td>
 39                </tr>
 40            </table>
 41            <asp:UpdatePanel ID="udpReporte" runat="server" UpdateMode="Conditional">
 42                <ContentTemplate>
 43                    <asp:GridView ID="gvwReporte" runat="server" CssClass="DatosLista" SkinID="gridviewSkinPagerListado"
 44                        AutoGenerateColumns="false" AllowPaging="true" Width="100%" DataKeyNames="idMensajeDestinatario"
 45                        OnRowCommand="gvwReporte_RowCommand" AllowSorting="true" OnSorting="gvwReporte_Sorting"
 46                        ShowFooter="false">
 47                        <Columns>
 48                            <asp:TemplateField HeaderText="Acciones" HeaderStyle-VerticalAlign="Middle">
 49                                <HeaderStyle HorizontalAlign="left" Width="10%" />
 50                                <HeaderTemplate>
 51                                    <asp:CheckBox ID="cboxhead" AutoPostBack="true" Text='Acciones' runat="server" Width="100px"
 52                                        ClientIDMode="Static" OnCheckedChanged="HeaderCheckedChanged" Style="margin-bottom: 6px" />
 53                                </HeaderTemplate>
 54                                <ItemStyle HorizontalAlign="left" />
 55                                <ItemTemplate>
 56                                    <table border="0" cellpadding="0" cellspacing="0">
 57                                        <tr>
 58                                            <td valign="middle" style="border: none">
 59                                                <asp:CheckBox ID="checkEliminar" Text='<%# Eval("idMensajeDestinatario")%>' runat="server"
 60                                                    CssClass="HiddenText" Width="30px" ClientIDMode="Static" />
 61                                            </td>
 62                                            <td style="border: none">
 63                                                <asp:ImageButton ImageUrl="~/Images/Grillas/mail-mark-read-2.png" runat="server"
 64                                                    ID="btnLeer" AlternateText="Leer" ToolTip="Leer" ImageAlign="TextTop" CommandName="Leer"
 65                                                    CommandArgument='<%# Bind("idMensajeDestinatario") %>' />
 66                                                <asp:ImageButton ImageUrl="~/Images/Grillas/mail-reply-2.png" runat="server" ID="btnResponder"
 67                                                    AlternateText="Responder" ToolTip="Responder" ImageAlign="TextTop" CommandName="Responder"
 68                                                    CommandArgument='<%# Bind("idMensajeDestinatario") %>' />
 69                                                <asp:ImageButton ImageUrl="~/Images/Grillas/mail-delete-2.png" runat="server" ID="btnEliminar"
 70                                                    AlternateText="Eliminar" ToolTip="Eliminar" ImageAlign="TextTop" CommandName="Eliminar"
 71                                                    CommandArgument='<%# Bind("idMensajeDestinatario") %>' />
 72                                            </td>
 73                                        </tr>
 74                                    </table>
 75                                </ItemTemplate>
 76                            </asp:TemplateField>
 77                            <asp:TemplateField HeaderText="Remitente" SortExpression="nombreRemitente">
 78                                <HeaderStyle HorizontalAlign="left" Width="15%" />
 79                                <ItemStyle HorizontalAlign="left" />
 80                                <ItemTemplate>
 81                                    <asp:Label ID="lblRemitente" runat="server" Text='<%# String.Format("{0} {1}", Eval("remitente.nombre"), Eval("remitente.apellido")) %>'
 82                                        Font-Bold='<%# Boolean.Parse(Eval("leido").ToString()) ? false : true  %>'></asp:Label>
 83                                    <asp:Label ID="lblRol" runat="server" Text='<%# String.Format("({0})", Eval("remitente.tipoPersona.nombre")) %>'
 84                                        Font-Bold="true"></asp:Label>
 85                                </ItemTemplate>
 86                            </asp:TemplateField>
 87                            <asp:TemplateField HeaderText="Asunto" SortExpression="asuntoMensaje">
 88                                <HeaderStyle HorizontalAlign="left" Width="45%" />
 89                                <ItemStyle HorizontalAlign="left" />
 90                                <ItemTemplate>
 91                                    <asp:Label ID="lblAsunto" runat="server" Text='<%# Eval("asuntoMensaje") %>' Font-Bold='<%# Boolean.Parse(Eval("leido").ToString()) ? false : true  %>'></asp:Label>
 92                                </ItemTemplate>
 93                            </asp:TemplateField>
 94                            <asp:TemplateField HeaderText="Fecha" SortExpression="fechaEnvio">
 95                                <HeaderStyle HorizontalAlign="Center" Width="10%" />
 96                                <ItemStyle HorizontalAlign="Center" />
 97                                <ItemTemplate>
 98                                    <asp:Label ID="lblFecha" runat="server" Text='<%# (Eval("fechaEnvio","{0:d}") == DateTime.Now.ToShortDateString()) ?  Eval("horaEnvio","{0:HH:mm}") : Eval("fechaEnvio","{0:d}") %>'
 99                                        Font-Bold='<%# Boolean.Parse(Eval("leido").ToString()) ? false : true  %>'></asp:Label>
100                                </ItemTemplate>
101                            </asp:TemplateField>
102                        </Columns>
103                    </asp:GridView>
104                </ContentTemplate>
105            </asp:UpdatePanel>
106            <div id="divPaginacion" runat="server">
107                <hr />
108                <table class="tablaInternaMensajes" cellpadding="5" cellspacing="1">
109                    <tr>
110                        <td class="TDCriterios40">
111                            Mostrar
112                            <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
113                                <asp:ListItem>5</asp:ListItem>
114                                <asp:ListItem>10</asp:ListItem>
115                                <asp:ListItem>15</asp:ListItem>
116                            </asp:DropDownList>
117                            por Página
118                        </td>
119                        <td class="TD30" align="center">
120                            <asp:Label ID="lblCantidad" Text="" runat="server" />
121                        </td>
122                        <td class="TD30" align="right">
123                            <table>
124                                <tr>
125                                    <td>
126                                        <asp:ImageButton ID="lnkbtnFirst" OnClick="lnkbtnFirst_Click" ImageUrl="~/Images/Paginador/go-first-view.png"
127                                            runat="server" />
128                                    </td>
129                                    <td>
130                                        <asp:ImageButton ID="lnkbtnPrevious" OnClick="lnkbtnPrevious_Click" ImageUrl="~/Images/Paginador/go-previous-view.png"
131                                            runat="server" />
132                                    </td>
133                                    <td>
134                                        <asp:DataList ID="dlPaging" runat="server" OnItemCommand="dlPaging_ItemCommand" OnItemDataBound="dlPaging_ItemDataBound"
135                                            RepeatDirection="Horizontal">
136                                            <ItemTemplate>
137                                                <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
138                                                    CommandName="lnkbtnPaging" Text='<%# Eval("PageText") %>'></asp:LinkButton>
139                                            </ItemTemplate>
140                                        </asp:DataList>
141                                    </td>
142                                    <td>
143                                        <asp:ImageButton ID="lnkbtnNext" OnClick="lnkbtnNext_Click" ImageUrl="~/Images/Paginador/go-next-view.png"
144                                            runat="server" />
145                                    </td>
146                                    <td>
147                                        <asp:ImageButton ID="lnkbtnLast" OnClick="lnkbtnLast_Click" ImageUrl="~/Images/Paginador/go-last-view.png"
148                                            runat="server" />
149                                    </td>
150                                </tr>
151                            </table>
152                        </td>
153                    </tr>
154                </table>
155            </div>
156            <div id="divContenido" runat="server" style="padding: 5px 5px 5px 5px; border-top: 1px solid black;
157                border-left: 1px solid black; border-right: 1px solid black; border-bottom: 1px solid black;
158                overflow: visible">
159                <div style="min-height: 250px; height: auto; overflow: visible">
160                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
161                        <tr>
162                            <td class="TDCriterios50">
163                                <asp:Label Text="Remitente: " runat="server" Font-Bold="true" /><asp:Literal ID="litRemitente"
164                                    Text="" runat="server" />
165                            </td>
166                            <td class="TDCriterios50">
167                                <asp:Label Text="Fecha de Envío: " runat="server" Font-Bold="true" /><asp:Literal
168                                    ID="litFecha" Text="" runat="server" />
169                            </td>
170                        </tr>
171                    </table>
172                    <br />
173                    <asp:Label Text="Asunto: " runat="server" Font-Bold="true" /><asp:Literal ID="litAsunto"
174                        Text="" runat="server" /><br />
175                    <hr />
176                    <asp:Literal ID="litContenido" Text="" runat="server" />
177                </div>
178            </div>
179            <div id="divReply" runat="server">
180                <asp:HiddenField ID="hdfDestinatario" runat="server" />
181                <table class="tablaInternaMensajes" width="100%">
182                    <tr>
183                        <td class="TD20">
184                            Destinatario
185                        </td>
186                        <td class="TD80">
187                            <asp:Label ID="lblDestinatario" Text="" runat="server" />
188                        </td>
189                    </tr>
190                    <tr>
191                        <td class="TD20">
192                            Asunto
193                        </td>
194                        <td class="TD80">
195                            <asp:TextBox ID="txtAsunto" runat="server" Style="width: 710px; background-color: #FFFFFF;
196                                background-image: -moz-linear-gradient(center bottom , white 85%, #EEEEEE 99%);
197                                border: 1px solid #AAAAAA; cursor: text; height: 26px !important; margin: 0;
198                                overflow: hidden; padding: 0; position: relative; font-family: sans-serif; font-size: 1em" />
199                        </td>
200                    </tr>
201                    <tr>
202                        <td class="TD20">
203                        </td>
204                        <td class="TD80">
205                            <edi:Editor ID="textoMensaje" runat="server" />
206                        </td>
207                    </tr>
208                </table>
209            </div>
210        </ContentTemplate>
211        <Triggers>
212        </Triggers>
213    </asp:UpdatePanel>
214</asp:Content>