Commit inicial Ventas Productivo
This commit is contained in:
654
OI/Desarrollo.aspx
Normal file
654
OI/Desarrollo.aspx
Normal file
@@ -0,0 +1,654 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Desarrollo.aspx.vb" Inherits="OI_Desarrollo" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" Runat="Server">
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" Runat="Server">
|
||||
<style>
|
||||
.grenb{
|
||||
border-color: #32c5d2;
|
||||
color: #32c5d2;
|
||||
|
||||
}
|
||||
.grenb:hover{
|
||||
background: 0 0;
|
||||
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" Runat="Server">
|
||||
|
||||
<asp:UpdatePanel ID="UpTitulo" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Label ID="LblTitulo" runat="server" Text ="Desarrollo"></asp:Label>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" Runat="Server">
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" Runat="Server">
|
||||
|
||||
<asp:UpdatePanel ID="UpGRal" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="Widthall" style="text-align:right" >
|
||||
<asp:LinkButton ID="LnkWizard" Font-Size="14" Visible="false" target="_blank" runat="server" CssClass="Texto font-green"><i class="fa fa-external-link-square font-green"></i>Asistente</asp:LinkButton>
|
||||
</div>
|
||||
<br />
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12 ">
|
||||
<div class="col-md-6">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title font-green">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-indent font-green"></i><span class="caption-subject bold uppercase">Datos Generales</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtDesarrollo" CssClass="form-control" runat="server" MaxLength="300"></asp:TextBox>
|
||||
<label for="<%= TxtDesarrollo.ClientID.ToString()%>">Desarrollo:</label>
|
||||
<asp:RequiredFieldValidator ID="rfvTxtDesarrollo" runat="server" ControlToValidate="TxtDesarrollo" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Desarrollo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtDescripcion.ClientID.ToString()%>">Descripción:</label>
|
||||
<asp:TextBox ID="TxtDescripcion" TextMode="MultiLine" Rows="2" CssClass="Widthall" runat="server" onkeyDown="checkTextAreaMaxLength(this,event,'500');" MaxLength="500"></asp:TextBox>
|
||||
|
||||
<asp:RequiredFieldValidator ID="rfvTxtDescripcion" runat="server" ControlToValidate="TxtDescripcion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Desarrollo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<label class="col-md-3" for="<%= DdlModulo.ClientID.ToString()%>">Modulo:</label>
|
||||
<asp:DropDownList ID="DdlModulo" CssClass="select2me" runat="server" DataValueField="CveModulo" DataTextField="Modulo" Class="table-group-action-input form-control input-inline input-small input-sm" Width="200"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfvDdlModulo" Enabled="false" runat="server" InitialValue="-1" ControlToValidate="DdlModulo" Display="None" ErrorMessage="El campo <b>''Modulo''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="rfvcDdlModulo" Enabled="false" runat="server" TargetControlID="rfvDdlModulo" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtTiempoEstimado" CssClass="form-control" runat="server" MaxLength="30"></asp:TextBox>
|
||||
<label for="<%= TxtTiempoEstimado.ClientID.ToString()%>">Tiempo Estimado(Horas):</label>
|
||||
<asp:RequiredFieldValidator ID="rfvTxtTiempoEstimado" runat="server" ControlToValidate="TxtTiempoEstimado" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Desarrollo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:FilteredTextBoxExtender ID="FilTxtTiempoEstimado" runat="server" FilterType="Numbers" InvalidChars=".-/," TargetControlID="TxtTiempoEstimado" />
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
<%--<div class="form-group form-md-line-input input-iconright">
|
||||
<label class="col-md-3" for="<%= DdlEstado.ClientID.ToString()%>"> Estado:</label>
|
||||
<asp:DropDownList ID="DdlEstado" runat="server" CssClass="select2me" Width="200" DataValueField="CveDesarrolloEstado" DataTextField="DesarrolloEstado" >
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfvDdlEstado" Enabled="false" runat="server" InitialValue="-1" ControlToValidate="DdlEstado" Display="None" ErrorMessage="El campo <b>''Estado''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="rfvcDdlEstado" Enabled="false" runat="server" TargetControlID="rfvDdlEstado" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>--%>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= ChkFManual.ClientID.ToString()%>">Manual:</label>
|
||||
<asp:CheckBox ID="ChkFManual" CssClass="form-control" runat="server" MaxLength="30"></asp:CheckBox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-6" id="DVAsignacion" runat="server" visible="false">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title font-green">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-indent font-green"></i><span class="caption-subject bold uppercase">Asignación/Adjuntos</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body rowpadding">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<label class="col-md-3" for="<%= DdlUsuarioDes.ClientID.ToString()%>">Desarrollador:</label>
|
||||
<asp:DropDownList ID="DdlUsuarioDes" runat="server" CssClass="select2me" Width="200" DataValueField="CveUsuario" DataTextField="Nombre"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfvDdlUsuario" Enabled="false" runat="server" InitialValue="-1" ControlToValidate="DdlUsuarioDes" Display="None" ErrorMessage="El campo <b>''Usuario''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="rfvcDdlUsuario" Enabled="false" runat="server" TargetControlID="rfvDdlUsuario" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<label class="col-md-3" for="<%= DdlUsuarioPruebas.ClientID.ToString()%>">Tester</label>
|
||||
<asp:DropDownList ID="DdlUsuarioPruebas" runat="server" CssClass="select2me" Width="200" DataValueField="CveUsuario" DataTextField="Nombre"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfvDdlUsuarioPruebas" Enabled="false" runat="server" InitialValue="-1" ControlToValidate="DdlUsuarioPruebas" Display="None" ErrorMessage="El campo <b>''Usuario pruebas''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="rfvcDdlUsuarioPruebas" Enabled="false" runat="server" TargetControlID="rfvDdlUsuarioPruebas" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 ">
|
||||
|
||||
<div class="col-md-6" id="DVFormatoTecnico" runat="server" visible="false">
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title font-green">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-indent font-green"></i><span class="caption-subject bold uppercase">Formato Técnico</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
<asp:UpdatePanel ID="UpFT" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="Widthall">
|
||||
<div class="Widthall" style="text-align: right">
|
||||
<asp:LinkButton ID="LnkAgregarTarea" runat="server" CssClass="btn btn-circle green btn-outline btn-sm"><i class="fa fa-plus"></i> Agregar</asp:LinkButton>
|
||||
</div>
|
||||
|
||||
<asp:GridView ID="GvFTTareas" ShowHeaderWhenEmpty="true" DataKeyNames="CveDesarrolloDetalle,CveDesarrolloDetalleTipo,Descripcion,DesarrolloDetalleTipo,CvePrioridad" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros de Tareas" ShowHeader="true"
|
||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
|
||||
<asp:TemplateField HeaderText="Tarea" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblDesarrollo" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="Prioridad" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblPrioridad" runat="server" Text='<%# Eval("CvePrioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Estado" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="40">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID = "LnkEstatus" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass=" blue" OnClientClick="return false;" Text ='<%# If((Eval("Estatus").ToString = "True"), ("<i class=""fa fa-check-square-o""></i> "), ("")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="" ItemStyle-Width="80">
|
||||
<ItemTemplate>
|
||||
|
||||
|
||||
|
||||
<asp:LinkButton ID = "imgE" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="Edit_Click" Text="<i class='fa fa-pencil'></i>" />
|
||||
<asp:LinkButton ID = "imgD" Width="28" runat="server" AlternateText="Eliminar" OnClick="Delete_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
|
||||
<div class="Widthall">
|
||||
<div class="Widthall" style="text-align: right">
|
||||
<asp:LinkButton ID="LnkAgregarComprovaciones" runat="server" CssClass="btn btn-circle green btn-outline btn-sm"><i class="fa fa-plus"></i>Agregar</asp:LinkButton>
|
||||
</div>
|
||||
<asp:GridView ID="GvFTComprobaciones" ShowHeaderWhenEmpty="true" DataKeyNames="CveDesarrolloDetalle,CveDesarrolloDetalleTipo,Descripcion,DesarrolloDetalleTipo,CvePrioridad" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros de Comprobación" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Comprobación" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblDesarrollo" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="Prioridad" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblPrioridad" runat="server" Text='<%# Eval("CvePrioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="Estado" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="40">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID = "LnkEstatus" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass=" blue" OnClientClick="return false;" Text ='<%# If((Eval("Estatus").ToString = "True"), ("<i class=""fa fa-check-square-o""></i> "), ("")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="" ItemStyle-Width="80">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="imgE" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="Edit_Click" Text="<i class='fa fa-pencil'></i>" />
|
||||
<asp:LinkButton ID="imgD" Width="28" runat="server" AlternateText="Eliminar" OnClick="Delete_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
|
||||
<div class="Widthall">
|
||||
<div class="Widthall" style="text-align: right">
|
||||
<asp:LinkButton ID="LnkAgregarRecomendaciones" runat="server" CssClass="btn btn-circle green btn-outline btn-sm"><i class="fa fa-plus"></i> Agregar</asp:LinkButton>
|
||||
</div>
|
||||
<asp:GridView ID="GvFTRecomendaciones" ShowHeaderWhenEmpty="true" DataKeyNames="CveDesarrolloDetalle,CveDesarrolloDetalleTipo,Descripcion,DesarrolloDetalleTipo,CvePrioridad" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros de Recomendación" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Sugerencia" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblDesarrollo" runat="server" Text='<%# Eval("CvePrioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="" ItemStyle-Width="80">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="imgE" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="Edit_Click" Text="<i class='fa fa-pencil'></i>" />
|
||||
<asp:LinkButton ID="imgD" Width="28" runat="server" AlternateText="Eliminar" OnClick="Delete_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-6" id="DVPruebas" runat="server" visible="false">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title font-green">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-indent font-green"></i><span class="caption-subject bold uppercase">Pruebas</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
<div class="Widthall">
|
||||
<div class="Widthall" style="text-align: right">
|
||||
<asp:LinkButton ID="LnkAgregarPruebaBasica" CssClass="btn btn-circle green btn-outline btn-sm" runat="server"><i class="fa fa-plus"></i>Agregar</asp:LinkButton>
|
||||
</div>
|
||||
<asp:GridView ID="GvPruebasBasicas" ShowHeaderWhenEmpty="true" DataKeyNames="CveDesarrolloDetalle,CveDesarrolloDetalleTipo,Descripcion,DesarrolloDetalleTipo,CvePrioridad" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros de Pruebas Basicas" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Prueba basica" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblDesarrollo" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Prioridad" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblPrioridad" runat="server" Text='<%# Eval("CvePrioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="P1" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="40">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID = "LnkP1" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass=" blue" OnClientClick="return false;" Text ='<%# If((Eval("P1").ToString = "True"), ("<i class=""fa fa-check-square-o""></i> "), ("")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="P2" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="40">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID = "P2" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass=" blue" OnClientClick="return false;" Text ='<%# If((Eval("P2").ToString = "True"), ("<i class=""fa fa-check-square-o""></i> "), ("")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="P3" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="40">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID = "LnkP3" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass=" blue" OnClientClick="return false;" Text ='<%# If((Eval("P3").ToString = "True"), ("<i class=""fa fa-check-square-o""></i> "), ("")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="" ItemStyle-Width="80">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="imgE" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="Edit_Click" Text="<i class='fa fa-pencil'></i>" />
|
||||
<asp:LinkButton ID="imgD" Width="28" runat="server" AlternateText="Eliminar" OnClick="Delete_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
|
||||
<div class="Widthall">
|
||||
<div class="Widthall" style="text-align: right">
|
||||
<asp:LinkButton ID="LnkAgregarPruebaEspecifica" CssClass="btn btn-circle green btn-outline btn-sm" runat="server"><i class="fa fa-plus"></i> Agregar</asp:LinkButton>
|
||||
</div>
|
||||
<asp:GridView ID="GvPruebaspecificas" ShowHeaderWhenEmpty="true" DataKeyNames="CveDesarrolloDetalle,CveDesarrolloDetalleTipo,Descripcion,DesarrolloDetalleTipo,CvePrioridad" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros de Pruebas Especificas" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Prueba especifica" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblDesarrollo" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Prioridad" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblPrioridad" runat="server" Text='<%# Eval("CvePrioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="P1" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="40">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID = "LnkP1" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass=" blue" OnClientClick="return false;" Text ='<%# If((Eval("P1").ToString = "True"), ("<i class=""fa fa-check-square-o""></i> "), ("")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="P2" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="40">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID = "P2" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass=" blue" OnClientClick="return false;" Text ='<%# If((Eval("P2").ToString = "True"), ("<i class=""fa fa-check-square-o""></i> "), ("")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="P3" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="40">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID = "LnkP3" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass=" blue" OnClientClick="return false;" Text ='<%# If((Eval("P3").ToString = "True"), ("<i class=""fa fa-check-square-o""></i> "), ("")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="" ItemStyle-Width="80">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="imgE" Width="28" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="Edit_Click" Text="<i class='fa fa-pencil'></i>" />
|
||||
<asp:LinkButton ID="imgD" Width="28" runat="server" AlternateText="Eliminar" OnClick="Delete_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 ">
|
||||
<div class="col-md-6" id="DVAdjuntos" runat="server" visible="false">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title font-green">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-indent font-green"></i><span class="caption-subject bold uppercase">Adjuntos</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body rowpadding">
|
||||
<div class="Widthall">
|
||||
<div class="Widthall" style="text-align: right">
|
||||
<asp:LinkButton ID="LnkAgregarAdjunto" CssClass="btn btn-circle green btn-outline btn-sm" runat="server"><i class="fa fa-plus"></i>Agregar</asp:LinkButton>
|
||||
</div>
|
||||
|
||||
<asp:UpdatePanel ID="UpAdjunto" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvAdjuntos" ShowHeaderWhenEmpty="true" DataKeyNames="CveDesarrolloAdjunto,CveDesarrollo,DesarrolloAdjunto,DesarrolloAdjuntoArchivo,CveUsuario" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron adjuntos" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Adjunto" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblAdjunto" runat="server" Text='<%# Eval("DesarrolloAdjunto")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="archivo" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblAdjuntoArchivo" runat="server" Text='<%# Eval("DesarrolloAdjuntoArchivo")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="80">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="" ItemStyle-Width="125">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="ImgDO" runat="server" Width="28" AlternateText="Descargar" OnClick="DowloadAdjunto_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-cloud-download'></i>"></asp:LinkButton>
|
||||
<asp:LinkButton ID="imgE" Width="28" runat="server" AlternateText="Editar" OnClick="EditAdjunto_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||
<asp:LinkButton ID="ImgD" Width="28" runat="server" AlternateText="Eliminar" OnClick="DeleteAdjunto_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<AlternatingRowStyle />
|
||||
<RowStyle />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
<asp:UpdatePanel ID="UpGuardar" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row" style="text-align:center!important">
|
||||
<asp:LinkButton ID="LnkGuardar" runat="server" Text ="Guardar" CssClass="btn btn-primary" ValidationGroup="GrpGuardar"></asp:LinkButton>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
|
||||
<div id="DivModalHojaTecnica" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog" style="width: 450px;">
|
||||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalHojaTecnica" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal"></button>
|
||||
<h4 class="modal-title">
|
||||
<asp:Literal ID="LtlTituloModalHojaTecnica" runat="server"></asp:Literal></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= txtModalHojaTecnica.ClientID.ToString()%>">
|
||||
<asp:Literal ID="LtltxtModalHojaTecnica" runat="server"></asp:Literal>
|
||||
</label>
|
||||
<asp:TextBox ID="txtModalHojaTecnica" CssClass="form-control" runat="server" onkeyDown="checkTextAreaMaxLength(this,event,'500');" Rows="2" TextMode="MultiLine" ValidationGroup="grpFormatoTecnico" CausesValidation="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfvtxtModalHojaTecnica" runat="server" ControlToValidate="txtModalHojaTecnica" CssClass="help-block errorimput"
|
||||
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="grpFormatoTecnico"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
|
||||
<div id="DvHojaTecnicaPrioridad" runat="server" class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtHojaTecnicaPrioridad.ClientID.ToString()%>">Prioridad</label>
|
||||
<asp:TextBox ID="TxtHojaTecnicaPrioridad" runat="server" CssClass="form-control"></asp:TextBox>
|
||||
|
||||
<asp:RequiredFieldValidator ID="RfvTxtHojaTecnicaPrioridad" runat="server" ControlToValidate="TxtHojaTecnicaPrioridad" CssClass="help-block errorimput"
|
||||
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="grpFormatoTecnico"></asp:RequiredFieldValidator>
|
||||
<ajax:FilteredTextBoxExtender ID="FilTxtHojaTecnicaPrioridad" TargetControlID="TxtHojaTecnicaPrioridad" runat="server" FilterType="Numbers" InvalidChars="-.+," />
|
||||
</div>
|
||||
|
||||
<%-- <div id="DvHojaTecnicaPrioridad" runat="server" class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= DdlHojaTecnicaPrioridad.ClientID.ToString()%>">Prioridad</label>
|
||||
<asp:DropDownList ID="DdlHojaTecnicaPrioridad" runat="server" CssClass="form-control select2me">
|
||||
<asp:ListItem Value="-1" Selected="True">Seleccione una</asp:ListItem>
|
||||
<asp:ListItem Value="1">Baja</asp:ListItem>
|
||||
<asp:ListItem Value="2">Media</asp:ListItem>
|
||||
<asp:ListItem Value="3">Alta</asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RfvDdlPruebasHojaTecnica" Enabled="false" runat="server" InitialValue="-1" ControlToValidate="DdlHojaTecnicaPrioridad" Display="None" ErrorMessage="El campo <b>''Modulo''</b> es necesario, por favor ingreselo." ValidationGroup="grpFormatoTecnico"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="RfvcDdlPruebasHojaTecnica" Enabled="false" runat="server" TargetControlID="RfvDdlPruebasHojaTecnica" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>--%>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:CheckBox Id="ChkModalHojaTecnicaContinua" runat="Server" Text ="Continuar agregando" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:LinkButton ID="LnkModalHojaTecnica" cssClass="btn btn-success" runat="server" ValidationGroup="grpFormatoTecnico" >Agregar</asp:LinkButton>
|
||||
<button id="btnCancelarHojaTecnica" runat="server" type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="DivModalPruebas" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog" style="width: 450px;">
|
||||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalPruebas" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal"></button>
|
||||
<h4 class="modal-title">
|
||||
<asp:Literal ID="LlTituloModalPruebas" runat="server"></asp:Literal></h4>
|
||||
</div>
|
||||
<div class="modal-body ">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtModalPruebas.ClientID.ToString()%>">
|
||||
<asp:Literal ID="LtlTxtModalPruebas" runat="server"></asp:Literal>
|
||||
</label>
|
||||
<asp:TextBox ID="TxtModalPruebas" CssClass="form-control" onkeyDown="checkTextAreaMaxLength(this,event,'500');" Rows="2" TextMode="MultiLine" runat="server" ValidationGroup="grpFormatoPruebas" CausesValidation="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfvTxtModalPruebas" runat="server" ControlToValidate="TxtModalPruebas" CssClass="help-block errorimput"
|
||||
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="grpFormatoPruebas"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtPruebasPrioridad.ClientID.ToString()%>">Prioridad</label>
|
||||
<asp:TextBox ID="TxtPruebasPrioridad" runat="server" CssClass="form-control"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtPruebasPrioridad" runat="server" ControlToValidate="TxtPruebasPrioridad" CssClass="help-block errorimput"
|
||||
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="grpFormatoPruebas"></asp:RequiredFieldValidator>
|
||||
<ajax:FilteredTextBoxExtender ID="FilTxtPruebasPrioridad" TargetControlID="TxtPruebasPrioridad" runat="server" FilterType="Numbers" InvalidChars="-.+," />
|
||||
</div>
|
||||
|
||||
|
||||
<%-- <div class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= DdlPruebasPrioridad.ClientID.ToString()%>">Prioridad</label>
|
||||
<asp:DropDownList ID="DdlPruebasPrioridad" runat="server" CssClass="form-control select2me">
|
||||
<asp:ListItem Value="-1" Selected="True">Seleccione una</asp:ListItem>
|
||||
<asp:ListItem Value="1">Baja</asp:ListItem>
|
||||
<asp:ListItem Value="2">Media</asp:ListItem>
|
||||
<asp:ListItem Value="3">Alta</asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RfvDdlPruebasPrioridad" Enabled="false" runat="server" InitialValue="-1" ControlToValidate="DdlPruebasPrioridad" Display="None" ErrorMessage="El campo <b>''Modulo''</b> es necesario, por favor ingreselo." ValidationGroup="grpFormatoPruebas"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="RfvcDdlPruebasPrioridad" Enabled="false" runat="server" TargetControlID="RfvDdlPruebasPrioridad" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>--%>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:CheckBox Id="ChkModalPruebasContinua" runat="Server" Text ="Continuar agregando" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:LinkButton ID="LnkModalPruebas" CssClass="btn btn-success" runat="server" ValidationGroup="grpFormatoPruebas">Agregar</asp:LinkButton>
|
||||
<button id="btnCacelarPruebas" runat="server" type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ModalUploadAdjunto" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">
|
||||
<asp:UpdatePanel ID="UpModalTitleUploadDocumentoAntidoping" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Literal ID="LtlModalTitleAdjunto" runat="server">Adjuntos </asp:Literal>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
|
||||
<asp:UpdatePanel runat="server" ID="UpModalUploaAdjunto" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtAdjunto.ClientID.ToString()%>">Adjunto</label>
|
||||
<asp:TextBox ID="TxtAdjunto" runat="server" CausesValidation="true" MaxLength="50" Visible="true" Width="400px" CssClass="form-control"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfvTxtResPuestaReferencias" runat="server" ControlToValidate="TxtAdjunto" Display="None" ErrorMessage="Campo requerido" ValidationGroup="GrpGuararAdjunto"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<asp:TextBox ID="TxtFileAdjunto" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnModalAdjuntoUpload" runat="server" ClientIDMode="Static" Text="Guardar" ValidationGroup="GrpGuararAdjunto" CssClass="btn btn-primary" />
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" Runat="Server">
|
||||
<script>
|
||||
function checkTextAreaMaxLength(textBox, e, length) {
|
||||
|
||||
var mLen = textBox["MaxLength"];
|
||||
if (null == mLen)
|
||||
mLen = length;
|
||||
|
||||
var maxLength = parseInt(mLen);
|
||||
if (!checkSpecialKeys(e)) {
|
||||
if (textBox.value.length > maxLength - 1) {
|
||||
if (window.event)//IE
|
||||
e.returnValue = false;
|
||||
else//Firefox
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
function checkSpecialKeys(e) {
|
||||
if (e.keyCode != 8 && e.keyCode != 46 && e.keyCode != 37 && e.keyCode != 38 && e.keyCode != 39 && e.keyCode != 40)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
850
OI/Desarrollo.aspx.vb
Normal file
850
OI/Desarrollo.aspx.vb
Normal file
@@ -0,0 +1,850 @@
|
||||
Option Strict On
|
||||
|
||||
Imports Extensiones
|
||||
Imports System.Data
|
||||
Imports System.IO
|
||||
|
||||
|
||||
|
||||
Partial Class OI_Desarrollo
|
||||
Inherits ClsPaginas
|
||||
|
||||
Property CveEvento As Integer
|
||||
Get
|
||||
If ViewState("CveEvento") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("CveEvento"), Integer)
|
||||
End If
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
ViewState("CveEvento") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property CveDesarrollo As Integer
|
||||
Get
|
||||
If ViewState("CveDesarrollo") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("CveDesarrollo"), Integer)
|
||||
End If
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
ViewState("CveDesarrollo") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'CveDesarrolloDetalle
|
||||
Property CveDesarrolloDetalle As Integer
|
||||
Get
|
||||
If ViewState("CveDesarrolloDetalle") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("CveDesarrolloDetalle"), Integer)
|
||||
End If
|
||||
End Get
|
||||
|
||||
Set(value As Integer)
|
||||
ViewState("CveDesarrolloDetalle") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property CveDesarrolloDetalleTipo As Integer
|
||||
Get
|
||||
If ViewState("CveDesarrolloTareaTipo") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("CveDesarrolloTareaTipo"), Integer)
|
||||
End If
|
||||
End Get
|
||||
|
||||
Set(value As Integer)
|
||||
ViewState("CveDesarrolloTareaTipo") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property DesarrolloDetalleTipo As String
|
||||
Get
|
||||
If ViewState("DesarrolloTareaTipo") Is Nothing Then
|
||||
Return "-1"
|
||||
Else
|
||||
Return ViewState("DesarrolloTareaTipo").ToString
|
||||
End If
|
||||
End Get
|
||||
Set(value As String)
|
||||
ViewState("DesarrolloTareaTipo") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Property CveUsuarioResponsable As Integer
|
||||
Get
|
||||
If ViewState("CveUsuarioResponsable") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("CveUsuarioResponsable"), Integer)
|
||||
End If
|
||||
End Get
|
||||
|
||||
Set(value As Integer)
|
||||
ViewState("CveUsuarioResponsable") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Property CveUsuarioAsignado As Integer
|
||||
Get
|
||||
If ViewState("CveUsuarioAsignado") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("CveUsuarioAsignado"), Integer)
|
||||
End If
|
||||
End Get
|
||||
|
||||
Set(value As Integer)
|
||||
ViewState("CveUsuarioAsignado") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property CveUsuarioPruebas As Integer
|
||||
Get
|
||||
If ViewState("CveUsuarioPruebas") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("CveUsuarioPruebas"), Integer)
|
||||
End If
|
||||
End Get
|
||||
|
||||
Set(value As Integer)
|
||||
ViewState("CveUsuarioPruebas") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Property Bloquear As Boolean
|
||||
Get
|
||||
If ViewState("Bloquear") Is Nothing Then
|
||||
Return False
|
||||
Else
|
||||
Return DirectCast(ViewState("Bloquear"), Boolean)
|
||||
End If
|
||||
End Get
|
||||
|
||||
Set(value As Boolean)
|
||||
ViewState("Bloquear") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
|
||||
#Region "Adjunto"
|
||||
Property CveDesarrolloAdjunto As Integer
|
||||
Get
|
||||
If ViewState("CveDesarrolloAdjunto") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("CveDesarrolloAdjunto"), Integer)
|
||||
End If
|
||||
End Get
|
||||
|
||||
Set(value As Integer)
|
||||
ViewState("CveDesarrolloAdjunto") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Property DesarrolloAdjunto As String
|
||||
Get
|
||||
If ViewState("DesarrolloAdjunto") Is Nothing Then
|
||||
Return "-1"
|
||||
Else
|
||||
Return ViewState("DesarrolloAdjunto").ToString
|
||||
End If
|
||||
End Get
|
||||
|
||||
Set(value As String)
|
||||
ViewState("DesarrolloAdjunto") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property DesarrolloAdjuntoArchivo As String
|
||||
Get
|
||||
If ViewState("DesarrolloAdjuntoArchivo") Is Nothing Then
|
||||
Return "-1"
|
||||
Else
|
||||
Return ViewState("DesarrolloAdjuntoArchivo").ToString
|
||||
End If
|
||||
End Get
|
||||
|
||||
Set(value As String)
|
||||
ViewState("DesarrolloAdjuntoArchivo") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
Private Sub OI_Desarrollo_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
|
||||
If Not Page.IsPostBack Then
|
||||
|
||||
|
||||
CargaCombos()
|
||||
|
||||
If Request.QueryString("CveEvento") <> Nothing Then
|
||||
CveEvento = Request.QueryString("CveEvento").ToEntero
|
||||
Else
|
||||
CveEvento = -1
|
||||
End If
|
||||
|
||||
If Request.QueryString("CveDesarrollo") <> Nothing Then
|
||||
|
||||
CveDesarrollo = Request.QueryString("CveDesarrollo").ToEntero
|
||||
CargaDesarrollo()
|
||||
CargaDesarrolloDetalles()
|
||||
CargaAdjuntos()
|
||||
|
||||
DVPruebas.Visible = True
|
||||
DVFormatoTecnico.Visible = True
|
||||
DVAdjuntos.Visible = True
|
||||
DVAsignacion.Visible = True
|
||||
LnkGuardar.Text = "Actualizar"
|
||||
|
||||
LnkWizard.Visible = True
|
||||
LnkWizard.PostBackUrl = $"./DesarrolloWizard.aspx?CveDesarrollo={CveDesarrollo}"
|
||||
|
||||
If Bloquear Then
|
||||
BloquearTodo()
|
||||
End If
|
||||
|
||||
Else
|
||||
CveDesarrollo = -1
|
||||
DVPruebas.Visible = False
|
||||
DVFormatoTecnico.Visible = False
|
||||
DVAdjuntos.Visible = False
|
||||
DVAsignacion.Visible = False
|
||||
LnkGuardar.Text = "Guardar"
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
Private Sub CargaDesarrollo()
|
||||
|
||||
If CveDesarrollo > 0 Then
|
||||
|
||||
Dim objDesarrolo As New ClsDesarrollo
|
||||
|
||||
If objDesarrolo.DesarrolloGet(CveDesarrollo, -1, -1, -1, -1, -1, "-1", -1, -1, -1) Then
|
||||
|
||||
If objDesarrolo.DtResultados.Rows.Count > 0 Then
|
||||
|
||||
TxtDesarrollo.Text = objDesarrolo.DtResultados(0)("Desarrollo").ToString
|
||||
LblTitulo.Text = $"Desarrollo: {objDesarrolo.DtResultados(0)("Desarrollo").ToString}"
|
||||
UpTitulo.Update()
|
||||
|
||||
TxtDescripcion.Text = objDesarrolo.DtResultados(0)("Descripcion").ToString
|
||||
CveUsuarioResponsable = objDesarrolo.DtResultados(0)("CveUsuarioResponsable").ToString.ToEntero
|
||||
CveUsuarioAsignado = objDesarrolo.DtResultados(0)("CveUsuarioAsignado").ToString.ToEntero
|
||||
CveUsuarioPruebas = objDesarrolo.DtResultados(0)("CveUsuarioPruebas").ToString.ToEntero
|
||||
|
||||
If Not objDesarrolo.DtResultados(0)("CveUsuarioAsignado").ToString = "" Then
|
||||
DdlUsuarioDes.SelectedValueExist(objDesarrolo.DtResultados(0)("CveUsuarioAsignado").ToString.ToEntero)
|
||||
End If
|
||||
|
||||
If Not objDesarrolo.DtResultados(0)("CveUsuarioPruebas").ToString = "" Then
|
||||
DdlUsuarioPruebas.SelectedValueExist(objDesarrolo.DtResultados(0)("CveUsuarioPruebas").ToString.ToEntero)
|
||||
End If
|
||||
|
||||
DdlModulo.SelectedValueExist(objDesarrolo.DtResultados(0)("CveModulo").ToString.ToEntero)
|
||||
TxtTiempoEstimado.Text = objDesarrolo.DtResultados(0)("TiempoEstimado").ToString
|
||||
' DdlEstado.SelectedValueExist(objDesarrolo.DtResultados(0)("CveDesarrolloEstado").ToString)
|
||||
ChkFManual.Checked = If(Boolean.Parse(objDesarrolo.DtResultados(0)("Manual").ToString), True, False)
|
||||
|
||||
If UsuarioActual.CveUsuario <> objDesarrolo.DtResultados(0)("CveUsuarioResponsable").ToString.ToEntero Then
|
||||
Bloquear = True
|
||||
Else
|
||||
Bloquear = False
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
End If
|
||||
objDesarrolo.Dispose()
|
||||
Else
|
||||
DdlUsuarioPruebas.SelectedValueExist(UsuarioActual.CveUsuario)
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
Private Sub BloquearTodo()
|
||||
|
||||
LnkGuardar.Visible = False
|
||||
'UpGuardar.Update()
|
||||
|
||||
|
||||
For Each GvRow As GridViewRow In GvAdjuntos.Rows
|
||||
GvRow.FCLinkButton("imgE").Visible = False
|
||||
GvRow.FCLinkButton("ImgD").Visible = False
|
||||
Next
|
||||
LnkAgregarAdjunto.Visible = False
|
||||
|
||||
For Each GvRow As GridViewRow In GvFTTareas.Rows
|
||||
GvRow.FCLinkButton("imgE").Visible = False
|
||||
GvRow.FCLinkButton("ImgD").Visible = False
|
||||
Next
|
||||
LnkAgregarTarea.Visible = False
|
||||
|
||||
|
||||
For Each GvRow As GridViewRow In GvFTTareas.Rows
|
||||
GvRow.FCLinkButton("imgE").Visible = False
|
||||
GvRow.FCLinkButton("ImgD").Visible = False
|
||||
Next
|
||||
LnkAgregarTarea.Visible = False
|
||||
|
||||
|
||||
For Each GvRow As GridViewRow In GvFTComprobaciones.Rows
|
||||
GvRow.FCLinkButton("imgE").Visible = False
|
||||
GvRow.FCLinkButton("ImgD").Visible = False
|
||||
Next
|
||||
LnkAgregarComprovaciones.Visible = False
|
||||
|
||||
For Each GvRow As GridViewRow In GvFTRecomendaciones.Rows
|
||||
GvRow.FCLinkButton("imgE").Visible = False
|
||||
GvRow.FCLinkButton("ImgD").Visible = False
|
||||
Next
|
||||
LnkAgregarRecomendaciones.Visible = False
|
||||
|
||||
For Each GvRow As GridViewRow In GvPruebasBasicas.Rows
|
||||
GvRow.FCLinkButton("imgE").Visible = False
|
||||
GvRow.FCLinkButton("ImgD").Visible = False
|
||||
Next
|
||||
LnkAgregarPruebaBasica.Visible = False
|
||||
|
||||
|
||||
For Each GvRow As GridViewRow In GvPruebaspecificas.Rows
|
||||
GvRow.FCLinkButton("imgE").Visible = False
|
||||
GvRow.FCLinkButton("ImgD").Visible = False
|
||||
Next
|
||||
LnkAgregarPruebaEspecifica.Visible = False
|
||||
|
||||
|
||||
'GvFTComprobaciones
|
||||
' UpAdjunto.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub CargaCombos()
|
||||
|
||||
DdlUsuarioDes.DataSource = GlobalDTUsuarios(-1, 2)
|
||||
DdlUsuarioDes.DataBind()
|
||||
DdlUsuarioDes.Items.Insert(0, New ListItem("Selecione uno", "-1"))
|
||||
|
||||
DdlUsuarioPruebas.DataSource = GlobalDTUsuarios(-1, 2)
|
||||
DdlUsuarioPruebas.DataBind()
|
||||
DdlUsuarioPruebas.Items.Insert(0, New ListItem("Selecione uno", "-1"))
|
||||
|
||||
DdlModulo.DataSource = GlobalDTModulos()
|
||||
DdlModulo.DataBind()
|
||||
DdlModulo.Items.Insert(0, New ListItem("Selecione uno", "-1"))
|
||||
|
||||
CargaComboEstados()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaComboEstados()
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
Dim DTEstados As New DataTable
|
||||
|
||||
If ObjDesarrollo.DesarrolloEstadosGet(1) Then
|
||||
|
||||
'DTEstados = ObjDesarrollo.DtResultados
|
||||
'DdlEstado.DataSource = DTEstados
|
||||
'DdlEstado.DataBind()
|
||||
'DdlEstado.Items.Insert(0, New ListItem("Seleccione uno", "-1"))
|
||||
|
||||
End If
|
||||
DTEstados.Dispose()
|
||||
ObjDesarrollo.Dispose()
|
||||
End Sub
|
||||
|
||||
Private Sub LnkGuardar_Click(sender As Object, e As EventArgs) Handles LnkGuardar.Click
|
||||
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
Dim FechaTermino As Date = Nothing
|
||||
Dim Manual As Integer = If(ChkFManual.Checked, 1, 0)
|
||||
Dim FechaAsiganacion As Date = Nothing
|
||||
|
||||
|
||||
If CveDesarrollo = -1 Then
|
||||
|
||||
If ObjDesarrollo.DesarrolloAddUpdate(-1, TxtDesarrollo.Text.Trim, CveEvento, UsuarioActual.CveUsuario, DdlUsuarioPruebas.SelectedValue.ToEntero, DdlModulo.SelectedValue.ToEntero, TxtDescripcion.Text, DdlUsuarioDes.SelectedValue.ToEntero, Nothing, TxtTiempoEstimado.Text.ToEntero, 1, Manual, UsuarioActual.CveUsuario) Then
|
||||
CveDesarrollo = ObjDesarrollo.DtResultados(0)(0).ToString.ToEntero
|
||||
Response.Redirect($"./Desarrollo.aspx?CveDesarrollo={CveDesarrollo}")
|
||||
' Alert("El desarrollo se agrego correctamente", TipoMensaje.MsgInformacion, $"href='.Desarrollo.aspx?CveDesarrollo={CveDesarrollo}'")
|
||||
Else
|
||||
Alert("Se presento un error al agregar el desarrollo", TipoMensaje.MsgError)
|
||||
End If
|
||||
Else
|
||||
Dim _CveEstadoTemp As Integer = -1
|
||||
If DdlUsuarioDes.SelectedValue.ToEntero <> CveUsuarioAsignado Then
|
||||
FechaAsiganacion = Now
|
||||
_CveEstadoTemp = 2
|
||||
End If
|
||||
|
||||
If ObjDesarrollo.DesarrolloAddUpdate(CveDesarrollo, TxtDesarrollo.Text.Trim, CveEvento, UsuarioActual.CveUsuario, DdlUsuarioPruebas.SelectedValue.ToEntero, DdlModulo.SelectedValue.ToEntero, TxtDescripcion.Text, DdlUsuarioDes.SelectedValue.ToEntero, FechaAsiganacion, TxtTiempoEstimado.Text.ToEntero, _CveEstadoTemp, Manual, UsuarioActual.CveUsuario, FechaTermino) Then
|
||||
Alert("El desarrollo se actualizo correctamente.")
|
||||
Else
|
||||
Alert("Se presento un error al actualizar el desarrollo", TipoMensaje.MsgError)
|
||||
End If
|
||||
End If
|
||||
|
||||
If CveDesarrollo > 0 Then
|
||||
|
||||
End If
|
||||
|
||||
ObjDesarrollo.Dispose()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub MuestraModalformatoTecnico(Tipo As Integer)
|
||||
|
||||
CveDesarrolloDetalle = -1
|
||||
LnkModalHojaTecnica.Text = "Guardar"
|
||||
|
||||
Select Case Tipo
|
||||
Case 1
|
||||
LtlTituloModalHojaTecnica.Text = "Agregar Tarea"
|
||||
LtltxtModalHojaTecnica.Text = "Tarea"
|
||||
TxtHojaTecnicaPrioridad.Text = ""
|
||||
DvHojaTecnicaPrioridad.Visible = True
|
||||
Exit Select
|
||||
Case 2
|
||||
LtlTituloModalHojaTecnica.Text = "Agregar Comprobación"
|
||||
LtltxtModalHojaTecnica.Text = "Comprobación"
|
||||
TxtHojaTecnicaPrioridad.Text = ""
|
||||
DvHojaTecnicaPrioridad.Visible = True
|
||||
Exit Select
|
||||
Case 3
|
||||
LtlTituloModalHojaTecnica.Text = "Agregar Recomendación"
|
||||
LtltxtModalHojaTecnica.Text = "Recomendación"
|
||||
TxtHojaTecnicaPrioridad.Text = ""
|
||||
DvHojaTecnicaPrioridad.Visible = False
|
||||
Exit Select
|
||||
End Select
|
||||
|
||||
ChkModalHojaTecnicaContinua.Visible = True
|
||||
txtModalHojaTecnica.Text = ""
|
||||
RegistraScript("$('#DivModalHojaTecnica').modal({ backdrop: 'static', keyboard: false});", "MTareas")
|
||||
UpModalHojaTecnica.Update()
|
||||
End Sub
|
||||
|
||||
Private Sub MuestraModalFormatoPruebas(Tipo As Integer)
|
||||
|
||||
CveDesarrolloDetalle = -1
|
||||
LnkModalPruebas.Text = "Guardar"
|
||||
|
||||
Select Case Tipo
|
||||
Case 1
|
||||
LlTituloModalPruebas.Text = "Agregar Caso Basico"
|
||||
'TxtModalPruebas.Text = "Caso basico"
|
||||
TxtPruebasPrioridad.Text = ""
|
||||
Exit Select
|
||||
Case 2
|
||||
LlTituloModalPruebas.Text = "Agregar Caso Especifico"
|
||||
'TxtModalPruebas.Text = "Caso Especifico"
|
||||
Exit Select
|
||||
End Select
|
||||
|
||||
ChkModalPruebasContinua.Visible = True
|
||||
TxtModalPruebas.Text = ""
|
||||
|
||||
RegistraScript("$('#DivModalPruebas').modal({ backdrop: 'static', keyboard: false});", "MTPruebas")
|
||||
|
||||
UpModalPruebas.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub LnkAgregarTarea_Click(sender As Object, e As EventArgs) Handles LnkAgregarTarea.Click
|
||||
|
||||
CveDesarrolloDetalleTipo = 1
|
||||
DesarrolloDetalleTipo = "Tarea"
|
||||
ChkModalHojaTecnicaContinua.Visible = True
|
||||
MuestraModalformatoTecnico(1)
|
||||
End Sub
|
||||
|
||||
Private Sub LnkAgregarComprovaciones_Click(sender As Object, e As EventArgs) Handles LnkAgregarComprovaciones.Click
|
||||
CveDesarrolloDetalleTipo = 2
|
||||
DesarrolloDetalleTipo = "Comprobación"
|
||||
ChkModalHojaTecnicaContinua.Visible = True
|
||||
MuestraModalformatoTecnico(2)
|
||||
End Sub
|
||||
|
||||
Private Sub LnkAgregarRecomendaciones_Click(sender As Object, e As EventArgs) Handles LnkAgregarRecomendaciones.Click
|
||||
CveDesarrolloDetalleTipo = 3
|
||||
DesarrolloDetalleTipo = "Recomendación"
|
||||
ChkModalHojaTecnicaContinua.Visible = True
|
||||
MuestraModalformatoTecnico(3)
|
||||
End Sub
|
||||
|
||||
Private Sub LnkAgregarPruebaBasica_Click(sender As Object, e As EventArgs) Handles LnkAgregarPruebaBasica.Click
|
||||
CveDesarrolloDetalleTipo = 4
|
||||
DesarrolloDetalleTipo = "Prueba basica"
|
||||
|
||||
MuestraModalFormatoPruebas(1)
|
||||
End Sub
|
||||
|
||||
Private Sub LnkAgregarPruebaEspecifica_Click(sender As Object, e As EventArgs) Handles LnkAgregarPruebaEspecifica.Click
|
||||
CveDesarrolloDetalleTipo = 5
|
||||
DesarrolloDetalleTipo = "Prueba especifica"
|
||||
|
||||
MuestraModalFormatoPruebas(2)
|
||||
End Sub
|
||||
|
||||
Private Sub LnkModalHojaTecnica_Click(sender As Object, e As EventArgs) Handles LnkModalHojaTecnica.Click
|
||||
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
|
||||
If ObjDesarrollo.DesarrolloDetalleAddUpdate(CveDesarrolloDetalle, CveDesarrollo, CveDesarrolloDetalleTipo, txtModalHojaTecnica.Text.Trim, "-1", 0, UsuarioActual.CveUsuario, -1, -1, -1, TxtHojaTecnicaPrioridad.Text.ToEntero) Then
|
||||
' Alert(" La " & DesarrolloDetalleTipo & " Se agregado correctamente")
|
||||
txtModalHojaTecnica.Focus()
|
||||
Else
|
||||
Alert("Se presento un erro al guarar la " & DesarrolloDetalleTipo, TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
txtModalHojaTecnica.Text = ""
|
||||
UpModalHojaTecnica.Update()
|
||||
|
||||
If Not ChkModalHojaTecnicaContinua.Checked Then
|
||||
RegistraScript("$('#DivModalHojaTecnica').modal('hide');", "MTareas")
|
||||
End If
|
||||
|
||||
CargaDesarrolloDetalles()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub LnkModalPruebas_Click(sender As Object, e As EventArgs) Handles LnkModalPruebas.Click
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
|
||||
If ObjDesarrollo.DesarrolloDetalleAddUpdate(CveDesarrolloDetalle, CveDesarrollo, CveDesarrolloDetalleTipo, TxtModalPruebas.Text.Trim, "-1", 0, UsuarioActual.CveUsuario, -1, -1, -1, TxtPruebasPrioridad.Text.ToEntero) Then
|
||||
'Alert(" La " & DesarrolloDetalleTipo & " Se agregado correctamente")
|
||||
Else
|
||||
Alert("Se presento un erro al guardar la " & DesarrolloDetalleTipo, TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
TxtModalPruebas.Text = ""
|
||||
UpModalPruebas.Update()
|
||||
If Not ChkModalPruebasContinua.Checked Then
|
||||
RegistraScript("$('#DivModalPruebas').modal('hide');", "MTPruebas")
|
||||
End If
|
||||
|
||||
CargaDesarrolloDetalles()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub CargaDesarrolloDetalles()
|
||||
If CveDesarrollo > 0 Then
|
||||
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
|
||||
If ObjDesarrollo.DesarrolloDetalleGet(-1, CveDesarrollo, -1, "-1", -1) Then
|
||||
|
||||
Dim DtDatosDetalles As New DataTable
|
||||
DtDatosDetalles = ObjDesarrollo.DtResultados
|
||||
|
||||
GvFTTareas.DataSource = DtDatosDetalles.FiltraParametros("CveDesarrolloDetalleTipo = 1")
|
||||
GvFTTareas.DataBind()
|
||||
GvFTComprobaciones.DataSource = DtDatosDetalles.FiltraParametros("CveDesarrolloDetalleTipo = 2")
|
||||
GvFTComprobaciones.DataBind()
|
||||
GvFTRecomendaciones.DataSource = DtDatosDetalles.FiltraParametros("CveDesarrolloDetalleTipo = 3")
|
||||
GvFTRecomendaciones.DataBind()
|
||||
|
||||
GvPruebasBasicas.DataSource = DtDatosDetalles.FiltraParametros("CveDesarrolloDetalleTipo = 4")
|
||||
GvPruebasBasicas.DataBind()
|
||||
GvPruebaspecificas.DataSource = DtDatosDetalles.FiltraParametros("CveDesarrolloDetalleTipo = 5")
|
||||
GvPruebaspecificas.DataBind()
|
||||
Else
|
||||
GvFTTareas.DataSource = Nothing
|
||||
GvFTTareas.DataBind()
|
||||
GvFTComprobaciones.DataSource = Nothing
|
||||
GvFTComprobaciones.DataBind()
|
||||
GvFTRecomendaciones.DataSource = Nothing
|
||||
GvFTRecomendaciones.DataBind()
|
||||
|
||||
GvPruebasBasicas.DataSource = Nothing
|
||||
GvPruebasBasicas.DataBind()
|
||||
GvPruebaspecificas.DataSource = Nothing
|
||||
GvPruebaspecificas.DataBind()
|
||||
|
||||
End If
|
||||
|
||||
UpGRal.Update()
|
||||
ObjDesarrollo.Dispose()
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Public Sub Edit_Click(sender As Object, e As EventArgs)
|
||||
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
|
||||
|
||||
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||
CveDesarrolloDetalle = GvRow.DataKey("CveDesarrolloDetalle").ToEntero
|
||||
CveDesarrolloDetalleTipo = GvRow.DataKey("CveDesarrolloDetalleTipo").ToEntero
|
||||
DesarrolloDetalleTipo = GvRow.DataKey("DesarrolloDetalleTipo")
|
||||
Dim Descripcion As String = If(CveDesarrolloDetalleTipo = 4 Or CveDesarrolloDetalleTipo = 5, TxtModalPruebas.Text.Trim, txtModalHojaTecnica.Text.Trim)
|
||||
|
||||
If CveDesarrolloDetalleTipo = 4 Or CveDesarrolloDetalleTipo = 5 Then
|
||||
TxtModalPruebas.Text = GvRow.DataKey("Descripcion")
|
||||
TxtPruebasPrioridad.Text = GvRow.DataKey("CvePrioridad")
|
||||
LlTituloModalPruebas.Text = "Actulizar " & DesarrolloDetalleTipo
|
||||
RegistraScript("$('#DivModalPruebas').modal({ backdrop: 'static', keyboard: false});", "MTPruebas")
|
||||
LnkModalPruebas.Text = "Actualizar"
|
||||
'DdlPruebasPrioridad.SelectedValueExist(GvRow.DataKey("CvePrioridad"))
|
||||
ChkModalPruebasContinua.Visible = False
|
||||
ChkModalPruebasContinua.Checked = False
|
||||
UpModalPruebas.Update()
|
||||
Else
|
||||
txtModalHojaTecnica.Text = GvRow.DataKey("Descripcion")
|
||||
|
||||
|
||||
If Not CveDesarrolloDetalleTipo = 3 Then
|
||||
TxtHojaTecnicaPrioridad.Text = GvRow.DataKey("CvePrioridad")
|
||||
End If
|
||||
|
||||
LtlTituloModalHojaTecnica.Text = "Actulizar " & DesarrolloDetalleTipo
|
||||
RegistraScript("$('#DivModalHojaTecnica').modal({ backdrop: 'static', keyboard: false});", "MTareas")
|
||||
LnkModalHojaTecnica.Text = "Actualizar"
|
||||
'DdlHojaTecnicaPrioridad.SelectedValueExist(GvRow.DataKey("CvePrioridad"))
|
||||
ChkModalHojaTecnicaContinua.Visible = False
|
||||
ChkModalHojaTecnicaContinua.Checked = False
|
||||
UpModalHojaTecnica.Update()
|
||||
End If
|
||||
|
||||
If CveDesarrolloDetalleTipo = 3 Then
|
||||
' DdlHojaTecnicaPrioridad.SelectedValue = "-1"
|
||||
DvHojaTecnicaPrioridad.Visible = False
|
||||
Else
|
||||
DvHojaTecnicaPrioridad.Visible = True
|
||||
End If
|
||||
|
||||
|
||||
|
||||
ObjDesarrollo.Dispose()
|
||||
End Sub
|
||||
|
||||
Public Sub Delete_Click(sender As Object, e As EventArgs)
|
||||
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
|
||||
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||
Dim _CveDesarrolloDetalle As Integer = GvRow.DataKey("CveDesarrolloDetalle").ToEntero
|
||||
|
||||
If ObjDesarrollo.DesarrolloDetalleRemove(_CveDesarrolloDetalle) Then
|
||||
'Alert("Se guardo elimino la " & DesarrolloDetalleTipo & " Correctamente.")
|
||||
Else
|
||||
Alert("Se presento un error al eliminar la " & DesarrolloDetalleTipo, TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
UpAdjunto.Update()
|
||||
ObjDesarrollo.Dispose()
|
||||
|
||||
CargaDesarrolloDetalles()
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub CargaAdjuntos()
|
||||
|
||||
|
||||
If CveDesarrollo > 0 Then
|
||||
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
|
||||
If ObjDesarrollo.DesarrolloAdjuntoGet(-1, CveDesarrollo, "-1") Then
|
||||
GvAdjuntos.DataSource = ObjDesarrollo.DtResultados
|
||||
GvAdjuntos.DataBind()
|
||||
Else
|
||||
GvAdjuntos.DataSource = Nothing
|
||||
GvAdjuntos.DataBind()
|
||||
End If
|
||||
|
||||
ObjDesarrollo.Dispose()
|
||||
UpAdjunto.Update()
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Public Sub EditAdjunto_Click(sender As Object, e As EventArgs)
|
||||
|
||||
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||
CveDesarrolloAdjunto = GvRow.DataKey("CveDesarrolloAdjunto").ToEntero
|
||||
TxtAdjunto.Text = GvRow.DataKey("DesarrolloAdjunto")
|
||||
DesarrolloAdjuntoArchivo = GvRow.DataKey("DesarrolloAdjuntoArchivo")
|
||||
TxtFileAdjunto.Text = ""
|
||||
ChkModalHojaTecnicaContinua.Visible = False
|
||||
UpModalUploaAdjunto.Update()
|
||||
RegistraScript("$('#ModalUploadAdjunto').modal({ backdrop: 'static', keyboard: false});", "MAdjuntos")
|
||||
|
||||
End Sub
|
||||
|
||||
Public Sub DowloadAdjunto_Click(sender As Object, e As EventArgs)
|
||||
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||
Dim _DesarrolloAdjuntoArchivo As String = GvRow.DataKey("DesarrolloAdjuntoArchivo")
|
||||
Dim RutaAdjunto As String = Server.MapPath("~/") & "Empresas\2\Desarrollo\Adjuntos\" & _DesarrolloAdjuntoArchivo
|
||||
Response.ClearContent()
|
||||
Response.Clear()
|
||||
Response.ContentType = "application/octet-stream"
|
||||
Response.AddHeader("Content-Disposition", $"attachment; filename={ _DesarrolloAdjuntoArchivo };")
|
||||
Response.TransmitFile(RutaAdjunto)
|
||||
Response.Flush()
|
||||
Response.End()
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Public Sub DeleteAdjunto_Click(sender As Object, e As EventArgs)
|
||||
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
|
||||
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||
CveDesarrolloAdjunto = GvRow.DataKey("CveDesarrolloAdjunto").ToEntero
|
||||
|
||||
Dim _DesarrolloAdjuntoArchivo As String = GvRow.DataKey("DesarrolloAdjuntoArchivo")
|
||||
Dim RutaAdjunto As String = Server.MapPath("~/") & "Empresas\2\Desarrollo\Adjuntos\" & _DesarrolloAdjuntoArchivo
|
||||
|
||||
If ObjDesarrollo.DesarrolloAdjuntoRemove(CveDesarrolloAdjunto) Then
|
||||
|
||||
If File.Exists(RutaAdjunto) Then
|
||||
File.Delete(RutaAdjunto)
|
||||
End If
|
||||
|
||||
Alert("Se elimino el adjunto Correctamente.")
|
||||
RegistraScript("$('#ModalUploadAdjunto').modal('hide');", "MAdjuntos")
|
||||
|
||||
CargaAdjuntos()
|
||||
|
||||
Else
|
||||
Alert("Se presento un error al eliminar el adjunto", TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
ObjDesarrollo.Dispose()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub LnkAgregarAdjunto_Click(sender As Object, e As EventArgs) Handles LnkAgregarAdjunto.Click
|
||||
|
||||
CveDesarrolloAdjunto = -1
|
||||
DesarrolloAdjuntoArchivo = "-1"
|
||||
|
||||
TxtAdjunto.Text = ""
|
||||
TxtFileAdjunto.Text = ""
|
||||
ChkModalHojaTecnicaContinua.Visible = False
|
||||
UpModalUploaAdjunto.Update()
|
||||
|
||||
RegistraScript("$('#ModalUploadAdjunto').modal({ backdrop: 'static', keyboard: false});", "MTPruebas")
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub BtnModalAdjuntoUpload_Click(sender As Object, e As EventArgs) Handles BtnModalAdjuntoUpload.Click
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
|
||||
|
||||
If ObjDesarrollo.DesarrolloAdjuntoAddUpdate(CveDesarrolloAdjunto, CveDesarrollo, TxtAdjunto.Text, DesarrolloAdjuntoArchivo, UsuarioActual.CveUsuario) Then
|
||||
|
||||
CveDesarrolloAdjunto = ObjDesarrollo.DtResultados(0)("CveDesarrolloAdjunto").ToString.ToEntero
|
||||
|
||||
GuardaDocumentoAdjunto()
|
||||
|
||||
ObjDesarrollo.DesarrolloAdjuntoAddUpdate(CveDesarrolloAdjunto, CveDesarrollo, TxtAdjunto.Text, DesarrolloAdjuntoArchivo, UsuarioActual.CveUsuario)
|
||||
|
||||
Alert("Se guardo archivo el adjunto Correctamente.")
|
||||
RegistraScript("$('#ModalUploadAdjunto').modal('hide');", "MAdjuntos")
|
||||
Else
|
||||
Alert("Se guardo presento un error al eliminar el archivo adjunto.")
|
||||
End If
|
||||
|
||||
|
||||
CargaAdjuntos()
|
||||
|
||||
ObjDesarrollo.Dispose()
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub GuardaDocumentoAdjunto()
|
||||
Dim FileExtension As String = "-1"
|
||||
Dim Filesgral As List(Of Archivo) = TxtFileAdjunto.getfiles().Archivos
|
||||
Dim Filename As String = ""
|
||||
Dim ArchivoDestino As String = ""
|
||||
Dim ArchivoAnterior As String = ""
|
||||
|
||||
For Each fileItem As Archivo In Filesgral
|
||||
Try
|
||||
|
||||
FileExtension = IO.Path.GetExtension(String.Format("{0}Temp\{1}", AppDomain.CurrentDomain.BaseDirectory, fileItem.filename)).Replace(".", "")
|
||||
|
||||
ArchivoDestino = $"{CveDesarrollo}_{CveDesarrolloAdjunto}." & FileExtension
|
||||
ArchivoAnterior = Server.MapPath("~/") & $"\Empresas\2\Desarrollo\Adjuntos\{DesarrolloAdjuntoArchivo}"
|
||||
Dim rutaDestino As String = Server.MapPath("~/") & $"\Empresas\2\Desarrollo\Adjuntos\{ArchivoDestino}"
|
||||
|
||||
If File.Exists(ArchivoAnterior) Then
|
||||
File.Delete(ArchivoAnterior)
|
||||
End If
|
||||
|
||||
|
||||
If Not System.IO.Directory.Exists(Server.MapPath("~/") & $"\Empresas\2\Desarrollo\Adjuntos\") Then
|
||||
System.IO.Directory.CreateDirectory(Server.MapPath("~/") & $"\Empresas\2\Desarrollo\Adjuntos\")
|
||||
End If
|
||||
|
||||
If File.Exists(rutaDestino) Then
|
||||
File.Delete(rutaDestino)
|
||||
End If
|
||||
System.IO.File.Move(fileItem.FileUrl, rutaDestino)
|
||||
|
||||
' TxtFileAdjunto.Text = ""
|
||||
' TxtAdjunto.Text = ""
|
||||
UpModalUploaAdjunto.Update()
|
||||
|
||||
DesarrolloAdjuntoArchivo = ArchivoDestino
|
||||
Catch ex As Exception
|
||||
DesarrolloAdjuntoArchivo = "-1"
|
||||
OnError("Error al cargar archivo adjunto", ex)
|
||||
End Try
|
||||
|
||||
Next
|
||||
End Sub
|
||||
|
||||
Private Sub GvAdjuntos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvAdjuntos.RowDataBound
|
||||
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
|
||||
Dim _DesarrolloAdjuntoArchivo As String = e.Row.DataKey("DesarrolloAdjuntoArchivo")
|
||||
Dim RutaAdjunto As String = Server.MapPath("~/").ToString & "\Empresas\2\Desarrollo\Adjuntos\" & _DesarrolloAdjuntoArchivo
|
||||
|
||||
Dim LnkDescarga As LinkButton = e.Row.FCLinkButton("ImgDO")
|
||||
If File.Exists(RutaAdjunto) Then
|
||||
|
||||
LnkDescarga.Visible = True
|
||||
ScriptManager.GetCurrent(Me).RegisterPostBackControl(LnkDescarga)
|
||||
Else
|
||||
LnkDescarga.Visible = False
|
||||
End If
|
||||
|
||||
|
||||
End If
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
End Class
|
||||
820
OI/DesarrolloWizard.aspx
Normal file
820
OI/DesarrolloWizard.aspx
Normal file
@@ -0,0 +1,820 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="DesarrolloWizard.aspx.vb" Inherits="OI_DesarrolloWizard" EnableEventValidation="false" ValidateRequest="false" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<%-- <style>
|
||||
body{
|
||||
font-size:15px;
|
||||
}
|
||||
.template{
|
||||
min-width: 275px!important;
|
||||
}
|
||||
.marginFixRow{
|
||||
margin-top:8px!important;
|
||||
}
|
||||
.marginRowLeft{
|
||||
margin-left:10px!important;
|
||||
}
|
||||
.orange {
|
||||
background-color: orangered;
|
||||
}
|
||||
|
||||
</style>
|
||||
<style>
|
||||
.rownomargin {
|
||||
margin-right: 0px;
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
.dataTables_scrollFoot {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.table-scrollable {
|
||||
margin: 0px !important;
|
||||
}
|
||||
|
||||
.dataTables_scroll {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.table.dataTable {
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
|
||||
.dataTables_scrollBody table th {
|
||||
padding: 0px !important;
|
||||
padding-right: 4px !important;
|
||||
padding-left: 4px !important;
|
||||
}
|
||||
|
||||
.EncabezadosGV {
|
||||
text-align: center;
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.portlet-filter .portlet-body {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.colf-1, .colf-2, .colf-3 {
|
||||
}
|
||||
|
||||
.paddintop {
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
label.colf-1 {
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.colf-1 {
|
||||
width: 7%;
|
||||
float: left;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.colf-2 {
|
||||
width: 14%;
|
||||
float: left;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.colf-3 {
|
||||
width: 21%;
|
||||
float: left;
|
||||
padding: 3px;
|
||||
}
|
||||
}
|
||||
</style>--%>
|
||||
<style type="text/css">
|
||||
.nav-pills.nav-wizard > li {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
border-right: 15px solid transparent !important;
|
||||
border-left: 15px solid transparent !important;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li + li {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li:first-child {
|
||||
border-left: 0 !important;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li:first-child a {
|
||||
border-radius: 5px 0 0 5px !important;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li:last-child {
|
||||
border-right: 0 !important;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li:last-child a {
|
||||
border-radius: 0 5px 5px 0 !important;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li a {
|
||||
border-radius: 0;
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li .nav-arrow {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
right: -20px;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
border-style: solid;
|
||||
border-width: 20px 0 20px 20px;
|
||||
border-color: transparent transparent transparent #eee;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li .nav-wedge {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: -20px;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
border-style: solid;
|
||||
border-width: 20px 0 20px 20px;
|
||||
border-color: #eee #eee #eee transparent;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li:hover .nav-arrow {
|
||||
border-color: transparent transparent transparent #aaa;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li:hover .nav-wedge {
|
||||
border-color: #aaa #aaa #aaa transparent;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li:hover a {
|
||||
background-color: #aaa;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li.active .nav-arrow {
|
||||
border-color: transparent transparent transparent #428bca;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li.active .nav-wedge {
|
||||
border-color: #428bca #428bca #428bca transparent;
|
||||
}
|
||||
|
||||
.nav-pills.nav-wizard > li.active a {
|
||||
background-color: #428bca !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style type="text/css">
|
||||
.radioButtonList { list-style:none; margin: 0; padding: 0;}
|
||||
.radioButtonList.horizontal li { display: inline;}
|
||||
|
||||
.radioButtonList label{
|
||||
display:inline;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
Desarrollo: <asp:label ID="LblDesarrollo" runat="server" ></asp:label>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet light" id="form_wizard_1">
|
||||
|
||||
<div class="caption">
|
||||
<i class=" icon-layers font-red"></i>
|
||||
<span class="caption-subject font-red bold uppercase">Asistente desarrollo - <span class="step-title">Paso 1 de 3 </span></span>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body form">
|
||||
<div class="form-horizontal" id="submit_form">
|
||||
<div class="form-wizard">
|
||||
<div class="form-body" style="padding: 0px;">
|
||||
<ul class="nav nav-pills nav-justified steps" style="padding: 0px;">
|
||||
<li id="Htab1" runat="server" class="active">
|
||||
<a href="#tab1" data-toggle="tab" class="step active">
|
||||
<span class="number">
|
||||
<asp:Literal ID="WLtl14" ClientIDMode="Static" runat="server" Text="1"></asp:Literal>
|
||||
</span>
|
||||
<span class="desc">
|
||||
<i class="fa fa-check"></i>
|
||||
<asp:Literal ID="WLtlText14" ClientIDMode="Static" runat="server" Text="Formato Técnico"></asp:Literal>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li id="Htab2" runat="server" visible="true">
|
||||
<a href="#tab2" data-toggle="tab" class="step">
|
||||
<span class="number">
|
||||
<asp:Literal ID="WLtl24" ClientIDMode="Static" runat="server" Text="2"></asp:Literal>
|
||||
</span>
|
||||
<span class="desc">
|
||||
<i class="fa fa-check"></i>
|
||||
<asp:Literal ID="WLtlText24" ClientIDMode="Static" runat="server" Text="Pruebas"></asp:Literal>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="Htab3" runat="server" visible="true">
|
||||
<a href="#tab3" data-toggle="tab" class="step">
|
||||
<span class="number">
|
||||
<asp:Literal ID="WLtl44" runat="server" ClientIDMode="Static" Text="3"></asp:Literal>
|
||||
</span>
|
||||
<span class="desc">
|
||||
<i class="fa fa-check"></i>
|
||||
<asp:Literal ID="WLtlText4" ClientIDMode="Static" runat="server" Text="Terminado"></asp:Literal>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div id="bar" class="progress progress-striped active" role="progressbar" style="margin-bottom: 5px;">
|
||||
<div class="progress-bar progress-bar-success"></div>
|
||||
</div>
|
||||
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="btnBack" runat="server" CssClass="btn btn-primary" Text="< Regresar" Style="float: left" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="btnNext" runat="server" Style="float: right" CssClass="btn btn-primary" Text="Continuar >" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<div class="tab-content" style="margin-top: 50px!important">
|
||||
<div class="tab-pane active" id="tab1">
|
||||
<table class="Widthall">
|
||||
<tr>
|
||||
<td class="Widthall">
|
||||
<div class="col-md-12" id="DVFormatoTecnico" runat="server" visible="true">
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title font-green">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-indent font-green"></i><span class="caption-subject bold uppercase">Formato Técnico</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
<asp:UpdatePanel ID="UpModalTools" runat="server" UpdateMode="Conditional" >
|
||||
<ContentTemplate>
|
||||
<asp:LinkButton ID="LnkMostrarAdjuntos" runat="server" class="fa fa-paperclip fa-2x"></asp:LinkButton>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
<asp:UpdatePanel ID="UpFT" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="Widthall">
|
||||
|
||||
<b>Tareas</b>
|
||||
<asp:GridView ID="GvFTTareas" DataKeyNames="CveDesarrolloDetalle,CveDesarrollo,CveDesarrolloDetalleTipo,Descripcion,DesarrolloDetalleTipo,CvePrioridad"
|
||||
runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="true"
|
||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkEstatus" OnCheckedChanged="ChkTareas_Click" AutoPostBack="true" runat="server" Checked='<%# Eval("Estatus") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="Tarea" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblDesarrollo" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Prioridad" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblPrioridad" runat="server" Text='<%# Eval("CvePrioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="Widthall">
|
||||
<b>Comprobaciones</b>
|
||||
<asp:GridView ID="GvFTComprobaciones" DataKeyNames="CveDesarrolloDetalle,CveDesarrollo,CveDesarrolloDetalleTipo,Descripcion,DesarrolloDetalleTipo,CvePrioridad" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkEstatus" OnCheckedChanged="ChkTareas_Click" AutoPostBack="true" runat="server" Checked='<%# Eval("Estatus") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Cmprobación" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblDesarrollo" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Prioridad" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblPrioridad" runat="server" Text='<%# Eval("CvePrioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
</div>
|
||||
|
||||
<div class="Widthall">
|
||||
|
||||
<b>Recomendaciones</b>
|
||||
<asp:GridView ID="GvFTRecomendaciones" DataKeyNames="CveDesarrolloDetalle,CveDesarrollo,CveDesarrolloDetalleTipo,Descripcion,DesarrolloDetalleTipo" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Left" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkEstatus" OnCheckedChanged="ChkTareas_Click" AutoPostBack="true" runat="server" Checked='<%# Eval("Estatus") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Sugerencia" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblDesarrollo" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
</div>
|
||||
|
||||
<div class="Widthall">
|
||||
<div class="Widthall" style="text-align: right">
|
||||
<asp:LinkButton ID="LnkAgregarbubida" CssClass="Texto font-green" runat="server"><i class="fa fa-plus font-green"></i> Agregar Subida</asp:LinkButton>
|
||||
</div>
|
||||
<b>Subida</b>
|
||||
<asp:GridView ID="GVSubida" DataKeyNames="CveSubida,Subida,CveSubidaTipo,DB,Tabla,Campo,Procedimiento,SubidaTipo,LlaveForanea,TipoDato,Script" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="true"
|
||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Tipo" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSubidaTipo" runat="server" Text='<%# Eval("SubidaTipo")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Subida" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSubidaDescripcion" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="150px" >
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="100px" HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="imgE" Width="28" runat="server" AlternateText="Editar" OnClick="EditSubida_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||
<asp:LinkButton ID="imgD" Width="28" runat="server" AlternateText="Eliminar" OnClick="DeleteSubida_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="tab2" style="display:normal!important">
|
||||
|
||||
<table class="Widthall">
|
||||
<tr>
|
||||
<td class="Widthall">
|
||||
|
||||
<div class="col-md-12" id="DVPruebas" runat="server" visible="true">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title font-green">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-indent font-green"></i><span class="caption-subject bold uppercase">Pruebas</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
<asp:UpdatePanel ID="UpPruebas" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="Widthall">
|
||||
<b>Pruebas Basicas</b>
|
||||
<asp:GridView ID="GvPruebasBasicas" DataKeyNames="CveDesarrolloDetalle,CveDesarrollo,CveDesarrolloDetalleTipo,Descripcion,DesarrolloDetalleTipo,CvePrioridad" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="true"
|
||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Prueba basica" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblDesarrollo" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Prioridad" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblPrioridad" runat="server" Text='<%# Eval("CvePrioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Desarrollo" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkP1" OnCheckedChanged="ChkPruebas_Click" runat="server" AutoPostBack="true" Checked='<%# If(IsDBNull(Eval("P1")), False, Eval("P1")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Pruebas" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkP2" OnCheckedChanged="ChkPruebas_Click" runat="server" AutoPostBack="true" Checked='<%# If(IsDBNull(Eval("P2")), False, Eval("P2")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Pre-Productivo" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkP3" OnCheckedChanged="ChkPruebas_Click" runat="server" AutoPostBack="true" Checked='<%# If(IsDBNull(Eval("P3")), False, Eval("P3")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="Widthall">
|
||||
|
||||
<b>Pruebas Especificas</b>
|
||||
<asp:GridView ID="GvPruebaspecificas" DataKeyNames="CveDesarrolloDetalle,CveDesarrollo,CveDesarrolloDetalleTipo,Descripcion,DesarrolloDetalleTipo,CvePrioridad" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="true"
|
||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" data-freezerows="1" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Prueba especifica" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblDesarrollo" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Prioridad" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblPrioridad" runat="server" Text='<%# Eval("CvePrioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Desarrollo" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkP1" OnCheckedChanged="ChkPruebas_Click" AutoPostBack="true" runat="server" Checked='<%# If(IsDBNull(Eval("P1")), False, Eval("P1")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Pruebas" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkP2" OnCheckedChanged="ChkPruebas_Click" AutoPostBack="true" runat="server" Checked='<%# If(IsDBNull(Eval("P2")), False, Eval("P2")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Pre-Productivo" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkP3" OnCheckedChanged="ChkPruebas_Click" AutoPostBack="true" runat="server" Checked='<%# If(IsDBNull(Eval("P3")), False, Eval("P3")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="tab3" style="display: normal">
|
||||
|
||||
<table class="Widthall">
|
||||
<tr>
|
||||
<td class="Widthall">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title font-green">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-indent font-green"></i><span class="caption-subject bold uppercase">Terminado</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding">
|
||||
<asp:UpdatePanel runat="server" ID="UpTerminado" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:CheckBox runat="server" ID="ChkProduccion" AutoPostBack="true" OnCheckedChanged="ChkProduccion_CheckedChanged" Text="Producción" />
|
||||
<br />
|
||||
<asp:CheckBox runat="server" ID="ChkClienteNotificado" AutoPostBack="true" OnCheckedChanged="ChkClienteNotificado_CheckedChanged" Text="Cliente notificado" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a style="display: none; float: right" class="btn green button-submit">Guardar<i class='fa fa-check'></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<div id="DivModalSubida" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog" style="width: 450px;">
|
||||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalSubida" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal"></button>
|
||||
<h4 class="modal-title">
|
||||
<asp:Literal ID="LtlTituloModalSubida" runat="server">Agregar registro subida</asp:Literal></h4>
|
||||
</div>
|
||||
<div class="modal-body rowpadding">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= DdlSubidaTipo.ClientID.ToString()%>">Tipo:</label>
|
||||
<asp:DropDownList ID="DdlSubidaTipo" runat="server" Width="250" DataTextField ="SubidaTipo" DataValueField="CveSubidaTipo" CssClass="select2me" AutoPostBack="true" CausesValidation="true" ></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RfvDdlSubidaTipo" Enabled="false" runat="server" InitialValue="-1" ControlToValidate="DdlSubidaTipo" Display="None" ErrorMessage="El campo <b>''Tipo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarSubida"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="RfvcDdlSubidaTipo" Enabled="false" runat="server" TargetControlID="RfvDdlSubidaTipo" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
|
||||
<div id="DvSubidaArchivo" visible="false" runat="server" class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtSubidaArchivo.ClientID.ToString()%>">Archivo:</label>
|
||||
<asp:TextBox ID="TxtSubidaArchivo" MaxLength="50" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtSubidaArchivo" runat="server" ControlToValidate="TxtSubidaArchivo" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="GrpGuardarSubida"></asp:RequiredFieldValidator>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="DvSubidaDB" visible="false" runat="server" class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtSubidaDB.ClientID.ToString()%>">DB:</label>
|
||||
<asp:TextBox ID="TxtSubidaDB" MaxLength="50" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtSubidaDB" runat="server" ControlToValidate="TxtSubidaDB" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="GrpGuardarSubida"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
|
||||
<div id="DvSubidaTabla" visible="false" runat="server" class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtSubidaTabla.ClientID.ToString()%>">Tabla:</label>
|
||||
<asp:TextBox ID="TxtSubidaTabla" MaxLength="50" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtSubidaTabla" runat="server" ControlToValidate="TxtSubidaTabla" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="GrpGuardarSubida"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
|
||||
<div id="DvSubidaCampo" visible="false" runat="server" class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtSubidaCampo.ClientID.ToString()%>">Campo:</label>
|
||||
<asp:TextBox ID="TxtSubidaCampo" MaxLength="50" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtSubidaCampo" runat="server" ControlToValidate="TxtSubidaCampo" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="GrpGuardarSubida"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
|
||||
<div id="DvSubidaTipoDato" visible="false" runat="server" class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtSubidaTipoDato.ClientID.ToString()%>">Tipo Dato:</label>
|
||||
<asp:TextBox ID="TxtSubidaTipoDato" MaxLength="50" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtSubidaTipoDato" runat="server" ControlToValidate="TxtSubidaTipoDato" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="GrpGuardarSubida"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
|
||||
<div id="DvSubidaLlabeForanea" visible="false" runat="server" class="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtSubidaLlaveForanea.ClientID.ToString()%>">Llave Foranea:</label>
|
||||
<asp:TextBox ID="TxtSubidaLlaveForanea" MaxLength="50" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="DvSubidaProcedimiento" visible="false" runat="server" class ="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtSubidaProcedimiento.ClientID.ToString()%>">Procedimiento:</label>
|
||||
<asp:TextBox ID="TxtSubidaProcedimiento" MaxLength="50" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtSubidaProcedimiento" runat="server" ControlToValidate="TxtSubidaProcedimiento" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="GrpGuardarSubida"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
<div id="DvSubidaScript" visible="false" runat="server" class ="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= TxtSubidaScript.ClientID.ToString()%>">Script:</label>
|
||||
<asp:TextBox ID="TxtSubidaScript" MaxLength="50000" TextMode="MultiLine" Rows="4" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
|
||||
</div>
|
||||
|
||||
<div runat="server" class ="form-group form-md-line-input input-iconright">
|
||||
<label for="<%= ChkModalSubidaContinuarAgregando.ClientID.ToString()%>">Continuar agregando:</label>
|
||||
<asp:CheckBox ID="ChkModalSubidaContinuarAgregando" CssClass="form-control" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<asp:LinkButton ID="LnkModalAgregarSubida" cssClass="btn btn-success" runat="server" ValidationGroup="GrpGuardarSubida" >Guardar</asp:LinkButton>
|
||||
<button id="btnCancelarSubida" runat="server" type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<div id="DIVModalAdjuntos" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog" style="width: 450px;">
|
||||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalAdjuntos" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal"></button>
|
||||
<h4 class="modal-title">
|
||||
<asp:Literal ID="LlTituloModalAdjuntos" Text="Adjuntos" runat="server"></asp:Literal>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
<div class="Widthall">
|
||||
<asp:UpdatePanel ID="UpAdjunto" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvAdjuntos" DataKeyNames="CveDesarrolloAdjunto,CveDesarrollo,DesarrolloAdjunto,DesarrolloAdjuntoArchivo,CveUsuario" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Adjunto" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblAdjunto" runat="server" Text='<%# Eval("DesarrolloAdjunto")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="archivo" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LblAdjuntoArchivo" runat="server" Text='<%# Eval("DesarrolloAdjuntoArchivo")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="80">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Comandos" ItemStyle-Width="150">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="ImgD" runat="server" Width="28" AlternateText="Descargar" OnClick="DowloadAdjunto_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-cloud-download'></i>"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button id="btnCacelarPruebas" runat="server" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
|
||||
<script src="../Metronic/assets/global/plugins/bootstrap-wizard/jquery.bootstrap.wizard.js"></script>
|
||||
<script>
|
||||
var handleTitle = function (tab, navigation, index) {
|
||||
var total = navigation.find('li').length;
|
||||
var current = index + 1;
|
||||
// set wizard title
|
||||
$('.step-title', $('#form_wizard_1')).text('Paso ' + (index + 1) + ' de ' + total);
|
||||
// set done steps
|
||||
jQuery('li', $('#form_wizard_1')).removeClass("done");
|
||||
var li_list = navigation.find('li');
|
||||
for (var i = 0; i < index; i++) {
|
||||
jQuery(li_list[i]).addClass("done");
|
||||
}
|
||||
|
||||
|
||||
Metronic.scrollTo($('.page-title'));
|
||||
}
|
||||
|
||||
// default form wizard
|
||||
$(document).ready(function () {
|
||||
|
||||
$('#form_wizard_1').bootstrapWizard({
|
||||
'nextSelector': '.button-next',
|
||||
'previousSelector': '.button-previous',
|
||||
onTabClick: function (tab, navigation, index, clickedIndex) {
|
||||
return false;
|
||||
/*
|
||||
success.hide();
|
||||
error.hide();
|
||||
if (form.valid() == false) {
|
||||
return false;
|
||||
}
|
||||
handleTitle(tab, navigation, clickedIndex);
|
||||
*/
|
||||
},
|
||||
onNext: function (tab, navigation, index) {
|
||||
//success.hide();
|
||||
//error.hide();
|
||||
handleTitle(tab, navigation, index);
|
||||
|
||||
},
|
||||
onPrevious: function (tab, navigation, index) {
|
||||
//success.hide();
|
||||
//error.hide();
|
||||
|
||||
handleTitle(tab, navigation, index);
|
||||
$("#Giro").click()
|
||||
|
||||
},
|
||||
onTabShow: function (tab, navigation, index) {
|
||||
var total = navigation.find('li').length;
|
||||
var current = index + 1;
|
||||
var $percent = (current / total) * 100;
|
||||
//$('#button-submit').css("display", "none")
|
||||
handleTitle(tab, navigation, index);
|
||||
$('#form_wizard_1').find('.progress-bar').css({
|
||||
width: $percent + '%'
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('#tab2').css('display', '');
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
1052
OI/DesarrolloWizard.aspx.vb
Normal file
1052
OI/DesarrolloWizard.aspx.vb
Normal file
File diff suppressed because it is too large
Load Diff
109
OI/EventoComentario.aspx
Normal file
109
OI/EventoComentario.aspx
Normal file
@@ -0,0 +1,109 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="EventoComentario.aspx.vb" Inherits="OI_EventoComentario" %>
|
||||
|
||||
<%@ Register Assembly="eWorld.UI, Version=2.0.6.2393, Culture=neutral, PublicKeyToken=24d65337282035f2" Namespace="eWorld.UI" TagPrefix="ew" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
<asp:Literal ID="LtlTitulo" runat="server" Text="Registro de Comentarios"></asp:Literal> <%--<asp:Literal ID="LtlActivoFijo" runat="server"></asp:Literal>--%>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-top: 20px;">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>Comentario:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtComentario" runat="server" MaxLength="200" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TRUsuario" runat="server">
|
||||
<td>Usuario</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtUsuario" runat="server" MaxLength="200" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Archivo:
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtArchivo" runat="server" MaxLength="200" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
<%--<td><a class="Texto" href="javascript:AbrirVentana('/AF/CargarArchivo.aspx', 550, 310, 'N', 'CargarArchivo');">Cargar Archivo</a></td>--%>
|
||||
<td>
|
||||
|
||||
<asp:Button ID="BtnCargarArchivo" runat="server" ClientIDMode="Static" Style="display: none;" />
|
||||
<a id="LnkUpload" class="Texto thickbox" href="/Planeacion/CargarArchivo.aspx?Tipo=Imagen&TB_iframe=true&height=210&width=350" />Cargar Imagen</a><%--
|
||||
<asp:Image ID="ImgPersonal" runat="server" ImageUrl="/Imagenes/SinImagen.jpg" Width="150px" Height="150px" />--%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul id="myGallery" runat="server" clientidmode="Static">
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="TRFecha" runat="server">
|
||||
<td>Fecha de Ingreso:
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtFechaIng" runat="server" MaxLength="500" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<asp:UpdatePanel ID="UpGuardar" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnGuardar" runat="server" Text="Guardar" ValidationGroup="GrpGuardar" class="btn btn-primary" />
|
||||
<asp:Button ID="BtnEliminar" runat="server" Text="Eliminar" class="btn btn-danger" />
|
||||
<asp:ValidationSummary ID="VS" runat="server" DisplayMode="BulletList" ShowSummary="true" ValidationGroup="GrpGuardar" />
|
||||
<asp:Button ID="BtnCancelar" runat="server" Text="Cancelar" OnClientClick="javascript:window.location.href='/OI/Eventos.aspx';return false" class="btn btn-danger" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<!-- First, add jQuery (and jQuery UI if using custom easing or animation -->
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
|
||||
|
||||
<!-- Second, add the Timer and Easing plugins -->
|
||||
<script type="text/javascript" src="/Scripts/jquery.timers-1.2.js"></script>
|
||||
<script type="text/javascript" src="/Scripts/jquery.easing.1.3.js"></script>
|
||||
|
||||
<!-- Third, add the GalleryView Javascript and CSS files -->
|
||||
<script type="text/javascript" src="/Scripts/jquery.galleryview-3.0-dev.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="/css/jquery.galleryview-3.0-dev.css" />
|
||||
|
||||
<!-- Cargar Imagen -->
|
||||
<script type="text/javascript" src="../Scripts/funciones.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function CargarArchivo(Tipo) {
|
||||
if (Tipo == "Imagen") {
|
||||
$("#BtnCargarArchivo").click();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
127
OI/EventoComentario.aspx.EXCLUDE
Normal file
127
OI/EventoComentario.aspx.EXCLUDE
Normal file
@@ -0,0 +1,127 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="EventoComentario.aspx.vb" Inherits="OI_EventoComentario" %>
|
||||
<%@ Register Assembly="eWorld.UI, Version=2.0.6.2393, Culture=neutral, PublicKeyToken=24d65337282035f2" Namespace="eWorld.UI" TagPrefix="ew" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="H" Runat="Server">
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="E" Runat="Server">
|
||||
<asp:Literal ID="LtlTitulo" runat="server" Text="Registro de Comentarios"></asp:Literal> <%--<asp:Literal ID="LtlActivoFijo" runat="server"></asp:Literal>--%>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="C" Runat="Server">
|
||||
<!-- First, add jQuery (and jQuery UI if using custom easing or animation -->
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
|
||||
|
||||
<!-- Second, add the Timer and Easing plugins -->
|
||||
<script type="text/javascript" src="/Scripts/jquery.timers-1.2.js"></script>
|
||||
<script type="text/javascript" src="/Scripts/jquery.easing.1.3.js"></script>
|
||||
|
||||
<!-- Third, add the GalleryView Javascript and CSS files -->
|
||||
<script type="text/javascript" src="/Scripts/jquery.galleryview-3.0-dev.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="/css/jquery.galleryview-3.0-dev.css" />
|
||||
|
||||
<!-- Cargar Imagen -->
|
||||
<script type="text/javascript" src="../Scripts/funciones.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function CargarArchivo(Tipo) {
|
||||
if (Tipo == "Imagen") {
|
||||
$("#BtnCargarArchivo").click();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-top:20px;">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>Comentario:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtComentario" runat="server" MaxLength="200" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TRUsuario" runat="server">
|
||||
<td>Usuario</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtUsuario" runat="server" MaxLength="200" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Archivo:
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtArchivo" runat="server" MaxLength="200" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
<%--<td><a class="Texto" href="javascript:AbrirVentana('/AF/CargarArchivo.aspx', 550, 310, 'N', 'CargarArchivo');">Cargar Archivo</a></td>--%>
|
||||
<td>
|
||||
|
||||
<asp:Button ID="BtnCargarArchivo" runat="server" ClientIDMode="Static" style="display:none;"/>
|
||||
<a id="LnkUpload" class="Texto thickbox" href="/Planeacion/CargarArchivo.aspx?Tipo=Imagen&TB_iframe=true&height=210&width=350" />Cargar Imagen</a><%--
|
||||
<asp:Image ID="ImgPersonal" runat="server" ImageUrl="/Imagenes/SinImagen.jpg" Width="150px" Height="150px" />--%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul id="myGallery" runat="server" clientidmode="Static">
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="TRFecha" runat="server">
|
||||
<td>
|
||||
Fecha de Ingreso:
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtFechaIng" runat="server" MaxLength="500" Width="200px"></asp:TextBox>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<asp:UpdatePanel ID="UpGuardar" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnGuardar" runat="server" Text="Guardar" ValidationGroup="GrpGuardar" />
|
||||
<asp:Button ID="BtnEliminar" runat="server" Text="Eliminar" />
|
||||
<asp:ValidationSummary ID="VS" runat="server" DisplayMode="BulletList" ShowSummary="true" ValidationGroup="GrpGuardar" />
|
||||
<asp:Button ID="BtnCancelar" runat="server" Text="Cancelar" OnClientClick="javascript:window.location.href='/OI/Eventos.aspx';return false" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<asp:UpdateProgress ID="upProgress" runat="server" DisplayAfter="0">
|
||||
<ProgressTemplate>
|
||||
<div id="overlay">
|
||||
<div id="modalprogress">
|
||||
<div id="theprogress">
|
||||
<center>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>La información se está procesando...</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/Imagenes/Cargando.gif" style="border-width: 0px;" alt="" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
114
OI/EventoComentario.aspx.vb
Normal file
114
OI/EventoComentario.aspx.vb
Normal file
@@ -0,0 +1,114 @@
|
||||
Option Explicit On
|
||||
Option Strict On
|
||||
|
||||
Imports Extensiones
|
||||
Imports System.Runtime.InteropServices
|
||||
Imports System.IO
|
||||
Imports System.Data
|
||||
|
||||
Partial Class OI_EventoComentario
|
||||
|
||||
Inherits ClsPaginas
|
||||
|
||||
'Configuración
|
||||
Private ReadOnly Property CveComentario As Integer
|
||||
Get
|
||||
Return ViewState("CveComentario").ToString.ToEntero
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Private ReadOnly Property ImgConsecutivo As String
|
||||
Get
|
||||
Return ViewState("ImgConsecutivo").ToString
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
If Not IsPostBack Then
|
||||
Session("FileUpload") = ""
|
||||
TRUsuario.Visible = False
|
||||
TRFecha.Visible = False
|
||||
|
||||
|
||||
If Request("CveComentario") IsNot Nothing AndAlso IsNumeric(Request("CveComentario")) AndAlso Request("CveComentario").ToEntero > 0 Then
|
||||
ViewState("CveComentario") = Request("CveComentario")
|
||||
CargaDatos()
|
||||
|
||||
'Configuración de Modalidad Update
|
||||
BtnGuardar.Text = "Guardar Cambios"
|
||||
LtlTitulo.Text = "Consulta COmentario del evento:"
|
||||
|
||||
Else
|
||||
ViewState("CveComentario") = -1
|
||||
BtnEliminar.Visible = False
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub CargaDatos()
|
||||
'Dim ObjEventosComentarios As New ClsOIEventos()
|
||||
|
||||
|
||||
'If ObjEventosComentarios.GetEventosComentarios(CveComentario) Then
|
||||
' If ObjEventosComentarios.DtResultados.Rows.Count > 0 Then
|
||||
|
||||
' 'Pestaña Datos Generales
|
||||
' TxtComentario.Text = ObjEventosComentarios.Comentario
|
||||
' TxtArchivo.Text = ObjEventosComentarios.Archivo
|
||||
' TxtFechaIng.Text = ObjEventosComentarios.FechaIng.ToShortTimeString
|
||||
' TxtUsuario.Text = ObjEventosComentarios.UsuarioDe
|
||||
|
||||
|
||||
' If File.Exists(AppDomain.CurrentDomain.BaseDirectory & "Empresas\" & UsuarioActual.CveEmpresa & "\OI\Eventos\" & ObjEventosComentarios.Archivo & ".png") Then
|
||||
' TxtArchivo.Text = "/Empresas/" & UsuarioActual.CveEmpresa & "/OI/Eventos/" & ObjEventosComentarios.Archivo & ".png"
|
||||
|
||||
' End If
|
||||
' Else
|
||||
' Alert("El Comentario no existe, por favor revise su búsqueda.", TipoMensaje.MsgAdvertencia)
|
||||
' BtnGuardar.Enabled = False
|
||||
' End If
|
||||
'End If
|
||||
'ObjEventosComentarios.Dispose()
|
||||
End Sub
|
||||
|
||||
Protected Sub BtnGuardar_Click(sender As Object, e As System.EventArgs) Handles BtnGuardar.Click
|
||||
'System.Threading.Thread.Sleep(3000)
|
||||
'Dim CveEvento As Integer
|
||||
'Dim Comentario As String = TxtComentario.Text.Trim
|
||||
'Dim Archivo As String = TxtArchivo.Text.Trim
|
||||
'Dim CveUsuario As Integer = UsuarioActual.CveUsuario
|
||||
|
||||
'Dim ObjEventosComentarios As New ClsOIEventos()
|
||||
'If CveComentario = -1 Then
|
||||
' ObjEventosComentarios.AddEventoComentario(CveEvento, Comentario, Archivo, CveUsuario)
|
||||
' Alert("El Comentario se guardó correctamente.", TipoMensaje.MsgInformacion)
|
||||
|
||||
' 'Else
|
||||
' ' If ObjEventosComentarios.UpdateOrdenesServicios(DdlCliente.SelectedValue.ToEntero, DdlSubTipoEventosComentarios.SelectedValue.ToEntero, TxtNumCtaEquipo.Text.Trim, TxtDescripcion.Text.Trim, TxtPersonaSolicito.Text.Trim, Convert.ToDateTime(TxtFechaCita.Text & " " & TxtHoraCita.PostedTime), DdlUsuarioRecibio.SelectedValue.ToEntero, Convert.ToDateTime(TxtFechaRecibido.Text & " " & TxtHoraRecibido.PostedTime), TxtComentario.Text.Trim, ChkSeFacturara.Checked, ChkSeFacturo.Checked, DdlPersonaAtendio.SelectedValue.ToEntero, Convert.ToDateTime(TxtFechaAtendido.Text & " " & TxtHoraAtendido.PostedTime), DdlEstatusEventosComentarios.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, TxtCveComentario.Text.Trim.ToEntero) Then
|
||||
' ' UpDatos.Update()
|
||||
' ' Alert("Los cambios se guardaron correctamente.", TipoMensaje.MsgInformacion)
|
||||
' ' End If
|
||||
' End If
|
||||
' ObjEventosComentarios.Dispose()
|
||||
End Sub
|
||||
|
||||
Protected Sub BtnCargarArchivo_Click(sender As Object, e As System.EventArgs) Handles BtnCargarArchivo.Click
|
||||
'Preguntar si existe en temporales
|
||||
If Session("FileUpload").ToString <> String.Empty AndAlso File.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString) Then
|
||||
Dim Extension As String = Path.GetExtension(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString)
|
||||
If Not Directory.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\OI\Eventos") Then Directory.CreateDirectory(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\OI\Eventos")
|
||||
If File.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\OI\Eventos\" & CveComentario & Extension) Then
|
||||
File.Delete(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\OI\Eventos\" & CveComentario & Extension)
|
||||
File.Move(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString, Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\OI\Eventos\" & CveComentario & Extension)
|
||||
Else
|
||||
File.Move(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString, Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\OI\Eventos\" & CveComentario & Extension)
|
||||
End If
|
||||
|
||||
Else
|
||||
'Imagen Default
|
||||
'If ImgPersonal.ImageUrl = "../Empresas/" & UsuarioActual.CveEmpresa & "/RH/Personal/" Then
|
||||
' ImgPersonal.ImageUrl = "/Imagenes/SinImagen.jpg"
|
||||
'End If
|
||||
End If
|
||||
End Sub
|
||||
End Class
|
||||
687
OI/EventoDetalle.aspx
Normal file
687
OI/EventoDetalle.aspx
Normal file
@@ -0,0 +1,687 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="EventoDetalle.aspx.vb" Inherits="OI_EventoDetalle" %>
|
||||
|
||||
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="cc1" %>
|
||||
<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
<asp:Label ID="LblTitulo" runat="server" Text=""></asp:Label>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:HiddenField ID="HdnTipo" runat="server" ClientIDMode="Static" />
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Tarea</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding">
|
||||
<div class="row" runat="server" id="RowFolio" visible="false">
|
||||
<label class="col-sm-2"># Folio/tarea:</label>
|
||||
<div class="col-sm-5 row ">
|
||||
<asp:Label runat="server" ID="lblFolio" Font-Bold="true"></asp:Label>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-5 row " style="text-align:left!important">
|
||||
<asp:LinkButton ID="LnkLigaCve" CssClass="Texto" runat="server" ></asp:LinkButton>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="row" id="TrAsunto" visible="false" runat="server">
|
||||
<label class="col-sm-2">Asunto:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:TextBox ID="TxtAsunto" runat="server" CssClass="form-control input-sm" MaxLength="100" ValidationGroup="Guarda"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" ControlToValidate="TxtAsunto" Display="None" ErrorMessage="El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOAsunto" runat="server" TargetControlID="RFVAsunto" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrAgendaTipo" visible="false" runat="server">
|
||||
<label class="col-sm-2">Tipo Asunto:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:DropDownList ID="DdlAgendaTipo" runat="server" Class="form-control input-sm input-small" DataValueField="CveAgendaTipo" DataTextField="AgendaTipo">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrDescripcion" visible="false" runat="server">
|
||||
<label class="col-sm-2">Descripción:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:TextBox ID="TxtDescripcion" runat="server" CssClass="form-control input-sm" MaxLength="500" TextMode="MultiLine" Height="50px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfvDescripcion" runat="server" ControlToValidate="txtDescripcion" Display="None" ErrorMessage="El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoDescripcion" runat="server" TargetControlID="rfvDescripcion" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrPrioridad" visible="false" runat="server">
|
||||
<label class="col-sm-2">Prioridad:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:DropDownList ID="DdlPrioridad" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 136px !important;">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Baja" Value="1" style="color: #00CC00;"></asp:ListItem>
|
||||
<asp:ListItem Text="Media" Value="2" style="color: #000000;"></asp:ListItem>
|
||||
<asp:ListItem Text="Alta" Value="3" style="color: #FF0000;"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOPrio" runat="server" TargetControlID="RFVPrioridad" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrRevision" visible="false" runat="server">
|
||||
<label class="col-sm-2">Revisión:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:UpdatePanel runat="server" ID="UpRevision" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:DropDownList ID="DdlRevision" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" DataValueField="CveRevision" DataTextField="Revision">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<%--<asp:Image ID="ImgAddRevision" ToolTip="Agregar Revision" OnClientClick="$get('DivRevision').style.display='';" ImageUrl="/Imagenes/Btn_Add.png" runat="server" />--%>
|
||||
<img id="ImgAddRevision" runat="server" alt="Agregar Revision" style="cursor: pointer;" src="/Imagenes/Btn_Add.png" onclick="$get('DivRevision').style.display='';" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label class="col-sm-2">Orden:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:UpdatePanel runat="server" ID="UpOrden" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:TextBox ID="TxtOrden" CssClass="form-control input-sm input-small" runat="server" />
|
||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtOrden" FilterType="Custom, Numbers" ValidChars="." />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrFechaInicio" visible="false" runat="server">
|
||||
<label class="col-sm-2 truncate">Fecha Inicio:</label>
|
||||
<div class="col-sm-3">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaInicio" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaInicio" runat="server" TargetControlID="TxtFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="TxtFechaInicio" PopupButtonID="ImgCalendario" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="El campo <b>''Fecha Inicio''</b> es requerido por la aplicación, por favor ingrese una Fecha Inicio." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="El campo <b>''FechaInicio''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFfvFI" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaInicio" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOCVFI" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaInicio" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-sm-1">Hora:</label>
|
||||
<div class="col-sm-3">
|
||||
<cc1:TimeSelector ID="TxtHoraInicio" runat="server" DisplaySeconds="false" DisplayButtons="false">
|
||||
</cc1:TimeSelector>
|
||||
<asp:CustomValidator ID="CVHoraInicio" runat="server" ClientValidationFunction="RevisaHora" ControlToValidate="TxtHoraInicio" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></asp:CustomValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoHoraInicio" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraInicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrFechaFin" visible="false" runat="server">
|
||||
<label class="col-sm-2 truncate">Fecha Fin:</label>
|
||||
<div class="col-sm-3">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaFin" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgCalFechaFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaFin" TargetControlID="TxtFechaFin" PopupButtonID="ImgCalFechaFin" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="El campo <b>''Fecha Fin''</b> es requerido por la aplicación, por favor ingrese una Fecha Fin." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="El campo <b>''Fecha Fin''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaFin1" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaFin" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaFin2" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaFin" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-sm-1">Hora:</label>
|
||||
<div class="col-sm-3">
|
||||
<cc1:TimeSelector ID="TxtHoraFin" runat="server" DisplaySeconds="false" DisplayButtons="false">
|
||||
</cc1:TimeSelector>
|
||||
<asp:CustomValidator ID="CVHoraFin" runat="server" ClientValidationFunction="RevisaHora" ControlToValidate="TxtHoraFin" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></asp:CustomValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoHoraFin" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraFin" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div></div>
|
||||
<div id="TrFechaRealTermino" visible="false" runat="server" class="row">
|
||||
<label class="col-sm-2 truncate">Fecha Real de Término: </label>
|
||||
<div class="col-sm-10">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaRealTermino" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgCalFechaRealTermino" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaRealTermino" runat="server" TargetControlID="TxtFechaRealTermino" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaRealTermino" TargetControlID="TxtFechaRealTermino" PopupButtonID="ImgCalFechaRealTermino" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:CompareValidator ID="CVFechaRealTermino" runat="server" ControlToValidate="TxtFechaRealTermino" Display="None" ErrorMessage="El campo <b>''Fecha Real de Término''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaRealTermino2" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaRealTermino" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrTipoReferencia" visible="false" runat="server">
|
||||
<label class="col-sm-2 truncate">Tipo de Referencia: </label>
|
||||
<div class="col-sm-10">
|
||||
<asp:TextBox ID="TxtTipoReferencia" runat="server" MaxLength="5" ValidationGroup="Guarda" CssClass="form-control input-sm input-small"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="TrReferencia" visible="false" runat="server">
|
||||
<label class="col-sm-2 truncate">Referencia: </label>
|
||||
<div class="col-sm-10">
|
||||
<asp:TextBox ID="TxtReferencia" runat="server" MaxLength="50" ValidationGroup="Guarda" CssClass="form-control input-sm"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrReferenciaLiga" visible="false" runat="server">
|
||||
<div class="col-sm-10 col-sm-offset-2">
|
||||
<asp:HyperLink ID="HplReferencia" runat="server"></asp:HyperLink></div>
|
||||
</div>
|
||||
<div class="row" id="TrArchivo" visible="false" runat="server">
|
||||
<label class="col-sm-2 truncate">Archivo </label>
|
||||
<div class="col-sm-10">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<asp:UpdatePanel ID="UPAFUL" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:TextBox ID="TxtArchivo" ClientIDMode="Static" runat="server" Width="200px"></asp:TextBox>
|
||||
|
||||
<%-- <asp:HyperLink ID="ImgAddObs" Visible="true" class="Texto" data-toggle="modal" data-target="#ModalUpload" runat="server" Text=" <span style='font-weight: 700 !important;'>Archivo</span>" Style="cursor: pointer;" ToolTip="Observaciones"></asp:HyperLink>--%>
|
||||
|
||||
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="A1" data-toggle="modal" data-target="#ModalUpload" visible="true" >
|
||||
<img id="ImgArchivo" runat="server" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" />
|
||||
</a>
|
||||
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="A2" target="_blank" visible="false">
|
||||
<img id="Img1" alt="Archivo" src="/Imagenes/descargar.png" style="width: 16px; height: 16px; border: 0px none white" />
|
||||
</a>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul id="myGallery" runat="server" clientidmode="Static">
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="col-md-4" id="TdUsuarios" runat="server" visible="false">
|
||||
<div id="TrEstatus" runat="server" visible="true">
|
||||
<asp:UpdatePanel ID="uppEstatus" runat="server" UpdateMode="Conditional" class="portlet light smmallpadding bordered">
|
||||
<ContentTemplate>
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Estatus</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding">
|
||||
<div class="row">
|
||||
<div class="col-sm-8" style="text-align: center; vertical-align: central;">
|
||||
<asp:DropDownList ID="DdlEventoEstatus" Visible="true" runat="server" DataValueField="CveEventoEstatus" CssClass="form-control input-sm" Style="width: 100px !important;" DataTextField="EventoEstatus">
|
||||
</asp:DropDownList>
|
||||
<asp:LinkButton ID="lbCambiaEstatus" runat="server" Text="Cambia Estatus"></asp:LinkButton>
|
||||
<asp:Label ID="LblEstatusEvento" Visible="false" Font-Bold="true" runat="server" Text=""></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<asp:ImageButton OnClick="LinkReenviar_Click" ImageUrl="/Imagenes/ReEnviar.PNG" Style="margin-left: 20px;" runat="server" ToolTip="Reenviar Tarea" Visible="false" ID="LinkReenviar" Width="30" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel runat="server" class="portlet box grey-cascade">
|
||||
<ContentTemplate>
|
||||
<div class="portlet-title">
|
||||
<div class="caption">
|
||||
<i class="fa fa-user-plus"></i>Usuario(s)
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body" style="padding: 0px;">
|
||||
<div id="divSeleccionUsuarios" runat="server">
|
||||
<div class="text-right">
|
||||
<asp:TextBox runat="server" ID="filtroGVtext" onkeyup="FiltrarGV();" ClientIDMode="Static" Style="height: 25px; margin-top: 5px; margin-bottom: 5px;"></asp:TextBox>
|
||||
<a href="javascript:;" onclick="FiltrarGV();return false;" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
<%--<asp:Button ID="btnfiltro" Text="Buscar" runat="server" CssClass="btn btn-sm green" Style="margin-bottom: 2px; height:22px;" OnClientClick="FiltrarGV();return false;"></asp:Button>--%>
|
||||
|
||||
</div>
|
||||
<table class="table table-striped table-hover Widthall ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center" class="Titulos" width="50px">Para</th>
|
||||
<th align="center" class="Titulos" width="50px">
|
||||
<div class="Widthall truncate">C. C. Para</div>
|
||||
</th>
|
||||
<th class="Titulos">Usuario</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
</table>
|
||||
|
||||
<div id="DivUsr" runat="server" style="height: 200px; overflow-y: scroll;">
|
||||
|
||||
<asp:GridView ID="GVUsuarios" runat="server" AutoGenerateColumns="false" ShowHeader="false" Width="100%" DataKeyNames="CveUsuario,Nombre,Correo,Empresa" CssClass="table table-striped table-advance table-hover Widthall" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkPara" runat="server" Width="50px" />
|
||||
<ajax:MutuallyExclusiveCheckBoxExtender ID="MECBE" runat="server" TargetControlID="ChkPara" Key="Para"></ajax:MutuallyExclusiveCheckBoxExtender>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkCCP" Checked="false" runat="server" Width="50px" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlRol" runat="server" Text='<%# Eval("Rol") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</div>
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<div id="divUsuarios" runat="server" visible="false" class="portlet box grey-cascade">
|
||||
<div class="portlet-title">
|
||||
<div class="caption">
|
||||
<i class="fa fa-user-plus"></i>Usuarios
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<asp:UpdatePanel runat="server" class="btn-group">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnEditarUsuarios" CssClass="btn btn-default" Text="Editar" runat="server" OnClick="BtnEditarUsuarios_Click" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body" style="padding: 0px;">
|
||||
<table border="0" style="width: 100%; border-collapse: collapse;">
|
||||
<tr>
|
||||
<td style="font-weight: bold; height: 20px; background-color: gray; color: white; width: 60px">De:</td>
|
||||
<td style="background-color: silver; color: white;">
|
||||
<asp:Label runat="server" Font-Bold="true" ID="lblUsuarioDe"></asp:Label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold; height: 20px; background-color: gray; color: white; width: 60px">Para:</td>
|
||||
<td style="background-color: silver; color: white;">
|
||||
<asp:Label runat="server" Font-Bold="true" ID="lblUsuarioPara"></asp:Label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-top: 10px; vertical-align: top; font-weight: bold; height: 20px; background-color: gray; color: white; width: 60px">CCP:</td>
|
||||
<td>
|
||||
<asp:GridView ID="gvUsuariosVista" runat="server" ShowHeader="false" AutoGenerateColumns="false" Width="100%" DataKeyNames="CveUsuario,Nombre,Correo" CssClass="table table-striped table-advance table-hover" Style="text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle Height="20px" HorizontalAlign="Left" />
|
||||
<HeaderStyle HorizontalAlign="Left" BackColor="Silver" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
<asp:UpdatePanel ID="upGuardar" style="text-align: center;" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="btnGuardar" runat="server" Text="Guardar" ValidationGroup="Guarda" class="btn btn-primary" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
<asp:UpdatePanel runat="server" ID="UPPObs" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Panel ID="PnlEncObs" runat="server" Visible="false">
|
||||
<div id="divObs" tabindex="-1" role="dialog" style="width: 980px; background-color: White; border: solid 1px black; color: Black; display: inline;">
|
||||
<table border="1" style="border-collapse: collapse;" width="980px" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table border="1" style="border-collapse: collapse;" width="980px" cellpadding="0" cellspacing="0">
|
||||
<tr class="Titulos">
|
||||
<td style="width: 92px">Fecha:</td>
|
||||
<td style="width: 202px">Usuario:</td>
|
||||
<td>Observaciones:</td>
|
||||
<td style="width: 32px">Arch.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<asp:Label ID="lblFechaObs" runat="server"></asp:Label>
|
||||
</td>
|
||||
<td align="center">
|
||||
<asp:Label ID="lblUsuarioObs" runat="server"></asp:Label>
|
||||
</td>
|
||||
<td> <asp:TextBox ID="TxtOBs" ClientIDMode="Static" runat="server" TextMode="MultiLine" Rows="2" Width="638px" MaxLength="1000"></asp:TextBox>
|
||||
<%-- <asp:RequiredFieldValidator ID="RFVObs" runat="server" Display="None" ControlToValidate="TxtOBs" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Observaciones''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardaBit"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEOBs" runat="server" HighlightCssClass="vco" TargetControlID="RFVObs" Width="300px" />--%>
|
||||
</td>
|
||||
<td align="center">
|
||||
<asp:UpdatePanel ID="UpImgBit" runat="server" UpdateMode="Conditional" ><ContentTemplate>
|
||||
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="SubirArchivo" data-toggle="modal" data-target="#ModalUploadBit" >
|
||||
|
||||
|
||||
<img id="ImgArchivoObs" runat="server" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" /></a>
|
||||
|
||||
</ContentTemplate></asp:UpdatePanel>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="trBtnAddObs" style="display: none; text-align: center; width: 980px;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="right" style="width: 40%">
|
||||
<asp:CheckBox ID="ChkRegresaraEstatusAnterior" ClientIDMode="Static" runat="server" Text="Regresar a Pendiente" /></td>
|
||||
<td align="left" style="width: 40%">
|
||||
<asp:CheckBox ID="ChkPasarEstatusSiguiente" ClientIDMode="Static" runat="server" Text="Pasar a Revisado" /></td>
|
||||
<td align="left" style="width: 20%">
|
||||
<asp:CheckBox ID="ChkPasarEstatusCancelado" ClientIDMode="Static" runat="server" Text="CANCELAR" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="center">
|
||||
<asp:Button ID="BtnAddObs" runat="server" Text="Aceptar" ClientIDMode="Static" ValidationGroup="GrpGuardaBit" class="btn btn-primary" />
|
||||
<caption>
|
||||
<input id="BtnCancelObs" style="display: none;" type="button" value="Cancelar" onclick="$get('divObs').style.display = 'none';" class="btn btn-danger" />
|
||||
</caption>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<asp:UpdatePanel ID="UPPDatosObs" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvObservaciones" runat="server" AutoGenerateColumns="False" Width="980px" ShowHeader="false" CssClass="table table-striped table-advance table-hover" Style="text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="FechaIng" DataFormatString="{0:d}" HeaderText="Fecha">
|
||||
<ItemStyle Width="90px" HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="NombreUsuario" DataFormatString=" {0}" HeaderText="Usuario">
|
||||
<ItemStyle Width="200px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="EventoComentario" DataFormatString=" {0}" HeaderText="Observación"></asp:BoundField>
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink Target="_blank" ID="HplA" runat="server" Visible='<%# Eval("Archivo").ToString <> "" %>'><img src="/Imagenes/descargar.png" alt="Descargar" style="height:18px;border:0;"/></asp:HyperLink>
|
||||
<asp:ImageButton ID="ImBtnPub" ToolTip="Publicar Documento" Visible="False" ImageUrl="/Imagenes/PublicarDoc.jpg" Height="18px" runat="server" />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" Width="30px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
<div id="DivRevision" runat="server" clientidmode="Static" width="500px" style="z-index: 999; border: solid 1px black; background-color: white; color: Black; display: none; position: fixed; top: 180px; left: 35%;">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr class="Titulos">
|
||||
<td width="450px" align="center">Registrar Revisión</td>
|
||||
<td style="padding-right: 0px;" valign="top">
|
||||
<img alt="" src="/imagenes/cerrarX.jpg" style="cursor: pointer;" onclick="$get('DivRevision').style.display='none';" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0">
|
||||
<tr>
|
||||
<td>Descripción</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtDescripcionRevision" Text="" Width="450px" Rows="4" TextMode="MultiLine" ClientIDMode="Static" ValidationGroup="GrpGuardar" runat="server" />
|
||||
<asp:RequiredFieldValidator ID="RFVDescripcionRevision" runat="server" ControlToValidate="TxtDescripcionRevision" InitialValue="" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEDescripcionRevision" runat="server" HighlightCssClass="vco" TargetControlID="RFVDescripcionRevision" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="2">
|
||||
<asp:Button ID="BtnAgregarRevision" runat="server" Text="Agregar" ValidationGroup="GrpGuardar" Width="100px" OnClick="BtnAgregarRevision_Click" class="btn btn-primary" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
<div id="ModalUpload" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Subir Archivo</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="UPAddEventoBitacora" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
<%--<div>
|
||||
|
||||
</div>--%>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnGuardarArchivo" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" />
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ModalUploadBit" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
|
||||
<div class="modal-content">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Subir Archivo</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<asp:TextBox ID="txtFileBit" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
<%--<div>
|
||||
|
||||
</div>--%>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="btnFileBit" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" />
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script language="javascript" type="text/javascript">
|
||||
var idConFocus = "-1";
|
||||
|
||||
function ConvierteCapital() {
|
||||
__doPostBack('lnkNull', '');
|
||||
}
|
||||
|
||||
function RevisaTextArea() {
|
||||
var Texto = document.getElementById('TxtAsunto');
|
||||
if (Texto)
|
||||
if (Texto.value.length > 1000)
|
||||
Texto.value = Texto.value.substring(0, 999);
|
||||
}
|
||||
|
||||
function MostrarOpcionesObs() {
|
||||
// $get('divObs').focus();
|
||||
$get('TxtOBs').rows = "5";
|
||||
$get('trBtnAddObs').style.display = 'inline';
|
||||
$get('trBtnAddObs').style.width = "980px";
|
||||
}
|
||||
|
||||
|
||||
document.onclick = function (e) {
|
||||
e = e || event
|
||||
var target = e.target || e.srcElement
|
||||
var elemento = document.getElementById('divObs');
|
||||
var elemento2 = document.getElementById('TxtOBs');
|
||||
|
||||
do {
|
||||
if (elemento == target || elemento2 == target) {
|
||||
MostrarOpcionesObs();
|
||||
return;
|
||||
}
|
||||
target = target.parentNode;
|
||||
} while (target)
|
||||
|
||||
OcultarOpcionesObs();
|
||||
}
|
||||
|
||||
|
||||
function OcultarOpcionesObs() {
|
||||
if (idConFocus == "ChkRegresaraEstatusAnterior" || idConFocus == "ChkPasarEstatusSiguiente" || idConFocus == "SubirArchivo") {
|
||||
//alert("Tiene el foco");
|
||||
} else {
|
||||
if ($get('TxtOBs')) $get('trBtnAddObs').rows = "2";
|
||||
if ($get('trBtnAddObs')) $get('trBtnAddObs').style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
function chkCambioEstatus(IDchkSel) {
|
||||
var chkSel = $get(IDchkSel);
|
||||
|
||||
if (chkSel.id == 'ChkRegresaraEstatusAnterior') {
|
||||
if ($get('ChkPasarEstatusSiguiente') != null) { $get('ChkPasarEstatusSiguiente').checked = false; }
|
||||
if ($get('ChkPasarEstatusCancelado') != null) { $get('ChkPasarEstatusCancelado').checked = false; }
|
||||
}
|
||||
|
||||
if (chkSel.id == 'ChkPasarEstatusSiguiente') {
|
||||
if ($get('ChkRegresaraEstatusAnterior') != null) { $get('ChkRegresaraEstatusAnterior').checked = false; }
|
||||
if ($get('ChkPasarEstatusCancelado') != null) { $get('ChkPasarEstatusCancelado').checked = false; }
|
||||
}
|
||||
|
||||
if (chkSel.id == 'ChkPasarEstatusCancelado') {
|
||||
if ($get('ChkRegresaraEstatusAnterior') != null) { $get('ChkRegresaraEstatusAnterior').checked = false; }
|
||||
if ($get('ChkPasarEstatusSiguiente') != null) { $get('ChkPasarEstatusSiguiente').checked = false; }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function CargaArchivo(Tipo) {
|
||||
|
||||
alert('dssdsd');
|
||||
if (Tipo == "Resguardo") {
|
||||
$("#BtnCargarResguardo").click();
|
||||
}
|
||||
else if (Tipo == "Imagen") {
|
||||
$("#BtnCargarArchivo").click();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function FiltrarGV() {
|
||||
var texto = $('#filtroGVtext').val();
|
||||
$('#<%=GVUsuarios.ClientID%> > tbody > tr').css({'display':'none'});
|
||||
$("#<%=GVUsuarios.ClientID%> > tbody > tr:contains('" + texto + "')").css({ 'display': '' });
|
||||
|
||||
$('#<%=GVUsuarios.ClientID%> > tbody > tr:nth-child(1)').css({ 'display': 'none' });
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
2035
OI/EventoDetalle.aspx.vb
Normal file
2035
OI/EventoDetalle.aspx.vb
Normal file
File diff suppressed because it is too large
Load Diff
364
OI/EventoDetalle1.aspx.exclude
Normal file
364
OI/EventoDetalle1.aspx.exclude
Normal file
@@ -0,0 +1,364 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="EventoDetalle1.aspx.vb" Inherits="OI_EventoDetalle1" %>
|
||||
|
||||
<%--<%@ Register Assembly="FUA" Namespace="Subgurim.Controles" TagPrefix="cc2" %>--%>
|
||||
|
||||
<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="E" runat="Server">
|
||||
<asp:Label ID="LblTitulo" runat="server" Text=""></asp:Label>
|
||||
<script language="javascript" type="text/javascript">
|
||||
function ConvierteCapital() {
|
||||
__doPostBack('lnkNull', '');
|
||||
}
|
||||
|
||||
function RevisaTextArea() {
|
||||
var Texto = document.getElementById('TxtAsunto');
|
||||
if (Texto)
|
||||
if (Texto.value.length > 1000)
|
||||
Texto.value = Texto.value.substring(0, 999);
|
||||
}
|
||||
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function CargaArchivo(Tipo) {
|
||||
if (Tipo == "Resguardo") {
|
||||
$("#BtnCargarResguardo").click();
|
||||
}
|
||||
else if (Tipo == "Imagen") {
|
||||
$("#BtnCargarArchivo").click();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="C" runat="Server">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td style="vertical-align: top;">
|
||||
<fieldset>
|
||||
<legend>Tarea</legend>
|
||||
<table border="1px" rules="all" style="border-collapse: collapse;" width="100%">
|
||||
<tr id="TrAsunto" style="vertical-align: top; text-align: left;" visible="false" runat="server">
|
||||
<td class="">Asunto:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtAsunto" runat="server" MaxLength="100" ValidationGroup="Guarda" Width="520px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" ControlToValidate="TxtAsunto" Display="None" ErrorMessage="El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOAsunto" runat="server" TargetControlID="RFVAsunto" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrDescripcion" visible="false" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Descripción:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtDescripcion" runat="server" MaxLength="500" TextMode="MultiLine" Height="50px" Width="520px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfvDescripcion" runat="server" ControlToValidate="txtDescripcion" Display="None" ErrorMessage="El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoDescripcion" runat="server" TargetControlID="rfvDescripcion" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="vertical-align: top; text-align: left;" id="trDe" runat="server" visible="False">
|
||||
<td class="">De:</td>
|
||||
<td>
|
||||
<asp:Label ID="LblDe" runat="server" Text=""></asp:Label></td>
|
||||
<td>Para:</td>
|
||||
<td>
|
||||
<asp:Label ID="LblPara" runat="server" Text=""></asp:Label></td>
|
||||
</tr>
|
||||
<tr style="vertical-align: top; text-align: left;" id="trCCP" runat="server" visible="False">
|
||||
<td class="">CCP:</td>
|
||||
<td colspan="3">
|
||||
<asp:Label ID="LblCCP" runat="server" Text=""></asp:Label></td>
|
||||
</tr>
|
||||
<tr id="TrPrioridad" visible="false" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Prioridad:</td>
|
||||
<td colspan="3">
|
||||
<asp:DropDownList ID="DdlPrioridad" runat="server" Width="136px">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Baja" Value="1" Style="color: #00CC00;"></asp:ListItem>
|
||||
<asp:ListItem Text="Media" Value="2" Style="color: #000000;"></asp:ListItem>
|
||||
<asp:ListItem Text="Alta" Value="3" Style="color: #FF0000;"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOPrio" runat="server" TargetControlID="RFVPrioridad" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrFechaInicio" visible="false" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Fecha Inicio:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtFechaInicio" runat="server" MaxLength="30" ValidationGroup="Guarda" Width="75px"></asp:TextBox>
|
||||
<asp:ImageButton runat="server" ID="ImgCalendario" ImageUrl="/imagenes/icono_calendaro.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
||||
<ajax:MaskedEditExtender ID="MEEFechaInicio" runat="server" TargetControlID="TxtFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="TxtFechaInicio" PopupButtonID="ImgCalendario" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="El campo <b>''Fecha Inicio''</b> es requerido por la aplicación, por favor ingrese una Fecha Inicio." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="El campo <b>''FechaInicio''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFfvFI" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaInicio" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOCVFI" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaInicio" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
Hora:
|
||||
<ew:TimePicker ID="TxtHoraInicio" runat="server" ControlDisplay="TextBoxImage" ImageUrl="/Imagenes/tool_timer.png" PopupWidth="100px" Width="50px" DisableTextBoxEntry="True" PopupHeight="150px" RoundUpMinutes="True" MilitaryTime="True" Culture="Spanish (Mexico)" LowerBoundTime="07:00" UpperBoundTime="20:30">
|
||||
<TimeStyle CssClass="Texto" />
|
||||
</ew:TimePicker>
|
||||
<ew:CustomValidator ID="CVHoraInicio" runat="server" ClientValidationFunction="RevisaHora" ControlToValidate="TxtHoraInicio" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></ew:CustomValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoHoraInicio" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraInicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrFechaFin" visible="false" runat="server" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Fecha Fin:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtFechaFin" runat="server" MaxLength="30" ValidationGroup="Guarda" Width="75px"></asp:TextBox>
|
||||
<asp:ImageButton runat="server" ID="ImgCalFechaFin" ImageUrl="/imagenes/icono_calendaro.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
||||
<ajax:MaskedEditExtender ID="MEEFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaFin" TargetControlID="TxtFechaFin" PopupButtonID="ImgCalFechaFin" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="El campo <b>''Fecha Fin''</b> es requerido por la aplicación, por favor ingrese una Fecha Fin." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="El campo <b>''Fecha Fin''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaFin1" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaFin" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaFin2" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaFin" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
Hora:
|
||||
<ew:TimePicker ID="TxtHoraFin" runat="server" ControlDisplay="TextBoxImage" ImageUrl="/Imagenes/tool_timer.png" PopupWidth="100px" Width="50px" DisableTextBoxEntry="True" PopupHeight="150px" RoundUpMinutes="True" MilitaryTime="True" Culture="Spanish (Mexico)" LowerBoundTime="07:00" UpperBoundTime="20:30">
|
||||
<TimeStyle CssClass="Texto" />
|
||||
</ew:TimePicker>
|
||||
<ew:CustomValidator ID="CVHoraFin" runat="server" ClientValidationFunction="RevisaHora" ControlToValidate="TxtHoraFin" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></ew:CustomValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoHoraFin" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraFin" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrFechaRealTermino" visible="false" runat="server" style="vertical-align: top; text-align: left;">
|
||||
<td class="">Fecha Real de Término:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtFechaRealTermino" runat="server" MaxLength="30" ValidationGroup="Guarda" Width="75px"></asp:TextBox>
|
||||
<asp:ImageButton runat="server" ID="ImgCalFechaRealTermino" ImageUrl="/imagenes/icono_calendaro.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
||||
<ajax:MaskedEditExtender ID="MEEFechaRealTermino" runat="server" TargetControlID="TxtFechaRealTermino" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaRealTermino" TargetControlID="TxtFechaRealTermino" PopupButtonID="ImgCalFechaRealTermino" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<%--<asp:RequiredFieldValidator ID="RFVFechaRealTermino" runat="server" ControlToValidate="TxtFechaRealTermino" Display="None" ErrorMessage="El campo <b>''Fecha Real de Término''</b> es requerido por la aplicación, por favor ingrese una Fecha Real de Término." ValidationGroup="Guarda"></asp:RequiredFieldValidator>--%>
|
||||
<asp:CompareValidator ID="CVFechaRealTermino" runat="server" ControlToValidate="TxtFechaRealTermino" Display="None" ErrorMessage="El campo <b>''Fecha Real de Término''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<%--<ajax:ValidatorCalloutExtender ID="VCEFechaRealTermino1" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaRealTermino" Width="250px"></ajax:ValidatorCalloutExtender>--%>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaRealTermino2" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaRealTermino" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrRevision" visible="false" runat="server" style="vertical-align: top; text-align: left;">
|
||||
<td class="">Revisión:</td>
|
||||
<td colspan="3">
|
||||
<asp:DropDownList ID="DdlRevision" runat="server" Width="136px" DataValueField="CveRevision" DataTextField="Revision">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrAgendaTipo" visible="false" runat="server" style="vertical-align: top; text-align: left;">
|
||||
<td class="">Agenda Tipo:</td>
|
||||
<td colspan="3">
|
||||
<asp:DropDownList ID="DdlAgendaTipo" runat="server" Width="136px" DataValueField="CveAgendaTipo" DataTextField="AgendaTipo">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrTipoReferencia" visible="false" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Tipo de Referencia:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtTipoReferencia" runat="server" MaxLength="5" ValidationGroup="Guarda" Width="75px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrReferencia" visible="false" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Referencia:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtReferencia" runat="server" MaxLength="50" ValidationGroup="Guarda" Width="250px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<%--ARCHIVO--%>
|
||||
<tr id="TrArchivo" visible="false" runat="server" style="vertical-align: top; text-align: left;">
|
||||
<td class="">Archivo</td>
|
||||
<td colspan="3">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<asp:UpdatePanel ID="UPAFUL" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:TextBox ID="TxtArchivo" runat="server"></asp:TextBox>
|
||||
<asp:Button ID="BtnCargarArchivo" runat="server" ClientIDMode="Static" Style="display: none;" />
|
||||
<asp:Button ID="BtnEliminarImagen" runat="server" ClientIDMode="Static" Style="display: none;" />
|
||||
<asp:HiddenField ID="HdnCveImagen" runat="server" Value="-1" ClientIDMode="Static" />
|
||||
<asp:HiddenField ID="HdnURL" runat="server" Value="-1" ClientIDMode="Static" />
|
||||
|
||||
<%--<cc2:fileuploaderajax id="FUAImagen" runat="server" maxfiles="1" text_uploading="Guardando..." file_renameifalreadyexists="False" text_x="Ocultar" text_Add="Mostrar" text_Delete="Eliminar" />--%>
|
||||
<a id="LnkUpload" runat="server" clientidmode="Static" class="Texto thickbox" href="/Planeacion/CargarArchivo.aspx?TB_iframe=true&height=210&width=350">Cargar Archivo</a>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<ul id="myGallery" runat="server" clientidmode="Static">
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
<%--USUARIO DE--%>
|
||||
<%--USUARIO PARA--%>
|
||||
<td id="TdUsuarios" runat="server" visible="false">
|
||||
|
||||
<table width="350px" border="0" cellspacing="0">
|
||||
<tr style="height: 25px" id="TrEstatus" runat="server" visible="false">
|
||||
<td> </td>
|
||||
<td>
|
||||
<fieldset>
|
||||
<legend>Estatus</legend>
|
||||
<asp:Label ID="LblEstatusEvento" runat="server" Text=""></asp:Label>
|
||||
</fieldset>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<table border="0px" cellpadding="0px" cellspacing="0px" width="350px">
|
||||
<tr>
|
||||
<td align="left" class="Titulos">Seleccione el usuario(s)</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border="1px" rules="all" style="border-collapse: collapse;" width="350px">
|
||||
<tr>
|
||||
<td align="center" class="Titulos" width="75px">Para</td>
|
||||
<td align="center" class="Titulos" width="75px">C. C. Para</td>
|
||||
<td class="Titulos">Usuario</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="DivUsr" runat="server" style="width: 350px; height: 200px; overflow-y: scroll;">
|
||||
|
||||
<asp:GridView ID="GVUsuarios" runat="server" AutoGenerateColumns="false" ShowHeader="false" Width="100%" DataKeyNames="CveUsuario,Nombre,Correo">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle HorizontalAlign="Center" Width="75px" />
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkPara" runat="server" Width="75px" />
|
||||
<ajax:MutuallyExclusiveCheckBoxExtender ID="MECBE" runat="server" TargetControlID="ChkPara" Key="Para"></ajax:MutuallyExclusiveCheckBoxExtender>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle HorizontalAlign="Center" Width="75px" />
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkCCP" runat="server" Width="75px" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlRol" runat="server" Text='<%# Eval("Rol") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="2">
|
||||
<asp:UpdatePanel ID="upGuardar" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="cmdGuardar" runat="server" Text="Guardar" ValidationGroup="Guarda" />
|
||||
<asp:Button ID="cmdRevision" runat="server" Text="Pendiente" Visible="False" />
|
||||
<asp:Button ID="cmdTerminada" runat="server" Text="Terminada" Visible="False" />
|
||||
<asp:Button ID="cmdRevisada" runat="server" Text="Revisada" Visible="False" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TdObservaciones" runat="server" visible="false">
|
||||
<td colspan="2">
|
||||
<asp:Panel ID="PnlEncObs" runat="server">
|
||||
<table border="1" style="border-collapse: collapse;" rules="all" width="980px">
|
||||
<tr class="Titulosb">
|
||||
<td align="left" colspan="4"> Observaciones <asp:Image ID="ImgAddObs" runat="server" ImageUrl="~/imagenes/add_comment.png" Style="cursor: pointer;" />
|
||||
<asp:Label ID="LblOcultaObs" runat="server"></asp:Label>
|
||||
<asp:UpdatePanel runat="server" ID="UPPObs" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div id="divObs" style="width: 465px; background-color: White; border: solid 1px black; color: Black; display: none; position: absolute;">
|
||||
<table border="0" width="465px" cellpadding="0" cellspacing="0">
|
||||
<tr class="Titulos">
|
||||
<td style="width: 460px">Observaciones:</td>
|
||||
<td style="padding-right: 4px; padding-top: 4px" valign="top">
|
||||
<img alt="" src="/imagenes/close.gif" style="cursor: pointer;" onclick="$get('divObs').style.display='none';" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> <asp:TextBox ID="TxtOBs" runat="server" TextMode="MultiLine" Rows="4" Width="450px" MaxLength="1000"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVObs" runat="server" Display="None" ControlToValidate="TxtOBs" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Observaciones''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardaBit"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEOBs" runat="server" HighlightCssClass="vco" TargetControlID="RFVObs" Width="300px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="SubirArchivo" onclick="javascript:AbrirVentana('/UploadFile.aspx?Pagina=Eventos',500,150);">Subir archivo: <img id="ImgArchivoObs" alt="Archivo" src="/Imagenes/cancel.png" style="border: 0px none white" /></a>
|
||||
<asp:CheckBox ID="ChkPublicar" runat="server" Visible="False" Text="Publicar Documento" />
|
||||
<asp:CheckBox ID="ChkRegresaraPendiente" runat="server" Visible="False" Text="Regresar a Pendiente" /></td>
|
||||
</tr>
|
||||
<tr style="height: 25px">
|
||||
<td align="center" colspan="2">
|
||||
<asp:Button ID="BtnAddObs" runat="server" Text="Aceptar" ValidationGroup="GrpGuardaBit" />
|
||||
<input id="BtnCancelObs" type="button" value="Cancelar" onclick="$get('divObs').style.display = 'none';" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
<td align="center" style="width: 30px">
|
||||
<asp:Image ID="ImgMuestraObs" runat="server" ImageUrl="/imagenes/FlechasAbajo.gif" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Panel>
|
||||
<ajax:CollapsiblePanelExtender ID="CPEObs" runat="server" TargetControlID="PnlObs" Collapsed="false" ImageControlID="ImgMuestraObs" SuppressPostBack="true" ExpandedImage="/imagenes/FlechasAbajo.gif" CollapsedImage="/imagenes/FlechasArriba.gif" CollapsedText="(Mostrar los obs...)" ExpandedText="(Oculta las obs...)" TextLabelID="LblOcultaObs" CollapseControlID="ImgMuestraObs" ExpandControlID="ImgMuestraObs" />
|
||||
<asp:Panel ID="PnlObs" runat="server">
|
||||
<asp:UpdatePanel ID="UPPDatosObs" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvObservaciones" runat="server" AutoGenerateColumns="False" Width="980px">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="FechaIng" DataFormatString="{0:d}" HeaderText="Fecha">
|
||||
<ItemStyle Width="90px" HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="NombreUsuario" DataFormatString=" {0}" HeaderText="Usuario">
|
||||
<ItemStyle Width="200px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="EventoComentario" DataFormatString=" {0}" HeaderText="Observación">
|
||||
<ItemStyle Width="640px" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink ID="HplA" runat="server" Visible='<%# Eval("Archivo").ToString <> "" %>'><img src="/Imagenes/descargar.png" alt="Descargar" style="height:18px;border:0;"/></asp:HyperLink>
|
||||
<asp:ImageButton ID="ImBtnPub" ToolTip="Publicar Documento" Visible="False" ImageUrl="/Imagenes/PublicarDoc.jpg" Height="18px" runat="server" />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" Width="30px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Panel>
|
||||
<br />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="500">
|
||||
<ProgressTemplate>
|
||||
<div id="overlay">
|
||||
<div id="modalprogress">
|
||||
<div id="theprogress">
|
||||
<img src="/Imagenes/Cargando.gif" style="border-width: 0px;" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
</asp:Content>
|
||||
1156
OI/EventoDetalle1.aspx.vb.exclude
Normal file
1156
OI/EventoDetalle1.aspx.vb.exclude
Normal file
File diff suppressed because it is too large
Load Diff
283
OI/Eventos.aspx
Normal file
283
OI/Eventos.aspx
Normal file
@@ -0,0 +1,283 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Eventos.aspx.vb" Inherits="OI_Eventos" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
Eventos
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<%--DE --PARA--%>
|
||||
<td>
|
||||
<div id="DivAna1">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">De:</td>
|
||||
<td class="Texto" width="200px">
|
||||
<label id="LblUsuarioDe"></label>
|
||||
</td>
|
||||
<td class="Titulos" width="80px">Para:</td>
|
||||
<td class="Texto" width="200px">
|
||||
<label id="LblUsuarioPara"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td style="vertical-align: top" rowspan="13"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%--CCP--%>
|
||||
<td>
|
||||
<div id="DivAna2">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Con Copia Para(CCP):</td>
|
||||
<td class="Texto">
|
||||
<label id="LblCCP"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%--ASUNTO--%>
|
||||
<td>
|
||||
<div id="DivAna3">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Asunto:</td>
|
||||
<td class="Texto">
|
||||
<label id="LblAsunto"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%--PRIORIDAD--%>
|
||||
<td>
|
||||
<div id="DivAna4">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Prioridad:</td>
|
||||
<td class="Texto">
|
||||
<label id="LblPrioridad"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%--REVISION--%>
|
||||
<td>
|
||||
<div id="DivAna5">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Revisión:</td>
|
||||
<td class="Texto">
|
||||
<label id="LblRevision"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%--REFERENCIA--%>
|
||||
<td>
|
||||
<div id="DivAna6">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Referencia:</td>
|
||||
<td class="Texto">
|
||||
<label id="LblTipoReferencia"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%--TIPO EVENTO--%>
|
||||
<td>
|
||||
<div id="DivAna7">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Tipo Evento:</td>
|
||||
<td class="Texto">
|
||||
<label id="LblTipoEvento"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%--ESTATUS EVENTO--%>
|
||||
<td>
|
||||
<div id="DivAna8">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Estatus Evento:</td>
|
||||
<td class="Texto">
|
||||
<label id="LblEstatusEvento"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%--FECHA INICIO--%>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="DivAna9">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Fecha Inicio:</td>
|
||||
<td class="Texto" width="200px">
|
||||
<label id="LblFechaInicio"></label>
|
||||
</td>
|
||||
<td class="Titulos" width="80px">Fecha Fin:</td>
|
||||
<td class="Texto">
|
||||
<label id="LblFechaFin"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td style="vertical-align: top" rowspan="13"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%--FECHA REAL DE TERMINO--%>
|
||||
<td>
|
||||
<div id="DivAna10">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Fecha Real de Término:</td>
|
||||
<td class="Texto">
|
||||
<label id="LblFechaRealTermino"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%--ORDEN--%>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="DivAna11">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Orden:</td>
|
||||
<td class="Texto">
|
||||
<label id="LblOrden"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%--REFERENCIA--%>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="DivAna12">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Referencia:</td>
|
||||
<td class="Texto">
|
||||
<label id="Lbleferencia"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%--FECHA ING--%>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="DivAna13">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Fecha Ingresó:</td>
|
||||
<td class="Texto">
|
||||
<label id="LblFechaIng"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%--ARCHIVO ADJUNTO--%>
|
||||
<td>
|
||||
<div id="DivAna14">
|
||||
<table width="100%" class="table table-striped table-advance table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Archivo Adjunto</td>
|
||||
<td class="Texto">
|
||||
<label id="LblArchivo"></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%--DESCRIPCION--%>
|
||||
<tr>
|
||||
<td class="Titulos" width="80px">Descripción:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="Texto">
|
||||
<textarea id="txtDesc" style="height: 50px; width: 99%;" readonly="true" cols="20" rows="2" name="txtDesc">Descripción</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script language="javascript" type="text/javascript">
|
||||
function C() {
|
||||
return confirm('¿Está seguro que desea eliminar el Evento?');
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
5
OI/Eventos.aspx.vb
Normal file
5
OI/Eventos.aspx.vb
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
Partial Class OI_Eventos
|
||||
Inherits System.Web.UI.Page
|
||||
|
||||
End Class
|
||||
216
OI/GraficaGantt.aspx
Normal file
216
OI/GraficaGantt.aspx
Normal file
@@ -0,0 +1,216 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="GraficaGantt.aspx.vb" Inherits="OI_GraficaGantt" %>
|
||||
|
||||
<asp:Content ID="ContentCP" ContentPlaceHolderID="CP" Runat="Server">
|
||||
<link href="../Metronic/GraficaGantt/dhtmlxgantt.css" rel="stylesheet" />
|
||||
<style>
|
||||
.scalasgants input:checked + label{
|
||||
border-bottom: 2px solid #45B6AF;
|
||||
}
|
||||
.scalasgants input{
|
||||
display:none;
|
||||
}
|
||||
.scalasgants label{
|
||||
padding:5px;
|
||||
padding-bottom:10px;
|
||||
}
|
||||
.scalasgants label:hover {
|
||||
background-color: rgba(0,0,0,0.03);
|
||||
border-bottom: 2px solid #89FFF3;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentCss" ContentPlaceHolderID="Css" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentE" ContentPlaceHolderID="E" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentHB" ContentPlaceHolderID="HB" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentH" ContentPlaceHolderID="H" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentC" ContentPlaceHolderID="C" Runat="Server">
|
||||
<%--<asp:UpdatePanel ID="UPfiltros" runat="server"><ContentTemplate>--%>
|
||||
<div class="portlet solid grey-cascade portlet-filter">
|
||||
<div class="portlet-title portlet-filterT smalltitle">
|
||||
<div class="tools">
|
||||
<asp:Button ID="BtnConsultar" Text="Consultar" runat="server" CssClass="btn btn-default" />
|
||||
</div>
|
||||
<div class="titlefiltros caption ">
|
||||
<div class="row">
|
||||
<label class="col-md-1" style="width: 70px;">De:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DdlUsuario" CssClass="form-control input-sm" runat="server" DataTextField="Nombre" DataValueField="CveUsuario">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
<%--<label class="col-md-1" style="width: 70px;">Para:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DDlPara" CssClass="form-control input-sm" runat="server" DataTextField="Nombre" DataValueField="CveUsuario">
|
||||
</asp:DropDownList>
|
||||
</div>--%>
|
||||
<div class="col-md-2" >
|
||||
<div class="row">
|
||||
<label class="col-md-3 truncate">Revisión:</label>
|
||||
<div class="col-md-9">
|
||||
<asp:DropDownList ID="DdlRevision" CssClass="form-control input-sm" runat="server" DataTextField="Revision" DataValueField="CveRevision">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2" >
|
||||
<div class="row">
|
||||
<label class="col-md-5 truncate">Primer Nivel:</label>
|
||||
<div class="col-md-7">
|
||||
<asp:DropDownList ID="DdlPrimerNivel" AutoPostBack="true" CssClass="form-control input-sm" runat="server" DataTextField="Asunto" DataValueField="CveEvento">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2" >
|
||||
<div class="row">
|
||||
<label class="col-md-3 truncate">Segundo Nivel:</label>
|
||||
<div class="col-md-9">
|
||||
<asp:DropDownList ID="DdlSegundoNivel" CssClass="form-control input-sm" runat="server" DataTextField="Asunto" DataValueField="CveEvento">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2" runat="server" id="TdSubTotales" visible="false">
|
||||
<div class="row">
|
||||
<label class="col-md-3 truncate">SubTotales:</label>
|
||||
<div class="col-md-9">
|
||||
<asp:DropDownList ID="DdlSubtotales" CssClass="form-control input-sm" runat="server">
|
||||
<asp:ListItem Text="Sin Subtotales" Value="1"></asp:ListItem>
|
||||
<asp:ListItem Text="Trimestral" Value="2"></asp:ListItem>
|
||||
<asp:ListItem Text="Cuatrimestral" Value="3"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%--</ContentTemplate></asp:UpdatePanel>--%>
|
||||
<br />
|
||||
<asp:HiddenField ID="Asunto" runat="server" />
|
||||
<asp:HiddenField ID="FechaInicio" runat="server" />
|
||||
<asp:HiddenField ID="Duracion" runat="server" />
|
||||
<asp:HiddenField ID="EventoPadre" runat="server" />
|
||||
<asp:Button ID="NewUser" runat="server" CssClass="hidden" Text="Button" />
|
||||
|
||||
<div class="portlet light calendar ">
|
||||
<div class="portlet-title ">
|
||||
<div class="caption">
|
||||
<i class="icon-calendar font-green-sharp"></i>
|
||||
<span class="caption-subject font-green-sharp bold uppercase">TaReaS</span>
|
||||
</div>
|
||||
<div class="actions scalasgants">
|
||||
<input type="radio" id="scaleD" name="scale" value="1" /><label for="scaleD">Día</label>
|
||||
<input type="radio" id="scaleS" name="scale" value="2" /><label for="scaleS">Semana</label>
|
||||
<input type="radio" id="scaleM" name="scale" value="3" checked="checked" /><label for="scaleM">Mes</label>
|
||||
<input type="radio" id="scaleA" name="scale" value="4" /><label for="scaleA">Año</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<div id="gantt_here" style='width: 100%; height: 600px;'></div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentJS" ContentPlaceHolderID="JS" Runat="Server">
|
||||
<script src="../Metronic/GraficaGantt/dhtmlxgantt.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function setScaleConfig(value){
|
||||
switch (value) {
|
||||
case "1":
|
||||
gantt.config.scale_unit = "day";
|
||||
gantt.config.step = 1;
|
||||
gantt.config.date_scale = "%d %M";
|
||||
gantt.config.subscales = [];
|
||||
gantt.config.scale_height = 27;
|
||||
gantt.templates.date_scale = null;
|
||||
break;
|
||||
case "2":
|
||||
var weekScaleTemplate = function(date){
|
||||
var dateToStr = gantt.date.date_to_str("%d %M");
|
||||
var endDate = gantt.date.add(gantt.date.add(date, 1, "week"), -1, "day");
|
||||
return dateToStr(date) + " - " + dateToStr(endDate);
|
||||
};
|
||||
|
||||
gantt.config.scale_unit = "week";
|
||||
gantt.config.step = 1;
|
||||
gantt.templates.date_scale = weekScaleTemplate;
|
||||
gantt.config.subscales = [
|
||||
{unit:"day", step:1, date:"%D" }
|
||||
];
|
||||
gantt.config.scale_height = 50;
|
||||
break;
|
||||
case "3":
|
||||
gantt.config.scale_unit = "month";
|
||||
gantt.config.date_scale = "%F, %Y";
|
||||
gantt.config.subscales = [
|
||||
{unit:"day", step:1, date:"%j, %D" }
|
||||
];
|
||||
gantt.config.scale_height = 50;
|
||||
gantt.templates.date_scale = null;
|
||||
break;
|
||||
case "4":
|
||||
gantt.config.scale_unit = "year";
|
||||
gantt.config.step = 1;
|
||||
gantt.config.date_scale = "%Y";
|
||||
gantt.config.min_column_width = 50;
|
||||
|
||||
gantt.config.scale_height = 90;
|
||||
gantt.templates.date_scale = null;
|
||||
|
||||
|
||||
gantt.config.subscales = [
|
||||
{unit:"month", step:1, date:"%M" }
|
||||
];
|
||||
break;
|
||||
}
|
||||
}
|
||||
var datagant =<%= DTTogant()%>;
|
||||
|
||||
function convertDate(inputFormat) {
|
||||
function pad(s) { return (s < 10) ? '0' + s : s; }
|
||||
var d = new Date(inputFormat);
|
||||
return [pad(d.getDate()), pad(d.getMonth() + 1), d.getFullYear()].join('/');
|
||||
}
|
||||
|
||||
Sys.Application.add_load(function (s, e) {
|
||||
setScaleConfig('3');
|
||||
// gantt.config.sort = true;
|
||||
gantt.init("gantt_here");
|
||||
gantt.parse(datagant);
|
||||
gantt.attachEvent("onLightbox", function (task_id){
|
||||
AbrirVentana('/OI/EventoDetalle.aspx?Masterimpoup=true&CveTipoEvento=3&CveEventoPadre='+task_id,900,630,'Proyecto');
|
||||
gantt.hideLightbox();
|
||||
});
|
||||
|
||||
var func = function (e) {
|
||||
e = e || window.event;
|
||||
var el = e.target || e.srcElement;
|
||||
var value = el.value;
|
||||
setScaleConfig(value);
|
||||
gantt.render();
|
||||
};
|
||||
|
||||
var els = document.getElementsByName("scale");
|
||||
for (var i = 0; i < els.length; i++) {
|
||||
els[i].onclick = func;
|
||||
}
|
||||
gantt.attachEvent("onAfterTaskAdd", function (id, item) {
|
||||
// console.log(item.text + " itemstart:" + convertDate(item.start_date) + " " + item.start_date + " duration:" + item.duration + " pogresss:" + item.progress + " Parent:" + item.parent);
|
||||
$('#<%= Asunto.ClientID%>').val(item.text);
|
||||
$('#<%= FechaInicio.ClientID%>').val(convertDate(item.start_date));
|
||||
$('#<%= EventoPadre.ClientID%>').val(item.parent);
|
||||
$('#<%= Duracion.ClientID%>').val(item.duration);
|
||||
$('#<%= NewUser.ClientID%>').click();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
131
OI/GraficaGantt.aspx.vb
Normal file
131
OI/GraficaGantt.aspx.vb
Normal file
@@ -0,0 +1,131 @@
|
||||
Imports Extensiones
|
||||
Imports System.Data
|
||||
|
||||
Partial Class OI_GraficaGantt
|
||||
Inherits ClsPaginas
|
||||
|
||||
Private Property DTDatos As DataTable
|
||||
Get
|
||||
Return CType(ViewState("DTDatos"), DataTable)
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
ViewState("DTDatos") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
If Not IsPostBack Then
|
||||
|
||||
DdlSegundoNivel.DataBind()
|
||||
DdlSegundoNivel.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
DdlPrimerNivel.DataBind()
|
||||
DdlPrimerNivel.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
CargaCombos()
|
||||
CargaEventos()
|
||||
CargaComboP1()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub CargaCombos()
|
||||
'usuarios
|
||||
DdlUsuario.DataSource = GlobalDTUsuarios(CveEmpresa:=UsuarioActual.CveEmpresa)
|
||||
DdlUsuario.DataBind()
|
||||
DdlUsuario.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
DdlUsuario.SelectedValue = -1
|
||||
'Revision
|
||||
Dim ObjOI As New ClsOIEventos
|
||||
|
||||
If ObjOI.GetRevisionesEventos(UsuarioActual.CveEmpresa) Then
|
||||
DdlRevision.DataSource = ObjOI.DtResultados
|
||||
DdlRevision.DataBind()
|
||||
End If
|
||||
ObjOI.Dispose()
|
||||
DdlRevision.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
DdlRevision.SelectedValue = -1
|
||||
End Sub
|
||||
|
||||
Protected Sub CargaEventos()
|
||||
Dim de As Integer = DdlUsuario.SelectedValue
|
||||
Dim cverevision As Integer = DdlRevision.SelectedValue
|
||||
Dim objoi As New ClsOIEventos
|
||||
If objoi.GetEventosProyecto(UsuarioActual.CveEmpresa, de, cverevision, DdlPrimerNivel.SelectedValue, DdlSegundoNivel.SelectedValue) Then
|
||||
DTDatos = objoi.DtResultados
|
||||
End If
|
||||
objoi.Dispose()
|
||||
End Sub
|
||||
Private Sub CargaComboP1()
|
||||
DdlPrimerNivel.Items.Clear()
|
||||
DdlPrimerNivel.DataSource = DTDatos.FiltraParametros("CveEventoPadre = 0")
|
||||
DdlPrimerNivel.DataBind()
|
||||
DdlPrimerNivel.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
DdlSegundoNivel.Items.Clear()
|
||||
DdlSegundoNivel.DataBind()
|
||||
DdlSegundoNivel.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
End Sub
|
||||
|
||||
Private Sub CargaComboP2()
|
||||
DdlSegundoNivel.Items.Clear()
|
||||
DdlSegundoNivel.DataSource = DTDatos.FiltraParametros(String.Format("CveEventoPadre = {0} OR {0}=-1", DdlPrimerNivel.SelectedValue))
|
||||
DdlSegundoNivel.DataBind()
|
||||
DdlSegundoNivel.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
End Sub
|
||||
Protected Sub DdlPrimerNivel_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlPrimerNivel.SelectedIndexChanged
|
||||
CargaComboP2()
|
||||
End Sub
|
||||
Public Function DTTogant() As String
|
||||
Dim StrDatos As New StringBuilder
|
||||
StrDatos.Append("{""data"": [ ")
|
||||
Dim dttemp As DataTable = GetDatos()
|
||||
If Not (dttemp Is Nothing) Then
|
||||
For Each item As DataRow In dttemp.Rows '28-03-2013
|
||||
Dim duracion = DateDiff(DateInterval.Day, item("FechaInicio").ToString().ToDate(), item("FechaFin").ToString().ToDate())
|
||||
If item("ISFhater").ToString = "1" Then
|
||||
StrDatos.AppendFormat("{{""id"": {0}, ""text"": ""{1}"", ""start_date"": ""{2}"",""type"":""Project"", ""progress"": {4},""parent"":{5}, ""open"": true,""end_date"": ""{6}"",""users"":""{7}""}},", item("CveEvento").ToString, item("Asunto").ToString, If(item("FechaInicio").ToString <> "", item("FechaInicio").ToString().Substring(0, 10), ""), duracion, item("Avance").ToString.ToEntero / 100, item("CveEventoPadre").ToString().ToEntero, If(item("FechaFin").ToString <> "", item("FechaFin").ToString().Substring(0, 10), ""), item("UsuarioDe").ToString)
|
||||
Else
|
||||
StrDatos.AppendFormat("{{""id"": {0}, ""text"": ""{1}"", ""start_date"": ""{2}"", ""duration"": ""{3}"", ""progress"": {4},""parent"":{5}, ""open"": true,""end_date"": ""{6}"",""users"":""{7}""}},", item("CveEvento").ToString, item("Asunto").ToString, If(item("FechaInicio").ToString <> "", item("FechaInicio").ToString().Substring(0, 10), ""), duracion, item("Avance").ToString.ToEntero / 100, item("CveEventoPadre").ToString().ToEntero, If(item("FechaFin").ToString <> "", item("FechaFin").ToString().Substring(0, 10), ""), item("UsuarioDe").ToString)
|
||||
End If
|
||||
|
||||
Next
|
||||
End If
|
||||
|
||||
Return StrDatos.ToString.Substring(0, StrDatos.ToString.Length - 1) & "]}"
|
||||
End Function
|
||||
|
||||
Public Function GetDatos() As DataTable
|
||||
Dim dt As DataTable = DTDatos.Copy
|
||||
|
||||
'If Not (DdlPrimerNivel.SelectedValue = -1 And DdlSegundoNivel.SelectedValue = -1) Then
|
||||
' dt.Clear()
|
||||
'End If
|
||||
Return dt
|
||||
End Function
|
||||
|
||||
|
||||
Protected Sub NewUser_Click(sender As Object, e As EventArgs) Handles NewUser.Click
|
||||
Dim FechaI As Date = FechaInicio.Value.ToDate()
|
||||
Dim Fechaf As Date = FechaI.AddDays(Duracion.Value.ToEntero)
|
||||
Dim objOI As New ClsOIEventos
|
||||
If objOI.AddEventoProyecto(Asunto.Value, Asunto.Value, 1, UsuarioActual.CveUsuario, -1, FechaI, Fechaf,
|
||||
EventoPadre.Value.ToEntero, -1, "", -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario,-1,
|
||||
UsuarioActual.CveEmpresa) Then
|
||||
Dim newrow As DataRow = DTDatos.NewRow()
|
||||
newrow("CveEvento") = objOI.CveEvento
|
||||
newrow("Asunto") = Asunto.Value
|
||||
newrow("FechaInicio") = FechaInicio.Value
|
||||
newrow("FechaFin") = Fechaf.ToString("dd/MM/yyyy")
|
||||
newrow("CveEventoPadre") = EventoPadre.Value
|
||||
DTDatos.Rows.Add(newrow)
|
||||
Else
|
||||
Alert("No se logro agregar la tarea", TipoMensaje.MsgInformacion)
|
||||
|
||||
End If
|
||||
objOI.Dispose()
|
||||
|
||||
End Sub
|
||||
|
||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
CargaEventos()
|
||||
' RegistraScript(String.Format("debugger;gantt.parse('{0}');datagant='{0}';", DTTogant()))
|
||||
End Sub
|
||||
End Class
|
||||
796
OI/Minutas.aspx
Normal file
796
OI/Minutas.aspx
Normal file
@@ -0,0 +1,796 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Minutas.aspx.vb" Inherits="OI_Minutas" EnableEventValidation="false" ValidateRequest="false" %>
|
||||
|
||||
<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
Minutas
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Literal ID="LtlCSS" runat="server"></asp:Literal>
|
||||
|
||||
<div style="height: 12px; width: 100%; text-align: right; font-style: italic; font-weight: bold">
|
||||
<span id="ltlFechaAutoGuardado"></span>
|
||||
</div>
|
||||
|
||||
<div runat="server" id="LtModificada" visible="false" style="width: 100%; text-align: center; font-style: italic; font-weight: bold;">
|
||||
<h3>Minuta modificada</h3>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
||||
<div class="col-md-5">
|
||||
<div class="portlet smmallpadding light bordered" style="height:259px">
|
||||
<asp:UpdatePanel runat="server" ID="UpDatosMinuta" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Datos de minuta</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body form">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td style="vertical-align: top">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td style="width: 80px" class="">Asunto:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtAsunto" ClientIDMode="Static" runat="server" MaxLength="100" ValidationGroup="Guarda" Style="width: 250px" Font-Size="16px" Font-Bold="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" ControlToValidate="TxtAsunto" Display="None" ErrorMessage="El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOAsunto" runat="server" TargetControlID="RFVAsunto" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 80px" class="">Descripción:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtDescripcion" ClientIDMode="Static" runat="server" MaxLength="100" TextMode="MultiLine" Rows="5" ValidationGroup="Guarda" Style="width: 250px" Font-Size="16px" Font-Bold="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVDescripcion" runat="server" ControlToValidate="TxtDescripcion" Display="None" ErrorMessage="El campo <b>''Descripcion''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCODescripcion" runat="server" TargetControlID="RFVDescripcion" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Archivo:
|
||||
</td>
|
||||
<td>
|
||||
<asp:UpdatePanel ID="UPAFUL" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:TextBox ID="TxtArchivo" runat="server" Visible="true" Width="230px" Enabled="false"></asp:TextBox>
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="A1" onclick="javascript:AbrirVentana('/UploadFile.aspx?Pagina=Eventos&ImgOpener=ImgArchivo',500,150);" visible="true">
|
||||
<img id="ImgArchivo" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" /></a>
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="A2" target="_blank" visible="false">
|
||||
<img id="Img1" alt="Archivo" src="/Imagenes/descargar.png" style="width: 16px; height: 16px; border: 0px none white" /></a>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrParticipantes" runat="server" visible="false">
|
||||
<td class="">Participantes:</td>
|
||||
<td>
|
||||
<asp:Label ID="LblUsuariosCCP" runat="server"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</table>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
||||
|
||||
<div class="col-md-5">
|
||||
<asp:UpdatePanel runat="server" ID="UpSeleccionUsuarios" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet smmallpadding light bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Usuarios Incluidos</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body form ADScroller" id="divSeleccionUsuarios" style="height:200px; overflow-y:scroll;" runat="server">
|
||||
<table class="Widthall">
|
||||
|
||||
|
||||
|
||||
<div id="DivUsr" runat="server" style="width: 350px; overflow-y:scroll;">
|
||||
<asp:GridView ID="GVUsuarios" runat="server" AutoGenerateColumns="false" ShowHeader="false" Width="100%" DataKeyNames="CveUsuario,Nombre,Correo" CssClass="table table-striped table-advance table-hover" style="text-align:center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle HorizontalAlign="Center" Width="75px" />
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkPara" runat="server" Width="75px" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlRol" runat="server" Text='<%# Eval("Rol") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
|
||||
<div id="divUsuarios" runat="server" visible="false" style="width: 350px; overflow-y: scroll;">
|
||||
<table border="1" style="height: 200px; width: 350px; border-collapse: collapse;">
|
||||
<tr>
|
||||
<td style="font-weight: bold; height: 20px; background-color: gray; color: white; width: 60px">Capturo:</td>
|
||||
<td style="background-color: silver; color: white;">
|
||||
<asp:Label runat="server" Font-Bold="true" ID="lblUsuarioIng"></asp:Label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-top: 10px; vertical-align: top; font-weight: bold; height: 20px; background-color: gray; color: white; width: 60px">Participantes:</td>
|
||||
<td style="vertical-align: top">
|
||||
<asp:GridView ID="gvUsuariosVista" runat="server" ShowHeader="false" AutoGenerateColumns="false" Width="100%" DataKeyNames="CveUsuario,Nombre,Correo" CssClass="table table-striped table-advance table-hover" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField >
|
||||
<ItemStyle Height="20px" HorizontalAlign="Left" />
|
||||
<HeaderStyle HorizontalAlign="Left" BackColor="Silver" />
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
||||
<div style="display:inline-block">
|
||||
<asp:UpdatePanel ID="upGuardar" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet smmallpadding light bordered">
|
||||
<asp:HiddenField runat="server" ID="hdnCveEvento" ClientIDMode="Static" />
|
||||
<asp:HiddenField runat="server" ID="hdnCveEventoEstatus" Value="1" ClientIDMode="Static" />
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">OPCIONES</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body form" id="dvOpciones" runat="server">
|
||||
<table class="Widthall">
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Button ID="btnGuardar" Width="150px" runat="server" Text="Guardar" ValidationGroup="Guarda" class="btn btn-primary" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="btnTerminarMinuta" Width="150px" runat="server" Text="Terminar Minuta" class="btn btn-primary" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="btnEnviarMinuta" Width="150px" runat="server" Text="Enviar Minuta" class="btn btn-primary" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table>
|
||||
<tr id="TdDetalles" style="display: none">
|
||||
<td colspan="2">
|
||||
<br />
|
||||
<ajax:TabContainer ID="Tab" runat="server" ActiveTabIndex="0" Width="100%">
|
||||
<ajax:TabPanel ID="TabMinuta" runat="server" HeaderText="Acuerdos">
|
||||
<ContentTemplate>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="vertical-align: top;">
|
||||
<table border="1px" rules="all" style="border-collapse: collapse;" width="100%">
|
||||
<tr style="vertical-align: top; text-align: left;">
|
||||
<td>
|
||||
|
||||
<asp:TextBox ID="TxtAcuerdos" ClientIDMode="Static" runat="server" MaxLength="5000" TextMode="MultiLine" Height="300px" Width="960px"></asp:TextBox>
|
||||
<ajax:HtmlEditorExtender
|
||||
ID="htmlEdDescripcion"
|
||||
TargetControlID="TxtAcuerdos"
|
||||
DisplaySourceTab="True"
|
||||
EnableSanitization="false"
|
||||
runat="server">
|
||||
<Toolbar>
|
||||
<ajax:Undo />
|
||||
<ajax:Redo />
|
||||
<ajax:Bold />
|
||||
<ajax:Italic />
|
||||
<ajax:Underline />
|
||||
<ajax:StrikeThrough />
|
||||
<ajax:Subscript />
|
||||
<ajax:Superscript />
|
||||
<ajax:JustifyLeft />
|
||||
<ajax:JustifyCenter />
|
||||
<ajax:JustifyRight />
|
||||
<ajax:JustifyFull />
|
||||
<ajax:InsertOrderedList />
|
||||
<ajax:InsertUnorderedList />
|
||||
<ajax:CreateLink />
|
||||
<ajax:UnLink />
|
||||
<ajax:RemoveFormat />
|
||||
<ajax:SelectAll />
|
||||
<ajax:UnSelect />
|
||||
<ajax:Delete />
|
||||
<ajax:Cut />
|
||||
<ajax:Copy />
|
||||
<ajax:Paste />
|
||||
<ajax:BackgroundColorSelector />
|
||||
<ajax:ForeColorSelector />
|
||||
<ajax:FontNameSelector />
|
||||
<ajax:FontSizeSelector />
|
||||
<ajax:Indent />
|
||||
<ajax:Outdent />
|
||||
<ajax:InsertHorizontalRule />
|
||||
<ajax:HorizontalSeparator />
|
||||
<%--<ajax:InsertImage />--%>
|
||||
</Toolbar>
|
||||
</ajax:HtmlEditorExtender>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TabTarea" runat="server" HeaderText="Tareas">
|
||||
<ContentTemplate>
|
||||
<asp:UpdatePanel ID="UPPDatosDetallesTareas" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<table border="0px" width="100%">
|
||||
<tr style="vertical-align: top; text-align: left;">
|
||||
<td class="">Asunto:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="txtAsuntoTarea" runat="server" MaxLength="100" ValidationGroup="GuardaTarea" Width="520px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVAsuntoTarea" runat="server" ControlToValidate="txtAsuntoTarea" Display="None" ErrorMessage="El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GuardaTarea"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOAsuntoTarea" runat="server" TargetControlID="RFVAsuntoTarea" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
<td class="">Prioridad:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="ddlPrioridadTarea" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" style="width:136px !important;">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Baja" Value="1" Style="color: #00CC00;"></asp:ListItem>
|
||||
<asp:ListItem Text="Media" Value="2" Style="color: #000000;"></asp:ListItem>
|
||||
<asp:ListItem Text="Alta" Value="3" Style="color: #FF0000;"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVPrioridadTarea" runat="server" ControlToValidate="ddlPrioridadTarea" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GuardaTarea"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOPrioridadTarea" runat="server" TargetControlID="RFVPrioridadTarea" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="vertical-align: top; text-align: left;">
|
||||
<td class="" rowspan="4">Descripción:</td>
|
||||
<td rowspan="4">
|
||||
<asp:TextBox ID="txtDescripcionTarea" runat="server" MaxLength="500" TextMode="MultiLine" Height="50px" Width="520px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVDescripcionTarea" runat="server" ControlToValidate="txtDescripcionTarea" Display="None" ErrorMessage="El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GuardaTarea"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCODescripcionTarea" runat="server" TargetControlID="RFVDescripcionTarea" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
<td class="">Para:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="ddlUsuarioTarea" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" style="width:200px !important;" DataTextField="Nombre" DataValueField="CveUsuario">
|
||||
</asp:DropDownList>
|
||||
<asp:RangeValidator ID="RVUsuarioTarea" runat="server" ControlToValidate="ddlUsuarioTarea" Display="None" Type="Integer" MinimumValue="1" MaximumValue="2147483647" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Para''</b> es necesario, por favor seleccione uno." ValidationGroup="GuardaTarea"></asp:RangeValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOUsuarioTarea" runat="server" HighlightCssClass="vco" TargetControlID="RVUsuarioTarea" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Fecha Inicio</td>
|
||||
<td>
|
||||
<asp:TextBox ID="txtFechaInicioTarea" runat="server" MaxLength="30" ValidationGroup="GuardaTarea" Width="75px"></asp:TextBox>
|
||||
<asp:ImageButton runat="server" ID="ImgCalendarioTareaFI" ImageUrl="/imagenes/icono_calendaro.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
||||
<ajax:MaskedEditExtender ID="MEEFechaInicioTarea" runat="server" TargetControlID="txtFechaInicioTarea" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CalendarioTareaFI" TargetControlID="txtFechaInicioTarea" PopupButtonID="ImgCalendarioTareaFI" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaInicioTarea" runat="server" ControlToValidate="txtFechaInicioTarea" Display="None" ErrorMessage="El campo <b>''Fecha Inicio''</b> es requerido por la aplicación, por favor ingrese una Fecha Inicio." ValidationGroup="GuardaTarea"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaInicioTarea" runat="server" ControlToValidate="txtFechaInicioTarea" Display="None" ErrorMessage="El campo <b>''Fecha''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GuardaTarea"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFfvFITarea" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaInicioTarea" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOCVFITarea" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaInicioTarea" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
Hora:
|
||||
|
||||
<ew:TimePicker ID="TxtHoraInicioTarea" runat="server" ControlDisplay="TextBoxImage" ImageUrl="/Imagenes/tool_timer.png" PopupWidth="100px" Width="50px" DisableTextBoxEntry="True" PopupHeight="150px" RoundUpMinutes="True" MilitaryTime="True" Culture="Spanish (Mexico)" LowerBoundTime="07:00" UpperBoundTime="20:30">
|
||||
<TimeStyle CssClass="Texto" />
|
||||
</ew:TimePicker>
|
||||
<ew:CustomValidator ID="CVHoraInicioTarea" runat="server" ControlToValidate="TxtHoraInicioTarea" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="GuardaTarea" ValidateEmptyText="true"></ew:CustomValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoHoraInicioTarea" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraInicioTarea" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Fecha Fin</td>
|
||||
<td>
|
||||
<asp:TextBox ID="txtFechaFinTarea" runat="server" MaxLength="30" ValidationGroup="GuardaTarea" Width="75px"></asp:TextBox>
|
||||
<asp:ImageButton runat="server" ID="imgCalendarioTareaFF" ImageUrl="/imagenes/icono_calendaro.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
||||
<ajax:MaskedEditExtender ID="MEEFechaFinTarea" runat="server" TargetControlID="txtFechaFinTarea" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CalendarioTareaFF" TargetControlID="txtFechaFinTarea" PopupButtonID="ImgCalendarioTareaFF" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaFinTarea" runat="server" ControlToValidate="txtFechaFinTarea" Display="None" ErrorMessage="El campo <b>''Fecha Fin''</b> es requerido por la aplicación, por favor ingrese una Fecha Fin." ValidationGroup="GuardaTarea"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaFinTarea" runat="server" ControlToValidate="txtFechaFinTarea" Display="None" ErrorMessage="El campo <b>''Fecha''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GuardaTarea"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFfvFFTarea" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaFinTarea" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOCVFFTarea" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaFinTarea" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
Hora:
|
||||
|
||||
<ew:TimePicker ID="TxtHoraFinTarea" runat="server" ControlDisplay="TextBoxImage" ImageUrl="/Imagenes/tool_timer.png" PopupWidth="100px" Width="50px" DisableTextBoxEntry="True" PopupHeight="150px" RoundUpMinutes="True" MilitaryTime="True" Culture="Spanish (Mexico)" LowerBoundTime="07:00" UpperBoundTime="20:30">
|
||||
<TimeStyle CssClass="Texto" />
|
||||
</ew:TimePicker>
|
||||
<ew:CustomValidator ID="CVHoraFinTarea" runat="server" ControlToValidate="TxtHoraFinTarea" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="GuardaTarea" ValidateEmptyText="true"></ew:CustomValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoHoraFinTarea" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraFinTarea" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr style="vertical-align: top; text-align: left;">
|
||||
<td class="">Orden:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtOrden" Width="136px" runat="server" />
|
||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtOrden" FilterType="Custom, Numbers" ValidChars="." />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="">Archivo</td>
|
||||
<td>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:TextBox ID="TxtArchivo2" ClientIDMode="Static" runat="server" Width="200px"></asp:TextBox>
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="A5" onclick="javascript:AbrirVentana('/UploadFile.aspx?Pagina=Minutas',500,150);" visible="true">
|
||||
<img id="ImgArchivo2" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" />
|
||||
</a>
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="A6" target="_blank" visible="false">
|
||||
<img id="Img2" alt="Archivo" src="/Imagenes/descargar.png" style="width: 16px; height: 16px; border: 0px none white" />
|
||||
</a>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul id="myGallery" runat="server" clientidmode="Static">
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td colspan="3" align="right">
|
||||
<asp:LinkButton ID="lbAgregarTarea" runat="server" CssClass="Texto" Text="Agregar" ValidationGroup="GuardaTarea"></asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table style="width:980px;" class="table table-striped table-advance table-hover">
|
||||
<thead>
|
||||
<tr class="Titulos">
|
||||
<th style="width: 202px">
|
||||
<asp:LinkButton ID="LbAsuntoTarea" runat="server" CausesValidation="False" Text="" CommandArgument="Asunto0;0" OnClick="LbOrden_Click">
|
||||
Asunto <asp:Literal ID="ImgAsunto0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th>
|
||||
<asp:LinkButton ID="LbDescripcionTarea" runat="server" CausesValidation="False" Text="" CommandArgument="Descripcion0;0" OnClick="LbOrden_Click">
|
||||
Descripción <asp:Literal ID="ImgDescripcion0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th style="width: 152px">
|
||||
<asp:LinkButton ID="LbUsuarioParaTarea" runat="server" CausesValidation="False" Text="" CommandArgument="UsuarioPara0;0" OnClick="LbOrden_Click">
|
||||
Para <asp:Literal ID="ImgUsuarioPara0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th style="width: 122px">
|
||||
<asp:LinkButton ID="LbFechaInicioTarea" runat="server" CausesValidation="False" Text="" CommandArgument="FechaInicio0;0" OnClick="LbOrden_Click">
|
||||
Inicio <asp:Literal ID="ImgFechaInicio0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th style="width: 122px">
|
||||
<asp:LinkButton ID="LbFechaFinTarea" runat="server" CausesValidation="False" Text="" CommandArgument="FechaFin0;0" OnClick="LbOrden_Click">
|
||||
Fin <asp:Literal ID="ImgFechaFin0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th style="width: 102px">
|
||||
<asp:LinkButton ID="LbEventoEstatusTarea" runat="server" CausesValidation="False" Text="" CommandArgument="Estatus0;0" OnClick="LbOrden_Click">
|
||||
Estatus <asp:Literal ID="ImgEstatus0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
</table>
|
||||
<asp:GridView ID="GvEventosDetalleTareas" runat="server" AutoGenerateColumns="False" DataKeyNames="CveEvento" Width="980px" ShowHeader="false" CssClass="table table-striped table-advance table-hover" style="margin-top:-10px; text-align:center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Asunto" DataFormatString=" {0}" HeaderText="Asunto">
|
||||
<ItemStyle Width="200px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="Descripcion" DataFormatString=" {0}" HeaderText="Descripcion"></asp:BoundField>
|
||||
<asp:BoundField DataField="UsuarioPara" DataFormatString=" {0}" HeaderText="Para">
|
||||
<ItemStyle Width="150px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="FechaInicio" DataFormatString="{0:dd/MM/yyyy HH:mm}" HeaderText="Fecha Inicio">
|
||||
<ItemStyle Width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="FechaFin" DataFormatString="{0:dd/MM/yyyy HH:mm}" HeaderText="Fecha Fin">
|
||||
<ItemStyle Width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="lblEventoEstatus" runat="server"></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="100px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TabAgenda" runat="server" HeaderText="Agendas">
|
||||
<ContentTemplate>
|
||||
<asp:UpdatePanel ID="UPPDatosDetallesAgendas" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<table border="0px" width="100%">
|
||||
<tr style="vertical-align: top; text-align: left;">
|
||||
<td class="">Asunto:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="txtAsuntoAgenda" runat="server" MaxLength="100" ValidationGroup="GuardaAgenda" Width="520px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVAsuntoAgenda" runat="server" ControlToValidate="txtAsuntoAgenda" Display="None" ErrorMessage="El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GuardaAgenda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOAsuntoAgenda" runat="server" TargetControlID="RFVAsuntoAgenda" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
<td class="">Fecha:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtFechaInicioAgenda" runat="server" MaxLength="30" ValidationGroup="Guarda" Width="70px"></asp:TextBox>
|
||||
<asp:ImageButton runat="server" ID="ImgCalendario" ImageUrl="/imagenes/icono_calendaro.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
||||
<ajax:MaskedEditExtender ID="MEEFechaInicioAgenda" runat="server" TargetControlID="TxtFechaInicioAgenda" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="TxtFechaInicioAgenda" PopupButtonID="ImgCalendario" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaInicioAgenda" runat="server" ControlToValidate="TxtFechaInicioAgenda" Display="None" ErrorMessage="El campo <b>''Fecha''</b> es requerido por la aplicación, por favor ingrese una Fecha Inicio." ValidationGroup="GuardaAgenda"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaInicioAgenda" runat="server" ControlToValidate="TxtFechaInicioAgenda" Display="None" ErrorMessage="El campo <b>''Fecha''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GuardaAgenda"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFfvFIAgenda" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaInicioAgenda" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOCVFIAgenda" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaInicioAgenda" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
Hora:
|
||||
|
||||
<ew:TimePicker ID="TxtHoraInicioAgenda" runat="server" ControlDisplay="TextBoxImage" ImageUrl="/Imagenes/tool_timer.png" PopupWidth="100px" Width="50px" DisableTextBoxEntry="True" PopupHeight="150px" RoundUpMinutes="True" MilitaryTime="True" Culture="Spanish (Mexico)" LowerBoundTime="07:00" UpperBoundTime="20:30">
|
||||
<TimeStyle CssClass="Texto" />
|
||||
</ew:TimePicker>
|
||||
<ew:CustomValidator ID="CVHoraInicioAgenda" runat="server" ControlToValidate="TxtHoraInicioAgenda" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></ew:CustomValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoHoraInicioAgenda" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraInicioAgenda" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="vertical-align: top; text-align: left;">
|
||||
<td class="" rowspan="3">Descripción:</td>
|
||||
<td rowspan="3">
|
||||
<asp:TextBox ID="txtDescripcionAgenda" runat="server" MaxLength="500" TextMode="MultiLine" Height="50px" Width="520px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVDescripcionAgenda" runat="server" ControlToValidate="txtDescripcionAgenda" Display="None" ErrorMessage="El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GuardaAgenda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCODescripcionAgenda" runat="server" TargetControlID="RFVDescripcionAgenda" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
<td class="">Para:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="ddlUsuarioAgenda" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" style="width:200px !important;" DataTextField="Nombre" ValidationGroup="GuardaAgenda" DataValueField="CveUsuario">
|
||||
</asp:DropDownList>
|
||||
<asp:RangeValidator ID="RVUsuarioAgenda" runat="server" ControlToValidate="ddlUsuarioAgenda" Display="None" Type="Integer" MinimumValue="1" MaximumValue="2147483647" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Para''</b> es necesario, por favor seleccione uno." ValidationGroup="GuardaAgenda"></asp:RangeValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOUsuarioAgenda" runat="server" HighlightCssClass="vco" TargetControlID="RVUsuarioAgenda" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tipo Agenda</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="ddlAgendaTipo" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" style="width:200px !important;" DataTextField="AgendaTipo" ValidationGroup="GuardaAgenda" DataValueField="CveAgendaTipo">
|
||||
</asp:DropDownList>
|
||||
|
||||
<%--<asp:RangeValidator ID="RVAgendaTipo" runat="server" ControlToValidate="ddlAgendaTipo" Display="None" Type="Integer" MinimumValue="1" MaximumValue="2147483647" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Agenda''</b> es necesario, por favor seleccione uno." ValidationGroup="GuardaAgenda"></asp:RangeValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOAgendaTipo" runat="server" HighlightCssClass="vco" TargetControlID="RVAgendaTipo" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<asp:LinkButton ID="lbAgregarAgenda" runat="server" CssClass="Texto" Text="Agregar" ValidationGroup="GuardaAgenda"></asp:LinkButton></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table style="width:980px;" class="table table-striped table-advance table-hover">
|
||||
<thead>
|
||||
<tr class="Titulos">
|
||||
<th style="width: 202px">
|
||||
<asp:LinkButton ID="lbAsuntoAgenda" runat="server" CausesValidation="False" Text="" CommandArgument="Asunto1;1" OnClick="LbOrden_Click">
|
||||
Asunto <asp:Literal ID="ImgAsunto1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th>
|
||||
<asp:LinkButton ID="lbDescripcionAgenda" runat="server" CausesValidation="False" Text="" CommandArgument="Descripcion1;1" OnClick="LbOrden_Click">
|
||||
Descripción <asp:Literal ID="ImgDescripcion1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th style="width: 152px">
|
||||
<asp:LinkButton ID="lbUsuarioParaAgenda" runat="server" CausesValidation="False" Text="" CommandArgument="UsuarioPara1;1" OnClick="LbOrden_Click">
|
||||
Para <asp:Literal ID="ImgUsuarioPara1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th style="width: 122px">
|
||||
<asp:LinkButton ID="lbFechaAgenda" runat="server" CausesValidation="False" Text="" CommandArgument="FechaInicio1;1" OnClick="LbOrden_Click">
|
||||
Fecha <asp:Literal ID="ImgFechaInicio1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th style="width: 102px">
|
||||
<asp:LinkButton ID="lbTipoAgenda" runat="server" CausesValidation="False" Text="" CommandArgument="AgendaTipo1;1" OnClick="LbOrden_Click">
|
||||
Tipo Agenda <asp:Literal ID="ImgAgendaTipo1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th style="width: 102px">
|
||||
<asp:LinkButton ID="LbEventoEstatusAgenda" runat="server" CausesValidation="False" Text="" CommandArgument="Estatus1;1" OnClick="LbOrden_Click">
|
||||
Estatus <asp:Literal ID="ImgEstatus1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
</tr
|
||||
</thead>
|
||||
</table>
|
||||
<asp:GridView ID="GvEventosDetalleAgendas" runat="server" AutoGenerateColumns="False" DataKeyNames="CveEvento" Width="980px" ShowHeader="false" CssClass="table table-striped table-advance table-hover" style="margin-top:-10px; text-align:center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Asunto" DataFormatString=" {0}" HeaderText="Asunto">
|
||||
<ItemStyle Width="200px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="Descripcion" DataFormatString=" {0}" HeaderText="Descripcion"></asp:BoundField>
|
||||
<asp:BoundField DataField="UsuarioPara" DataFormatString=" {0}" HeaderText="Para">
|
||||
<ItemStyle Width="150px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="FechaInicio" DataFormatString="{0:dd/MM/yyyy HH:mm}" HeaderText="Fecha">
|
||||
<ItemStyle Width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="AgendaTipo" DataFormatString=" {0}" HeaderText="Tipo Agenda">
|
||||
<ItemStyle Width="100px" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="lblEventoEstatus" runat="server"></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="100px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TabArchivos" runat="server" HeaderText="Archivos">
|
||||
<ContentTemplate>
|
||||
<asp:UpdatePanel ID="UPPDatosDetallesArchivos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<table class="Widthall">
|
||||
<tr style="vertical-align: top; text-align: left;">
|
||||
<td class="">Descripción:</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtOBs" ClientIDMode="Static" runat="server" TextMode="MultiLine" Rows="2" Width="638px" MaxLength="1000"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVObs" runat="server" Display="None" ControlToValidate="TxtOBs" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Observaciones''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardaArchivo"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEOBs" runat="server" HighlightCssClass="vco" TargetControlID="RFVObs" Width="300px" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:UpdatePanel ID="UPPArchivos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:TextBox ID="TextBox1" runat="server" Visible="false"></asp:TextBox>
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="A3" onclick="javascript:AbrirVentana('/UploadFile.aspx?Pagina=Eventos&ImgOpener=ImgArchivoObs',500,150);" visible="true">
|
||||
<img id="ImgArchivoObs" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" /></a>
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="A4" target="_blank" visible="false">
|
||||
<img id="Img3" alt="Archivo" src="/Imagenes/descargar.png" style="width: 16px; height: 16px; border: 0px none white" /></a>
|
||||
<asp:LinkButton ID="lbAgregarArchivo" runat="server" CssClass="Texto" Text="Agregar" ValidationGroup="GrpGuardaArchivo"></asp:LinkButton>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-striped table-advance table-hover">
|
||||
<thead>
|
||||
<tr class="Titulos">
|
||||
<th style="width: 92px">
|
||||
<asp:LinkButton ID="lbFechaIngArchivo2" runat="server" CausesValidation="False" Text="" CommandArgument="FechaIngArchivo2;2" OnClick="LbOrden_Click">
|
||||
Fecha <asp:Literal ID="ImgFechaIngArchivo2" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th>
|
||||
<asp:LinkButton ID="lbDescripcionArchivo2" runat="server" CausesValidation="False" Text="" CommandArgument="DescripcionArchivo2;2" OnClick="LbOrden_Click">
|
||||
Descripción <asp:Literal ID="ImgDescripcionArchivo2" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th style="width: 72px">
|
||||
<asp:LinkButton ID="lbAdjuntoArchivo2" runat="server" CausesValidation="False" Text="" Enabled="false" CommandArgument="AdjuntoArchivo2;2" OnClick="LbOrden_Click">
|
||||
Adjunto <asp:Literal ID="ImgAdjuntoArchivo2" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<asp:GridView ID="GvEventosDetalleArchivos" runat="server" AutoGenerateColumns="False" Width="980px" ShowHeader="false" CssClass="table table-striped table-advance table-hover" style="margin-top:-10px; text-align:center;" GridLines="None" >
|
||||
<Columns>
|
||||
<asp:BoundField DataField="FechaIng" DataFormatString="{0:d}" HeaderText="Fecha">
|
||||
<ItemStyle Width="90px" HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="EventoComentario" DataFormatString=" {0}" HeaderText="Observación"></asp:BoundField>
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink Target="_blank" ID="HplA" runat="server" Visible='<%# Eval("Archivo").ToString <> "" %>'><img src="/Imagenes/descargar.png" alt="Descargar" style="height:18px;border:0;"/></asp:HyperLink>
|
||||
<asp:ImageButton ID="ImBtnPub" ToolTip="Publicar Documento" Visible="False" ImageUrl="/Imagenes/PublicarDoc.jpg" Height="18px" runat="server" />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" Width="70px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
</ajax:TabContainer>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>
|
||||
/* function moveCaretToEnd() {
|
||||
|
||||
ValidateRequest="false"
|
||||
|
||||
var el = $get("TxtAcuerdos");
|
||||
|
||||
if (typeof el.selectionStart == "number") {
|
||||
el.selectionStart = el.selectionEnd = el.value.length;
|
||||
} else if (typeof el.createTextRange != "undefined") {
|
||||
el.focus();
|
||||
var range = el.createTextRange();
|
||||
range.collapse(false);
|
||||
range.select();
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$get("TxtAcuerdos").onfocus = function () {
|
||||
moveCaretToEnd();
|
||||
|
||||
// Work around Chrome's little problem
|
||||
window.setTimeout(function () {
|
||||
moveCaretToEnd();
|
||||
}, 1);
|
||||
};
|
||||
});
|
||||
|
||||
function finalFocos() {
|
||||
//$get('TxtAcuerdos').style.height = '350px'
|
||||
|
||||
var obj =
|
||||
alert(obj.name);
|
||||
|
||||
if (obj.value != "") {
|
||||
obj.value += "";
|
||||
}
|
||||
}*/
|
||||
|
||||
//Subir archivo
|
||||
function uploadComplete() {
|
||||
$get("HdnArchivoEstatus").value = "ok";
|
||||
alert("El Archivo se guardó correctamente.");
|
||||
}
|
||||
function uploadError() {
|
||||
$get("HdnArchivoEstatus").value = "error";
|
||||
alert("Ocurrió un error al intentar subir el archivo, por favor intentelo de nuevo.");
|
||||
}
|
||||
|
||||
function uploadStarted(sender, args) {
|
||||
var editor = $find("TxtAcuerdos");
|
||||
editor.value = edito.value.replace("<", "<").replace(">", ">");
|
||||
//editor._editableDiv_submit();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
setTimeout("autoGuardado()", 60000);
|
||||
});
|
||||
|
||||
//$('#btnAutoGuardado').click(function () {
|
||||
function autoGuardado() {
|
||||
|
||||
if ($get("hdnCveEvento").value != "" && $get("hdnCveEventoEstatus").value != "4") {
|
||||
var SendObj = {
|
||||
"CveEvento": $get("hdnCveEvento").value,
|
||||
"Asunto": $get("TxtAsunto").value,
|
||||
"Descripcion": $get("TxtDescripcion").value,
|
||||
"Acuerdos": $get("TxtAcuerdos").value,
|
||||
}
|
||||
fechaAutoGuardado();
|
||||
var stringData = JSON.stringify(SendObj);
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/asmx/wsOI.asmx/AutoGuardadoMinuta',
|
||||
data: "{'objMinuta':" + stringData + "}",
|
||||
contentType: 'application/json; utf-8',
|
||||
dataType: 'json',
|
||||
success: function (data) {
|
||||
fechaAutoGuardado();
|
||||
if (data.d != null) {
|
||||
alert(data.d);
|
||||
}
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
function fechaAutoGuardado() {
|
||||
var f = new Date();
|
||||
var hours = f.getHours();
|
||||
var minutes = f.getMinutes();
|
||||
var ampm = hours >= 12 ? 'pm' : 'am';
|
||||
|
||||
hours = hours % 12;
|
||||
hours = hours ? hours : 12; // the hour '0' should be '12'
|
||||
minutes = minutes < 10 ? '0' + minutes : minutes;
|
||||
|
||||
var strTime = hours + ':' + minutes + ' ' + ampm;
|
||||
|
||||
//if (hours <= 9)
|
||||
// hours = "0" + hours;
|
||||
//if (minutes <= 9)
|
||||
// minutes = "0" + minutes;
|
||||
|
||||
$get("ltlFechaAutoGuardado").innerText = "Última hora de auto guardado " + strTime;
|
||||
}
|
||||
setTimeout("autoGuardado()", 60000);
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
971
OI/Minutas.aspx.vb
Normal file
971
OI/Minutas.aspx.vb
Normal file
@@ -0,0 +1,971 @@
|
||||
Option Explicit On
|
||||
Option Strict On
|
||||
|
||||
Imports System.Data
|
||||
Imports Extensiones
|
||||
Imports System.IO
|
||||
|
||||
Partial Class OI_Minutas
|
||||
Inherits ClsPaginas
|
||||
|
||||
#Region "Propiedades"
|
||||
Private Property CveEvento As Integer
|
||||
Get
|
||||
Return ViewState("CveEvento").ToString.ToEntero
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
ViewState("CveEvento") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property CveUsuarioIng As Integer
|
||||
Get
|
||||
Return ViewState("CveUsuarioIng").ToString.ToEntero
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
ViewState("CveUsuarioIng") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property EsNueva As Boolean
|
||||
Get
|
||||
Return CType(ViewState("EsNueva"), Boolean)
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
ViewState("EsNueva") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property Terminada As Boolean
|
||||
Get
|
||||
Return CType(ViewState("Terminada"), Boolean)
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
ViewState("Terminada") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property Modificada As Boolean
|
||||
Get
|
||||
Return CType(ViewState("Modificada"), Boolean)
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
ViewState("Modificada") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
If Not IsPostBack Then
|
||||
Terminada = False
|
||||
Modificada = False
|
||||
ViewState("OrdenTarea") = ""
|
||||
ViewState("OrdenAgenda") = ""
|
||||
ViewState("OrdenArchivo") = ""
|
||||
|
||||
CargaCombos()
|
||||
|
||||
If Request("CveEvento") IsNot Nothing AndAlso IsNumeric(Request("CveEvento")) AndAlso Request("CveEvento").ToEntero > 0 Then
|
||||
ViewState("CveEvento") = Request("CveEvento").ToEntero
|
||||
CargaDatos()
|
||||
Else
|
||||
CargaNueva()
|
||||
End If
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub CargaCombos()
|
||||
ddlUsuarioTarea.DataSource = GlobalDTUsuarios(CveEmpresa:=UsuarioActual.CveEmpresa)
|
||||
ddlUsuarioTarea.DataBind()
|
||||
ddlUsuarioTarea.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||
|
||||
ddlUsuarioAgenda.DataSource = GlobalDTUsuarios(CveEmpresa:=UsuarioActual.CveEmpresa)
|
||||
ddlUsuarioAgenda.DataBind()
|
||||
ddlUsuarioAgenda.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||
|
||||
ddlAgendaTipo.DataSource = GlobalDTOIAgendaTipo().FiltraParametros(String.Format("CveEmpresa = {0}", UsuarioActual.CveEmpresa))
|
||||
ddlAgendaTipo.DataBind()
|
||||
ddlAgendaTipo.Items.Insert(0, New ListItem("Sin Tipo", "-1"))
|
||||
End Sub
|
||||
Private Sub CargaNueva()
|
||||
ViewState("CveEvento") = -1
|
||||
ViewState("EsNueva") = True
|
||||
btnTerminarMinuta.Visible = False
|
||||
btnEnviarMinuta.Visible = False
|
||||
GetUsuarios()
|
||||
End Sub
|
||||
|
||||
Private Sub GetUsuarios()
|
||||
Dim DT As Data.DataTable = GlobalDTUsuarios.FiltraParametros(String.Format("CveEmpresa = {0}", UsuarioActual.CveEmpresa), "Rol ASC")
|
||||
|
||||
'AGREGA JULIAN Y RENE DE FUERZAS
|
||||
DT.Merge(GlobalDTUsuarios.FiltraParametros(String.Format("CveUsuario IN (2,93) AND CveEmpresa = 70", UsuarioActual.CveEmpresa), "Rol ASC"))
|
||||
DT = DT.FiltraParametros("", "Rol ASC")
|
||||
|
||||
GVUsuarios.DataSource = AgregaGrupos(DT)
|
||||
DT.Dispose()
|
||||
GVUsuarios.DataBind()
|
||||
End Sub
|
||||
Private Function AgregaGrupos(ByRef DT As Data.DataTable) As Data.DataTable
|
||||
If Not DT Is Nothing AndAlso DT.Rows.Count > 0 Then
|
||||
|
||||
DT.Columns.Add(New DataColumn("Grupo", GetType(String)))
|
||||
|
||||
Dim i As Integer = 0
|
||||
Dim Gpo As String = String.Empty
|
||||
Dim dbRow As DataRow
|
||||
While i < DT.Rows.Count
|
||||
|
||||
dbRow = DT.NewRow()
|
||||
|
||||
If i = 0 Then
|
||||
Gpo = DT.Rows(0)("Rol").ToString()
|
||||
dbRow("Rol") = DT.Rows(i)("Rol")
|
||||
dbRow("Grupo") = "S"
|
||||
DT.Rows.InsertAt(dbRow, i)
|
||||
Gpo = DT.Rows(i)("Rol").ToString()
|
||||
Else
|
||||
If Gpo <> DT.Rows(i)("Rol").ToString() Then
|
||||
dbRow("Rol") = DT.Rows(i)("Rol")
|
||||
dbRow("Grupo") = "S"
|
||||
DT.Rows.InsertAt(dbRow, i)
|
||||
End If
|
||||
Gpo = DT.Rows(i)("Rol").ToString()
|
||||
End If
|
||||
i += 1
|
||||
End While
|
||||
End If
|
||||
Return DT
|
||||
|
||||
End Function
|
||||
Protected Sub gvUsuarios_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles GVUsuarios.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
|
||||
If (Not IsDBNull(DataBinder.Eval(e.Row.DataItem, "Grupo"))) AndAlso CStr(DataBinder.Eval(e.Row.DataItem, "Grupo")) = "S" Then
|
||||
e.Row.CssClass = "SubTotales2"
|
||||
e.Row.Cells(0).Visible = False
|
||||
e.Row.Cells(1).Visible = False
|
||||
e.Row.Cells(2).ColumnSpan = 2
|
||||
Else
|
||||
e.Row.Cells(2).Visible = False
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub CargaDatos()
|
||||
hdnCveEvento.Value = CveEvento.ToString
|
||||
|
||||
Dim ObjEventos As New ClsOIEventos
|
||||
|
||||
With ObjEventos
|
||||
|
||||
'If ObjEventos.GetEventos(CveEvento, -1, "-1", "-1", -1, -1, -1, -1, -1, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, "01/01/1900".ToDateTime, "01/01/2030".ToDateTime, "01/01/2030".ToDateTime) Then
|
||||
If ObjEventos.GetEvento(CveEvento, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then 'If ObjEventos.GetEventos(CveEvento, -1, -1, "-1", "-1", -1, -1, -1, -1, -1, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, Nothing, Nothing, Nothing) Then
|
||||
|
||||
If ObjEventos.DtResultados.Rows.Count > 0 Then
|
||||
EsNueva = False
|
||||
TxtAsunto.Text = .Asunto
|
||||
TxtDescripcion.Text = .Descripcion
|
||||
TxtAcuerdos.Text = .Acuerdos
|
||||
lblUsuarioIng.Text = .UsuarioIng
|
||||
ViewState("CveUsuarioIng") = .CveUsuarioIng
|
||||
hdnCveEventoEstatus.Value = .CveEventoEstatus.ToString
|
||||
'cargo los ususarios
|
||||
|
||||
If .GetEventosUsuario(CveEvento, UsuarioActual.CveEmpresa) Then
|
||||
divUsuarios.Visible = True
|
||||
divSeleccionUsuarios.Visible = True
|
||||
DivUsr.Visible = False
|
||||
gvUsuariosVista.DataSource = .DtResultados.FiltraParametros("CveEvento is not null")
|
||||
gvUsuariosVista.DataBind()
|
||||
|
||||
For Each R As GridViewRow In gvUsuariosVista.Rows
|
||||
LblUsuariosCCP.Text = LblUsuariosCCP.Text + R.DataKey("Nombre").ToString + ", "
|
||||
Next
|
||||
' TrParticipantes.Visible = True
|
||||
Dim StrCorreos As New StringBuilder
|
||||
|
||||
' Dim CorreosCCP As New List(Of String)
|
||||
For Each Row As DataRow In .DtResultados.FiltraParametros("CveEvento is not null").Rows
|
||||
'CorreosCCP.Add(GlobalDTUsuarios(Row("CveUsuario").ToString.ToEntero)(0)("correo").ToString)
|
||||
StrCorreos.AppendFormat("{0};", GlobalDTUsuarios(Row("CveUsuario").ToString.ToEntero)(0)("correo").ToString)
|
||||
Next
|
||||
ViewState("ArrayCC") = StrCorreos.ToString 'CorreosCCP.ToArray
|
||||
End If
|
||||
|
||||
RegistraScript("TdDetalles.style.display = 'inline'")
|
||||
btnTerminarMinuta.Visible = True
|
||||
btnEnviarMinuta.Visible = True
|
||||
' TdDetalles.visible = True
|
||||
CargaDetallesTareas("")
|
||||
CargaDetallesAgendas("")
|
||||
CargaDetallesArchivos("")
|
||||
End If
|
||||
|
||||
A1.Visible = False
|
||||
If Not IsDBNull(.Archivo) AndAlso .Archivo <> "" AndAlso .Archivo <> "-1" Then A2.HRef = String.Format("\Empresas\{0}\OI\{1}", UsuarioActual.CveEmpresa, .Archivo) : A2.Visible = True Else A1.Visible = True
|
||||
|
||||
|
||||
If ObjEventos.CveEventoEstatus = 4 Then
|
||||
DesHabilitar()
|
||||
Terminada = True
|
||||
ElseIf ObjEventos.Modificada Then
|
||||
btnTerminarMinuta.Text = "Terminar y Enviar Minuta"
|
||||
Modificada = True
|
||||
LtModificada.Visible = True
|
||||
End If
|
||||
|
||||
End If
|
||||
End With
|
||||
|
||||
UpSeleccionUsuarios.Update()
|
||||
ObjEventos.Dispose()
|
||||
|
||||
End Sub
|
||||
|
||||
Protected Sub DesHabilitar()
|
||||
btnGuardar.Enabled = False
|
||||
btnTerminarMinuta.Enabled = False
|
||||
' btnEnviarMinuta.enabled = False
|
||||
'htmlEdDescripcion.r
|
||||
|
||||
LtlCSS.Text = "<style type='text/css'> .ajax__html_editor_extender_buttoncontainer{display:none;} </style>"
|
||||
|
||||
'RegistraScript(" $(document).ready(function () {{$get('TxtAcuerdos$HtmlEditorExtenderBehavior_ExtenderButtonContainer').style.display='none';}}); ")
|
||||
|
||||
TxtAsunto.Enabled = False
|
||||
TxtDescripcion.Enabled = False
|
||||
A1.Visible = False
|
||||
|
||||
Tab.Enabled = False
|
||||
TxtAcuerdos.Enabled = False
|
||||
|
||||
btnGuardar.Text = "Abrir Minuta"
|
||||
btnGuardar.Enabled = True
|
||||
End Sub
|
||||
|
||||
Private Sub CargaDetallesTareas(Orden As String)
|
||||
Dim objEventos As New ClsOIEventos
|
||||
|
||||
If objEventos.GetEventos(-1, 1, -1, "-1", "-1", -1, -1, -1, -1, -1, CveEvento, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||
If Orden <> String.Empty Then
|
||||
Dim DV As New DataView(objEventos.DtResultados, "", Orden, DataViewRowState.CurrentRows)
|
||||
GvEventosDetalleTareas.DataSource = DV.ToTable()
|
||||
DV.Dispose()
|
||||
Else
|
||||
GvEventosDetalleTareas.DataSource = objEventos.DtResultados.FiltraParametros("", "FechaIng Desc")
|
||||
End If
|
||||
GvEventosDetalleTareas.DataBind()
|
||||
TabTarea.HeaderText = String.Format("Tareas ({0})", GvEventosDetalleTareas.Rows.Count)
|
||||
End If
|
||||
|
||||
objEventos.Dispose()
|
||||
|
||||
UPPDatosDetallesTareas.Update()
|
||||
End Sub
|
||||
Private Sub CargaDetallesAgendas(Orden As String)
|
||||
Dim objEventos As New ClsOIEventos
|
||||
|
||||
If objEventos.GetEventos(-1, 2, -1, "-1", "-1", -1, -1, -1, -1, -1, CveEvento, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||
If Orden <> String.Empty Then
|
||||
Dim DV As New DataView(objEventos.DtResultados, "", Orden, DataViewRowState.CurrentRows)
|
||||
GvEventosDetalleAgendas.DataSource = DV.ToTable()
|
||||
DV.Dispose()
|
||||
Else
|
||||
GvEventosDetalleAgendas.DataSource = objEventos.DtResultados.FiltraParametros("", "FechaIng Desc")
|
||||
End If
|
||||
GvEventosDetalleAgendas.DataBind()
|
||||
TabAgenda.HeaderText = String.Format("Agendas ({0})", GvEventosDetalleAgendas.Rows.Count)
|
||||
End If
|
||||
|
||||
objEventos.Dispose()
|
||||
|
||||
UPPDatosDetallesAgendas.Update()
|
||||
End Sub
|
||||
Private Sub CargaDetallesArchivos(Orden As String)
|
||||
Dim objEventos As New ClsOIEventos
|
||||
|
||||
If objEventos.GetEventosComentarios(CveEvento) Then
|
||||
If Orden <> String.Empty Then
|
||||
Dim DV As New DataView(objEventos.DtResultados, "", Orden, DataViewRowState.CurrentRows)
|
||||
GvEventosDetalleArchivos.DataSource = DV.ToTable()
|
||||
DV.Dispose()
|
||||
Else
|
||||
GvEventosDetalleArchivos.DataSource = objEventos.DtResultados.FiltraParametros("", "FechaIng Desc")
|
||||
End If
|
||||
GvEventosDetalleArchivos.DataBind()
|
||||
TabArchivos.HeaderText = String.Format("Archivos ({0})", GvEventosDetalleArchivos.Rows.Count)
|
||||
End If
|
||||
|
||||
objEventos.Dispose()
|
||||
|
||||
UPPDatosDetallesArchivos.Update()
|
||||
End Sub
|
||||
Protected Sub btnGuardar_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnGuardar.Click
|
||||
|
||||
If Terminada Then
|
||||
AbrirMinuta()
|
||||
Else
|
||||
Guardar()
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Protected Sub Guardar()
|
||||
Dim Asunto As String = TxtAsunto.Text.Trim
|
||||
Dim Descripcion As String = TxtDescripcion.Text.Trim
|
||||
Dim Acuerdos As String = TxtAcuerdos.Text.Trim
|
||||
|
||||
Dim CveUsuarioCCP As Integer = -1
|
||||
Dim ObjEventos As New ClsOIEventos()
|
||||
|
||||
Dim Archivo As String = ""
|
||||
'Dim RutaGuardar As String = String.Format("{0}Empresas\{1}\OI\", GlobalDTParametros(SisParametros.DirectorioSitio).Cadena1, UsuarioActual.CveEmpresa)
|
||||
'Dim RutaArchivo As String = String.Format("{0}Empresas\{1}\OI\Temp\{2}", GlobalDTParametros(SisParametros.DirectorioSitio).Cadena1, UsuarioActual.CveEmpresa, Session("Eventos"))
|
||||
Dim RutaGuardar As String = String.Format("{0}\OI\", UsuarioActual.Empresa.Ruta, UsuarioActual.CveEmpresa)
|
||||
Dim RutaArchivo As String = String.Format("{0}\OI\Temp\{1}", UsuarioActual.Empresa.Ruta, Session("Eventos"))
|
||||
|
||||
If CveEvento = -1 Then
|
||||
If ObjEventos.AddEventoMinuta(Asunto, Descripcion, Acuerdos, -1, -1, Now, "-1", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||
ViewState("CveEvento") = ObjEventos.CveEvento
|
||||
|
||||
For Each RowCCP As GridViewRow In GVUsuarios.Rows
|
||||
If RowCCP.FCCheckBox("ChkPara").Checked Then
|
||||
Dim CveUsuarioPara As Integer = GVUsuarios.DataKeys(RowCCP.RowIndex).Values("CveUsuario").ToString.ToEntero
|
||||
If ObjEventos.AddEventoUsuario(CveEvento, CveUsuarioPara) Then
|
||||
'Genero las claves, nombres y correos aquíen se le enviará correo
|
||||
CveUsuarioCCP = RowCCP.DataKey("CveUsuario").ToString().ToEntero()
|
||||
If CveUsuarioCCP <> UsuarioActual.CveUsuario Then
|
||||
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
|
||||
Alert("La Nueva Minuta se guardó correctamente.", TipoMensaje.MsgInformacion)
|
||||
End If
|
||||
Else
|
||||
If Session("Eventos") IsNot Nothing AndAlso File.Exists(RutaArchivo) Then
|
||||
If Not Directory.Exists(RutaGuardar) Then Directory.CreateDirectory(RutaGuardar)
|
||||
Archivo = Path.GetExtension(Session("Eventos").ToString)
|
||||
End If
|
||||
|
||||
If ObjEventos.UpdateEventoMinuta(Asunto, Descripcion, Acuerdos, New DateTime(1799, 1, 1), Archivo, CveEvento) Then
|
||||
|
||||
If Archivo <> "" Then
|
||||
File.Move(RutaArchivo, String.Format("{0}OI{1}{2}", RutaGuardar, CveEvento, Path.GetExtension(Archivo)))
|
||||
Session("Eventos") = ""
|
||||
End If
|
||||
|
||||
For Each RowCCP As GridViewRow In GVUsuarios.Rows
|
||||
If RowCCP.FCCheckBox("ChkPara").Checked Then
|
||||
Dim CveUsuarioPara As Integer = GVUsuarios.DataKeys(RowCCP.RowIndex).Values("CveUsuario").ToString.ToEntero
|
||||
If ObjEventos.AddEventoUsuario(CveEvento, CveUsuarioPara) Then
|
||||
'Genero las claves, nombres y correos aquíen se le enviará correo
|
||||
CveUsuarioCCP = RowCCP.DataKey("CveUsuario").ToString().ToEntero()
|
||||
If CveUsuarioCCP <> UsuarioActual.CveUsuario Then
|
||||
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
|
||||
Alert("La Minuta se guardó correctamente.", TipoMensaje.MsgInformacion)
|
||||
End If
|
||||
End If
|
||||
|
||||
CargaDatos()
|
||||
|
||||
|
||||
ObjEventos.Dispose()
|
||||
End Sub
|
||||
|
||||
Private Sub AbrirMinuta()
|
||||
Dim ObjEventos As New ClsOIEventos
|
||||
|
||||
If ObjEventos.AbrirMinuta(CveEvento) Then
|
||||
Alert("La minuta se abrio satisfactoriamente.", TipoMensaje.MsgInformacion, String.Format("document.location.href='/OI/Minutas.aspx?CveEvento={0}';", CveEvento))
|
||||
Else
|
||||
Alert("Ocurrió un error al abrir la minuta. Por favor vuelva a intentar.", TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
ObjEventos.Dispose()
|
||||
End Sub
|
||||
|
||||
Protected Sub lbAgregarTarea_Click(sender As Object, e As EventArgs) Handles lbAgregarTarea.Click
|
||||
Dim ObjEventos As New ClsOIEventos()
|
||||
Dim FechaInicio As String = ""
|
||||
Dim FechaFin As String = ""
|
||||
Dim Archivo As String = TxtArchivo2.Text
|
||||
|
||||
If txtFechaInicioTarea.Text <> String.Empty Then FechaInicio = txtFechaInicioTarea.Text + " " + TxtHoraInicioTarea.PostedTime
|
||||
If txtFechaFinTarea.Text <> String.Empty Then FechaFin = txtFechaFinTarea.Text + " " + TxtHoraFinTarea.PostedTime
|
||||
|
||||
Dim RutaGuardar = String.Format("{0}OI\", UsuarioActual.Empresa.Ruta)
|
||||
Dim RutaArchivo = String.Format("{0}OI\Temp\{1}", UsuarioActual.Empresa.Ruta, Session("Minutas"))
|
||||
|
||||
If Session("Minutas") IsNot Nothing AndAlso File.Exists(RutaArchivo) Then
|
||||
If Not Directory.Exists(RutaGuardar) Then Directory.CreateDirectory(RutaGuardar)
|
||||
Archivo = Path.GetExtension(Session("Minutas").ToString)
|
||||
End If
|
||||
|
||||
|
||||
If ObjEventos.AddEventoTarea(txtAsuntoTarea.Text, txtDescripcionTarea.Text, ddlPrioridadTarea.SelectedValue.ToEntero, UsuarioActual.CveUsuario, ddlUsuarioTarea.SelectedValue.ToEntero, FechaInicio.ToDateTime, FechaFin.ToDateTime, CveEvento, TxtOrden.Text.ToDouble, -1, Archivo, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||
'Alert("La Nueva Tarea se guardó correctamente.", TipoMensaje.MsgInformacion)
|
||||
CargaDetallesTareas(ViewState("OrdenTarea").ToString)
|
||||
End If
|
||||
|
||||
If TxtArchivo2.Text <> "" Then
|
||||
File.Move(RutaArchivo, String.Format("{0}OI{1}{2}", RutaGuardar, ObjEventos.CveEvento, Path.GetExtension(TxtArchivo2.Text)))
|
||||
Session("Minutas") = ""
|
||||
End If
|
||||
|
||||
ObjEventos.Dispose()
|
||||
|
||||
txtAsuntoTarea.Text = ""
|
||||
txtDescripcionTarea.Text = ""
|
||||
ddlPrioridadTarea.SelectedValue = "-1"
|
||||
ddlUsuarioTarea.SelectedValue = "-1"
|
||||
txtFechaInicioTarea.Text = ""
|
||||
txtFechaFinTarea.Text = ""
|
||||
TxtArchivo2.Text = ""
|
||||
TxtOrden.Text = ""
|
||||
|
||||
Alert("La tarea se ha guardado con exito.", TipoMensaje.MsgInformacion)
|
||||
End Sub
|
||||
|
||||
Protected Sub lbAgregarAgenda_Click(sender As Object, e As EventArgs) Handles lbAgregarAgenda.Click
|
||||
Dim ObjEventos As New ClsOIEventos()
|
||||
Dim FechaInicio As String = ""
|
||||
|
||||
If TxtFechaInicioAgenda.Text <> String.Empty Then FechaInicio = TxtFechaInicioAgenda.Text + " " + TxtHoraInicioAgenda.PostedTime
|
||||
|
||||
If ObjEventos.AddEventoAgenda(ddlAgendaTipo.SelectedValue.ToEntero, txtAsuntoAgenda.Text, txtDescripcionAgenda.Text, -1, FechaInicio.ToDateTime, FechaInicio.ToDateTime, ddlUsuarioAgenda.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, CveEventoPadre:=CveEvento) Then
|
||||
'Alert("La Nueva Tarea se guardó correctamente.", TipoMensaje.MsgInformacion)
|
||||
CargaDetallesAgendas(ViewState("OrdenAgenda").ToString)
|
||||
End If
|
||||
|
||||
ObjEventos.Dispose()
|
||||
|
||||
txtAsuntoAgenda.Text = ""
|
||||
txtDescripcionAgenda.Text = ""
|
||||
TxtFechaInicioAgenda.Text = "-1"
|
||||
ddlUsuarioAgenda.SelectedValue = "-1"
|
||||
ddlAgendaTipo.SelectedValue = "-1"
|
||||
End Sub
|
||||
|
||||
Protected Sub GvEventosDetalleTareas_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvEventosDetalleTareas.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
e.Row.FCLiteral("lblEventoEstatus").Text = String.Format("<a class=""Texto"" href=""/OI/EventoDetalle.aspx?CveEvento={0}"">{1}</a>", e.Row.DBCampo("CveEvento"), e.Row.DBCampo("EventoEstatus"))
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Sub GvEventosDetalleAgendas_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvEventosDetalleAgendas.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
|
||||
If e.Row.DBCampo("AgendaTipo").ToString = "" Then
|
||||
e.Row.Cells(4).Text = "Sin Tipo"
|
||||
End If
|
||||
|
||||
e.Row.FCLiteral("lblEventoEstatus").Text = String.Format("<a class=""Texto"" href=""/OI/EventoDetalle.aspx?CveEvento={0}"">{1}</a>", e.Row.DBCampo("CveEvento"), e.Row.DBCampo("EventoEstatus"))
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Sub btnTerminarMinuta_Click(sender As Object, e As EventArgs) Handles btnTerminarMinuta.Click
|
||||
'Cambiar el estatus a Terminada para inabilitarla y que no se pueda modificar
|
||||
Dim objOI As New ClsOIEventos
|
||||
Dim tCveSeguimiento As Integer
|
||||
Dim HuboError As Boolean = False
|
||||
|
||||
objOI.IniciaTransacSQL()
|
||||
|
||||
tCveSeguimiento = objOI.AddEventoComentario(CveEvento, "Termino Minuta", "", UsuarioActual.CveUsuario)
|
||||
|
||||
If tCveSeguimiento > 0 Then
|
||||
If Not objOI.UpdateEstatusEvento(4, tCveSeguimiento, CveEvento, UsuarioActual.CveUsuario) Then
|
||||
HuboError = True
|
||||
End If
|
||||
Else
|
||||
HuboError = True
|
||||
End If
|
||||
|
||||
|
||||
''Envia minuta si es modificada
|
||||
|
||||
|
||||
|
||||
If HuboError = False Then
|
||||
Alert("La minuta se termino con exito.", TipoMensaje.MsgInformacion)
|
||||
objOI.Commit()
|
||||
Else
|
||||
Alert("Ocurrió un error al terminar la minuta. Por favor vuelva a intentar.", TipoMensaje.MsgError)
|
||||
objOI.RollBack()
|
||||
End If
|
||||
|
||||
objOI.Dispose()
|
||||
|
||||
|
||||
If HuboError = False AndAlso Modificada Then
|
||||
If Not EnviarMinuta() Then
|
||||
HuboError = True
|
||||
End If
|
||||
Alert("La minuta se termino con exito.", TipoMensaje.MsgInformacion)
|
||||
End If
|
||||
|
||||
CargaDatos()
|
||||
End Sub
|
||||
Private Sub TerminarMinuta()
|
||||
End Sub
|
||||
Protected Sub btnEnviarMinuta_Click(sender As Object, e As EventArgs) Handles btnEnviarMinuta.Click
|
||||
EnviarMinuta()
|
||||
End Sub
|
||||
Private Function EnviarMinuta() As Boolean
|
||||
Dim Retorno = False
|
||||
Dim Body As StringBuilder
|
||||
|
||||
Try
|
||||
Body = GeneraContenido(CveEvento)
|
||||
ViewState("Para") = GlobalDTUsuarios(CveUsuarioIng)(0)("correo").ToString
|
||||
ViewState("Asunto") = String.Format("SIG - Minuta {0}", TxtAsunto.Text)
|
||||
ViewState("Body") = Body
|
||||
Dim Hilo As New System.Threading.Thread(AddressOf MandaCorreo)
|
||||
Hilo.Start()
|
||||
Alert("Se Envió por correo la Minuta", TipoMensaje.MsgInformacion)
|
||||
Retorno = True
|
||||
Catch ex As Exception
|
||||
OnError("Ocurrió error al mandar MAIL", ex)
|
||||
End Try
|
||||
|
||||
Return Retorno
|
||||
End Function
|
||||
|
||||
|
||||
Private Function GeneraContenido(CveEvento As Integer) As StringBuilder
|
||||
Dim StrSB As New StringBuilder()
|
||||
|
||||
Dim DireccionURL As String = GlobalDTParametros(SisParametros.URL).Cadena1
|
||||
Dim Variables As String = ""
|
||||
|
||||
Dim Tarea As String
|
||||
Dim De As String
|
||||
Dim Para As String
|
||||
'Dim CCP As String
|
||||
Dim Fecha As String
|
||||
Dim Prioridad As String
|
||||
Dim Descripcion As String
|
||||
Dim Tipo As Integer
|
||||
|
||||
Dim objEvento As New ClsOIEventos
|
||||
|
||||
If objEvento.GetEvento(CveEvento, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||
Tarea = objEvento.Asunto
|
||||
De = objEvento.UsuarioDe
|
||||
Para = objEvento.UsuarioPara
|
||||
Fecha = objEvento.FechaIng.ToString("dd/MM/yyyy")
|
||||
Prioridad = objEvento.Prioridad
|
||||
Descripcion = objEvento.Descripcion
|
||||
Tipo = objEvento.CveTipoEvento
|
||||
|
||||
|
||||
StrSB.Append("<html xmlns=""http: //www.w3.org/1999/xhtml""> ")
|
||||
StrSB.Append("<head> ")
|
||||
'StrSB.AppendFormat("<link href=""{0}/Styles/Estilos.css"" rel=""stylesheet"" type=""text/css""> ", DireccionURL)
|
||||
StrSB.Append(" <style type=""text/css""> ")
|
||||
StrSB.Append(" body ")
|
||||
StrSB.Append(" { ")
|
||||
StrSB.Append(" margin:0px; ")
|
||||
StrSB.Append(" padding:0px 0px 0px 0px; ")
|
||||
StrSB.Append(" font-family: Verdana, Arial, Helvetica, sans-serif; ")
|
||||
StrSB.Append(" font-size: 10px; ")
|
||||
StrSB.Append(" background-color:#F0F0F0; ")
|
||||
StrSB.Append(" } ")
|
||||
StrSB.Append(" a.Texto ")
|
||||
StrSB.Append(" { ")
|
||||
StrSB.Append(" font-size:11px; ")
|
||||
StrSB.Append(" background-color:#F7F6F3; ")
|
||||
StrSB.Append(" text-decoration:none; ")
|
||||
StrSB.Append(" font-weight:bold; ")
|
||||
StrSB.Append(" } ")
|
||||
StrSB.Append(" .Texto ")
|
||||
StrSB.Append(" { ")
|
||||
StrSB.Append(" background-color:#F7F6F3; color:Black; font-family:Verdana; font-size:10px; text-align:center; vertical-align:middle; height:20px;")
|
||||
StrSB.Append(" } ")
|
||||
StrSB.Append(" .TextoAlterno ")
|
||||
StrSB.Append(" { ")
|
||||
StrSB.Append(" background-color:White; color:Black; font-family:Verdana; font-size:10px; text-align:center; ")
|
||||
StrSB.Append(" vertical-align:middle; height:20px;")
|
||||
StrSB.Append(" } ")
|
||||
StrSB.Append(" .BarraIdentidad ")
|
||||
StrSB.Append(" { ")
|
||||
StrSB.Append(" color:#FFFFFF; ")
|
||||
StrSB.Append(" background:#F0F0F0; ")
|
||||
StrSB.Append(" font-weight:bold; ")
|
||||
StrSB.Append(" font-size:19px; ")
|
||||
StrSB.Append(" font-style:oblique; ")
|
||||
StrSB.Append(" } ")
|
||||
StrSB.Append(" .Titulos ")
|
||||
StrSB.Append(" { ")
|
||||
StrSB.Append(" font-family:Verdana; font-size:12px; text-align:center; ")
|
||||
StrSB.Append(" vertical-align:middle; font-weight:bold; height:30px; ")
|
||||
StrSB.Append(" text-decoration:none; ")
|
||||
StrSB.Append(" } ")
|
||||
StrSB.Append(" .Verde {color: #00CC00;} ")
|
||||
StrSB.Append(" .Negro {color: #000000;} ")
|
||||
StrSB.Append(" .Rojo {color: #FF0000;} ")
|
||||
StrSB.Append(" </style> ")
|
||||
StrSB.Append("</head> ")
|
||||
|
||||
|
||||
StrSB.Append("<body>")
|
||||
StrSB.Append(" <table cellspacing=""0"" cellpadding=""0"" border=""0"" width=""980px"">")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""2"">")
|
||||
StrSB.Append(" <fieldset>")
|
||||
StrSB.Append(" <legend>Minuta</legend>")
|
||||
StrSB.Append(" <table width=""970px"">")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""3"" style=""width: 80px;font-weight:bold"" class=""Texto"">ASUNTO:</td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.AppendFormat(" <td colspan=""3"" style=""text-align:left"" ><b><a href=""{0}{1}{2}"">{3}</a></b></td>", DireccionURL, "/OI/Minutas.aspx?CveEvento=", CveEvento, objEvento.Asunto)
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""3"" style=""width: 80px;font-weight:bold"" class=""Texto"">DESCRIPCION:</td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.AppendFormat(" <td colspan=""3"" style=""text-align:left"" class=""Texto"">{0}</td>", objEvento.Descripcion)
|
||||
StrSB.Append(" </tr>")
|
||||
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""3"" style=""width: 80px;vertical-align: top;font-weight:bold"" class=""Texto"">ACUERDOS:</td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.AppendFormat(" <td colspan=""3"" style=""text-align:left"" class=""Texto"">{0}</td>", objEvento.Acuerdos.Replace("<", "<").Replace(">", ">"))
|
||||
StrSB.Append(" </tr>")
|
||||
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td style=""font-weight:bold"" class=""Texto"">FECHA:</td>")
|
||||
StrSB.Append(" <td style=""font-weight:bold"" class=""Texto"">PARTICIPANTES:</td>")
|
||||
StrSB.Append(" <td style=""font-weight:bold"" class=""Texto"">ARCHIVO:</td>")
|
||||
StrSB.Append(" </tr>")
|
||||
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.AppendFormat(" <td style="""" class=""Texto"">{0}</td>", objEvento.FechaIng.ToString("dd/MM/yyyy HH:mm"))
|
||||
StrSB.AppendFormat(" <td style="""" class=""Texto"">{0}</td>", objEvento.DtResultados.Rows(0)("UsuariosCCP"))
|
||||
'StrSB.AppendFormat(" <td style="""" class=""Texto"">{0}</td>", If(Not objEvento.Archivo Is Nothing AndAlso objEvento.Archivo <> "", String.Format("<a href=""{0}/Empresas/{1}/OI/{2}"">Ver archivo adjunto</a>", DireccionURL, objEvento.CveEmpresa, objEvento.Archivo), "Sin archivo adjunto"))
|
||||
StrSB.AppendFormat(" <td style="""" class=""Texto"">{0}</td>", If(Not objEvento.Archivo Is Nothing AndAlso objEvento.Archivo <> "", "Con archivo adjunto", "Sin archivo adjunto"))
|
||||
StrSB.Append(" </tr>")
|
||||
|
||||
StrSB.Append(" </table>")
|
||||
StrSB.Append(" </fieldset>")
|
||||
StrSB.Append(" </td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""2""> </td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""2"">")
|
||||
StrSB.Append(" <fieldset>")
|
||||
StrSB.Append(" <legend><h3>TAREAS</h3></legend>")
|
||||
StrSB.Append(" <table>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td>")
|
||||
|
||||
If objEvento.GetEventos(-1, 1, -1, "-1", "-1", -1, -1, -1, -1, -1, CveEvento, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||
If objEvento.DtResultados.Rows.Count = 0 Then
|
||||
StrSB.Append(" <div>")
|
||||
StrSB.Append(" <table cellspacing=""0"" rules=""all"" border=""1"" style=""width: 980px; border-collapse: collapse;"">")
|
||||
StrSB.Append(" <tr class=""Texto"">")
|
||||
StrSB.Append(" <td colspan=""6"">MINUTA SIN TAREAS</td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" </table>")
|
||||
StrSB.Append(" </div>")
|
||||
Else
|
||||
StrSB.Append(" <div>")
|
||||
StrSB.Append(" <table border=""1"" style=""border-collapse: collapse;"" width=""980px"" cellpadding=""0"" cellspacing=""0"">")
|
||||
StrSB.Append(" <tr class=""Titulos"">")
|
||||
StrSB.Append(" <td style=""width: 202px;"">Asunto</td>")
|
||||
StrSB.Append(" <td>Descripcion</td>")
|
||||
StrSB.Append(" <td style=""width: 152px"">Para</td>")
|
||||
StrSB.Append(" <td style=""width: 112px"">Inicio</td>")
|
||||
StrSB.Append(" <td style=""width: 112px"">Fin</td>")
|
||||
StrSB.Append(" <td style=""width: 102px"">Estatus</td>")
|
||||
StrSB.Append(" </tr>")
|
||||
'StrSB.Append(" </table>")
|
||||
'StrSB.Append(" <div>")
|
||||
'StrSB.Append(" <table cellspacing=""0"" rules=""all"" border=""1"" style=""width: 980px; border-collapse: collapse;"">")
|
||||
|
||||
Dim i As Integer = 0
|
||||
For Each RowTarea As DataRow In objEvento.DtResultados.FiltraParametros("", "FechaIng Desc").Rows
|
||||
StrSB.AppendFormat(" <tr class=""{0}"">", If(i Mod 2 = 0, "Texto", "TextoAlterno"))
|
||||
StrSB.AppendFormat(" <td style=""width: 200px;text-align:left;""> {0}</td>", RowTarea("Asunto"))
|
||||
StrSB.AppendFormat(" <td style=""text-align:left;""> {0}</td>", RowTarea("Descripcion"))
|
||||
StrSB.AppendFormat(" <td style=""width: 150px;text-align:left;""> {0}</td>", RowTarea("UsuarioPara"))
|
||||
StrSB.AppendFormat(" <td style=""width: 110px;text-align:left;"">{0}</td>", RowTarea("FechaInicio").ToString.ToDateTime.ToString("dd/MM/yyyy HH:mm"))
|
||||
StrSB.AppendFormat(" <td style=""width: 110px;text-align:left;"">{0}</td>", RowTarea("FechaFin").ToString.ToDateTime.ToString("dd/MM/yyyy HH:mm"))
|
||||
StrSB.AppendFormat(" <td style=""width: 100px;text-align:left;""><a class=""Texto"" href=""{0}/OI/EventoDetalle.aspx?CveEvento={1}"">{2}</a></td>", DireccionURL, RowTarea("CveEvento"), RowTarea("EventoEstatus"))
|
||||
StrSB.Append(" </tr>")
|
||||
i = i + 1
|
||||
Next
|
||||
|
||||
StrSB.Append(" </table>")
|
||||
StrSB.Append(" </div>")
|
||||
End If
|
||||
End If
|
||||
|
||||
StrSB.Append(" </td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" </table>")
|
||||
StrSB.Append(" </fieldset>")
|
||||
StrSB.Append(" </td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""2""> </td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""2"">")
|
||||
StrSB.Append(" <fieldset>")
|
||||
StrSB.Append(" <legend><h3>AGENDAS</h3></legend>")
|
||||
StrSB.Append(" <table>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""2"">")
|
||||
|
||||
|
||||
|
||||
|
||||
If objEvento.GetEventos(-1, 2, -1, "-1", "-1", -1, -1, -1, -1, -1, CveEvento, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||
|
||||
If objEvento.DtResultados.Rows.Count = 0 Then
|
||||
StrSB.Append(" <div>")
|
||||
StrSB.Append(" <table cellspacing=""0"" rules=""all"" border=""1"" style=""width: 980px; border-collapse: collapse;"">")
|
||||
StrSB.Append(" <tr class=""Texto"">")
|
||||
StrSB.Append(" <td colspan=""6"">MINUTA SIN AGENDAS</td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" </table>")
|
||||
StrSB.Append(" </div>")
|
||||
Else
|
||||
StrSB.Append(" <div>")
|
||||
StrSB.Append(" <table border=""1"" style=""border-collapse: collapse;"" width=""980px"" cellpadding=""0"" cellspacing=""0"">")
|
||||
StrSB.Append(" <tr class=""Titulos"">")
|
||||
StrSB.Append(" <td style=""width: 202px"">Asunto</td>")
|
||||
StrSB.Append(" <td>Descripcion</td>")
|
||||
StrSB.Append(" <td style=""width: 152px"">Para</td>")
|
||||
StrSB.Append(" <td style=""width: 112px"">Fecha</td>")
|
||||
StrSB.Append(" <td style=""width: 112px"">Tipo Agenda</td>")
|
||||
StrSB.Append(" <td style=""width: 102px"">Estatus</td>")
|
||||
StrSB.Append(" </tr>")
|
||||
'StrSB.Append(" </table>")
|
||||
'StrSB.Append(" <div>")
|
||||
'StrSB.Append(" <table cellspacing=""0"" rules=""all"" border=""1"" style=""width: 980px; border-collapse: collapse;"">")
|
||||
Dim i As Integer = 0
|
||||
For Each RowAgenda As DataRow In objEvento.DtResultados.FiltraParametros("", "FechaIng Desc").Rows
|
||||
StrSB.AppendFormat(" <tr class=""{0}"">", If(i Mod 2 = 0, "Texto", "TextoAlterno"))
|
||||
StrSB.AppendFormat(" <td style=""width: 200px;text-align:left;"" > {0}</td>", RowAgenda("Asunto"))
|
||||
StrSB.AppendFormat(" <td style=""text-align:left;""> {0}</td>", RowAgenda("Descripcion"))
|
||||
StrSB.AppendFormat(" <td style=""width: 150px;text-align:left;""> {0}</td>", RowAgenda("UsuarioPara"))
|
||||
StrSB.AppendFormat(" <td style=""width: 110px;text-align:left;"">{0}</td>", RowAgenda("FechaInicio").ToString.ToDateTime.ToString("dd/MM/yyyy HH:mm"))
|
||||
StrSB.AppendFormat(" <td style=""width: 110px;text-align:left;"">{0}</td>", RowAgenda("AgendaTipo"))
|
||||
'StrSB.AppendFormat(" <td style=""width: 100px;text-align:left;""><a class=""Texto"" href=""{0}/OI/EventoDetalle.aspx?CveEvento={1}"">{2}</a></td>", DireccionURL, RowAgenda("CveEvento"), RowAgenda("EventoEstatus"))
|
||||
StrSB.AppendFormat(" <td style=""width: 100px;text-align:left;"">{0}</td>", RowAgenda("EventoEstatus"))
|
||||
StrSB.Append(" </tr>")
|
||||
i = i + 1
|
||||
Next
|
||||
StrSB.Append(" </table>")
|
||||
StrSB.Append(" </div>")
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
StrSB.Append(" </td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" </table>")
|
||||
StrSB.Append(" </fieldset>")
|
||||
StrSB.Append(" </td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""2""> </td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""2"">")
|
||||
StrSB.Append(" <fieldset>")
|
||||
StrSB.Append(" <legend><h3>ARCHIVOS</h3></legend>")
|
||||
StrSB.Append(" <table>")
|
||||
StrSB.Append(" <tr>")
|
||||
StrSB.Append(" <td colspan=""2"">")
|
||||
|
||||
|
||||
|
||||
|
||||
If objEvento.GetEventosComentarios(CveEvento) Then
|
||||
|
||||
If objEvento.DtResultados.Rows.Count = 0 Then
|
||||
StrSB.Append(" <div>")
|
||||
StrSB.Append(" <table cellspacing=""0"" rules=""all"" border=""1"" style=""width: 980px; border-collapse: collapse;"">")
|
||||
StrSB.Append(" <tr class=""Texto"">")
|
||||
StrSB.Append(" <td colspan=""6"">MINUTA SIN ARCHIVOS</td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" </table>")
|
||||
StrSB.Append(" </div>")
|
||||
Else
|
||||
StrSB.Append(" <div>")
|
||||
StrSB.Append(" <table border=""1"" style=""border-collapse: collapse;"" width=""980px"" cellpadding=""0"" cellspacing=""0"">")
|
||||
StrSB.Append(" <tr class=""Titulos"">")
|
||||
StrSB.Append(" <td>Descripcion</td>")
|
||||
StrSB.Append(" <td style=""width: 152px"">Adjunto</td>")
|
||||
StrSB.Append(" </tr>")
|
||||
'StrSB.Append(" </table>")
|
||||
'StrSB.Append(" <div>")
|
||||
'StrSB.Append(" <table cellspacing=""0"" rules=""all"" border=""1"" style=""width: 980px; border-collapse: collapse;"">")
|
||||
Dim i As Integer = 0
|
||||
For Each RowArchivo As DataRow In objEvento.DtResultados.FiltraParametros("", "FechaIng Desc").Rows
|
||||
StrSB.AppendFormat(" <tr class=""{0}"">", If(i Mod 2 = 0, "Texto", "TextoAlterno"))
|
||||
StrSB.AppendFormat(" <td style=""text-align:left;""> {0}</td>", RowArchivo("EventoComentario"))
|
||||
'StrSB.AppendFormat(" <td style=""width: 150px;""><a class=""Texto"" href=""{0}/Empresas/{1}/OI/OI_C{2}"">Ver</a></td>", DireccionURL, UsuarioActual.CveEmpresa, RowArchivo("Archivo"))
|
||||
If RowArchivo("Archivo").ToString <> "" Then
|
||||
StrSB.AppendFormat(" <td style=""text-align:left;""> {0}</td>", "Si")
|
||||
Else
|
||||
StrSB.AppendFormat(" <td style=""text-align:left;""> {0}</td>", "No")
|
||||
End If
|
||||
StrSB.Append(" </tr>")
|
||||
i = i + 1
|
||||
Next
|
||||
StrSB.Append(" </table>")
|
||||
StrSB.Append(" </div>")
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
StrSB.Append(" </td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" </table>")
|
||||
StrSB.Append(" </fieldset>")
|
||||
StrSB.Append(" </td>")
|
||||
StrSB.Append(" </tr>")
|
||||
StrSB.Append(" </table>")
|
||||
StrSB.Append("</body>")
|
||||
|
||||
|
||||
|
||||
'If Not DT Is Nothing AndAlso DT.Rows.Count > 0 Then
|
||||
' 'StrSB.Append(" <tr> ")
|
||||
' 'StrSB.Append(" <td align=""center"" class=""Titulos"" colspan=""2""> Comentarios</td> ")
|
||||
' 'StrSB.Append(" </tr> ")
|
||||
' StrSB.Append(" <tr> ")
|
||||
' StrSB.Append(" <td colspan=""2""> ")
|
||||
' StrSB.Append(" <fieldset> ")
|
||||
' StrSB.Append(" <legend>Comentarios</legend> ")
|
||||
' StrSB.Append(" <table width=""100%""> <tr style='background-color:gray;color:White;font-family:Verdana;font-size:10px;text-align:center;vertical-align:middle;font-weight:bold;height:20px;text-decoration:none;'><th scope='col' style='width: 70px'>Fecha</th><th scope='col' style='width: 80px'>Usuario</th><th scope='col' >Comentario</th></tr>")
|
||||
' 'StrSB.Append(" <table border=""1"" rules=""all"" style=""border-collapse: collapse;"" width=""100%""><tr class='texto' style='text-align:center;'><td>Fecha</td><td>Usuario</td><td>Comentario</td></tr> ")
|
||||
' For i As Integer = 0 To DT.Rows.Count - 1
|
||||
|
||||
' StrSB.AppendFormat(" <tr class='{0}'> ", If(i Mod 2 = 0, "Texto", "TextoAlterno"))
|
||||
' StrSB.AppendFormat(" <td width=""100px"">{0}</td> ", DT.Rows(i)("FechaIng"))
|
||||
' StrSB.AppendFormat(" <td width=""150px"">{0}</td> ", DT.Rows(i)("NombreUsuario"))
|
||||
' StrSB.AppendFormat(" <td>{0}</td> ", DT.Rows(i)("EventoComentario"))
|
||||
' StrSB.Append(" </tr> ")
|
||||
' Next
|
||||
' StrSB.Append(" </table> ")
|
||||
' StrSB.Append(" </fieldset> ")
|
||||
' StrSB.Append(" </td> ")
|
||||
' StrSB.Append(" </tr> ")
|
||||
|
||||
' DT.Dispose()
|
||||
'End If
|
||||
|
||||
|
||||
|
||||
StrSB.Append("</html> ")
|
||||
End If
|
||||
|
||||
Return StrSB
|
||||
End Function
|
||||
Private Sub MandaCorreo()
|
||||
Dim Mail As New ClsSisMail()
|
||||
Mail.SendMail(EmpresaNotificaciones, ViewState("Para").ToString, ViewState("Asunto").ToString, ViewState("Body").ToString, CCP:=ViewState("ArrayCC").ToString)
|
||||
'Mail.Mandacorreo(EmpresaNotificaciones, ViewState("Para").ToString, ViewState("Asunto").ToString, ViewState("Body").ToString, CType(ViewState("ArrayCC"), String()))
|
||||
End Sub
|
||||
|
||||
Protected Sub lbAgregarArchivo_Click(sender As Object, e As EventArgs) Handles lbAgregarArchivo.Click
|
||||
Dim ObjEventoBitacora As New ClsOIEventos
|
||||
|
||||
Dim Archivo As String = ""
|
||||
Dim RutaGuardar As String = String.Format("{0}\OI\Comentarios\", UsuarioActual.Empresa.Ruta, UsuarioActual.CveEmpresa)
|
||||
Dim RutaArchivo As String = String.Format("{0}\OI\Temp\{1}", UsuarioActual.Empresa.Ruta, Session("Eventos"))
|
||||
|
||||
If Session("Eventos") IsNot Nothing AndAlso File.Exists(RutaArchivo) Then
|
||||
If Not Directory.Exists(RutaGuardar) Then Directory.CreateDirectory(RutaGuardar)
|
||||
Archivo = Path.GetExtension(Session("Eventos").ToString)
|
||||
End If
|
||||
|
||||
If ObjEventoBitacora.AddEventoComentario(CveEvento, TxtOBs.Text.Trim, Archivo, UsuarioActual.CveUsuario) > 0 Then
|
||||
|
||||
|
||||
If Archivo <> "" Then
|
||||
File.Move(RutaArchivo, String.Format("{0}OI{1}{2}", RutaGuardar, ObjEventoBitacora.CveEventoComentario, Path.GetExtension(Archivo)))
|
||||
Session("Eventos") = ""
|
||||
End If
|
||||
|
||||
TxtOBs.Text = ""
|
||||
CargaDetallesArchivos("")
|
||||
End If
|
||||
ObjEventoBitacora.Dispose()
|
||||
|
||||
End Sub
|
||||
|
||||
Protected Sub GvEventosDetalleArchivos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvEventosDetalleArchivos.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
If e.Row.RowIndex >= 0 Then
|
||||
If e.Row.DBCampo("Archivo").ToString <> "" Then
|
||||
e.Row.FCHyperLink("HplA").Visible = True
|
||||
e.Row.FCHyperLink("HplA").NavigateUrl = String.Format("/Empresas/{0}/OI/Comentarios/OI{1}", UsuarioActual.CveEmpresa, e.Row.DBCampo("Archivo").ToString)
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#Region "O R D E N A M I E N T O"
|
||||
Protected Sub LbOrden_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||
Dim Orden As String = ""
|
||||
Dim Campo As String = ""
|
||||
Dim gvi As Integer = 0
|
||||
Dim Literal As Literal = Nothing
|
||||
Const OrdenInicial As String = ""
|
||||
Dim Arg(2) As String
|
||||
|
||||
Arg = CType(sender, LinkButton).CommandArgument().ToString.Split(";"c)
|
||||
Campo = Arg(0)
|
||||
gvi = Arg(1).ToEntero
|
||||
Literal = CType(CType(sender, LinkButton).NamingContainer.FindControl("Img" & Campo.Replace(",", "_")), Literal)
|
||||
Campo = Campo.Substring(0, Campo.Length - 1)
|
||||
|
||||
If ViewState(String.Format("O{0}", Campo, gvi)) IsNot Nothing AndAlso ViewState(String.Format("O{0}", Campo, gvi)).ToString = String.Format("{0} DESC", Campo) Then
|
||||
ViewState(String.Format("O{0}", Campo)) = String.Format("{0} ASC", Campo)
|
||||
Literal.Text = String.Format("<i class='fa fa-sort-asc' style='color:#999' ></i>")
|
||||
Else
|
||||
ViewState(String.Format("O{0}", Campo, gvi)) = String.Format("{0} DESC", Campo)
|
||||
Literal.Text = String.Format("<i class='fa fa-sort-desc' style='color:#999' ></i>")
|
||||
End If
|
||||
Orden = OrdenInicial & ViewState(String.Format("O{0}", Campo, gvi)).ToString
|
||||
ViewState("Orden") = Orden
|
||||
CargaGrid(Orden, gvi)
|
||||
End Sub
|
||||
|
||||
Private Sub CargaGrid(Orden As String, gvi As Integer)
|
||||
If gvi = 0 Then
|
||||
CargaDetallesTareas(Orden)
|
||||
ViewState("OrdenTarea") = Orden
|
||||
ElseIf gvi = 1 Then
|
||||
CargaDetallesAgendas(Orden)
|
||||
ViewState("OrdenAgenda") = Orden
|
||||
ElseIf gvi = 2 Then
|
||||
CargaDetallesArchivos(Orden)
|
||||
ViewState("OrdenArchivo") = Orden
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
End Class
|
||||
285
OI/Normatividad.aspx
Normal file
285
OI/Normatividad.aspx
Normal file
@@ -0,0 +1,285 @@
|
||||
<%@ Page Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Normatividad.aspx.vb" Inherits="OI_Normatividad" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
#treeviewarbolmiarbol, .catcuentascontarbol .catcuentasarbol {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#listviewbuscar {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
|
||||
ul.treeviewarbol li > div {
|
||||
display: inline-block;
|
||||
width: 100px;
|
||||
min-height: 15px;
|
||||
}
|
||||
|
||||
ul.treeviewarbol li > div > a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
ul.treeviewarbol li > div:hover > a {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
ul.treeviewarbol li > label:hover + div > a {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.aradd {
|
||||
margin-left: 15px;
|
||||
background-color: #1caf9a;
|
||||
color: #ffffff;
|
||||
font-weight: 300;
|
||||
padding: 2px 7px 3px 8px;
|
||||
text-align: center;
|
||||
height: 15px;
|
||||
border-radius: 18px !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.aradd::before {
|
||||
font: normal normal normal 14px/1 FontAwesome;
|
||||
font-size: 9px !important;
|
||||
content: "\f067";
|
||||
}
|
||||
|
||||
.aredit {
|
||||
margin-left: 15px;
|
||||
background-color: #E87E04;
|
||||
color: #ffffff;
|
||||
font-weight: 300;
|
||||
padding: 2px 7px 3px 8px;
|
||||
text-align: center;
|
||||
height: 15px;
|
||||
border-radius: 18px !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.aredit::before {
|
||||
font: normal normal normal 14px/1 FontAwesome;
|
||||
font-size: 9px !important;
|
||||
content: "\f040";
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
<asp:UpdatePanel ID="UpLnkAcciones" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkNuevo" runat="server" OnClick="LnkNuevo_Click"> <i class="fa fa-plus"></i> Nuevo Título</asp:LinkButton>
|
||||
</li>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
Catálogo de Normatividad
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
|
||||
<asp:UpdatePanel ID="updatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="catcuentascontarbol" style="width: 100%; height:600px; overflow-x:scroll;">
|
||||
<%-- <div class="catcuentasarbol" style="height:500%">--%>
|
||||
<div id="treeviewarbolmiarbol" style="text-align: right">
|
||||
<ADS:Arbol runat="server" ID="ArbolCuentas" Style="text-align: left;"></ADS:Arbol>
|
||||
</div>
|
||||
<%-- </div>--%>
|
||||
</div>
|
||||
<asp:Button ID="BtnCambiaTitulos" OnClick="BtnCambiaTitulos_Click" ClientIDMode="Static" Style="display: none;" runat="server" />
|
||||
|
||||
<%-- <asp:TextBox ID="Textbuscar" Style="display: none;" runat="server"></asp:TextBox>
|
||||
<asp:HiddenField ID="HdnID" runat="server" Value="" ClientIDMode="Static" />
|
||||
<asp:Button ID="editar" runat="server" Style="display: none;" Text="Buscar" />
|
||||
<asp:Button ID="agregar" Style="display: none;" runat="server" Text="Buscar" />
|
||||
<asp:Button ID="borrar" Style="display: none;" runat="server" Text="borrar" />--%>
|
||||
|
||||
|
||||
|
||||
<%-- MODAL AGREGAR-EDITAR --%>
|
||||
<div id="DvModalTitulos" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<asp:UpdatePanel ID="UPModalTitulos" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<asp:Label class="modal-title" ID="ModalTitulo" runat="server" Text="" Font-Size="Larger"></asp:Label>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel ID="UPModalBody" runat="server" UpdateMode="conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<div class="form-line" style="margin-left: 10px">
|
||||
<div class="catcuentas left">Título</div>
|
||||
<div class="catcuentas right">
|
||||
<asp:TextBox ID="Ttitulo" Style="width: 100%;" runat="server" MaxLength="100"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVTtitulo" runat="server" ControlToValidate="Ttitulo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />Ingrese un <b>''Título''</b><br />por favor." ValidationGroup="GrpNuevacuenta"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCETtitulo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTtitulo" Width="170px"></ajax:ValidatorCalloutExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVTtitulo2" runat="server" ControlToValidate="Ttitulo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />Ingrese un <b>''Título''</b><br />por favor." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCETtitulo2" runat="server" HighlightCssClass="vco" TargetControlID="RFVTtitulo2" Width="170px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<hr style="margin-left: 10px;" />
|
||||
|
||||
<div class="form-line" style="margin-left: 10px">
|
||||
<div class="catcuentas left">Título Padre</div>
|
||||
<div class="catcuentas right">
|
||||
<asp:DropDownList ID="DdlSubtitulo" DataTextField="Asunto" DataValueField="CveEvento" CssClass="form-control input-sm input-small select2me" Width="100%" runat="server" AutoPostBack="true">
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVSubtitulo" runat="server" ControlToValidate="DdlSubtitulo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Título Padre''</b> es necesario,<br /> por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpNuevacuenta"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOSubtitulo" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubtitulo" Width="270px"></ajax:ValidatorCalloutExtender>
|
||||
<br />
|
||||
<asp:Label ID="LblSubTitulo" runat="server" Text="" Font-Italic="True" Font-Size="7pt" ClientIDMode="Static"></asp:Label>
|
||||
<asp:HiddenField ID="HdnSubTituloDe" ClientIDMode="Static" Value="0" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-line" style="margin-left: 10px;">
|
||||
<div class="catcuentas left">Observaciones</div>
|
||||
<div class="catcuentas right">
|
||||
<asp:TextBox ID="TxtObservaciones" Style="width: 100%;" class="Widthall" runat="server" TextMode="MultiLine" Columns="60" Rows="4"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<div style="margin-right: 15px; margin-top: 25px;">
|
||||
<div class="form-line" style="text-align: right;">
|
||||
<asp:LinkButton ID="ImgDownLoadFormato" Text="<i class='fa fa-download'> Descargar formato</i>" OnClick="ImgDownLoadFormato_Click" runat="server" Visible="False" />
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
|
||||
<Triggers>
|
||||
<asp:PostBackTrigger ControlID="ImgDownLoadFormato" />
|
||||
</Triggers>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<div style="margin: 0px 10px 0px 20px;">
|
||||
<div>
|
||||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server" ></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
<asp:Button ID="Guardar" CssClass="btn btn-primary" Visible="false" runat="server" Text="Guardar" Style="margin-left: 10px; margin-bottom: 10px;" ValidationGroup="GrpGuardar"/>
|
||||
<asp:Button ID="nuevacuenta" CssClass="btn btn-success" Visible="false" runat="server" Text="Guardar" Style="margin-left: 10px; margin-bottom: 10px;" ValidationGroup="GrpNuevacuenta" />
|
||||
<asp:Button ID="BtnEliminar" CssClass="btn btn-danger" Visible="false" runat="server" Text="Eliminar" Style="margin-left: 10px; margin-bottom: 10px;" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea eliminar el título?" data-btn-ok-label="si" />
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
<asp:Content ID="content7" ContentPlaceHolderID="JS" runat="server">
|
||||
<script>
|
||||
function buscararbolito(inputid, ulid) {
|
||||
|
||||
var texto = $("input#" + inputid).val();
|
||||
if ((texto == '') && ($('ul#' + ulid))) {
|
||||
$('ul#' + ulid + '').removeClass("listainvicible");
|
||||
expandir();
|
||||
}
|
||||
else {
|
||||
if ($('ul#' + ulid).hasClass('listainvicible') == false) {
|
||||
$('ul#' + ulid).addClass("listainvicible");
|
||||
}
|
||||
if ($('ul#' + ulid + ' li.livisible')) {
|
||||
$('ul#' + ulid + ' li.livisible').removeClass("livisible");
|
||||
}
|
||||
if ($('ul#' + ulid + ' input:checked')) {
|
||||
$('ul#' + ulid + ' input:checked').prop('checked', false);
|
||||
}
|
||||
if ($('ul#' + ulid + ' li:contains("' + texto + '") > input[type=checkbox]')) {
|
||||
$('ul#' + ulid + ' li:contains("' + texto + '") > input[type=checkbox]').prop('checked', true);
|
||||
}
|
||||
if ($('ul#' + ulid + ' li:contains("' + texto + '")')) {
|
||||
$('ul#' + ulid + ' li:contains("' + texto + '")').addClass("livisible");
|
||||
}
|
||||
if ($('ul#' + ulid + ' label:contains("' + texto + '") ~ ul li')) {
|
||||
$('ul#' + ulid + ' label:contains(""' + texto + '"") ~ ul li').addClass("livisible");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function expandir() {
|
||||
debugger;
|
||||
var lis = document.getElementById('C_ArbolCuentas_miarbol').getElementsByTagName("li");
|
||||
|
||||
for (var indice in lis) {
|
||||
var chkId = 'chk' + lis[indice].id
|
||||
|
||||
if ($get(chkId) != null) {
|
||||
document.getElementById(chkId).checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
jQuery(document).ready(function () {
|
||||
Sys.Application.add_load(function (s, e) {
|
||||
buscararbolito('C_ArbolCuentas_Abuscar', 'C_ArbolCuentas_miarbol')
|
||||
});
|
||||
});
|
||||
|
||||
function ValidaGuardar(SubCuentaAnterior) {
|
||||
debugger;
|
||||
$('.popover').remove();
|
||||
$("#C_Guardar").removeAttr("aria-describedby");
|
||||
|
||||
|
||||
|
||||
if ($get('HdnSubTituloDe').value != SubCuentaAnterior) {
|
||||
|
||||
setTimeout(
|
||||
function () {
|
||||
;
|
||||
var Text = '';
|
||||
|
||||
debugger;
|
||||
if ($("#Tsubtitulo").length) {
|
||||
Text += 'El título sera reasignado al título padre: <b>' + $get('Tsubtitulo').SelectedValue + '</b>.<br/>';
|
||||
}
|
||||
|
||||
$('.popover-title').html(Text);
|
||||
}, 10);
|
||||
}
|
||||
else {
|
||||
|
||||
$('.popover-title').html('¿Esta seguro de guardar?');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</asp:Content>
|
||||
312
OI/Normatividad.aspx.vb
Normal file
312
OI/Normatividad.aspx.vb
Normal file
@@ -0,0 +1,312 @@
|
||||
Imports System.Data
|
||||
Imports System.Globalization
|
||||
Imports System.IO
|
||||
Imports Extensiones
|
||||
Imports Microsoft.Reporting.WebForms
|
||||
Partial Class OI_Normatividad
|
||||
Inherits ClsPaginas
|
||||
|
||||
#Region "Propiedades"
|
||||
|
||||
Private Property DtDatos As DataTable
|
||||
Get
|
||||
Return CType(ViewState("DtDatos"), DataTable)
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
ViewState("DtDatos") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property IDSelected As Integer
|
||||
Get
|
||||
Return ViewState("idsel").ToString.ToEntero
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
ViewState("idsel") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
If Not Page.IsPostBack Then
|
||||
|
||||
CargaDatos()
|
||||
|
||||
If DtDatos.Rows.Count = 0 Then 'Agregar los titulos Padres necesarios para que el usuario comience agregar los suyos
|
||||
|
||||
Dim ObjOIEventos As New ClsOIEventos
|
||||
|
||||
If ObjOIEventos.AddEventoNormatividad("PADRE", "PADRE DE TODOS", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, "".ToEntero) Then
|
||||
If ObjOIEventos.GetEventoNormatividad(UsuarioActual.CveEmpresa) Then
|
||||
IDSelected = ObjOIEventos.DtResultados(0)("CveEvento").ToString.ToEntero
|
||||
ObjOIEventos.AddEventoNormatividad("Título 1", "", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, IDSelected)
|
||||
|
||||
End If
|
||||
End If
|
||||
|
||||
ObjOIEventos.Dispose()
|
||||
CargaDatos()
|
||||
End If
|
||||
CargaTitulosPadre()
|
||||
RegistraScript("expandir();")
|
||||
|
||||
End If
|
||||
End Sub
|
||||
Private Sub CargaDatos()
|
||||
|
||||
Dim ObjOIEventos As New ClsOIEventos
|
||||
|
||||
If ObjOIEventos.GetEventoNormatividad(UsuarioActual.CveEmpresa) Then
|
||||
DtDatos = ObjOIEventos.DtResultados.FiltraParametros("", "CveEvento")
|
||||
End If
|
||||
|
||||
ArbolCuentas.DataSource = DtDatos
|
||||
ArbolCuentas.nivel = "CtaInicial"
|
||||
ArbolCuentas.nodoid = "CveEvento"
|
||||
ArbolCuentas.padre = "CveEventoPadre"
|
||||
ArbolCuentas.titulo = "Asunto"
|
||||
updatos.Update()
|
||||
|
||||
|
||||
ObjOIEventos.Dispose()
|
||||
End Sub
|
||||
Private Sub CargaTitulosPadre()
|
||||
DdlSubtitulo.Items.Clear()
|
||||
|
||||
DdlSubtitulo.DataSource = DtDatos.FiltraParametros("CveEventoPadre IS NOT NULL")
|
||||
DdlSubtitulo.DataBind()
|
||||
DdlSubtitulo.Items.Insert(0, New ListItem("-", "-1"))
|
||||
End Sub
|
||||
|
||||
Private Function getNodospadreHijos(nodo As Integer) As DataTable
|
||||
Return DtDatos.FiltraParametros(String.Format("CveEvento = {0}", nodo))
|
||||
End Function
|
||||
|
||||
Protected Sub agregar_Click(sender As Object, e As EventArgs) Handles ArbolCuentas.addclick
|
||||
RegistraScript("$('#DvModalTitulos').modal();")
|
||||
ModalTitulo.Text = "Nuevo Título"
|
||||
|
||||
LimpiarCampos()
|
||||
Dim obj As ADServerControl.DragableItem = DirectCast(sender, ADServerControl.DragableItem)
|
||||
IDSelected = obj.Cve
|
||||
|
||||
DdlSubtitulo.SelectedValueExist(IDSelected)
|
||||
|
||||
nuevacuenta.Visible = True
|
||||
updatos.Visible = True
|
||||
updatos.Update()
|
||||
|
||||
End Sub
|
||||
Protected Sub editar_Click(sender As Object, e As EventArgs) Handles ArbolCuentas.editclick
|
||||
RegistraScript("$('#DvModalTitulos').modal();")
|
||||
ModalTitulo.Text = "Modificar Título"
|
||||
LimpiarCampos()
|
||||
Dim dt As DataTable
|
||||
Dim obj As ADServerControl.DragableItem = DirectCast(sender, ADServerControl.DragableItem)
|
||||
IDSelected = obj.Cve
|
||||
dt = getNodospadreHijos(IDSelected)
|
||||
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
||||
Dim dr As DataRow = dt.Rows(0)
|
||||
Ttitulo.Text = dr("Asunto").ToString()
|
||||
DdlSubtitulo.SelectedValueExist(dr("CveEventoPadre").ToString())
|
||||
TxtObservaciones.Text = dr("Descripcion").ToString
|
||||
|
||||
DdlSubtitulo.Enabled = False
|
||||
|
||||
If dr("Archivo").ToString() <> "" Then
|
||||
ImgDownLoadFormato.Visible = True
|
||||
ImgDownLoadFormato.CommandArgument = String.Format("OI\{0}", dr("Archivo").ToString())
|
||||
|
||||
End If
|
||||
|
||||
Dim Hijos As Integer = DtDatos.FiltraParametros(String.Format("CveEventoPadre = {0}", IDSelected)).Rows.Count
|
||||
|
||||
If (Hijos = 0 And DtDatos.Rows.Count > 2) Then BtnEliminar.Visible = True
|
||||
|
||||
End If
|
||||
|
||||
|
||||
Guardar.Visible = True
|
||||
updatos.Visible = True
|
||||
updatos.Update()
|
||||
|
||||
End Sub
|
||||
Protected Sub Guardar_Click(sender As Object, e As EventArgs) Handles Guardar.Click
|
||||
|
||||
Dim ObjOIEventos As New ClsOIEventos
|
||||
|
||||
'ARCHIVO
|
||||
Dim FileExtension As String = "-1"
|
||||
Dim filesgral As List(Of Archivo) = Anexo.getfiles().Archivos
|
||||
Dim filemove As String = ""
|
||||
|
||||
For Each fileItem As Archivo In filesgral
|
||||
FileExtension = IO.Path.GetExtension(String.Format("{0}Temp\{1}", AppDomain.CurrentDomain.BaseDirectory, fileItem.filename)).Replace(".", "")
|
||||
filemove = fileItem.filename
|
||||
Next
|
||||
|
||||
If ObjOIEventos.UpdateEventoNormatividad(Ttitulo.Text.Trim, TxtObservaciones.Text.Trim, String.Format(".{0}", FileExtension), IDSelected) Then
|
||||
|
||||
If filemove <> "" Then
|
||||
Dim ruta = UsuarioActual.Empresa.Ruta & String.Format("OI\{0}", String.Format("OI{0}.{1}", IDSelected.ToString, FileExtension))
|
||||
If File.Exists(ruta) Then
|
||||
File.Delete(ruta)
|
||||
End If
|
||||
filemove.FilesMove(String.Format("OI{0}", IDSelected.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
||||
End If
|
||||
|
||||
Dim customerRow As Data.DataRow
|
||||
customerRow = DtDatos.Select(String.Format("CveEvento = {0}", IDSelected))(0)
|
||||
customerRow("Asunto") = Ttitulo.Text.Trim
|
||||
DtDatos.AcceptChanges()
|
||||
|
||||
'CargaDatos()
|
||||
ArbolCuentas.DataSource = DtDatos
|
||||
ArbolCuentas.DataBind()
|
||||
|
||||
Dim item As CheckBox = DirectCast(ArbolCuentas.FindControl(String.Format("chk{0}", IDSelected)), CheckBox)
|
||||
item.Text = Ttitulo.Text.Trim
|
||||
|
||||
|
||||
'Dim btnAdd As Button = DirectCast(ArbolCuentas.FindControl(String.Format("aradd{0}", IDSelected)), Button)
|
||||
'btnAdd.Visible = False
|
||||
|
||||
Anexo.Text = "[]"
|
||||
LimpiarCampos()
|
||||
RegistraScript("expandir();")
|
||||
CargaDatos()
|
||||
RegistraScript("$get('BtnCambiaTitulos').click();")
|
||||
updatos.Update()
|
||||
|
||||
Alert("El título se guardó correctamente")
|
||||
End If
|
||||
ObjOIEventos.Dispose()
|
||||
|
||||
End Sub
|
||||
Protected Sub nuevacuenta_Click(sender As Object, e As EventArgs) Handles nuevacuenta.Click
|
||||
|
||||
Dim ObjOIEventos As New ClsOIEventos
|
||||
|
||||
'ARCHIVO
|
||||
Dim FileExtension As String = "-1"
|
||||
Dim filesgral As List(Of Archivo) = Anexo.getfiles().Archivos
|
||||
Dim filemove As String = ""
|
||||
|
||||
For Each fileItem As Archivo In filesgral
|
||||
FileExtension = IO.Path.GetExtension(String.Format("{0}Temp\{1}", AppDomain.CurrentDomain.BaseDirectory, fileItem.filename)).Replace(".", "")
|
||||
filemove = fileItem.filename
|
||||
Next
|
||||
|
||||
If ObjOIEventos.AddEventoNormatividad(Ttitulo.Text.Trim, TxtObservaciones.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, DdlSubtitulo.SelectedValue.ToEntero) Then
|
||||
|
||||
CargaDatos()
|
||||
Dim Idnew As Integer = 0
|
||||
Dim row As DataRow = DtDatos.FiltraParametros("", "CveEvento DESC").Rows(0)
|
||||
Idnew = row("CveEvento").ToString().ToEntero
|
||||
|
||||
If filemove <> "" Then
|
||||
filemove.FilesMove(String.Format("OI{0}", Idnew.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
||||
End If
|
||||
|
||||
ArbolCuentas.DataSource = DtDatos
|
||||
Dim item As ADServerControl.DragableItem = DirectCast(ArbolCuentas.FindControl(String.Format("{0}", DdlSubtitulo.SelectedValue.ToEntero)), ADServerControl.DragableItem)
|
||||
item.Attributes.Item("data-hijos") = item.Attributes.Item("data-hijos").ToEntero + 1
|
||||
Dim objul As ADServerControl.DragableUL = DirectCast(ArbolCuentas.FindControl(String.Format("ul{0}", DdlSubtitulo.SelectedValue.ToEntero)), ADServerControl.DragableUL)
|
||||
If (IsNothing(objul)) Then
|
||||
objul = New ADServerControl.DragableUL
|
||||
objul.ID = String.Format("ul{0}", item.Cve)
|
||||
item.Controls.Add(objul)
|
||||
End If
|
||||
ArbolCuentas.additem(objul, Idnew, DdlSubtitulo.SelectedValue.ToEntero, String.Format("{0}", Ttitulo.Text))
|
||||
|
||||
Anexo.Text = "[]"
|
||||
LimpiarCampos()
|
||||
CargaDatos()
|
||||
RegistraScript("$get('BtnCambiaTitulos').click();")
|
||||
updatos.Update()
|
||||
RegistraScript("expandir();")
|
||||
Alert("El título se guardó correctamente")
|
||||
End If
|
||||
|
||||
ObjOIEventos.Dispose()
|
||||
End Sub
|
||||
Private Sub LimpiarCampos()
|
||||
Ttitulo.Text = ""
|
||||
DdlSubtitulo.SelectedValue = -1
|
||||
TxtObservaciones.Text = ""
|
||||
|
||||
Guardar.Visible = False
|
||||
nuevacuenta.Visible = False
|
||||
BtnEliminar.Visible = False
|
||||
DdlSubtitulo.Enabled = True
|
||||
ImgDownLoadFormato.Visible = False
|
||||
End Sub
|
||||
Protected Sub BtnEliminar_Click(sender As Object, e As EventArgs) Handles BtnEliminar.Click
|
||||
|
||||
Dim ObjOIEventos As New ClsOIEventos
|
||||
|
||||
If ObjOIEventos.RemoveEvento(IDSelected.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||
|
||||
Dim customerRow As Data.DataRow
|
||||
customerRow = DtDatos.Select(String.Format("CveEvento = {0}", IDSelected))(0)
|
||||
customerRow("CveEventoPadre") = "-5"
|
||||
DtDatos.AcceptChanges()
|
||||
|
||||
Dim dt As DataTable = getNodospadreHijos(IDSelected)
|
||||
Dim ruta = UsuarioActual.Empresa.Ruta & String.Format("OI\{0}", dt(0)("Archivo").ToString())
|
||||
|
||||
If File.Exists(ruta) Then
|
||||
File.Delete(ruta)
|
||||
End If
|
||||
|
||||
ArbolCuentas.DataSource = DtDatos
|
||||
Dim item As ADServerControl.DragableItem = DirectCast(ArbolCuentas.FindControl(String.Format("{0}", IDSelected)), ADServerControl.DragableItem)
|
||||
Dim padre As ADServerControl.DragableItem = DirectCast(ArbolCuentas.FindControl(String.Format("{0}", item.CvePadre)), ADServerControl.DragableItem)
|
||||
padre.Attributes.Item("data-hijos") = padre.Attributes.Item("data-hijos").ToEntero - 1
|
||||
ArbolCuentas.Controls.Remove(item)
|
||||
'RegistraScript(String.Format("$('#{0}').click();", editar.ClientID))
|
||||
|
||||
dt.Rows(0).Delete()
|
||||
RegistraScript(String.Format("$('li#{0}').remove();", IDSelected))
|
||||
|
||||
LimpiarCampos()
|
||||
Alert("El título ha sido eliminado", TipoMensaje.MsgInformacion)
|
||||
|
||||
CargaDatos()
|
||||
RegistraScript("$get('BtnCambiaTitulos').click();")
|
||||
Else
|
||||
Alert("El título no pudo ser eliminado", TipoMensaje.MsgError)
|
||||
ObjOIEventos.RollBack()
|
||||
End If
|
||||
|
||||
ObjOIEventos.Dispose()
|
||||
|
||||
End Sub
|
||||
Protected Sub ImgDownLoadFormato_Click(sender As Object, e As EventArgs)
|
||||
Dim filePath As String = String.Format("{0}{1}", UsuarioActual.Empresa.Ruta, CType(sender, LinkButton).CommandArgument)
|
||||
Dim Archivo As New System.IO.FileInfo(filePath)
|
||||
|
||||
HttpContext.Current.Response.Clear()
|
||||
HttpContext.Current.Response.ClearContent()
|
||||
HttpContext.Current.Response.ContentType = "application/octet-stream"
|
||||
HttpContext.Current.Response.AppendHeader("Content-disposition", "attachment; filename=" + Path.GetFileName(filePath))
|
||||
HttpContext.Current.Response.AddHeader("Content-Length", Archivo.Length.ToString())
|
||||
HttpContext.Current.Response.TransmitFile(filePath)
|
||||
HttpContext.Current.Response.Flush()
|
||||
HttpContext.Current.Response.End()
|
||||
|
||||
Archivo = Nothing
|
||||
End Sub
|
||||
Protected Sub BtnCambiaTitulos_Click(sender As Object, e As EventArgs)
|
||||
CargaTitulosPadre()
|
||||
End Sub
|
||||
Protected Sub LnkNuevo_Click(sender As Object, e As EventArgs)
|
||||
RegistraScript("$('#DvModalTitulos').modal();")
|
||||
ModalTitulo.Text = "Nuevo Título"
|
||||
|
||||
LimpiarCampos()
|
||||
nuevacuenta.Visible = True
|
||||
updatos.Visible = True
|
||||
updatos.Update()
|
||||
End Sub
|
||||
End Class
|
||||
354
OI/PopUpAgenda.aspx
Normal file
354
OI/PopUpAgenda.aspx
Normal file
@@ -0,0 +1,354 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PopUpAgenda.aspx.vb" Inherits="OI_PopUpAgenda" %>
|
||||
|
||||
<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
<asp:Literal ID="LtlTitulo" runat="server" Text="Agendar a "></asp:Literal> <asp:Literal ID="LtlAgenda" runat="server"></asp:Literal>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td style="vertical-align: top;">
|
||||
<table border="0px" width="100%">
|
||||
<tr id="TrAsunto" style="vertical-align: top; text-align: left;" visible="false" runat="server">
|
||||
<td class="">Asunto:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtAsunto" runat="server" MaxLength="100" ValidationGroup="Guarda" Width="375px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" ControlToValidate="TxtAsunto" Display="None" ErrorMessage="El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOAsunto" runat="server" TargetControlID="RFVAsunto" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrDescripcion" visible="false" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Descripción:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtDescripcion" runat="server" MaxLength="500" TextMode="MultiLine" Height="50px" Width="520px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfvDescripcion" runat="server" ControlToValidate="txtDescripcion" Display="None" ErrorMessage="El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoDescripcion" runat="server" TargetControlID="rfvDescripcion" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="vertical-align: top; text-align: left;" id="trDe" runat="server" visible="False">
|
||||
<td class="">De:</td>
|
||||
<td>
|
||||
<asp:Label ID="LblDe" runat="server" Text=""></asp:Label></td>
|
||||
<td>Para:</td>
|
||||
<td>
|
||||
<asp:Label ID="LblPara" runat="server" Text=""></asp:Label></td>
|
||||
</tr>
|
||||
<tr style="vertical-align: top; text-align: left;" id="trCCP" runat="server" visible="False">
|
||||
<td class="">CCP:</td>
|
||||
<td colspan="3">
|
||||
<asp:Label ID="LblCCP" runat="server" Text=""></asp:Label></td>
|
||||
</tr>
|
||||
<tr id="TrPrioridad" visible="false" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Prioridad:</td>
|
||||
<td colspan="3">
|
||||
<asp:DropDownList ID="DdlPrioridad" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 136px !important;">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Baja" Value="1" Style="color: #00CC00;"></asp:ListItem>
|
||||
<asp:ListItem Text="Media" Value="2" Style="color: #000000;"></asp:ListItem>
|
||||
<asp:ListItem Text="Alta" Value="3" Style="color: #FF0000;"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOPrio" runat="server" TargetControlID="RFVPrioridad" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrFechaInicio" visible="false" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Fecha Inicio:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtFechaInicio" runat="server" MaxLength="30" ValidationGroup="Guarda" Width="80px"></asp:TextBox>
|
||||
<asp:ImageButton runat="server" ID="ImgCalendario" ImageUrl="/imagenes/icono_calendaro.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
||||
<ajax:MaskedEditExtender ID="MEEFechaInicio" runat="server" TargetControlID="TxtFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="TxtFechaInicio" PopupButtonID="ImgCalendario" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="El campo <b>''Fecha Inicio''</b> es requerido por la aplicación, por favor ingrese una Fecha Inicio." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="El campo <b>''FechaInicio''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFfvFI" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaInicio" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOCVFI" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaInicio" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
Hora:
|
||||
<ew:TimePicker ID="TxtHoraInicio" runat="server" ControlDisplay="TextBoxImage" ImageUrl="/Imagenes/tool_timer.png" PopupWidth="100px" Width="50px" DisableTextBoxEntry="True" PopupHeight="150px" RoundUpMinutes="True" MilitaryTime="True" Culture="Spanish (Mexico)" LowerBoundTime="07:00" UpperBoundTime="20:30">
|
||||
<TimeStyle CssClass="Texto" />
|
||||
</ew:TimePicker>
|
||||
<ew:CustomValidator ID="CVHoraInicio" runat="server" ClientValidationFunction="RevisaHora" ControlToValidate="TxtHoraInicio" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></ew:CustomValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoHoraInicio" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraInicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
<asp:CompareValidator ID="CVFechas" runat="server" ControlToCompare="TxtFechaInicio" CultureInvariantValues="true" Display="Dynamic" EnableClientScript="true" ControlToValidate="TxtFechaFin" ErrorMessage="La fecha de Inicio fecha debe ser anterior a la fecha fin " Type="Date" SetFocusOnError="true" Operator="GreaterThanEqual" Text="La fecha de inicio debe ser anterior a la fecha fin"> </asp:CompareValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrFechaFin" visible="false" runat="server" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Fecha Fin:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtFechaFin" runat="server" MaxLength="30" ValidationGroup="Guarda" Width="70px"></asp:TextBox>
|
||||
<asp:ImageButton runat="server" ID="ImgCalFechaFin" ImageUrl="/imagenes/icono_calendaro.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
||||
<ajax:MaskedEditExtender ID="MEEFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaFin" TargetControlID="TxtFechaFin" PopupButtonID="ImgCalFechaFin" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="El campo <b>''Fecha Fin''</b> es requerido por la aplicación, por favor ingrese una Fecha Fin." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="El campo <b>''Fecha Fin''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaFin1" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaFin" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaFin2" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaFin" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
Hora:
|
||||
<ew:TimePicker ID="TxtHoraFin" runat="server" ControlDisplay="TextBoxImage" ImageUrl="/Imagenes/tool_timer.png" PopupWidth="100px" Width="50px" DisableTextBoxEntry="True" PopupHeight="150px" RoundUpMinutes="True" MilitaryTime="True" Culture="Spanish (Mexico)" LowerBoundTime="07:00" UpperBoundTime="20:30">
|
||||
<TimeStyle CssClass="Texto" />
|
||||
</ew:TimePicker>
|
||||
<ew:CustomValidator ID="CVHoraFin" runat="server" ClientValidationFunction="RevisaHora" ControlToValidate="TxtHoraFin" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></ew:CustomValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoHoraFin" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraFin" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrFechaRealTermino" visible="false" runat="server" style="vertical-align: top; text-align: left;">
|
||||
<td class="">Fecha Real de Término:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtFechaRealTermino" runat="server" MaxLength="30" ValidationGroup="Guarda" Width="70px"></asp:TextBox>
|
||||
<asp:ImageButton runat="server" ID="ImgCalFechaRealTermino" ImageUrl="/imagenes/icono_calendaro.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
||||
<ajax:MaskedEditExtender ID="MEEFechaRealTermino" runat="server" TargetControlID="TxtFechaRealTermino" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaRealTermino" TargetControlID="TxtFechaRealTermino" PopupButtonID="ImgCalFechaRealTermino" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<%--<asp:RequiredFieldValidator ID="RFVFechaRealTermino" runat="server" ControlToValidate="TxtFechaRealTermino" Display="None" ErrorMessage="El campo <b>''Fecha Real de Término''</b> es requerido por la aplicación, por favor ingrese una Fecha Real de Término." ValidationGroup="Guarda"></asp:RequiredFieldValidator>--%>
|
||||
<asp:CompareValidator ID="CVFechaRealTermino" runat="server" ControlToValidate="TxtFechaRealTermino" Display="None" ErrorMessage="El campo <b>''Fecha Real de Término''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<%--<ajax:ValidatorCalloutExtender ID="VCEFechaRealTermino1" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaRealTermino" Width="250px"></ajax:ValidatorCalloutExtender>--%>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaRealTermino2" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaRealTermino" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrRevision" visible="false" runat="server" style="vertical-align: top; text-align: left;">
|
||||
<td class="">Revisión:</td>
|
||||
<td colspan="3">
|
||||
<asp:DropDownList ID="DdlRevision" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 136px !important;" DataValueField="CveRevision" DataTextField="Revision">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrAgendaTipo" visible="false" runat="server" style="vertical-align: top; text-align: left;">
|
||||
<td class="">Agenda Tipo:</td>
|
||||
<td colspan="3">
|
||||
<asp:DropDownList ID="DdlAgendaTipo" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 136px !important;" DataValueField="CveAgendaTipo" DataTextField="AgendaTipo">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrTipoReferencia" visible="false" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Tipo de Referencia:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtTipoReferencia" runat="server" MaxLength="5" ValidationGroup="Guarda" Width="75px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrReferencia" visible="false" style="vertical-align: top; text-align: left;" runat="server">
|
||||
<td class="">Referencia:</td>
|
||||
<td colspan="3">
|
||||
<asp:TextBox ID="TxtReferencia" runat="server" MaxLength="50" ValidationGroup="Guarda" Width="250px"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<%--ARCHIVO--%>
|
||||
<tr id="TrArchivo" visible="false" runat="server" style="vertical-align: top; text-align: left;">
|
||||
<td class="">Archivo</td>
|
||||
<td colspan="3">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<asp:UpdatePanel ID="UPAFUL" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:TextBox ID="TxtArchivo" runat="server"></asp:TextBox>
|
||||
<asp:Button ID="BtnCargarArchivo" runat="server" ClientIDMode="Static" Style="display: none;" class="btn btn-primary" />
|
||||
<asp:Button ID="BtnEliminarImagen" runat="server" ClientIDMode="Static" Style="display: none;" class="btn btn-primary" />
|
||||
<asp:HiddenField ID="HdnCveImagen" runat="server" Value="-1" ClientIDMode="Static" />
|
||||
<asp:HiddenField ID="HdnURL" runat="server" Value="-1" ClientIDMode="Static" />
|
||||
|
||||
<%--<cc2:fileuploaderajax id="FUAImagen" runat="server" maxfiles="1" text_uploading="Guardando..." file_renameifalreadyexists="False" text_x="Ocultar" text_Add="Mostrar" text_Delete="Eliminar" />--%>
|
||||
<a id="LnkUpload" runat="server" clientidmode="Static" class="Texto thickbox" href="/Planeacion/CargarArchivo.aspx?TB_iframe=true&height=210&width=350">Cargar Archivo</a>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<ul id="myGallery" runat="server" clientidmode="Static">
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<%--USUARIO DE--%>
|
||||
<%--USUARIO PARA--%>
|
||||
<td id="TdUsuarios" runat="server" visible="false">
|
||||
|
||||
<table width="350px" border="0" cellspacing="0">
|
||||
<tr style="height: 25px" id="TrEstatus" runat="server" visible="false">
|
||||
<td> </td>
|
||||
<td>
|
||||
<asp:Label ID="LblEstatusEvento" runat="server" Text=""></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<table border="0px" cellpadding="0px" cellspacing="0px" width="350px">
|
||||
<tr>
|
||||
<td align="left" class="Titulos">Seleccione el usuario(s)</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border="1px" rules="all" style="border-collapse: collapse;" width="350px">
|
||||
<tr>
|
||||
<td align="center" class="Titulos" width="75px">Para</td>
|
||||
<td align="center" class="Titulos" width="75px">C. C. Para</td>
|
||||
<td class="Titulos">Usuario</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="DivUsr" runat="server" style="width: 350px; height: 200px; overflow-y: scroll;">
|
||||
|
||||
<asp:GridView ID="GVUsuarios" runat="server" AutoGenerateColumns="false" ShowHeader="false" Width="100%" DataKeyNames="CveUsuario,Nombre,Correo" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle HorizontalAlign="Center" Width="75px" />
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkPara" runat="server" Width="75px" />
|
||||
<ajax:MutuallyExclusiveCheckBoxExtender ID="MECBE" runat="server" TargetControlID="ChkPara" Key="Para"></ajax:MutuallyExclusiveCheckBoxExtender>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle HorizontalAlign="Center" Width="75px" />
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkCCP" runat="server" Width="75px" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlRol" runat="server" Text='<%# Eval("Rol") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="2">
|
||||
<asp:UpdatePanel ID="upGuardar" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="cmdGuardar" runat="server" Text="Guardar" ValidationGroup="Guarda" class="btn btn-primary" />
|
||||
<asp:Button ID="cmdRevision" runat="server" Text="Pendiente" Visible="False" class="btn btn-primary" />
|
||||
<asp:Button ID="cmdTerminada" runat="server" Text="Terminada" Visible="False" class="btn btn-primary" />
|
||||
<asp:Button ID="cmdRevisada" runat="server" Text="Revisada" Visible="False" class="btn btn-primary" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TdObservaciones" runat="server" visible="false">
|
||||
<td colspan="2">
|
||||
<asp:Panel ID="PnlEncObs" runat="server">
|
||||
<table border="1" style="border-collapse: collapse;" rules="all" width="980px">
|
||||
<tr class="Titulosb">
|
||||
<td align="left" colspan="4"> Observaciones <asp:Image ID="ImgAddObs" runat="server" ImageUrl="~/imagenes/add_comment.png" Style="cursor: pointer;" />
|
||||
<asp:Label ID="LblOcultaObs" runat="server"></asp:Label>
|
||||
<asp:UpdatePanel runat="server" ID="UPPObs" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div id="divObs" style="width: 465px; background-color: White; border: solid 1px black; color: Black; display: none; position: absolute;">
|
||||
<table border="0" width="465px" cellpadding="0" cellspacing="0">
|
||||
<tr class="Titulos">
|
||||
<td style="width: 460px">Observaciones:</td>
|
||||
<td style="padding-right: 4px; padding-top: 4px" valign="top">
|
||||
<img alt="" src="/imagenes/close.gif" style="cursor: pointer;" onclick="$get('divObs').style.display='none';" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> <asp:TextBox ID="TxtOBs" runat="server" TextMode="MultiLine" Rows="4" Width="450px" MaxLength="1000"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVObs" runat="server" Display="None" ControlToValidate="TxtOBs" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Observaciones''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardaBit"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEOBs" runat="server" HighlightCssClass="vco" TargetControlID="RFVObs" Width="300px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="SubirArchivo" onclick="javascript:AbrirVentana('/UploadFile.aspx?Pagina=Eventos',500,150);">Subir archivo: <img id="ImgArchivoObs" alt="Archivo" src="/Imagenes/cancel.png" style="border: 0px none white" /></a>
|
||||
<asp:CheckBox ID="ChkPublicar" runat="server" Visible="False" Text="Publicar Documento" />
|
||||
<asp:CheckBox ID="ChkRegresaraPendiente" runat="server" Visible="False" Text="Regresar a Pendiente" /></td>
|
||||
</tr>
|
||||
<tr style="height: 25px">
|
||||
<td align="center" colspan="2">
|
||||
<asp:Button ID="BtnAddObs" runat="server" Text="Aceptar" ValidationGroup="GrpGuardaBit" />
|
||||
<input id="BtnCancelObs" type="button" value="Cancelar" onclick="$get('divObs').style.display = 'none';" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
<td align="center" style="width: 30px">
|
||||
<asp:Image ID="ImgMuestraObs" runat="server" ImageUrl="/imagenes/FlechasAbajo.gif" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Panel>
|
||||
<ajax:CollapsiblePanelExtender ID="CPEObs" runat="server" TargetControlID="PnlObs" Collapsed="false" ImageControlID="ImgMuestraObs" SuppressPostBack="true" ExpandedImage="/imagenes/FlechasAbajo.gif" CollapsedImage="/imagenes/FlechasArriba.gif" CollapsedText="(Mostrar los obs...)" ExpandedText="(Oculta las obs...)" TextLabelID="LblOcultaObs" CollapseControlID="ImgMuestraObs" ExpandControlID="ImgMuestraObs" />
|
||||
<asp:Panel ID="PnlObs" runat="server">
|
||||
<asp:UpdatePanel ID="UPPDatosObs" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvObservaciones" runat="server" AutoGenerateColumns="False" Width="980px" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="FechaIng" DataFormatString="{0:d}" HeaderText="Fecha">
|
||||
<ItemStyle Width="90px" HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="Nombre" DataFormatString=" {0}" HeaderText="Usuario">
|
||||
<ItemStyle Width="220px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="Comentario" DataFormatString=" {0}" HeaderText="Observación">
|
||||
<ItemStyle Width="640px" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink ID="HplA" runat="server" Visible='<%# Eval("Archivo").ToString <> "" %>'><img src="/Imagenes/descargar.png" alt="Descargar" style="height:18px;border:0;"/></asp:HyperLink>
|
||||
<asp:ImageButton ID="ImBtnPub" ToolTip="Publicar Documento" Visible="False" ImageUrl="/Imagenes/PublicarDoc.jpg" Height="18px" runat="server" />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" Width="30px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Panel>
|
||||
<br />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script language="javascript" type="text/javascript">
|
||||
function ConvierteCapital() {
|
||||
__doPostBack('lnkNull', '');
|
||||
}
|
||||
|
||||
function RevisaTextArea() {
|
||||
var Texto = document.getElementById('TxtAsunto');
|
||||
if (Texto)
|
||||
if (Texto.value.length > 1000)
|
||||
Texto.value = Texto.value.substring(0, 999);
|
||||
}
|
||||
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function CargaArchivo(Tipo) {
|
||||
if (Tipo == "Resguardo") {
|
||||
$("#BtnCargarResguardo").click();
|
||||
}
|
||||
else if (Tipo == "Imagen") {
|
||||
$("#BtnCargarArchivo").click();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
1295
OI/PopUpAgenda.aspx.vb
Normal file
1295
OI/PopUpAgenda.aspx.vb
Normal file
File diff suppressed because it is too large
Load Diff
219
OI/RepDesarrollo.aspx
Normal file
219
OI/RepDesarrollo.aspx
Normal file
@@ -0,0 +1,219 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepDesarrollo.aspx.vb" Inherits="OI_RepDesarrollo" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" Runat="Server">
|
||||
Reporte de Desarrollos
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" Runat="Server">
|
||||
<li>
|
||||
<a href="/OI/Desarrollo.aspx"><i class="fa fa-plus"></i>Nuevo Desarrollo</a>
|
||||
</li>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" Runat="Server">
|
||||
|
||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet solid grey-cascade portlet-filter">
|
||||
<div class="portlet-title portlet-filterT smalltitle" style="min-height: 69px;">
|
||||
<div class="tools">
|
||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" Width="95px" />
|
||||
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||
</div>
|
||||
<div class="titlefiltros caption ">
|
||||
|
||||
<div class="row" style="padding-top: 10px;">
|
||||
|
||||
<label class="col-md-1 truncate" style="width:100px!important">Fecha Inicio:</label>
|
||||
<div class="col-md-2">
|
||||
<div style="display: inline-block; vertical-align: text-bottom;">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgFechaFinContrato" class="btn default" Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaFinContrato" runat="server" TargetControlID="TxtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaFinContrato" TargetControlID="TxtFechaI" PopupButtonID="ImgFechaFinContrato" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:CompareValidator ID="CVTxtFechaI" runat="server" ControlToValidate="TxtFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOTxtFechaI" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-md-1 truncate" style="width:100px!important">Fecha Fin:</label>
|
||||
<div class="col-md-2">
|
||||
<div style="display: inline-block; vertical-align: text-bottom;">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaFin" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgFechaFFinContrato" class="btn default" Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEETxtFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaFFinContrato" TargetControlID="TxtFechaFin" PopupButtonID="ImgFechaFFinContrato" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:CompareValidator ID="CVTxtFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin Contrato''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFechaFFinContrato2" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaFin" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label class="col-md-1 truncate" style="width:100px!important">Usuario:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DdlUsuario" runat="server" CssClass="select2me" DataValueField="CveUsuario" DataTextField="Nombre"></asp:DropDownList>
|
||||
</div>
|
||||
|
||||
<label class="col-md-1 truncate" style="width:100px!important">Modulo:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DdlModulo" runat="server" CssClass="select2me" DataValueField="CveModulo" DataTextField="Modulo"></asp:DropDownList>
|
||||
</div>
|
||||
|
||||
<%-- <label class="col-md-1 truncate" style="width:100px!important">Responsable:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DdlResponsable" runat="server" CssClass="select2me" DataValueField="CveUsuario" DataTextField="Nombre"></asp:DropDownList>
|
||||
</div>--%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body portlet-filter" style="display: none;">
|
||||
<div class="row">
|
||||
<label class="col-md-1 truncate" style="width:100px!important">Descripción:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:TextBox ID="TxtDescripcion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="col-md-12 rowpadding">
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
|
||||
<div class="portlet-title">
|
||||
<div class="caption">
|
||||
<i class="fa fa-laptop"></i><span class="caption-subject bold uppercase" >Desarrollo</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px; height: 25px; border-color: #89C4F4;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body">
|
||||
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvDatos" ClientIDMode="Static" DataKeyNames="CveDesarrollo,CveDesarrolloEstado,CveUsuarioAsignado,CveUsuarioPruebas,CveUsuarioResponsable" runat="server" AutoGenerateColumns="False" Width="100%" EmptyDataText="No se Encontraron registros" ToolTip="Listado de Desarrollos"
|
||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" data-freezerows="1" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
||||
<HeaderTemplate>Desarrollo</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<%--<asp:HyperLink ID="HplCodigo" runat="server" Text='<%# Eval("Desarrollo") %>' NavigateUrl='<%# Eval("CveDesarrollo", "~/OI/Desarrollo.aspx?CveDesarrollo={0}") %>'></asp:HyperLink>--%>
|
||||
<asp:Label ID="LblDesarrollo" runat="server" Text ='<%# Eval("Desarrollo") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="140">
|
||||
<HeaderTemplate>Desarrollador</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<%--<asp:HyperLink ID="HplDesarrollador" runat="server" Text='<%# Eval("UsuarioAsignado") %>' NavigateUrl='<%# Eval("CveDesarrollo", "~/OI/DesarrolloWizard.aspx?CveDesarrollo={0}") %>'></asp:HyperLink>--%>
|
||||
<asp:Label ID="LblUsuarioAsignado" runat="server" Text ='<%# Eval("UsuarioAsignado") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="140">
|
||||
<HeaderTemplate>Pruebas</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<%-- <asp:HyperLink ID="HplPruebas" runat="server" Text='<%# Eval("UsuarioPruebas") %>' NavigateUrl='<%# Eval("CveDesarrollo", "~/OI/DesarrolloWizard.aspx?CveDesarrollo={0}") %>'></asp:HyperLink>--%>
|
||||
<asp:Label ID="LblUsuarioPruebas" runat="server" Text ='<%# Eval("UsuarioPruebas") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="140">
|
||||
<HeaderTemplate>Responsable</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<%--<asp:HyperLink ID="HplResponsable" runat="server" Text='<%# Eval("UsuarioResponsable") %>' NavigateUrl='<%# Eval("CveDesarrollo", "~/OI/DesarrolloWizard.aspx?CveDesarrollo={0}") %>'></asp:HyperLink>--%>
|
||||
<asp:Label ID="LblUsuarioResponsable" runat="server" Text ='<%# Eval("UsuarioResponsable") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="80" >
|
||||
<HeaderTemplate>F Asignación</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="LblFechaAsignacion" runat="server" style="text-align:center!important" Text='<%# If(Eval("FechaAsignacion") Is Nothing, "-", Eval("FechaAsignacion", "{0:d}"))%>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
||||
<HeaderTemplate>Modulo</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlModulo" runat="server" Text='<%# Eval("Modulo") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="120">
|
||||
<HeaderTemplate>Estado</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="LblDesarrolloEstado" Font-Bold="true" Visible= '<%# If(Eval("CveDesarrolloEstado").ToString = "4", False, True) %>' runat="server" Text='<%# Eval("DesarrolloEstado") %>'></asp:Label>
|
||||
<asp:HyperLink ID="HplSubidas" Font-Bold="true" Visible= '<%# If(Eval("CveDesarrolloEstado").ToString = "4", True, False) %>' runat="server" Text='<%# Eval("DesarrolloEstado") %>' NavigateUrl= "~/OI/SubidasADS.aspx" ></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-Width="30">
|
||||
<HeaderTemplate>Estimado</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlTiempoEstimado" runat="server" Text='<%# Eval("TiempoEstimado") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-Width="30">
|
||||
<HeaderTemplate>Manual</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlManual" runat="server" Text='<%# If(Eval("Manual").ToString() = "True", "Si", "No") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Comandos" ItemStyle-Width="80" >
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:40px!important">
|
||||
<asp:LinkButton ID="LnkEditar" Width="28" runat="server" AlternateText="Editar" CausesValidation ="False" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||
</td>
|
||||
<td style="width:40px!important">
|
||||
<asp:LinkButton ID="LnkWizard" Width="28" runat="server" AlternateText="Asistente" CausesValidation="False" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-list'></i>" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" Runat="Server">
|
||||
|
||||
|
||||
</asp:Content>
|
||||
|
||||
117
OI/RepDesarrollo.aspx.vb
Normal file
117
OI/RepDesarrollo.aspx.vb
Normal file
@@ -0,0 +1,117 @@
|
||||
Option Strict On
|
||||
|
||||
Imports Extensiones
|
||||
Partial Class OI_RepDesarrollo
|
||||
Inherits ClsPaginas
|
||||
|
||||
Private Sub OI_RepDesarrollo_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
If Not Page.IsPostBack Then
|
||||
|
||||
TxtFechaFin.Text = Now.ToString("dd/MM/yyyy")
|
||||
TxtFechaI.Text = Now.AddDays(-30).ToString("dd/MM/yyyy")
|
||||
|
||||
CargaCombos()
|
||||
CargaDatos()
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub CargaCombos()
|
||||
|
||||
DdlUsuario.DataSource = GlobalDTUsuarios(-1, 2)
|
||||
DdlUsuario.DataBind()
|
||||
DdlUsuario.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
DdlUsuario.SelectedValueExist(UsuarioActual.CveUsuario)
|
||||
'DdlResponsable.DataSource = GlobalDTUsuarios(-1, 2)
|
||||
'DdlResponsable.DataBind()
|
||||
'DdlResponsable.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
|
||||
DdlModulo.DataSource = GlobalDTModulos()
|
||||
DdlModulo.DataBind()
|
||||
DdlModulo.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub CargaDatos()
|
||||
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
Dim Descripcion As String = If(TxtDescripcion.Text.Trim.Length > 0, TxtDescripcion.Text.Trim, "-1")
|
||||
If ObjDesarrollo.DesarrolloRepGet(-1, -1, -1, DdlModulo.SelectedValue.ToEntero, Descripcion, DdlUsuario.SelectedValue.ToEntero, -1, -1, TxtFechaI.Text.ToDate, TxtFechaFin.Text.ToDate) Then
|
||||
GvDatos.DataSource = ObjDesarrollo.DtResultados
|
||||
Else
|
||||
GvDatos.DataSource = Nothing
|
||||
End If
|
||||
|
||||
GvDatos.DataBind()
|
||||
ObjDesarrollo.Dispose()
|
||||
|
||||
UPDatos.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
CargaDatos()
|
||||
End Sub
|
||||
|
||||
Private Sub GvDatos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
||||
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
Dim _CveUsaurioResponsable As Integer
|
||||
Dim _CveUsaurioAsignado As Integer
|
||||
Dim _CveUsaurioPruebas As Integer
|
||||
|
||||
Dim _CveDesarrollo As Integer = e.Row.DataKey("CveDesarrollo").ToEntero
|
||||
Dim _CveDesarrolloEstado As Integer = e.Row.DataKey("CveDesarrolloEstado").ToString.ToEntero
|
||||
|
||||
Dim LnkEditar As LinkButton = e.Row.FCLinkButton("LnkEditar")
|
||||
Dim LnkWizard As LinkButton = e.Row.FCLinkButton("LnkWizard")
|
||||
|
||||
Select Case e.Row.DataKey("CveDesarrolloEstado").ToString
|
||||
Case "1"
|
||||
e.Row.FCLabel("LblDesarrolloEstado").ForeColor = System.Drawing.Color.Red
|
||||
Case "2"
|
||||
e.Row.FCLabel("LblDesarrolloEstado").ForeColor = System.Drawing.Color.Black
|
||||
Exit Select
|
||||
Case "3"
|
||||
e.Row.FCLabel("LblDesarrolloEstado").ForeColor = System.Drawing.Color.Blue
|
||||
Exit Select
|
||||
Case "5"
|
||||
e.Row.FCLabel("LblDesarrolloEstado").ForeColor = System.Drawing.Color.DarkOrange
|
||||
Exit Select
|
||||
Case "6"
|
||||
e.Row.FCLabel("LblDesarrolloEstado").ForeColor = System.Drawing.Color.Green
|
||||
Exit Select
|
||||
End Select
|
||||
|
||||
_CveUsaurioResponsable = e.Row.DataKey("CveUsuarioResponsable").ToEntero
|
||||
_CveUsaurioAsignado = e.Row.DataKey("CveUsuarioAsignado").ToEntero
|
||||
_CveUsaurioPruebas = e.Row.DataKey("CveUsuarioPruebas").ToEntero
|
||||
|
||||
LnkEditar.PostBackUrl = $"./Desarrollo.aspx?CveDesarrollo={_CveDesarrollo}"
|
||||
LnkEditar.Visible = False
|
||||
LnkWizard.PostBackUrl = $"./DesarrolloWizard.aspx?CveDesarrollo={_CveDesarrollo}"
|
||||
LnkWizard.Visible = False
|
||||
|
||||
If UsuarioActual.CveUsuario = _CveUsaurioAsignado Then
|
||||
If (_CveDesarrolloEstado > 1 And _CveDesarrolloEstado < 3) Then
|
||||
LnkWizard.Visible = True
|
||||
End If
|
||||
End If
|
||||
|
||||
If UsuarioActual.CveUsuario = _CveUsaurioPruebas Then
|
||||
If (_CveDesarrolloEstado > 1 And _CveDesarrolloEstado < 4) Then
|
||||
LnkWizard.Visible = True
|
||||
End If
|
||||
End If
|
||||
|
||||
If UsuarioActual.CveUsuario = _CveUsaurioResponsable Then
|
||||
LnkEditar.Visible = True
|
||||
If _CveDesarrolloEstado > 1 Then
|
||||
LnkWizard.Visible = True
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
End Class
|
||||
41
OI/RepDocumentos.aspx
Normal file
41
OI/RepDocumentos.aspx
Normal file
@@ -0,0 +1,41 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepDocumentos.aspx.vb" Inherits="OI_RepDocumentos" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
<asp:HyperLink ID="HplAgregar" ImageUrl="/Imagenes/BotonAgregar.gif" Height="18px" NavigateUrl="/OI/EventoDetalle.aspx?TipoEvento=4" runat="server"></asp:HyperLink>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" CssClass="table table-striped table-advance table-hover" style="margin-top:-10px; text-align:center;" GridLines="None" >
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Documentación">
|
||||
<ItemTemplate>
|
||||
<table border="0px" style="width: 990px" cellspacing="0">
|
||||
<tr>
|
||||
<td style="width: 940px">
|
||||
<asp:HyperLink ID="LblAsunto" runat="server" Font-Size="15" Font-Bold="True" Font-Underline="False" ForeColor="#0000AA" NavigateUrl='<%# Eval("CveEvento","/OI/EventoDetalle.aspx?CveEvento={0}") %>' Text='<%# Eval("Asunto") %>'></asp:HyperLink></td>
|
||||
<td style="width: 50px">
|
||||
<asp:HyperLink ID="HplA" runat="server" Visible='<%# Eval("Archivo").ToString <> "" %>'><img src="/Imagenes/descargar.png" alt="Descargar" style="height:18px;border:0;"/></asp:HyperLink></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align: left">
|
||||
<asp:Label ID="LblDescrpcion" runat="server" Text='<%# Eval("Descripcion") %>' Width="950px"></asp:Label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="990px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
</asp:Content>
|
||||
22
OI/RepDocumentos.aspx.vb
Normal file
22
OI/RepDocumentos.aspx.vb
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
Partial Class OI_RepDocumentos
|
||||
Inherits ClsPaginas
|
||||
|
||||
|
||||
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
|
||||
If Not Page.IsPostBack Then
|
||||
Dim OI As New ClsOIEventos
|
||||
|
||||
'If OI.GetEventos(-1, 4, -1, UsuarioActual.CveEmpresa, -1) Then
|
||||
' GvDatos.DataSource = OI.DtResultados
|
||||
' GvDatos.DataBind()
|
||||
'End If
|
||||
OI.Dispose()
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
123
OI/RepEventos.aspx
Normal file
123
OI/RepEventos.aspx
Normal file
@@ -0,0 +1,123 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepEventos.aspx.vb" Inherits="OI_RepEventos" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
<ajax:TabContainer ID="Tab" runat="server" ActiveTabIndex="0" Width="100%" CssClass="tabBodyOverride">
|
||||
<ajax:TabPanel ID="TabPendiente" runat="server" HeaderText="Pen">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GVP" runat="server" AutoGenerateColumns="False" Width="980px" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Fecha">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink ID="HplFecha" CssClass="Texto" runat="server" Text='<%# Bind("FechaInicio") %>'></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="100px" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="De">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink ID="HplDe" CssClass="Texto" runat="server" Text='<%# Bind("UsuarioDe")%>'></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" Width="120px" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="UsuarioPara" HeaderText="Para">
|
||||
<ItemStyle Width="120px" HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="Asunto" HeaderText="Asunto">
|
||||
<ItemStyle Width="220px" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField HeaderText="Prioridad">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="LblPrior" runat="server" Text='<%# Bind("StrPrioridad") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="60px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TabTerminados" runat="server" HeaderText="Ter">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvT" runat="server" AutoGenerateColumns="False" Width="980px" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Fecha">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink ID="HplFecha" CssClass="Texto" runat="server" Text='<%# Bind("FechaInicio") %>'></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="100px" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="De">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink ID="HplDe" CssClass="Texto" runat="server" Text='<%# Bind("UsuarioDe")%>'></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" Width="120px" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="UsuarioPara" HeaderText="Para">
|
||||
<ItemStyle Width="120px" HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="Asunto" HeaderText="Asunto">
|
||||
<ItemStyle Width="220px" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField HeaderText="Prioridad">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="LblPrior" runat="server" Text='<%# Bind("StrPrioridad") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="60px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TabRevisados" runat="server" HeaderText="Rev">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvR" runat="server" AutoGenerateColumns="False" Width="980px" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Fecha">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink ID="HplFecha" CssClass="Texto" runat="server" Text='<%# Bind("FechaInicio") %>'></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="100px" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="De">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink ID="HplDe" CssClass="Texto" runat="server" Text='<%# Bind("UsuarioDe")%>'></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" Width="120px" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="UsuarioPara" HeaderText="Para">
|
||||
<ItemStyle Width="120px" HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="Asunto" HeaderText="Asunto">
|
||||
<ItemStyle Width="220px" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField HeaderText="Prioridad">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="LblPrior" runat="server" Text='<%# Bind("StrPrioridad") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="60px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
</ajax:TabContainer>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
</asp:Content>
|
||||
47
OI/RepEventos.aspx.vb
Normal file
47
OI/RepEventos.aspx.vb
Normal file
@@ -0,0 +1,47 @@
|
||||
Imports System.Drawing
|
||||
Imports Extensiones
|
||||
Imports System.Data
|
||||
|
||||
Partial Class OI_RepEventos
|
||||
Inherits ClsPaginas
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
If Not Page.IsPostBack Then
|
||||
CargaDatos()
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub CargaDatos()
|
||||
|
||||
Dim OI As New ClsOIEventos
|
||||
Dim dt As DataTable = Nothing
|
||||
|
||||
'If OI.GetEventos(-1, 4, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1) Then
|
||||
' dt = OI.DtResultados
|
||||
'End If
|
||||
|
||||
Dim dtPendientes As DataTable = dt.FiltraParametros("CveEstatusEvento = 1")
|
||||
Dim dtTerminados As DataTable = dt.FiltraParametros("CveEstatusEvento = 2")
|
||||
Dim dtRevisados As DataTable = dt.FiltraParametros("CveEstatusEvento = 3")
|
||||
|
||||
GVP.DataSource = dtPendientes
|
||||
GVP.DataBind()
|
||||
|
||||
GvT.DataSource = dtTerminados
|
||||
GvT.DataBind()
|
||||
|
||||
GvR.DataSource = dtRevisados
|
||||
GvR.DataBind()
|
||||
|
||||
OI.Dispose()
|
||||
End Sub
|
||||
|
||||
Protected Sub GVP_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GVP.RowDataBound, GvT.RowDataBound, GvR.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
e.Row.FCHyperLink("HplFecha").NavigateUrl = "javascript:AbrirVentana('/OI/EventoDetalle.aspx?CveEvento=" & e.Row.DBCampo("CveEvento") & "', 900, 500, 'N')"
|
||||
e.Row.FCHyperLink("HplDe").NavigateUrl = "javascript:AbrirVentana('/OI/EventoDetalle.aspx?CveEvento=" & e.Row.DBCampo("CveEvento") & "', 900, 500, 'N')"
|
||||
e.Row.FCLabel("LblPrior").ForeColor = If(e.Row.DBCampo("Prioridad") = "1", ColorTranslator.FromHtml("#00CC00"), If(e.Row.DBCampo("Prioridad") = "3", ColorTranslator.FromHtml("#FF0000"), Color.Black))
|
||||
End If
|
||||
End Sub
|
||||
End Class
|
||||
177
OI/RepMinutas.aspx
Normal file
177
OI/RepMinutas.aspx
Normal file
@@ -0,0 +1,177 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepMinutas.aspx.vb" Inherits="OI_RepMinutas" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
<li>
|
||||
<asp:HyperLink runat="server" NavigateUrl="/OI/Minutas.aspx"><i class="fa fa-plus"></i>Crear Minuta</asp:HyperLink>
|
||||
</li>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
Reporte de Minutas
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet solid grey-cascade portlet-filter">
|
||||
<div class="portlet-title portlet-filterT smalltitle magindate">
|
||||
<div class="tools">
|
||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" />
|
||||
</div>
|
||||
<div class="titlefiltros caption ">
|
||||
<ul class="list-inline text-size-12">
|
||||
<li>Fecha Inicio:</li>
|
||||
<li style="margin-right: 30px">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10" Height="24px"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgFechaI" class="btn default " Text="<i class='fa fa-calendar'></i>" Height="24px" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="TxtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaI" TargetControlID="TxtFechaI" PopupButtonID="ImgFechaI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaI" runat="server" ControlToValidate="TxtFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaI''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaI" runat="server" ControlToValidate="TxtFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaI''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFechaI1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFechaI2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</li>
|
||||
<li>Fecha Fin:</li>
|
||||
<li style="margin-right: 30px">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaF" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10" Height="24px"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgFechaF" class="btn default " Text="<i class='fa fa-calendar'></i>" Height="24px" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="TxtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaF" TargetControlID="TxtFechaF" PopupButtonID="ImgFechaF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaF" runat="server" ControlToValidate="TxtFechaF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaF''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaF" runat="server" ControlToValidate="TxtFechaF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaF''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFechaF1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFechaF2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</li>
|
||||
<li>Estatus:</li>
|
||||
<li>
|
||||
<asp:DropDownList ID="DdlEventoEstatus" runat="server" AppendDataBoundItems="true" DataTextField="EventoEstatus" DataValueField="CveEventoEstatus" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 140px !important;" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Con Pendientes" Value="0"></asp:ListItem>
|
||||
<asp:ListItem Text="Terminadas" Value="1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body" id="DivResponsable" style="display: none;">
|
||||
<ul class="list-inline text-size-12">
|
||||
<li>Transportista Encargado/Responsable:</li>
|
||||
<li>
|
||||
<asp:DropDownList ID="DdlResponsable" runat="server" DataTextField="Nombre" DataValueField="CveUsuario" CssClass="form-control input-sm" Style="width: 200px !important;"></asp:DropDownList>
|
||||
</li>
|
||||
<li>Almacen Transitorio:</li>
|
||||
<li>
|
||||
<asp:DropDownList ID="DdlAlmacenTransitorio" runat="server" DataTextField="Almacen" DataValueField="CveAlmacen" CssClass="form-control input-sm" Style="width: 150px !important;"></asp:DropDownList>
|
||||
<%-- <asp:RequiredFieldValidator ID="RFVAlmacenTransitorio" runat="server" ControlToValidate="DdlAlmacenTransitorio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Almacen Transitorio''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEAlmacenTransitorio" runat="server" HighlightCssClass="vco" TargetControlID="RFVAlmacenTransitorio" Width="350px"></ajax:ValidatorCalloutExtender>--%>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<br />
|
||||
|
||||
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<table style="width: 100%;" class="table table-striped table-advance table-hover">
|
||||
<thead>
|
||||
<tr class="Titulos">
|
||||
<th width="90px">
|
||||
<asp:LinkButton ID="LbFechaInicio" runat="server" CausesValidation="False" Text="" CommandArgument="FechaInicio" OnClick="LbOrden_Click">
|
||||
Fecha
|
||||
<asp:Literal ID="ImgFechaInicio" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th width="200px">
|
||||
<asp:LinkButton ID="LbAsunto" runat="server" CausesValidation="False" Text="" CommandArgument="Asunto" OnClick="LbOrden_Click">
|
||||
Asunto
|
||||
<asp:Literal ID="ImgAsunto" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th>
|
||||
<asp:LinkButton ID="LbDescripcion" runat="server" CausesValidation="False" Enabled="false" Text="" CommandArgument="Descripcion" OnClick="LbOrden_Click">
|
||||
Descripción
|
||||
<asp:Literal ID="ImgDescripcion" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th width="150px">
|
||||
<asp:LinkButton ID="LbUsuariosCCP" runat="server" CausesValidation="False" Text="" CommandArgument="UsuariosCCP" OnClick="LbOrden_Click">
|
||||
Participantes
|
||||
<asp:Literal ID="ImgUsuariosCCP" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th width="80px">
|
||||
<asp:LinkButton ID="LbTareas" runat="server" CausesValidation="False" Text="" CommandArgument="TareasTotal" OnClick="LbOrden_Click">
|
||||
Tareas
|
||||
<asp:Literal ID="ImgTareasTotal" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th width="80px">
|
||||
<asp:LinkButton ID="LbAgendas" runat="server" CausesValidation="False" Text="" CommandArgument="AgendasTotal" OnClick="LbOrden_Click">
|
||||
Agendas
|
||||
<asp:Literal ID="ImgAgendasTotal" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
</table>
|
||||
<asp:GridView ID="GvDatosOIMinutas" Width="100%" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="false" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFechaInicio" runat="server" Text='<%# Eval("FechaInicio", "{0:dd/MM/yyyy}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="90px" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlAsunto" runat="server" Text='<%# Eval("Asunto")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="200px" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Left(Eval("Descripcion").ToString,150)%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Left" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuariosCCP" runat="server" Text='<%# Eval("UsuariosCCP")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="150px" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlTareasTerminadas" runat="server" Text='<%# Eval("TareasTerminadas")%>'></asp:Literal>
|
||||
/
|
||||
<asp:Literal ID="LtlTareasTotal" runat="server" Text='<%# Eval("TareasTotal")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="80px" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlAgendasTerminadas" runat="server" Text='<%# Eval("AgendasTerminadas")%>'></asp:Literal>
|
||||
/
|
||||
<asp:Literal ID="LtlAgendasTotal" runat="server" Text='<%# Eval("AgendasTotal")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="80px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
</asp:Content>
|
||||
103
OI/RepMinutas.aspx.vb
Normal file
103
OI/RepMinutas.aspx.vb
Normal file
@@ -0,0 +1,103 @@
|
||||
Option Explicit On
|
||||
Option Strict On
|
||||
|
||||
Imports System.Data
|
||||
Imports Extensiones
|
||||
|
||||
Partial Class OI_RepMinutas
|
||||
Inherits ClsPaginas
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
If Not Page.IsPostBack Then
|
||||
'ORDEN ASIGNADAS
|
||||
ViewState("Orden") = ""
|
||||
|
||||
CargaFiltros()
|
||||
CargaDatosOIMinutas()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub CargaFiltros()
|
||||
txtFechaI.Text = New Date(Now.Year, Now.Month, 1).ToShortDateString
|
||||
txtFechaF.Text = Now.ToShortDateString
|
||||
End Sub
|
||||
Public Sub CargaDatosOIMinutas()
|
||||
Dim ObjProspectos As New ClsOIEventos
|
||||
|
||||
Dim FechaI, FechaF As DateTime
|
||||
Dim CveEventoEstatus As Integer
|
||||
FechaI = txtFechaI.Text.ToDate
|
||||
FechaF = txtFechaF.Text.ToDate
|
||||
If DdlEventoEstatus.SelectedValue > "0" Then CveEventoEstatus = DdlEventoEstatus.SelectedValue.ToEntero Else CveEventoEstatus = -1
|
||||
|
||||
If ObjProspectos.GetRepEventos(-1, 5, -1, "-1", "-1", -1, -1, -1, -1, -1, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FechaI, FechaF) Then
|
||||
ViewState("DTOIMinutas") = ObjProspectos.DtResultados
|
||||
End If
|
||||
|
||||
ObjProspectos.Dispose()
|
||||
|
||||
If ViewState("Orden").ToString() <> String.Empty Then
|
||||
CargaGridOIMinutas(ViewState("Orden").ToString())
|
||||
Else
|
||||
CargaGridOIMinutas("")
|
||||
End If
|
||||
|
||||
UPDatos.Update()
|
||||
End Sub
|
||||
|
||||
Protected Sub GvDatosOIMinutas_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatosOIMinutas.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
'e.Row.Cells(0).Width = Unit.Pixel(100) 'FechaInicio
|
||||
'e.Row.Cells(1).Width = Unit.Pixel(200) 'Asunto
|
||||
'e.Row.Cells(2).Width = Unit.Pixel(550) 'Descripcion
|
||||
'e.Row.Cells(3).Width = Unit.Pixel(70) 'TareasTotal
|
||||
|
||||
e.Row.FCLiteral("LtlFechaInicio").Text = String.Format("<a class=""Texto"" href=""/OI/Minutas.aspx?CveEvento={0}"">{1}</a>", e.Row.DBCampo("CveEvento"), e.Row.DBCampo("FechaInicio").ToDateTime.ToString("dd/MM/yyyy"))
|
||||
e.Row.FCLiteral("LtlAsunto").Text = String.Format("<a class=""Texto"" href=""/OI/Minutas.aspx?CveEvento={0}"">{1}</a>", e.Row.DBCampo("CveEvento"), e.Row.DBCampo("Asunto"))
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#Region "O R D E N A M I E N T O"
|
||||
Protected Sub LbOrden_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||
Dim Orden As String = ""
|
||||
Dim Campo As String = ""
|
||||
Dim Literal As Literal = Nothing
|
||||
Const OrdenInicial As String = ""
|
||||
Dim Arg(2) As String
|
||||
|
||||
Arg = CType(sender, LinkButton).CommandArgument().ToString.Split(";"c)
|
||||
Campo = Arg(0)
|
||||
Literal = CType(CType(sender, LinkButton).NamingContainer.FindControl("Img" & Campo.Replace(",", "_")), Literal)
|
||||
|
||||
If ViewState(String.Format("O{0}", Campo)) IsNot Nothing AndAlso ViewState(String.Format("O{0}", Campo)).ToString = String.Format("{0} DESC", Campo) Then
|
||||
ViewState(String.Format("O{0}", Campo)) = String.Format("{0} ASC", Campo)
|
||||
Literal.Text = String.Format("<i class='fa fa-sort-asc' style='color:#999' ></i>")
|
||||
Else
|
||||
ViewState(String.Format("O{0}", Campo)) = String.Format("{0} DESC", Campo)
|
||||
Literal.Text = String.Format("<i class='fa fa-sort-desc' style='color:#999' ></i>")
|
||||
End If
|
||||
Orden = OrdenInicial & ViewState(String.Format("O{0}", Campo)).ToString
|
||||
ViewState("Orden") = Orden
|
||||
CargaGridOIMinutas(Orden)
|
||||
End Sub
|
||||
|
||||
Private Sub CargaGridOIMinutas(Orden As String)
|
||||
If Orden <> String.Empty Then
|
||||
Dim DV As New DataView(CType(ViewState("DTOIMinutas"), DataTable), "", Orden, DataViewRowState.CurrentRows)
|
||||
GvDatosOIMinutas.DataSource = DV.ToTable()
|
||||
DV.Dispose()
|
||||
Else
|
||||
GvDatosOIMinutas.DataSource = CType(ViewState("DTOIMinutas"), DataTable)
|
||||
End If
|
||||
GvDatosOIMinutas.DataBind()
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
CargaDatosOIMinutas()
|
||||
UPDatos.Update()
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
End Class
|
||||
167
OI/RepNormatividad.aspx
Normal file
167
OI/RepNormatividad.aspx
Normal file
@@ -0,0 +1,167 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="RepNormatividad.aspx.cs" Inherits="OI_RepNormatividad" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
#treeviewarbolmiarbol, .catcuentascontarbol .catcuentasarbol {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btnOculto {
|
||||
display: none;
|
||||
}
|
||||
|
||||
ul.treeviewarbol li > div {
|
||||
display: inline-block;
|
||||
min-height:16px;
|
||||
}
|
||||
|
||||
#listviewbuscar {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.aradd {
|
||||
margin-left: 15px;
|
||||
background-color: #1caf9a;
|
||||
filter: hue-rotate(300deg);
|
||||
color: #ffffff;
|
||||
font-weight: 300;
|
||||
padding: 2px 7px 3px 8px;
|
||||
text-align: center;
|
||||
height: 15px;
|
||||
border-radius: 18px !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.aradd::before {
|
||||
font: normal normal normal 14px/1 FontAwesome;
|
||||
font-size: 9px !important;
|
||||
content: "\f040";
|
||||
display: none;
|
||||
}
|
||||
|
||||
.aradd::after {
|
||||
font: normal normal normal 14px/1 FontAwesome;
|
||||
font-size: 9px !important;
|
||||
content: "\f063";
|
||||
}
|
||||
|
||||
.aredit {
|
||||
margin-left: 15px;
|
||||
background-color: #E87E04;
|
||||
color: #ffffff;
|
||||
font-weight: 300;
|
||||
padding: 2px 7px 3px 8px;
|
||||
text-align: center;
|
||||
height: 15px;
|
||||
border-radius: 18px !important;
|
||||
vertical-align: middle;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.aredit::before {
|
||||
font: normal normal normal 14px/1 FontAwesome;
|
||||
font-size: 9px !important;
|
||||
content: "\f040";
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
Reporte de Normatividad
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel ID="updatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="catcuentascontarbol" style="width: 100%;">
|
||||
<%-- <div class="catcuentasarbol" style="height:500%">--%>
|
||||
<div id="treeviewarbolmiarbol" style="text-align: right">
|
||||
<ADS:Arbol runat="server" ID="ArbolCuentas" Style="text-align: left;" Onaddclick="aradd_Click"></ADS:Arbol>
|
||||
</div>
|
||||
<%-- </div>--%>
|
||||
</div>
|
||||
<asp:Button ID="BtnDownload" OnClick="BtnDownload_Click" ClientIDMode="Static" Style="display: none;" runat="server" />
|
||||
|
||||
</ContentTemplate>
|
||||
|
||||
<Triggers>
|
||||
<asp:PostBackTrigger ControlID="BtnDownload" />
|
||||
</Triggers>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>
|
||||
|
||||
function buscararbolito(inputid, ulid) {
|
||||
|
||||
var texto = $("input#" + inputid).val();
|
||||
if ((texto == '') && ($('ul#' + ulid))) {
|
||||
$('ul#' + ulid + '').removeClass("listainvicible");
|
||||
expandir();
|
||||
}
|
||||
else {
|
||||
if ($('ul#' + ulid).hasClass('listainvicible') == false) {
|
||||
$('ul#' + ulid).addClass("listainvicible");
|
||||
}
|
||||
if ($('ul#' + ulid + ' li.livisible')) {
|
||||
$('ul#' + ulid + ' li.livisible').removeClass("livisible");
|
||||
}
|
||||
if ($('ul#' + ulid + ' input:checked')) {
|
||||
$('ul#' + ulid + ' input:checked').prop('checked', false);
|
||||
}
|
||||
if ($('ul#' + ulid + ' li:contains("' + texto + '") > input[type=checkbox]')) {
|
||||
$('ul#' + ulid + ' li:contains("' + texto + '") > input[type=checkbox]').prop('checked', true);
|
||||
}
|
||||
if ($('ul#' + ulid + ' li:contains("' + texto + '")')) {
|
||||
$('ul#' + ulid + ' li:contains("' + texto + '")').addClass("livisible");
|
||||
}
|
||||
if ($('ul#' + ulid + ' label:contains("' + texto + '") ~ ul li')) {
|
||||
$('ul#' + ulid + ' label:contains(""' + texto + '"") ~ ul li').addClass("livisible");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function expandir() {
|
||||
debugger;
|
||||
var lis = document.getElementById('C_ArbolCuentas_miarbol').getElementsByTagName("li");
|
||||
|
||||
for (var indice in lis) {
|
||||
var chkId = 'chk' + lis[indice].id
|
||||
|
||||
if ($get(chkId) != null) {
|
||||
document.getElementById(chkId).checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function OcultarBoton(nodo) {
|
||||
debugger;
|
||||
var lis = document.getElementById('C_ArbolCuentas_miarbol').getElementsByTagName('li');
|
||||
|
||||
for (var indice in lis) {
|
||||
var liId = '' + lis[indice].id
|
||||
|
||||
if ($get(liId) != null && nodo == liId) {
|
||||
document.getElementById('C_ArbolCuentas_miarbol').getElementsByClassName("aradd")[indice].style.display = 'none';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
jQuery(document).ready(function () {
|
||||
Sys.Application.add_load(function (s, e) {
|
||||
buscararbolito('C_ArbolCuentas_Abuscar', 'C_ArbolCuentas_miarbol')
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
158
OI/RepNormatividad.aspx.cs
Normal file
158
OI/RepNormatividad.aspx.cs
Normal file
@@ -0,0 +1,158 @@
|
||||
using System;
|
||||
using System.Activities;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.HtmlControls;
|
||||
|
||||
using Extensiones;
|
||||
|
||||
public partial class OI_RepNormatividad : ClsPaginas
|
||||
{
|
||||
|
||||
|
||||
#region "Propiedades"
|
||||
private int IDSelected
|
||||
{
|
||||
get
|
||||
{
|
||||
return ViewState["IDSelected"].ToEntero();
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
ViewState["IDSelected"] = value;
|
||||
}
|
||||
}
|
||||
private String ruta
|
||||
{
|
||||
get
|
||||
{
|
||||
return ViewState["ruta"].ToString();
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
ViewState["ruta"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public DataTable DtDatos { get; private set; }
|
||||
#endregion
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
CargaDatos();
|
||||
|
||||
if (DtDatos.Rows.Count == 0)
|
||||
{
|
||||
ClsOIEventos ObjOIEventos = new ClsOIEventos();
|
||||
|
||||
if (ObjOIEventos.AddEventoNormatividad("PADRE", "PADRE DE TODOS", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, "".ToEntero()))
|
||||
{
|
||||
if (ObjOIEventos.GetEventoNormatividad(UsuarioActual.CveEmpresa))
|
||||
{
|
||||
IDSelected = ObjOIEventos.DtResultados.Rows[0]["CveEvento"].ToString().ToEntero();
|
||||
ObjOIEventos.AddEventoNormatividad("Título 1", "", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, IDSelected);
|
||||
}
|
||||
}
|
||||
ObjOIEventos.Dispose();
|
||||
CargaDatos();
|
||||
}
|
||||
RegistraScript(String.Format("expandir();"));
|
||||
|
||||
//Control btnAdd = ArbolCuentas.FindControl(String.Format("285595"));
|
||||
|
||||
//List<Control> list = GetListControls(btnAdd);
|
||||
|
||||
// Control c = list[2];
|
||||
// LinkButton lbAdd = (LinkButton)btnAdd.FindControl(c.ID);
|
||||
// lbAdd.Visible = false;
|
||||
|
||||
}
|
||||
}
|
||||
public List<Control> GetListControls(Control ctrl)
|
||||
{
|
||||
List<Control> list = new List<Control>();
|
||||
|
||||
foreach (Control item in ctrl.Controls)
|
||||
{
|
||||
list.Add(item);
|
||||
|
||||
if (item.Controls.Count > 0)
|
||||
list.AddRange(GetListControls(item));
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
private DataTable getNodospadreHijos(int nodo)
|
||||
{
|
||||
return DtDatos.FiltraParametros(String.Format("CveEvento = {0}", nodo));
|
||||
}
|
||||
protected void CargaDatos()
|
||||
{
|
||||
ClsOIEventos ObjOIEventos = new ClsOIEventos();
|
||||
if (ObjOIEventos.GetEventoNormatividad(UsuarioActual.CveEmpresa))
|
||||
{
|
||||
DtDatos = ObjOIEventos.DtResultados.FiltraParametros("", "CveEvento");
|
||||
DtDatos.Columns.Add("tdOcultar");
|
||||
|
||||
foreach(DataRow dr in DtDatos.Rows)
|
||||
{
|
||||
dr["tdOcultar"] = (dr["Archivo"].ToString().Length > 0 ? "" : "btnOculto");
|
||||
}
|
||||
DtDatos.AcceptChanges();
|
||||
}
|
||||
|
||||
ArbolCuentas.DataSource = DtDatos;
|
||||
ArbolCuentas.nivel = "CtaInicial";
|
||||
ArbolCuentas.nodoid = "CveEvento";
|
||||
ArbolCuentas.padre = "CveEventoPadre";
|
||||
ArbolCuentas.titulo = "Asunto";
|
||||
// ArbolCuentas.CssClassAdd = "tdOcultar";
|
||||
updatos.Update();
|
||||
|
||||
ObjOIEventos.Dispose();
|
||||
}
|
||||
|
||||
protected void aradd_Click(object sender, EventArgs e)
|
||||
{
|
||||
//RegistraScript("OcultarBoton('285584');");
|
||||
ADServerControl.DragableItem obj = (ADServerControl.DragableItem)sender;
|
||||
IDSelected = obj.Cve;
|
||||
CargaDatos();
|
||||
DataTable dt = getNodospadreHijos(IDSelected);
|
||||
ruta = UsuarioActual.Empresa.Ruta + String.Format("OI\\\\{0}", dt.Rows[0]["Archivo"].ToString());
|
||||
if (System.IO.File.Exists(ruta))
|
||||
{
|
||||
RegistraScript("$get('BtnDownload').click();");
|
||||
//Alert("archivo.", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert("No se encontró archivo.", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
}
|
||||
}
|
||||
|
||||
protected void BtnDownload_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
System.IO.FileInfo archivo = new System.IO.FileInfo(ruta);
|
||||
|
||||
HttpContext.Current.Response.Clear();
|
||||
HttpContext.Current.Response.ClearContent();
|
||||
HttpContext.Current.Response.ContentType = "application/octet-stream";
|
||||
HttpContext.Current.Response.AppendHeader("Content-disposition", "attachment; filename=" + System.IO.Path.GetFileName(ruta));
|
||||
HttpContext.Current.Response.AddHeader("Content-Length", archivo.Length.ToString());
|
||||
HttpContext.Current.Response.TransmitFile(ruta);
|
||||
HttpContext.Current.Response.Flush();
|
||||
HttpContext.Current.Response.End();
|
||||
|
||||
archivo = new System.IO.FileInfo("");
|
||||
}
|
||||
}
|
||||
259
OI/RepSoporteADS.aspx
Normal file
259
OI/RepSoporteADS.aspx
Normal file
@@ -0,0 +1,259 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepSoporteADS.aspx.vb" Inherits="OI_RepSoporteADS" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
|
||||
<style>
|
||||
.tooltip {
|
||||
position: fixed !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
<li>
|
||||
<a href="/OI/SoporteADS.aspx?CveTipoEvento=9"><i class="fa fa-plus"></i>Nuevo Soporte</a>
|
||||
</li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LinkPDF" runat="server"> <i class="fa fa-ad-pdf"></i> Imprimir</asp:LinkButton>
|
||||
</li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-ad-excel"></i> Exportar Excel</asp:LinkButton>
|
||||
</li>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
Reporte Soporte
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<table style="width: 100%; border: 0; border-spacing: 0;">
|
||||
<tr class="SubTotales3">
|
||||
<td>Fecha Inicio:</td>
|
||||
<td>
|
||||
<div class="input-group input-small date date-picker" data-date-format="dd/mm/yyyy">
|
||||
<asp:TextBox ID="txtFechaI" runat="server" CssClass="form-control"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="imgCalendario" runat="server" class="btn default"><i class="fa fa-calendar"></i></asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" ErrorTooltipEnabled="True"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
<td>Fecha Fin:
|
||||
</td>
|
||||
<td>
|
||||
<div class="input-group input-small date date-picker" data-date-format="dd/mm/yyyy">
|
||||
<asp:TextBox ID="txtFechaF" runat="server" CssClass="form-control"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="imgCalendarioF" runat="server" class="btn default"><i class="fa fa-calendar"></i></asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="txtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario2" TargetControlID="txtFechaF" PopupButtonID="imgCalendarioF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
<td>Estatus:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlEventoEstatus" runat="server" AppendDataBoundItems="true" DataTextField="EventoEstatus" DataValueField="CveEventoEstatus" Class=" select2me table-group-action-input form-control input-inline input-small input-sm" Style="width: 150px !important;" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
<td>Revisión:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlRevision" runat="server" AppendDataBoundItems="true" DataTextField="Revision" DataValueField="CveRevision" Class=" select2me table-group-action-input form-control input-inline input-small input-sm" Style="width: 150px !important;" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Sin Revisión" Value="-2"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
<td>Asignado:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlUsuarios" runat="server" AppendDataBoundItems="true" DataTextField="Nombre" DataValueField="CveUsuario" Class="select2me table-group-action-input form-control input-inline input-small input-sm" Style="width: 150px !important;" ValidationGroup="GrpGuardar">
|
||||
</asp:DropDownList>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-default" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="BtnEscritorio" runat="server" Text="Escritorio" class="btn btn-default" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<asp:Timer runat="server" ID="TimmerRefresh" Interval="300000" OnTick="TimmerRefresh_Tick"></asp:Timer>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<br />
|
||||
|
||||
<div>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="right">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<code>
|
||||
<asp:Literal Text="" runat="server" ID="LtActualizado" />
|
||||
</code>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title font-green">
|
||||
<div class=" green font-green">
|
||||
<i class="fa fa-thumb-tack green" ></i><span class="caption-subject bold uppercase" > Soportes</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
<input type="text" id="TxtBusqueda1" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda1','{0}')", GvDatosOIEventosTareasAsignaron.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda1','{0}')", GvDatosOIEventosTareasAsignaron.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
|
||||
<div class="text-right">
|
||||
|
||||
</div>
|
||||
|
||||
<asp:UpdatePanel ID="UPDatosOIEventosTareasAsignaron" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:GridView ID="GvDatosOIEventosTareasAsignaron" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
data-freezerows="1"
|
||||
GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-Width="40" HeaderText="Folio" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFolio" runat="server" Text='<%# Eval("Folio")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="200" HeaderText="Para" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuarioPara" runat="server" Text='<%# Eval("UsuarioPara")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="200" HeaderText="De" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuarioDe" runat="server" Text='<%# Eval("UsuarioDe")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="200" HeaderText="Asunto" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlAsunto" runat="server" Text='<%# Eval("Asunto")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="150" HeaderText="Comentario" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlComentario" runat="server" Text='<%# Eval("Comentario")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="80" HeaderText="Prioridad" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlPrioridad" runat="server" Text='<%# Eval("Prioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="50" HeaderText="Orden" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlOrden" runat="server" Text='<%# Eval("Prioridad", "{0:N0}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="150" HeaderText="revision" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlRevision" runat="server" Text='<%# Eval("Revision")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="80" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:dd/MM/yyyy}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="80" HeaderText="Estatus" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEventoEstatus" runat="server" Text='<%# Eval("EventoEstatus")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="100" Visible="true" HeaderText="Empresa" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEmpresa" runat="server" Text='<%# Eval("EmpresaSop")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<style type="text/css">
|
||||
.Row {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
background-color: #F5F7F8;
|
||||
opacity: .9;
|
||||
filter: alpha(opacity=90);
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function Previo(CveEvento) {
|
||||
$get('hdnCveEvento').value = CveEvento;
|
||||
$get('btnPrevio').click();
|
||||
|
||||
}
|
||||
function settamaños() {
|
||||
var tamaño = $(window).height() - 350;
|
||||
$('#<%= UPDatosOIEventosTareasAsignaron.ClientID() %>').css({ "max-height": tamaño+"px"});
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
settamaños();
|
||||
});
|
||||
|
||||
Sys.Application.add_load(function (s, e) {
|
||||
$(document).ready(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
});
|
||||
settamaños();
|
||||
});
|
||||
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
257
OI/RepSoporteADS.aspx.vb
Normal file
257
OI/RepSoporteADS.aspx.vb
Normal file
@@ -0,0 +1,257 @@
|
||||
Imports System.Data
|
||||
Imports Extensiones
|
||||
Imports System.Linq
|
||||
Imports Microsoft.Reporting.WebForms
|
||||
|
||||
Partial Class OI_RepSoporteADS
|
||||
Inherits ClsPaginas
|
||||
|
||||
#Region "PROPIEDADES - AC NEW"
|
||||
Private Property TipoReporte As Integer
|
||||
Get
|
||||
Return CType(ViewState("TipoReporte"), Integer)
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
ViewState("TipoReporte") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property DTOIEventosTareas As DataTable
|
||||
Get
|
||||
Return CType(ViewState("DTOIEventosTareas"), DataTable)
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
ViewState("DTOIEventosTareas") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property DTOIEventosTareasCCP As DataTable
|
||||
Get
|
||||
Return CType(ViewState("DTOIEventosTareasCCP"), DataTable)
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
ViewState("DTOIEventosTareasCCP") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property DTOIEventosTareasAsigne As DataTable
|
||||
Get
|
||||
Return CType(ViewState("DTOIEventosTareasAsigne"), DataTable)
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
ViewState("DTOIEventosTareasAsigne") = value
|
||||
End Set
|
||||
End Property
|
||||
#End Region
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
If Not Page.IsPostBack Then
|
||||
|
||||
If UsuarioActual.CveRol = 1 Then
|
||||
'ThEmpresa.Visible = True
|
||||
GvDatosOIEventosTareasAsignaron.Columns(9).Visible = True
|
||||
End If
|
||||
|
||||
'ORDEN ASIGNADAS
|
||||
ViewState("Orden0") = ""
|
||||
ViewState("Orden1") = ""
|
||||
ViewState("Orden2") = ""
|
||||
|
||||
'DOCUMENTACION
|
||||
' 1 = ESCRITORIO
|
||||
' -1 = NORMAL
|
||||
TipoReporte = 1
|
||||
|
||||
CargaFiltros()
|
||||
|
||||
CargaDatosOIEventosTareasAsignaron()
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub CargaFiltros()
|
||||
txtFechaI.Text = New Date(Now.Year, Now.Month, 1).ToShortDateString
|
||||
txtFechaF.Text = Now.ToShortDateString
|
||||
CargarEventoEstatus()
|
||||
CargaRevisiones()
|
||||
CargaUsuarios()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaUsuarios()
|
||||
DdlUsuarios.DataSource = GlobalDTUsuarios.FiltraParametros("CveEmpresa = 2 ")
|
||||
DdlUsuarios.DataBind()
|
||||
DdlUsuarios.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
End Sub
|
||||
|
||||
Private Sub CargarEventoEstatus()
|
||||
DdlEventoEstatus.DataSource = GlobalDTOIEstatusEventos
|
||||
DdlEventoEstatus.DataBind()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaRevisiones()
|
||||
Dim ObjRevisiones As New ClsOIEventos
|
||||
|
||||
If ObjRevisiones.GetRevisionesUsuario(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||
DdlRevision.DataSource = ObjRevisiones.DtResultados
|
||||
Else
|
||||
Alert("Ocurrió un error al obtener las Revisiones del Usuario", TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
ObjRevisiones.Dispose()
|
||||
DdlRevision.DataBind()
|
||||
End Sub
|
||||
|
||||
|
||||
Public Sub CargaDatosOIEventosTareasAsignaron()
|
||||
Dim ObjProspectos As New ClsOIEventos
|
||||
|
||||
Dim FechaI, FechaF As DateTime
|
||||
Dim CveEventoEstatus As Integer
|
||||
|
||||
FechaI = txtFechaI.Text.ToDate
|
||||
FechaF = txtFechaF.Text.ToDate
|
||||
|
||||
If DdlEventoEstatus.SelectedValue > "0" Then CveEventoEstatus = DdlEventoEstatus.SelectedValue.ToEntero Else CveEventoEstatus = -1
|
||||
|
||||
If ObjProspectos.GetRepEventos(-1, -1, -1, "-1", "-1", -1, -1, -1, CveEventoEstatus, DdlRevision.SelectedValue.ToEntero, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, -1, FechaI, FechaF, TipoReporte:=TipoReporte) Then
|
||||
DTOIEventosTareas = ObjProspectos.DtResultados.FiltraParametros(" CveTipoEvento IN ( 9)")
|
||||
|
||||
If DdlUsuarios.SelectedIndex > 0 Then
|
||||
DTOIEventosTareas = DTOIEventosTareas.FiltraParametros(" CveUsuarioPara = " & DdlUsuarios.SelectedValue.ToEntero)
|
||||
|
||||
End If
|
||||
|
||||
'BURBUJITAS - BADGE
|
||||
'If DTOIEventosTareas.FiltraParametros("EventoEstatus = 'Pendiente'").Rows.Count > 0 Then
|
||||
' LtBurbujitaAsignaronPendientes.Text = String.Format("<span Class='badge badge-danger' data-toggle='tooltip' data-placement='bottom' title='Pendientes'>{0}</span>", DTOIEventosTareas.FiltraParametros("EventoEstatus = 'Pendiente'").Rows.Count)
|
||||
'Else
|
||||
' LtBurbujitaAsignaronPendientes.Text = ""
|
||||
'End If
|
||||
|
||||
'If DTOIEventosTareas.FiltraParametros("EventoEstatus = 'Atendiendo'").Rows.Count > 0 Then
|
||||
' LtBurbujitaAsignaronAtendiendo.Text = String.Format("<span class='badge badge-success' data-toggle='tooltip' data-placement='bottom' title='Atendiendo'>{0}</span>", DTOIEventosTareas.FiltraParametros("EventoEstatus = 'Atendiendo'").Rows.Count)
|
||||
'Else
|
||||
' LtBurbujitaAsignaronAtendiendo.Text = ""
|
||||
'End If
|
||||
|
||||
Else
|
||||
Alert("Ocurrió un Error al consultar las tareas. Por favor vuelva a intentar.", TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
ObjProspectos.Dispose()
|
||||
|
||||
|
||||
If ViewState("Orden0").ToString() <> String.Empty Or TipoReporte = -1 Then
|
||||
CargaGridOIEventosTareasAsignaron(ViewState("Orden0").ToString())
|
||||
Else
|
||||
CargaGridOIEventosTareasAsignaron("")
|
||||
End If
|
||||
|
||||
UPDatosOIEventosTareasAsignaron.Update()
|
||||
End Sub
|
||||
Private Sub CargaGridOIEventosTareasAsignaron(Orden As String)
|
||||
If Orden <> String.Empty Then
|
||||
Dim DV As New DataView(DTOIEventosTareas, "", Orden, DataViewRowState.CurrentRows)
|
||||
GvDatosOIEventosTareasAsignaron.DataSource = DV.ToTable()
|
||||
DV.Dispose()
|
||||
Else
|
||||
GvDatosOIEventosTareasAsignaron.DataSource = DTOIEventosTareas
|
||||
End If
|
||||
GvDatosOIEventosTareasAsignaron.DataBind()
|
||||
End Sub
|
||||
Protected Sub GvDatosOIEventosTareasAsignaron_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatosOIEventosTareasAsignaron.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
e.Row.FCLiteral("LtlUsuarioPara").Text = String.Format("<a Class=""Texto"" href=""/OI/SoporteADS.aspx?CveTipoEvento={0}&CveEvento={1}&CveEmpresa={3}"">{2}</a>", e.Row.DBCampo("CveTipoEvento"), e.Row.DBCampo("CveEvento"), e.Row.DBCampo("UsuarioPara"), e.Row.DBCampo("CveEmpresa"))
|
||||
e.Row.FCLiteral("LtlUsuarioDe").Text = String.Format("<a Class=""Texto"" href=""/OI/SoporteADS.aspx?CveTipoEvento={0}&CveEvento={1}&CveEmpresa={3}"">{2}</a>", e.Row.DBCampo("CveTipoEvento"), e.Row.DBCampo("CveEvento"), e.Row.DBCampo("UsuarioDe"), e.Row.DBCampo("CveEmpresa"))
|
||||
e.Row.FCLiteral("LtlAsunto").Text = String.Format("<a Class=""Texto"" href=""/OI/SoporteADS.aspx?CveTipoEvento={0}&CveEvento={1}&CveEmpresa={3}"">{2}</a>", e.Row.DBCampo("CveTipoEvento"), e.Row.DBCampo("CveEvento"), e.Row.DBCampo("Asunto"), e.Row.DBCampo("CveEmpresa"))
|
||||
|
||||
e.Row.Attributes.Add("onclick", String.Format("Previo({0});", e.Row.DBCampo("CveEvento")))
|
||||
e.Row.Attributes.Add("onmouseover", "this.style.background='silver';this.style.cursor='pointer';")
|
||||
e.Row.Attributes.Add("onmouseout", "this.style.background='white';this.style.cursor='default'")
|
||||
' "<a class=""Texto"" href=""/AC/ProgramaOperativo.aspx?CveProgramaOperativo=" & e.Row.DBCampo("CveProgramaOperativo") & """>" & e.Row.DBCampo("Clave") & "</a>"
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#Region " CARGA DATOS "
|
||||
|
||||
Protected Sub TimmerRefresh_Tick(sender As Object, e As EventArgs)
|
||||
TipoReporte = 1
|
||||
CargaDatos()
|
||||
TipoReporte = -1
|
||||
LtActualizado.Text = String.Format("Actualizado: {0}", Now.ToString("H:mm:ss - dd MMMM"))
|
||||
UPFiltros.Update()
|
||||
End Sub
|
||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
TipoReporte = -1
|
||||
CargaDatos()
|
||||
TipoReporte = -1
|
||||
LtActualizado.Text = String.Format("Actualizado: {0}", Now.ToString("H:mm:ss - dd MMMM"))
|
||||
UPFiltros.Update()
|
||||
End Sub
|
||||
Protected Sub BtnEscritorio_Click(sender As Object, e As EventArgs) Handles BtnEscritorio.Click
|
||||
TipoReporte = 1
|
||||
CargaDatos()
|
||||
TipoReporte = -1
|
||||
LtActualizado.Text = String.Format("Actualizado: {0}", Now.ToString("H:mm:ss - dd MMMM"))
|
||||
UPFiltros.Update()
|
||||
End Sub
|
||||
Private Sub CargaDatos()
|
||||
CargaDatosOIEventosTareasAsignaron()
|
||||
|
||||
UPDatosOIEventosTareasAsignaron.Update()
|
||||
Me.RegistraScript("UpperBound = " & GvDatosOIEventosTareasAsignaron.Rows.Count - 1 & ";")
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
#Region "I M P R I M I R P D F/Excel"
|
||||
|
||||
Private Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click
|
||||
GenerarPDF("Excel")
|
||||
End Sub
|
||||
Private Sub LinkPDF_Click(sender As Object, e As EventArgs) Handles LinkPDF.Click
|
||||
GenerarPDF()
|
||||
End Sub
|
||||
|
||||
Private Sub GenerarPDF(Optional Formato As String = "PDF")
|
||||
Dim ObjTareas As New ClsOIEventos
|
||||
|
||||
Dim params As New List(Of ReportParameter)
|
||||
|
||||
|
||||
|
||||
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
|
||||
|
||||
Dim FechaI, FechaF As String
|
||||
FechaI = If(txtFechaI.Text = "" Or txtFechaI.Text = "__/__/____", "-1", txtFechaI.Text)
|
||||
FechaF = If(txtFechaF.Text = "" Or txtFechaF.Text = "__/__/____", "-1", txtFechaF.Text)
|
||||
|
||||
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
||||
params.Add(New ReportParameter("FechaInicio", FechaI))
|
||||
params.Add(New ReportParameter("FechaFin", FechaF))
|
||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||
params.Add(New ReportParameter("FechaImpresion", Now.ToDateTime.ToShortDateString))
|
||||
|
||||
If Imagen.Exists Then
|
||||
params.Add(New ReportParameter("LogoPath", logouri))
|
||||
Else
|
||||
params.Add(New ReportParameter("LogoPath", ""))
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ImprimirPDF("Empresas\Grales\Formatos\RepSoportesADS.rdlc", DTOIEventosTareas, params, "ReporteTareas", Formato:=Formato)
|
||||
|
||||
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
|
||||
End Class
|
||||
|
||||
573
OI/RepTareas.aspx
Normal file
573
OI/RepTareas.aspx
Normal file
@@ -0,0 +1,573 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepTareas.aspx.vb" Inherits="OI_RepTareas" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
|
||||
<style>
|
||||
.tooltip {
|
||||
position: fixed !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
<li>
|
||||
<a href="/OI/EventoDetalle.aspx?CveTipoEvento=1"><i class="fa fa-plus"></i>Nueva Tarea</a>
|
||||
</li>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
Reporte de Tareas
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<table style="width: 100%; border: 0; border-spacing: 0;">
|
||||
<tr class="SubTotales3">
|
||||
<td>Fecha Inicio:</td>
|
||||
<td>
|
||||
<div class="input-group input-small date date-picker" data-date-format="dd/mm/yyyy">
|
||||
<asp:TextBox ID="txtFechaI" runat="server" CssClass="form-control"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="imgCalendario" runat="server" class="btn default"><i class="fa fa-calendar"></i></asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" ErrorTooltipEnabled="True"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
<td>Fecha Fin:
|
||||
</td>
|
||||
<td>
|
||||
<div class="input-group input-small date date-picker" data-date-format="dd/mm/yyyy">
|
||||
<asp:TextBox ID="txtFechaF" runat="server" CssClass="form-control"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="imgCalendarioF" runat="server" class="btn default"><i class="fa fa-calendar"></i></asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="txtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario2" TargetControlID="txtFechaF" PopupButtonID="imgCalendarioF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
<td>Estatus:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlEventoEstatus" runat="server" AppendDataBoundItems="true" DataTextField="EventoEstatus" DataValueField="CveEventoEstatus" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 150px !important;" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
<td>Revisión:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlRevision" runat="server" AppendDataBoundItems="true" DataTextField="Revision" DataValueField="CveRevision" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 150px !important;" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Sin Revisión" Value="-2"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-default" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="BtnEscritorio" runat="server" Text="Escritorio" class="btn btn-default" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<asp:Timer runat="server" ID="TimmerRefresh" Interval="300000" OnTick="TimmerRefresh_Tick"></asp:Timer>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<br />
|
||||
|
||||
<div>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="right" >
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<code>
|
||||
<asp:Literal Text="" runat="server" ID="LtActualizado" />
|
||||
</code>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<ajax:TabContainer ID="Tab" runat="server" Width="100%">
|
||||
|
||||
<ajax:TabPanel ID="TabPanelAsignaron" runat="server">
|
||||
<HeaderTemplate>
|
||||
Me Asignaron
|
||||
<asp:Literal Text="" ID="LtBurbujitaAsignaronPendientes" runat="server" />
|
||||
<asp:Literal Text="" ID="LtBurbujitaAsignaronAtendiendo" runat="server" />
|
||||
</HeaderTemplate>
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="text-right">
|
||||
<input type="text" id="TxtBusqueda1" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda1','{0}')", GvDatosOIEventosTareasAsignaron.ClientID) %>" style="display: inline-block;margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda1','{0}')", GvDatosOIEventosTareasAsignaron.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info" ><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
<table class="table Widthall">
|
||||
<thead>
|
||||
<tr class="Titulos">
|
||||
<th width="40px">
|
||||
<asp:LinkButton ID="LbFolio" runat="server" CausesValidation="False" Text="" CommandArgument="Folio0;0" OnClick="LbOrden_Click">
|
||||
Folio
|
||||
<asp:Literal ID="ImgFolio0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="200px">
|
||||
<asp:LinkButton ID="LbDe" runat="server" CausesValidation="False" Text="" CommandArgument="UsuarioDe0;0" OnClick="LbOrden_Click">
|
||||
De
|
||||
<asp:Literal ID="ImgUsuarioDe0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="200px">
|
||||
<asp:LinkButton ID="LbAsunto" runat="server" CausesValidation="False" Text="" CommandArgument="Asunto0;0" OnClick="LbOrden_Click">
|
||||
Asunto
|
||||
<asp:Literal ID="ImgAsunto0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="150px">
|
||||
<asp:LinkButton ID="LbComentario" runat="server" CausesValidation="False" Text="" CommandArgument="Comentario0;0" OnClick="LbOrden_Click">
|
||||
Comentario
|
||||
<asp:Literal ID="ImgComentario0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="80px">
|
||||
<asp:LinkButton ID="LbPrioridad" runat="server" CausesValidation="False" Text="" CommandArgument="Prioridad0;0" OnClick="LbOrden_Click">
|
||||
Prioridad
|
||||
<asp:Literal ID="ImgPrioridad0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="50px">
|
||||
<asp:LinkButton ID="LbOrden" runat="server" CausesValidation="False" Text="" CommandArgument="Orden0;0" OnClick="LbOrden_Click">
|
||||
Orden
|
||||
<asp:Literal ID="ImgOrden0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="150px">
|
||||
<asp:LinkButton ID="LbRevision" runat="server" CausesValidation="False" Text="" CommandArgument="Revision0;0" OnClick="LbOrden_Click">
|
||||
Revisión
|
||||
<asp:Literal ID="ImgRevision0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="80px">
|
||||
<asp:LinkButton ID="LbFechaIng" runat="server" CausesValidation="False" Text="" CommandArgument="FechaIng0;0" OnClick="LbOrden_Click">
|
||||
Fecha
|
||||
<asp:Literal ID="ImgFechaIng0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="80px">
|
||||
<asp:LinkButton ID="LbEventoEstatus" runat="server" CausesValidation="False" Text="" CommandArgument="EventoEstatus0;0" OnClick="LbOrden_Click">
|
||||
Estatus
|
||||
<asp:Literal ID="ImgEventoEstatus0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="100px" runat="server" id="ThEmpresa" visible="false">
|
||||
<asp:LinkButton ID="LbEmpresa" runat="server" CausesValidation="False" Text="" CommandArgument="Empresa;0" OnClick="LbOrden_Click">
|
||||
Empresa
|
||||
<asp:Literal ID="ImgEmpresa0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<asp:UpdatePanel ID="UPDatosOIEventosTareasAsignaron" style="overflow-y:auto;" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvDatosOIEventosTareasAsignaron" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="false" CssClass="table table-hover Widthall" Style="margin-top: -5px; text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-Width="40">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFolio" runat="server" Text='<%# Eval("Folio")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="200">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuarioDe" runat="server" Text='<%# Eval("UsuarioDe")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="200">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlAsunto" runat="server" Text='<%# Eval("Asunto")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="150">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlComentario" runat="server" Text='<%# Eval("Comentario")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="80">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlPrioridad" runat="server" Text='<%# Eval("Prioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="50">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlOrden" runat="server" Text='<%# Eval("Orden", "{0:N0}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="150">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlRevision" runat="server" Text='<%# Eval("Revision")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="80">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:dd/MM/yyyy}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="80">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEventoEstatus" runat="server" Text='<%# Eval("EventoEstatus")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="100" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEmpresa" runat="server" Text='<%# Eval("Empresa")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
|
||||
<ajax:TabPanel ID="TabPanelCCP" runat="server">
|
||||
<HeaderTemplate>
|
||||
CCP
|
||||
<asp:Literal Text="" ID="LtBurbujitaCCPPendientes" runat="server" />
|
||||
<asp:Literal Text="" ID="LtBurbujitaCCPAtendiendo" runat="server" />
|
||||
</HeaderTemplate>
|
||||
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="text-right">
|
||||
<input type="text" id="TxtBusqueda2" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda2','{0}')", GvDatosOIEventosTareasCCP.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda2','{0}')", GvDatosOIEventosTareasCCP.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
<table class="table table-striped table-advance table-hover">
|
||||
<thead>
|
||||
<tr class="Titulos">
|
||||
<th width="40px">
|
||||
<asp:LinkButton ID="LbFolio1" runat="server" CausesValidation="False" Text="" CommandArgument="Folio1;1" OnClick="LbOrden_Click">
|
||||
Folio
|
||||
<asp:Literal ID="ImgFolio1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="150px">
|
||||
<asp:LinkButton ID="LbDe1" runat="server" CausesValidation="False" Text="De" CommandArgument="UsuarioDe1;1" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgUsuarioDe1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="150px">
|
||||
<asp:LinkButton ID="LbPara1" runat="server" CausesValidation="False" Text="Para" CommandArgument="UsuarioPara1;1" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgPara1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="150px">
|
||||
<asp:LinkButton ID="LbAsunto1" runat="server" CausesValidation="False" Text="Asunto" CommandArgument="Asunto1;1" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgAsunto1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="120px">
|
||||
<asp:LinkButton ID="LbPrioridad1" runat="server" CausesValidation="False" Text="Prioridad" CommandArgument="Prioridad1;1" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgPrioridad1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="120px">
|
||||
<asp:LinkButton ID="LbOrden1" runat="server" CausesValidation="False" Text="Orden" CommandArgument="Orden1;1" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgOrden1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="120px">
|
||||
<asp:LinkButton ID="LbRevision1" runat="server" CausesValidation="False" Text="Revisión" CommandArgument="Revision1;1" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgRevision1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="150px">
|
||||
<asp:LinkButton ID="LbFechaIng1" runat="server" CausesValidation="False" Text="Fecha" CommandArgument="FechaIng1;1" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgFechaIng1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="100px">
|
||||
<asp:LinkButton ID="LbEventoEstatus1" runat="server" CausesValidation="False" Text="Estatus" CommandArgument="EventoEstatus1;1" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgEventoEstatus1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<asp:UpdatePanel ID="UPDatosOIEventosTareasCCP" runat="server" style="overflow-y:auto;" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvDatosOIEventosTareasCCP" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="false" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-Width="40">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFolio" runat="server" Text='<%# Eval("Folio")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="150">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuarioDe" runat="server" Text='<%# Eval("UsuarioDe")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="150">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuarioPara" runat="server" Text='<%# Eval("UsuarioPara")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="150">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlAsunto" runat="server" Text='<%# Eval("Asunto")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="120">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlPrioridad" runat="server" Text='<%# Eval("Prioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="120">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlOrden" runat="server" Text='<%# Eval("Orden", "{0:N0}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="120">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlRevision" runat="server" Text='<%# Eval("Revision")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="150">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:dd/MM/yyyy}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEventoEstatus" runat="server" Text='<%# Eval("EventoEstatus")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
|
||||
<ajax:TabPanel ID="TabPanelAsigne" runat="server">
|
||||
<HeaderTemplate>
|
||||
Que Asigné
|
||||
<asp:Literal Text="" ID="LtBurbujitaAsignePendientes" runat="server" />
|
||||
<asp:Literal Text="" ID="LtBurbujitaAsigneAtendiendo" runat="server" />
|
||||
</HeaderTemplate>
|
||||
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="text-right">
|
||||
<input type="text" id="TxtBusqueda3" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda3','{0}')", GvDatosOIEventosTareasAsigne.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda3','{0}')", GvDatosOIEventosTareasAsigne.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
<table class="table table-striped table-advance table-hover">
|
||||
<thead>
|
||||
<tr class="Titulos">
|
||||
<th width="40px">
|
||||
<asp:LinkButton ID="LbFolio2" runat="server" CausesValidation="False" Text="Folio" CommandArgument="Folio2;2" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgFolio2" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th width="200px">
|
||||
<asp:LinkButton ID="LbDe2" runat="server" CausesValidation="False" Text="" CommandArgument="UsuarioPara2;2" OnClick="LbOrden_Click">
|
||||
A Quién
|
||||
<asp:Literal ID="ImgUsuarioPara2" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th width="200px">
|
||||
<asp:LinkButton ID="LbAsunto2" runat="server" CausesValidation="False" Text="" CommandArgument="Asunto2;2" OnClick="LbOrden_Click">
|
||||
Asunto
|
||||
<asp:Literal ID="ImgAsunto2" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th width="120px">
|
||||
<asp:LinkButton ID="LbPrioridad2" runat="server" CausesValidation="False" Text="" CommandArgument="Prioridad2;2" OnClick="LbOrden_Click">
|
||||
Prioridad
|
||||
<asp:Literal ID="ImgPrioridad2" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th width="120px">
|
||||
<asp:LinkButton ID="LbOrden2" runat="server" CausesValidation="False" Text="" CommandArgument="Orden2;2" OnClick="LbOrden_Click">
|
||||
Orden
|
||||
<asp:Literal ID="ImgOrden2" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th width="120px">
|
||||
<asp:LinkButton ID="LbRevision2" runat="server" CausesValidation="False" Text="" CommandArgument="Revision2;2" OnClick="LbOrden_Click">
|
||||
Revisión
|
||||
<asp:Literal ID="ImgRevision2" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th width="150px">
|
||||
<asp:LinkButton ID="LbFechaIng2" runat="server" CausesValidation="False" Text="" CommandArgument="FechaIng2;2" OnClick="LbOrden_Click">
|
||||
Fecha
|
||||
<asp:Literal ID="ImgFechaIng2" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th width="100px">
|
||||
<asp:LinkButton ID="LbEventoEstatus2" runat="server" CausesValidation="False" Text="" CommandArgument="EventoEstatus2;2" OnClick="LbOrden_Click">
|
||||
Estatus
|
||||
<asp:Literal ID="ImgEventoEstatus2" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
</table>
|
||||
|
||||
<asp:UpdatePanel ID="UPDatosOIEventosTareasAsigne" style="overflow-y:auto;" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvDatosOIEventosTareasAsigne" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" ShowHeader="false" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-Width="40">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFolio" runat="server" Text='<%# Eval("Folio")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="200">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuarioPara" runat="server" Text='<%# Eval("UsuarioPara")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="200">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlAsunto" runat="server" Text='<%# Eval("Asunto")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="120">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlPrioridad" runat="server" Text='<%# Eval("Prioridad")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="120">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlOrden" runat="server" Text='<%# Eval("Orden", "{0:N0}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="120">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlRevision" runat="server" Text='<%# Eval("Revision")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="150">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:dd/MM/yyyy}")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEventoEstatus" runat="server" Text='<%# Eval("EventoEstatus")%>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
|
||||
</ajax:TabContainer>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
<%--Comentado 24 Noviembre, paso a segundo termino--%>
|
||||
<%--<td style="width: 200px; vertical-align: top">
|
||||
<br />
|
||||
<fieldset style="width: 100%">
|
||||
<legend>Vista Previa</legend>
|
||||
<asp:UpdatePanel runat="server" ID="uppPrevio" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="btnPrevio" runat="server" Style="display: none" ClientIDMode="Static" class="btn btn-primary" />
|
||||
<asp:HiddenField ID="hdnCveEvento" runat="server" ClientIDMode="Static" />
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>Para:</td>
|
||||
<td>
|
||||
<asp:Label ID="lblUsuarioPara" runat="server"></asp:Label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>De:</td>
|
||||
<td>
|
||||
<asp:Label ID="lblUsuarioDe" runat="server"></asp:Label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Observaciones:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<asp:GridView ID="gvObservaciones" runat="server" Width="100%" AutoGenerateColumns="False" EmptyDataText="Sin Observaciones" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="FechaIng" DataFormatString="{0:d}" HeaderText="Fecha">
|
||||
<ItemStyle Width="90px" HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="NombreUsuario" DataFormatString=" {0}" HeaderText="Usuario"></asp:BoundField>
|
||||
<asp:BoundField DataField="EventoComentario" DataFormatString=" {0}" HeaderText="Observación"></asp:BoundField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</fieldset>
|
||||
</td>--%>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<style type="text/css">
|
||||
.Row {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
background-color: #F5F7F8;
|
||||
opacity: .9;
|
||||
filter: alpha(opacity=90);
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function Previo(CveEvento) {
|
||||
$get('hdnCveEvento').value = CveEvento;
|
||||
$get('btnPrevio').click();
|
||||
|
||||
}
|
||||
function settamaños() {
|
||||
var tamaño = $(window).height() - 350;
|
||||
$('#<%= UPDatosOIEventosTareasAsignaron.ClientID() %>').css({ "max-height": tamaño+"px"});
|
||||
$('#<%= UPDatosOIEventosTareasCCP.ClientID() %>').css({ "max-height": tamaño + "px" });
|
||||
$('#<%= UPDatosOIEventosTareasAsigne.ClientID() %>').css({ "max-height": tamaño + "px" });
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
settamaños();
|
||||
});
|
||||
Sys.Application.add_load(function (s, e) {
|
||||
$(document).ready(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
});
|
||||
settamaños();
|
||||
});
|
||||
|
||||
</script>
|
||||
</asp:Content>
|
||||
396
OI/RepTareas.aspx.vb
Normal file
396
OI/RepTareas.aspx.vb
Normal file
@@ -0,0 +1,396 @@
|
||||
Option Explicit On
|
||||
Option Strict On
|
||||
|
||||
Imports System.Data
|
||||
Imports Extensiones
|
||||
|
||||
Partial Class OI_RepTareas
|
||||
Inherits ClsPaginas
|
||||
|
||||
#Region "PROPIEDADES - AC NEW"
|
||||
Private Property TipoReporte As Integer
|
||||
Get
|
||||
Return CType(ViewState("TipoReporte"), Integer)
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
ViewState("TipoReporte") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property DTOIEventosTareas As DataTable
|
||||
Get
|
||||
Return CType(ViewState("DTOIEventosTareas"), DataTable)
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
ViewState("DTOIEventosTareas") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property DTOIEventosTareasCCP As DataTable
|
||||
Get
|
||||
Return CType(ViewState("DTOIEventosTareasCCP"), DataTable)
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
ViewState("DTOIEventosTareasCCP") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property DTOIEventosTareasAsigne As DataTable
|
||||
Get
|
||||
Return CType(ViewState("DTOIEventosTareasAsigne"), DataTable)
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
ViewState("DTOIEventosTareasAsigne") = value
|
||||
End Set
|
||||
End Property
|
||||
#End Region
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
If Not Page.IsPostBack Then
|
||||
|
||||
If UsuarioActual.CveRol = 1 Then
|
||||
ThEmpresa.Visible = True
|
||||
GvDatosOIEventosTareasAsignaron.Columns(9).Visible = True
|
||||
End If
|
||||
|
||||
'ORDEN ASIGNADAS
|
||||
ViewState("Orden0") = ""
|
||||
ViewState("Orden1") = ""
|
||||
ViewState("Orden2") = ""
|
||||
|
||||
'DOCUMENTACION
|
||||
' 1 = ESCRITORIO
|
||||
' -1 = NORMAL
|
||||
TipoReporte = 1
|
||||
|
||||
CargaFiltros()
|
||||
|
||||
CargaDatosOIEventosTareasAsignaron()
|
||||
CargaDatosOIEventosTareasAsigne()
|
||||
CargaDatosOIEventosTareasCCP()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub CargaFiltros()
|
||||
txtFechaI.Text = New Date(Now.Year, Now.Month, 1).ToShortDateString
|
||||
txtFechaF.Text = Now.ToShortDateString
|
||||
CargarEventoEstatus()
|
||||
CargaRevisiones()
|
||||
End Sub
|
||||
|
||||
Private Sub CargarEventoEstatus()
|
||||
DdlEventoEstatus.DataSource = GlobalDTOIEstatusEventos
|
||||
DdlEventoEstatus.DataBind()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaRevisiones()
|
||||
Dim ObjRevisiones As New ClsOIEventos
|
||||
|
||||
If ObjRevisiones.GetRevisionesUsuario(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||
DdlRevision.DataSource = ObjRevisiones.DtResultados
|
||||
Else
|
||||
Alert("Ocurrió un error al obtener las Revisiones del Usuario", TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
ObjRevisiones.Dispose()
|
||||
DdlRevision.DataBind()
|
||||
End Sub
|
||||
|
||||
|
||||
#Region "Tareas que me asignaron"
|
||||
Public Sub CargaDatosOIEventosTareasAsignaron()
|
||||
Dim ObjProspectos As New ClsOIEventos
|
||||
|
||||
Dim FechaI, FechaF As DateTime
|
||||
Dim CveEventoEstatus As Integer
|
||||
|
||||
FechaI = txtFechaI.Text.ToDate
|
||||
FechaF = txtFechaF.Text.ToDate
|
||||
|
||||
If DdlEventoEstatus.SelectedValue > "0" Then CveEventoEstatus = DdlEventoEstatus.SelectedValue.ToEntero Else CveEventoEstatus = -1
|
||||
|
||||
If ObjProspectos.GetRepEventos(-1, -1, -1, "-1", "-1", -1, -1, -1, CveEventoEstatus, DdlRevision.SelectedValue.ToEntero, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FechaI, FechaF, TipoReporte:=TipoReporte) Then
|
||||
DTOIEventosTareas = ObjProspectos.DtResultados.FiltraParametros(String.Format("CveUsuarioPara = {0} AND CveTipoEvento IN (1,3)", UsuarioActual.CveUsuario))
|
||||
|
||||
'BURBUJITAS - BADGE
|
||||
If DTOIEventosTareas.FiltraParametros("EventoEstatus = 'Pendiente'").Rows.Count > 0 Then
|
||||
LtBurbujitaAsignaronPendientes.Text = String.Format("<span Class='badge badge-danger' data-toggle='tooltip' data-placement='bottom' title='Pendientes'>{0}</span>", DTOIEventosTareas.FiltraParametros("EventoEstatus = 'Pendiente'").Rows.Count)
|
||||
Else
|
||||
LtBurbujitaAsignaronPendientes.Text = ""
|
||||
End If
|
||||
|
||||
If DTOIEventosTareas.FiltraParametros("EventoEstatus = 'Atendiendo'").Rows.Count > 0 Then
|
||||
LtBurbujitaAsignaronAtendiendo.Text = String.Format("<span class='badge badge-success' data-toggle='tooltip' data-placement='bottom' title='Atendiendo'>{0}</span>", DTOIEventosTareas.FiltraParametros("EventoEstatus = 'Atendiendo'").Rows.Count)
|
||||
Else
|
||||
LtBurbujitaAsignaronAtendiendo.Text = ""
|
||||
End If
|
||||
|
||||
Else
|
||||
Alert("Ocurrió un Error al consultar las tareas. Por favor vuelva a intentar.", TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
ObjProspectos.Dispose()
|
||||
|
||||
|
||||
If ViewState("Orden0").ToString() <> String.Empty Or TipoReporte = -1 Then
|
||||
CargaGridOIEventosTareasAsignaron(ViewState("Orden0").ToString())
|
||||
Else
|
||||
CargaGridOIEventosTareasAsignaron("")
|
||||
End If
|
||||
|
||||
UPDatosOIEventosTareasAsignaron.Update()
|
||||
End Sub
|
||||
Private Sub CargaGridOIEventosTareasAsignaron(Orden As String)
|
||||
If Orden <> String.Empty Then
|
||||
Dim DV As New DataView(DTOIEventosTareas, "", Orden, DataViewRowState.CurrentRows)
|
||||
GvDatosOIEventosTareasAsignaron.DataSource = DV.ToTable()
|
||||
DV.Dispose()
|
||||
Else
|
||||
GvDatosOIEventosTareasAsignaron.DataSource = DTOIEventosTareas
|
||||
End If
|
||||
GvDatosOIEventosTareasAsignaron.DataBind()
|
||||
End Sub
|
||||
Protected Sub GvDatosOIEventosTareasAsignaron_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatosOIEventosTareasAsignaron.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
|
||||
e.Row.FCLiteral("LtlUsuarioDe").Text = String.Format("<a Class=""Texto"" href=""/OI/EventoDetalle.aspx?CveTipoEvento={0}&CveEvento={1}"">{2}</a>", e.Row.DBCampo("CveTipoEvento"), e.Row.DBCampo("CveEvento"), e.Row.DBCampo("UsuarioDe"))
|
||||
e.Row.FCLiteral("LtlAsunto").Text = String.Format("<a Class=""Texto"" href=""/OI/EventoDetalle.aspx?CveTipoEvento={0}&CveEvento={1}"">{2}</a>", e.Row.DBCampo("CveTipoEvento"), e.Row.DBCampo("CveEvento"), e.Row.DBCampo("Asunto"))
|
||||
|
||||
e.Row.Attributes.Add("onclick", String.Format("Previo({0});", e.Row.DBCampo("CveEvento")))
|
||||
e.Row.Attributes.Add("onmouseover", "this.style.background='silver';this.style.cursor='pointer';")
|
||||
e.Row.Attributes.Add("onmouseout", "this.style.background='white';this.style.cursor='default'")
|
||||
' "<a class=""Texto"" href=""/AC/ProgramaOperativo.aspx?CveProgramaOperativo=" & e.Row.DBCampo("CveProgramaOperativo") & """>" & e.Row.DBCampo("Clave") & "</a>"
|
||||
End If
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
#Region "Tareas CCP"
|
||||
Public Sub CargaDatosOIEventosTareasCCP()
|
||||
Dim ObjProspectos As New ClsOIEventos
|
||||
|
||||
Dim FechaI, FechaF As DateTime
|
||||
Dim CveEventoEstatus As Integer
|
||||
|
||||
FechaI = txtFechaI.Text.ToDate
|
||||
FechaF = txtFechaF.Text.ToDate
|
||||
|
||||
If DdlEventoEstatus.SelectedValue > "0" Then CveEventoEstatus = DdlEventoEstatus.SelectedValue.ToEntero Else CveEventoEstatus = -1
|
||||
|
||||
If ObjProspectos.GetEventosUsuarioCCP(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 1, DdlRevision.SelectedValue.ToEntero, FechaI, FechaF, CveEventoEstatus) Then
|
||||
DTOIEventosTareasCCP = ObjProspectos.DtResultados.FiltraParametros(String.Format("CveUsuarioIng = {0} And CveTipoEvento In (1,3)", UsuarioActual.CveUsuario))
|
||||
|
||||
'BURBUJITAS - BADGE
|
||||
If DTOIEventosTareasCCP.FiltraParametros("EventoEstatus = 'Pendiente'").Rows.Count > 0 Then
|
||||
LtBurbujitaCCPPendientes.Text = String.Format("<span Class='badge badge-danger' data-toggle='tooltip' data-placement='bottom' title='Pendientes'>{0}</span>", DTOIEventosTareasCCP.FiltraParametros("EventoEstatus = 'Pendiente'").Rows.Count)
|
||||
Else
|
||||
LtBurbujitaCCPPendientes.Text = ""
|
||||
End If
|
||||
|
||||
If DTOIEventosTareasCCP.FiltraParametros("EventoEstatus = 'Atendiendo'").Rows.Count > 0 Then
|
||||
LtBurbujitaCCPAtendiendo.Text = String.Format("<span class='badge badge-success' data-toggle='tooltip' data-placement='bottom' title='Atendiendo'>{0}</span>", DTOIEventosTareasCCP.FiltraParametros("EventoEstatus = 'Atendiendo'").Rows.Count)
|
||||
Else
|
||||
LtBurbujitaCCPAtendiendo.Text = ""
|
||||
End If
|
||||
|
||||
|
||||
Else
|
||||
Alert("Ocurrió un Error al consultar las tareas. Por favor vuelva a intentar.", TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
ObjProspectos.Dispose()
|
||||
|
||||
If ViewState("Orden1").ToString() <> String.Empty Then
|
||||
CargaGridOIEventosTareasCCP(ViewState("Orden1").ToString())
|
||||
Else
|
||||
CargaGridOIEventosTareasCCP("")
|
||||
End If
|
||||
|
||||
UPDatosOIEventosTareasCCP.Update()
|
||||
End Sub
|
||||
Private Sub CargaGridOIEventosTareasCCP(Orden As String)
|
||||
If Orden <> String.Empty Then
|
||||
Dim DV As New DataView(DTOIEventosTareasCCP, "", Orden, DataViewRowState.CurrentRows)
|
||||
GvDatosOIEventosTareasCCP.DataSource = DV.ToTable()
|
||||
DV.Dispose()
|
||||
Else
|
||||
GvDatosOIEventosTareasCCP.DataSource = CType(ViewState("DTOIEventosTareasCCP"), DataTable)
|
||||
End If
|
||||
GvDatosOIEventosTareasCCP.DataBind()
|
||||
End Sub
|
||||
Protected Sub GvDatosOIEventosTareasCCP_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatosOIEventosTareasCCP.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
e.Row.FCLiteral("LtlUsuarioDe").Text = String.Format("<a class=""Texto"" href=""/OI/EventoDetalle.aspx?CveTipoEvento={0}&CveEvento={1}"">{2}</a>", e.Row.DBCampo("CveTipoEvento"), e.Row.DBCampo("CveEvento"), e.Row.DBCampo("UsuarioDe"))
|
||||
e.Row.FCLiteral("LtlUsuarioPara").Text = String.Format("<a class=""Texto"" href=""/OI/EventoDetalle.aspx?CveTipoEvento={0}&CveEvento={1}"">{2}</a>", e.Row.DBCampo("CveTipoEvento"), e.Row.DBCampo("CveEvento"), e.Row.DBCampo("UsuarioDe"))
|
||||
e.Row.FCLiteral("LtlAsunto").Text = String.Format("<a class=""Texto"" href=""/OI/EventoDetalle.aspx?CveTipoEvento={0}&CveEvento={1}"">{2}</a>", e.Row.DBCampo("CveTipoEvento"), e.Row.DBCampo("CveEvento"), e.Row.DBCampo("Asunto"))
|
||||
|
||||
e.Row.Attributes.Add("onclick", String.Format("Previo({0});", e.Row.DBCampo("CveEvento")))
|
||||
e.Row.Attributes.Add("onmouseover", "this.style.background='silver';this.style.cursor='pointer';")
|
||||
e.Row.Attributes.Add("onmouseout", "this.style.background='white';this.style.cursor='default'")
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
#Region " Tareas que Asigné"
|
||||
Public Sub CargaDatosOIEventosTareasAsigne()
|
||||
Dim ObjProspectos As New ClsOIEventos
|
||||
|
||||
Dim FechaI, FechaF As DateTime
|
||||
Dim CveEventoEstatus As Integer
|
||||
|
||||
FechaI = txtFechaI.Text.ToDate
|
||||
FechaF = txtFechaF.Text.ToDate
|
||||
|
||||
If DdlEventoEstatus.SelectedValue > "0" Then CveEventoEstatus = DdlEventoEstatus.SelectedValue.ToEntero Else CveEventoEstatus = -1
|
||||
|
||||
If ObjProspectos.GetRepEventos(-1, -1, -1, "-1", "-1", -1, -1, -1, CveEventoEstatus, DdlRevision.SelectedValue.ToEntero, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FechaI, FechaF, TipoReporte:=TipoReporte) Then
|
||||
DTOIEventosTareasAsigne = ObjProspectos.DtResultados.FiltraParametros(String.Format("CveUsuarioIng = {0} And CveTipoEvento In (1,3)", UsuarioActual.CveUsuario))
|
||||
|
||||
'BURBUJITAS - BADGE
|
||||
If DTOIEventosTareasAsigne.FiltraParametros("EventoEstatus = 'Pendiente'").Rows.Count > 0 Then
|
||||
LtBurbujitaAsignePendientes.Text = String.Format("<span Class='badge badge-danger' data-toggle='tooltip' data-placement='bottom' title='Pendientes'>{0}</span>", DTOIEventosTareasAsigne.FiltraParametros("EventoEstatus = 'Pendiente'").Rows.Count)
|
||||
Else
|
||||
LtBurbujitaAsignePendientes.Text = ""
|
||||
End If
|
||||
|
||||
If DTOIEventosTareasAsigne.FiltraParametros("EventoEstatus = 'Atendiendo'").Rows.Count > 0 Then
|
||||
LtBurbujitaAsigneAtendiendo.Text = String.Format("<span class='badge badge-success' data-toggle='tooltip' data-placement='bottom' title='Atendiendo'>{0}</span>", DTOIEventosTareasAsigne.FiltraParametros("EventoEstatus = 'Atendiendo'").Rows.Count)
|
||||
Else
|
||||
LtBurbujitaAsigneAtendiendo.Text = ""
|
||||
End If
|
||||
|
||||
Else
|
||||
Alert("Ocurrió un Error al consultar las tareas. Por favor vuelva a intentar.", TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
ObjProspectos.Dispose()
|
||||
|
||||
If ViewState("Orden2").ToString() <> String.Empty Or TipoReporte = -1 Then
|
||||
CargaGridOIEventosTareasAsigne(ViewState("Orden2").ToString())
|
||||
Else
|
||||
CargaGridOIEventosTareasAsigne("")
|
||||
End If
|
||||
|
||||
UPDatosOIEventosTareasAsigne.Update()
|
||||
End Sub
|
||||
Private Sub CargaGridOIEventosTareasAsigne(Orden As String)
|
||||
If Orden <> String.Empty Then
|
||||
Dim DV As New DataView(DTOIEventosTareasAsigne, "", Orden, DataViewRowState.CurrentRows)
|
||||
GvDatosOIEventosTareasAsigne.DataSource = DV.ToTable()
|
||||
DV.Dispose()
|
||||
Else
|
||||
GvDatosOIEventosTareasAsigne.DataSource = CType(ViewState("DTOIEventosTareasAsigne"), DataTable)
|
||||
End If
|
||||
GvDatosOIEventosTareasAsigne.DataBind()
|
||||
End Sub
|
||||
Protected Sub GvDatosOIEventosTareasAsigne_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatosOIEventosTareasAsigne.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
e.Row.FCLiteral("LtlUsuarioPara").Text = String.Format("<a class=""Texto"" href=""/OI/EventoDetalle.aspx?CveTipoEvento={0}&CveEvento={1}"">{2}</a>", e.Row.DBCampo("CveTipoEvento"), e.Row.DBCampo("CveEvento"), e.Row.DBCampo("UsuarioPara"))
|
||||
e.Row.FCLiteral("LtlAsunto").Text = String.Format("<a class=""Texto"" href=""/OI/EventoDetalle.aspx?CveTipoEvento={0}&CveEvento={1}"">{2}</a>", e.Row.DBCampo("CveTipoEvento"), e.Row.DBCampo("CveEvento"), e.Row.DBCampo("Asunto"))
|
||||
|
||||
e.Row.Attributes.Add("onclick", String.Format("Previo({0});", e.Row.DBCampo("CveEvento")))
|
||||
e.Row.Attributes.Add("onmouseover", "this.style.background='silver';this.style.cursor='pointer';")
|
||||
e.Row.Attributes.Add("onmouseout", "this.style.background='white';this.style.cursor='default'")
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
#Region " CARGA DATOS "
|
||||
Protected Sub TimmerRefresh_Tick(sender As Object, e As EventArgs)
|
||||
TipoReporte = 1
|
||||
CargaDatos()
|
||||
TipoReporte = -1
|
||||
LtActualizado.Text = String.Format("Actualizado: {0}", Now.ToString("H:mm:ss - dd MMMM"))
|
||||
UPFiltros.Update()
|
||||
End Sub
|
||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
TipoReporte = -1
|
||||
CargaDatos()
|
||||
TipoReporte = -1
|
||||
LtActualizado.Text = String.Format("Actualizado: {0}", Now.ToString("H:mm:ss - dd MMMM"))
|
||||
UPFiltros.Update()
|
||||
End Sub
|
||||
Protected Sub BtnEscritorio_Click(sender As Object, e As EventArgs) Handles BtnEscritorio.Click
|
||||
TipoReporte = 1
|
||||
CargaDatos()
|
||||
TipoReporte = -1
|
||||
LtActualizado.Text = String.Format("Actualizado: {0}", Now.ToString("H:mm:ss - dd MMMM"))
|
||||
UPFiltros.Update()
|
||||
End Sub
|
||||
Private Sub CargaDatos()
|
||||
CargaDatosOIEventosTareasAsignaron()
|
||||
CargaDatosOIEventosTareasAsigne()
|
||||
CargaDatosOIEventosTareasCCP()
|
||||
UPDatosOIEventosTareasAsignaron.Update()
|
||||
Me.RegistraScript("UpperBound = " & GvDatosOIEventosTareasAsignaron.Rows.Count - 1 & ";")
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
|
||||
#Region "O R D E N A M I E T O"
|
||||
Protected Sub LbOrden_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||
Dim Orden As String = ""
|
||||
Dim Campo As String = ""
|
||||
Dim gvi As Integer = 0
|
||||
Dim Literal As Literal = Nothing
|
||||
Const OrdenInicial As String = ""
|
||||
Dim Arg(2) As String
|
||||
|
||||
Arg = CType(sender, LinkButton).CommandArgument().ToString.Split(";"c)
|
||||
Campo = Arg(0)
|
||||
gvi = Arg(1).ToEntero
|
||||
Literal = CType(CType(sender, LinkButton).NamingContainer.FindControl("Img" & Campo.Replace(",", "_")), Literal)
|
||||
Campo = Campo.Substring(0, Campo.Length - 1)
|
||||
|
||||
If ViewState(String.Format("O{0}", Campo, gvi)) IsNot Nothing AndAlso ViewState(String.Format("O{0}", Campo, gvi)).ToString = String.Format("{0} DESC", Campo) Then
|
||||
ViewState(String.Format("O{0}", Campo)) = String.Format("{0} ASC", Campo)
|
||||
Literal.Text = String.Format("<i class='fa fa-sort-asc' style='color:#999' ></i>")
|
||||
Else
|
||||
ViewState(String.Format("O{0}", Campo, gvi)) = String.Format("{0} DESC", Campo)
|
||||
Literal.Text = String.Format("<i class='fa fa-sort-desc' style='color:#999' ></i>")
|
||||
End If
|
||||
Orden = OrdenInicial & ViewState(String.Format("O{0}", Campo, gvi)).ToString
|
||||
ViewState("Orden") = Orden
|
||||
CargaGrid(Orden, gvi)
|
||||
End Sub
|
||||
|
||||
Private Sub CargaGrid(Orden As String, gvi As Integer)
|
||||
If gvi = 0 Then
|
||||
ViewState("Orden0") = Orden
|
||||
CargaGridOIEventosTareasAsignaron(Orden)
|
||||
ElseIf gvi = 1 Then
|
||||
ViewState("Orden1") = Orden
|
||||
CargaGridOIEventosTareasCCP(Orden)
|
||||
ElseIf gvi = 2 Then
|
||||
ViewState("Orden2") = Orden
|
||||
CargaGridOIEventosTareasAsigne(Orden)
|
||||
End If
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
|
||||
''COMENTADO POR QUE PASO A SEGUNDO TERMINO
|
||||
'Protected Sub btnPrevio_Click(sender As Object, e As EventArgs) Handles btnPrevio.Click
|
||||
' Dim objEventos As New ClsOIEventos
|
||||
|
||||
' If objEventos.GetEventos(hdnCveEvento.Value.ToEntero, -1, -1, "-1", "-1", -1, -1, -1, -1, -1, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveEmpresa) Then
|
||||
' If objEventos.CveEvento > 0 Then
|
||||
' With objEventos
|
||||
' lblUsuarioPara.Text = .UsuarioPara
|
||||
' lblUsuarioDe.Text = .UsuarioDe
|
||||
|
||||
' .GetEventosComentarios(hdnCveEvento.Value.ToEntero)
|
||||
' gvObservaciones.DataSource = .DtResultados
|
||||
' gvObservaciones.DataBind()
|
||||
' End With
|
||||
' End If
|
||||
' End If
|
||||
|
||||
' objEventos.Dispose()
|
||||
|
||||
'End Sub
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
End Class
|
||||
732
OI/SoporteADS.aspx
Normal file
732
OI/SoporteADS.aspx
Normal file
@@ -0,0 +1,732 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="SoporteADS.aspx.vb" Inherits="OI_SoporteADS" %>
|
||||
|
||||
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="cc1" %>
|
||||
<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
|
||||
<script runat="server">
|
||||
|
||||
Protected Sub ChkSoporte_CheckedChanged(sender As Object, e As EventArgs)
|
||||
|
||||
End Sub
|
||||
</script>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
<asp:Label ID="LblTitulo" runat="server" Text=""></asp:Label>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<asp:UpdatePanel runat="server" >
|
||||
<ContentTemplate>
|
||||
<li>
|
||||
<asp:LinkButton ID="LinkImp" runat="server" Visible="false"> <i class="fa fa-ad-pdf"></i> Imprimir</asp:LinkButton>
|
||||
</li>
|
||||
</ContentTemplate>
|
||||
<Triggers>
|
||||
<asp:PostBackTrigger ControlID="LinkImp" />
|
||||
</Triggers>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:HiddenField ID="HdnTipo" runat="server" ClientIDMode="Static" />
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-8">
|
||||
|
||||
|
||||
<asp:UpdatePanel runat="server" ID="UpGeneral" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title font-green"">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-user font-green""></i><span class="caption-subject bold uppercase" >Contacto</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body rowpadding">
|
||||
<div class="row" id="DvEmpresa" runat="server" visible="true" >
|
||||
<label class="col-sm-2">Empresa:</label>
|
||||
<div class="col-sm-5 " style="text-align: left!important">
|
||||
<asp:DropDownList ID="DdlEmpresaSop" runat="server" CssClass="select2me" Width="200" DataValueField="CveEmpresa" DataTextField="Empresa" AutoPostBack="true"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfvDdlEmpresa" Enabled="false" runat="server" InitialValue="-1" ControlToValidate="DdlEmpresaSop" Display="None" ErrorMessage="El campo <b>''Empresa''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="rfvcDdlEmpresa" Enabled="false" runat="server" TargetControlID="rfvDdlEmpresa" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="DvUsuarioSop" runat="server" visible="true" >
|
||||
<label class="col-sm-2">Usuario:</label>
|
||||
<div class="col-sm-5 " style="text-align: left!important">
|
||||
<asp:DropDownList ID="DdlUsuarioSop" runat="server" AutoPostBack="true" CssClass="select2me" Width="200" DataValueField="CveUsuario" DataTextField="Nombre"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfvDdlUsuario" Enabled="false" runat="server" InitialValue="-1" ControlToValidate="DdlUsuarioSop" Display="None" ErrorMessage="El campo <b>''Usuario''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="rfvcDdlUsuario" Enabled="false" runat="server" TargetControlID="rfvDdlUsuario" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="DVPersona" runat="server" visible="true">
|
||||
<label class="col-sm-2">Persona:</label>
|
||||
<div class="col-sm-5 " style="text-align: left!important">
|
||||
<asp:TextBox ID="TxtPersona" Enabled ="true" runat="server" CssClass="form-control input-sm" MaxLength="50"> </asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfvTxtPersona" Enabled="true" runat="server" ControlToValidate="TxtPersona" Display="None" ErrorMessage="El campo <b>''Persona''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="rfvcTxtPersona" Enabled="true" runat="server" TargetControlID="rfvTxtPersona" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="DvTelefono" runat="server" visible="true">
|
||||
<label class="col-sm-2">Teléfono:</label>
|
||||
<div class="col-sm-5 " style="text-align: left!important">
|
||||
<asp:TextBox ID="TxtTelefono" runat="server" CssClass="form-control input-sm" MaxLength="15"> </asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="FilTxtTelefono" runat="server" FilterType="Numbers" InvalidChars=".-," TargetControlID="TxtTelefono" />
|
||||
<asp:RequiredFieldValidator ID="rfvTxtTelefono" Enabled="false" runat="server" ControlToValidate="TxtTelefono" Display="None" ErrorMessage="El campo <b>''Telefono''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="rfvcTxtTelefono" Enabled="false" runat="server" TargetControlID="rfvTxtTelefono" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="DvExtencion" runat="server" visible="true">
|
||||
<label class="col-sm-2">Extensión</label>
|
||||
<div class="col-sm-5 " style="text-align: left!important">
|
||||
<asp:TextBox ID="TxtExtension" runat="server" CssClass="form-control input-sm" MaxLength="6"> </asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="FilTxtExtencion" runat="server" FilterType="Numbers" InvalidChars=".-," TargetControlID="TxtExtension" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="DvEmail" runat="server" visible="true">
|
||||
<label class="col-sm-2">Email</label>
|
||||
<div class="col-sm-5 " style="text-align: left!important">
|
||||
<asp:TextBox ID="TxtEmail" runat="server" CssClass="form-control input-sm" MaxLength="50"> </asp:TextBox>
|
||||
<asp:RegularExpressionValidator ID="REVTxtEmail" Display="None" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" CssClass="help-block errorimput" ControlToValidate="TxtEmail" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo - Email''</b> no es válido, por favor ingrése uno correcto." ValidationGroup="Guarda"></asp:RegularExpressionValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="rfvceTxtEmail" Enabled="true" runat="server" TargetControlID="REVTxtEmail" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Problema</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
<div class="row" runat="server" id="RowFolio" visible="true">
|
||||
<label class="col-sm-2"># Folio/Soporte:</label>
|
||||
<div class="col-sm-10 row ">
|
||||
<asp:Label runat="server" ID="lblFolio" Font-Bold="true"></asp:Label>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-10 row " style="text-align: left!important">
|
||||
<asp:LinkButton ID="LnkLigaCve" CssClass="Texto" runat="server"></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row" id="DvMonulo" runat="server" visible="true" >
|
||||
<label class="col-sm-2">Modulo:</label>
|
||||
<div class="col-sm-10" >
|
||||
<asp:DropDownList ID="DdlModulo" CssClass="select2me" runat="server" DataValueField="CveModulo" DataTextField="Modulo" Class="table-group-action-input form-control input-inline input-small input-sm" Width="200"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfvDdlModulo" Enabled="false" runat="server" InitialValue="-1" ControlToValidate="DdlModulo" Display="None" ErrorMessage="El campo <b>''Modulo''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="rfvcDdlModulo" Enabled="false" runat="server" TargetControlID="rfvDdlModulo" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="TrAsunto" visible="false" runat="server">
|
||||
<label class="col-sm-2">Asunto:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:TextBox ID="TxtAsunto" runat="server" CssClass="form-control input-sm" MaxLength="100" ValidationGroup="Guarda"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" ControlToValidate="TxtAsunto" Display="None" ErrorMessage="El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOAsunto" runat="server" TargetControlID="RFVAsunto" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row" id="TrAgendaTipo" visible="false" runat="server">
|
||||
<label class="col-sm-2">Tipo Asunto:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:DropDownList ID="DdlAgendaTipo" runat="server" Class="form-control input-sm input-small" DataValueField="CveAgendaTipo" DataTextField="AgendaTipo">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="TrDescripcion" visible="false" runat="server">
|
||||
<label class="col-sm-2">Descripción:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:TextBox ID="TxtDescripcion" runat="server" CssClass="form-control input-sm" MaxLength="500" TextMode="MultiLine" Height="50px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfvDescripcion" runat="server" ControlToValidate="txtDescripcion" Display="None" ErrorMessage="El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoDescripcion" runat="server" TargetControlID="rfvDescripcion" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row" id="TrDatos" visible="True" runat="server">
|
||||
<label class="col-sm-2">Datos(Folio,Cve,Liga):</label>
|
||||
|
||||
<div class="col-sm-10">
|
||||
<asp:TextBox ID="TxtDatos" runat="server" CssClass="form-control input-sm" MaxLength="100" ></asp:TextBox>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="TrPrioridad" visible="false" runat="server">
|
||||
<label class="col-sm-2">Prioridad:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:DropDownList ID="DdlPrioridad" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 136px !important;">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Baja" Value="1" style="color: #00CC00;"></asp:ListItem>
|
||||
<asp:ListItem Text="Media" Value="2" style="color: #000000;"></asp:ListItem>
|
||||
<asp:ListItem Text="Alta" Value="3" style="color: #FF0000;"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOPrio" runat="server" TargetControlID="RFVPrioridad" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrRevision" visible="false" runat="server">
|
||||
<label class="col-sm-2">Revisión:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:UpdatePanel runat="server" ID="UpRevision" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:DropDownList ID="DdlRevision" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" DataValueField="CveRevision" DataTextField="Revision">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<%--<asp:Image ID="ImgAddRevision" ToolTip="Agregar Revision" OnClientClick="$get('DivRevision').style.display='';" ImageUrl="/Imagenes/Btn_Add.png" runat="server" />--%>
|
||||
<img id="ImgAddRevision" runat="server" alt="Agregar Revision" style="cursor: pointer;" src="/Imagenes/Btn_Add.png" onclick="$get('DivRevision').style.display='';" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label class="col-sm-2">Orden:</label>
|
||||
<div class="col-sm-10">
|
||||
<asp:UpdatePanel runat="server" ID="UpOrden" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:TextBox ID="TxtOrden" CssClass="form-control input-sm input-small" runat="server" />
|
||||
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtOrden" FilterType="Custom, Numbers" ValidChars="." />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrFechaInicio" visible="false" runat="server">
|
||||
<label class="col-sm-2 truncate">Fecha Inicio:</label>
|
||||
<div class="col-sm-3">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaInicio" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaInicio" runat="server" TargetControlID="TxtFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="TxtFechaInicio" PopupButtonID="ImgCalendario" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="El campo <b>''Fecha Inicio''</b> es requerido por la aplicación, por favor ingrese una Fecha Inicio." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="El campo <b>''FechaInicio''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFfvFI" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaInicio" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOCVFI" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaInicio" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-sm-1">Hora:</label>
|
||||
<div class="col-sm-3">
|
||||
<cc1:TimeSelector ID="TxtHoraInicio" runat="server" DisplaySeconds="false" DisplayButtons="false">
|
||||
</cc1:TimeSelector>
|
||||
<asp:CustomValidator ID="CVHoraInicio" runat="server" ClientValidationFunction="RevisaHora" ControlToValidate="TxtHoraInicio" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></asp:CustomValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoHoraInicio" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraInicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrFechaFin" visible="false" runat="server">
|
||||
<label class="col-sm-2 truncate">Fecha Fin:</label>
|
||||
<div class="col-sm-3">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaFin" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgCalFechaFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaFin" TargetControlID="TxtFechaFin" PopupButtonID="ImgCalFechaFin" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="El campo <b>''Fecha Fin''</b> es requerido por la aplicación, por favor ingrese una Fecha Fin." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="CVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="El campo <b>''Fecha Fin''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaFin1" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaFin" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaFin2" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaFin" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-sm-1">Hora:</label>
|
||||
<div class="col-sm-3">
|
||||
<cc1:TimeSelector ID="TxtHoraFin" runat="server" DisplaySeconds="false" DisplayButtons="false">
|
||||
</cc1:TimeSelector>
|
||||
<asp:CustomValidator ID="CVHoraFin" runat="server" ClientValidationFunction="RevisaHora" ControlToValidate="TxtHoraFin" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></asp:CustomValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoHoraFin" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraFin" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div></div>
|
||||
<div id="TrFechaRealTermino" visible="false" runat="server" class="row">
|
||||
<label class="col-sm-2 truncate">Fecha Real de Término: </label>
|
||||
<div class="col-sm-10">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaRealTermino" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgCalFechaRealTermino" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaRealTermino" runat="server" TargetControlID="TxtFechaRealTermino" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaRealTermino" TargetControlID="TxtFechaRealTermino" PopupButtonID="ImgCalFechaRealTermino" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:CompareValidator ID="CVFechaRealTermino" runat="server" ControlToValidate="TxtFechaRealTermino" Display="None" ErrorMessage="El campo <b>''Fecha Real de Término''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEFechaRealTermino2" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaRealTermino" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrTipoReferencia" visible="false" runat="server">
|
||||
<label class="col-sm-2 truncate">Tipo de Referencia: </label>
|
||||
<div class="col-sm-10">
|
||||
<asp:TextBox ID="TxtTipoReferencia" runat="server" MaxLength="5" ValidationGroup="Guarda" CssClass="form-control input-sm input-small"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="TrReferencia" visible="false" runat="server">
|
||||
<label class="col-sm-2 truncate">Referencia: </label>
|
||||
<div class="col-sm-10">
|
||||
<asp:TextBox ID="TxtReferencia" runat="server" MaxLength="50" ValidationGroup="Guarda" CssClass="form-control input-sm"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrReferenciaLiga" visible="false" runat="server">
|
||||
<div class="col-sm-10 col-sm-offset-2">
|
||||
<asp:HyperLink ID="HplReferencia" runat="server"></asp:HyperLink>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="TrArchivo" visible="false" runat="server">
|
||||
<label class="col-sm-2 truncate">Archivo </label>
|
||||
<div class="col-sm-10">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<asp:UpdatePanel ID="UPAFUL" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:TextBox ID="TxtArchivo" ClientIDMode="Static" runat="server" Width="200px"></asp:TextBox>
|
||||
<%-- <asp:HyperLink ID="ImgAddObs" Visible="true" class="Texto" data-toggle="modal" data-target="#ModalUpload" runat="server" Text=" <span style='font-weight: 700 !important;'>Archivo</span>" Style="cursor: pointer;" ToolTip="Observaciones"></asp:HyperLink>--%>
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="A1" data-toggle="modal" data-target="#ModalUpload" visible="true">
|
||||
<img id="ImgArchivo" runat="server" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" />
|
||||
</a>
|
||||
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="A2" target="_blank" visible="false">
|
||||
<img id="Img1" alt="Archivo" src="/Imagenes/descargar.png" style="width: 16px; height: 16px; border: 0px none white" />
|
||||
</a>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul id="myGallery" runat="server" clientidmode="Static">
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="DvClasificacion" runat="server" visible="true">
|
||||
<label class="col-sm-2">Clasificación</label>
|
||||
<div class="col-sm-5 " style="text-align: left!important">
|
||||
<asp:DropDownList ID="DdlClasificacion" runat="server" DataValueField="CveEmpresa" DataTextField="Nombre" CssClass="select2me" Width="200">
|
||||
<asp:ListItem Value="-1">Seleccione uno</asp:ListItem>
|
||||
<asp:ListItem Value="0">Soporte</asp:ListItem>
|
||||
<asp:ListItem Value="1">Capacitación</asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="rfvDdlClasificacion" Enabled="false" runat="server" InitialValue="-1" ControlToValidate="DdlClasificacion" Display="None" ErrorMessage="El campo <b>''Clasificación''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="rfvcDdlClasificacion" Enabled="false" runat="server" TargetControlID="rfvDdlClasificacion" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="DvDesarrollo" runat="server" visible="true">
|
||||
<label class="col-sm-2">Desarrollo:</label>
|
||||
<div class="col-sm-5 " style="text-align: left!important">
|
||||
<asp:CheckBox runat="server" ID="ChkDesarrollo" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4" id="TdUsuarios" runat="server" visible="true">
|
||||
|
||||
<div id="TrEstatus" runat="server" visible="true">
|
||||
<asp:UpdatePanel ID="uppEstatus" runat="server" UpdateMode="Conditional" class="portlet light smmallpadding bordered">
|
||||
<ContentTemplate>
|
||||
|
||||
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Estatus</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
<div class="row">
|
||||
<label class="col-sm-2">Estatus</label>
|
||||
<div class="col-sm-4" style="text-align: left; vertical-align: central;">
|
||||
<asp:DropDownList ID="DdlEventoEstatus" Visible="true" runat="server" DataValueField="CveEventoEstatus" CssClass="select2me table-group-action-input form-control input-inline input-small input-sm" Style="width: 150px !important;" DataTextField="EventoEstatus">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
<div class="col-sm-4" style="text-align: left; vertical-align: central;">
|
||||
<asp:LinkButton ID="lbCambiaEstatus" runat="server" Text="Cambia Estatus"></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label class="col-sm-2">Usuario</label>
|
||||
<div class="col-sm-4" style="text-align: left; vertical-align: central;">
|
||||
<asp:DropDownList ID="DdlUsuarios" runat="server" DataTextField="Nombre" DataValueField="CveUsuario" Class="select2me table-group-action-input form-control input-inline input-small input-sm" Style="width: 150px !important;" ValidationGroup="GrpGuardar">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<asp:UpdatePanel ID="upGuardar" style="text-align: center;" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="btnGuardar" runat="server" Text="Guardar" ValidationGroup="Guarda" class="btn btn-primary" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
<asp:UpdatePanel runat="server" ID="UPPObs" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div id="PnlEncObs" runat="server" Visible="false">
|
||||
<div id="divObs" tabindex="-1" role="dialog" style="width: 980px; background-color: White; border: solid 0px black; color: Black; display: inline;">
|
||||
<table border="1" style="border-collapse: collapse;" width="980px" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table border="1" style="border-collapse: collapse;" width="980px" cellpadding="0" cellspacing="0">
|
||||
<tr class="Titulos">
|
||||
<td style="width: 92px">Fecha:</td>
|
||||
<td style="width: 202px">Usuario:</td>
|
||||
<td>Observaciones:</td>
|
||||
<td style="width: 32px">Arch.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<asp:Label ID="lblFechaObs" runat="server"></asp:Label>
|
||||
</td>
|
||||
<td align="center">
|
||||
<asp:Label ID="lblUsuarioObs" runat="server"></asp:Label>
|
||||
</td>
|
||||
<td> <asp:TextBox ID="TxtOBs" ClientIDMode="Static" runat="server" TextMode="MultiLine" Rows="2" Width="638px" MaxLength="1000"></asp:TextBox>
|
||||
<%-- <asp:RequiredFieldValidator ID="RFVObs" runat="server" Display="None" ControlToValidate="TxtOBs" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Observaciones''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardaBit"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEOBs" runat="server" HighlightCssClass="vco" TargetControlID="RFVObs" Width="300px" />--%>
|
||||
</td>
|
||||
<td align="center">
|
||||
<asp:UpdatePanel ID="UpImgBit" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<a class="Texto" runat="server" clientidmode="Static" id="SubirArchivo" data-toggle="modal" data-target="#ModalUploadBit">
|
||||
<img id="ImgArchivoObs" runat="server" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" /></a>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="trBtnAddObs" style="display: none; text-align: center; width: 980px;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="right" style="width: 40%">
|
||||
<asp:CheckBox ID="ChkRegresaraEstatusAnterior" ClientIDMode="Static" runat="server" Text="Regresar a Pendiente" /></td>
|
||||
<td align="left" style="width: 40%">
|
||||
<asp:CheckBox ID="ChkPasarEstatusSiguiente" ClientIDMode="Static" runat="server" Text="Pasar a Revisado" /></td>
|
||||
<td align="left" style="width: 20%">
|
||||
<asp:CheckBox ID="ChkPasarEstatusCancelado" ClientIDMode="Static" runat="server" Text="CANCELAR" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="center">
|
||||
<asp:Button ID="BtnAddObs" runat="server" Text="Aceptar" ClientIDMode="Static" ValidationGroup="GrpGuardaBit" class="btn btn-primary" />
|
||||
<caption>
|
||||
<input id="BtnCancelObs" style="display: none;" type="button" value="Cancelar" onclick="$get('divObs').style.display = 'none';" class="btn btn-danger" />
|
||||
</caption>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<asp:UpdatePanel ID="UPPDatosObs" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvObservaciones" runat="server" AutoGenerateColumns="False" Width="980px" ShowHeader="false" CssClass="table table-striped table-advance table-hover" Style="text-align: center;" GridLines="None">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="FechaIng" DataFormatString="{0:d}" HeaderText="Fecha">
|
||||
<ItemStyle Width="90px" HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="NombreUsuario" DataFormatString=" {0}" HeaderText="Usuario">
|
||||
<ItemStyle Width="200px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="EventoComentario" DataFormatString=" {0}" HeaderText="Observación"></asp:BoundField>
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink Target="_blank" ID="HplA" runat="server" Visible='<%# Eval("Archivo").ToString <> "" %>'><img src="/Imagenes/descargar.png" alt="Descargar" style="height:18px;border:0;"/></asp:HyperLink>
|
||||
<asp:ImageButton ID="ImBtnPub" ToolTip="Publicar Documento" Visible="False" ImageUrl="/Imagenes/PublicarDoc.jpg" Height="18px" runat="server" />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" Width="30px" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<div id="DivRevision" runat="server" clientidmode="Static" width="500px" style="z-index: 999; border: solid 1px black; background-color: white; color: Black; display: none; position: fixed; top: 180px; left: 35%;">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr class="Titulos">
|
||||
<td width="450px" align="center">Registrar Revisión</td>
|
||||
<td style="padding-right: 0px;" valign="top">
|
||||
<img alt="" src="/imagenes/cerrarX.jpg" style="cursor: pointer;" onclick="$get('DivRevision').style.display='none';" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0">
|
||||
<tr>
|
||||
<td>Descripción</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtDescripcionRevision" Text="" Width="450px" Rows="4" TextMode="MultiLine" ClientIDMode="Static" ValidationGroup="GrpGuardar" runat="server" />
|
||||
<asp:RequiredFieldValidator ID="RFVDescripcionRevision" runat="server" ControlToValidate="TxtDescripcionRevision" InitialValue="" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEDescripcionRevision" runat="server" HighlightCssClass="vco" TargetControlID="RFVDescripcionRevision" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="2">
|
||||
<asp:Button ID="BtnAgregarRevision" runat="server" Text="Agregar" ValidationGroup="GrpGuardar" Width="100px" OnClick="BtnAgregarRevision_Click" class="btn btn-primary" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
<div id="ModalUpload" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Subir Archivo</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="UPAddEventoBitacora" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
<%--<div>
|
||||
|
||||
</div>--%>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnGuardarArchivo" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" />
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ModalUploadBit" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
|
||||
<div class="modal-content">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Subir Archivo</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<asp:TextBox ID="txtFileBit" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
<%--<div>
|
||||
|
||||
</div>--%>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="btnFileBit" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" />
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script language="javascript" type="text/javascript">
|
||||
var idConFocus = "-1";
|
||||
|
||||
function ConvierteCapital() {
|
||||
__doPostBack('lnkNull', '');
|
||||
}
|
||||
|
||||
function RevisaTextArea() {
|
||||
var Texto = document.getElementById('TxtAsunto');
|
||||
if (Texto)
|
||||
if (Texto.value.length > 1000)
|
||||
Texto.value = Texto.value.substring(0, 999);
|
||||
}
|
||||
|
||||
function MostrarOpcionesObs() {
|
||||
// $get('divObs').focus();
|
||||
$get('TxtOBs').rows = "5";
|
||||
$get('trBtnAddObs').style.display = 'inline';
|
||||
$get('trBtnAddObs').style.width = "980px";
|
||||
}
|
||||
|
||||
|
||||
document.onclick = function (e) {
|
||||
e = e || event
|
||||
var target = e.target || e.srcElement
|
||||
var elemento = document.getElementById('divObs');
|
||||
var elemento2 = document.getElementById('TxtOBs');
|
||||
|
||||
do {
|
||||
if (elemento == target || elemento2 == target) {
|
||||
MostrarOpcionesObs();
|
||||
return;
|
||||
}
|
||||
target = target.parentNode;
|
||||
} while (target)
|
||||
|
||||
OcultarOpcionesObs();
|
||||
}
|
||||
|
||||
|
||||
function OcultarOpcionesObs() {
|
||||
if (idConFocus == "ChkRegresaraEstatusAnterior" || idConFocus == "ChkPasarEstatusSiguiente" || idConFocus == "SubirArchivo") {
|
||||
//alert("Tiene el foco");
|
||||
} else {
|
||||
if ($get('TxtOBs')) $get('trBtnAddObs').rows = "2";
|
||||
if ($get('trBtnAddObs')) $get('trBtnAddObs').style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
function chkCambioEstatus(IDchkSel) {
|
||||
var chkSel = $get(IDchkSel);
|
||||
|
||||
if (chkSel.id == 'ChkRegresaraEstatusAnterior') {
|
||||
if ($get('ChkPasarEstatusSiguiente') != null) { $get('ChkPasarEstatusSiguiente').checked = false; }
|
||||
if ($get('ChkPasarEstatusCancelado') != null) { $get('ChkPasarEstatusCancelado').checked = false; }
|
||||
}
|
||||
|
||||
if (chkSel.id == 'ChkPasarEstatusSiguiente') {
|
||||
if ($get('ChkRegresaraEstatusAnterior') != null) { $get('ChkRegresaraEstatusAnterior').checked = false; }
|
||||
if ($get('ChkPasarEstatusCancelado') != null) { $get('ChkPasarEstatusCancelado').checked = false; }
|
||||
}
|
||||
|
||||
if (chkSel.id == 'ChkPasarEstatusCancelado') {
|
||||
if ($get('ChkRegresaraEstatusAnterior') != null) { $get('ChkRegresaraEstatusAnterior').checked = false; }
|
||||
if ($get('ChkPasarEstatusSiguiente') != null) { $get('ChkPasarEstatusSiguiente').checked = false; }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function CargaArchivo(Tipo) {
|
||||
|
||||
alert('dssdsd');
|
||||
if (Tipo == "Resguardo") {
|
||||
$("#BtnCargarResguardo").click();
|
||||
}
|
||||
else if (Tipo == "Imagen") {
|
||||
$("#BtnCargarArchivo").click();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<%-- <script>
|
||||
function FiltrarGV() {
|
||||
var texto = $('#filtroGVtext').val();
|
||||
$('#<%=GVUsuarios.ClientID%> > tbody > tr').css({'display':'none'});
|
||||
$("#<%=GVUsuarios.ClientID%> > tbody > tr:contains('" + texto + "')").css({ 'display': '' });
|
||||
|
||||
$('#<%=GVUsuarios.ClientID%> > tbody > tr:nth-child(1)').css({ 'display': 'none' });
|
||||
}
|
||||
</script>--%>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
2337
OI/SoporteADS.aspx.vb
Normal file
2337
OI/SoporteADS.aspx.vb
Normal file
File diff suppressed because it is too large
Load Diff
293
OI/SubidasADS.aspx
Normal file
293
OI/SubidasADS.aspx
Normal file
@@ -0,0 +1,293 @@
|
||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="SubidasADS.aspx.vb" Inherits="OI_SubidasADS" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
|
||||
<style>
|
||||
.tooltip {
|
||||
position: fixed !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||
Actualizaciones
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet solid grey-cascade portlet-filter">
|
||||
<div class="portlet-title portlet-filterT smalltitle" style="min-height: 69px;">
|
||||
<div class="tools">
|
||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" Width="95px" />
|
||||
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||
</div>
|
||||
<div class="titlefiltros caption ">
|
||||
|
||||
<div class="row" style="padding-top: 10px;">
|
||||
|
||||
<label class="col-md-1 truncate" style="width:100px!important">Fecha Inicio:</label>
|
||||
<div class="col-md-2">
|
||||
<div style="display: inline-block; vertical-align: text-bottom;">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgFechaFinContrato" class="btn default" Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaFinContrato" runat="server" TargetControlID="TxtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaFinContrato" TargetControlID="TxtFechaI" PopupButtonID="ImgFechaFinContrato" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:CompareValidator ID="CVTxtFechaI" runat="server" ControlToValidate="TxtFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOTxtFechaI" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label class="col-md-1 truncate" style="width:100px!important">Fecha Fin:</label>
|
||||
<div class="col-md-2">
|
||||
<div style="display: inline-block; vertical-align: text-bottom;">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaFin" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgFechaFFinContrato" class="btn default" Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEETxtFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEFechaFFinContrato" TargetControlID="TxtFechaFin" PopupButtonID="ImgFechaFFinContrato" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:CompareValidator ID="CVTxtFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin Contrato''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOFechaFFinContrato2" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaFin" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label class="col-md-1 truncate" style="width:100px!important">Opcion:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DdlOpcion" Width="200" runat="server" CssClass="select2me" >
|
||||
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
||||
<asp:ListItem Value="3">No Termiandos</asp:ListItem>
|
||||
<asp:ListItem Selected="True" Value="1">Pendientes</asp:ListItem>
|
||||
<asp:ListItem Value="2">Subidas</asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
|
||||
<%-- <label class="col-md-1 truncate" style="width:100px!important">Responsable:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DdlResponsable" runat="server" CssClass="select2me" DataValueField="CveUsuario" DataTextField="Nombre"></asp:DropDownList>
|
||||
</div>--%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet-body portlet-filter" style="display: none;">
|
||||
<div class="row">
|
||||
<label class="col-md-1 truncate" style="width:100px!important">Descripción:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:TextBox ID="TxtDescripcion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title font-green">
|
||||
<div class=" green font-green">
|
||||
<i class="fa fa-laptop green"></i><span class="caption-subject bold uppercase"> Actualizaciones</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
<input type="text" id="TxtBusqueda1" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda1','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda1','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
|
||||
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Label runat="server" ID="LblComprometidos"></asp:Label>
|
||||
<asp:GridView ID="GvDatos" ClientIDMode="Static" DataKeyNames="CveDesarrollo,Desarrollo,CveEvento,CveUsuarioResponsable,CveUsuarioAsignado,CveUsuarioPruebas,CveModulo,Descripcion,CveDesarrolloEstado,Manual,FechaAsignacion,TiempoEstimado,FechaTermino,CveUsuario,Actualizable"
|
||||
runat="server" AutoGenerateColumns="False" Width="100%" EmptyDataText="No se Encontraron registros" ToolTip="Listado de Desarrollos" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" data-freezerows="1" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="20">
|
||||
<HeaderTemplate></HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkComprometido" runat="server" OnClientClick="return false;" Visible ='<%# If(Eval("Comprometido").ToString = "1", True, False) %>' ><i class="fa fa-exclamation-triangle " style="color:orangered" aria-hidden="true"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="40">
|
||||
<HeaderTemplate></HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkCompletado" runat="server" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="150">
|
||||
<HeaderTemplate>Desarrollo</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink ID="HplDesarrollo" runat="server" Text='<%# Eval("Desarrollo") %>' NavigateUrl='<%# Eval("CveDesarrollo", "~/OI/Desarrollo.aspx?CveDesarrollo={0}") %>'></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="150">
|
||||
<HeaderTemplate>Modulo</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlModulo" runat="server" Text='<%# Eval("Modulo") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100">
|
||||
<HeaderTemplate>Desarrollador</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<%--<asp:Literal ID="LtlModulo" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>--%>
|
||||
<asp:HyperLink ID="HplDesarrollador" runat="server" Text='<%# Eval("Usuario") %>' NavigateUrl='<%# Eval("CveDesarrollo", "~/OI/DesarrolloWizard.aspx?CveDesarrollo={0}") %>'></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Estado" ItemStyle-Width="100px">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEstado" runat="server" Text='<%# Eval("DesarrolloEstado") %>'>></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100">
|
||||
<HeaderTemplate>FechaSubida</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<%--<asp:Literal ID="LtlModulo" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>--%>
|
||||
<asp:Label ID="LblFechaSubida" runat="server" Text='<%#If(Eval("FechaSubida").ToString = "", "-", Eval("FechaSubida", "{0:d}")) %>' ></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
||||
<HeaderTemplate> </HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlDesarrolloEstado" runat="server" Text='<%# Eval("ListaSubida") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<asp:UpdatePanel ID="UpBtnGuardar" runat="server">
|
||||
<ContentTemplate>
|
||||
<div class="Widthall" style="text-align: center!important">
|
||||
<asp:Button ID="BtnGaurdar" runat="server" Text="Guardar" CssClass=" btn btn-primary" />
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
<div id="DVMensaje" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Atención</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p id="pMensaje">Script copiado a porta papeles.</p>
|
||||
<br/>
|
||||
<textarea id="TAClip" rows="7" cols="170">
|
||||
|
||||
</textarea>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>
|
||||
|
||||
function copyToClipboard(element) {
|
||||
|
||||
$('#TAClip').val($(element).text());
|
||||
|
||||
|
||||
setTimeout(function () {
|
||||
$("#TAClip").focus();
|
||||
$("#TAClip").select();
|
||||
}, 300);
|
||||
|
||||
|
||||
var CopiaExitosa = false;
|
||||
|
||||
setTimeout(function () {
|
||||
try {
|
||||
var status = document.execCommand('copy');
|
||||
if (!status) {
|
||||
// console.error("Cannot copy text");
|
||||
errorCopiado();
|
||||
|
||||
} else {
|
||||
CopiaExitosa = true;
|
||||
//console.log("The text is now on the clipboard");
|
||||
correctoCopiado();
|
||||
}
|
||||
} catch (err) {
|
||||
console.log('Unable to copy.');
|
||||
}
|
||||
|
||||
setTimeout(function () {
|
||||
if (CopiaExitosa === false) {
|
||||
try {
|
||||
var status = document.execCommand('copy');
|
||||
if (!status) {
|
||||
console.error("Cannot copy text");
|
||||
errorCopiado();
|
||||
} else {
|
||||
CopiaExitosa = true;
|
||||
console.log("The text is now on the clipboard");
|
||||
correctoCopiado();
|
||||
}
|
||||
} catch (err) {
|
||||
console.log('Unable to copy.');
|
||||
errorCopiado();
|
||||
}
|
||||
}
|
||||
|
||||
}, 300);
|
||||
}, 300);
|
||||
|
||||
|
||||
function correctoCopiado() {
|
||||
|
||||
$('#pMensaje').text("Script copiado al porta papeles");
|
||||
$('#pMensaje').css({ 'color': 'green', 'font-size': '150%' });
|
||||
}
|
||||
|
||||
function errorCopiado() {
|
||||
|
||||
$('#pMensaje').text("error al copiar script al porta papeles");
|
||||
$('#pMensaje').css({ 'color': 'red', 'font-size': '150%' });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
170
OI/SubidasADS.aspx.vb
Normal file
170
OI/SubidasADS.aspx.vb
Normal file
@@ -0,0 +1,170 @@
|
||||
Imports System.Data
|
||||
Imports Extensiones
|
||||
Imports System.Linq
|
||||
Imports Microsoft.Reporting.WebForms
|
||||
|
||||
Imports System.Data.OleDb
|
||||
|
||||
|
||||
Partial Class OI_SubidasADS
|
||||
Inherits ClsPaginas
|
||||
|
||||
Private Property Datos As DataTable
|
||||
Get
|
||||
If ViewState("Datos") Is Nothing Then
|
||||
Return New DataTable
|
||||
Else
|
||||
Return DirectCast(ViewState("Datos"), DataTable)
|
||||
End If
|
||||
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
ViewState("Datos") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
|
||||
If Not Page.IsPostBack Then
|
||||
|
||||
TxtFechaI.Text = Now.AddDays(-30).ToString("dd/MM/yyyy")
|
||||
TxtFechaFin.Text = Now.ToString("dd/MM/yyyy")
|
||||
|
||||
If UsuarioActual.CveRol = 1 Then
|
||||
CargaDatosSubidasPendientes()
|
||||
ActualizarGV()
|
||||
End If
|
||||
|
||||
CargaDatosSubidasPendientes()
|
||||
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Public Sub CargaDatosSubidasPendientes()
|
||||
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
|
||||
If ObjDesarrollo.DesarrolloSubidaRepGet(TxtFechaI.Text.ToDate, TxtFechaFin.Text.ToDate, DdlOpcion.SelectedValue.ToEntero) Then
|
||||
Datos = ObjDesarrollo.DtResultados
|
||||
Datos.Columns.Add("ListaSubida")
|
||||
Datos.Columns.Add("Comprometido")
|
||||
Datos.AcceptChanges()
|
||||
Else
|
||||
Datos = Nothing
|
||||
End If
|
||||
|
||||
If ObjDesarrollo.DesarrolloSubidaGet(-1, -1, "-1", -1) Then
|
||||
|
||||
Dim ComprometidosEnum = From row In ObjDesarrollo.DtResultados.FiltraParametros("CveSubidaCom > 0").AsEnumerable()
|
||||
Select row.Field(Of String)("Comprometido") Distinct
|
||||
|
||||
LblComprometidos.Text = $"<strong>Comprometidos: <br/>"
|
||||
|
||||
For Each itemC In ComprometidosEnum
|
||||
LblComprometidos.Text = LblComprometidos.Text & itemC.ToString & "<br/>"
|
||||
Next
|
||||
|
||||
LblComprometidos.Text = LblComprometidos.Text & "</strong>"
|
||||
|
||||
For Each Drow As DataRow In Datos.Rows
|
||||
|
||||
Dim DTSubidas As New DataTable
|
||||
'Dim ListaSubida As String = $"<a class='texto' data-toggle='collapse' data-target='#DV{Drow("CveDesarrollo").ToString }'>Mostrar subida</a> <br> <div id='DV{Drow("CveDesarrollo").ToString }' class='collapse'> <Table class='table table-striped' style='width:100%';><thead><tr><th>Tipo</th><th>Archivo</th><th>DB</th><th>Tabla</th><th>Campo</th><th>Tipo</th><th>Relacion</th><th>Procedimiento</th><th>Script</th></tr></thead><tbody>"
|
||||
Dim ListaSubida As String = $"<a class='texto' data-toggle='collapse' data-target='#DV{Drow("CveDesarrollo").ToString }'>Mostrar subida</a> <br> <div id='DV{Drow("CveDesarrollo").ToString }' class='collapse'> <Table class='table table-striped' style='width:100%';><thead><tr><th>Tipo</th><th>Archivo</th><th>DB</th><th>Tabla</th><th>Campo</th><th>Tipo</th><th>Relacion</th><th>Procedimiento</th><th>Script</th></tr></thead><tbody>"
|
||||
DTSubidas = ObjDesarrollo.DtResultados.FiltraParametros($"CveDesarrollo = {Drow("CveDesarrollo").ToString }")
|
||||
|
||||
For Each dRow2 As DataRow In DTSubidas.Rows
|
||||
|
||||
If dRow2("CveSubidaCom").ToString.Length > 0 Then
|
||||
ListaSubida = ListaSubida & $"<tr style='background-color:#90C3D4;opacity: 0.5;'><td>{dRow2("SubidaTipo").ToString }</td><td>{dRow2("Subida").ToString}</td><td>{dRow2("DB").ToString}</td><td>{dRow2("Tabla").ToString}</td><td>{dRow2("Campo").ToString}</td><td>{dRow2("TipoDato").ToString}</td><td>{dRow2("LlaveForanea").ToString}</td><td>{dRow2("Procedimiento").ToString}</td><td> <a href='#' data-toggle='modal' data-target='#DVMensaje' onclick='copyToClipboard(""#DVC{ dRow2("CveSubida").ToString }"")' > { If(dRow2("Script").ToString.Trim.Length > 0, "<i class='fa fa-clipboard' aria-hidden='true'></i>", "") }</a> <div style='display:none' id='DVC{ dRow2("CveSubida").ToString }'>{ If(dRow2("Script").ToString.Trim.Length > 0, dRow2("Script").ToString, "") }</div></td></tr>"
|
||||
Drow("Comprometido") = "1"
|
||||
Else
|
||||
ListaSubida = ListaSubida & $"<tr><td>{dRow2("SubidaTipo").ToString }</td><td>{dRow2("Subida").ToString}</td><td>{dRow2("DB").ToString}</td><td>{dRow2("Tabla").ToString}</td><td>{dRow2("Campo").ToString}</td><td>{dRow2("TipoDato").ToString}</td><td>{dRow2("LlaveForanea").ToString}</td><td>{dRow2("Procedimiento").ToString}</td><td> <a href='#' data-toggle='modal' data-target='#DVMensaje' onclick='copyToClipboard(""#DVC{ dRow2("CveSubida").ToString }"")' > { If(dRow2("Script").ToString.Trim.Length > 0, "<i class='fa fa-clipboard' aria-hidden='true'></i>", "") }</a> <div style='display:none' id='DVC{ dRow2("CveSubida").ToString }'>{ If(dRow2("Script").ToString.Trim.Length > 0, dRow2("Script").ToString, "") }</div></td></tr>"
|
||||
|
||||
If Drow("Comprometido").ToString = "" Then
|
||||
Drow("Comprometido") = "0"
|
||||
End If
|
||||
|
||||
End If
|
||||
Next
|
||||
ListaSubida = ListaSubida & "</tbody></table></div> "
|
||||
Drow("Listasubida") = ListaSubida
|
||||
|
||||
Next
|
||||
|
||||
|
||||
End If
|
||||
|
||||
|
||||
GvDatos.DataSource = Datos
|
||||
GvDatos.DataBind()
|
||||
|
||||
UPDatos.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub ActualizarGV()
|
||||
|
||||
GvDatos.DataSource = Datos
|
||||
GvDatos.DataBind()
|
||||
UPDatos.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub BtnGaurdar_Click(sender As Object, e As EventArgs) Handles BtnGaurdar.Click
|
||||
|
||||
|
||||
Dim ObjDesarrollo As New ClsDesarrollo
|
||||
|
||||
For Each GvRow As GridViewRow In GvDatos.Rows
|
||||
|
||||
Dim ChkCompletado As CheckBox = GvRow.FCCheckBox("ChkCompletado")
|
||||
|
||||
If Not ChkCompletado Is Nothing And GvRow.DataKey("Actualizable").ToEntero = 1 Then
|
||||
If ChkCompletado.Checked Then
|
||||
|
||||
If Not ObjDesarrollo.DesarrolloAddUpdate(GvRow.DataKey("CveDesarrollo").ToEntero, GvRow.DataKey("Desarrollo"), GvRow.DataKey("CveEvento").ToEntero, GvRow.DataKey("CveUsuarioResponsable").ToEntero, GvRow.DataKey("CveUsuarioPruebas"), GvRow.DataKey("CveModulo").ToEntero, GvRow.DataKey("Descripcion"), GvRow.DataKey("CveUsuarioAsignado").ToEntero, Nothing, -1, 5, -1, UsuarioActual.CveUsuario) Then
|
||||
Alert("Se presento un error al actulizar los estados")
|
||||
Exit For
|
||||
End If
|
||||
|
||||
End If
|
||||
End If
|
||||
|
||||
Next
|
||||
|
||||
ObjDesarrollo.Dispose()
|
||||
|
||||
CargaDatosSubidasPendientes()
|
||||
ActualizarGV()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub GvDatos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
||||
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
|
||||
If e.Row.DataKey("Actualizable").ToEntero = 1 And e.Row.DataKey("CveDesarrolloEstado").ToEntero = 4 Then
|
||||
e.Row.FCCheckBox("ChkCompletado").Enabled = True
|
||||
Else
|
||||
e.Row.FCCheckBox("ChkCompletado").Visible = False
|
||||
'e.Row.FCCheckBox("ChkCompletado").Checked = True
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
CargaDatosSubidasPendientes()
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user