Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -36,6 +36,7 @@ Public Class CalendarEvent
|
|||||||
Public Property CvePersonal As Integer
|
Public Property CvePersonal As Integer
|
||||||
Public Property CvePersonal2 As Integer
|
Public Property CvePersonal2 As Integer
|
||||||
Public Property CveCliente As Integer
|
Public Property CveCliente As Integer
|
||||||
|
Public Property NombreComercial As String
|
||||||
Public Property CveProveedor As Integer
|
Public Property CveProveedor As Integer
|
||||||
Public Property CveOS As Integer
|
Public Property CveOS As Integer
|
||||||
Public Property CveOSDetalle As Integer
|
Public Property CveOSDetalle As Integer
|
||||||
|
|||||||
@@ -464,6 +464,7 @@ Public Class CargaEventos : Implements IHttpHandler, IRequiresSessionState
|
|||||||
cevent.allDay = False
|
cevent.allDay = False
|
||||||
cevent.NombreAcercamiento = dr("Ubicacion").ToString
|
cevent.NombreAcercamiento = dr("Ubicacion").ToString
|
||||||
cevent.CveCliente = dr("CveCliente").ToString.ToEntero
|
cevent.CveCliente = dr("CveCliente").ToString.ToEntero
|
||||||
|
cevent.NombreComercial = dr("NombreComercial").ToString
|
||||||
cevent.CvePersonal = dr("CveChofer").ToString.ToEntero
|
cevent.CvePersonal = dr("CveChofer").ToString.ToEntero
|
||||||
cevent.CvePersonal2 = dr("CveChofer2").ToString.ToEntero
|
cevent.CvePersonal2 = dr("CveChofer2").ToString.ToEntero
|
||||||
cevent.CveEventoEstatus = dr("CveContratosEstatus").ToString.ToEntero
|
cevent.CveEventoEstatus = dr("CveContratosEstatus").ToString.ToEntero
|
||||||
@@ -530,6 +531,7 @@ Public Class CargaEventos : Implements IHttpHandler, IRequiresSessionState
|
|||||||
cevent.end = If(tipoVista = "fecha", String.Format("{0:s}", dr("FechaInicial").ToString.ToDateTime.AddHours(1)), String.Format("{0:s}", dr("FechaFinal").ToString.ToDateTime))
|
cevent.end = If(tipoVista = "fecha", String.Format("{0:s}", dr("FechaInicial").ToString.ToDateTime.AddHours(1)), String.Format("{0:s}", dr("FechaFinal").ToString.ToDateTime))
|
||||||
cevent.allDay = False
|
cevent.allDay = False
|
||||||
cevent.CveCliente = dr("CveCliente").ToString.ToEntero
|
cevent.CveCliente = dr("CveCliente").ToString.ToEntero
|
||||||
|
cevent.NombreComercial = dr("NombreComercial").ToString
|
||||||
cevent.NombreAcercamiento = dr("Ubicacion").ToString
|
cevent.NombreAcercamiento = dr("Ubicacion").ToString
|
||||||
cevent.CveActivoFijo = dr("CveAF").ToString.ToEntero
|
cevent.CveActivoFijo = dr("CveAF").ToString.ToEntero
|
||||||
cevent.CvePersonal = dr("CveChofer").ToString.ToEntero
|
cevent.CvePersonal = dr("CveChofer").ToString.ToEntero
|
||||||
|
|||||||
@@ -380,7 +380,7 @@
|
|||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<asp:DropDownList ID="DdlTipoAF" DataValueField="CveTipoActivoFijo"
|
<asp:DropDownList ID="DdlTipoAF" DataValueField="CveTipoActivoFijo"
|
||||||
DataTextField="TipoActivoFijo" Class="form-control input-inline"
|
DataTextField="TipoActivoFijo" Class="form-control input-inline"
|
||||||
Width="100%" runat="server" Enabled="false">
|
Width="100%" runat="server" Enabled="true">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -389,7 +389,7 @@
|
|||||||
<label class="col-md-4">Unidad</label>
|
<label class="col-md-4">Unidad</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<asp:DropDownList ID="DdlAF" DataValueField="CveActivoFijo"
|
<asp:DropDownList ID="DdlAF" DataValueField="CveActivoFijo"
|
||||||
DataTextField="Descripcion" Class="table-group-action-input form-control input-inline select2me"
|
DataTextField="Descripcion" Class="form-control select2me"
|
||||||
Width="100%" runat="server">
|
Width="100%" runat="server">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
@@ -401,6 +401,7 @@
|
|||||||
<asp:DropDownList ID="DdlChofer" AppendDataBoundItems="true" DataValueField="CvePersonal"
|
<asp:DropDownList ID="DdlChofer" AppendDataBoundItems="true" DataValueField="CvePersonal"
|
||||||
DataTextField="NombreCompleto" Class="table-group-action-input form-control input-inline select2me"
|
DataTextField="NombreCompleto" Class="table-group-action-input form-control input-inline select2me"
|
||||||
Width="100%" runat="server">
|
Width="100%" runat="server">
|
||||||
|
<asp:ListItem Value="-1" Selected="True">Seleccione</asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -469,6 +470,8 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
<asp:HiddenField runat="server" ID="HidModClienteNombre" ClientIDMode="Static" />
|
||||||
|
<asp:HiddenField runat="server" ID="HidModCveCliente" ClientIDMode="Static" />
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="JS" runat="Server">
|
||||||
@@ -665,6 +668,15 @@
|
|||||||
$('#<%=TxtAnticipo.ClientID%>').val(event.Anticipo);
|
$('#<%=TxtAnticipo.ClientID%>').val(event.Anticipo);
|
||||||
$('#<%=CveContrato.ClientID%>').val(event.id);
|
$('#<%=CveContrato.ClientID%>').val(event.id);
|
||||||
|
|
||||||
|
|
||||||
|
if (event.NombreComercial !== null) {
|
||||||
|
$('#HidModClienteNombre').val('');
|
||||||
|
} else {
|
||||||
|
$('#HidModClienteNombre').val(event.NombreComercial);
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#HidModCveCliente').val(event.CveCliente);
|
||||||
|
|
||||||
$('#<%=BtnModal.ClientID%>').click();
|
$('#<%=BtnModal.ClientID%>').click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -122,10 +122,14 @@ Partial Class RepContratosCalendario
|
|||||||
'Lista Chofer'
|
'Lista Chofer'
|
||||||
DdlChofer.DataSource = GlobalDTRHPersonal(UsuarioActual.CveEmpresa)
|
DdlChofer.DataSource = GlobalDTRHPersonal(UsuarioActual.CveEmpresa)
|
||||||
DdlChofer.DataBind()
|
DdlChofer.DataBind()
|
||||||
DdlChofer.Items.Insert(0, New ListItem("-", ""))
|
DdlChofer.Items.Insert(0, New ListItem("Seleccione", ""))
|
||||||
|
DdlChofer.SelectedValueExist(-1)
|
||||||
|
|
||||||
DdlChofer2.DataSource = GlobalDTRHPersonal(UsuarioActual.CveEmpresa)
|
DdlChofer2.DataSource = GlobalDTRHPersonal(UsuarioActual.CveEmpresa)
|
||||||
DdlChofer2.DataBind()
|
DdlChofer2.DataBind()
|
||||||
DdlChofer2.Items.Insert(0, New ListItem("-", ""))
|
DdlChofer2.Items.Insert(0, New ListItem("Seleccione", ""))
|
||||||
|
DdlChofer2.SelectedValueExist(-1)
|
||||||
|
|
||||||
|
|
||||||
DdlChoferFiltro.DataSource = GlobalDTRHPersonal(UsuarioActual.CveEmpresa).FiltraParametros("", "NombreCompleto")
|
DdlChoferFiltro.DataSource = GlobalDTRHPersonal(UsuarioActual.CveEmpresa).FiltraParametros("", "NombreCompleto")
|
||||||
DdlChoferFiltro.DataBind()
|
DdlChoferFiltro.DataBind()
|
||||||
@@ -148,7 +152,7 @@ Partial Class RepContratosCalendario
|
|||||||
DdlSubProyectos.Items.Insert(0, New ListItem("Todos", "-1"))
|
DdlSubProyectos.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
|
||||||
'CargarCentrosDeCosto(Nothing, DdlSubProyectos, Nothing, LblSubProyecto)
|
'CargarCentrosDeCosto(Nothing, DdlSubProyectos, Nothing, LblSubProyecto)
|
||||||
|
UpModal.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub OnRowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvContratos.RowDataBound
|
Private Sub OnRowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvContratos.RowDataBound
|
||||||
@@ -157,7 +161,23 @@ Partial Class RepContratosCalendario
|
|||||||
e.Row.BackColor = Drawing.ColorTranslator.FromHtml(BackgroundColor)
|
e.Row.BackColor = Drawing.ColorTranslator.FromHtml(BackgroundColor)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub MostrarModal(sender As Object, e As System.EventArgs)
|
Protected Sub MostrarModal(sender As Object, e As System.EventArgs)
|
||||||
|
|
||||||
|
|
||||||
|
If HidModClienteNombre.Value = "" Then
|
||||||
|
HidModClienteNombre.Value = GlobalDTCliente(UsuarioActual.CveEmpresa, -1, HidModCveCliente.Value.ToEntero).FiltroPrimeroValor("NombreComercial")
|
||||||
|
End If
|
||||||
|
|
||||||
|
DdlClientes.SelectedText = HidModClienteNombre.Value
|
||||||
|
DdlClientes.SelectedValue = HidModCveCliente.Value
|
||||||
|
|
||||||
|
DdlClientes.txtText.Value = HidModClienteNombre.Value
|
||||||
|
DdlClientes.txtValue.Value = HidModCveCliente.Value
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
UpModal.Update()
|
||||||
|
|
||||||
RegistraScript("$('#ModalActualizar').modal('show');")
|
RegistraScript("$('#ModalActualizar').modal('show');")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user