diff --git a/AF/AF.aspx b/AF/AF.aspx
index 82e22650c..ecf2bb86b 100644
--- a/AF/AF.aspx
+++ b/AF/AF.aspx
@@ -2882,7 +2882,7 @@
Almacén:
diff --git a/AF/AF.aspx.vb b/AF/AF.aspx.vb
index d5be1124a..690738748 100644
--- a/AF/AF.aspx.vb
+++ b/AF/AF.aspx.vb
@@ -537,7 +537,7 @@ Partial Class AF_AF
HLAFInv.Visible = True
- Dim StrAlmacenes As String = "CveTipoAlmacen IN (1,2,12)"
+ Dim StrAlmacenes As String = "CveTipoAlmacen IN (1,15)"
DdlAFInvAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, CveEmpresaActual, CveTipoAlmacen:=-1).FiltraParametros(StrAlmacenes)
DdlAFInvAlmacen.Items.Insert(0, New ListItem(" Seleccione ", "-1"))
DdlAFInvAlmacen.SelectedValue = "-1"
diff --git a/AF/CatTiposServicios.aspx b/AF/CatTiposServicios.aspx
new file mode 100644
index 000000000..97e152aa5
--- /dev/null
+++ b/AF/CatTiposServicios.aspx
@@ -0,0 +1,76 @@
+<%@ Page Title="AF - Catálogo de Tipos de Servicio" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="CatTiposServicios.aspx.cs" Inherits="AF_CatTiposServicios" %>
+
+<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
+
+
+
+
+
+
+
+ Catálogo de Tipos de Servicios
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AF/CatTiposServicios.aspx.cs b/AF/CatTiposServicios.aspx.cs
new file mode 100644
index 000000000..57398cc36
--- /dev/null
+++ b/AF/CatTiposServicios.aspx.cs
@@ -0,0 +1,101 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using Extensiones;
+using System.Data;
+
+public partial class AF_CatTiposServicios : ClsPaginas
+{
+ private int CveTipoServicio
+ {
+ get
+ {
+ return ViewState["CveTipoServicio"].ToString().ToEntero();
+ }
+
+ set
+ {
+ ViewState["CveTipoServicio"] = value;
+ }
+ }
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ private void CargaDatos()
+ {
+ ClsAF ObjAF = new ClsAF();
+ if (ObjAF.GetTiposServicios(-1, -1, -1, UsuarioActual.CveEmpresa))
+ {
+ GvDatos.DataSource = ObjAF.DtResultados;
+ GvDatos.DataBind();
+ }
+ ObjAF.Dispose();
+ }
+
+ protected void BtnAgregarTipoServicioD_Click(object sender, EventArgs e)
+ {
+ BtnAgregarTipoServicio.Text = "Agregar";
+ TxtNombre.Text = "";
+ DdlTipoMantenimiento.SelectedValueExist(-1);
+ UpModalTiposD.Update();
+ RegistraScript(String.Format("$('#{0}').modal();", "DivAgregarTiposServiciosD"));
+ }
+
+ protected void LnkEditar_Click(object sender, EventArgs e)
+ {
+ BtnAgregarTipoServicio.Text = "Actualizar";
+ GridViewRow GvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
+ CveTipoServicio = GvRow.DataKey("CveTipoServicio").ToEntero();
+ TxtNombre.Text = GvRow.DataKey("Nombre");
+ DdlTipoMantenimiento.SelectedValueExist(GvRow.DataKey("CveTipoMantenimiento"));
+ UpModalTiposD.Update();
+ RegistraScript(String.Format("$('#{0}').modal();", "DivAgregarTiposServiciosD"));
+ }
+
+ protected void LnkEliminar_Click(object sender, EventArgs e)
+ {
+ GridViewRow GvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
+ CveTipoServicio = GvRow.DataKey("CveTipoServicio").ToEntero();
+ ClsAF ObjAF = new ClsAF();
+ if (ObjAF.DeleteTiposServicios(CveTipoServicio))
+ {
+ CargaDatos();
+ UpDatos.Update();
+ RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarTiposD"));
+ Alert("Se eliminó el Tipo de Gasto correctamente");
+ }
+ ObjAF.Dispose();
+ }
+
+ protected void BtnAgregarTipoServicio_Click(object sender, EventArgs e)
+ {
+ ClsAF ObjAF = new ClsAF();
+ if (BtnAgregarTipoServicio.Text == "Agregar")
+ {
+ if (ObjAF.AddTiposServicios(TxtNombre.Text,DdlTipoMantenimiento.SelectedValue.ToEntero(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
+ {
+ CargaDatos();
+ UpDatos.Update();
+ RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarTiposD"));
+ Alert("Se agregó el Tipo de Gasto correctamente");
+ }
+ }
+ else
+ {
+ if (ObjAF.UpdateTiposServicios(CveTipoServicio, TxtNombre.Text, DdlTipoMantenimiento.SelectedValue.ToEntero(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
+ {
+ CargaDatos();
+ UpDatos.Update();
+ RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarTiposD"));
+ Alert("Se actualizó el Tipo de Gasto correctamente");
+ }
+ }
+ ObjAF.Dispose();
+ }
+}
\ No newline at end of file
diff --git a/Compras/PopUpVerFactura.aspx.vb b/Compras/PopUpVerFactura.aspx.vb
index 39658a220..5b067c967 100644
--- a/Compras/PopUpVerFactura.aspx.vb
+++ b/Compras/PopUpVerFactura.aspx.vb
@@ -3518,6 +3518,7 @@ Partial Class PopUpVerFactura
params.Add(New ReportParameter("Puesto", dr("Puesto").ToString))
params.Add(New ReportParameter("PuestoEntrego", dr("PuestoEntrego").ToString))
params.Add(New ReportParameter("Departamento", dr("Departamento").ToString))
+ params.Add(New ReportParameter("DepartamentoEntrego", dr("DepartamentoEntrego").ToString))
params.Add(New ReportParameter("Folio", dr("Folio").ToString))
params.Add(New ReportParameter("Sucursal", dr("SubProyecto").ToString))
params.Add(New ReportParameter("Telefono", dr("Celular").ToString))