modales inicio
This commit is contained in:
@@ -2677,6 +2677,38 @@ Public Class ClsVentas
|
|||||||
Return OnError
|
Return OnError
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function GetFacturasCanceladasPendientesWS(RFC As String, CveEmpresa As Integer, Optional showalert As Boolean = True) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
Dim objServicio As Cancelacion.CancelacionSoapClient = New Cancelacion.CancelacionSoapClient()
|
||||||
|
Dim resp As Cancelacion.StructCancel = objServicio.ObtienePendientes(RFC, "UserTest", "1234567890")
|
||||||
|
If resp.Estado = 0 Then
|
||||||
|
Dim XmlPendientes As String = System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(resp.Xml))
|
||||||
|
Dim theReader As IO.StringReader = New IO.StringReader(XmlPendientes)
|
||||||
|
Dim theDataSet As DataSet = New DataSet()
|
||||||
|
theDataSet.ReadXml(theReader)
|
||||||
|
|
||||||
|
If theDataSet.Tables(0).Rows(0)("Uuid").ToString() <> "null" Then
|
||||||
|
Dim sb = New StringBuilder()
|
||||||
|
|
||||||
|
For Each item As DataRow In theDataSet.Tables(0).Rows
|
||||||
|
sb.AppendFormat("{0};", item("Uuid").ToString())
|
||||||
|
Next
|
||||||
|
|
||||||
|
If GetFacturasCanceladasPendientes(sb.ToString(), CveEmpresa) Then
|
||||||
|
retorno = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
Else
|
||||||
|
If showalert Then
|
||||||
|
Alert("No se encontraron cancelaciones pendientes", ModExtensiones.TipoMensaje.MsgError)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
Alert("Error al obtener cancelaciones pendientes: " & resp.Descripcion, ModExtensiones.TipoMensaje.MsgError)
|
||||||
|
End If
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Function UpdateVentaFacturas(CveFactura As Integer, CveVenta As Integer, CveEmpresa As Integer) As Boolean
|
Public Function UpdateVentaFacturas(CveFactura As Integer, CveVenta As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim OnError As Boolean = False
|
Dim OnError As Boolean = False
|
||||||
|
|
||||||
|
|||||||
117
Inicio.aspx
117
Inicio.aspx
@@ -605,7 +605,7 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div align="right">
|
<div align="right">
|
||||||
<input type="text" id="TxtBusq" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusq','{0}')", GvVtaPUE.ClientID) %>" style="display: inline-block; width: 150px;" />
|
<input type="text" id="TxtBusq" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusq','{0}')", GvVtaPUE.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusq','{0}')", GvVtaPUE.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusq','{0}')", GvVtaPUE.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<asp:GridView ID="GvVtaPUE" runat="server" AutoGenerateColumns="False"
|
<asp:GridView ID="GvVtaPUE" runat="server" AutoGenerateColumns="False"
|
||||||
DataKeysNames="CveVenta"
|
DataKeysNames="CveVenta"
|
||||||
@@ -674,6 +674,101 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id="ModalMitoteresat" class="modal ADS fade " role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
|
||||||
|
<!-- Modal content-->
|
||||||
|
<div class="modal-content modal-lg">
|
||||||
|
<div class="modal-header ">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<h4 class="modal-title">Ventas sin registrar en SIG</h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-body">
|
||||||
|
<div style="text-align: right">
|
||||||
|
<input type="text" id="TxtBusquedaFolioSat" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaFolioSat','{0}')", GvFoliosSAT.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaFolioSat','{0}')", GvFoliosSAT.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<asp:GridView ID="GvFoliosSAT" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron factura canceladas pendientes"
|
||||||
|
DataKeyNames="FolioFiscal,RFC,Total"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" Style="text-align: center;" GridLines="None" Width="99%">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField HeaderText="Folio Fiscal" DataField="FolioFiscal" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Serie Folio" DataField="SerieFolio" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:BoundField HeaderText="Proveedor" DataField="NombreProveedor" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:BoundField HeaderText="Importe" DataField="Total" DataFormatString="{0:N2}" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<%--<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" HeaderText=" ">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton runat="server" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-plus'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea Agregar la factura?" data-btn-ok-label="si"></asp:LinkButton>
|
||||||
|
<asp:LinkButton runat="server" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-remove'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea cancelacar la factura ante el sat?" data-btn-ok-label="si" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>--%>
|
||||||
|
</Columns>
|
||||||
|
<RowStyle CssClass="Texto" />
|
||||||
|
<HeaderStyle CssClass="Titulos" />
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id="ModalMitotereCancelaPendiente" class="modal ADS fade " role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
|
||||||
|
<!-- Modal content-->
|
||||||
|
<div class="modal-content modal-lg">
|
||||||
|
<div class="modal-header ">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<h4 class="modal-title">Cancelaciones por Atender</h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-body">
|
||||||
|
<div style="text-align: right">
|
||||||
|
<input type="text" id="TxtBusquedaCancelaPendiente" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaCancelaPendiente','{0}')", gvCancelaPendiente.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaCancelaPendiente','{0}')", gvCancelaPendiente.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<asp:GridView ID="gvCancelaPendiente" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron factura canceladas pendientes"
|
||||||
|
DataKeyNames="FolioFiscal,RFC,Total"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" Style="text-align: center;" GridLines="None" Width="99%">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField HeaderText="Folio Fiscal" DataField="FolioFiscal" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Serie Folio" DataField="SerieFolio" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:BoundField HeaderText="Proveedor" DataField="NombreProveedor" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:BoundField HeaderText="Importe" DataField="Total" DataFormatString="{0:N2}" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<%--<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" HeaderText=" ">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton runat="server" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-plus'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea Agregar la factura?" data-btn-ok-label="si"></asp:LinkButton>
|
||||||
|
<asp:LinkButton runat="server" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-remove'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea cancelacar la factura ante el sat?" data-btn-ok-label="si" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>--%>
|
||||||
|
</Columns>
|
||||||
|
<RowStyle CssClass="Texto" />
|
||||||
|
<HeaderStyle CssClass="Titulos" />
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="ModalComprasPUE" class="modal ADS fade" role="dialog">
|
<div id="ModalComprasPUE" class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
|
|
||||||
@@ -687,7 +782,7 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div align="right">
|
<div align="right">
|
||||||
<input type="text" id="TxtBus" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBus','{0}')", GvCompPUE.ClientID) %>" style="display: inline-block; width: 150px;" />
|
<input type="text" id="TxtBus" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBus','{0}')", GvCompPUE.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBus','{0}')", GvCompPUE.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBus','{0}')", GvCompPUE.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<asp:GridView ID="GvCompPUE" runat="server" AutoGenerateColumns="False"
|
<asp:GridView ID="GvCompPUE" runat="server" AutoGenerateColumns="False"
|
||||||
DataKeysNames="CveCompra"
|
DataKeysNames="CveCompra"
|
||||||
@@ -767,13 +862,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div align="left">
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
# Inconsistencias:
|
# Inconsistencias:
|
||||||
<asp:Label ID="LblInconsistenciasNum" runat="server" Text="0" Font-Bold="true"></asp:Label>
|
<asp:Label ID="LblInconsistenciasNum" runat="server" Text="0" Font-Bold="true"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
<div align="right">
|
<div class="col-md-6" style="text-align :right">
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvIncons.ClientID) %>" style="display: inline-block; width: 150px;" />
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvIncons.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvIncons.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvIncons.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<asp:GridView ID="GvIncons" runat="server" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" GridLines="None">
|
<asp:GridView ID="GvIncons" runat="server" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" GridLines="None">
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
@@ -800,7 +897,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
# No Timbradas:
|
<div class="row">
|
||||||
|
<div class="col-md-6"># No Timbradas:</div>
|
||||||
|
<div class="col-md-6" style="text-align :right">
|
||||||
|
<input type="text" id="TxtBusquedaCentroCosto" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaCentroCosto','{0}')", GvNoTimbradasCentroCosto.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaCentroCosto','{0}')", GvNoTimbradasCentroCosto.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<asp:Label ID="LblNoTimbradas" runat="server" Text="0" Font-Bold="true"></asp:Label>
|
<asp:Label ID="LblNoTimbradas" runat="server" Text="0" Font-Bold="true"></asp:Label>
|
||||||
<asp:GridView ID="GvNoTimbradasCentroCosto" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" AutoGenerateColumns="false" runat="server" GridLines="None">
|
<asp:GridView ID="GvNoTimbradasCentroCosto" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" AutoGenerateColumns="false" runat="server" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
|
|||||||
@@ -16,6 +16,28 @@ Partial Class Inicio
|
|||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
|
If UsuarioActual.CveUsuario = 100 Then
|
||||||
|
|
||||||
|
Using objgral As New ClsGenerales
|
||||||
|
objgral.RepConciliacionSatDetalleGET(UsuarioActual.CveEmpresa, "I", "", "", 10)
|
||||||
|
If objgral.DtResultados.Rows.Count > 0 Then
|
||||||
|
GvFoliosSAT.DataSource = objgral.DtResultados
|
||||||
|
RegistraScript("$('#ModalMitoteresat').modal();", "mitoterosat")
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Using
|
||||||
|
GvFoliosSAT.DataBind()
|
||||||
|
End If
|
||||||
|
If UsuarioActual.CveUsuario = 100 Then
|
||||||
|
Using objventas As New ClsVentas
|
||||||
|
If (objventas.GetFacturasCanceladasPendientesWS(UsuarioActual.Empresa.RFC, UsuarioActual.CveEmpresa, False)) AndAlso objventas.DtResultados.Rows.Count > 0 Then
|
||||||
|
RegistraScript("$('#ModalMitotereCancelaPendiente').modal();", "mitoterosatCanceladasPendientesWS")
|
||||||
|
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
End If
|
||||||
|
'Exit Sub
|
||||||
|
|
||||||
'RESTRICCION AD
|
'RESTRICCION AD
|
||||||
If Not IsNothing(Request("ADCod")) Then
|
If Not IsNothing(Request("ADCod")) Then
|
||||||
'viene el msg encriptado, para sacar el modulo
|
'viene el msg encriptado, para sacar el modulo
|
||||||
|
|||||||
@@ -655,13 +655,14 @@ function AbrirVentana(Pagina, Ancho, Alto, tmp, Titulo) {
|
|||||||
if (!(Alto)) { Alto = '601'; }
|
if (!(Alto)) { Alto = '601'; }
|
||||||
$('#ajaxidmodal #myFrame').css({ width: Ancho, height: Alto });
|
$('#ajaxidmodal #myFrame').css({ width: Ancho, height: Alto });
|
||||||
$('#ajaxidmodal ').css({ width: Ancho, height: Alto });
|
$('#ajaxidmodal ').css({ width: Ancho, height: Alto });
|
||||||
$('#ajaxidmodal #myFrame').load(function() {
|
|
||||||
$('#ajaxidmodal').removeClass("hidden");
|
|
||||||
$("#ajax").modal();
|
$("#ajax").modal();
|
||||||
|
$('#ajaxidmodal').removeClass("hidden");
|
||||||
|
$("#ajaxidmodal #myFrame").unbind("load");
|
||||||
|
$('#ajaxidmodal #myFrame').load(function () {
|
||||||
Metronic.unblockUI();
|
Metronic.unblockUI();
|
||||||
});
|
});
|
||||||
$('#ajaxidmodal #myFrame').prop('src', Pagina);
|
$('#ajaxidmodal #myFrame').prop('src', Pagina);
|
||||||
$("#ajax").modal();
|
//$("#ajax").modal();
|
||||||
}
|
}
|
||||||
|
|
||||||
function CerrarVentana() {
|
function CerrarVentana() {
|
||||||
|
|||||||
@@ -27,39 +27,49 @@ public partial class Ventas_RepCancelacionesPorAtender : ClsPaginas
|
|||||||
}
|
}
|
||||||
private void CargarPendientes()
|
private void CargarPendientes()
|
||||||
{
|
{
|
||||||
Cancelacion.CancelacionSoapClient objServicio = new Cancelacion.CancelacionSoapClient();
|
|
||||||
Cancelacion.StructCancel resp = objServicio.ObtienePendientes(UsuarioActual.Empresa.RFC, "UserTest", "1234567890");
|
//Cancelacion.CancelacionSoapClient objServicio = new Cancelacion.CancelacionSoapClient();
|
||||||
if (resp.Estado == 0)
|
//Cancelacion.StructCancel resp = objServicio.ObtienePendientes(UsuarioActual.Empresa.RFC, "UserTest", "1234567890");
|
||||||
|
//if (resp.Estado == 0)
|
||||||
|
//{
|
||||||
|
// string XmlPendientes = DecodeBase64(resp.Xml);
|
||||||
|
// StringReader theReader = new StringReader(XmlPendientes);
|
||||||
|
// DataSet theDataSet = new DataSet();
|
||||||
|
// theDataSet.ReadXml(theReader);
|
||||||
|
// if (theDataSet.Tables[0].Rows[0]["Uuid"].ToString() != "null")
|
||||||
|
// {
|
||||||
|
// var sb = new StringBuilder();
|
||||||
|
// foreach (DataRow item in theDataSet.Tables[0].Rows)
|
||||||
|
// {
|
||||||
|
// sb.AppendFormat("{0};", item["Uuid"].ToString());
|
||||||
|
// }
|
||||||
|
// var ObjVentas = new ClsVentas();
|
||||||
|
// if (ObjVentas.GetFacturasCanceladasPendientes(sb.ToString(), UsuarioActual.CveEmpresa))
|
||||||
|
// {
|
||||||
|
// GvDatos.DataSource = ObjVentas.DtResultados;
|
||||||
|
// }
|
||||||
|
// ObjVentas.Dispose();
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// GvDatos.DataSource = null;
|
||||||
|
// Alert("No se encontraron cancelaciones pendientes");
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
// GvDatos.DataSource = null;
|
||||||
|
// Alert("Error al obtener cancelaciones pendientes: " + resp.Descripcion, ModExtensiones.TipoMensaje.MsgError);
|
||||||
|
//}
|
||||||
|
using (ClsVentas ObjVentas = new ClsVentas())
|
||||||
{
|
{
|
||||||
string XmlPendientes = DecodeBase64(resp.Xml);
|
if (ObjVentas.GetFacturasCanceladasPendientesWS(UsuarioActual.Empresa.RFC, UsuarioActual.CveEmpresa))
|
||||||
StringReader theReader = new StringReader(XmlPendientes);
|
|
||||||
DataSet theDataSet = new DataSet();
|
|
||||||
theDataSet.ReadXml(theReader);
|
|
||||||
if (theDataSet.Tables[0].Rows[0]["Uuid"].ToString() != "null")
|
|
||||||
{
|
|
||||||
var sb = new StringBuilder();
|
|
||||||
foreach (DataRow item in theDataSet.Tables[0].Rows)
|
|
||||||
{
|
|
||||||
sb.AppendFormat("{0};", item["Uuid"].ToString());
|
|
||||||
}
|
|
||||||
var ObjVentas = new ClsVentas();
|
|
||||||
if (ObjVentas.GetFacturasCanceladasPendientes(sb.ToString(), UsuarioActual.CveEmpresa))
|
|
||||||
{
|
{
|
||||||
GvDatos.DataSource = ObjVentas.DtResultados;
|
GvDatos.DataSource = ObjVentas.DtResultados;
|
||||||
}
|
}
|
||||||
ObjVentas.Dispose();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
GvDatos.DataSource = null;
|
|
||||||
Alert("No se encontraron cancelaciones pendientes");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
GvDatos.DataSource = null;
|
|
||||||
Alert("Error al obtener cancelaciones pendientes: " + resp.Descripcion, ModExtensiones.TipoMensaje.MsgError);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
GvDatos.DataBind();
|
GvDatos.DataBind();
|
||||||
UPDatos.Update();
|
UPDatos.Update();
|
||||||
}
|
}
|
||||||
@@ -154,8 +164,7 @@ public partial class Ventas_RepCancelacionesPorAtender : ClsPaginas
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
byte[] decbuff = Convert.FromBase64String(strXMLCodificado);
|
return System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(strXMLCodificado));
|
||||||
return System.Text.Encoding.UTF8.GetString(decbuff);
|
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user