Vya - Nuevas observaciones 2024.07.19
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
<%-- Filtros --%>
|
||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet solid grey-cascade portlet-filter">
|
||||
<div class="portlet solid grey-cascade portlet-filter" id="dvFiltros">
|
||||
<%-- Filtro Visible - Consulta --%>
|
||||
<div class="portlet-title portlet-filterT smalltitle">
|
||||
<div class="tools">
|
||||
@@ -103,7 +103,7 @@
|
||||
<%-- Estatus --%>
|
||||
<label class="col-md-1 ">Estatus:</label>
|
||||
<div class="col-md-1">
|
||||
<asp:DropDownList ID="DdlEstatusConsulta" data-text="Todos" AppendDataBoundItems="true"
|
||||
<asp:DropDownList ID="DdlEstatusConsulta" data-text="Todos" AppendDataBoundItems="true" ClientIDMode="Static"
|
||||
DataTextField="ContratoEstatus"
|
||||
DataValueField="CveContratoEstatus" CssClass="form-control ddlFiltros input-sm select2me Widthall"
|
||||
Style="width: 100%;" runat="server">
|
||||
@@ -118,7 +118,7 @@
|
||||
<label class="col-md-1 truncate ">Centro de Costos</label>
|
||||
<div class="col-md-1">
|
||||
<asp:DropDownList ID="DdlSubProyectos" data-text="Todos" AppendDataBoundItems="true"
|
||||
DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control ddlFiltros input-sm select2me Widthall"
|
||||
DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control ddlFiltros input-sm select2me Widthall" ClientIDMode="Static"
|
||||
Style="width: 100%;" runat="server">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
@@ -126,7 +126,7 @@
|
||||
<label class="col-md-1 ">Tipo de Unidad</label>
|
||||
<div class="col-md-1">
|
||||
<asp:DropDownList ID="DdlTipoUnidad" data-text="Todos" AppendDataBoundItems="true"
|
||||
DataTextField="TipoActivoFijo" DataValueField="CveTipoActivoFijo" CssClass="form-control ddlFiltros input-sm select2me Widthall"
|
||||
DataTextField="TipoActivoFijo" DataValueField="CveTipoActivoFijo" CssClass="form-control ddlFiltros input-sm select2me Widthall" ClientIDMode="Static"
|
||||
Style="width: 100%;" runat="server">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
@@ -134,7 +134,7 @@
|
||||
<label class="col-md-1 ">Chofer:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DdlChoferFiltro" data-text="Todos" AppendDataBoundItems="true"
|
||||
DataTextField="NombreCompleto" DataValueField="CvePersonal" CssClass="form-control ddlFiltros input-sm select2me Widthall"
|
||||
DataTextField="NombreCompleto" DataValueField="CvePersonal" CssClass="form-control ddlFiltros input-sm select2me Widthall" ClientIDMode="Static"
|
||||
Style="width: 100%;" runat="server">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
@@ -148,7 +148,7 @@
|
||||
<div class="col-md-12">
|
||||
<ajax:TabContainer ID="Tab" runat="server" Width="100%" ActiveTabIndex="0">
|
||||
<%--Calendario Tab--%>
|
||||
<ajax:TabPanel ID="TabAlta" runat="server" HeaderText="Calendario">
|
||||
<ajax:TabPanel ID="TabAlta" runat="server" HeaderText="Calendario" OnClientClick="TabAltaClicked" >
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet solid grey-cascade portlet-filter" id="idnecesaria">
|
||||
@@ -208,7 +208,7 @@
|
||||
<asp:GridView ID="GvContratos" runat="server" AutoGenerateColumns="false" EmptyDataText="No se Encontró Contrato Registrado"
|
||||
CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn miGrid"
|
||||
GridLines="None"
|
||||
data-sort="true" DataKeyNames="CveContrato, NumeroContrato, DescripcionContrato, Ubicacion, FechaInicial, FechaFinal, CveCliente, NombreComercial, CveTipoAF, Importe, ImporteMin, ImporteMax, Observaciones, CveAF, CveChofer, CveChofer2, CveContratosEstatus, CantidadPasajeros,CveMoneda">
|
||||
data-sort="true" DataKeyNames="CveContrato, NumeroContrato, DescripcionContrato, Ubicacion, FechaInicial, FechaFinal, CveCliente, NombreComercial, CveTipoAF, Importe, ImporteMin, ImporteMax, Observaciones, CveAF, CveChofer, CveChofer2, CveContratosEstatus, CantidadPasajeros,CveMoneda,Moneda,CveSubProyecto">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Contrato">
|
||||
<ItemTemplate>
|
||||
@@ -358,6 +358,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row my-1">
|
||||
<label class="col-md-4">
|
||||
<asp:Label runat="server" ID="LblSubProyectoModal"></asp:Label>
|
||||
</label>
|
||||
<div class="col-md-8">
|
||||
<asp:DropDownList runat="server" ID="DdlSubProyectoModal" Width="100%" DataValueField="CveSubProyecto" DataTextField="SubProyecto" CssClass="select2me"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RfvDdlSubProyectoModal" runat="server" ControlToValidate="DdlSubProyectoModal" InitialValue="-1" ErrorMessage="Campo sub Proyecto requerido." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCERfvDdlSubProyectoModal" runat="server" HighlightCssClass="vco" TargetControlID="RfvDdlSubProyectoModal" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label class="col-md-4">Servicio:</label>
|
||||
<div class="col-md-8">
|
||||
@@ -401,7 +412,7 @@
|
||||
<div class="row my-1">
|
||||
<label class="col-md-4">Moneda:</label>
|
||||
<div class="col-md-8">
|
||||
<asp:TextBox ID="TxtMoneda" runat="server" ReadOnly="true" Width="100%"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtMoneda" runat="server" Width="100%" Enabled="false"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -601,12 +612,22 @@
|
||||
|
||||
yAxis.data.setAll(categorias);
|
||||
|
||||
// Obtener valores de las cajas de texto
|
||||
var fechaI = document.getElementById('<%= txtFechaI.ClientID %>').value;
|
||||
var fechaF = document.getElementById('<%= txtFechaF.ClientID %>').value;
|
||||
|
||||
// Convertir valores a objetos Date
|
||||
var minDate = new Date(fechaI.split("/").reverse().join("-"));
|
||||
var maxDate = new Date(fechaF.split("/").reverse().join("-"));
|
||||
|
||||
dateAxis = am5xy.DateAxis.new(root, {
|
||||
baseInterval: { timeUnit: "minute", count: 1 },
|
||||
baseInterval: { timeUnit: "day", count: 1 },
|
||||
renderer: am5xy.AxisRendererX.new(root, {
|
||||
minorGridEnabled: true,
|
||||
minGridDistance: 90
|
||||
})
|
||||
}),
|
||||
min: minDate.getTime(),
|
||||
max: maxDate.getTime()
|
||||
//min: new Date(2024, 6, 15).getTime(),
|
||||
//max: new Date(2024, 6, 31).getTime()
|
||||
});
|
||||
@@ -752,10 +773,17 @@
|
||||
$('#<%=DdlEstatusContrato.ClientID%>').val(event.CveEventoEstatus);
|
||||
$('#<%=TxtDolares.ClientID%>').val(event.Dolares);
|
||||
$('#<%=TxtPesos.ClientID%>').val(event.Pesos);
|
||||
$('#<%=TxtMoneda.ClientID%>').val(event.Moneda);
|
||||
|
||||
//document.getElementById('<%= TxtMoneda.ClientID %>').value = event.Moneda;
|
||||
|
||||
$('#<%=TxtAnticipo.ClientID%>').val(event.Anticipo);
|
||||
$('#<%=HdnCveContrato.ClientID%>').val(event.id);
|
||||
$('#<%=DdlTipoAF.ClientID%>').val(event.CveTipoAF);
|
||||
$('#<%=DdlSubProyectoModal.ClientID%>').val(event.CveSubProyecto);
|
||||
|
||||
|
||||
// alert(event.Moneda);
|
||||
|
||||
|
||||
if (event.NombreComercial !== null) {
|
||||
@@ -769,29 +797,46 @@
|
||||
|
||||
}
|
||||
|
||||
function formatearFechaISO(fechaISO) {
|
||||
let fecha = new Date(fechaISO);
|
||||
|
||||
function formatearFechaISO(fechaISO) {
|
||||
let fecha = new Date(fechaISO);
|
||||
// Formatear la fecha en DD/MM/YYYY
|
||||
let dia = fecha.getDate().toString().padStart(2, '0');
|
||||
let mes = (fecha.getMonth() + 1).toString().padStart(2, '0'); // getMonth() devuelve mes de 0-11
|
||||
let año = fecha.getFullYear();
|
||||
|
||||
// Formatear la hora en formato 24 horas
|
||||
let horas = fecha.getHours().toString().padStart(2, '0');
|
||||
let minutos = fecha.getMinutes().toString().padStart(2, '0');
|
||||
let segundos = fecha.getSeconds().toString().padStart(2, '0');
|
||||
|
||||
// Combinar la fecha y la hora
|
||||
return `${dia}/${mes}/${año} ${horas}:${minutos}:${segundos}`;
|
||||
}
|
||||
|
||||
|
||||
//function formatearFechaISO(fechaISO) {
|
||||
// let fecha = new Date(fechaISO);
|
||||
|
||||
// Formatear la fecha en DD/MM/YYYY
|
||||
let dia = fecha.getDate().toString().padStart(2, '0');
|
||||
let mes = (fecha.getMonth() + 1).toString().padStart(2, '0'); // getMonth() devuelve mes de 0-11
|
||||
let año = fecha.getFullYear();
|
||||
// // Formatear la fecha en DD/MM/YYYY
|
||||
// let dia = fecha.getDate().toString().padStart(2, '0');
|
||||
// let mes = (fecha.getMonth() + 1).toString().padStart(2, '0'); // getMonth() devuelve mes de 0-11
|
||||
// let año = fecha.getFullYear();
|
||||
|
||||
// Formatear la hora en formato 12 horas con AM/PM
|
||||
let horas = fecha.getHours();
|
||||
let minutos = fecha.getMinutes().toString().padStart(2, '0');
|
||||
let periodo = 'a. m.';
|
||||
if (horas >= 12) {
|
||||
periodo = 'p. m.';
|
||||
horas = horas > 12 ? horas - 12 : horas; // Convertir hora de formato 24 a 12 horas
|
||||
}
|
||||
if (horas === 0) horas = 12; // Medianoche se muestra como 12 a.m.
|
||||
horas = horas.toString().padStart(2, '0');
|
||||
// // Formatear la hora en formato 12 horas con AM/PM
|
||||
// let horas = fecha.getHours();
|
||||
// let minutos = fecha.getMinutes().toString().padStart(2, '0');
|
||||
// let periodo = 'a. m.';
|
||||
// if (horas >= 12) {
|
||||
// periodo = 'p. m.';
|
||||
// horas = horas > 12 ? horas - 12 : horas; // Convertir hora de formato 24 a 12 horas
|
||||
// }
|
||||
// if (horas === 0) horas = 12; // Medianoche se muestra como 12 a.m.
|
||||
// horas = horas.toString().padStart(2, '0');
|
||||
|
||||
// Combinar la fecha y la hora
|
||||
return `${dia}/${mes}/${año} ${horas}:${minutos}:00 ${periodo}`;
|
||||
}
|
||||
// // Combinar la fecha y la hora
|
||||
// return `${dia}/${mes}/${año} ${horas}:${minutos}:00 ${periodo}`;
|
||||
//}
|
||||
|
||||
function RadionButtonSelectedValueSet(name, SelectdValue) {
|
||||
$('input[name="' + name + '"][value="' + SelectdValue + '"]').prop('checked', true);
|
||||
@@ -905,7 +950,11 @@
|
||||
tipoVista: '<%= RBTipoVista.Text %>',
|
||||
METODO: 'contrato_transportes',
|
||||
CveUsuarioPara: $('#DdlTecnico').val(),
|
||||
CveSubProyecto: $('#DdlSubProyecto').val()
|
||||
CveSubProyecto: $('#DdlSubProyecto').val(),
|
||||
CveCliente: $('#C_DdlCliente_Value').val(),
|
||||
CveContratoEstatus: $('#DdlEstatusConsulta').val(),
|
||||
CveTipoActivoFijo: $('#DdlTipoUnidad').val(),
|
||||
CvePersonal: $('#DdlChoferFiltro').val()
|
||||
}
|
||||
},
|
||||
eventDrop: eventDropped,
|
||||
@@ -944,6 +993,16 @@
|
||||
}
|
||||
|
||||
|
||||
function TabAltaClicked(sender, e) {
|
||||
|
||||
setTimeout(function () {
|
||||
InitCalendar();
|
||||
|
||||
}, 10);
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user