--Se arreglaron los problemas con las pestañas y se agregó la función en JavaScript para ver el modal y el botón oculto en aspx y la función en vb para actualizar el contrato.
This commit is contained in:
@@ -24,8 +24,7 @@
|
||||
<%--Calendario Tab--%>
|
||||
<ajax:TabContainer ID="Tab" runat="server" Width="100%" ActiveTabIndex="0">
|
||||
|
||||
<ajax:TabPanel ID="TabAlta" runat="server" HeaderText="Calendario"> <asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||
|
||||
<ajax:TabPanel ID="TabAlta" runat="server" HeaderText="Calendario">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
@@ -47,6 +46,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<%--Contratos Tab--%>
|
||||
@@ -81,6 +81,12 @@
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="Chofer">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlChofer" runat="server" Text='<%# Eval("NombreCompleto") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
|
||||
<HeaderTemplate>
|
||||
Fecha<br />
|
||||
@@ -105,17 +111,12 @@
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
|
||||
|
||||
|
||||
</ajax:TabContainer>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Panel>
|
||||
|
||||
|
||||
<div id="ModalAgregar" class="modal ADS fade" role="dialog">
|
||||
<div id="ModalActualizar" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div id="UpAddChofer" class="modal-content rowpadding" tabindex="-1"
|
||||
runat="server">
|
||||
@@ -124,7 +125,7 @@
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="myModalLabel" runat="server">Agregar Contrato</h4>
|
||||
<h4 class="modal-title" id="myModalLabel" runat="server">Actualizar Contrato</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
@@ -277,6 +278,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="display: none">
|
||||
|
||||
<asp:UpdatePanel ID="UpCommando" runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button runat="server" ID="BtnActualizar" OnClick="ActualizarContrato"></asp:Button>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="JS" runat="Server">
|
||||
@@ -299,6 +309,8 @@
|
||||
}
|
||||
|
||||
function updateEvent(event, element) {
|
||||
console.log(event)
|
||||
$('#<%=BtnActualizar.ClientID%>').click();
|
||||
}
|
||||
|
||||
function RadionButtonSelectedValueSet(name, SelectdValue) {
|
||||
|
||||
@@ -31,6 +31,10 @@ Partial Class RepContratosCalendario
|
||||
DirectCast(Master.FindControl("TSM"), ScriptManager).EnablePageMethods = True
|
||||
End Sub
|
||||
|
||||
Protected Sub ActualizarContrato(sender As Object, e As System.EventArgs)
|
||||
RegistraScript("$('#ModalActualizar').modal('show');")
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user