-
-
-
-
-
-
+ DataKeysNames="CveCompra"
+ EmptyDataText="No se encontraron registros" ToolTip="Listado de Temas"
+ CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
+ data-sort="true"
+ data-freezerows="1"
+ GridLines="None">
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
+
- # No Timbradas:
+
+
diff --git a/Inicio.aspx.vb b/Inicio.aspx.vb
index 55e2ac042..9747b5767 100644
--- a/Inicio.aspx.vb
+++ b/Inicio.aspx.vb
@@ -16,7 +16,29 @@ Partial Class Inicio
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
- 'RESTRICCION AD
+ 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
If Not IsNothing(Request("ADCod")) Then
'viene el msg encriptado, para sacar el modulo
Dim Codigo As String = Decripta(Request("ADCod"))
diff --git a/Scripts/funciones.js b/Scripts/funciones.js
index 76f557384..1135fd9a1 100644
--- a/Scripts/funciones.js
+++ b/Scripts/funciones.js
@@ -655,13 +655,14 @@ function AbrirVentana(Pagina, Ancho, Alto, tmp, Titulo) {
if (!(Alto)) { Alto = '601'; }
$('#ajaxidmodal #myFrame').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();
});
$('#ajaxidmodal #myFrame').prop('src', Pagina);
- $("#ajax").modal();
+ //$("#ajax").modal();
}
function CerrarVentana() {
diff --git a/Ventas/RepCancelacionesPorAtender.aspx.cs b/Ventas/RepCancelacionesPorAtender.aspx.cs
index 0ef2f8207..98c4074f8 100644
--- a/Ventas/RepCancelacionesPorAtender.aspx.cs
+++ b/Ventas/RepCancelacionesPorAtender.aspx.cs
@@ -27,39 +27,49 @@ public partial class Ventas_RepCancelacionesPorAtender : ClsPaginas
}
private void CargarPendientes()
{
- Cancelacion.CancelacionSoapClient objServicio = new Cancelacion.CancelacionSoapClient();
- Cancelacion.StructCancel resp = objServicio.ObtienePendientes(UsuarioActual.Empresa.RFC, "UserTest", "1234567890");
- if (resp.Estado == 0)
+
+ //Cancelacion.CancelacionSoapClient objServicio = new Cancelacion.CancelacionSoapClient();
+ //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);
- StringReader theReader = new StringReader(XmlPendientes);
- DataSet theDataSet = new DataSet();
- theDataSet.ReadXml(theReader);
- if (theDataSet.Tables[0].Rows[0]["Uuid"].ToString() != "null")
+ if (ObjVentas.GetFacturasCanceladasPendientesWS(UsuarioActual.Empresa.RFC, UsuarioActual.CveEmpresa))
{
- 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");
+ GvDatos.DataSource = ObjVentas.DtResultados;
}
}
- else
- {
- GvDatos.DataSource = null;
- Alert("Error al obtener cancelaciones pendientes: " + resp.Descripcion, ModExtensiones.TipoMensaje.MsgError);
- }
+
+
GvDatos.DataBind();
UPDatos.Update();
}
@@ -153,9 +163,8 @@ public partial class Ventas_RepCancelacionesPorAtender : ClsPaginas
private string DecodeBase64(string strXMLCodificado)
{
try
- {
- byte[] decbuff = Convert.FromBase64String(strXMLCodificado);
- return System.Text.Encoding.UTF8.GetString(decbuff);
+ {
+ return System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(strXMLCodificado));
}
catch
{