Ver Póliza", IDPoliza);
diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb
index f6c248137..eec016ace 100644
--- a/Compras/Compras.aspx.vb
+++ b/Compras/Compras.aspx.vb
@@ -1550,8 +1550,8 @@ Partial Class Compras_Compras
End If
- 'SE OCUPAN AFUERA DEL POSTBACK ??
- cargaddlVinculacionServcios()
+ 'SE OCUPAN AFUERA DEL POSTBACK ??
+ cargaddlVinculacionServcios()
If UsuarioActual.TienePermisoProceso(117) Then
HplAddClasificacion.Visible = False
@@ -4087,20 +4087,20 @@ Partial Class Compras_Compras
Exit Sub
End If
- 'DF - 10/04/2017
- If UsuarioActual.TienePermisoProceso(187) Then
- If TxtSerie.Text <> SerieVieja Then
- Dim dtt As DataTable = GlobalDTProveedorSucursales(CveProveedor, UsuarioActual.CveEmpresa)
- If dtt IsNot Nothing AndAlso dtt.Rows.Count > 0 Then
- Dim SerieNueva As String = dtt.FiltroPrimeroValor("Serie", $"Serie = '{TxtSerie.Text}'").ToString
- If SerieNueva = "" Then
- Alert("La Serie no es válida, por favor revise que se encuentre dentro de la lista de las sucursales del proveedor.", TipoMensaje.MsgAdvertencia)
- Exit Sub
- End If
- End If
+ ''DF - 10/04/2017
+ 'If UsuarioActual.TienePermisoProceso(187) Then
+ ' If TxtSerie.Text <> SerieVieja Then
+ ' Dim dtt As DataTable = GlobalDTProveedorSucursales(CveProveedor, UsuarioActual.CveEmpresa)
+ ' If dtt IsNot Nothing AndAlso dtt.Rows.Count > 0 Then
+ ' Dim SerieNueva As String = dtt.FiltroPrimeroValor("Serie", $"Serie = '{TxtSerie.Text}'").ToString
+ ' If SerieNueva = "" Then
+ ' Alert("La Serie no es válida, por favor revise que se encuentre dentro de la lista de las sucursales del proveedor.", TipoMensaje.MsgAdvertencia)
+ ' Exit Sub
+ ' End If
+ ' End If
- End If
- End If
+ ' End If
+ 'End If
'Excede el limite de credito
If RBLPago.SelectedValue = "1" AndAlso DdlTipoComprobante.SelectedValue.Contiene("Fac") AndAlso UsuarioActual.Empresa.Funcionalidad(518) = "1" AndAlso Not UsuarioActual.TienePermisoProceso(185) Then
@@ -6037,14 +6037,19 @@ Partial Class Compras_Compras
If importeMovimiento <> 0 Then
Dim IdCtaIva As Integer = 0
IdCtaIva = If(IdCtaIVAXAcreditar > 0, IdCtaIVAXAcreditar, 0)
+ Dim ttConceptoContable As Integer = 14
- If ObjConta.GetRetCuenta(14, UsuarioActual.CveEmpresa) And Not IdCtaIva > 0 Then
+ If ObjConta.GetRetCuenta(ttConceptoContable, UsuarioActual.CveEmpresa) And Not IdCtaIva > 0 Then
If ObjConta.DtResultados.Rows.Count > 0 Then
IdCtaIva = ObjConta.DtResultados.Rows(0)("IdCuentaIVAxAcreditar").ToString.ToEntero
End If
End If
- If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 14, Concepto + If(tipoCambioActual > 1, $" TC {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaIva, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), PorcentajeImpuesto:=PorcentajeImpuesto, Contabilizable:=SeContabiliza, TipoCambio:=tipoCambioActual) Then
+ If chkImportacion.Checked Then
+ ttConceptoContable = 287
+ End If
+
+ If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, ttConceptoContable, Concepto + If(tipoCambioActual > 1, $" TC {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaIva, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), PorcentajeImpuesto:=PorcentajeImpuesto, Contabilizable:=SeContabiliza, TipoCambio:=tipoCambioActual) Then
ErrorPrepoliza = True
End If
End If
@@ -18084,6 +18089,22 @@ Partial Class Compras_Compras
End If
End If
+ Dim DtpsTemp As DataTable = Nothing
+ Dim CveContratoDetalle As Integer = -1
+ Dim CveContrato As Integer = GlobalDTContratos(UsuarioActual.CveEmpresa, -1, DdlSubProyecto.SelectedValue.ToString.ToEntero).FiltroPrimeroValor("CveContrato").ToEntero
+ If CveContrato > 0 Then
+ Dim dttemp As New DataTable
+ dttemp.Columns.Add("CveSubProyecto", GetType(Integer))
+ dttemp.Columns.Add("CvePS", GetType(Integer))
+ Dim DrPS = dttemp.NewRow
+ DrPS("CveSubProyecto") = DdlSubProyecto.SelectedValue.ToString.ToEntero
+ DrPS("CvePS") = DdlPS.SelectedValue.ToString.ToEntero
+ dttemp.Rows.Add(DrPS)
+ DtpsTemp = GetPSContratoDetalle(CveContrato, dttemp)
+ If DtpsTemp IsNot Nothing AndAlso DtpsTemp.Rows.Count > 0 Then
+ CveContratoDetalle = DtpsTemp.FiltroPrimeroValor("CveContratoDetalle", String.Format("CvePS = {0}", DdlPS.SelectedValue.ToString.ToEntero)).ToEntero
+ End If
+ End If
'If dttemp IsNot Nothing AndAlso dttemp.Rows.Count > 0 Then
' Dim drContrato As DataRow = dttemp.Rows(0)
@@ -18118,8 +18139,6 @@ Partial Class Compras_Compras
' End If
'End If
-
-
Select Case Modalidad
Case "A" 'ADD
@@ -18137,7 +18156,7 @@ Partial Class Compras_Compras
AddPS(TxtCantidad.Text.Trim.ToDouble, ddlUM.SelectedValue.ToEntero, ddlUM.SelectedItem.Text, DdlClasificacion.SelectedValue.ToEntero, DdlClasificacion.SelectedItem.Text, DdlPS.SelectedValue.ToEntero, DdlPS.SelectedText, HdnTipoPS.Value.ToEntero,
DdlSubProyecto.SelectedValue.ToString, DdlSubProyecto.SelectedItem.Text, DdlProyecto.SelectedItem.Text, DdlProyecto.SelectedValue.ToString, TxtObsPS.Text.Trim, TxtPrecio.Text.Trim.ToDouble, Total, IVA,
TxtRetIVAModal.Text.ToDouble / 100, TxtRetISRModal.Text.ToDouble / 100, TxtIEPSModal.Text.ToDouble / 100, 0, TxtDescuentoModal.Text.ToDouble, OtrosGastos:=TxtOtrosGastos.Text.ToDouble, CveTipoGasto:=DdlTipoGasto.SelectedValue.ToEntero, TipoGasto:=DdlTipoGasto.SelectedItem.Text,
- NoDeducible:=ChkEsNoDeduciblePS.Checked, CveSATPS:=SATClavePS)
+ NoDeducible:=ChkEsNoDeduciblePS.Checked, CveSATPS:=SATClavePS, CveContratoDetalle:=CveContratoDetalle)
AddPS2()
LimpiaAgregar()
@@ -18149,7 +18168,7 @@ Partial Class Compras_Compras
End If
Case "U" 'UPDATE
- UpdatePS()
+ UpdatePS(CveContratoDetalle)
Alert("Concepto actualizado Correctamente.", TipoMensaje.MsgInformacion)
RegistraScript(String.Format("$('#{0}').modal('hide');", "divAddProducto"))
End Select
@@ -18348,7 +18367,7 @@ Partial Class Compras_Compras
End If
End Sub
- Private Sub UpdatePS()
+ Private Sub UpdatePS(Optional CveContratoDetalle As Integer = -1)
Dim DrPS As DataRow = Nothing
Try
DrPS = TmpDT.Select($"Consec = {Index}")(0)
@@ -18371,6 +18390,7 @@ Partial Class Compras_Compras
DrPS("CveProyecto") = DdlProyecto.SelectedValue.ToEntero
DrPS("SubProyecto") = DdlSubProyecto.SelectedItem.Text
DrPS("CveSubProyecto") = DdlSubProyecto.SelectedValue.ToEntero
+ DrPS("CveContratoDetalle") = CveContratoDetalle
'IMPORTES - [CANTIDAD Y PRECIO]
Dim Cantidad = DrPS("Cantidad").ToString.ToDouble
@@ -18611,13 +18631,26 @@ Partial Class Compras_Compras
CveProyecto = DdlAsignarProyecto.SelectedValue.ToEntero()
End If
+ Dim CveContrato As Integer = GlobalDTContratos(UsuarioActual.CveEmpresa, -1, DdlAsignaSubProyecto.SelectedValue.ToEntero).FiltroPrimeroValor("CveContrato").ToEntero
+ Dim DtpsTemp As DataTable = Nothing
+ If CveContrato > 0 Then
+ DtpsTemp = GetPSContratoDetalle(CveContrato, TmpDT.FiltraParametros("", "", {"CveSubProyecto", "CvePS"}))
+ End If
+
For Each Dr As DataRow In TmpDT.Rows
Dr("CveProyecto") = CveProyecto
Dr("Proyecto") = If(CveSubProyecto = -1, "SE", DdlAsignarProyecto.SelectedItem.Text)
Dr("CveSubProyecto") = CveSubProyecto
Dr("SubProyecto") = If(CveSubProyecto = -1, "SE", DdlAsignaSubProyecto.SelectedItem.Text)
+
+ If DtpsTemp IsNot Nothing AndAlso DtpsTemp.Rows.Count > 0 Then
+ Dr("CveContratoDetalle") = DtpsTemp.FiltroPrimeroValor("CveContratoDetalle", String.Format("CvePS = {0}", Dr("CvePS"))).ToEntero
+ End If
+
Next
+
+
GvPS.DataSource = TmpDT.FiltraParametros("", "Consec")
GvPS.DataBind()
UpPS.Update()
@@ -18680,9 +18713,22 @@ Partial Class Compras_Compras
Dim PS As New ClsProductosServicios
Dim CvePS = -1
Dim tPS = ""
-
+ Dim CveSubProyecto As Integer = TmpDT.Rows(HdnAliasInd.Value.ToEntero)("CveSubProyecto").ToString.ToEntero
CvePS = DdlPSAlias2.SelectedValue.ToEntero
tPS = DdlPSAlias2.SelectedText
+ Dim DtpsTemp As DataTable = Nothing
+ Dim CveContrato As Integer = GlobalDTContratos(UsuarioActual.CveEmpresa, -1, CveSubProyecto).FiltroPrimeroValor("CveContrato").ToEntero
+ If CveContrato > 0 Then
+ Dim dttemp As New DataTable
+ dttemp.Columns.Add("CveSubProyecto", GetType(Integer))
+ dttemp.Columns.Add("CvePS", GetType(Integer))
+ Dim DrPS = dttemp.NewRow
+ DrPS("CveSubProyecto") = CveSubProyecto
+ DrPS("CvePS") = CvePS
+ dttemp.Rows.Add(DrPS)
+ DtpsTemp = GetPSContratoDetalle(CveContrato, dttemp)
+ End If
+
If PS.AddPSAlias(System.Web.HttpUtility.HtmlDecode(TxtPSAlias.Text.Trim), CvePS, UsuarioActual.CveUsuario) Then
GlobalDTProductosServiciosAlias(-1) = PS.DtResultados
@@ -18697,6 +18743,9 @@ Partial Class Compras_Compras
TmpDT.Rows(HdnAliasInd.Value.ToEntero)("CveSATPS") = HdnPSAliasCveSATPS.Value.ToEntero
TmpDT.Rows(HdnAliasInd.Value.ToEntero)("SATClaveProductoServicio") = HdnPSAliasSATClavePS.Value
TmpDT.Rows(HdnAliasInd.Value.ToEntero)("CveSATPSActualizado") = 0
+ If DtpsTemp IsNot Nothing AndAlso DtpsTemp.Rows.Count > 0 Then
+ TmpDT.Rows(HdnAliasInd.Value.ToEntero)("CveContratoDetalle") = DtpsTemp.FiltroPrimeroValor("CveContratoDetalle", String.Format("CvePS = {0}", CvePS)).ToEntero
+ End If
'busco si el producto está en otros renglones QUE NO LO TENGAN ASIGNADO, LO VINCULE
For Each drt As DataRow In TmpDT.Select($"PS ='{TxtPSAlias.Text.Trim}' and ISNULL(CvePS,0) = 0")
@@ -18710,7 +18759,9 @@ Partial Class Compras_Compras
drt("CveSATPS") = HdnPSAliasCveSATPS.Value.ToEntero
drt("SATClaveProductoServicio") = HdnPSAliasSATClavePS.Value
drt("CveSATPSActualizado") = 0
-
+ If DtpsTemp IsNot Nothing AndAlso DtpsTemp.Rows.Count > 0 Then
+ drt("CveContratoDetalle") = DtpsTemp.FiltroPrimeroValor("CveContratoDetalle", String.Format("CvePS = {0}", drt("CvePS"))).ToEntero
+ End If
Next
TmpDT.AcceptChanges()
@@ -20912,17 +20963,33 @@ Partial Class Compras_Compras
End If
objContratos.Dispose()
- If MensajeProducto.Length <> 64 Then
+ If MensajeProducto.Length > 64 Then
Retorno = MensajeProducto
- ElseIf MensajeCantidad.Length <> 84 Then
+ ElseIf MensajeCantidad.Length > 84 Then
Retorno = MensajeCantidad
- ElseIf MensajeImporte.Length <> 86 Then
+ ElseIf MensajeImporte.Length > 86 Then
Retorno = MensajeImporte
+ Else
+ Retorno = ""
End If
Return Retorno
End Function
+ Private Function GetPSContratoDetalle(CveContrato As Integer, DtPS As DataTable) As DataTable
+ Dim ObjContratos As New ClsContratos
+ Dim DtpsTemp As DataTable = Nothing
+
+ If DtPS.MAX("CveSubProyecto", "CveSubProyecto IS NOT NULL").ToEntero > 0 AndAlso DtPS.MAX("CvePS", "CvePS IS NOT NULL").ToEntero > 0 Then
+ Dim TempPS As String = JsonConvert.SerializeObject(DtPS).ToString
+ If ObjContratos.GetPSContratoDetalle(CveContrato, TempPS) Then
+ DtpsTemp = ObjContratos.DtResultados
+ End If
+ ObjContratos.Dispose()
+ End If
+
+ Return DtpsTemp
+ End Function
#End Region
diff --git a/Compras/ReembolsosComprobaciones.aspx.vb b/Compras/ReembolsosComprobaciones.aspx.vb
index b05473cb0..da89c665e 100644
--- a/Compras/ReembolsosComprobaciones.aspx.vb
+++ b/Compras/ReembolsosComprobaciones.aspx.vb
@@ -724,7 +724,10 @@ Partial Class Compras_ReembolsosComprobaciones
End If
If SaldoCheque > 0 Then
- ImporteMovto = If(ImportePagar > SaldoCheque, SaldoCheque, ImportePagar)
+
+ 'ImporteMovto = If(ImportePagar > SaldoCheque, SaldoCheque, ImportePagar)
+ ImporteMovto = ImportePagar
+
CvePrePolizaPago = CvePrePolizaIERegistrado
'SE USARA PARA PODER ELIMINAR UNA COMPROBACION
@@ -746,7 +749,7 @@ Partial Class Compras_ReembolsosComprobaciones
'Otros Ingresos
- If (ChkAjusteOI.Checked Or ChkOtrosIngresosCheque.Checked) AndAlso gvr.FCTextBox("TxtComision").Text.ToDecimal > 0 Then
+ If (ChkAjusteOI.Checked Or ChkOtrosIngresosCheque.Checked) AndAlso gvr.FCTextBox("TxtComision").Text.ToDecimal <> 0 Then
If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, False, gvr.FCTextBox("TxtComision").Text.ToDecimal, Referencia, 211, ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, IdCtaProveedor, -1, CveIE:=CveIERegistrado, CvePersonal:=CvePersonal, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveSubProyecto:=gvr.DataKey("CveSubProyecto").ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, gvr.FCTextBox("TxtComision").Text.ToDecimal), ImporteMX:=gvr.FCTextBox("TxtComision").Text.ToDecimal * tipoCambio, CveCuenta:=CveCuentaProveedor) Then
MsgError = "no se pudo insertar el detalle de la poliza de otros ingresos"
End If
diff --git a/Contabilidad/ContabilidadElectronica.aspx.vb b/Contabilidad/ContabilidadElectronica.aspx.vb
index e59728d33..a33545fc8 100644
--- a/Contabilidad/ContabilidadElectronica.aspx.vb
+++ b/Contabilidad/ContabilidadElectronica.aspx.vb
@@ -185,7 +185,7 @@ Partial Class Contabilidad_ContabilidadElectronica
Dim DtCuentas As New DataTable
If UsuarioActual.Empresa.TipoContabilidad = 1 Then
Dim objconta As New ClsContabilidad
- If objconta.GetBalanzaComprobacion(FechaI, FechaF, UsuarioActual.CveEmpresa) Then
+ If objconta.GetBalanzaComprobacion(FechaI, FechaF, 1, -1, "-1", UsuarioActual.CveEmpresa, 0) Then
DtCuentas = objconta.DtResultados
End If
objconta.Dispose()
@@ -218,11 +218,20 @@ Partial Class Contabilidad_ContabilidadElectronica
'DETALLES
For Each Dr As DataRow In DtCuentas.Rows
Str.Append("")
Next
diff --git a/Contabilidad/RepIVA.aspx.cs b/Contabilidad/RepIVA.aspx.cs
index dd79dcb50..4652cbd29 100644
--- a/Contabilidad/RepIVA.aspx.cs
+++ b/Contabilidad/RepIVA.aspx.cs
@@ -121,6 +121,10 @@ public partial class Contabilidad_RepIVA : ClsPaginas
GvIVAA.DataBind();
GvIVA2.DataBind();
UpDatos.Update();
+
+ String Str = "Se Consultó el Reporte de IVA. - " + UsuarioActual.Usuario;
+ Str.GuardaLog();
+
}
protected void BtnConsultar_Click(object sender, EventArgs e)
diff --git a/Contratos/ContratoObra.aspx.vb b/Contratos/ContratoObra.aspx.vb
index 14edb0b72..18d959c83 100644
--- a/Contratos/ContratoObra.aspx.vb
+++ b/Contratos/ContratoObra.aspx.vb
@@ -1115,9 +1115,7 @@ Partial Class Contratos_ContratoObra
Else
ObjContratos.Commit()
- If ObjContratos.GetContratos(-1, -1) Then
- Application("GlobalDTContratos") = ObjContratos.DtResultados
- End If
+ GlobalDTContratos(UsuarioActual.CveEmpresa) = Nothing
Limpiar()
If Modificado Then
diff --git a/Inventarios/InventarioFisicoDetalle.aspx b/Inventarios/InventarioFisicoDetalle.aspx
index 7fde8403c..b44053b71 100644
--- a/Inventarios/InventarioFisicoDetalle.aspx
+++ b/Inventarios/InventarioFisicoDetalle.aspx
@@ -1,98 +1,6 @@
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="InventarioFisicoDetalle.aspx.vb" Inherits="Inventarios_InventarioFisicoDetalle" %>
-
@@ -342,7 +250,8 @@
diff --git a/Inventarios/InventarioFisicoDetalle.aspx.vb b/Inventarios/InventarioFisicoDetalle.aspx.vb
index 1c33c5e3a..cdd2c7edb 100644
--- a/Inventarios/InventarioFisicoDetalle.aspx.vb
+++ b/Inventarios/InventarioFisicoDetalle.aspx.vb
@@ -86,8 +86,6 @@ Partial Class Inventarios_InventarioFisicoDetalle
GvIFD.DataBind()
If (GvIFD.Rows.Count > 0) Then
- GvIFD.UseAccessibleHeader = True
- GvIFD.HeaderRow.TableSection = TableRowSection.TableHeader
RegistraScript("OrdenarGV();")
End If
@@ -319,11 +317,11 @@ Partial Class Inventarios_InventarioFisicoDetalle
End If
Inventario.Dispose()
GvIFD.DataBind()
- If (GvIFD.Rows.Count > 0) Then
- GvIFD.UseAccessibleHeader = True
- GvIFD.HeaderRow.TableSection = TableRowSection.TableHeader
- RegistraScript("OrdenarGV();")
- End If
+ 'If (GvIFD.Rows.Count > 0) Then
+ ' GvIFD.UseAccessibleHeader = True
+ ' GvIFD.HeaderRow.TableSection = TableRowSection.TableHeader
+ ' RegistraScript("OrdenarGV();")
+ 'End If
UPPInventario.Update()
End Sub
#End Region
@@ -518,10 +516,14 @@ Partial Class Inventarios_InventarioFisicoDetalle
#End Region
#Region " ELIMINAR "
- Protected Sub gvInventarioFisicoDetalle_RowDeleting(sender As Object, e As GridViewDeleteEventArgs) Handles GvIFD.RowDeleting
+ Public Sub Delete_Click(sender As Object, e As EventArgs)
+
+ Dim ObjInventario As New ClsInventarios()
+ Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
+
If ddlUsuario.SelectedValue = UsuarioActual.CveUsuario.ToString OrElse UsuarioActual.TienePermisoProceso(283) Then
Dim Inventarios As New ClsInventarios
- Dim Retorno As Boolean = Inventarios.RemoveInventarioFisicoDetalles(GvIFD.DataKeys(e.RowIndex).Value.ToString.ToEntero())
+ Dim Retorno As Boolean = Inventarios.RemoveInventarioFisicoDetalles(GvRow.DataKey("CveInventarioFisicoDetalle").ToString.ToEntero)
If Retorno Then
If Inventarios.GetInventarioFisicoDetalle(CveInventarioFisico, ddlUsuario.SelectedValue.ToString.ToEntero) Then
@@ -532,18 +534,18 @@ Partial Class Inventarios_InventarioFisicoDetalle
Inventarios.Dispose()
GvIFD.DataBind()
- If (GvIFD.Rows.Count > 0) Then
- GvIFD.UseAccessibleHeader = True
- GvIFD.HeaderRow.TableSection = TableRowSection.TableHeader
- RegistraScript("OrdenarGV();")
- End If
+ 'If (GvIFD.Rows.Count > 0) Then
+ ' GvIFD.UseAccessibleHeader = True
+ ' GvIFD.HeaderRow.TableSection = TableRowSection.TableHeader
+ ' RegistraScript("OrdenarGV();")
+ 'End If
UPPInventario.Update()
UPAgregarPro.Update()
Else
Alert("No se puede eliminar un producto registrado por otro usuario.", TipoMensaje.MsgAdvertencia)
RegistraScript("playsonidito('142608__autistic-lucario__error.wav')")
- End If
+ End If
End Sub
#End Region
@@ -658,7 +660,7 @@ Partial Class Inventarios_InventarioFisicoDetalle
Private Sub LnkExcelUniverso_Click(sender As Object, e As EventArgs) Handles LnkExcelUniverso.Click
Dim IncluyePS, ExcluyePS, IncluyeClasificacion, ExcluyeClasificacion, IncluyeProveedor As New StringBuilder
Dim ObjInventario As New ClsInventarios
- Dim DtPS As DataTable
+ Dim DtPS As DataTable = Nothing
If ObjInventario.GetInventarioFisicoUniversoProductos(CveInventarioFisico, UsuarioActual.CveEmpresa) Then
If ObjInventario.DtResultados.Rows.Count > 0 Then
DtPS = ObjInventario.DtResultados.FiltraParametros("", "", {"Codigo", "PS", "Clasificacion", "RazonSocial"})
@@ -666,6 +668,8 @@ Partial Class Inventarios_InventarioFisicoDetalle
Alert("Error al consultar la informacion")
End If
End If
+ ObjInventario.Dispose()
+
Dim NombreArchivo As String
SpreadsheetInfo.SetLicense(ModExtensiones.SerialGemBoxSpreadsheet)
Dim workbook As New ExcelFile()
@@ -731,7 +735,7 @@ Partial Class Inventarios_InventarioFisicoDetalle
' UPAgregarPro.Update()
'End Sub
- Protected Sub LnkEditar_Click(sender As Object, e As EventArgs)
+ Protected Sub Edit_Click(sender As Object, e As EventArgs)
Dim GvRow As GridViewRow = DirectCast((DirectCast(sender, LinkButton)).NamingContainer, GridViewRow)
LimpiarModal()
@@ -744,16 +748,18 @@ Partial Class Inventarios_InventarioFisicoDetalle
TxtLoteEdit.Text = If(Convert.ToBoolean(GvRow.DataKey("AplicaLote").ToString), GvRow.DataKey("Lote").ToString, "")
TxtFechaCaducida.Text = If(Convert.ToBoolean(GvRow.DataKey("AplicaCaducidad").ToString), If(GvRow.DataKey("FechaCaducidad").ToString <> "", GvRow.DataKey("FechaCaducidad").ToString.ToDate.ToShortDateString, ""), "")
- TxtSerieLote.Enabled = Convert.ToBoolean(GvRow.DataKey("AplicaSerie").ToString)
- TxtLoteEdit.Enabled = Convert.ToBoolean(GvRow.DataKey("AplicaLote").ToString)
- TxtFechaCaducida.Enabled = Convert.ToBoolean(GvRow.DataKey("AplicaCaducidad").ToString)
+ DivSerieEdit.Visible = Convert.ToBoolean(GvRow.DataKey("AplicaSerie").ToString)
+ DivLoteEdit.Visible = Convert.ToBoolean(GvRow.DataKey("AplicaLote").ToString)
+ DivFechaEdit.Visible = Convert.ToBoolean(GvRow.DataKey("AplicaCaducidad").ToString)
TxtCantidad.Text = GvRow.DataKey("Cantidad").ToString
- UpEditarPS.Update()
+ UpAddInventarioFisico.Update()
RegistraScript("$('#ModalEditarPS').modal('show')")
End Sub
+
+
Private Sub LimpiarModal()
HfCveInventarioFisicoDetalle.Value = ""
HfCvePS.Value = ""
@@ -783,8 +789,6 @@ Partial Class Inventarios_InventarioFisicoDetalle
GvIFD.DataBind()
If (GvIFD.Rows.Count > 0) Then
- GvIFD.UseAccessibleHeader = True
- GvIFD.HeaderRow.TableSection = TableRowSection.TableHeader
RegistraScript("OrdenarGV();")
End If
diff --git a/Nomina/RegistroNomina.aspx b/Nomina/RegistroNomina.aspx.exclude
similarity index 100%
rename from Nomina/RegistroNomina.aspx
rename to Nomina/RegistroNomina.aspx.exclude
diff --git a/Nomina/RegistroNomina.aspx.vb b/Nomina/RegistroNomina.aspx.vb.exclude
similarity index 100%
rename from Nomina/RegistroNomina.aspx.vb
rename to Nomina/RegistroNomina.aspx.vb.exclude
diff --git a/OC/OC.aspx b/OC/OC.aspx
index 53efa69e3..113ef0fa1 100644
--- a/OC/OC.aspx
+++ b/OC/OC.aspx
@@ -2707,7 +2707,7 @@
-
+
@@ -2761,7 +2761,7 @@
-
+
@@ -2816,12 +2816,12 @@
$(document).ready(function () {
$('#<%= TxtSAImPorcentaje.ClientID%>').keyup(function () {
console.log($(this).val());
- var importe = (ToDouble($(this).val()) / 100) * ToDouble($get("LblTotal").value.replace(",", ""));
- $('#<%= TxtSAImporte.ClientID%>').val(FormatoNumero(importe, 2).replace(",", ""));
+ var importe = (ToDouble($(this).val()) / 100) * ToDouble($get("LblTotal").value.replace(/,/g, ''));
+ $('#<%= TxtSAImporte.ClientID%>').val(FormatoNumero(importe, 2).replace(/,/g, ""));
});
$('#<%= TxtSAImporte.ClientID%>').keyup(function () {
- var importe = (100 * ToDouble($(this).val())) / ToDouble($get("LblTotal").value.replace(",", ""));
- $('#<%= TxtSAImPorcentaje.ClientID%>').val(FormatoNumero(importe, 2).replace(",", ""));
+ var importe = (100 * ToDouble($(this).val())) / ToDouble($get("LblTotal").value.replace(/,/g, ""));
+ $('#<%= TxtSAImPorcentaje.ClientID%>').val(FormatoNumero(importe, 2).replace(/,/g, ""));
});
$get('HdnWidth').value = $("#DivConceptosContenido").width();
diff --git a/RH/Personal.aspx.vb b/RH/Personal.aspx.vb
index 88545e866..7c3ca2caf 100644
--- a/RH/Personal.aspx.vb
+++ b/RH/Personal.aspx.vb
@@ -5326,7 +5326,7 @@ Partial Class RH_Personal
Dim Serie As String = TxtLiberarSerie.Text.Trim
Dim CveResultadoSalida As Integer = ObjInventario.AddMovimiento(CveAlmacenUniforme, 3, 1, Date.Now, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, CveAlmacenDestino:=DdlAlmacenDestinoLiberarUniforme.SelectedValue.ToEntero, CvePersonal:=CvePersonal, Observaciones:=DescripcionUniforme)
- Dim ResultadoDetalleSalida As Boolean = ObjInventario.AddMovimientoDetalle(CveResultadoSalida, Cantidad, CveUM, CvePS, PU, CveSeccionAlmacen:=CveSeccionAlmacenUniforme, Serie:=Serie, CveMovimientoDetalleEntrada:=CveMovimientoDetalleUniforme)
+ Dim ResultadoDetalleSalida As Boolean = ObjInventario.AddMovimientoDetalle(CveResultadoSalida, Cantidad, CveUM, CvePS, PU, CveSeccionAlmacen:=-3, Serie:=Serie, CveMovimientoDetalleEntrada:=CveMovimientoDetalleUniforme)
Dim CveSeccionAlmacen As Integer = DdlSeccionAlmacen.SelectedValue.ToEntero
Dim CveResultadoEntrada As Integer = ObjInventario.AddMovimiento(DdlAlmacenDestinoLiberarUniforme.SelectedValue.ToEntero, 2, 1, Date.Now, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, CvePersonal:=CvePersonal, Observaciones:=DescripcionUniforme, CveMovimientoRelacionado:=CveMovimientoUniforme)
Dim ResultadoDetalleEntrada As Boolean = ObjInventario.AddMovimientoDetalle(CveResultadoEntrada, Cantidad, CveUM, CvePS, PU, CveSeccionAlmacen:=CveSeccionAlmacen, Serie:=Serie)