This commit is contained in:
@@ -133,6 +133,24 @@ Public Class ClsGenerales
|
||||
End With
|
||||
End Sub
|
||||
|
||||
Public Function RepConciliacionSatDetalleGET(cveEmpresa As Int32, tipoDocto As String, fechaI As String, fechaF As String, RegistroEn As Integer) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_RepConciliacionSatDetalleGET", CommandType.StoredProcedure)
|
||||
With SqlAdapter.SelectCommand.Parameters
|
||||
.Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
|
||||
.Add("@TipoDocto", SqlDbType.VarChar).Value = tipoDocto
|
||||
.Add("@RegistroEn", SqlDbType.Int).Value = RegistroEn
|
||||
.Add("@FechaI", SqlDbType.VarChar).Value = fechaI
|
||||
.Add("@FechaF", SqlDbType.VarChar).Value = fechaF
|
||||
End With
|
||||
Try
|
||||
SqlAdapter.Fill(Data)
|
||||
retorno = True
|
||||
Catch ex As Exception
|
||||
OnError("Ocurrió un error al obtener los registros de Conciliaciones SAT.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
End Try
|
||||
Return retorno
|
||||
End Function
|
||||
|
||||
Public Function RepConciliacionSatGET(cveEmpresa As Int32, tipoDocto As String, fechaI As String, fechaF As String) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
|
||||
@@ -661,8 +661,7 @@ function AbrirVentana(Pagina, Ancho, Alto, tmp, Titulo) {
|
||||
Metronic.unblockUI();
|
||||
});
|
||||
$('#ajaxidmodal #myFrame').prop('src', Pagina);
|
||||
$("#ajax").modal();
|
||||
return false;
|
||||
$("#ajax").modal();
|
||||
}
|
||||
|
||||
function CerrarVentana() {
|
||||
|
||||
@@ -3912,7 +3912,7 @@ Partial Class Clientes
|
||||
Gracias por la atención brindada al presente.<br /> Reciba un cordial saludo.<br />
|
||||
<br />
|
||||
<b>ESTE CORREO SE GENERO EN FORMA AUTOMATICA.</b>", TxtNombreComercial.Text, UsuarioActual.Empresa.Empresa)
|
||||
Dim Hilo As New System.Threading.Thread(Sub() MandaCorreoEstadoCuenta(File, TxtCobranzaCorreo.Text, $"Estado Actual de Cartera {UsuarioActual.Empresa.Empresa}", Cuerpo, GuardarBitacora:=True))
|
||||
Dim Hilo As New System.Threading.Thread(Sub() MandaCorreoEstadoCuenta(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, Me.CveCliente, File, TxtCobranzaCorreo.Text, $"Estado Actual de Cartera {UsuarioActual.Empresa.Empresa}", Cuerpo, GuardarBitacora:=True))
|
||||
Hilo.Start()
|
||||
Alert("El correo se envió con éxito", TipoMensaje.MsgInformacion)
|
||||
Catch ex As Exception
|
||||
@@ -3979,7 +3979,7 @@ Partial Class Clientes
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
Private Sub MandaCorreoEstadoCuenta(File As Byte(), Para As String, Asunto As String, Body As String, Optional GuardarBitacora As Boolean = False)
|
||||
Private Sub MandaCorreoEstadoCuenta(CveUsuario As Integer, CveEmpresa As Integer, CveCliente As Integer, File As Byte(), Para As String, Asunto As String, Body As String, Optional GuardarBitacora As Boolean = False)
|
||||
|
||||
Dim a As String = String.Format("{0} -- {1} ---- -->", Asunto, Para)
|
||||
'a.GuardaLog()
|
||||
@@ -3992,7 +3992,7 @@ Partial Class Clientes
|
||||
|
||||
If Envio AndAlso GuardarBitacora Then
|
||||
Using ObjBitacora As New ClsOIEventos
|
||||
ObjBitacora.AddEventoBitacora("Se envió correo con el estado de cuenta del cliente", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCliente:=Me.CveCliente)
|
||||
ObjBitacora.AddEventoBitacora("Se envió correo con el estado de cuenta del cliente", "", CveUsuario, CveEmpresa, CveCliente:=CveCliente)
|
||||
End Using
|
||||
End If
|
||||
|
||||
|
||||
@@ -8,16 +8,16 @@
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.GVConciliacionemitidasSAT tr th:nth-child(6) {
|
||||
.GVConciliacionemitidasSAT tr th:nth-child(7) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.GVConciliacionemitidasSAT tr td:nth-child(6) {
|
||||
.GVConciliacionemitidasSAT tr td:nth-child(7) {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.GVConciliacionemitidasSAT tr th:nth-child(7),
|
||||
.GVConciliacionemitidasSAT tr td:nth-child(7) {
|
||||
.GVConciliacionemitidasSAT tr th:nth-child(8),
|
||||
.GVConciliacionemitidasSAT tr td:nth-child(8) {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
@@ -35,6 +35,80 @@
|
||||
<asp:UpdatePanel ID="UpDatosReporte" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet solid grey-cascade portlet-filter" id="idnecesaria">
|
||||
<div class="portlet-title portlet-filterT smalltitle" style="min-height: 51px;">
|
||||
<div class="tools">
|
||||
<asp:Button ID="BtnConsultar" OnClick="BtnConsultar_Click" runat="server" Text="Consultar" class="btn btn-primary" />
|
||||
<a href="javascript:;" class="expand"></a>
|
||||
</div>
|
||||
<div class="titlefiltros caption">
|
||||
<div class="row">
|
||||
<label class="col-md-1" style="padding-top: 13px; display: none;">Tipo: </label>
|
||||
<div class="col-md-2" style="display: none;">
|
||||
<asp:ListBox ID="DdlTipoComprobante" data-text="Todos" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server">
|
||||
<asp:ListItem Text="Ingresos" Value="Ing"></asp:ListItem>
|
||||
<asp:ListItem Text="Egresos" Value="Egs"></asp:ListItem>
|
||||
<asp:ListItem Text="Remisión" Value="Rem"></asp:ListItem>
|
||||
<asp:ListItem Text="Cotización" Value="Cot"></asp:ListItem>
|
||||
<asp:ListItem Text="Anticipos" Value="Ant"></asp:ListItem>
|
||||
<asp:ListItem Text="Pedido Con" Value="Ped"></asp:ListItem>
|
||||
<asp:ListItem Text="Devolucion" Value="Dev"></asp:ListItem>
|
||||
<asp:ListItem Text="Pedido" Value="Pd2"></asp:ListItem>
|
||||
</asp:ListBox>
|
||||
</div>
|
||||
<div class="col-md-2" style="padding-top: 13px;" >
|
||||
<asp:DropDownList ID="ddlRegistroen" CssClass="select2me form-control " Width="100%" runat="server">
|
||||
<asp:ListItem Text="Todos" Value="0"></asp:ListItem>
|
||||
<asp:ListItem Text="SIG" Value="1"></asp:ListItem>
|
||||
<asp:ListItem Text="SAT" Value="2"></asp:ListItem>
|
||||
<asp:ListItem Text="SIG Sin Encontrar SAT" Value="3"></asp:ListItem>
|
||||
<asp:ListItem Text="SAT Sin Encontrar SIG" Value="4"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
<div class="col-md-1 truncate" style="padding-top: 13px;">
|
||||
Fecha Inicio:
|
||||
</div>
|
||||
<div class="col-md-1" style="padding-top: 9px;">
|
||||
<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 Width="80px" ID="txtFechaI" 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>
|
||||
</div>
|
||||
<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="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>
|
||||
</div>
|
||||
<div class="col-md-1 truncate" style="padding-top: 13px;">
|
||||
Fecha Fin:
|
||||
</div>
|
||||
<div class="col-md-1" style="padding-top: 9px;">
|
||||
<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 Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body" style="display: none">
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<div class="portlet light xspadding bordered " id="PorletDatos" style="margin-bottom: 0px;">
|
||||
<div class="portlet-title">
|
||||
@@ -52,8 +126,13 @@
|
||||
</div>
|
||||
<div class="portlet-body ">
|
||||
<asp:GridView ID="GVConciliacionemitidasSAT" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVConciliacionemitidasSAT" AutoGenerateColumns="False"
|
||||
DataKeyNames="FolioFiscal,TipoDocto,ImporteTotal,Estatus,Fecha,Moneda,RFCReceptor,CveEmpresa,RutaXml,RFCEmisor,TipoDoctoTexto">
|
||||
DataKeyNames="FolioFiscal,TipoDocto,ImporteTotal,Estatus,Fecha,Moneda,RFCReceptor,CveEmpresa,RutaXml,RFCEmisor,TipoDoctoTexto" OnRowDataBound="GVConciliacionemitidasSAT_RowDataBound">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText=" ">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("TipoText")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Tipo documento">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbltipoDocto" runat="server" Text='<%# Eval("TipoDoctoTexto")%>'> </asp:Label>
|
||||
@@ -91,12 +170,13 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Estatus">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblestatus" runat="server" Text='<%# Eval("EstatusFactura")%>'> </asp:Label>
|
||||
<asp:Label ID="lblestatus" runat="server" Text='<%# Eval("Estatus")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Xml" Visible="false">
|
||||
<asp:TemplateField HeaderText="Xml" >
|
||||
<ItemTemplate>
|
||||
<%--<asp:Label ID="lblrutaXml" runat="server" Text='<%# Eval("RutaXml")%>'> </asp:Label>--%>
|
||||
<asp:HyperLink ID="HypXml" runat="server" target="_blank"><i class="fa fa-download" aria-hidden="true"></i>XML</asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="">
|
||||
@@ -153,7 +233,6 @@
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>
|
||||
$('#DModalDefaults').modal();
|
||||
|
||||
function FiltrarTabla(idtxt, idtable, idcontador) {
|
||||
if ($('' + idtxt).val() == '') { $('table' + idtable + ' tr').css('display', 'table-row'); }
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -10,12 +10,32 @@
|
||||
|
||||
table.table > tbody > tr.Grupo1 {
|
||||
background-color: #CCC !important;
|
||||
cursor:pointer;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
table.table > tbody > tr.Grupo2 {
|
||||
background-color: #DDD !important;
|
||||
cursor:pointer;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.GVRepConciliacionSatGET > tbody > tr > td:not(:nth-child(1)) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.GVRepConciliacionSatGET tr:not(.Grupo0):not(.Grupo3) .showhideicon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
font-size: 7px;
|
||||
display: block;
|
||||
background-image: url(/Metronic/assets/global/img/portlet-collapse-icon-white.png);
|
||||
}
|
||||
|
||||
.GVRepConciliacionSatGET tr:not(.Grupo0):not(.Grupo3).hidex .showhideicon {
|
||||
background-image: url(/Metronic/assets/global/img/portlet-expand-icon-white.png);
|
||||
}
|
||||
|
||||
.GVRepConciliacionSatGET .bactions {
|
||||
width: 5px;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
@@ -25,7 +45,7 @@
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<li><a onclick="javascript:AbrirVentana('/Ventas/SolicitudesSAT.aspx?Masterimpoup=true',1400);"><i class="fa fa-dropbox"></i>Solicitudes SAT </a></li>
|
||||
<li><a onclick="javascript:AbrirVentana('/Ventas/SolicitudesSAT.aspx?tipo=2&Masterimpoup=true',1400);"><i class="fa fa-dropbox"></i>Solicitudes SAT </a></li>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||
@@ -42,8 +62,8 @@
|
||||
</div>
|
||||
<div class="titlefiltros caption">
|
||||
<div class="row">
|
||||
<label class="col-md-1" style="padding-top: 13px; display:none;">Tipo: </label>
|
||||
<div class="col-md-2" style="display:none;">
|
||||
<label class="col-md-1" style="padding-top: 13px; display: none;">Tipo: </label>
|
||||
<div class="col-md-2" style="display: none;">
|
||||
<asp:ListBox ID="DdlTipoComprobante" data-text="Todos" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server">
|
||||
<asp:ListItem Text="Ingresos" Value="Ing"></asp:ListItem>
|
||||
<asp:ListItem Text="Egresos" Value="Egs"></asp:ListItem>
|
||||
@@ -99,7 +119,7 @@
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="upDatosRepC" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GVRepConciliacionSatGET" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
||||
<asp:GridView ID="GVRepConciliacionSatGET" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVRepConciliacionSatGET" AutoGenerateColumns="False"
|
||||
DataKeyNames="anio,Mes,MesText,Dia,GRUPOCve,Grupo,CFDISIG,CFDISAT,CFDISIGSinSAT,CFDISATSinSIG" OnRowDataBound="GVRepConciliacionSatGET_RowDataBound">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText=" ">
|
||||
@@ -109,26 +129,36 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblcFDISIG" runat="server" Text='<%# Eval("CFDISIG")%>'> </asp:Label>
|
||||
<asp:HyperLink ID="HypSIG" runat="server"><%# Eval("CFDISIG")%></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SAT">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblcFDISAT" runat="server" Text='<%# Eval("CFDISAT")%>'> </asp:Label>
|
||||
<asp:HyperLink ID="HypSAT" runat="server"><%# Eval("CFDISAT")%></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Sin Encontrar SAT">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblcFDISIGSinSAT" runat="server" Text='<%# Eval("CFDISIGSinSAT")%>'> </asp:Label>
|
||||
<asp:HyperLink ID="HypSIGnoSAT" runat="server"><%# Eval("CFDISIGSinSAT")%></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Sin Encontrar SIG">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblcFDISATSinSIG" runat="server" Text='<%# Eval("CFDISATSinSIG")%>'> </asp:Label>
|
||||
<asp:HyperLink ID="HypSatnoSIG" runat="server"><%# Eval("CFDISATSinSIG")%></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-CssClass="bactions">
|
||||
<ItemTemplate>
|
||||
<span class="showhideicon"></span>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-CssClass="bactions">
|
||||
<ItemTemplate>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<%--<CR:CrystalReportViewer ID="reports" runat="server" AutoDataBind="true"></CR:CrystalReportViewer>--%>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
@@ -138,7 +168,7 @@
|
||||
var Grupo2hide = [];
|
||||
$('body').on('click', 'tr.Grupo2 ', function (e) {
|
||||
let gmes = $(this).attr('gmes');
|
||||
|
||||
|
||||
if (Grupo3Show.indexOf(gmes) >= 0) {
|
||||
Grupo3Show.pop(gmes);
|
||||
} else {
|
||||
@@ -148,7 +178,7 @@
|
||||
showhideg3();
|
||||
});
|
||||
function showhideg3() {
|
||||
|
||||
|
||||
$('.Grupo3').hide();
|
||||
$('.Grupo3').each(function () {
|
||||
let gmes = $(this).attr('gmes');
|
||||
@@ -157,10 +187,18 @@
|
||||
$(this).show();
|
||||
}
|
||||
});
|
||||
//
|
||||
$('.Grupo2').removeClass('hidex');
|
||||
$('.Grupo2').each(function () {
|
||||
let gmes = $(this).attr('gmes');
|
||||
if (Grupo3Show.indexOf(gmes) == -1) {
|
||||
$(this).addClass('hidex');
|
||||
}
|
||||
});
|
||||
}
|
||||
$('body').on('click', 'tr.Grupo1 ', function (e) {
|
||||
let ganio = $(this).attr('ganio');
|
||||
|
||||
|
||||
if (Grupo2hide.indexOf(ganio) >= 0) {
|
||||
Grupo2hide.pop(ganio);
|
||||
} else {
|
||||
@@ -171,7 +209,7 @@
|
||||
showhideg2();
|
||||
});
|
||||
function showhideg2() {
|
||||
|
||||
|
||||
$('.Grupo2').show();
|
||||
$('.Grupo2').each(function () {
|
||||
let ganio = $(this).attr('ganio')
|
||||
@@ -179,6 +217,15 @@
|
||||
$(this).hide();
|
||||
}
|
||||
});
|
||||
|
||||
$('.Grupo1').removeClass('hidex');
|
||||
$('.Grupo1').each(function () {
|
||||
let gmes = $(this).attr('gmes');
|
||||
let ganio = $(this).attr('ganio');
|
||||
if (Grupo2hide.indexOf(gmes) > -1) {
|
||||
$(this).addClass('hidex');
|
||||
}
|
||||
});
|
||||
}
|
||||
function ADSBegin() {
|
||||
showhideg3();
|
||||
|
||||
@@ -3,17 +3,55 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls;
|
||||
using Extensiones;
|
||||
|
||||
public partial class Ventas_RepConciliacionSat : ClsPaginas
|
||||
{
|
||||
const string rqFechaInicio = "FechaInicio";
|
||||
const string rqFechaFin = "FechaFin";
|
||||
public string RfechaI
|
||||
{
|
||||
get
|
||||
{
|
||||
return ViewState["RfechaI"].ToString();
|
||||
}
|
||||
set { ViewState["RfechaI"] = value; }
|
||||
}
|
||||
public string RfechaF
|
||||
{
|
||||
get
|
||||
{
|
||||
return ViewState["RfechaF"].ToString();
|
||||
}
|
||||
set { ViewState["RfechaF"] = value; }
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
//CrystalDecisions.CrystalReports.Engine.ReportDocument cryRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
|
||||
//cryRpt.Load(String.Format("C:\\Proyectos\\wwwSIG\\Empresas\\Grales\\Formatos\\CatPS.rpt", UsuarioActual.Empresa.Ruta));
|
||||
//System.Data.DataTable DtDatos = new System.Data.DataTable();
|
||||
//using (ClsProductosServicios ObjPS = new ClsProductosServicios())
|
||||
//{
|
||||
// if (ObjPS.GetPSLite(-1, 119, "-1", "-1", "02541", -1, -1, -1, -1))
|
||||
// {
|
||||
// DtDatos = ObjPS.DtResultados;
|
||||
|
||||
// }
|
||||
//}
|
||||
//cryRpt.SetDataSource(DtDatos);
|
||||
//CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo coninfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
|
||||
//cryRpt.
|
||||
////cryRpt.SetDatabaseLogon("JCaudillo", "JCau127*953");// 293357
|
||||
//reports.ReportSource = cryRpt;
|
||||
//reports.RefreshReport();
|
||||
//// reports.Refresh();
|
||||
|
||||
|
||||
|
||||
DateTime fecha;
|
||||
DateTime fechaInicio = DateTime.Now;
|
||||
DateTime fechaFin = DateTime.Now;
|
||||
@@ -33,10 +71,10 @@ public partial class Ventas_RepConciliacionSat : ClsPaginas
|
||||
|
||||
protected void CargaRepConciliacionSatGET()
|
||||
{
|
||||
string RtipoDocto, RfechaI, RfechaF;
|
||||
string RtipoDocto;
|
||||
RtipoDocto = "I";
|
||||
RfechaI = txtFechaI.Text.ToDateTime().ToString();
|
||||
RfechaF = txtFechaF.Text.ToDateTime().ToString();
|
||||
RfechaI = txtFechaI.Text.Length > 0 ? txtFechaI.Text.ToDateTime().ToString("yyyy/MM/dd") : "";
|
||||
RfechaF = txtFechaF.Text.Length > 0 ? txtFechaF.Text.ToDateTime().ToString("yyyy/MM/dd") : "";
|
||||
using (ClsGenerales ObjRepC = new ClsGenerales())
|
||||
{
|
||||
ObjRepC.RepConciliacionSatGET(UsuarioActual.CveEmpresa, RtipoDocto, RfechaI, RfechaF);
|
||||
@@ -55,11 +93,65 @@ public partial class Ventas_RepConciliacionSat : ClsPaginas
|
||||
|
||||
protected void GVRepConciliacionSatGET_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if(e.Row.RowType == DataControlRowType.DataRow)
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
e.Row.CssClass = string.Format("Grupo{0}", e.Row.DBCampo("GRUPOCve"));
|
||||
string fechaI = RfechaI;
|
||||
string fechaF = RfechaF;
|
||||
DateTime danio;
|
||||
DateTime danioF;
|
||||
int GRUPOCve = e.Row.DBCampo("GRUPOCve").ToString().ToEntero();
|
||||
e.Row.CssClass = string.Format("Grupo{0}", GRUPOCve);
|
||||
e.Row.Attributes.Add("ganio", string.Format("{0}", e.Row.DBCampo("anio")));
|
||||
e.Row.Attributes.Add("gMes", string.Format("{0}", e.Row.DBCampo("Mes")));
|
||||
e.Row.Attributes.Add("gMes", string.Format("{0}", e.Row.DBCampo("Mes")));
|
||||
string navigateurl = "";
|
||||
switch (GRUPOCve)
|
||||
{
|
||||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
danio = string.Format("{0}/01/01", e.Row.DBCampo("anio")).ToDateTime();
|
||||
danioF = danio.AddYears(1).AddSeconds(-1);
|
||||
if (RfechaI.ToDateTime() < danio)
|
||||
{
|
||||
fechaI = danio.ToString("yyyy/MM/dd");
|
||||
}
|
||||
if (RfechaF.ToDateTime() > danioF || RfechaF.Length == 0)
|
||||
{
|
||||
fechaF = danioF.ToString("yyyy/MM/dd HH:mm:ss");
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
danio = string.Format("{0}/{1}/01", e.Row.DBCampo("anio"), e.Row.DBCampo("Mes").Substring(4)).ToDateTime();
|
||||
danioF = danio.AddMonths(1).AddSeconds(-1);
|
||||
if (RfechaI.ToDateTime() < danio)
|
||||
{
|
||||
fechaI = danio.ToString("yyyy/MM/dd");
|
||||
}
|
||||
if (RfechaF.ToDateTime() > danioF || RfechaF.Length == 0)
|
||||
{
|
||||
fechaF = danioF.ToString("yyyy/MM/dd HH:mm:ss");
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
danio = string.Format("{0:yyyy/MM/dd}", e.Row.DBCampo("dia")).ToDateTime();
|
||||
danioF = danio.AddDays(1).AddSeconds(-1);
|
||||
if (RfechaI.ToDateTime() < danio)
|
||||
{
|
||||
fechaI = danio.ToString("yyyy/MM/dd");
|
||||
}
|
||||
if (RfechaF.ToDateTime() > danioF || RfechaF.Length == 0)
|
||||
{
|
||||
fechaF = danioF.ToString("yyyy/MM/dd HH:mm:ss");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
navigateurl = string.Format("{0}&{3}={1}&{4}={2}", navigateurl, fechaI, fechaF, rqFechaInicio, rqFechaFin);
|
||||
e.Row.FCHyperLink("HypSIG").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=1{0}", navigateurl);
|
||||
e.Row.FCHyperLink("HypSAT").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=2{0}", navigateurl);
|
||||
e.Row.FCHyperLink("HypSIGnoSAT").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=3{0}", navigateurl);
|
||||
e.Row.FCHyperLink("HypSatnoSIG").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=4{0}", navigateurl);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -131,22 +131,22 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha Ingreso">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblfechaIngreso" runat="server" Text='<%# Eval("FechaIngreso","{0:dd/MM/yyyy HH:mm}")%>'> </asp:Label>
|
||||
<asp:Label ID="lblfechaIngreso" runat="server" Text='<%# Eval("FechaIngreso","{0:dd/MM/yyyy}")%>' data-toggle="tooltip" title='<%# Eval("FechaIngreso","{0:dd/MM/yyyy HH:mm}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="id Solicitud">
|
||||
<asp:TemplateField HeaderText="id Solicitud" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblidSolicitud" runat="server" Text='<%# Eval("idSolicitud")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha Inicio Solicitud">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblfechaInicioSolicitud" runat="server" Text='<%# Eval("FechaInicioSolicitud","{0:dd/MM/yyyy HH:mm}")%>'> </asp:Label>
|
||||
<asp:Label ID="lblfechaInicioSolicitud" runat="server" Text='<%# Eval("FechaInicioSolicitud","{0:dd/MM/yyyy}")%>' data-toggle="tooltip" title='<%# Eval("FechaInicioSolicitud","{0:dd/MM/yyyy HH:mm}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha Fin Solicitud">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblfechaFinSolicitud" runat="server" Text='<%# Eval("FechaFinSolicitud","{0:dd/MM/yyyy HH:mm}")%>'> </asp:Label>
|
||||
<asp:Label ID="lblfechaFinSolicitud" runat="server" Text='<%# Eval("FechaFinSolicitud","{0:dd/MM/yyyy}")%>' data-toggle="tooltip" title='<%# Eval("FechaFinSolicitud","{0:dd/MM/yyyy HH:mm}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Estatus">
|
||||
@@ -199,7 +199,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3 ">
|
||||
<%--<div class="col-sm-3 ">
|
||||
Fecha Inicio:
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
@@ -224,8 +224,8 @@
|
||||
<span class="input-group-btn"><a class="btn default lnkFechaFAdd"><i class="fa fa-calendar"></i></a></span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<%--<div class="col-md-4" data-date-format="dd/mm/yyyy" style ="padding-right: 0px;">
|
||||
</div>--%>
|
||||
<div class="col-md-4" data-date-format="dd/mm/yyyy" style ="padding-right: 0px;">
|
||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||
<asp:TextBox ID="txtFechaIAdd" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" Text="Fecha Inicio" AssociatedControlID="txtFechaIAdd"></asp:Label>
|
||||
@@ -258,6 +258,7 @@
|
||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaFAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaFAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
<%--
|
||||
<div class="col-md-2" style ="padding-top: 14px;padding-left: 0px;">
|
||||
<div class="input-group input-sm input-small date date-picker " style ="padding-left: 0px;" data-date-format="dd/mm/yyyy" >
|
||||
<span class="input-group-btn ">
|
||||
|
||||
@@ -19,7 +19,7 @@ public partial class Ventas_SolicitudesSAT : ClsPaginas
|
||||
string rfIngFin = Request["fIngFin"] == null ? "" : Request["fIngFin"].ToString().Trim();
|
||||
string rfSolInicio = Request["fSolInicio"] == null ? "" : Request["fSolInicio"].ToString().Trim();
|
||||
string rfSolFin = Request["fSolFin"] == null ? "" : Request["fSolFin"].ToString().Trim();
|
||||
|
||||
|
||||
DateTime dValor = DateTime.Now;
|
||||
dValor = DateTime.Now; if (DateTime.TryParse(rfIngInicio, out dValor)) { rfIngInicio = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfIngInicio = ""; }
|
||||
dValor = DateTime.Now; if (DateTime.TryParse(rfIngFin, out dValor)) { rfIngFin = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfIngFin = ""; }
|
||||
@@ -92,8 +92,8 @@ public partial class Ventas_SolicitudesSAT : ClsPaginas
|
||||
|
||||
protected void LnkSolicitarCFDI_Click(object sender, EventArgs e)
|
||||
{
|
||||
string FechaI = string.Format("{0:yyyy-MM-ddTHH}:{0:mm}:{0:ss}", txtFechaIAdd.Text.ToDateTime());
|
||||
string FechaF = string.Format("{0:yyyy-MM-ddTHH}:{0:mm}:{0:ss}", txtFechaFAdd.Text.ToDateTime());
|
||||
string FechaI = string.Format("{0:yyyy-MM-dd}T00:00:00", txtFechaIAdd.Text.ToDateTime());
|
||||
string FechaF = string.Format("{0:yyyy-MM-dd}T23:59:59", txtFechaFAdd.Text.ToDateTime());
|
||||
|
||||
string direxe = string.Format("{0}{1}", AppDomain.CurrentDomain.BaseDirectory, "Utilerias\\ADSUtilerias.exe");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user