Merge branch 'master' of http://oirigoyen@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -261,7 +261,7 @@ Public Class ClsClientes
|
|||||||
End Sub
|
End Sub
|
||||||
Public Function GetClientes(CveCliente As Integer, Nombre As String, Codigo As String, NombreCorto As String, RFC As String, Telefono As String, Mail As String, CveSubProyecto As Integer,
|
Public Function GetClientes(CveCliente As Integer, Nombre As String, Codigo As String, NombreCorto As String, RFC As String, Telefono As String, Mail As String, CveSubProyecto As Integer,
|
||||||
CveEmpresa As Integer, Optional Estatus As Integer = 1, Optional Notificar As String = "-1", Optional CvePrecioLista As Integer = -1, Optional CveClienteClasificacion As Integer = -1,
|
CveEmpresa As Integer, Optional Estatus As Integer = 1, Optional Notificar As String = "-1", Optional CvePrecioLista As Integer = -1, Optional CveClienteClasificacion As Integer = -1,
|
||||||
Optional TipoCliente As Integer = 1, Optional CveVendedor As Integer = -1, Optional PermiteCreditoFiltro As Integer = -1) As Boolean
|
Optional TipoCliente As Integer = -1, Optional CveVendedor As Integer = -1, Optional PermiteCreditoFiltro As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_ClientesGet")
|
DataAdapter("PA_ClientesGet")
|
||||||
|
|||||||
3128
Bancos/IE.aspx
3128
Bancos/IE.aspx
File diff suppressed because it is too large
Load Diff
1943
Bancos/IE.aspx.vb
1943
Bancos/IE.aspx.vb
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -5574,17 +5574,18 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If TipoCambioCompra > 1 Then Concepto += $" TC:{TipoCambioCompra} ${importeMovimiento.FormatoNumero(2)}"
|
If TipoCambioCompra > 1 AndAlso DdlMoneda.SelectedValue.ToEntero <> 1 Then Concepto += $" TC:{TipoCambioCompra} ${importeMovimiento.FormatoNumero(2)}"
|
||||||
|
|
||||||
If TipoCambioCompra = 1 Then
|
If TipoCambioCompra = 1 Or DdlMoneda.SelectedValue.ToEntero = 1 Then
|
||||||
IdCtaContable = CtaProveedor
|
IdCtaContable = CtaProveedor
|
||||||
CveCuenta = CveCuentaProveedor
|
CveCuenta = CveCuentaProveedor
|
||||||
|
importeMovimiento = importeMN
|
||||||
Else
|
Else
|
||||||
IdCtaContable = CtaProveedorComplementaria
|
IdCtaContable = CtaProveedorComplementaria
|
||||||
CveCuenta = CveCuentaProveedorComplementaria
|
CveCuenta = CveCuentaProveedorComplementaria
|
||||||
If importeMovimiento <> 0 AndAlso (IdCtaContable > 0 Or CveCuenta > 0) Then 'Cuando tiene complementaria lo dividimos en dos
|
If importeMovimiento <> 0 AndAlso (IdCtaContable > 0 Or CveCuenta > 0) Then 'Cuando tiene complementaria lo dividimos en dos
|
||||||
importeMN = importeMovimiento
|
importeMN = importeMovimiento
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, Referencia, 201, Concepto, FechaMovimiento, IdCtaContable, -1, CveIE, CveProveedor:=CveProveedor, ImporteMX:=importeMovimiento * TipoCambioCompra - importeMovimiento, CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza, TipoCambio:=TipoCambioCompra) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMovimiento * TipoCambioCompra - importeMovimiento, Referencia, 206, Concepto, FechaMovimiento, IdCtaContable, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, ImporteMX:=importeMovimiento * TipoCambioCompra - importeMovimiento, ImporteME:=importeMovimiento, CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza, TipoCambio:=TipoCambioCompra) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -5600,9 +5601,9 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
importeMN = importeMovimiento * TCPago * Multiplicador
|
importeMN = importeMovimiento * TCPago * Multiplicador
|
||||||
|
|
||||||
If TCPago > 1 Then Concepto += $" TC:{TCPago} ${importeMovimiento.FormatoNumero(2)}"
|
If TCPago > 1 AndAlso CveMonedaPago <> 1 Then Concepto += $" TC:{TCPago} ${importeMovimiento.FormatoNumero(2)}"
|
||||||
|
|
||||||
If TCPago = 1 Then
|
If TCPago = 1 Or CveMonedaPago = 1 Then
|
||||||
IdCtaContable = IdCuentaBancaria
|
IdCtaContable = IdCuentaBancaria
|
||||||
CveCuenta = CveCuentaBancaria
|
CveCuenta = CveCuentaBancaria
|
||||||
Else
|
Else
|
||||||
@@ -5610,7 +5611,7 @@ Partial Class Compras_Compras
|
|||||||
CveCuenta = CveCuentaBancariaComplementaria
|
CveCuenta = CveCuentaBancariaComplementaria
|
||||||
If importeMovimiento <> 0 AndAlso (IdCtaContable > 0 Or CveCuenta > 0) Then 'Cuando tiene complementaria lo dividimos en dos
|
If importeMovimiento <> 0 AndAlso (IdCtaContable > 0 Or CveCuenta > 0) Then 'Cuando tiene complementaria lo dividimos en dos
|
||||||
importeMN = importeMovimiento
|
importeMN = importeMovimiento
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, Referencia, 201, Concepto, FechaMovimiento, IdCtaContable, -1, CveIE, CveProveedor:=CveProveedor, ImporteMX:=importeMovimiento * TCPago - importeMovimiento, CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza, TipoCambio:=TCPago) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMovimiento * TCPago - importeMovimiento, Referencia, 204, Concepto, FechaMovimiento, IdCtaContable, -1, CveIE, CveProveedor:=CveProveedor, ImporteMX:=importeMovimiento * TCPago - importeMovimiento, ImporteME:=importeMovimiento, CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza, TipoCambio:=TCPago) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -5656,7 +5657,7 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
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), CveCuenta:=CveCuentaIVA, PorcentajeImpuesto:=PorcentajeImpuesto, Contabilizable:=SeContabiliza) Then
|
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), CveCuenta:=CveCuentaIVA, PorcentajeImpuesto:=PorcentajeImpuesto, Contabilizable:=SeContabiliza, TipoCambio:=tipoCambioActual) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -5717,7 +5718,7 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 25, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaIEPS, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuentaIEPS, Contabilizable:=SeContabiliza) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 25, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaIEPS, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuentaIEPS, Contabilizable:=SeContabiliza, TipoCambio:=tipoCambioActual) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -5747,7 +5748,7 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
'Agregamos el Opuesto del 22 -> 15
|
'Agregamos el Opuesto del 22 -> 15
|
||||||
If importeMovimiento <> 0 Then
|
If importeMovimiento <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 15, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 15, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza, TipoCambio:=tipoCambioActual) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -5801,7 +5802,7 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
'Agregamos el Opuesto del 184 -> 183
|
'Agregamos el Opuesto del 184 -> 183
|
||||||
If importeMovimiento <> 0 Then
|
If importeMovimiento <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 183, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 183, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza, TipoCambio:=tipoCambioActual) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -5877,7 +5878,7 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
'Agregamos el Opuesto del 186 -> 185
|
'Agregamos el Opuesto del 186 -> 185
|
||||||
If importeMovimiento <> 0 Then
|
If importeMovimiento <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 185, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 185, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza, TipoCambio:=tipoCambioActual) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -5931,36 +5932,36 @@ Partial Class Compras_Compras
|
|||||||
If tipoCambioActual > 1 Then Concepto += $" TC:{tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}"
|
If tipoCambioActual > 1 Then Concepto += $" TC:{tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
Case 23 'RetISR Acreditable
|
'Case 23 'RetISR Acreditable
|
||||||
If Not DdlTipoComprobante.SelectedValue.Contiene("Ant") Then
|
' If Not DdlTipoComprobante.SelectedValue.Contiene("Ant") Then
|
||||||
If DdlRetISRConcepto.Items.Count > 0 AndAlso DdlRetISRConcepto.SelectedValue.ToEntero = 1 Then
|
' If DdlRetISRConcepto.Items.Count > 0 AndAlso DdlRetISRConcepto.SelectedValue.ToEntero = 1 Then
|
||||||
importeMovimiento = importeRetISRAcreditable
|
' importeMovimiento = importeRetISRAcreditable
|
||||||
importeMN = Math.Round(importeMovimiento, 2) * tipoCambioActual * Multiplicador
|
' importeMN = Math.Round(importeMovimiento, 2) * tipoCambioActual * Multiplicador
|
||||||
If CtaProveedorRetISR > 0 Then
|
' If CtaProveedorRetISR > 0 Then
|
||||||
IdCtaContable = CtaProveedorRetISR
|
' IdCtaContable = CtaProveedorRetISR
|
||||||
CveCuenta = CveCuentaProveedorRetISR
|
' CveCuenta = CveCuentaProveedorRetISR
|
||||||
ElseIf UsuarioActual.Empresa.Funcionalidad(316).ToEntero > 0 Then
|
' ElseIf UsuarioActual.Empresa.Funcionalidad(316).ToEntero > 0 Then
|
||||||
IdCtaContable = UsuarioActual.Empresa.Funcionalidad(316).ToEntero
|
' IdCtaContable = UsuarioActual.Empresa.Funcionalidad(316).ToEntero
|
||||||
Else
|
' Else
|
||||||
If ObjConta.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
|
' If ObjConta.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
|
||||||
If ObjConta.DtResultados.Rows.Count > 0 Then
|
' If ObjConta.DtResultados.Rows.Count > 0 Then
|
||||||
IdCtaContable = ObjConta.DtResultados.Rows(0)("IdCuentaRetISRCirculacion").ToString.ToEntero
|
' IdCtaContable = ObjConta.DtResultados.Rows(0)("IdCuentaRetISRCirculacion").ToString.ToEntero
|
||||||
CveCuenta = ObjConta.DtResultados.Rows(0)("IdCuentaRetISRCirculacionSIG").ToString.ToEntero
|
' CveCuenta = ObjConta.DtResultados.Rows(0)("IdCuentaRetISRCirculacionSIG").ToString.ToEntero
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
'Agregamos el Opuesto del 23 -> 16
|
' 'Agregamos el Opuesto del 23 -> 16
|
||||||
If importeMovimiento <> 0 Then
|
' If importeMovimiento <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 15, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza) Then
|
' If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 15, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza) Then
|
||||||
ErrorPrepoliza = True
|
' ErrorPrepoliza = True
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
|
|
||||||
If tipoCambioActual > 1 Then Concepto += $" TC:{tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}"
|
' If tipoCambioActual > 1 Then Concepto += $" TC:{tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}"
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
Case 16 'Ret ISR X Acreditar
|
Case 16 'Ret ISR X Acreditar
|
||||||
If Not DdlTipoComprobante.SelectedValue.Contiene("Ant") Then
|
If Not DdlTipoComprobante.SelectedValue.Contiene("Ant") Then
|
||||||
If DdlRetISRConcepto.Items.Count > 0 AndAlso DdlRetISRConcepto.SelectedValue.ToEntero = 1 Then
|
If DdlRetISRConcepto.Items.Count > 0 AndAlso DdlRetISRConcepto.SelectedValue.ToEntero = 1 Then
|
||||||
@@ -6003,34 +6004,34 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
If tipoCambioActual > 1 Then Concepto += $" TC:{tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}"
|
If tipoCambioActual > 1 Then Concepto += $" TC:{tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Case 244 'RetISR Acreditable Terceros y Arrendamiento
|
'Case 244 'RetISR Acreditable Terceros y Arrendamiento
|
||||||
If Not DdlTipoComprobante.SelectedValue.Contiene("Ant") Then
|
' If Not DdlTipoComprobante.SelectedValue.Contiene("Ant") Then
|
||||||
If DdlRetISRConcepto.Items.Count > 0 AndAlso DdlRetISRConcepto.SelectedValue.ToEntero = 2 Then
|
' If DdlRetISRConcepto.Items.Count > 0 AndAlso DdlRetISRConcepto.SelectedValue.ToEntero = 2 Then
|
||||||
importeMovimiento = importeRetISRAcreditable
|
' importeMovimiento = importeRetISRAcreditable
|
||||||
importeMN = Math.Round(importeMovimiento, 2) * tipoCambioActual * Multiplicador
|
' importeMN = Math.Round(importeMovimiento, 2) * tipoCambioActual * Multiplicador
|
||||||
If CtaProveedorRetISR > 0 Then
|
' If CtaProveedorRetISR > 0 Then
|
||||||
IdCtaContable = CtaProveedorRetISR
|
' IdCtaContable = CtaProveedorRetISR
|
||||||
CveCuenta = CveCuentaProveedorRetISR
|
' CveCuenta = CveCuentaProveedorRetISR
|
||||||
ElseIf UsuarioActual.Empresa.Funcionalidad(318).ToEntero > 0 Then
|
' ElseIf UsuarioActual.Empresa.Funcionalidad(318).ToEntero > 0 Then
|
||||||
IdCtaContable = UsuarioActual.Empresa.Funcionalidad(318).ToEntero
|
' IdCtaContable = UsuarioActual.Empresa.Funcionalidad(318).ToEntero
|
||||||
Else
|
' Else
|
||||||
If ObjConta.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
|
' If ObjConta.GetRetCuenta(ConceptoContable, UsuarioActual.CveEmpresa) Then
|
||||||
If ObjConta.DtResultados.Rows.Count > 0 Then
|
' If ObjConta.DtResultados.Rows.Count > 0 Then
|
||||||
IdCtaContable = ObjConta.DtResultados.Rows(0)("IdCuentaRetISRCirculacion").ToString.ToEntero
|
' IdCtaContable = ObjConta.DtResultados.Rows(0)("IdCuentaRetISRCirculacion").ToString.ToEntero
|
||||||
CveCuenta = ObjConta.DtResultados.Rows(0)("IdCuentaRetISRCirculacionSIG").ToString.ToEntero
|
' CveCuenta = ObjConta.DtResultados.Rows(0)("IdCuentaRetISRCirculacionSIG").ToString.ToEntero
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
'Agregamos el Opuesto del 244 -> 243
|
' 'Agregamos el Opuesto del 244 -> 243
|
||||||
If importeMovimiento <> 0 Then
|
' If importeMovimiento <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 243, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza) Then
|
' If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMovimiento, Referencia, 243, Concepto + If(tipoCambioActual > 1, $" TC: {tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}", ""), FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimiento * tipoCambioActual, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza) Then
|
||||||
ErrorPrepoliza = True
|
' ErrorPrepoliza = True
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
If tipoCambioActual > 1 Then Concepto += $" TC:{tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}"
|
' If tipoCambioActual > 1 Then Concepto += $" TC:{tipoCambioActual} ${importeMovimiento.FormatoNumero(2)}"
|
||||||
End If
|
' End If
|
||||||
End If
|
' End If
|
||||||
Case 64 'Ganancia
|
Case 64 'Ganancia
|
||||||
If TCPago <> 1 AndAlso TxtFechaPago.Text <> TxtFecha.Text Then
|
If TCPago <> 1 AndAlso TxtFechaPago.Text <> TxtFecha.Text Then
|
||||||
IdCtaContable = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
IdCtaContable = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
||||||
@@ -6227,8 +6228,8 @@ Partial Class Compras_Compras
|
|||||||
CostoIndirectoAcum176 += ImporteCI176
|
CostoIndirectoAcum176 += ImporteCI176
|
||||||
'se considera costoindirecto, para que la factura tiene en un concepto tipo servicio
|
'se considera costoindirecto, para que la factura tiene en un concepto tipo servicio
|
||||||
SumatoriaOCINV += (Dr(If(ListaDocumentos IsNot Nothing AndAlso ListaDocumentos.Count > 0 AndAlso ArrAnticipos IsNot Nothing AndAlso ArrAnticipos.Count > 0 AndAlso TxtTotal.Text.ToDecimal = 0, "ImporteSinImpuestos", "Total")).ToString.ToDecimal * tipoCambioActual) - (ImporteMN228 + ImporteMN229 - ImporteCI176)
|
SumatoriaOCINV += (Dr(If(ListaDocumentos IsNot Nothing AndAlso ListaDocumentos.Count > 0 AndAlso ArrAnticipos IsNot Nothing AndAlso ArrAnticipos.Count > 0 AndAlso TxtTotal.Text.ToDecimal = 0, "ImporteSinImpuestos", "Total")).ToString.ToDecimal * tipoCambioActual) - (ImporteMN228 + ImporteMN229 - ImporteCI176)
|
||||||
If ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, Importe228, Referencia, ConceptoContabilizacionME, Concepto, FechaMovimiento, IdCtaContableME, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, ImporteMX:=ImporteMN228, ImporteME:=ImporteME228, CveCuenta:=CveCuenta, CveOCDetalle:=Dr("CveOrdenCompraDetalle").ToString.ToEntero, TipoCambio:=TCAjuste, CveMovimientoAlmacen:=Dr("CveMovimientoAlmacen").ToString.ToEntero, Contabilizable:=SeContabiliza) Then
|
If ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, Importe228, Referencia, ConceptoContabilizacionME, Concepto, FechaMovimiento, IdCtaContableME, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, ImporteMX:=ImporteMN228, ImporteME:=ImporteME228, CveCuenta:=CveCuenta, CveOCDetalle:=Dr("CveOrdenCompraDetalle").ToString.ToEntero, TipoCambio:=TCAjuste, CveMovimientoAlmacen:=CveMovimientoAlmacen, Contabilizable:=SeContabiliza) Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, Importe229, Referencia, ConceptoContabilizacionMEComp, Concepto, FechaMovimiento, IdCtaContableMEComp, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, ImporteMX:=ImporteMN229, ImporteME:=ImporteME229, CveCuenta:=CveCuenta, CveOCDetalle:=Dr("CveOrdenCompraDetalle").ToString.ToEntero, TipoCambio:=TCAjuste, CveMovimientoAlmacen:=Dr("CveMovimientoAlmacen").ToString.ToEntero, Contabilizable:=SeContabiliza) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, Importe229, Referencia, ConceptoContabilizacionMEComp, Concepto, FechaMovimiento, IdCtaContableMEComp, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, ImporteMX:=ImporteMN229, ImporteME:=ImporteME229, CveCuenta:=CveCuenta, CveOCDetalle:=Dr("CveOrdenCompraDetalle").ToString.ToEntero, TipoCambio:=TCAjuste, CveMovimientoAlmacen:=CveMovimientoAlmacen, Contabilizable:=SeContabiliza) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
@@ -6301,7 +6302,7 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
Concepto = $"{NombreProveedor} {TxtSerie.Text} - {TxtFolio.Text}"
|
Concepto = $"{NombreProveedor} {TxtSerie.Text} - {TxtFolio.Text}"
|
||||||
|
|
||||||
If importeMovimiento > 0 And ChkNCInvNC.Checked Or TxtTotal.Text.ToDecimal = 0 And ChkNCInvNC.Checked Then
|
If importeMovimiento > 0 Or TxtTotal.Text.ToDecimal = 0 Then
|
||||||
RegistroCuentaPuente = True
|
RegistroCuentaPuente = True
|
||||||
'Conta ContPAQ
|
'Conta ContPAQ
|
||||||
If IdCtaContable = 0 Then
|
If IdCtaContable = 0 Then
|
||||||
|
|||||||
@@ -2941,9 +2941,11 @@ Partial Class PopUpVerFactura
|
|||||||
Dim params As New List(Of ReportParameter)
|
Dim params As New List(Of ReportParameter)
|
||||||
Dim CveFolio = ""
|
Dim CveFolio = ""
|
||||||
CreaDT()
|
CreaDT()
|
||||||
|
Dim ReporteEmpresa As New System.IO.FileInfo(String.Format("{0}Formatos/OrdenServicio.rdlc", UsuarioActual.Empresa.Ruta))
|
||||||
|
|
||||||
If ObjOS.GetOrdenesServicios(CveOS, -1, -1, -1, -1, UsuarioActual.CveEmpresa) Then
|
If ObjOS.GetOrdenesServicios(CveOS, -1, -1, -1, -1, UsuarioActual.CveEmpresa) Then
|
||||||
If ObjOS.DtResultados.Rows.Count > 0 Then
|
If ObjOS.DtResultados.Rows.Count > 0 Then
|
||||||
|
|
||||||
Dim dtOS As DataTable = ObjOS.DtResultados
|
Dim dtOS As DataTable = ObjOS.DtResultados
|
||||||
Dim dr As DataRow = dtOS.Rows(0)
|
Dim dr As DataRow = dtOS.Rows(0)
|
||||||
params.Add(New ReportParameter("Cliente", dr("Cliente").ToString))
|
params.Add(New ReportParameter("Cliente", dr("Cliente").ToString))
|
||||||
@@ -2957,41 +2959,65 @@ Partial Class PopUpVerFactura
|
|||||||
params.Add(New ReportParameter("ClienteColonia", dr("Colonia").ToString))
|
params.Add(New ReportParameter("ClienteColonia", dr("Colonia").ToString))
|
||||||
params.Add(New ReportParameter("ClienteCiudad", dr("Ciudad").ToString))
|
params.Add(New ReportParameter("ClienteCiudad", dr("Ciudad").ToString))
|
||||||
params.Add(New ReportParameter("ClienteEstado", dr("Estado").ToString))
|
params.Add(New ReportParameter("ClienteEstado", dr("Estado").ToString))
|
||||||
CveFolio = dr("Folio").ToString
|
CveFolio = dr("Folio").ToString
|
||||||
|
|
||||||
|
If ReporteEmpresa.Exists Then
|
||||||
|
params.Add(New ReportParameter("NoDeCliente", dr("CveCliente").ToString))
|
||||||
|
params.Add(New ReportParameter("RFC", dr("RFC").ToString))
|
||||||
|
params.Add(New ReportParameter("Vendedor", " "))
|
||||||
|
params.Add(New ReportParameter("Correo", dr("Correo").ToString))
|
||||||
|
params.Add(New ReportParameter("CodigoDeServicio", dr("CveOS").ToString))
|
||||||
|
params.Add(New ReportParameter("Sucursal", dr("SubProyecto").ToString))
|
||||||
|
params.Add(New ReportParameter("TipoServicio", dr("TipoServicio").ToString))
|
||||||
|
params.Add(New ReportParameter("TipoEquipo", dr("TipoEquipo").ToString))
|
||||||
|
params.Add(New ReportParameter("Descripcion", dr("Descripcion").ToString))
|
||||||
|
params.Add(New ReportParameter("Copia", "Copia: Original"))
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||||
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
|
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
|
||||||
|
|
||||||
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
If Not ReporteEmpresa.Exists Then
|
||||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
||||||
params.Add(New ReportParameter("FechaImpresion", Now.ToDateTime.ToShortDateString))
|
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||||
|
params.Add(New ReportParameter("FechaImpresion", Now.ToDateTime.ToShortDateString))
|
||||||
|
|
||||||
|
If Imagen.Exists Then
|
||||||
|
params.Add(New ReportParameter("LogoPath", logouri))
|
||||||
|
Else
|
||||||
|
params.Add(New ReportParameter("LogoPath", ""))
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ObjOS.GetOrdenesServiciosDetalle(CveOS) Then
|
||||||
|
TmpDTOS = ObjOS.DtResultados
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ObjOS.GetDetalleMateriales(-1, CveOS) Then
|
||||||
|
TmpDTMaterialesOS = ObjOS.DtResultados
|
||||||
|
End If
|
||||||
|
|
||||||
If Imagen.Exists Then
|
Dim lrds As New List(Of ReportDataSource)
|
||||||
params.Add(New ReportParameter("LogoPath", logouri))
|
Dim rds As New ReportDataSource With {.Name = "DataSet2", .Value = TmpDTMaterialesOS}
|
||||||
Else
|
Dim rds2 As New ReportDataSource With {.Name = "DataSet1", .Value = TmpDTOS}
|
||||||
params.Add(New ReportParameter("LogoPath", ""))
|
|
||||||
End If
|
lrds.Add(rds)
|
||||||
|
lrds.Add(rds2)
|
||||||
If ObjOS.GetOrdenesServiciosDetalle(CveOS) Then
|
ObjOS.Dispose()
|
||||||
TmpDTOS = ObjOS.DtResultados
|
|
||||||
End If
|
ImprimirPDF("Empresas/Grales/Formatos/OrdenServicio.rdlc", lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
|
||||||
|
Else
|
||||||
If ObjOS.GetDetalleMateriales(-1, CveOS) Then
|
Dim lrds As New List(Of ReportDataSource)
|
||||||
TmpDTMaterialesOS = ObjOS.DtResultados
|
Dim rds As New ReportDataSource With {.Name = "DataSet2", .Value = TmpDTMaterialesOS}
|
||||||
End If
|
Dim rds2 As New ReportDataSource With {.Name = "DataSet1", .Value = TmpDTOS}
|
||||||
|
|
||||||
Dim lrds As New List(Of ReportDataSource)
|
lrds.Add(rds)
|
||||||
Dim rds As New ReportDataSource With {.Name = "DataSet2", .Value = TmpDTMaterialesOS}
|
lrds.Add(rds2)
|
||||||
Dim rds2 As New ReportDataSource With {.Name = "DataSet1", .Value = TmpDTOS}
|
ObjOS.Dispose()
|
||||||
|
|
||||||
lrds.Add(rds)
|
ImprimirPDF(String.Format("Empresas/{0}/Formatos/OrdenServicio.rdlc", UsuarioActual.CveEmpresa), lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
|
||||||
lrds.Add(rds2)
|
End If
|
||||||
|
|
||||||
ImprimirPDF("Empresas/Grales/Formatos/OrdenServicio.rdlc", lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
|
|
||||||
|
|
||||||
ObjOS.Dispose()
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CreaDT()
|
Private Sub CreaDT()
|
||||||
TmpDTOS = New DataTable
|
TmpDTOS = New DataTable
|
||||||
|
|||||||
@@ -1,281 +1,281 @@
|
|||||||
Option Explicit On
|
Option Explicit On
|
||||||
Option Strict On
|
Option Strict On
|
||||||
|
|
||||||
Imports System.Data
|
Imports System.Data
|
||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
|
|
||||||
Partial Class Compras_RepNotasCredito
|
Partial Class Compras_RepNotasCredito
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
|
|
||||||
#Region "PROPIEDADES"
|
#Region "PROPIEDADES"
|
||||||
Private Property DtDatos As DataTable
|
Private Property DtDatos As DataTable
|
||||||
Get
|
Get
|
||||||
DtDatos = CType(ViewState("DtDatos"), DataTable)
|
DtDatos = CType(ViewState("DtDatos"), DataTable)
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
ViewState("DtDatos") = value
|
ViewState("DtDatos") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
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 Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
DdlProveedores.DataSource = GlobalDTCompProveedores(UsuarioActual.CveEmpresa)
|
DdlProveedores.DataSource = GlobalDTCompProveedores(UsuarioActual.CveEmpresa)
|
||||||
DdlProveedores.DataBind()
|
DdlProveedores.DataBind()
|
||||||
TxtFechaSaldar.Text = Now.ToShortDateString
|
TxtFechaSaldar.Text = Now.ToShortDateString
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
Dim ObjCompras As New ClsCompras
|
Dim ObjCompras As New ClsCompras
|
||||||
Dim FechaI, FechaF As String
|
Dim FechaI, FechaF As String
|
||||||
|
|
||||||
If txtFechaI.Text <> "" Then FechaI = txtFechaI.Text Else FechaI = "-1"
|
If txtFechaI.Text <> "" Then FechaI = txtFechaI.Text Else FechaI = "-1"
|
||||||
If txtFechaF.Text <> "" Then FechaF = txtFechaF.Text Else FechaF = "-1"
|
If txtFechaF.Text <> "" Then FechaF = txtFechaF.Text Else FechaF = "-1"
|
||||||
|
|
||||||
|
|
||||||
If ObjCompras.GetNotasCreditoRep(DdlProveedores.SelectedValue.ToEntero, DdlOpcion.SelectedValue.ToEntero, FechaI, FechaF, UsuarioActual.CveEmpresa) Then
|
If ObjCompras.GetNotasCreditoRep(DdlProveedores.SelectedValue.ToEntero, DdlOpcion.SelectedValue.ToEntero, FechaI, FechaF, UsuarioActual.CveEmpresa) Then
|
||||||
DtDatos = ObjCompras.DtResultados
|
DtDatos = ObjCompras.DtResultados
|
||||||
CargaGrid("")
|
CargaGrid("")
|
||||||
Else
|
Else
|
||||||
Alert("Ocurrió un error al obtener el catálogo de Notas de Crédito", Extensiones.TipoMensaje.MsgError)
|
Alert("Ocurrió un error al obtener el catálogo de Notas de Crédito", Extensiones.TipoMensaje.MsgError)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ObjCompras.Dispose()
|
ObjCompras.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub GvDatos_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
Protected Sub GvDatos_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
e.Row.FCHyperLink("HLRazonSocial").NavigateUrl = String.Format("/Compras/Proveedores.aspx?CveProveedor={0}", e.Row.DBCampo("CveProveedor"))
|
e.Row.FCHyperLink("HLRazonSocial").NavigateUrl = String.Format("/Compras/Proveedores.aspx?CveProveedor={0}", e.Row.DBCampo("CveProveedor"))
|
||||||
e.Row.FCHyperLink("HLSerieFolio").NavigateUrl = String.Format("/Compras/Compras.aspx?CveCompra={0}", e.Row.DBCampo("CveCompra"))
|
e.Row.FCHyperLink("HLSerieFolio").NavigateUrl = String.Format("/Compras/Compras.aspx?CveCompra={0}", e.Row.DBCampo("CveCompra"))
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs)
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub ImgExcel_Click(sender As Object, e As EventArgs) Handles ImgExcel.Click
|
Protected Sub ImgExcel_Click(sender As Object, e As EventArgs) Handles ImgExcel.Click
|
||||||
GvDatos.ExportToExcel("RepNotasCredito." & Now.ToShortDateString)
|
GvDatos.ExportToExcel("RepNotasCredito." & Now.ToShortDateString)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Private Sub GenerarPDF(Optional Formato As String = "PDF")
|
Private Sub GenerarPDF(Optional Formato As String = "PDF")
|
||||||
If DtDatos IsNot Nothing Then
|
If DtDatos IsNot Nothing Then
|
||||||
Dim StrFiltro As New StringBuilder
|
Dim StrFiltro As New StringBuilder
|
||||||
'StrFiltro.AppendFormat(String.Format("<b>Proveedor:</b> {0}, <b>Estatus:</b> {1}", DdlProveedores.SelectedItem.Text, DdlOpcion.SelectedItem.Text))
|
'StrFiltro.AppendFormat(String.Format("<b>Proveedor:</b> {0}, <b>Estatus:</b> {1}", DdlProveedores.SelectedItem.Text, DdlOpcion.SelectedItem.Text))
|
||||||
' If DdlTipoComprobante.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Tipo Documento</b>: {0}", DdlTipoComprobante.SelectedItem.Text)
|
' If DdlTipoComprobante.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Tipo Documento</b>: {0}", DdlTipoComprobante.SelectedItem.Text)
|
||||||
If DdlProveedores.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Proveedor:</b> {0}", DdlProveedores.SelectedItem.Text)
|
If DdlProveedores.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Proveedor:</b> {0}", DdlProveedores.SelectedItem.Text)
|
||||||
If DdlOpcion.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Estatus:</b> {0}", DdlOpcion.SelectedItem.Text)
|
If DdlOpcion.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Estatus:</b> {0}", DdlOpcion.SelectedItem.Text)
|
||||||
|
|
||||||
If txtFechaI.Text <> "" Then StrFiltro.AppendFormat(" <b>Fecha Inicio </b>: {0}", txtFechaI.Text.ToDate.ToShortDateString)
|
If txtFechaI.Text <> "" Then StrFiltro.AppendFormat(" <b>Fecha Inicio </b>: {0}", txtFechaI.Text.ToDate.ToShortDateString)
|
||||||
If txtFechaF.Text <> "" Then StrFiltro.AppendFormat(" <b>Fecha Fin </b>: {0}", txtFechaF.Text.ToDate.ToShortDateString)
|
If txtFechaF.Text <> "" Then StrFiltro.AppendFormat(" <b>Fecha Fin </b>: {0}", txtFechaF.Text.ToDate.ToShortDateString)
|
||||||
|
|
||||||
|
|
||||||
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||||
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
|
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
|
||||||
'Dim dt As DataTable = DtVentas.FiltraParametros("", "Orden") '.FiltraParametros("Total > 0", DistinctColumns:={"GPO", "Cantidad", "SubTotal", "Descuento", "Amortizacion", "IVA", "Total"})
|
'Dim dt As DataTable = DtVentas.FiltraParametros("", "Orden") '.FiltraParametros("Total > 0", DistinctColumns:={"GPO", "Cantidad", "SubTotal", "Descuento", "Amortizacion", "IVA", "Total"})
|
||||||
Dim FechaI, FechaF As String
|
Dim FechaI, FechaF As String
|
||||||
FechaI = If(txtFechaI.Text = "" Or txtFechaI.Text = "__/__/____", "-1", txtFechaI.Text)
|
FechaI = If(txtFechaI.Text = "" Or txtFechaI.Text = "__/__/____", "-1", txtFechaI.Text)
|
||||||
FechaF = If(txtFechaF.Text = "" Or txtFechaF.Text = "__/__/____", "-1", txtFechaF.Text)
|
FechaF = If(txtFechaF.Text = "" Or txtFechaF.Text = "__/__/____", "-1", txtFechaF.Text)
|
||||||
Dim params As New List(Of ReportParameter)
|
Dim params As New List(Of ReportParameter)
|
||||||
|
|
||||||
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
||||||
params.Add(New ReportParameter("FechaInicio", FechaI))
|
params.Add(New ReportParameter("FechaInicio", FechaI))
|
||||||
params.Add(New ReportParameter("FechaFin", FechaF))
|
params.Add(New ReportParameter("FechaFin", FechaF))
|
||||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||||
params.Add(New ReportParameter("FechaImpresion", Now.ToDateTime.ToShortDateString))
|
params.Add(New ReportParameter("FechaImpresion", Now.ToDateTime.ToShortDateString))
|
||||||
params.Add(New ReportParameter("Filtros", StrFiltro.ToString))
|
params.Add(New ReportParameter("Filtros", StrFiltro.ToString))
|
||||||
|
|
||||||
If Imagen.Exists Then
|
If Imagen.Exists Then
|
||||||
params.Add(New ReportParameter("LogoPath", logouri))
|
params.Add(New ReportParameter("LogoPath", logouri))
|
||||||
Else
|
Else
|
||||||
params.Add(New ReportParameter("LogoPath", ""))
|
params.Add(New ReportParameter("LogoPath", ""))
|
||||||
End If
|
End If
|
||||||
ImprimirPDF("Empresas/Grales/Formatos/RepNotasCredito.rdlc", DtDatos, params, String.Format("ReporteVentas-{0}", Now.ToDateTime.ToShortDateString), Formato:=Formato)
|
ImprimirPDF("Empresas/Grales/Formatos/RepNotasCredito.rdlc", DtDatos, params, String.Format("ReporteVentas-{0}", Now.ToDateTime.ToShortDateString), Formato:=Formato)
|
||||||
Else
|
Else
|
||||||
Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia)
|
Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub ImgImprimir_Click(sender As Object, e As EventArgs) Handles ImgImprimir.Click
|
Protected Sub ImgImprimir_Click(sender As Object, e As EventArgs) Handles ImgImprimir.Click
|
||||||
GenerarPDF()
|
GenerarPDF()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub LnkHabilitarSaldar_Click(sender As Object, e As EventArgs) Handles LnkHabilitarSaldar.Click
|
Private Sub LnkHabilitarSaldar_Click(sender As Object, e As EventArgs) Handles LnkHabilitarSaldar.Click
|
||||||
For Each gr As GridViewRow In GvDatos.Rows
|
For Each gr As GridViewRow In GvDatos.Rows
|
||||||
If gr.DataKey("CveCompra") <> "" Then
|
If gr.DataKey("CveCompra") <> "" Then
|
||||||
gr.FCCheckBox("Chk").Visible = True
|
gr.FCCheckBox("Chk").Visible = True
|
||||||
HLSaldar.Visible = True
|
HLSaldar.Visible = True
|
||||||
LnkHabilitarSaldar.Visible = False
|
LnkHabilitarSaldar.Visible = False
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub BtnSaldar_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnSaldar_Click(sender As Object, e As EventArgs)
|
||||||
Dim ObjConta As New ClsContabilidad
|
Dim ObjConta As New ClsContabilidad
|
||||||
ObjConta.IniciaTransacSQL()
|
ObjConta.IniciaTransacSQL()
|
||||||
Dim CvePrePoliza As Integer = 0
|
Dim CvePrePoliza As Integer = 0
|
||||||
Dim MsgError As String = ""
|
Dim MsgError As String = ""
|
||||||
Dim IdCtaContable As Integer = 0
|
Dim IdCtaContable As Integer = 0
|
||||||
Dim IdCtaContableComplementaria As Integer = 0
|
Dim IdCtaContableComplementaria As Integer = 0
|
||||||
Dim Importe As Decimal = 0
|
Dim Importe As Decimal = 0
|
||||||
Dim ImporteMN As Decimal = 0
|
Dim ImporteMN As Decimal = 0
|
||||||
Dim ImporteComplementaria As Decimal = 0
|
Dim ImporteComplementaria As Decimal = 0
|
||||||
Dim CveMoneda As Integer = 0
|
Dim CveMoneda As Integer = 0
|
||||||
Dim TC As Decimal = GlobalTipoCambio(TxtFechaSaldar.Text.ToDate).ToDecimal
|
Dim TC As Decimal = GlobalTipoCambio(TxtFechaSaldar.Text.ToDate).ToDecimal
|
||||||
Dim TCCompra As Decimal = 0
|
Dim TCCompra As Decimal = 0
|
||||||
Dim Concepto As String = TxtConcepto.Text
|
Dim Concepto As String = TxtConcepto.Text
|
||||||
Dim UsaComplementaria As Boolean = UsuarioActual.CveEmpresa.Contiene(119)
|
Dim UsaComplementaria As Boolean = UsuarioActual.CveEmpresa.Contiene(119)
|
||||||
Dim MensajeAlert = New StringBuilder
|
Dim MensajeAlert = New StringBuilder
|
||||||
|
|
||||||
For Each gr As GridViewRow In GvDatos.Rows
|
For Each gr As GridViewRow In GvDatos.Rows
|
||||||
If gr.FCCheckBox("Chk").Checked Then
|
If gr.FCCheckBox("Chk").Checked Then
|
||||||
IdCtaContable = 0
|
IdCtaContable = 0
|
||||||
IdCtaContableComplementaria = 0
|
IdCtaContableComplementaria = 0
|
||||||
Importe = gr.DataKey("Saldo").ToDecimal.RoundSQL
|
Importe = gr.DataKey("Saldo").ToDecimal.RoundSQL
|
||||||
ImporteMN = gr.DataKey("Saldo").ToDecimal.RoundSQL
|
ImporteMN = gr.DataKey("Saldo").ToDecimal.RoundSQL
|
||||||
TCCompra = gr.DataKey("TipoCambio").ToDecimal
|
TCCompra = gr.DataKey("TipoCambio").ToDecimal
|
||||||
CveMoneda = gr.DataKey("CveMoneda").ToEntero
|
CveMoneda = gr.DataKey("CveMoneda").ToEntero
|
||||||
|
|
||||||
CvePrePoliza = ObjConta.AddPrePolizas("Compras/RepNotasCredito", 103, gr.DataKey("Saldo").ToDecimal, gr.DataKey("Saldo").ToDecimal, gr.DataKey("CveMoneda").ToEntero, Now, "Saldado manual", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
CvePrePoliza = ObjConta.AddPrePolizas("Compras/RepNotasCredito", 103, gr.DataKey("Saldo").ToDecimal, gr.DataKey("Saldo").ToDecimal, gr.DataKey("CveMoneda").ToEntero, Now, "Saldado manual", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
|
|
||||||
If CveMoneda > 1 Then
|
If CveMoneda > 1 Then
|
||||||
IdCtaContable = gr.DataKey("IdCtaContExtranjera").ToEntero
|
IdCtaContable = gr.DataKey("IdCtaContExtranjera").ToEntero
|
||||||
ImporteMN = (gr.DataKey("Saldo").ToDecimal * TCCompra).RoundSQL
|
ImporteMN = (gr.DataKey("Saldo").ToDecimal * TCCompra).RoundSQL
|
||||||
Else
|
Else
|
||||||
IdCtaContable = gr.DataKey("IdCtaContProveedores").ToEntero
|
IdCtaContable = gr.DataKey("IdCtaContProveedores").ToEntero
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, -Importe, "", 18, Concepto, TxtFechaSaldar.Text.ToDate, IdCtaContable, -1, gr.DataKey("CveIE").ToEntero, CveProveedor:=gr.DataKey("CveProveedor").ToEntero, CvePersonal:=gr.DataKey("CvePersonal").ToEntero, ImporteMX:=-If(CveMoneda > 1 AndAlso UsaComplementaria, Importe, ImporteMN), ImporteME:=-If(CveMoneda > 1, Importe, 0), CveCompra:=gr.DataKey("CveCompra").ToEntero, CveCompraAmortizacion:=gr.DataKey("CveCompra").ToEntero, TipoCambio:=TCCompra) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, -Importe, "", 18, Concepto, TxtFechaSaldar.Text.ToDate, IdCtaContable, -1, gr.DataKey("CveIE").ToEntero, CveProveedor:=gr.DataKey("CveProveedor").ToEntero, CvePersonal:=gr.DataKey("CvePersonal").ToEntero, ImporteMX:=-If(CveMoneda > 1 AndAlso UsaComplementaria, Importe, ImporteMN), ImporteME:=-If(CveMoneda > 1, Importe, 0), CveCompra:=gr.DataKey("CveCompra").ToEntero, CveCompraAmortizacion:=gr.DataKey("CveCompra").ToEntero, TipoCambio:=TCCompra) Then
|
||||||
MsgError = "Ocurrio un Error al saldar el movimiento"
|
MsgError = "Ocurrio un Error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsaComplementaria AndAlso CveMoneda > 1 Then
|
If UsaComplementaria AndAlso CveMoneda > 1 Then
|
||||||
ImporteComplementaria = (Importe * TCCompra - Importe).RoundSQL
|
ImporteComplementaria = (Importe * TCCompra - Importe).RoundSQL
|
||||||
IdCtaContableComplementaria = gr.DataKey("IdCtaContComplementaria").ToEntero
|
IdCtaContableComplementaria = gr.DataKey("IdCtaContComplementaria").ToEntero
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, -ImporteComplementaria, "", 235, Concepto, TxtFechaSaldar.Text.ToDate, IdCtaContableComplementaria, -1, CveCompra:=gr.DataKey("CveCompra").ToEntero, CveCompraAmortizacion:=gr.DataKey("CveCompra").ToEntero, CvePersonal:=gr.DataKey("CvePersonal").ToEntero, CveProveedor:=gr.DataKey("CveProveedor").ToEntero, ImporteMX:=-ImporteComplementaria, ImporteME:=-ImporteComplementaria, TipoCambioPago:=TC, TipoCambio:=TCCompra) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, -ImporteComplementaria, "", 235, Concepto, TxtFechaSaldar.Text.ToDate, IdCtaContableComplementaria, -1, CveCompra:=gr.DataKey("CveCompra").ToEntero, CveCompraAmortizacion:=gr.DataKey("CveCompra").ToEntero, CvePersonal:=gr.DataKey("CvePersonal").ToEntero, CveProveedor:=gr.DataKey("CveProveedor").ToEntero, ImporteMX:=-ImporteComplementaria, ImporteME:=-ImporteComplementaria, TipoCambioPago:=TC, TipoCambio:=TCCompra) Then
|
||||||
MsgError = "Ocurrio un Error al saldar el movimiento"
|
MsgError = "Ocurrio un Error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
IdCtaContable = UsuarioActual.Empresa.Funcionalidad(564).ToString.ToEntero
|
IdCtaContable = UsuarioActual.Empresa.Funcionalidad(564).ToString.ToEntero
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Importe, "", 211, Concepto, TxtFechaSaldar.Text.ToDate, IdCtaContable, -1, gr.DataKey("CveIE").ToEntero, ImporteMX:=If(CveMoneda > 1, (Importe * TC), Importe).RoundSQL, CveCuenta:=-1, CveCompra:=gr.DataKey("CveCompra").ToEntero, CveProveedor:=gr.DataKey("CveProveedor").ToEntero) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Importe, "", 211, Concepto, TxtFechaSaldar.Text.ToDate, IdCtaContable, -1, gr.DataKey("CveIE").ToEntero, ImporteMX:=If(CveMoneda > 1, (Importe * TC), Importe).RoundSQL, CveCuenta:=-1, CveCompra:=gr.DataKey("CveCompra").ToEntero, CveProveedor:=gr.DataKey("CveProveedor").ToEntero) Then
|
||||||
MsgError = "Ocurrio un Error al saldar el movimiento"
|
MsgError = "Ocurrio un Error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If TC <> TCCompra AndAlso CveMoneda > 1 AndAlso UsaComplementaria Then
|
If TC <> TCCompra AndAlso CveMoneda > 1 AndAlso UsaComplementaria Then
|
||||||
Dim difFluctuacion As Decimal = TC - TCCompra
|
Dim difFluctuacion As Decimal = TC - TCCompra
|
||||||
Dim CveConceptoFluctua As Integer = 64 '64.ganacia, 65.perdida
|
Dim CveConceptoFluctua As Integer = 64 '64.ganacia, 65.perdida
|
||||||
Dim TipoMovtoFluctua As Boolean = True
|
Dim TipoMovtoFluctua As Boolean = True
|
||||||
Dim IdCtaContableFluctua As Integer
|
Dim IdCtaContableFluctua As Integer
|
||||||
Dim CveCuenta As Integer = 0
|
Dim CveCuenta As Integer = 0
|
||||||
If difFluctuacion < 0 Then
|
If difFluctuacion < 0 Then
|
||||||
CveConceptoFluctua = 65
|
CveConceptoFluctua = 65
|
||||||
TipoMovtoFluctua = False
|
TipoMovtoFluctua = False
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
|
||||||
CveCuenta = UsuarioActual.Empresa.CveCuentaPerdidaCambiaria
|
CveCuenta = UsuarioActual.Empresa.CveCuentaPerdidaCambiaria
|
||||||
Else
|
Else
|
||||||
CveConceptoFluctua = 64
|
CveConceptoFluctua = 64
|
||||||
TipoMovtoFluctua = True
|
TipoMovtoFluctua = True
|
||||||
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
IdCtaContableFluctua = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
||||||
CveCuenta = UsuarioActual.Empresa.CveCuentaGananciaCambiaria
|
CveCuenta = UsuarioActual.Empresa.CveCuentaGananciaCambiaria
|
||||||
End If
|
End If
|
||||||
Dim ImporteFluctuacion As Decimal = Math.Abs((Importe * difFluctuacion).RoundSQL)
|
Dim ImporteFluctuacion As Decimal = Math.Abs((Importe * difFluctuacion).RoundSQL)
|
||||||
|
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoFluctua, ImporteFluctuacion, "", CveConceptoFluctua, Concepto, Now, IdCtaContableFluctua, -1, CveCompra:=gr.DataKey("CveCompra").ToEntero, CveProveedor:=gr.DataKey("CveProveedor").ToEntero, ImporteMX:=ImporteFluctuacion, ImporteME:=ImporteFluctuacion, TipoCambio:=TCCompra, TipoCambioPago:=TC, CveCuenta:=CveCuenta) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoFluctua, ImporteFluctuacion, "", CveConceptoFluctua, Concepto, Now, IdCtaContableFluctua, -1, CveCompra:=gr.DataKey("CveCompra").ToEntero, CveProveedor:=gr.DataKey("CveProveedor").ToEntero, ImporteMX:=ImporteFluctuacion, ImporteME:=ImporteFluctuacion, TipoCambio:=TCCompra, TipoCambioPago:=TC, CveCuenta:=CveCuenta) Then
|
||||||
MsgError = "Ocurrio un Error al saldar el movimiento"
|
MsgError = "Ocurrio un Error al saldar el movimiento"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ObjConta.ValidacionPrePolizaCuadre(CvePrePoliza, 5) Then
|
If ObjConta.ValidacionPrePolizaCuadre(CvePrePoliza, 5) Then
|
||||||
If ObjConta.ValorPolizaDescuadre > 0 Then
|
If ObjConta.ValorPolizaDescuadre > 0 Then
|
||||||
MsgError = ObjConta.MensajePolizaDescuadre
|
MsgError = ObjConta.MensajePolizaDescuadre
|
||||||
GuardaLogAD($"Ventas/Ventas-ProcesoPrePolizas | Error:{ObjConta.MensajePolizaDescuadre} Diferencia:{ObjConta.ValorDiferencia} | CvePrePoliza:{CvePrePoliza}", "LogPrePolizas")
|
GuardaLogAD($"Ventas/Ventas-ProcesoPrePolizas | Error:{ObjConta.MensajePolizaDescuadre} Diferencia:{ObjConta.ValorDiferencia} | CvePrePoliza:{CvePrePoliza}", "LogPrePolizas")
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso MsgError = "" Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso MsgError = "" Then
|
||||||
If ObjConta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
If ObjConta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
||||||
If MensajeAlert.ToString = "" Then
|
If MensajeAlert.ToString = "" Then
|
||||||
MensajeAlert.AppendFormat("Los siguientes movimientos fueron saldados correctamente: <br/>")
|
MensajeAlert.AppendFormat("Los siguientes movimientos fueron saldados correctamente: <br/>")
|
||||||
End If
|
End If
|
||||||
MensajeAlert.AppendFormat("<ul><li><a Class=""Texto"" href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Poliza {1}</a></li></ul>", ObjConta.ContaIdPoliza, ObjConta.ContaFolio)
|
MensajeAlert.AppendFormat("<ul><li><a Class=""Texto"" href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Poliza {1}</a></li></ul>", ObjConta.ContaIdPoliza, ObjConta.ContaFolio)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If MsgError <> "" Then Exit For
|
If MsgError <> "" Then Exit For
|
||||||
|
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|
||||||
If MsgError = "" Then
|
If MsgError = "" Then
|
||||||
ObjConta.Commit()
|
ObjConta.Commit()
|
||||||
If MensajeAlert.ToString <> "" Then
|
If MensajeAlert.ToString <> "" Then
|
||||||
Alert(MensajeAlert.ToString)
|
Alert(MensajeAlert.ToString)
|
||||||
Else
|
Else
|
||||||
Alert("Los movimientos fueron saldados correctamente.")
|
Alert("Los movimientos fueron saldados correctamente.")
|
||||||
End If
|
End If
|
||||||
Alert(MensajeAlert.ToString)
|
Alert(MensajeAlert.ToString)
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
HLSaldar.Visible = False
|
HLSaldar.Visible = False
|
||||||
RegistraScript("$('#DivSaldar').modal('hide')")
|
RegistraScript("$('#DivSaldar').modal('hide')")
|
||||||
LnkHabilitarSaldar.Visible = True
|
LnkHabilitarSaldar.Visible = True
|
||||||
Else
|
Else
|
||||||
ObjConta.RollBack()
|
ObjConta.RollBack()
|
||||||
Alert(MsgError, TipoMensaje.MsgError)
|
Alert(MsgError, TipoMensaje.MsgError)
|
||||||
End If
|
End If
|
||||||
ObjConta.Dispose()
|
ObjConta.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LnkSaldar_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkSaldar_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
#Region "O R D E N A M I E N T O"
|
#Region "O R D E N A M I E N T O"
|
||||||
Protected Sub LbOrden_Click(ByVal sender As Object, ByVal e As EventArgs)
|
Protected Sub LbOrden_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
Dim Orden As String = ""
|
Dim Orden As String = ""
|
||||||
Dim Campo As String = ""
|
Dim Campo As String = ""
|
||||||
Dim Literal As Literal = Nothing
|
Dim Literal As Literal = Nothing
|
||||||
Const OrdenInicial As String = ""
|
Const OrdenInicial As String = ""
|
||||||
Dim Arg(2) As String
|
Dim Arg(2) As String
|
||||||
|
|
||||||
Arg = CType(sender, LinkButton).CommandArgument().ToString.Split(";"c)
|
Arg = CType(sender, LinkButton).CommandArgument().ToString.Split(";"c)
|
||||||
Campo = Arg(0)
|
Campo = Arg(0)
|
||||||
Literal = CType(CType(sender, LinkButton).NamingContainer.FindControl("Img" & Campo.Replace(", ", "_")), Literal)
|
Literal = CType(CType(sender, LinkButton).NamingContainer.FindControl("Img" & Campo.Replace(", ", "_")), Literal)
|
||||||
|
|
||||||
If ViewState(String.Format("O{0}", Campo)) IsNot Nothing AndAlso ViewState(String.Format("O{0}", Campo)).ToString = String.Format("{0} DESC", Campo) Then
|
If ViewState(String.Format("O{0}", Campo)) IsNot Nothing AndAlso ViewState(String.Format("O{0}", Campo)).ToString = String.Format("{0} DESC", Campo) Then
|
||||||
ViewState(String.Format("O{0}", Campo)) = String.Format("{0} ASC", Campo)
|
ViewState(String.Format("O{0}", Campo)) = String.Format("{0} ASC", Campo)
|
||||||
Literal.Text = String.Format("<i class='fa fa-sort-asc' style='color:#999' ></i>")
|
Literal.Text = String.Format("<i class='fa fa-sort-asc' style='color:#999' ></i>")
|
||||||
Else
|
Else
|
||||||
ViewState(String.Format("O{0}", Campo)) = String.Format("{0} DESC", Campo)
|
ViewState(String.Format("O{0}", Campo)) = String.Format("{0} DESC", Campo)
|
||||||
Literal.Text = String.Format("<i class='fa fa-sort-desc' style='color:#999' ></i>")
|
Literal.Text = String.Format("<i class='fa fa-sort-desc' style='color:#999' ></i>")
|
||||||
End If
|
End If
|
||||||
Orden = OrdenInicial & ViewState(String.Format("O{0}", Campo)).ToString
|
Orden = OrdenInicial & ViewState(String.Format("O{0}", Campo)).ToString
|
||||||
ViewState("Orden") = Orden
|
ViewState("Orden") = Orden
|
||||||
CargaGrid(Orden)
|
CargaGrid(Orden)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub CargaGrid(Orden As String)
|
Protected Sub CargaGrid(Orden As String)
|
||||||
Dim DV As DataView = Nothing
|
Dim DV As DataView = Nothing
|
||||||
DV = New DataView(DtDatos, "", Orden, DataViewRowState.CurrentRows)
|
DV = New DataView(DtDatos, "", Orden, DataViewRowState.CurrentRows)
|
||||||
If Orden <> String.Empty Then
|
If Orden <> String.Empty Then
|
||||||
GvDatos.DataSource = DV.ToTable()
|
GvDatos.DataSource = DV.ToTable()
|
||||||
Else
|
Else
|
||||||
GvDatos.DataSource = DtDatos
|
GvDatos.DataSource = DtDatos
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GvDatos.DataBind()
|
GvDatos.DataBind()
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
DV.Dispose()
|
DV.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,268 +1,268 @@
|
|||||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="RepIVA.aspx.cs" Inherits="Contabilidad_RepIVA" %>
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="RepIVA.aspx.cs" Inherits="Contabilidad_RepIVA" %>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
<style>
|
<style>
|
||||||
.truncate2 {
|
.truncate2 {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
max-width:100px;
|
max-width:100px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
Reporte de Impuestos
|
Reporte de Impuestos
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkPdf" OnClick="LnkPdf_Click" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
<asp:LinkButton ID="LnkPdf" OnClick="LnkPdf_Click" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkExcel" OnClick="LnkExcel_Click" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
<asp:LinkButton ID="LnkExcel" OnClick="LnkExcel_Click" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:HyperLink NavigateUrl="javascript:;" data-toggle="modal" data-target="#DivTipoCambio" ID="ImgTipoCambio" runat="server"> <i class="fa fa-money"></i> Ver Dlls en pesos</asp:HyperLink>
|
<asp:HyperLink NavigateUrl="javascript:;" data-toggle="modal" data-target="#DivTipoCambio" ID="ImgTipoCambio" runat="server"> <i class="fa fa-money"></i> Ver Dlls en pesos</asp:HyperLink>
|
||||||
</li>
|
</li>
|
||||||
<asp:UpdatePanel runat="server" ID="UpAccionesDIOT" UpdateMode="Conditional" >
|
<asp:UpdatePanel runat="server" ID="UpAccionesDIOT" UpdateMode="Conditional" >
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkAccionesDIOT" OnClick="LnkAccionesDIOT_Click" runat="server" Visible="false"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> Generar DIOT</asp:LinkButton>
|
<asp:LinkButton ID="LnkAccionesDIOT" OnClick="LnkAccionesDIOT_Click" runat="server" Visible="false"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> Generar DIOT</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
<Triggers>
|
<Triggers>
|
||||||
<asp:PostBackTrigger ControlID="LnkAccionesDIOT" />
|
<asp:PostBackTrigger ControlID="LnkAccionesDIOT" />
|
||||||
</Triggers>
|
</Triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
<asp:UpdatePanel ID="UPPFiltros" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPPFiltros" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
<div class="portlet-title portlet-filterT smalltitle">
|
<div class="portlet-title portlet-filterT smalltitle">
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" OnClick="BtnConsultar_Click" CssClass="btn btn-primary" />
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" OnClick="BtnConsultar_Click" CssClass="btn btn-primary" />
|
||||||
</div>
|
</div>
|
||||||
<div class="titlefiltros caption ">
|
<div class="titlefiltros caption ">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-1 truncate">Fecha Inicio:</label>
|
<label class="col-md-1 truncate">Fecha Inicio:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<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 ID="txtFechaI" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
<asp:TextBox ID="txtFechaI" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="ImgCalendarioI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="ImgCalendarioI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<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="CalendarExtender1" TargetControlID="txtFechaI" PopupButtonID="ImgCalendarioI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="txtFechaI" PopupButtonID="ImgCalendarioI" 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: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>
|
<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="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>
|
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 truncate">Fecha Fin:</label>
|
<label class="col-md-1 truncate">Fecha Fin:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<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 ID="txtFechaF" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
<asp:TextBox ID="txtFechaF" runat="server" CssClass="form-control" Width="99%" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="txtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<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>
|
<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: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>
|
<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="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>
|
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 truncate">Tipo Movto:</label>
|
<label class="col-md-1 truncate">Tipo Movto:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlTipoMovto" runat="server">
|
<asp:DropDownList ID="DdlTipoMovto" runat="server">
|
||||||
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Conciliados" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Conciliados" Value="1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<ajax:TabContainer ID="TT" runat="server" ActiveTabIndex="0" Width="100%">
|
<ajax:TabContainer ID="TT" runat="server" ActiveTabIndex="0" Width="100%">
|
||||||
<ajax:TabPanel ID="TTr" runat="server" HeaderText="IVA Trasladado">
|
<ajax:TabPanel ID="TTr" runat="server" HeaderText="IVA Trasladado">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
<h4><b>IVA Trasladado</b></h4>
|
<h4><b>IVA Trasladado</b></h4>
|
||||||
<asp:GridView ID="GvT" runat="server" EmptyDataText="No se encontraron datos con los filtros seleccionados" OnRowDataBound="GvIVATrasladado_RowDataBound" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="99%" GridLines="None" AutoGenerateColumns="false">
|
<asp:GridView ID="GvT" runat="server" EmptyDataText="No se encontraron datos con los filtros seleccionados" OnRowDataBound="GvIVATrasladado_RowDataBound" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="99%" GridLines="None" AutoGenerateColumns="false">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Docto" DataField="TipoDocto" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField HeaderText="Docto" DataField="TipoDocto" ItemStyle-HorizontalAlign="Center" />
|
||||||
<asp:BoundField HeaderText="Fecha Documento" DataField="FechaDocumento" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField HeaderText="Fecha Documento" DataField="FechaDocumento" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
||||||
<asp:HyperLinkField DataTextField="SerieFolio" DataNavigateUrlFields="CveVenta" Target="_blank" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" HeaderText="Folio" ControlStyle-Width="85px" />
|
<asp:HyperLinkField DataTextField="SerieFolio" DataNavigateUrlFields="CveVenta" Target="_blank" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" HeaderText="Folio" ControlStyle-Width="85px" />
|
||||||
<asp:BoundField HeaderText="SubTotal" DataField="SubTotal" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="SubTotal" DataField="SubTotal" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="%IVA" DataField="PorcentajeIVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="%IVA" DataField="PorcentajeIVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="IEPS" DataField="IEPS" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IEPS" DataField="IEPS" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="RetIVA" DataField="RetIVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="RetIVA" DataField="RetIVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="RetISR" DataField="RetISR" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="RetISR" DataField="RetISR" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
|
||||||
|
|
||||||
<asp:HyperLinkField HeaderText="Cliente" DataNavigateUrlFields="CveCliente" DataNavigateUrlFormatString="/Ventas/Clientes.aspx?CveCliente={0}" DataTextField="Nombre" ControlStyle-CssClass="truncate2" />
|
<asp:HyperLinkField HeaderText="Cliente" DataNavigateUrlFields="CveCliente" DataNavigateUrlFormatString="/Ventas/Clientes.aspx?CveCliente={0}" DataTextField="Nombre" ControlStyle-CssClass="truncate2" />
|
||||||
<asp:HyperLinkField HeaderText="Folio Bancario" DataNavigateUrlFields="CveIE" DataNavigateUrlFormatString="/Bancos/IE.aspx?CveIE={0}" DataTextField="FolioIE" Target="_blank" />
|
<asp:HyperLinkField HeaderText="Folio Bancario" DataNavigateUrlFields="CveIE" DataNavigateUrlFormatString="/Bancos/IE.aspx?CveIE={0}" DataTextField="FolioIE" Target="_blank" />
|
||||||
|
|
||||||
<asp:BoundField HeaderText="Num. Cuenta" DataField="NumCuenta" ItemStyle-CssClass="truncate2" />
|
<asp:BoundField HeaderText="Num. Cuenta" DataField="NumCuenta" ItemStyle-CssClass="truncate2" />
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div id="DvTipo" class="col-md-6">
|
<div id="DvTipo" class="col-md-6">
|
||||||
<h4><b>IEPS por Porcentaje</b></h4>
|
<h4><b>IEPS por Porcentaje</b></h4>
|
||||||
<asp:GridView ID="GvIEPSA" runat="server" EmptyDataText="" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="400px" GridLines="None" AutoGenerateColumns="false">
|
<asp:GridView ID="GvIEPSA" runat="server" EmptyDataText="" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="400px" GridLines="None" AutoGenerateColumns="false">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Porcentaje" DataField="PorcentajeIEPS" />
|
<asp:BoundField HeaderText="Porcentaje" DataField="PorcentajeIEPS" />
|
||||||
<asp:BoundField HeaderText="Categoria" DataField="Categoria" />
|
<asp:BoundField HeaderText="Categoria" DataField="Categoria" />
|
||||||
<asp:BoundField HeaderText="IEPS" DataField="IEPS" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IEPS" DataField="IEPS" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Base" DataField="Base" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Base" DataField="Base" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<h4><b>IVA por Porcentaje</b></h4>
|
<h4><b>IVA por Porcentaje</b></h4>
|
||||||
<asp:GridView ID="GvIVAA" runat="server" EmptyDataText="" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="400px" GridLines="None" AutoGenerateColumns="false">
|
<asp:GridView ID="GvIVAA" runat="server" EmptyDataText="" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="400px" GridLines="None" AutoGenerateColumns="false">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Porcentaje" DataField="PorcentajeIVA" />
|
<asp:BoundField HeaderText="Porcentaje" DataField="PorcentajeIVA" />
|
||||||
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Base" DataField="Base" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Base" DataField="Base" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
|
|
||||||
<ajax:TabPanel ID="TA" runat="server" HeaderText="IVA Acreditable">
|
<ajax:TabPanel ID="TA" runat="server" HeaderText="IVA Acreditable">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<h4><b>IVA Acreditable</b></h4>
|
<h4><b>IVA Acreditable</b></h4>
|
||||||
<asp:Label ID="LblMsgAcreditable" runat="server" Text="" ForeColor="Red"></asp:Label>
|
<asp:Label ID="LblMsgAcreditable" runat="server" Text="" ForeColor="Red"></asp:Label>
|
||||||
<asp:GridView ID="GvA" runat="server" EmptyDataText="No se encontraron datos con los filtros seleccionados" OnRowDataBound="GvIVAAcreditable_RowDataBound" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="99%" GridLines="None" AutoGenerateColumns="false">
|
<asp:GridView ID="GvA" runat="server" EmptyDataText="No se encontraron datos con los filtros seleccionados" OnRowDataBound="GvIVAAcreditable_RowDataBound" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="99%" GridLines="None" AutoGenerateColumns="false">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Docto" DataField="TipoDocto" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField HeaderText="Docto" DataField="TipoDocto" ItemStyle-HorizontalAlign="Center" />
|
||||||
<asp:BoundField HeaderText="RFC" DataField="RFC" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField HeaderText="RFC" DataField="RFC" ItemStyle-HorizontalAlign="Center" />
|
||||||
<asp:HyperLinkField HeaderText="Proveedor" DataNavigateUrlFields="CveProveedor" DataNavigateUrlFormatString="/Compras/Proveedores.aspx?CveProveedor={0}" DataTextField="RazonSocial" ControlStyle-CssClass="truncate2" />
|
<asp:HyperLinkField HeaderText="Proveedor" DataNavigateUrlFields="CveProveedor" DataNavigateUrlFormatString="/Compras/Proveedores.aspx?CveProveedor={0}" DataTextField="RazonSocial" ControlStyle-CssClass="truncate2" />
|
||||||
<asp:BoundField HeaderText="Fecha Documento" DataField="FechaDocumento" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField HeaderText="Fecha Documento" DataField="FechaDocumento" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
||||||
<asp:HyperLinkField DataTextField="SerieFolio" DataNavigateUrlFields="CveCompra" Target="_blank" DataNavigateUrlFormatString="/Compras/Compras.aspx?CveCompra={0}" HeaderText="Folio" />
|
<asp:HyperLinkField DataTextField="SerieFolio" DataNavigateUrlFields="CveCompra" Target="_blank" DataNavigateUrlFormatString="/Compras/Compras.aspx?CveCompra={0}" HeaderText="Folio" />
|
||||||
<asp:BoundField HeaderText="SubTotal 16%" DataField="valorActos1516" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="SubTotal 16%" DataField="valorActos1516" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="SubTotal 8%" DataField="valorActosImp8" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="SubTotal 8%" DataField="valorActosImp8" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="SubTotal 0%" DataField="valorActosImp0" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="SubTotal 0%" DataField="valorActosImp0" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="%IVA" DataField="PorcentajeIVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="%IVA" DataField="PorcentajeIVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="IEPS" DataField="IEPS" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IEPS" DataField="IEPS" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
<asp:Label ID="LblHRetIVAHon" data-toggle="tooltip" data-placement="top" ToolTip="Ret IVA Honorario/Serv. Prof." runat="server">RetIVA <br/>Hon/Ser.Prof.</asp:Label>
|
<asp:Label ID="LblHRetIVAHon" data-toggle="tooltip" data-placement="top" ToolTip="Ret IVA Honorario/Serv. Prof." runat="server">RetIVA <br/>Hon/Ser.Prof.</asp:Label>
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LblRetIVAHon" runat="server" Text='<%# Eval("RetIVAHonorario", "{0:N2}") %>'></asp:Label>
|
<asp:Label ID="LblRetIVAHon" runat="server" Text='<%# Eval("RetIVAHonorario", "{0:N2}") %>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:BoundField HeaderText="RetIVA <br/> Fletes P.F" HtmlEncode="False" DataField="RetIVAFletePF" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="RetIVA <br/> Fletes P.F" HtmlEncode="False" DataField="RetIVAFletePF" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="RetIVA <br/> Fletes P.M." HtmlEncode="False" DataField="RetIVAFletePM" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="RetIVA <br/> Fletes P.M." HtmlEncode="False" DataField="RetIVAFletePM" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="RetIVA <br/> Arrenda." HtmlEncode="False" DataField="RetIVAArrend" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="RetIVA <br/> Arrenda." HtmlEncode="False" DataField="RetIVAArrend" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
|
||||||
<asp:BoundField HeaderText="RetISR <br/> Honorario" HtmlEncode="False" DataField="RetISR" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="RetISR <br/> Honorario" HtmlEncode="False" DataField="RetISR" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="RetISR <br/> Arrendamiento" HtmlEncode="False" DataField="RetISRArrend" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="RetISR <br/> Arrendamiento" HtmlEncode="False" DataField="RetISRArrend" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
|
||||||
<%-- <asp:BoundField HeaderText="IEPS 3%" DataField="IEPS3" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<%-- <asp:BoundField HeaderText="IEPS 3%" DataField="IEPS3" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="IEPS 6%" DataField="IEPS6" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IEPS 6%" DataField="IEPS6" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="IEPS 7%" DataField="IEPS7" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IEPS 7%" DataField="IEPS7" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="IEPS 9%" DataField="IEPS9" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />--%>
|
<asp:BoundField HeaderText="IEPS 9%" DataField="IEPS9" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />--%>
|
||||||
|
|
||||||
|
|
||||||
<asp:HyperLinkField HeaderText="Folio Bancario" DataNavigateUrlFields="CveIE" DataNavigateUrlFormatString="/Bancos/IE.aspx?CveIE={0}" DataTextField="FolioIE" Target="_blank" />
|
<asp:HyperLinkField HeaderText="Folio Bancario" DataNavigateUrlFields="CveIE" DataNavigateUrlFormatString="/Bancos/IE.aspx?CveIE={0}" DataTextField="FolioIE" Target="_blank" />
|
||||||
|
|
||||||
<asp:BoundField HeaderText="Num. Cuenta" DataField="NumCuenta" ItemStyle-CssClass ="truncate2"/>
|
<asp:BoundField HeaderText="Num. Cuenta" DataField="NumCuenta" ItemStyle-CssClass ="truncate2"/>
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h4><b>IVA por Porcentaje</b></h4>
|
<h4><b>IVA por Porcentaje</b></h4>
|
||||||
<asp:GridView ID="GvIVA2" runat="server" EmptyDataText="" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="400px" GridLines="None" AutoGenerateColumns="false">
|
<asp:GridView ID="GvIVA2" runat="server" EmptyDataText="" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="400px" GridLines="None" AutoGenerateColumns="false">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Porcentaje" DataField="PorcentajeIVA" />
|
<asp:BoundField HeaderText="Porcentaje" DataField="PorcentajeIVA" />
|
||||||
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Base" DataField="Base" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Base" DataField="Base" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
</ajax:TabContainer>
|
</ajax:TabContainer>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<asp:UpdatePanel runat="server" ID="UpTipoCambio" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="UpTipoCambio" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div id="DivTipoCambio" class="modal fade" role="dialog">
|
<div id="DivTipoCambio" class="modal fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
<asp:Label ID="Label2" runat="server" ClientIDMode="Static" Text="Cambiar Tipo Cambio de Dólares"></asp:Label>
|
<asp:Label ID="Label2" runat="server" ClientIDMode="Static" Text="Cambiar Tipo Cambio de Dólares"></asp:Label>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<asp:UpdatePanel runat="server" ID="UpBodyTipoCambio" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="UpBodyTipoCambio" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:RadioButtonList runat="server" ID="RblTipoCambio" OnSelectedIndexChanged="RblTipoCambio_SelectedIndexChanged" AutoPostBack="true">
|
<asp:RadioButtonList runat="server" ID="RblTipoCambio" OnSelectedIndexChanged="RblTipoCambio_SelectedIndexChanged" AutoPostBack="true">
|
||||||
<asp:ListItem Selected="true" Text="Moneda Original" Value="1"></asp:ListItem>
|
<asp:ListItem Selected="true" Text="Moneda Original" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Dólares en Tipo Cambio de la Fecha Venta" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Dólares en Tipo Cambio de la Fecha Venta" Value="2"></asp:ListItem>
|
||||||
<asp:ListItem Text="Tipo Cambio Especifico" Value="3"></asp:ListItem>
|
<asp:ListItem Text="Tipo Cambio Especifico" Value="3"></asp:ListItem>
|
||||||
</asp:RadioButtonList>
|
</asp:RadioButtonList>
|
||||||
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
||||||
Especifico:
|
Especifico:
|
||||||
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<asp:Button ID="BtnTipoCambio" runat="server" OnClick="BtnTipoCambio_Click" Text="Aceptar" class="btn btn-primary" />
|
<asp:Button ID="BtnTipoCambio" runat="server" OnClick="BtnTipoCambio_Click" Text="Aceptar" class="btn btn-primary" />
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
@@ -1,316 +1,316 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using System.Web.UI.WebControls;
|
using System.Web.UI.WebControls;
|
||||||
using Extensiones;
|
using Extensiones;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using static Extensiones.ModExtensiones;
|
using static Extensiones.ModExtensiones;
|
||||||
using Microsoft.Reporting.WebForms;
|
using Microsoft.Reporting.WebForms;
|
||||||
using System.Activities.Expressions;
|
using System.Activities.Expressions;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
public partial class Contabilidad_RepIVA : ClsPaginas
|
public partial class Contabilidad_RepIVA : ClsPaginas
|
||||||
{
|
{
|
||||||
#region PROPIEDADES
|
#region PROPIEDADES
|
||||||
|
|
||||||
private DataTable DtIVATrasladado
|
private DataTable DtIVATrasladado
|
||||||
{
|
{
|
||||||
get { return DtIVATrasladado = (DataTable)ViewState["DtIVATrasladado"]; }
|
get { return DtIVATrasladado = (DataTable)ViewState["DtIVATrasladado"]; }
|
||||||
set { ViewState["DtIVATrasladado"] = value; }
|
set { ViewState["DtIVATrasladado"] = value; }
|
||||||
}
|
}
|
||||||
private DataTable DtIVAAcreditable
|
private DataTable DtIVAAcreditable
|
||||||
{
|
{
|
||||||
get { return DtIVAAcreditable = (DataTable)ViewState["DtIVAAcreditable"]; }
|
get { return DtIVAAcreditable = (DataTable)ViewState["DtIVAAcreditable"]; }
|
||||||
set { ViewState["DtIVAAcreditable"] = value; }
|
set { ViewState["DtIVAAcreditable"] = value; }
|
||||||
}
|
}
|
||||||
private double TCEspecifico
|
private double TCEspecifico
|
||||||
{
|
{
|
||||||
get { return TCEspecifico = (double)ViewState["TCEspecifico"]; }
|
get { return TCEspecifico = (double)ViewState["TCEspecifico"]; }
|
||||||
set { ViewState["TCEspecifico"] = value; }
|
set { ViewState["TCEspecifico"] = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
private int TipoCambio
|
private int TipoCambio
|
||||||
{
|
{
|
||||||
get { return TipoCambio = (int)ViewState["TipoCambio"]; }
|
get { return TipoCambio = (int)ViewState["TipoCambio"]; }
|
||||||
set { ViewState["TipoCambio"] = value; }
|
set { ViewState["TipoCambio"] = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
InicializaValores();
|
InicializaValores();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void InicializaValores()
|
public void InicializaValores()
|
||||||
{
|
{
|
||||||
TipoCambio = 1;
|
TipoCambio = 1;
|
||||||
TCEspecifico = -1;
|
TCEspecifico = -1;
|
||||||
txtFechaI.Text = $"01/{DateTime.Now.Month}/{DateTime.Now.Year}";
|
txtFechaI.Text = $"01/{DateTime.Now.Month}/{DateTime.Now.Year}";
|
||||||
txtFechaF.Text = DateTime.Now.ToShortDateString();
|
txtFechaF.Text = DateTime.Now.ToShortDateString();
|
||||||
|
|
||||||
LnkAccionesDIOT.Visible = true;
|
LnkAccionesDIOT.Visible = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Consulta()
|
public void Consulta()
|
||||||
{
|
{
|
||||||
if (TipoCambio == 3 && TxtEspecifico.Text != "") { TCEspecifico = TxtEspecifico.Text.ToDouble(); } else { TCEspecifico = -1; }
|
if (TipoCambio == 3 && TxtEspecifico.Text != "") { TCEspecifico = TxtEspecifico.Text.ToDouble(); } else { TCEspecifico = -1; }
|
||||||
int Conciliado = DdlTipoMovto.SelectedValue.ToEntero();
|
int Conciliado = DdlTipoMovto.SelectedValue.ToEntero();
|
||||||
LblMsgAcreditable.Text = ""; // lbl de mensajes de negativos
|
LblMsgAcreditable.Text = ""; // lbl de mensajes de negativos
|
||||||
|
|
||||||
ClsContabilidad ObjCont = new ClsContabilidad();
|
ClsContabilidad ObjCont = new ClsContabilidad();
|
||||||
if (ObjCont.GetRepIVA(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), 1, UsuarioActual.CveUsuario, Conciliado, UsuarioActual.CveEmpresa, TipoCambio, TCEspecifico))
|
if (ObjCont.GetRepIVA(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), 1, UsuarioActual.CveUsuario, Conciliado, UsuarioActual.CveEmpresa, TipoCambio, TCEspecifico))
|
||||||
{
|
{
|
||||||
GvT.DataSource = ObjCont.DtResultados;
|
GvT.DataSource = ObjCont.DtResultados;
|
||||||
DtIVATrasladado = ObjCont.DtResultados;
|
DtIVATrasladado = ObjCont.DtResultados;
|
||||||
if (ObjCont.GetRepIVAAcumulado(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), Conciliado, 1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
if (ObjCont.GetRepIVAAcumulado(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), Conciliado, 1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
GvIEPSA.DataSource = ObjCont.DtResultados;
|
GvIEPSA.DataSource = ObjCont.DtResultados;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ObjCont.GetRepIVAAcumulado(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), Conciliado, 2, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
if (ObjCont.GetRepIVAAcumulado(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), Conciliado, 2, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
GvIVAA.DataSource = ObjCont.DtResultados;
|
GvIVAA.DataSource = ObjCont.DtResultados;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (ObjCont.GetRepIVA(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), 2, UsuarioActual.CveUsuario, Conciliado, UsuarioActual.CveEmpresa, TipoCambio, TCEspecifico))
|
if (ObjCont.GetRepIVA(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), 2, UsuarioActual.CveUsuario, Conciliado, UsuarioActual.CveEmpresa, TipoCambio, TCEspecifico))
|
||||||
{
|
{
|
||||||
GvA.DataSource = ObjCont.DtResultados;
|
GvA.DataSource = ObjCont.DtResultados;
|
||||||
DtIVAAcreditable = ObjCont.DtResultados;
|
DtIVAAcreditable = ObjCont.DtResultados;
|
||||||
if (DtIVAAcreditable.FiltraParametros("IVA < 0 OR IEPS < 0 ").Rows.Count > 0)
|
if (DtIVAAcreditable.FiltraParametros("IVA < 0 OR IEPS < 0 ").Rows.Count > 0)
|
||||||
{
|
{
|
||||||
LblMsgAcreditable.Text = "La información presenta importes en negativo, estos no se incluirán en el archivo generado para DIOT";
|
LblMsgAcreditable.Text = "La información presenta importes en negativo, estos no se incluirán en el archivo generado para DIOT";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (ObjCont.GetRepIVAAcumulado(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), Conciliado, 3, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
if (ObjCont.GetRepIVAAcumulado(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), Conciliado, 3, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
GvIVA2.DataSource = ObjCont.DtResultados;
|
GvIVA2.DataSource = ObjCont.DtResultados;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
ObjCont.Dispose();
|
ObjCont.Dispose();
|
||||||
GvT.DataBind();
|
GvT.DataBind();
|
||||||
GvA.DataBind();
|
GvA.DataBind();
|
||||||
GvIEPSA.DataBind();
|
GvIEPSA.DataBind();
|
||||||
GvIVAA.DataBind();
|
GvIVAA.DataBind();
|
||||||
GvIVA2.DataBind();
|
GvIVA2.DataBind();
|
||||||
UpDatos.Update();
|
UpDatos.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
protected void BtnConsultar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Consulta();
|
Consulta();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void GvIVATrasladado_RowDataBound(object sender, GridViewRowEventArgs e)
|
protected void GvIVATrasladado_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||||
{
|
{
|
||||||
if (e.Row.DBCampo("CveVenta").ToEntero() < 1)
|
if (e.Row.DBCampo("CveVenta").ToEntero() < 1)
|
||||||
{
|
{
|
||||||
e.Row.CssClass = "Totales";
|
e.Row.CssClass = "Totales";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void GvIVAAcreditable_RowDataBound(object sender, GridViewRowEventArgs e)
|
protected void GvIVAAcreditable_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||||
{
|
{
|
||||||
if (e.Row.DBCampo("CveCompra").ToEntero() < 1)
|
if (e.Row.DBCampo("CveCompra").ToEntero() < 1)
|
||||||
{
|
{
|
||||||
e.Row.CssClass = "Totales";
|
e.Row.CssClass = "Totales";
|
||||||
}
|
}
|
||||||
if (e.Row.DBCampo("PorcentajeIVA").ToDecimal() > 0 )
|
if (e.Row.DBCampo("PorcentajeIVA").ToDecimal() > 0 )
|
||||||
{
|
{
|
||||||
Decimal SubTotal = (e.Row.DBCampo("SubTotal16").ToDecimal() > 0? e.Row.DBCampo("SubTotal16").ToDecimal() : (e.Row.DBCampo("SubTotal8").ToDecimal() > 0? e.Row.DBCampo("SubTotal8").ToDecimal() : (Decimal)0.0) );
|
Decimal SubTotal = (e.Row.DBCampo("SubTotal16").ToDecimal() > 0? e.Row.DBCampo("SubTotal16").ToDecimal() : (e.Row.DBCampo("SubTotal8").ToDecimal() > 0? e.Row.DBCampo("SubTotal8").ToDecimal() : (Decimal)0.0) );
|
||||||
|
|
||||||
Decimal dif = Math.Round(SubTotal * e.Row.DBCampo("PorcentajeIVA").ToDecimal(), 2) - Math.Round(e.Row.DBCampo("IVA").ToDecimal(), 2);
|
Decimal dif = Math.Round(SubTotal * e.Row.DBCampo("PorcentajeIVA").ToDecimal(), 2) - Math.Round(e.Row.DBCampo("IVA").ToDecimal(), 2);
|
||||||
if (dif > 1)
|
if (dif > 1)
|
||||||
{
|
{
|
||||||
e.Row.ForeColor = System.Drawing.Color.Red;
|
e.Row.ForeColor = System.Drawing.Color.Red;
|
||||||
e.Row.Cells[0].Text = e.Row.Cells[0].Text + "Err";
|
e.Row.Cells[0].Text = e.Row.Cells[0].Text + "Err";
|
||||||
|
|
||||||
e.Row.ToolTip = "Dif:" + dif.ToString() + "- Sub:" + e.Row.DBCampo("SubTotal")+ " - IVA:"+ e.Row.DBCampo("IVA");
|
e.Row.ToolTip = "Dif:" + dif.ToString() + "- Sub:" + e.Row.DBCampo("SubTotal")+ " - IVA:"+ e.Row.DBCampo("IVA");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LnkPdf_Click(object sender, EventArgs e)
|
protected void LnkPdf_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Imprimir("PDF");
|
Imprimir("PDF");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LnkExcel_Click(object sender, EventArgs e)
|
protected void LnkExcel_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Imprimir("EXCEL");
|
Imprimir("EXCEL");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Imprimir(String Opcion)
|
public void Imprimir(String Opcion)
|
||||||
{
|
{
|
||||||
String FechaF;
|
String FechaF;
|
||||||
if (txtFechaF.Text == "" || txtFechaF.Text == "__/__/____") { FechaF = "-1"; } else { FechaF = $" <b>Fecha Final:</b> {txtFechaF.Text}"; }
|
if (txtFechaF.Text == "" || txtFechaF.Text == "__/__/____") { FechaF = "-1"; } else { FechaF = $" <b>Fecha Final:</b> {txtFechaF.Text}"; }
|
||||||
String FechaI;
|
String FechaI;
|
||||||
if (txtFechaI.Text == "" || txtFechaI.Text == "__/__/____") { FechaI = "-1"; } else { FechaI = $" <b>Fecha Inicial:</b> {txtFechaI.Text}"; }
|
if (txtFechaI.Text == "" || txtFechaI.Text == "__/__/____") { FechaI = "-1"; } else { FechaI = $" <b>Fecha Inicial:</b> {txtFechaI.Text}"; }
|
||||||
if (DtIVATrasladado.Rows.Count > 0 || DtIVAAcreditable.Rows.Count > 0)
|
if (DtIVATrasladado.Rows.Count > 0 || DtIVAAcreditable.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
System.IO.FileInfo Imagen;
|
System.IO.FileInfo Imagen;
|
||||||
String logouri = "";
|
String logouri = "";
|
||||||
|
|
||||||
if (UsuarioActual.CveEmpresa.Contiene(119))
|
if (UsuarioActual.CveEmpresa.Contiene(119))
|
||||||
{
|
{
|
||||||
Imagen = new System.IO.FileInfo(String.Format("{0}/Logo.jpg", UsuarioActual.Empresa.Ruta));
|
Imagen = new System.IO.FileInfo(String.Format("{0}/Logo.jpg", UsuarioActual.Empresa.Ruta));
|
||||||
logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.jpg", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa);
|
logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.jpg", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Imagen = new System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta));
|
Imagen = new System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta));
|
||||||
logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa);
|
logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<CrystalParametro> para = new List<CrystalParametro>();
|
List<CrystalParametro> para = new List<CrystalParametro>();
|
||||||
para.Add(new CrystalParametro("Empresa", UsuarioActual.Empresa.Empresa));
|
para.Add(new CrystalParametro("Empresa", UsuarioActual.Empresa.Empresa));
|
||||||
para.Add(new CrystalParametro("UsuarioImprimio", UsuarioActual.Nombre));
|
para.Add(new CrystalParametro("UsuarioImprimio", UsuarioActual.Nombre));
|
||||||
para.Add(new CrystalParametro("Filtros", $"<b>Filtros:</b> {FechaI}{FechaF}"));
|
para.Add(new CrystalParametro("Filtros", $"<b>Filtros:</b> {FechaI}{FechaF}"));
|
||||||
if (Imagen.Exists)
|
if (Imagen.Exists)
|
||||||
{
|
{
|
||||||
para.Add(new CrystalParametro("LogoPath", logouri));
|
para.Add(new CrystalParametro("LogoPath", logouri));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
para.Add(new CrystalParametro("LogoPath", ""));
|
para.Add(new CrystalParametro("LogoPath", ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
DataTable Dt = TT.ActiveTabIndex == 0 ? DtIVATrasladado.Copy() : DtIVAAcreditable.Copy();
|
DataTable Dt = TT.ActiveTabIndex == 0 ? DtIVATrasladado.Copy() : DtIVAAcreditable.Copy();
|
||||||
string Formato = TT.ActiveTabIndex == 0 ? "RepIVA.rpt" : "RepIVAAcreditable.rpt";
|
string Formato = TT.ActiveTabIndex == 0 ? "RepIVA.rpt" : "RepIVAAcreditable.rpt";
|
||||||
para.Add(new CrystalParametro("Excel", Formato));
|
para.Add(new CrystalParametro("Excel", Formato));
|
||||||
|
|
||||||
ImprimirbytesPDF(ImprimirPDFCrystal(Server.MapPath($"~/Empresas/Grales/Formatos/{Formato}"),Dt,para, "Reporte de IVA", Opcion), "Reporte de IVA", Opcion);
|
ImprimirbytesPDF(ImprimirPDFCrystal(Server.MapPath($"~/Empresas/Grales/Formatos/{Formato}"),Dt,para, "Reporte de IVA", Opcion), "Reporte de IVA", Opcion);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia);
|
Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void BtnTipoCambio_Click(object sender, EventArgs e)
|
protected void BtnTipoCambio_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Consulta();
|
Consulta();
|
||||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivTipoCambio"));
|
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivTipoCambio"));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void RblTipoCambio_SelectedIndexChanged(object sender, EventArgs e)
|
protected void RblTipoCambio_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
TipoCambio = RblTipoCambio.SelectedValue.ToEntero();
|
TipoCambio = RblTipoCambio.SelectedValue.ToEntero();
|
||||||
if (TipoCambio == 3)
|
if (TipoCambio == 3)
|
||||||
{
|
{
|
||||||
LiEspecifico.Visible = true;
|
LiEspecifico.Visible = true;
|
||||||
TCEspecifico = get_GlobalTipoCambio(DateTime.Now).ToString().ToDouble();
|
TCEspecifico = get_GlobalTipoCambio(DateTime.Now).ToString().ToDouble();
|
||||||
TxtEspecifico.Text = TCEspecifico.ToString();
|
TxtEspecifico.Text = TCEspecifico.ToString();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LiEspecifico.Visible = false;
|
LiEspecifico.Visible = false;
|
||||||
}
|
}
|
||||||
UpBodyTipoCambio.Update();
|
UpBodyTipoCambio.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected string GenerarDIOT()
|
protected string GenerarDIOT()
|
||||||
{
|
{
|
||||||
System.Text.StringBuilder Respuesta = new System.Text.StringBuilder();
|
System.Text.StringBuilder Respuesta = new System.Text.StringBuilder();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return Respuesta.ToString();
|
return Respuesta.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LnkAccionesDIOT_Click(object sender, EventArgs e)
|
protected void LnkAccionesDIOT_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
ClsContabilidad Objconta = new ClsContabilidad();
|
ClsContabilidad Objconta = new ClsContabilidad();
|
||||||
StringBuilder SBDIOT = new StringBuilder();
|
StringBuilder SBDIOT = new StringBuilder();
|
||||||
int Conciliado = DdlTipoMovto.SelectedValue.ToEntero();
|
int Conciliado = DdlTipoMovto.SelectedValue.ToEntero();
|
||||||
|
|
||||||
if (Objconta.GetRepIVA(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), 2, UsuarioActual.CveUsuario, Conciliado, UsuarioActual.CveEmpresa, TipoCambio, TCEspecifico))
|
if (Objconta.GetRepIVA(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), 2, UsuarioActual.CveUsuario, Conciliado, UsuarioActual.CveEmpresa, TipoCambio, TCEspecifico))
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach (DataRow Drow in Objconta.DtResultados.FiltraParametros("CveCompra is null and CveProveedor > 0 and SubTotal >= 1 ").Rows) // and(IVA > 1 OR IEPS > 0)
|
foreach (DataRow Drow in Objconta.DtResultados.FiltraParametros("CveCompra is null and CveProveedor > 0 and SubTotal >= 1 ").Rows) // and(IVA > 1 OR IEPS > 0)
|
||||||
{
|
{
|
||||||
SBDIOT.AppendLine(
|
SBDIOT.AppendLine(
|
||||||
Drow["TipoTercero"].ToString() + "|" +
|
Drow["TipoTercero"].ToString() + "|" +
|
||||||
Drow["TipoOperacion"].ToString() + "|" +
|
Drow["TipoOperacion"].ToString() + "|" +
|
||||||
Drow["RFC"].ToString() +"|"+
|
Drow["RFC"].ToString() +"|"+
|
||||||
Drow["NumeroIDFiscal"].ToString() + "|" +
|
Drow["NumeroIDFiscal"].ToString() + "|" +
|
||||||
Drow["NombreExtranjero"].ToString() +"|"+
|
Drow["NombreExtranjero"].ToString() +"|"+
|
||||||
Drow["PaisResidencia"].ToString() + "|" +
|
Drow["PaisResidencia"].ToString() + "|" +
|
||||||
Drow["Nacionalidad"].ToString() +"|"+
|
Drow["Nacionalidad"].ToString() +"|"+
|
||||||
LV(Drow["valorActos1516"].ToString()) + "|"+
|
LV(Drow["valorActos1516"].ToString()) + "|"+
|
||||||
LV(Drow["valorActos15"].ToString()) + "|" +
|
LV(Drow["valorActos15"].ToString()) + "|" +
|
||||||
LV(Drow["ValorIvaNo1516"].ToString()) +"|"+
|
LV(Drow["ValorIvaNo1516"].ToString()) +"|"+
|
||||||
|
|
||||||
LV(Drow["valorActos1011"].ToString()) + "|" +
|
LV(Drow["valorActos1011"].ToString()) + "|" +
|
||||||
LV(Drow["valorActos10"].ToString()) + "|" +
|
LV(Drow["valorActos10"].ToString()) + "|" +
|
||||||
LV(Drow["valorActosImp8"].ToString()) + "|" +
|
LV(Drow["valorActosImp8"].ToString()) + "|" +
|
||||||
LV(Drow["ValorIvaNo10"].ToString()) + "|" +
|
LV(Drow["ValorIvaNo10"].ToString()) + "|" +
|
||||||
LV(Drow["ValorIvaNo08"].ToString()) + "|" +
|
LV(Drow["ValorIvaNo08"].ToString()) + "|" +
|
||||||
|
|
||||||
LV(Drow["valorActosImp1516"].ToString()) + "|" +
|
LV(Drow["valorActosImp1516"].ToString()) + "|" +
|
||||||
LV(Drow["ValorIvaNoImp16"].ToString()) + "|" +
|
LV(Drow["ValorIvaNoImp16"].ToString()) + "|" +
|
||||||
|
|
||||||
LV(Drow["valorActosImp10"].ToString()) + "|" +
|
LV(Drow["valorActosImp10"].ToString()) + "|" +
|
||||||
LV(Drow["ValorIvaNoImp10"].ToString()) + "|" +
|
LV(Drow["ValorIvaNoImp10"].ToString()) + "|" +
|
||||||
|
|
||||||
LV(Drow["IvaExentoImpo"].ToString()) + "|"+
|
LV(Drow["IvaExentoImpo"].ToString()) + "|"+
|
||||||
LV(Drow["IVACero"].ToString()) + "|" +
|
LV(Drow["IVACero"].ToString()) + "|" +
|
||||||
LV(Drow["IvaExento"].ToString()) + "|"+
|
LV(Drow["IvaExento"].ToString()) + "|"+
|
||||||
LV(Drow["IvaRetenido"].ToString()) + "|" +
|
LV(Drow["IvaRetenido"].ToString()) + "|" +
|
||||||
LV(Drow["IvaDevoluciones"].ToString()) + "|");
|
LV(Drow["IvaDevoluciones"].ToString()) + "|");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Objconta.Dispose();
|
Objconta.Dispose();
|
||||||
|
|
||||||
//MemoryStream ms = new MemoryStream();
|
//MemoryStream ms = new MemoryStream();
|
||||||
//TextWriter tw = new StreamWriter(ms, System.Text.Encoding.UTF8);
|
//TextWriter tw = new StreamWriter(ms, System.Text.Encoding.UTF8);
|
||||||
|
|
||||||
//tw.Write(SBDIOT.ToString());
|
//tw.Write(SBDIOT.ToString());
|
||||||
|
|
||||||
//tw.Flush();
|
//tw.Flush();
|
||||||
|
|
||||||
//byte[] bytes = ms.ToArray();
|
//byte[] bytes = ms.ToArray();
|
||||||
//ms.Close();
|
//ms.Close();
|
||||||
|
|
||||||
//Response.Clear();
|
//Response.Clear();
|
||||||
//Response.AppendHeader("Content-Length", text.Length.ToString());
|
//Response.AppendHeader("Content-Length", text.Length.ToString());
|
||||||
//Response.ContentType = "text/plain";
|
//Response.ContentType = "text/plain";
|
||||||
//Response.AddHeader("content-disposition", $"attachment; filename=DIOT_{ txtFechaI.Text.ToDate().ToString("ddMMyyyy") }_{txtFechaI.Text.ToDate().ToString("ddMMyyyy") }.txt");
|
//Response.AddHeader("content-disposition", $"attachment; filename=DIOT_{ txtFechaI.Text.ToDate().ToString("ddMMyyyy") }_{txtFechaI.Text.ToDate().ToString("ddMMyyyy") }.txt");
|
||||||
//Response.BinaryWrite(bytes);
|
//Response.BinaryWrite(bytes);
|
||||||
//Response.End();
|
//Response.End();
|
||||||
|
|
||||||
Response.Clear();
|
Response.Clear();
|
||||||
Response.ClearHeaders();
|
Response.ClearHeaders();
|
||||||
|
|
||||||
Response.AppendHeader("Content-Length", SBDIOT.ToString().Length.ToString());
|
Response.AppendHeader("Content-Length", SBDIOT.ToString().Length.ToString());
|
||||||
Response.ContentType = "text/plain";
|
Response.ContentType = "text/plain";
|
||||||
Response.AppendHeader("Content-Disposition", $"attachment;filename=DIOT_{ txtFechaI.Text.ToDate().ToString("ddMMyyyy") }_{txtFechaI.Text.ToDate().ToString("ddMMyyyy") }.txt");
|
Response.AppendHeader("Content-Disposition", $"attachment;filename=DIOT_{ txtFechaI.Text.ToDate().ToString("ddMMyyyy") }_{txtFechaI.Text.ToDate().ToString("ddMMyyyy") }.txt");
|
||||||
|
|
||||||
Response.Write(SBDIOT.ToString());
|
Response.Write(SBDIOT.ToString());
|
||||||
Response.End();
|
Response.End();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected string LV(string Valor )
|
protected string LV(string Valor )
|
||||||
{
|
{
|
||||||
return (Valor.ToDecimal() > 0) ? Valor.ToDecimal().ToString().FormatoNumero(0).Replace(",", string.Empty) : "";
|
return (Valor.ToDecimal() > 0) ? Valor.ToDecimal().ToString().FormatoNumero(0).Replace(",", string.Empty) : "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Binary file not shown.
@@ -1,180 +1,174 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/SiteGPS.master" AutoEventWireup="false" CodeFile="CatRemisionesVehiculos.aspx.vb" Inherits="GPS_CatRemisionesVehiculos" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/SiteGPS.master" AutoEventWireup="false" CodeFile="CatRemisionesVehiculos.aspx.vb" Inherits="GPS_CatRemisionesVehiculos" %>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
<style>
|
<style>
|
||||||
html, body, #map {
|
html, body, #map {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 93%;
|
height: 93%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#map {
|
#map {
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pac-container.pac-logo {
|
.pac-container.pac-logo {
|
||||||
z-index: 100000;
|
z-index: 100000;
|
||||||
}
|
}
|
||||||
.modalPopup {
|
|
||||||
top:132px !important;
|
.modalPopup {
|
||||||
}
|
top: 132px !important;
|
||||||
</style>
|
}
|
||||||
</asp:Content>
|
</style>
|
||||||
<asp:Content ContentPlaceHolderID="H" ID="Content9" runat="server">
|
</asp:Content>
|
||||||
<li>
|
<asp:Content ContentPlaceHolderID="H" ID="Content9" runat="server">
|
||||||
<a ID="BtnDir" OnClick="$('#dvConsulta').modal({ backdrop: 'static', keyboard: false });">
|
<li>
|
||||||
<i class='fa fa-search'></i><span>Ver Remisiones</span>
|
<a id="BtnDir" onclick="$('#dvConsulta').modal({ backdrop: 'static', keyboard: false });">
|
||||||
</a>
|
<i class='fa fa-search'></i><span>Ver Remisiones</span>
|
||||||
</li>
|
</a>
|
||||||
</asp:Content>
|
</li>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
</asp:Content>
|
||||||
<div id="map"></div>
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UPModalBusqueda">
|
<div id="map"></div>
|
||||||
<ContentTemplate>
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UPModalBusqueda">
|
||||||
<div id="dvConsulta" class="modal ADS fade" role="dialog">
|
<ContentTemplate>
|
||||||
<div class="modal-dialog">
|
<div id="dvConsulta" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UPConsulta" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<div class="modal-dialog">
|
||||||
<ContentTemplate>
|
<asp:UpdatePanel ID="UPConsulta" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<div class="modal-header">
|
<ContentTemplate>
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<div class="modal-header">
|
||||||
<span aria-hidden="true">×</span>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
</button>
|
<span aria-hidden="true">×</span>
|
||||||
<h4 class="modal-title" id="myModalLabel2" runat="server"><i class="fa fa-bell-o"></i> Remisiones Activas</h4>
|
</button>
|
||||||
</div>
|
<h4 class="modal-title" id="myModalLabel2" runat="server"><i class="fa fa-bell-o"></i>Remisiones Activas</h4>
|
||||||
<div class="modal-body" style="padding: 0px 10px 0px 10px !important">
|
</div>
|
||||||
<asp:UpdatePanel runat="server" UpdateMode="conditional" ID="UpCuentasComunicacion">
|
<div class="modal-body" style="padding: 0px 10px 0px 10px !important">
|
||||||
<ContentTemplate>
|
<asp:UpdatePanel runat="server" UpdateMode="conditional" ID="UpCuentasComunicacion">
|
||||||
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right" align="left">
|
<ContentTemplate>
|
||||||
<div style="margin-right: 15px">
|
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right" align="left">
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvRemisiones.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<div style="margin-right: 15px">
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvRemisiones.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvRemisiones.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
</div>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvRemisiones.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<asp:GridView ID="GvRemisiones" runat="server" GridLines="None" DataKeyNames="FolioRemision, TrackingNumber, NumeroRemolque,NoEconomico, Posicion, Estatus, CveEstatus, CveRemision, CveDispositivo" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-heightfijo="100" data-height="175" data-sort="false" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros">
|
</div>
|
||||||
<Columns>
|
<asp:GridView ID="GvRemisiones" runat="server" GridLines="None" DataKeyNames="FolioRemision, TrackingNumber, NumeroRemolque,NoEconomico, Posicion, Estatus, CveEstatus, CveRemision, CveDispositivo" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-heightfijo="100" data-height="175" data-sort="false" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros">
|
||||||
<asp:BoundField DataField="FolioRemision" ItemStyle-Width="33%" HeaderText="Folio" ItemStyle-HorizontalAlign="center" />
|
<Columns>
|
||||||
<asp:BoundField DataField="NoEconomico" ItemStyle-Width="33%" HeaderText="No. Económico" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="FolioRemision" ItemStyle-Width="33%" HeaderText="Folio" ItemStyle-HorizontalAlign="center" />
|
||||||
<asp:BoundField DataField="Estatus" HeaderText="Estatus" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="NoEconomico" ItemStyle-Width="33%" HeaderText="No. Económico" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="7%" ItemStyle-HorizontalAlign="Right">
|
<asp:BoundField DataField="Estatus" HeaderText="Estatus" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Left" />
|
||||||
<ItemTemplate>
|
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="7%" ItemStyle-HorizontalAlign="Right">
|
||||||
<asp:LinkButton ID="imgE" HeaderText="Eliminar" runat="server" AlternateText="Editar" OnClick="imgE_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:LinkButton ID="imgE" HeaderText="Eliminar" runat="server" AlternateText="Editar" OnClick="imgE_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
<asp:TemplateField ItemStyle-Width="7%" HeaderText="Historial" ItemStyle-HorizontalAlign="Left">
|
</asp:TemplateField>
|
||||||
<ItemTemplate>
|
<asp:TemplateField ItemStyle-Width="7%" HeaderText="Historial" ItemStyle-HorizontalAlign="Left">
|
||||||
<asp:LinkButton ID="imgHistorial" ItemStyle-Width="5%" runat="server" AlternateText="Eliminar" CausesValidation="False" OnClick="imgHistorial_Click" CssClass="btn btn-circle btn-sm yellow" Text="<i class='fa fa-book'></i>" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:LinkButton ID="imgHistorial" ItemStyle-Width="5%" runat="server" AlternateText="Eliminar" CausesValidation="False" OnClick="imgHistorial_Click" CssClass="btn btn-circle btn-sm yellow" Text="<i class='fa fa-book'></i>" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||||||
</asp:TemplateField>
|
</ItemTemplate>
|
||||||
</Columns>
|
</asp:TemplateField>
|
||||||
</asp:GridView>
|
</Columns>
|
||||||
</ContentTemplate>
|
</asp:GridView>
|
||||||
</asp:UpdatePanel>
|
</ContentTemplate>
|
||||||
</div>
|
</asp:UpdatePanel>
|
||||||
<div class="modal-footer">
|
</div>
|
||||||
</div>
|
<div class="modal-footer">
|
||||||
</ContentTemplate>
|
</div>
|
||||||
</asp:UpdatePanel>
|
</ContentTemplate>
|
||||||
</div>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</div>
|
||||||
</asp:UpdatePanel>
|
</ContentTemplate>
|
||||||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpdatePanel1">
|
</asp:UpdatePanel>
|
||||||
<ContentTemplate>
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpdatePanel1">
|
||||||
<div id="dvHistorico" class="modal ADS fade" role="dialog">
|
<ContentTemplate>
|
||||||
<div class="modal-dialog">
|
<div id="dvHistorico" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpHistorico" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<div class="modal-dialog">
|
||||||
<ContentTemplate>
|
<asp:UpdatePanel ID="UpHistorico" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<div class="modal-header">
|
<ContentTemplate>
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<div class="modal-header">
|
||||||
<span aria-hidden="true">×</span>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
</button>
|
<span aria-hidden="true">×</span>
|
||||||
<h4 class="modal-title" id="H1" runat="server"><i class="fa fa-bell-o"></i>Historial Remision: </h4>
|
</button>
|
||||||
</div>
|
<h4 class="modal-title" id="H1" runat="server"><i class="fa fa-bell-o"></i>Historial Remision: </h4>
|
||||||
<div class="modal-body" >
|
</div>
|
||||||
<asp:UpdatePanel runat="server" UpdateMode="conditional" ID="UpdatePanel3">
|
<div class="modal-body">
|
||||||
<ContentTemplate>
|
<asp:UpdatePanel runat="server" UpdateMode="conditional" ID="UpdatePanel3">
|
||||||
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right" align="left">
|
<ContentTemplate>
|
||||||
<div style="margin-right: 15px">
|
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right" align="left">
|
||||||
<input type="text" id="TxtBusquedaHist" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvRemisiones.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<div style="margin-right: 15px">
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvRemisiones.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<input type="text" id="TxtBusquedaHist" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvRemisiones.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
</div>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvRemisiones.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<asp:GridView ID="GVHistorico" runat="server" GridLines="None" DataKeyNames="FolioRemision, NoEconomico, CveEstatus" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-heightfijo="100" data-height="100" data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros">
|
</div>
|
||||||
<Columns>
|
<asp:GridView ID="GVHistorico" runat="server" GridLines="None" DataKeyNames="FolioRemision, NoEconomico, CveEstatus" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-heightfijo="100" data-height="100" data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros">
|
||||||
<asp:BoundField DataField="FolioRemision" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="center" HeaderText="Folio" ItemStyle-HorizontalAlign="left" />
|
<Columns>
|
||||||
<asp:BoundField DataField="NoEconomico" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="center" HeaderText="No. Económico" ItemStyle-HorizontalAlign="left" />
|
<asp:BoundField DataField="FolioRemision" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="center" HeaderText="Folio" ItemStyle-HorizontalAlign="left" />
|
||||||
<asp:BoundField DataField="Estatus" HeaderText="Estatus" HeaderStyle-HorizontalAlign="center" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="left" />
|
<asp:BoundField DataField="NoEconomico" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="center" HeaderText="No. Económico" ItemStyle-HorizontalAlign="left" />
|
||||||
<asp:HyperLinkField DataNavigateUrlFields="Lat,Lon" HeaderStyle-HorizontalAlign="center" Target="_blank" Text="Ir" HeaderText="Google Maps" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="left" DataNavigateUrlFormatString="https://www.google.com/maps/search/{0},{1}/"/>
|
<asp:BoundField DataField="Estatus" HeaderText="Estatus" HeaderStyle-HorizontalAlign="center" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="left" />
|
||||||
</Columns>
|
<asp:HyperLinkField DataNavigateUrlFields="Lat,Lon" HeaderStyle-HorizontalAlign="center" Target="_blank" Text="Ir" HeaderText="Google Maps" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="left" DataNavigateUrlFormatString="https://www.google.com/maps/search/{0},{1}/" />
|
||||||
</asp:GridView>
|
</Columns>
|
||||||
</ContentTemplate>
|
</asp:GridView>
|
||||||
</asp:UpdatePanel>
|
</ContentTemplate>
|
||||||
</div>
|
</asp:UpdatePanel>
|
||||||
<div class="modal-footer">
|
</div>
|
||||||
</div>
|
<div class="modal-footer">
|
||||||
</ContentTemplate>
|
</div>
|
||||||
</asp:UpdatePanel>
|
</ContentTemplate>
|
||||||
</div>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</div>
|
||||||
</asp:UpdatePanel>
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
<asp:Button ID="BtnMostrarContrato" runat="server" Style="visibility: hidden; display: none;" />
|
|
||||||
<asp:Button ID="BtnCerrarContrato" runat="server" CssClass="btn btn-danger" Style="visibility: hidden; display: none;" />
|
<asp:Button ID="BtnMostrarContrato" runat="server" Style="visibility: hidden; display: none;" />
|
||||||
|
<asp:Button ID="BtnCerrarContrato" runat="server" CssClass="btn btn-danger" Style="visibility: hidden; display: none;" />
|
||||||
<Ajax:ModalPopupExtender ID="MPContrato" runat="server" PopupControlID="PanelContrato" TargetControlID="BtnMostrarContrato"
|
|
||||||
CancelControlID="BtnCerrarContrato" BackgroundCssClass="modalBackground">
|
<ajax:ModalPopupExtender ID="MPContrato" runat="server" PopupControlID="PanelContrato" TargetControlID="BtnMostrarContrato"
|
||||||
</Ajax:ModalPopupExtender>
|
CancelControlID="BtnCerrarContrato" BackgroundCssClass="modalBackground">
|
||||||
<asp:Panel ID="PanelContrato" runat="server" CssClass="modalPopup" align="center" Style="display: none; padding: 10px;">
|
</ajax:ModalPopupExtender>
|
||||||
|
<asp:Panel ID="PanelContrato" runat="server" CssClass="modalPopup" align="center" Style="display: none; padding: 10px;">
|
||||||
<asp:UpdatePanel ID="UpContratos" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
<asp:UpdatePanel ID="UpContratos" runat="server" UpdateMode="Conditional">
|
||||||
<div id="AccionContrato" runat="server" style="background-color: white;width:280px;border-color: black;border-width: 1.7px;border-style: solid;">
|
<ContentTemplate>
|
||||||
<h5> <b> Actualizar Remisión </b></h5>
|
<div id="AccionContrato" runat="server" style="background-color: white; width: 280px; border-color: black; border-width: 1.7px; border-style: solid;">
|
||||||
<div class="row">
|
<h5><b>Actualizar Remisión </b></h5>
|
||||||
<div class="form-group form-md-line-input input-iconright" style="width:50%">
|
<div class="row">
|
||||||
<asp:TextBox ID="TxtTracking" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
<div class="form-group form-md-line-input input-iconright" style="width: 50%">
|
||||||
<label for="<%= TxtTracking.ClientID.ToString()%>">Tracking Number:</label>
|
<asp:TextBox ID="TxtTracking" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
</div>
|
<label for="<%= TxtTracking.ClientID.ToString()%>">Tracking Number:</label>
|
||||||
<div class="form-group form-md-line-input input-iconright" style="width:50%">
|
</div>
|
||||||
<asp:TextBox ID="TxtNoRemolque" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
<div class="form-group form-md-line-input input-iconright" style="width: 50%">
|
||||||
<label for="<%= TxtNoRemolque.ClientID.ToString()%>">Número remolque:</label>
|
<asp:TextBox ID="TxtNoRemolque" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
</div>
|
<label for="<%= TxtNoRemolque.ClientID.ToString()%>">Número remolque:</label>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<asp:Label style=" top: 0;margin-bottom: 0;font-size: 13px;color: #888888; opacity: 1;" runat="server" Text="Estatus"></asp:Label>
|
<asp:Label Style="top: 0; margin-bottom: 0; font-size: 13px; color: #888888; opacity: 1;" runat="server" Text="Estatus"></asp:Label>
|
||||||
<br />
|
<br />
|
||||||
<asp:DropDownList ID="DdlEstatus" DataValueField="CveEstatus" DataTextField="Estatus" runat="server" CssClass="form-control" Width="80%">
|
<asp:DropDownList ID="DdlEstatus" DataValueField="CveEstatus" DataTextField="Estatus" runat="server" CssClass="form-control" Width="80%">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
<br />
|
||||||
<%--<asp:RadioButtonList ID="RblOpcionContrato" runat="server" CssClass="rbl" RepeatDirection="Horizontal" RepeatLayout="Table">
|
<asp:LinkButton ID="BtnActualizarEstatus" OnClick="BtnActualizarEstatus_Click" runat="server" CssClass="btn btn-success" Text="Aceptar" />
|
||||||
<asp:ListItem Text="Si" Value="2"></asp:ListItem>
|
<asp:LinkButton ID="BtnCancelar" OnClick="BtnCancelar_Click" runat="server" CssClass="btn btn-danger" Text="Cancelar" />
|
||||||
<asp:ListItem Text="No" Value="1"></asp:ListItem>
|
|
||||||
</asp:RadioButtonList>--%>
|
</div>
|
||||||
<br />
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
<asp:LinkButton ID="BtnActualizarEstatus" onclick="BtnActualizarEstatus_Click" runat="server" CssClass="btn btn-success" Text="Aceptar" />
|
|
||||||
<asp:LinkButton ID="BtnCancelar" onclick="BtnCancelar_Click" runat="server" CssClass="btn btn-danger" Text="Cancelar" />
|
</asp:Panel>
|
||||||
|
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
|
|
||||||
</asp:Panel>
|
|
||||||
|
|
||||||
<%--<asp:UpdatePanel runat="server" ID="UP">
|
<%--<asp:UpdatePanel runat="server" ID="UP">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:Button runat="server" ID="BtnCargar" />
|
<asp:Button runat="server" ID="BtnCargar" />
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>--%>
|
</asp:UpdatePanel>--%>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
<script>
|
<script>
|
||||||
var image = '/Imagenes/rsz_11rsz_car.png';
|
var image = '/Imagenes/rsz_11rsz_car.png';
|
||||||
var geocoder;
|
var geocoder;
|
||||||
@@ -185,15 +179,15 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function initMap() {
|
function initMap() {
|
||||||
|
|
||||||
map = new google.maps.Map(document.getElementById('map'), {
|
map = new google.maps.Map(document.getElementById('map'), {
|
||||||
center: uluru,
|
center: uluru,
|
||||||
zoom: 13
|
zoom: 13
|
||||||
});
|
});
|
||||||
|
|
||||||
google.maps.event.addListener(map, "click", function (event) {
|
google.maps.event.addListener(map, "click", function (event) {
|
||||||
closeLastOpenedInfoWindow();
|
closeLastOpenedInfoWindow();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#SideNav").removeClass("nav-is-visible");
|
$("#SideNav").removeClass("nav-is-visible");
|
||||||
@@ -202,78 +196,78 @@
|
|||||||
directionsDisplay.setOptions({ suppressMarkers: true });
|
directionsDisplay.setOptions({ suppressMarkers: true });
|
||||||
geocoder = new google.maps.Geocoder();
|
geocoder = new google.maps.Geocoder();
|
||||||
directionsDisplay.setMap(map);
|
directionsDisplay.setMap(map);
|
||||||
$("#dvConsulta").modal({ backdrop: 'static', keyboard: false });
|
$("#dvConsulta").modal({ backdrop: 'static', keyboard: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
var markers = [];
|
var markers = [];
|
||||||
var lastOpenedInfoWindow;
|
var lastOpenedInfoWindow;
|
||||||
function CreaMarcador(coords, nomEquipo, ContentString, imagen) {
|
function CreaMarcador(coords, nomEquipo, ContentString, imagen) {
|
||||||
DeleteMarkers();
|
DeleteMarkers();
|
||||||
if (typeof imagen === 'undefined') { imagen = image; }
|
if (typeof imagen === 'undefined') { imagen = image; }
|
||||||
var marker = new google.maps.Marker({
|
var marker = new google.maps.Marker({
|
||||||
position: coords,
|
position: coords,
|
||||||
title: nomEquipo,
|
title: nomEquipo,
|
||||||
map: map,
|
map: map,
|
||||||
icon: imagen
|
icon: imagen
|
||||||
});
|
});
|
||||||
var infowindow = new google.maps.InfoWindow({
|
var infowindow = new google.maps.InfoWindow({
|
||||||
content: ContentString
|
content: ContentString
|
||||||
});
|
});
|
||||||
marker.addListener('click', function () {
|
marker.addListener('click', function () {
|
||||||
closeLastOpenedInfoWindow();
|
closeLastOpenedInfoWindow();
|
||||||
infowindow.open(map, marker);
|
infowindow.open(map, marker);
|
||||||
lastOpenedInfoWindow = infowindow;
|
lastOpenedInfoWindow = infowindow;
|
||||||
});
|
});
|
||||||
markers.push(marker);
|
markers.push(marker);
|
||||||
map.setCenter(coords);
|
map.setCenter(coords);
|
||||||
}
|
}
|
||||||
|
|
||||||
function fitBoundsToVisibleMarkers() {
|
function fitBoundsToVisibleMarkers() {
|
||||||
|
|
||||||
var bounds = new google.maps.LatLngBounds();
|
var bounds = new google.maps.LatLngBounds();
|
||||||
|
|
||||||
for (var i = 0; i < markers.length; i++) {
|
for (var i = 0; i < markers.length; i++) {
|
||||||
if (markers[i].getVisible()) {
|
if (markers[i].getVisible()) {
|
||||||
bounds.extend(markers[i].getPosition());
|
bounds.extend(markers[i].getPosition());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
map.fitBounds(bounds);
|
map.fitBounds(bounds);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function DeleteMarkers() {
|
function DeleteMarkers() {
|
||||||
for (var i = 0; i < markers.length; i++) {
|
for (var i = 0; i < markers.length; i++) {
|
||||||
markers[i].setMap(null);
|
markers[i].setMap(null);
|
||||||
|
}
|
||||||
|
markers = [];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeLastOpenedInfoWindow() {
|
||||||
|
if (lastOpenedInfoWindow) {
|
||||||
|
lastOpenedInfoWindow.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function DeleteMarkers() {
|
||||||
|
for (var i = 0; i < markers.length; i++) {
|
||||||
|
markers[i].setMap(null);
|
||||||
}
|
}
|
||||||
markers = [];
|
markers = [];
|
||||||
|
directionsDisplay.setMap(null);
|
||||||
}
|
|
||||||
|
|
||||||
function closeLastOpenedInfoWindow() {
|
|
||||||
if (lastOpenedInfoWindow) {
|
|
||||||
lastOpenedInfoWindow.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function DeleteMarkers() {
|
|
||||||
for (var i = 0; i < markers.length; i++) {
|
|
||||||
markers[i].setMap(null);
|
|
||||||
}
|
|
||||||
markers = [];
|
|
||||||
directionsDisplay.setMap(null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
initMap();
|
initMap();
|
||||||
$('#C_BtnCargar').click();
|
$('#C_BtnCargar').click();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script
|
<script
|
||||||
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAF7s8wwhzCVXDUYopc9mXxqaWB33cDro4&libraries=places">
|
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAF7s8wwhzCVXDUYopc9mXxqaWB33cDro4&libraries=places">
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
@@ -42,14 +42,12 @@ Partial Class GPS_CatRemisionesVehiculos
|
|||||||
Dim ObjTSoft As New ClsTSoft
|
Dim ObjTSoft As New ClsTSoft
|
||||||
If ObjTSoft.GetRemisiones(UsuarioActual.CveCliente) Then
|
If ObjTSoft.GetRemisiones(UsuarioActual.CveCliente) Then
|
||||||
GvRemisiones.DataSource = ObjTSoft.DtResultados
|
GvRemisiones.DataSource = ObjTSoft.DtResultados
|
||||||
Else
|
|
||||||
GvRemisiones.DataSource = Nothing
|
|
||||||
End If
|
End If
|
||||||
If ObjTSoft.GetEstatusRemisiones() Then
|
If ObjTSoft.GetEstatusRemisiones() Then
|
||||||
DdlEstatus.DataSource = ObjTSoft.DtResultados
|
DdlEstatus.DataSource = ObjTSoft.DtResultados
|
||||||
End If
|
End If
|
||||||
|
ObjTSoft.Dispose()
|
||||||
ObjTSoft.Dispose()
|
|
||||||
DdlEstatus.DataBind()
|
DdlEstatus.DataBind()
|
||||||
GvRemisiones.DataBind()
|
GvRemisiones.DataBind()
|
||||||
UPConsulta.Update()
|
UPConsulta.Update()
|
||||||
@@ -91,16 +89,16 @@ Partial Class GPS_CatRemisionesVehiculos
|
|||||||
UpContratos.Update()
|
UpContratos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub BtnActualizarEstatus_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnActualizarEstatus_Click(sender As Object, e As EventArgs)
|
||||||
Dim ObjSoft As New ClsTSoft
|
|
||||||
Dim TrackingNo As String = If(TxtTracking.Text <> "", TxtTracking.Text, "-1")
|
|
||||||
Dim NumRemolque As String = If(TxtNoRemolque.Text <> "", TxtNoRemolque.Text, "-1")
|
|
||||||
|
|
||||||
|
Dim TrackingNo As String = If(TxtTracking.Text <> "", TxtTracking.Text, "-1")
|
||||||
|
Dim NumRemolque As String = If(TxtNoRemolque.Text <> "", TxtNoRemolque.Text, "-1")
|
||||||
|
Dim ObjSoft As New ClsTSoft
|
||||||
If ObjSoft.UpdateEstatusRemisiones(CveRemision, DdlEstatus.SelectedValue.ToEntero, TrackingNo, NumRemolque) Then
|
If ObjSoft.UpdateEstatusRemisiones(CveRemision, DdlEstatus.SelectedValue.ToEntero, TrackingNo, NumRemolque) Then
|
||||||
Alert("El estatus se actualizó correctamente")
|
Alert("El estatus se actualizó correctamente")
|
||||||
End If
|
End If
|
||||||
|
ObjSoft.Dispose()
|
||||||
TxtNoRemolque.Text = ""
|
TxtNoRemolque.Text = ""
|
||||||
TxtTracking.Text = ""
|
TxtTracking.Text = ""
|
||||||
ObjSoft.Dispose()
|
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
RegistraScript("$('#C_BtnCerrarContrato').click();")
|
RegistraScript("$('#C_BtnCerrarContrato').click();")
|
||||||
End Sub
|
End Sub
|
||||||
@@ -108,17 +106,19 @@ Partial Class GPS_CatRemisionesVehiculos
|
|||||||
RegistraScript("$('#C_BtnCerrarContrato').click();")
|
RegistraScript("$('#C_BtnCerrarContrato').click();")
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub imgHistorial_Click(sender As Object, e As EventArgs)
|
Protected Sub imgHistorial_Click(sender As Object, e As EventArgs)
|
||||||
Dim ObjSoft As New ClsTSoft
|
|
||||||
Dim Boton = CType(sender, LinkButton)
|
Dim Boton = CType(sender, LinkButton)
|
||||||
Dim GvRow As GridViewRow = DirectCast(Boton.NamingContainer, GridViewRow)
|
Dim GvRow As GridViewRow = DirectCast(Boton.NamingContainer, GridViewRow)
|
||||||
CveRemision = Boton.CommandArgument.ToEntero
|
CveRemision = Boton.CommandArgument.ToEntero
|
||||||
|
|
||||||
|
Dim ObjSoft As New ClsTSoft
|
||||||
If ObjSoft.GETRemisionesHistorial(GvRow.DataKey("FolioRemision").ToString, GvRow.DataKey("NoEconomico").ToString) Then
|
If ObjSoft.GETRemisionesHistorial(GvRow.DataKey("FolioRemision").ToString, GvRow.DataKey("NoEconomico").ToString) Then
|
||||||
GVHistorico.DataSource = ObjSoft.DtResultados
|
GVHistorico.DataSource = ObjSoft.DtResultados
|
||||||
End If
|
End If
|
||||||
ObjSoft.Dispose()
|
ObjSoft.Dispose()
|
||||||
|
|
||||||
H1.InnerText = $"Histórico Remisión: {GvRow.DataKey("FolioRemision").ToString} "
|
H1.InnerText = $"Histórico Remisión: {GvRow.DataKey("FolioRemision").ToString} "
|
||||||
GVHistorico.DataBind()
|
GVHistorico.DataBind()
|
||||||
UpHistorico.Update()
|
UpHistorico.Update()
|
||||||
RegistraScript("$('#dvHistorico').modal();")
|
RegistraScript("$('#dvHistorico').modal('show');")
|
||||||
End Sub
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1524,6 +1524,7 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
|
|
||||||
Dim OrigenMov As Integer = GlobalDTInvConceptos.FiltroPrimeroValor("Origen", "CveConcepto = " & DdlConcepto.SelectedValue).ToEntero
|
Dim OrigenMov As Integer = GlobalDTInvConceptos.FiltroPrimeroValor("Origen", "CveConcepto = " & DdlConcepto.SelectedValue).ToEntero
|
||||||
If OrigenMov = 1 Then TipoMovtoAlmacen = False Else TipoMovtoAlmacen = True
|
If OrigenMov = 1 Then TipoMovtoAlmacen = False Else TipoMovtoAlmacen = True
|
||||||
|
TipoMovtoOtro = Not TipoMovtoAlmacen
|
||||||
|
|
||||||
Dim CveConceptoContable As Integer = 78
|
Dim CveConceptoContable As Integer = 78
|
||||||
Dim CveClasificacion As Integer = -1
|
Dim CveClasificacion As Integer = -1
|
||||||
@@ -1538,6 +1539,7 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
|
|
||||||
Case 30
|
Case 30
|
||||||
CveConceptoContable = 181
|
CveConceptoContable = 181
|
||||||
|
TipoMovtoOtro = False
|
||||||
If UsuarioActual.Empresa.Funcionalidad(342).ToEntero > 0 Then
|
If UsuarioActual.Empresa.Funcionalidad(342).ToEntero > 0 Then
|
||||||
IdCtaContableOtro = UsuarioActual.Empresa.Funcionalidad(342).ToEntero
|
IdCtaContableOtro = UsuarioActual.Empresa.Funcionalidad(342).ToEntero
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -65,9 +65,9 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:HyperLink ID="HplTraspaso" Target="_blank" runat="server" Visible="false"><i class="fa fa-truck" aria-hidden="true"></i> Traspaso Almacen</asp:HyperLink>
|
<asp:HyperLink ID="HplTraspaso" Target="_blank" runat="server" Visible="false"><i class="fa fa-truck" aria-hidden="true"></i> Traspaso Almacen</asp:HyperLink>
|
||||||
</li>
|
</li>
|
||||||
<%-- <li style="text-align: left!important" runat="server" id="LiLnkGuias" visible="false">
|
<%-- <li style="text-align: left!important" runat="server" id="LiLnkGuias" visible="false">
|
||||||
<asp:LinkButton runat="server" ID="LnkAgregarGuia" CssClass="" data-toggle="tooltip" data-placement="left" OnClick="LnkAgregarGuia_Click"
|
<asp:LinkButton runat="server" ID="LnkAgregarGuia" CssClass="" data-toggle="tooltip" data-placement="left" OnClick="LnkAgregarGuia_Click"
|
||||||
title="Paqueteria Guías." Text="<i class='fa fa-truck'></i> Paqueteria Guías"></asp:LinkButton>
|
title="Paqueteria Guías." Text="<i class='fa fa-truck'></i> Paqueteria Guías"></asp:LinkButton>
|
||||||
</li>--%>
|
</li>--%>
|
||||||
<li>
|
<li>
|
||||||
<asp:HyperLink ID="HplPrePoliza" Target="_blank" runat="server" Visible="false"> Ver PrePóliza</asp:HyperLink>
|
<asp:HyperLink ID="HplPrePoliza" Target="_blank" runat="server" Visible="false"> Ver PrePóliza</asp:HyperLink>
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
<asp:CheckBox ID="chkexpand" Checked="true" CssClass="hidden" runat="server" />
|
<asp:CheckBox ID="chkexpand" Checked="true" CssClass="hidden" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
<div class="caption uppercase" style="position: relative;">
|
<div class="caption uppercase" style="position: relative;">
|
||||||
<i class="fa fa-info-circle"></i>Información del movimiento
|
<i class="fa fa-info-circle"></i>Información del movimiento
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -120,11 +120,11 @@
|
|||||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="RfvAlmacen" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="RfvAlmacen" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%-- <label class="col-md-1 truncate" style="width: 110px" id="DivConcepto1" runat="server">Concepto:</label>
|
<%-- <label class="col-md-1 truncate" style="width: 110px" id="DivConcepto1" runat="server">Concepto:</label>
|
||||||
<div class="col-md-2 " id="DivConcepto2" runat="server">
|
<div class="col-md-2 " id="DivConcepto2" runat="server">
|
||||||
<asp:DropDownList ID="DdlConcepto" DataTextField="Concepto" CssClass="form-control input-sm select2me" AutoPostBack="true" DataValueField="CveConcepto" runat="server" Style="max-width: 200px"></asp:DropDownList>
|
<asp:DropDownList ID="DdlConcepto" DataTextField="Concepto" CssClass="form-control input-sm select2me" AutoPostBack="true" DataValueField="CveConcepto" runat="server" Style="max-width: 200px"></asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator InitialValue="-1" ID="RfvConcepto" Display="None" ValidationGroup="GrpGuardar" runat="server" ControlToValidate="DdlConcepto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor seleccione uno."></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator InitialValue="-1" ID="RfvConcepto" Display="None" ValidationGroup="GrpGuardar" runat="server" ControlToValidate="DdlConcepto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor seleccione uno."></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VcoConcepto" runat="server" HighlightCssClass="vco" TargetControlID="RfvConcepto" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VcoConcepto" runat="server" HighlightCssClass="vco" TargetControlID="RfvConcepto" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>--%>
|
</div>--%>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
<div class="row" id="DivFactura" runat="server" visible="false">
|
<div class="row" id="DivFactura" runat="server" visible="false">
|
||||||
<label class="col-md-1 truncate" style="width: 110px">Factura:</label>
|
<label class="col-md-1 truncate" style="width: 110px">Factura:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlFactura" runat="server" CssClass="form-control input-sm select2me" Style="max-width: 200px" DataTextField="SerieFolio" DataValueField="CveVenta">
|
<asp:DropDownList ID="DdlFactura" AutoPostBack="true" runat="server" CssClass="form-control input-sm select2me" Style="max-width: 200px" DataTextField="SerieFolio" DataValueField="CveVenta" OnSelectedIndexChanged="DdlFactura_SelectedIndexChanged">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -242,7 +242,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-1 truncate" style="width: 110px">
|
<label class="col-md-1 truncate" style="width: 110px">
|
||||||
Observaciones:
|
Observaciones:
|
||||||
|
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
@@ -298,7 +298,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<asp:Panel runat="server" DefaultButton="BtnConsultarPendientes">
|
<asp:Panel runat="server" DefaultButton="BtnConsultarPendientes">
|
||||||
|
|
||||||
|
|
||||||
<b>Sucursal:</b>
|
<b>Sucursal:</b>
|
||||||
<asp:DropDownList ID="DdlSubProyectos" runat="server" CssClass="form-control input-sm select2me" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="90px"></asp:DropDownList>
|
<asp:DropDownList ID="DdlSubProyectos" runat="server" CssClass="form-control input-sm select2me" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="90px"></asp:DropDownList>
|
||||||
@@ -347,7 +347,7 @@
|
|||||||
<a href="javascript;" data-idchekbox="<%= chkexpand2.ClientID%>" class=" <%= IIf(chkexpand2.Checked = True, "collapse", "expand")%>"></a>
|
<a href="javascript;" data-idchekbox="<%= chkexpand2.ClientID%>" class=" <%= IIf(chkexpand2.Checked = True, "collapse", "expand")%>"></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="caption uppercase" style="position: relative;">
|
<div class="caption uppercase" style="position: relative;">
|
||||||
<i class="fa fa-info-circle"></i>Agregar Producto
|
<i class="fa fa-info-circle"></i>Agregar Producto
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -414,14 +414,14 @@
|
|||||||
<asp:CheckBox ID="chkexpand2" Checked="true" CssClass="hidden" runat="server" />
|
<asp:CheckBox ID="chkexpand2" Checked="true" CssClass="hidden" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
<div class="caption uppercase" style="position: relative;">
|
<div class="caption uppercase" style="position: relative;">
|
||||||
<i class="fa fa-info-circle"></i>Información de registro
|
<i class="fa fa-info-circle"></i>Información de registro
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-3 truncate">
|
<label class="col-md-3 truncate">
|
||||||
Usuario:
|
Usuario:
|
||||||
|
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
@@ -431,7 +431,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row" style="margin-top: 10px;">
|
<div class="row" style="margin-top: 10px;">
|
||||||
<label class="col-md-3 truncate">
|
<label class="col-md-3 truncate">
|
||||||
Fecha:
|
Fecha:
|
||||||
|
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
@@ -440,7 +440,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row" style="margin-top: 10px;">
|
<div class="row" style="margin-top: 10px;">
|
||||||
<label class="col-md-3 truncate">
|
<label class="col-md-3 truncate">
|
||||||
Referencia:
|
Referencia:
|
||||||
|
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
@@ -453,7 +453,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row" runat="server" id="RowConsignacion" visible="false" style="margin-top: 10px;">
|
<div class="row" runat="server" id="RowConsignacion" visible="false" style="margin-top: 10px;">
|
||||||
<label class="col-md-3 truncate">
|
<label class="col-md-3 truncate">
|
||||||
Consignación:
|
Consignación:
|
||||||
|
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
@@ -463,7 +463,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row" runat="server" id="RowTipoCambio" visible="false" style="margin-top: 10px;">
|
<div class="row" runat="server" id="RowTipoCambio" visible="false" style="margin-top: 10px;">
|
||||||
<label class="col-md-3 truncate">
|
<label class="col-md-3 truncate">
|
||||||
Tipo Cambio:
|
Tipo Cambio:
|
||||||
|
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
@@ -472,7 +472,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row" runat="server" id="RowMtoRel" visible="false" style="margin-top: 10px;">
|
<div class="row" runat="server" id="RowMtoRel" visible="false" style="margin-top: 10px;">
|
||||||
<label class="col-md-3 truncate">
|
<label class="col-md-3 truncate">
|
||||||
Mto. Rel.:
|
Mto. Rel.:
|
||||||
|
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
@@ -490,7 +490,7 @@
|
|||||||
<asp:CheckBox ID="chkexpand3" Checked="true" CssClass="hidden" runat="server" />
|
<asp:CheckBox ID="chkexpand3" Checked="true" CssClass="hidden" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
<div class="caption uppercase" style="position: relative;">
|
<div class="caption uppercase" style="position: relative;">
|
||||||
<i class="fa fa-info-circle"></i>Tipo de Cambio
|
<i class="fa fa-info-circle"></i>Tipo de Cambio
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -557,9 +557,6 @@
|
|||||||
|
|
||||||
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div style="width: 70%" align="right">
|
<div style="width: 70%" align="right">
|
||||||
<asp:Label ID="LbTotalMovimientos" Text="Total de Movimientos: 0" runat="server" />
|
<asp:Label ID="LbTotalMovimientos" Text="Total de Movimientos: 0" runat="server" />
|
||||||
@@ -567,15 +564,12 @@
|
|||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvM.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}')", GvM.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UppGrid" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UppGrid" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<asp:HiddenField runat="server" ID="HdnCodAFEdit" Value="-1" ClientIDMode="Static" />
|
<asp:HiddenField runat="server" ID="HdnCodAFEdit" Value="-1" ClientIDMode="Static" />
|
||||||
|
|
||||||
<asp:GridView ID="GvM" runat="server" GridLines="none" Width="70%"
|
<asp:GridView ID="GvM" runat="server" GridLines="none" Width="70%"
|
||||||
CssClass="table table-hover ADScroller btn-xs" ShowHeader="True"
|
CssClass="table table-hover ADScroller btn-xs" ShowHeader="True"
|
||||||
EmptyDataText="Aún no hay registros." DataKeyNames="No,CveMovimientoDetalle"
|
EmptyDataText="Aún no hay registros." DataKeyNames="No,CveMovimientoDetalle,CvePS,PU,Cantidad"
|
||||||
AutoGenerateColumns="False" AllowPaging="False" ShowFooter="True" ShowHeaderWhenEmpty="True">
|
AutoGenerateColumns="False" AllowPaging="False" ShowFooter="True" ShowHeaderWhenEmpty="True">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="" ItemStyle-Font-Size="6pt">
|
<asp:TemplateField HeaderText="" ItemStyle-Font-Size="6pt">
|
||||||
@@ -597,12 +591,16 @@
|
|||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<ItemStyle Width="73px"></ItemStyle>
|
<ItemStyle Width="73px"></ItemStyle>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Observaciones">
|
<asp:TemplateField HeaderText="Observaciones">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="lblObservaciones" runat="server" Text='<%# Eval("Observaciones")%>'></asp:Literal>
|
<asp:Literal ID="lblObservaciones" runat="server" Text='<%# Eval("Observaciones")%>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="PU">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="lbPU" runat="server" Text='<%# Eval("PU", "{0:#,##0.######}")%>'> </asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
<ItemStyle Width="43px"></ItemStyle>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -612,13 +610,22 @@
|
|||||||
<ItemStyle Width="140px"></ItemStyle>
|
<ItemStyle Width="140px"></ItemStyle>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
</Columns>
|
</Columns>
|
||||||
|
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div id="DivTotal" runat="server" visible="false">
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-addon">$</span>
|
||||||
|
<asp:TextBox ID="TxtTotal" ClientIDMode="Static" Text="0.00" CssClass="form-control input-sm" runat="server" Enabled="false" />
|
||||||
|
</div>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="FTIRNC" runat="server" TargetControlID="TxtTotal" FilterType="Custom, Numbers" ValidChars=".," />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8"></div>
|
||||||
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div style="width: 100%; text-align: center;">
|
<div style="width: 100%; text-align: center;">
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
@@ -628,10 +635,8 @@
|
|||||||
<asp:Button ID="BtnContabilizar" runat="server" ValidationGroup="" Text="Contabilizar" Visible="False" CssClass="btn btn-primary" />
|
<asp:Button ID="BtnContabilizar" runat="server" ValidationGroup="" Text="Contabilizar" Visible="False" CssClass="btn btn-primary" />
|
||||||
<asp:Button ID="BtnNuevo" runat="server" ValidationGroup="" Text="Nuevo" CssClass="btn btn-success" />
|
<asp:Button ID="BtnNuevo" runat="server" ValidationGroup="" Text="Nuevo" CssClass="btn btn-success" />
|
||||||
<asp:Button ID="BtnGeneraPrepoliza" runat="server" Visible="false" ValidationGroup="" Text="GeneraPrePoliza" CssClass="btn btn-success" />
|
<asp:Button ID="BtnGeneraPrepoliza" runat="server" Visible="false" ValidationGroup="" Text="GeneraPrePoliza" CssClass="btn btn-success" />
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div runat="server" id="DivMensaje" visible="false">
|
<div runat="server" id="DivMensaje" visible="false">
|
||||||
<p>
|
<p>
|
||||||
<code>
|
<code>
|
||||||
@@ -642,14 +647,9 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
|
||||||
<%-- EMPIEZA: BITACORA --%>
|
<%-- EMPIEZA: BITACORA --%>
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
@@ -691,9 +691,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div id="ModalBitacora" class="modal ADS fade" role="dialog">
|
<div id="ModalBitacora" class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@@ -732,7 +730,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<%-- TERMINA: BITACORA --%>
|
<%-- TERMINA: BITACORA --%>
|
||||||
@@ -741,7 +738,6 @@
|
|||||||
|
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<asp:Panel runat="server" DefaultButton="BtnGuardarCantidadEspecial">
|
<asp:Panel runat="server" DefaultButton="BtnGuardarCantidadEspecial">
|
||||||
<div id="ModalCantidad" class="modal ADS fade" role="dialog">
|
<div id="ModalCantidad" class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
@@ -757,8 +753,7 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-5" style="text-align: right;">
|
<div class="col-md-5" style="text-align: right;">
|
||||||
Cantidad
|
Cantidad
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<asp:TextBox ClientIDMode="Static" ID="TxtCantidadEspecial" Text="" runat="server"></asp:TextBox>
|
<asp:TextBox ClientIDMode="Static" ID="TxtCantidadEspecial" Text="" runat="server"></asp:TextBox>
|
||||||
@@ -779,13 +774,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="DivModalAgregar" class="modal ADS fade" role="dialog">
|
<div id="DivModalAgregar" class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<asp:UpdatePanel ID="UpModalAgregar" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpModalAgregar" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
@@ -810,12 +801,12 @@
|
|||||||
<i></i>
|
<i></i>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<%--<div class="form-group form-md-line-input ">
|
<%--<div class="form-group form-md-line-input ">
|
||||||
<label for='<%= DdlClasificacion.ClientID %>'>Clasificación:</label>
|
<label for='<%= DdlClasificacion.ClientID %>'>Clasificación:</label>
|
||||||
|
|
||||||
<asp:DropDownList ID="DdlClasificacion" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Width="100%" Class="form-control input-sm select2me">
|
<asp:DropDownList ID="DdlClasificacion" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Width="100%" Class="form-control input-sm select2me">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione la Clasificación (Todas)" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione la Clasificación (Todas)" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>--%>
|
</div>--%>
|
||||||
<div class="form-group form-md-line-input ">
|
<div class="form-group form-md-line-input ">
|
||||||
<asp:DropDownList runat="server" ID="DdlProducto2" AutoPostBack="true" AppendDataBoundItems="true" Class="form-control select2me" Style="width: 200px !important;" DataTextField="PSCodigo" DataValueField="CvePS" OnSelectedIndexChanged="DdlProducto2_SelectedIndexChanged" />
|
<asp:DropDownList runat="server" ID="DdlProducto2" AutoPostBack="true" AppendDataBoundItems="true" Class="form-control select2me" Style="width: 200px !important;" DataTextField="PSCodigo" DataValueField="CvePS" OnSelectedIndexChanged="DdlProducto2_SelectedIndexChanged" />
|
||||||
@@ -857,160 +848,166 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<asp:Button ID="BtnGenerarRNC" runat="server" ClientIDMode="Static" Text="RNC" Style="display: none;" />
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function GenerarRNC() {
|
||||||
|
$('#BtnGenerarRNC').click();
|
||||||
|
}
|
||||||
|
|
||||||
function CargaActivoFijo(CveAF, Codigo) {
|
function CargaActivoFijo(CveAF, Codigo) {
|
||||||
$get("HdnCveActivoFijo").value = CveAF;
|
$get("HdnCveActivoFijo").value = CveAF;
|
||||||
$get("HdnCodigoAF").value = Codigo;
|
$get("HdnCodigoAF").value = Codigo;
|
||||||
$('#BtnVinculaAF').click();
|
$('#BtnVinculaAF').click();
|
||||||
}
|
}
|
||||||
|
|
||||||
function CargaActivoFijoEdit(CveAF, Codigo, ri) {
|
function CargaActivoFijoEdit(CveAF, Codigo, ri) {
|
||||||
debugger;
|
debugger;
|
||||||
$get("C_Tab_tabConceptos_GvD_HdnCveActivoFijo_" + ri).value = CveAF;
|
$get("C_Tab_tabConceptos_GvD_HdnCveActivoFijo_" + ri).value = CveAF;
|
||||||
$get("C_Tab_tabConceptos_GvD_HdnCodigoAF_" + ri).value = Codigo;
|
$get("C_Tab_tabConceptos_GvD_HdnCodigoAF_" + ri).value = Codigo;
|
||||||
$get("C_Tab_tabConceptos_GvD_LblEditCodigo_" + ri).value = Codigo;
|
$get("C_Tab_tabConceptos_GvD_LblEditCodigo_" + ri).value = Codigo;
|
||||||
}
|
}
|
||||||
|
|
||||||
var H1 = "";
|
var H1 = "";
|
||||||
var H2 = "";
|
var H2 = "";
|
||||||
var T = "";
|
var T = "";
|
||||||
|
|
||||||
function EnterAFEdit(event, Txt, Hdn1, Hdn2) {
|
function EnterAFEdit(event, Txt, Hdn1, Hdn2) {
|
||||||
if (event.which == 13 || event.keyCode == 13) {
|
if (event.which == 13 || event.keyCode == 13) {
|
||||||
H1 = Hdn1;
|
H1 = Hdn1;
|
||||||
H2 = Hdn2;
|
H2 = Hdn2;
|
||||||
T = Txt;
|
T = Txt;
|
||||||
|
|
||||||
$get("HdnCodAFEdit").value = Txt.value;
|
$get("HdnCodAFEdit").value = Txt.value;
|
||||||
|
|
||||||
$('#BtnVinculaAFEdit').click();
|
$('#BtnVinculaAFEdit').click();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function AFBlurEdit(Txt, Hdn1, Hdn2) {
|
function AFBlurEdit(Txt, Hdn1, Hdn2) {
|
||||||
H1 = Hdn1;
|
H1 = Hdn1;
|
||||||
H2 = Hdn2;
|
H2 = Hdn2;
|
||||||
T = Txt;
|
T = Txt;
|
||||||
|
|
||||||
$get("HdnCodAFEdit").value = Txt.value;
|
$get("HdnCodAFEdit").value = Txt.value;
|
||||||
|
|
||||||
if (Txt.value != '')
|
if (Txt.value != '')
|
||||||
$('#BtnVinculaAFEdit').click();
|
$('#BtnVinculaAFEdit').click();
|
||||||
}
|
}
|
||||||
|
|
||||||
function EnterAFEditOK(Cve, Codigo) {
|
function EnterAFEditOK(Cve, Codigo) {
|
||||||
$get(H1.id).value = Cve;
|
$get(H1.id).value = Cve;
|
||||||
$get(H2.id).value = Codigo;
|
$get(H2.id).value = Codigo;
|
||||||
$get(T.id).value = (Codigo == -1) ? "" : Codigo;
|
$get(T.id).value = (Codigo == -1) ? "" : Codigo;
|
||||||
}
|
}
|
||||||
|
|
||||||
var CodigoAF = "";
|
var CodigoAF = "";
|
||||||
|
|
||||||
function EnterAF(event) {
|
function EnterAF(event) {
|
||||||
if (event.which == 13 || event.keyCode == 13) {
|
if (event.which == 13 || event.keyCode == 13) {
|
||||||
Focus = false;
|
Focus = false;
|
||||||
$get("HdnCveActivoFijo").value = -2;
|
$get("HdnCveActivoFijo").value = -2;
|
||||||
$('#BtnVinculaAF').click();
|
$('#BtnVinculaAF').click();
|
||||||
CodigoAF = $get('LblCodigo').value;
|
CodigoAF = $get('LblCodigo').value;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function AFBlur() {
|
function AFBlur() {
|
||||||
$get("HdnCveActivoFijo").value = -2;
|
$get("HdnCveActivoFijo").value = -2;
|
||||||
|
|
||||||
if ($get('LblCodigo').value != '' && $get('LblCodigo').value != CodigoAF) {
|
if ($get('LblCodigo').value != '' && $get('LblCodigo').value != CodigoAF) {
|
||||||
$('#BtnVinculaAF').click();
|
$('#BtnVinculaAF').click();
|
||||||
CodigoAF = $get('LblCodigo').value;
|
CodigoAF = $get('LblCodigo').value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function playsonidito(NomArchivo) {
|
function playsonidito(NomArchivo) {
|
||||||
var URL = /Sonidos/ + NomArchivo
|
var URL = /Sonidos/ + NomArchivo
|
||||||
var snd = new Audio(URL);
|
var snd = new Audio(URL);
|
||||||
snd.play();
|
snd.play();
|
||||||
snd.currentTime = 0;
|
snd.currentTime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function Focus() {
|
function Focus() {
|
||||||
$('#TxtCodigoBarras').focus()
|
$('#TxtCodigoBarras').focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
function Focus2() {
|
function Focus2() {
|
||||||
$('#TxtCodigo').focus()
|
$('#TxtCodigo').focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
function FocusAdd() {
|
function FocusAdd() {
|
||||||
$('#TxtCodigoPS').focus()
|
$('#TxtCodigoPS').focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
function CantidadEspecial() {
|
function CantidadEspecial() {
|
||||||
$('#ModalCantidad').modal('show');
|
$('#ModalCantidad').modal('show');
|
||||||
$('#TxtCantidadEspecial').focus()
|
$('#TxtCantidadEspecial').focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
Sys.Application.add_load(function (s, e) {
|
Sys.Application.add_load(function (s, e) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<%-- if ($("#<%= DdlProductows.ClientID%>")) {
|
<%-- if ($("#<%= DdlProductows.ClientID%>")) {
|
||||||
if (!($('#<%= HFProducto.ClientID %>').val() === '')) {
|
if (!($('#<%= HFProducto.ClientID %>').val() === '')) {
|
||||||
AddItem($('#<%= HFTProducto.ClientID%>').val(), $('#<%= HFProducto.ClientID %>').val());
|
AddItem($('#<%= HFTProducto.ClientID%>').val(), $('#<%= HFProducto.ClientID %>').val());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($("#<%= DdlProductows.ClientID%>").data('creado') === '1') { } else {
|
if ($("#<%= DdlProductows.ClientID%>").data('creado') === '1') { } else {
|
||||||
$("#<%= DdlProductows.ClientID%>").data('creado', '1')
|
$("#<%= DdlProductows.ClientID%>").data('creado', '1')
|
||||||
$("#<%= DdlProductows.ClientID%>").select2({
|
$("#<%= DdlProductows.ClientID%>").select2({
|
||||||
ajax: {
|
ajax: {
|
||||||
url: "/Ashx/SIGWeb.ashx",
|
url: "/Ashx/SIGWeb.ashx",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
delay: 250,
|
delay: 250,
|
||||||
data: function (params) {
|
data: function (params) {
|
||||||
return {
|
return {
|
||||||
Name: params.term, // search term
|
Name: params.term, // search term
|
||||||
Metodo: 'getps'
|
Metodo: 'getps'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
processResults: function (data, params) {
|
processResults: function (data, params) {
|
||||||
// parse the results into the format expected by Select2
|
// parse the results into the format expected by Select2
|
||||||
// since we are using custom formatting functions we do not need to
|
// since we are using custom formatting functions we do not need to
|
||||||
// alter the remote JSON data, except to indicate that infinite
|
// alter the remote JSON data, except to indicate that infinite
|
||||||
// scrolling can be used
|
// scrolling can be used
|
||||||
params.page = params.page || 1;
|
params.page = params.page || 1;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
results: data,
|
results: data,
|
||||||
pagination: {
|
pagination: {
|
||||||
more: (params.page * 30) < data.total_count
|
more: (params.page * 30) < data.total_count
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
cache: true
|
cache: true
|
||||||
},
|
},
|
||||||
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
|
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
|
||||||
minimumInputLength: 3
|
minimumInputLength: 3
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if ($("#<%= DdlProductows.ClientID%>")) {
|
if ($("#<%= DdlProductows.ClientID%>")) {
|
||||||
if (!($('#<%= HFProducto.ClientID %>').val() === '')) {
|
if (!($('#<%= HFProducto.ClientID %>').val() === '')) {
|
||||||
AddItem($('#<%= HFTProducto.ClientID%>').val(), $('#<%= HFProducto.ClientID %>').val());
|
AddItem($('#<%= HFTProducto.ClientID%>').val(), $('#<%= HFProducto.ClientID %>').val());
|
||||||
}
|
}
|
||||||
$("#<%= DdlProductows.ClientID%>").on("select2:select", function (e) { console.log(e); $('#<%= HFProducto.ClientID %>').val(e.params.data.id); $('#<%= HFTProducto.ClientID%>').val(e.params.data.text); $('#<%= myhidenbutton.ClientID %>').click(); });
|
$("#<%= DdlProductows.ClientID%>").on("select2:select", function (e) { console.log(e); $('#<%= HFProducto.ClientID %>').val(e.params.data.id); $('#<%= HFTProducto.ClientID%>').val(e.params.data.text); $('#<%= myhidenbutton.ClientID %>').click(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($("#<%= DdlProducto.ClientID%>")) {
|
if ($("#<%= DdlProducto.ClientID%>")) {
|
||||||
$("#<%= DdlProducto.ClientID%>").on("select2:select", function (e) { console.log(e); $('#<%= HFProducto.ClientID %>').val(e.params.data.id); $('#<%= HFTProducto.ClientID%>').val(e.params.data.text); });
|
$("#<%= DdlProducto.ClientID%>").on("select2:select", function (e) { console.log(e); $('#<%= HFProducto.ClientID %>').val(e.params.data.id); $('#<%= HFTProducto.ClientID%>').val(e.params.data.text); });
|
||||||
|
|
||||||
}--%>
|
}--%>
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
5267
OC/OC.aspx
5267
OC/OC.aspx
File diff suppressed because it is too large
Load Diff
@@ -174,6 +174,14 @@ Partial Class OC
|
|||||||
ViewState("NumCotizacionesGanadoras") = value
|
ViewState("NumCotizacionesGanadoras") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
Private Property NumCotizacionesEvaluar As Integer
|
||||||
|
Get
|
||||||
|
NumCotizacionesEvaluar = IfNull(ViewState("NumCotizacionesEvaluar"), "-1", ViewState("NumCotizacionesEvaluar")).ToString().ToEntero()
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("NumCotizacionesEvaluar") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
Private Property ProveedoresCotizacion As ArrayList
|
Private Property ProveedoresCotizacion As ArrayList
|
||||||
Get
|
Get
|
||||||
ProveedoresCotizacion = DirectCast(ViewState("ProveedoresCotizacion"), ArrayList)
|
ProveedoresCotizacion = DirectCast(ViewState("ProveedoresCotizacion"), ArrayList)
|
||||||
@@ -964,7 +972,7 @@ Partial Class OC
|
|||||||
DtDetalle.Columns.Add("CveContratoDetalle", GetType(Integer))
|
DtDetalle.Columns.Add("CveContratoDetalle", GetType(Integer))
|
||||||
DtDetalle.Columns.Add("CantidadNoEditable", GetType(Double))
|
DtDetalle.Columns.Add("CantidadNoEditable", GetType(Double))
|
||||||
|
|
||||||
DtDetalle.Columns.Add("CveOrdenCompraDetalle", GetType(Integer))
|
'DtDetalle.Columns.Add("CveOrdenCompraDetalle", GetType(Integer))
|
||||||
|
|
||||||
' DtDetalle.Columns.Add("ClasificacionOG", GetType(String))
|
' DtDetalle.Columns.Add("ClasificacionOG", GetType(String))
|
||||||
|
|
||||||
@@ -1223,9 +1231,11 @@ Partial Class OC
|
|||||||
|
|
||||||
DdlPrioridad.SelectedValueExist(objOC.Prioridad.ToString)
|
DdlPrioridad.SelectedValueExist(objOC.Prioridad.ToString)
|
||||||
ChkCotizacion.Checked = objOC.RequiereCotizacion
|
ChkCotizacion.Checked = objOC.RequiereCotizacion
|
||||||
|
|
||||||
If ChkCotizacion.Checked AndAlso UsuarioActual.Empresa.Funcionalidad(565) = "1" Then
|
If ChkCotizacion.Checked AndAlso UsuarioActual.Empresa.Funcionalidad(565) = "1" Then
|
||||||
ChkCotizacion.Enabled = False
|
ChkCotizacion.Enabled = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
tabCotizaciones.Enabled = objOC.RequiereCotizacion
|
tabCotizaciones.Enabled = objOC.RequiereCotizacion
|
||||||
tabCotizaciones.UpdatePanelID = uppOpciones.ID
|
tabCotizaciones.UpdatePanelID = uppOpciones.ID
|
||||||
TxtGuia.Text = objOC.Guia
|
TxtGuia.Text = objOC.Guia
|
||||||
@@ -1576,6 +1586,11 @@ Partial Class OC
|
|||||||
'CARGA MOVTOS DE ALMACEN
|
'CARGA MOVTOS DE ALMACEN
|
||||||
InicializaMovtosAlmacen()
|
InicializaMovtosAlmacen()
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(565) = "1" And pCveOrdenCompra > 0 And TipoOC.ToUpper() = "REQ" Then
|
||||||
|
RowCotizaciones.Visible = True
|
||||||
|
UpIvas.Update()
|
||||||
|
End If
|
||||||
|
|
||||||
uppEstatus.Update()
|
uppEstatus.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -2058,6 +2073,12 @@ Partial Class OC
|
|||||||
Private Function ValidaGuardar() As Boolean
|
Private Function ValidaGuardar() As Boolean
|
||||||
Dim TieneError = False
|
Dim TieneError = False
|
||||||
|
|
||||||
|
'Entrega Directa requiere Cliente y Vendedor
|
||||||
|
If ChkEntregaDirecta.Checked And Ddlcliente.SelectedValue.ToEntero <= 0 Then
|
||||||
|
Alert("Al ser una Entrega Directa es necesario seleccionar un cliente, por favor seleccione uno.")
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
|
||||||
'VALIDA QUE TENGA REGISTROS
|
'VALIDA QUE TENGA REGISTROS
|
||||||
If Not GvD.Rows.Count > 0 Then
|
If Not GvD.Rows.Count > 0 Then
|
||||||
Alert(String.Format("La {0} debe de tener registros", TipoLargo), TipoMensaje.MsgAdvertencia)
|
Alert(String.Format("La {0} debe de tener registros", TipoLargo), TipoMensaje.MsgAdvertencia)
|
||||||
@@ -2196,14 +2217,22 @@ Partial Class OC
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'VALIDA QUE TENGA LAS COTIZACIONES QUE DEBEN TENER
|
'VALIDA QUE TENGA LAS COTIZACIONES QUE DEBEN TENER
|
||||||
If UsuarioActual.Empresa.Funcionalidad(565) = "1" AndAlso CveConfianzaProveedor > 0 AndAlso (TipoOC.ToUpper = "REQ" And CveEstatusFinalOK = CboE.SelectedValue.ToEntero) Then
|
If UsuarioActual.Empresa.Funcionalidad(565) = "1" AndAlso (TipoOC.ToUpper = "REQ" And CveEstatusFinalOK = CboE.SelectedValue.ToEntero) Then
|
||||||
If CveConfianzaProveedor > 0 Then
|
If CveConfianzaProveedor > 0 Then
|
||||||
|
'SUMA EL TOTAL DE COTIZACIONES
|
||||||
|
For Each GvRow As GridViewRow In GvBitacoraEva.Rows
|
||||||
|
If GvRow.RowType = DataControlRowType.DataRow Then
|
||||||
|
Me.NumCotizacionesEvaluar += 1
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
If CveConfianzaProveedor = 1 AndAlso Me.NumCotizaciones < 1 Then
|
Me.NumCotizacionesEvaluar += Me.NumCotizaciones
|
||||||
Alert("Para el proveedor seleccionado es necesario terner al menos 1 cotización.", TipoMensaje.MsgAdvertencia)
|
|
||||||
|
If CveConfianzaProveedor = 1 AndAlso Me.NumCotizacionesEvaluar < 1 Then
|
||||||
|
Alert("Para el proveedor seleccionado es necesario tener al menos 1 cotización.", TipoMensaje.MsgAdvertencia)
|
||||||
TieneError = True
|
TieneError = True
|
||||||
ElseIf CveConfianzaProveedor = 2 AndAlso Me.NumCotizaciones < 2 Then
|
ElseIf CveConfianzaProveedor = 2 AndAlso Me.NumCotizacionesEvaluar < 2 Then
|
||||||
Alert("Para el proveedor seleccionado es necesario terner al menos 2 cotizaciones", TipoMensaje.MsgAdvertencia)
|
Alert("Para el proveedor seleccionado es necesario tener al menos 2 cotizaciones", TipoMensaje.MsgAdvertencia)
|
||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -2222,12 +2251,6 @@ Partial Class OC
|
|||||||
End Function
|
End Function
|
||||||
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs) Handles BtnGuardar.Click
|
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs) Handles BtnGuardar.Click
|
||||||
|
|
||||||
'Entrega Directa requiere Cliente y Vendedor
|
|
||||||
If ChkEntregaDirecta.Checked And Ddlcliente.SelectedValue.ToEntero <= 0 Then
|
|
||||||
Alert("Al ser una Entrega Directa es necesario seleccionar un cliente, por favor seleccione uno.")
|
|
||||||
Exit Sub
|
|
||||||
End If
|
|
||||||
|
|
||||||
'VALIDACIONES PARA GUARDAR
|
'VALIDACIONES PARA GUARDAR
|
||||||
If ValidaGuardar() Then Exit Sub
|
If ValidaGuardar() Then Exit Sub
|
||||||
|
|
||||||
@@ -4501,18 +4524,48 @@ Partial Class OC
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
Protected Sub GvBitacoraEva_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvBitacoraEva.RowDataBound
|
||||||
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
If e.Row.DBCampo("Archivo").ToString.Trim <> "" AndAlso CveOrdenCompra > 0 Then
|
||||||
|
e.Row.FCLinkButton("LinkArchivo").Visible = True
|
||||||
|
e.Row.FCLinkButton("LinkArchivo").CommandArgument = String.Format("OI\{0}", e.Row.DBCampo("Archivo").ToString)
|
||||||
|
ScriptManager.GetCurrent(Me).RegisterPostBackControl(e.Row.FCLinkButton("LinkArchivo")) 'Registro un evento Postbacktrigger, que recargue toda la pagina para que funcione
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
Protected Sub LnkAddCotEva_Click(sender As Object, e As EventArgs) Handles LnkAddCotEva.Click
|
||||||
|
HdnEsCotizacion.Value = "1"
|
||||||
|
ChkEventoPrioridad.Visible = False
|
||||||
|
HBitacora.InnerText = "Cotización"
|
||||||
|
LblBitacora.InnerText = "Cotización"
|
||||||
|
|
||||||
|
UPAddEventoBitacora.Update()
|
||||||
|
UpTituloBitacora.Update()
|
||||||
|
RegistraScript("$('#ModalBitacora').modal('show');")
|
||||||
|
End Sub
|
||||||
|
Protected Sub ImgAddObs_Click(sender As Object, e As EventArgs) Handles ImgAddObs.Click
|
||||||
|
HdnEsCotizacion.Value = "0"
|
||||||
|
ChkEventoPrioridad.Visible = True
|
||||||
|
HBitacora.InnerText = "Bitácora"
|
||||||
|
LblBitacora.InnerText = "Bitácora/Observaciones"
|
||||||
|
|
||||||
|
UPAddEventoBitacora.Update()
|
||||||
|
UpTituloBitacora.Update()
|
||||||
|
RegistraScript("$('#ModalBitacora').modal('show');")
|
||||||
|
End Sub
|
||||||
Protected Sub BtnGuardarEventoBitacora_Click(sender As Object, e As EventArgs) Handles BtnGuardarEventoBitacora.Click
|
Protected Sub BtnGuardarEventoBitacora_Click(sender As Object, e As EventArgs) Handles BtnGuardarEventoBitacora.Click
|
||||||
|
|
||||||
If CveOrdenCompra > 0 Then
|
If CveOrdenCompra > 0 Then
|
||||||
GuardaBitacora()
|
GuardaBitacora(HdnEsCotizacion.Value.ToEntero() > 0)
|
||||||
Else
|
Else
|
||||||
AgregaBitacoraTemporal()
|
AgregaBitacoraTemporal()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
#Region " GUARDA DIRECTO "
|
#Region " GUARDA DIRECTO "
|
||||||
Private Sub GuardaBitacora()
|
Private Sub GuardaBitacora(Optional EsCotizacion As Boolean = False)
|
||||||
Dim ObjEventoBitacora As New ClsOIEventos
|
Dim ObjEventoBitacora As New ClsOIEventos
|
||||||
Dim FileExtension As String = ""
|
Dim FileExtension As String = ""
|
||||||
Dim Filesgral As List(Of Archivo) = Anexo.getfiles().Archivos
|
Dim Filesgral As List(Of Archivo) = Anexo.getfiles().Archivos
|
||||||
@@ -4523,7 +4576,7 @@ Partial Class OC
|
|||||||
Next
|
Next
|
||||||
|
|
||||||
Dim descripcion As String = TxtEventoDescripcion.Text.Trim
|
Dim descripcion As String = TxtEventoDescripcion.Text.Trim
|
||||||
Dim Prioridad As Integer = If(ChkEventoPrioridad.Checked, 3, 1)
|
Dim Prioridad As Integer = If(EsCotizacion, 4, If(ChkEventoPrioridad.Checked, 3, 1))
|
||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(descripcion, String.Format("{0}", FileExtension), UsuarioActual.CveUsuario, CveEmpresaActual, CveOC:=CveOrdenCompra, Prioridad:=Prioridad) Then
|
If ObjEventoBitacora.AddEventoBitacora(descripcion, String.Format("{0}", FileExtension), UsuarioActual.CveUsuario, CveEmpresaActual, CveOC:=CveOrdenCompra, Prioridad:=Prioridad) Then
|
||||||
|
|
||||||
@@ -4535,7 +4588,7 @@ Partial Class OC
|
|||||||
TxtEventoDescripcion.Text = ""
|
TxtEventoDescripcion.Text = ""
|
||||||
Anexo.Text = "[]"
|
Anexo.Text = "[]"
|
||||||
ChkEventoPrioridad.Checked = False
|
ChkEventoPrioridad.Checked = False
|
||||||
Alert("La bitácora/observación se guardó correctamente", TipoMensaje.MsgInformacion)
|
Alert($"La {If(EsCotizacion, "cotización", "bitácora/observación")} se guardó correctamente", TipoMensaje.MsgInformacion)
|
||||||
RegistraScript("$('#ModalBitacora').modal('hide')", "hidemodal")
|
RegistraScript("$('#ModalBitacora').modal('hide')", "hidemodal")
|
||||||
|
|
||||||
'obtener el Evento de bitacora para enviar el correo
|
'obtener el Evento de bitacora para enviar el correo
|
||||||
@@ -4562,7 +4615,8 @@ Partial Class OC
|
|||||||
If ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento IN (6,2) AND CvePrioridad=3").Rows.Count > 0 Then
|
If ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento IN (6,2) AND CvePrioridad=3").Rows.Count > 0 Then
|
||||||
DivEventoUrgente.Visible = True
|
DivEventoUrgente.Visible = True
|
||||||
End If
|
End If
|
||||||
GvEB.DataSource = ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento IN (6,2)")
|
GvEB.DataSource = ObjEventoBitacora.DtResultados.FiltraParametros("CveTipoEvento IN (6,2) AND CvePrioridad <> 4")
|
||||||
|
GvBitacoraEva.DataSource = ObjEventoBitacora.DtResultados.FiltraParametros("CvePrioridad = 4")
|
||||||
Else
|
Else
|
||||||
GvEB.DataSource = Nothing
|
GvEB.DataSource = Nothing
|
||||||
End If
|
End If
|
||||||
@@ -4570,7 +4624,9 @@ Partial Class OC
|
|||||||
ObjEventoBitacora.Dispose()
|
ObjEventoBitacora.Dispose()
|
||||||
|
|
||||||
GvEB.DataBind()
|
GvEB.DataBind()
|
||||||
|
GvBitacoraEva.DataBind()
|
||||||
UPEventoBitacora.Update()
|
UPEventoBitacora.Update()
|
||||||
|
UpIvas.Update()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
@@ -4638,7 +4694,7 @@ Partial Class OC
|
|||||||
ChkEventoPrioridad.Checked = False
|
ChkEventoPrioridad.Checked = False
|
||||||
RegistraScript("$('#ModalBitacora').modal('hide')", "hidemodal")
|
RegistraScript("$('#ModalBitacora').modal('hide')", "hidemodal")
|
||||||
|
|
||||||
CargaEventoBitacoraTemp()
|
CargaEventoBitacoraTemp()
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -4703,7 +4759,7 @@ Partial Class OC
|
|||||||
option72.Visible = True
|
option72.Visible = True
|
||||||
DivFolioAdicional.Visible = True
|
DivFolioAdicional.Visible = True
|
||||||
generarAnticipo.Visible = True
|
generarAnticipo.Visible = True
|
||||||
Ddlcliente.DataSource = GlobalDTCliente(CveEmpresaActual).FiltraParametros(" Estatus = 'Activo' ")
|
Ddlcliente.DataSource = GlobalDTCliente(CveEmpresaActual)
|
||||||
Ddlcliente.DataBind()
|
Ddlcliente.DataBind()
|
||||||
Ddlcliente.Items.Insert(0, New ListItem(" - ", "-1"))
|
Ddlcliente.Items.Insert(0, New ListItem(" - ", "-1"))
|
||||||
DdlVendedor.DataSource = GlobalDTVendedores(CveEmpresaActual)
|
DdlVendedor.DataSource = GlobalDTVendedores(CveEmpresaActual)
|
||||||
|
|||||||
@@ -247,6 +247,24 @@ Partial Class OS_OrdenesServicios
|
|||||||
ViewState("CveTecnico") = value
|
ViewState("CveTecnico") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private Property ClienteRFC As String
|
||||||
|
Get
|
||||||
|
Return ViewState("ClienteRFC").ToString
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
ViewState("ClienteRFC") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Property ClienteMail As String
|
||||||
|
Get
|
||||||
|
Return ViewState("ClienteMail").ToString
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
ViewState("ClienteMail") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
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
|
||||||
@@ -313,7 +331,7 @@ Partial Class OS_OrdenesServicios
|
|||||||
'Carga OS
|
'Carga OS
|
||||||
If CveOS > 0 Then
|
If CveOS > 0 Then
|
||||||
|
|
||||||
CargaEstatusOS()
|
'CargaEstatusOS()
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
'PermisosSegunEstatus()
|
'PermisosSegunEstatus()
|
||||||
CargaDetalles()
|
CargaDetalles()
|
||||||
@@ -336,11 +354,11 @@ Partial Class OS_OrdenesServicios
|
|||||||
TxtFechaRecibido.Text = Now.ToString("dd/MM/yyy")
|
TxtFechaRecibido.Text = Now.ToString("dd/MM/yyy")
|
||||||
ViewState("CveOS") = -1
|
ViewState("CveOS") = -1
|
||||||
DdlEstatusOS.Enabled = False
|
DdlEstatusOS.Enabled = False
|
||||||
|
CargaEstatusOS()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
hdnEsThickbox.Value = "S"
|
hdnEsThickbox.Value = "S"
|
||||||
hdnClientIDLink.Value = "NoDefinido"
|
hdnClientIDLink.Value = "NoDefinido"
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -417,9 +435,13 @@ Partial Class OS_OrdenesServicios
|
|||||||
DdlSubProyecto.Items.Clear()
|
DdlSubProyecto.Items.Clear()
|
||||||
DdlSubProyecto.SelectedValue = Nothing
|
DdlSubProyecto.SelectedValue = Nothing
|
||||||
DdlSubProyecto.DataSource = ObjOS.DtResultados.FiltraParametros("", "", {"CveSubProyecto", "SubProyecto"})
|
DdlSubProyecto.DataSource = ObjOS.DtResultados.FiltraParametros("", "", {"CveSubProyecto", "SubProyecto"})
|
||||||
DdlSubProyecto.DataBind()
|
|
||||||
If CveSubProyecto > 0 Then DdlSubProyecto.SelectedValueExist(CveSubProyecto)
|
If CveSubProyecto > 0 Then DdlSubProyecto.SelectedValueExist(CveSubProyecto)
|
||||||
|
DdlEstatusOS.DataSource = ObjOS.DtResultados.FiltraParametros(String.Format("CveSubProyecto = {0}", CveSubProyecto), "", {"CveEstatusOrdenServicio", "EstatusOrdenServicio"})
|
||||||
End If
|
End If
|
||||||
|
ObjOS.Dispose()
|
||||||
|
DdlSubProyecto.DataBind()
|
||||||
|
DdlEstatusOS.DataBind()
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaTiposOrden()
|
Private Sub CargaTiposOrden()
|
||||||
Dim ObjOS As New ClsOS
|
Dim ObjOS As New ClsOS
|
||||||
@@ -430,11 +452,10 @@ Partial Class OS_OrdenesServicios
|
|||||||
Else
|
Else
|
||||||
DdlTipoOrdenOS.DataSource = Nothing
|
DdlTipoOrdenOS.DataSource = Nothing
|
||||||
End If
|
End If
|
||||||
|
ObjOS.Dispose()
|
||||||
DdlTipoOrdenOS.DataBind()
|
DdlTipoOrdenOS.DataBind()
|
||||||
DdlTipoOrdenOS.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlTipoOrdenOS.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|
||||||
ObjOS.Dispose()
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
Dim ObjOS As New ClsOS()
|
Dim ObjOS As New ClsOS()
|
||||||
@@ -708,6 +729,8 @@ Partial Class OS_OrdenesServicios
|
|||||||
ClienteEstado = ObjCliente.Estado
|
ClienteEstado = ObjCliente.Estado
|
||||||
TelefonoCliente = ObjCliente.Telefono
|
TelefonoCliente = ObjCliente.Telefono
|
||||||
TxtSolicito.Text = ObjCliente.Contacto
|
TxtSolicito.Text = ObjCliente.Contacto
|
||||||
|
ClienteRFC = ObjCliente.RFC
|
||||||
|
ClienteMail = ObjCliente.Mail
|
||||||
|
|
||||||
If ObjCliente.GetSucursales(CveCliente) Then
|
If ObjCliente.GetSucursales(CveCliente) Then
|
||||||
DdlSucursalCliente.DataSource = ObjCliente.DtResultados
|
DdlSucursalCliente.DataSource = ObjCliente.DtResultados
|
||||||
@@ -975,11 +998,11 @@ Partial Class OS_OrdenesServicios
|
|||||||
|
|
||||||
|
|
||||||
If Not CveOS > 0 Then
|
If Not CveOS > 0 Then
|
||||||
|
Dim bandera As Integer = DdlEstatusOS.SelectedValue.ToEntero
|
||||||
If Not ObjOrdenServicio.AddOrdenesServicios(CveCliente, DdlSubProyecto.SelectedValue.ToEntero, TxtSolicito.Text, TxtFechaRecibido.Text.ToDateTime, TxtDescripcion.Text, UsuarioActual.CveUsuario, DdlEstatusOS.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCotizacion, -1, -1, DdlTipoOrdenOS.SelectedValue.ToEntero, CveClienteSucursal:=DdlSucursalCliente.SelectedValue.ToEntero) Then
|
If Not ObjOrdenServicio.AddOrdenesServicios(CveCliente, DdlSubProyecto.SelectedValue.ToEntero, TxtSolicito.Text, TxtFechaRecibido.Text.ToDateTime, TxtDescripcion.Text, UsuarioActual.CveUsuario, DdlEstatusOS.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCotizacion, -1, -1, DdlTipoOrdenOS.SelectedValue.ToEntero, CveClienteSucursal:=DdlSucursalCliente.SelectedValue.ToEntero) Then
|
||||||
Errores = True
|
Errores = True
|
||||||
End If
|
End If
|
||||||
|
CargaCliente(CveCliente)
|
||||||
For Each Row As DataRow In TmpDT.Rows
|
For Each Row As DataRow In TmpDT.Rows
|
||||||
If Not Errores Then
|
If Not Errores Then
|
||||||
Dim Consecutivo As Integer = Row("Consecutivo").ToString.ToEntero
|
Dim Consecutivo As Integer = Row("Consecutivo").ToString.ToEntero
|
||||||
@@ -2423,6 +2446,46 @@ Partial Class OS_OrdenesServicios
|
|||||||
|
|
||||||
ImprimirPDF("Empresas/Grales/Formatos/OrdenServicio.rdlc", lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
|
ImprimirPDF("Empresas/Grales/Formatos/OrdenServicio.rdlc", lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ImprimirAlGenerar()
|
||||||
|
Dim params As New List(Of ReportParameter)
|
||||||
|
Dim report As LocalReport = New LocalReport()
|
||||||
|
|
||||||
|
Dim dt As DataTable = TmpDT
|
||||||
|
Dim DtMateriales As DataTable = TmpDTMaterialesDetalle
|
||||||
|
|
||||||
|
report.ReportPath = String.Format("Empresas/{0}/Formatos/FormatoOS.rdlc", UsuarioActual.CveEmpresa)
|
||||||
|
|
||||||
|
params.Add(New ReportParameter("Cliente", NombreCliente))
|
||||||
|
params.Add(New ReportParameter("Direccion", ClienteDireccion))
|
||||||
|
params.Add(New ReportParameter("NoDeCliente", TxtCodigo.Text))
|
||||||
|
params.Add(New ReportParameter("RFC", ClienteRFC))
|
||||||
|
params.Add(New ReportParameter("Poblacion", ClienteCiudad))
|
||||||
|
params.Add(New ReportParameter("Vendedor", UsuarioActual.Nombre))
|
||||||
|
params.Add(New ReportParameter("Contacto", TxtSolicito.Text))
|
||||||
|
params.Add(New ReportParameter("Correo", ClienteMail))
|
||||||
|
params.Add(New ReportParameter("Sucursal", DdlSubProyecto.SelectedItem.Value))
|
||||||
|
params.Add(New ReportParameter("TipoServicio", "Reparación/Diagnostico"))
|
||||||
|
params.Add(New ReportParameter("DiaFecha", Date.Today.Day.ToString))
|
||||||
|
params.Add(New ReportParameter("MesFecha", Date.Today.Month.ToString))
|
||||||
|
params.Add(New ReportParameter("AñoFecha", Date.Today.Year.ToString))
|
||||||
|
params.Add(New ReportParameter("DiaVigencia", Date.Today.Day.ToString))
|
||||||
|
params.Add(New ReportParameter("MesVigencia", Date.Today.Month.ToString))
|
||||||
|
params.Add(New ReportParameter("AñoVigencia", Date.Today.Year.ToString))
|
||||||
|
params.Add(New ReportParameter("Folio", CveFolio.ToString))
|
||||||
|
params.Add(New ReportParameter("CodigoDeServicio", CveOS.ToString))
|
||||||
|
params.Add(New ReportParameter("FallaReportada", TxtDescripcion.Text))
|
||||||
|
params.Add(New ReportParameter("Copia", "Copia: Cliente"))
|
||||||
|
|
||||||
|
Dim lrds As New List(Of ReportDataSource)
|
||||||
|
Dim rds As New ReportDataSource With {.Name = "DataSet2", .Value = DtMateriales}
|
||||||
|
Dim rds2 As New ReportDataSource With {.Name = "DataSet1", .Value = dt}
|
||||||
|
|
||||||
|
lrds.Add(rds)
|
||||||
|
lrds.Add(rds2)
|
||||||
|
|
||||||
|
ImprimirPDF(String.Format("Empresas/{0}/Formatos/FormatoOS.rdlc", UsuarioActual.CveEmpresa), lrds, params, NombreArchivo:=String.Format("OrdenServicio-{0}", CveFolio))
|
||||||
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "S O L I C I T A R M A T E R I A L"
|
#Region "S O L I C I T A R M A T E R I A L"
|
||||||
|
|||||||
61
SqlServerTypes/readme.htm
Normal file
61
SqlServerTypes/readme.htm
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
<html lang="en-US">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>Microsoft.SqlServer.Types</title>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
background: #fff;
|
||||||
|
color: #505050;
|
||||||
|
margin: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#main {
|
||||||
|
background: #efefef;
|
||||||
|
padding: 5px 30px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="main">
|
||||||
|
<h1>Action required to load native assemblies</h1>
|
||||||
|
<p>
|
||||||
|
To deploy an application that uses spatial data types to a machine that does not have 'System CLR Types for SQL Server' installed you also need to deploy the native assembly SqlServerSpatial140.dll. Both x86 (32 bit) and x64 (64 bit) versions of this assembly have been added to your project under the SqlServerTypes\x86 and SqlServerTypes\x64 subdirectories. The native assembly msvcr120.dll is also included in case the C++ runtime is not installed.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
You need to add code to load the correct one of these assemblies at runtime (depending on the current architecture).
|
||||||
|
</p>
|
||||||
|
<h2>ASP.NET Web Sites</h2>
|
||||||
|
<p>
|
||||||
|
For ASP.NET Web Sites, add the following block of code to the code behind file of the Web Form where you have added Report Viewer Control:
|
||||||
|
<pre>
|
||||||
|
Default.aspx.cs:
|
||||||
|
|
||||||
|
public partial class _Default : System.Web.UI.Page
|
||||||
|
{
|
||||||
|
static bool _isSqlTypesLoaded = false;
|
||||||
|
|
||||||
|
public _Default()
|
||||||
|
{
|
||||||
|
if (!_isSqlTypesLoaded)
|
||||||
|
{
|
||||||
|
SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~"));
|
||||||
|
_isSqlTypesLoaded = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</p>
|
||||||
|
<h2>ASP.NET Web Applications</h2>
|
||||||
|
<p>
|
||||||
|
For ASP.NET Web Applications, add the following line of code to the Application_Start method in Global.asax.cs:
|
||||||
|
<pre> SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin"));</pre>
|
||||||
|
</p>
|
||||||
|
<h2>Desktop Applications</h2>
|
||||||
|
<p>
|
||||||
|
For desktop applications, add the following line of code to run before any spatial operations are performed:
|
||||||
|
<pre> SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);</pre>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -584,11 +584,11 @@
|
|||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<label for="<%= DdlTipoCliente.ClientID.ToString()%>">Tipo de Cliente:</label>
|
<label for="<%= DdlTipoCliente.ClientID.ToString()%>">Tipo de Cliente:</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright" runat="server" id="DivCargoUsado" visible="false">
|
||||||
<label>Cargo Usado:</label>
|
<label>Cargo Usado:</label>
|
||||||
<asp:CheckBox ID="ChkCargoUsado" runat="server" CssClass="make-switchsd" data-size="small" Text="" ClientIDMode="Static" />
|
<asp:CheckBox ID="ChkCargoUsado" runat="server" CssClass="make-switchsd" data-size="small" Text="" ClientIDMode="Static" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright" runat="server" id="DivBonificacionUsado" visible="false">
|
||||||
<label>Bonificación Usado:</label>
|
<label>Bonificación Usado:</label>
|
||||||
<asp:CheckBox ID="ChkBonificacionUsado" runat="server" CssClass="make-switchsd" data-size="small" Text="" ClientIDMode="Static" />
|
<asp:CheckBox ID="ChkBonificacionUsado" runat="server" CssClass="make-switchsd" data-size="small" Text="" ClientIDMode="Static" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1650,6 +1650,8 @@ Partial Class Clientes
|
|||||||
|
|
||||||
DivEsDistribuidor.Visible = True
|
DivEsDistribuidor.Visible = True
|
||||||
TabUsados.Visible = True
|
TabUsados.Visible = True
|
||||||
|
DivCargoUsado.Visible = True
|
||||||
|
DivBonificacionUsado.Visible = True
|
||||||
CargaUsados()
|
CargaUsados()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -4641,6 +4641,8 @@ Partial Class PV
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
ObjCliente.Dispose()
|
ObjCliente.Dispose()
|
||||||
|
|
||||||
|
RecargaGlobalCliente()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
@@ -4823,6 +4825,18 @@ Partial Class PV
|
|||||||
|
|
||||||
ObjPS.Dispose()
|
ObjPS.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub RecargaGlobalCliente()
|
||||||
|
Dim Hilo As New System.Threading.Thread(AddressOf GeneraGlobalDTCliente)
|
||||||
|
Hilo.Start()
|
||||||
|
End Sub
|
||||||
|
Private Sub GeneraGlobalDTCliente()
|
||||||
|
Dim Objclientes As New ClsClientes
|
||||||
|
If Objclientes.GetClientes(-1, "-1", "-1", "-1", "-1", "-1", "-1", -1, -1, Estatus:=-1, TipoCliente:=-1) Then
|
||||||
|
Application("GlobalDTCliente") = Objclientes.DtResultados
|
||||||
|
End If
|
||||||
|
Objclientes.Dispose()
|
||||||
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "CLASIFICACIONES DETALLES"
|
#Region "CLASIFICACIONES DETALLES"
|
||||||
|
|||||||
@@ -557,7 +557,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:DropDownList ID="DdlIEPSPorcentaje" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" Enabled="false">
|
<asp:DropDownList ID="DdlIEPSPorcentaje" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" Enabled="false" AutoPostBack="true" OnSelectedIndexChanged="DdlIEPSPorcentaje_SelectedIndexChanged">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="0"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="0"></asp:ListItem>
|
||||||
<asp:ListItem Text="0%" Value="0.00"></asp:ListItem>
|
<asp:ListItem Text="0%" Value="0.00"></asp:ListItem>
|
||||||
<asp:ListItem Text="3%" Value="0.03"></asp:ListItem>
|
<asp:ListItem Text="3%" Value="0.03"></asp:ListItem>
|
||||||
|
|||||||
@@ -2597,5 +2597,16 @@ Partial Class ProductosyServicios
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub DdlIEPSPorcentaje_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles DdlIEPSPorcentaje.SelectedIndexChanged
|
||||||
|
Select Case DdlIEPSPorcentaje.SelectedValue
|
||||||
|
Case "0.09"
|
||||||
|
DdlCategoriaToxicidad.SelectedValueExist("001")
|
||||||
|
Case "0.07"
|
||||||
|
DdlCategoriaToxicidad.SelectedValueExist("002")
|
||||||
|
Case "0.06"
|
||||||
|
DdlCategoriaToxicidad.SelectedValueExist("003")
|
||||||
|
Case Else
|
||||||
|
DdlCategoriaToxicidad.SelectedValueExist("000")
|
||||||
|
End Select
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -3434,6 +3434,7 @@
|
|||||||
<asp:RequiredFieldValidator ID="RFVNCPSAnt" runat="server" InitialValue="-1" ControlToValidate="DdlNCPSAnt" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor ingréselo." ValidationGroup="VGAnticiposClientes"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVNCPSAnt" runat="server" InitialValue="-1" ControlToValidate="DdlNCPSAnt" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor ingréselo." ValidationGroup="VGAnticiposClientes"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCERFVNCPSAnt" runat="server" HighlightCssClass="vco" TargetControlID="RFVNCPSAnt" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCERFVNCPSAnt" runat="server" HighlightCssClass="vco" TargetControlID="RFVNCPSAnt" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row" id="DivFechaAnticipoCliente" runat="server" visible="false">
|
<div class="row" id="DivFechaAnticipoCliente" runat="server" visible="false">
|
||||||
@@ -5762,6 +5763,10 @@
|
|||||||
<asp:RequiredFieldValidator ID="RFVNCPS" runat="server" InitialValue="-1" ControlToValidate="DdlNCPS" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpModalAplicarNC"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVNCPS" runat="server" InitialValue="-1" ControlToValidate="DdlNCPS" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpModalAplicarNC"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCENCPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVNCPS" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCENCPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVNCPS" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<asp:Label ID="LblNCSaldoAnticipo" runat="server" Text=""></asp:Label>
|
||||||
|
<asp:CheckBox ID="ChkAplicaNCAnticipo" runat="server" Text="Aplicar a Anticipo" Visible="false" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row form-group">
|
<div class="row form-group">
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
@@ -5929,7 +5934,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button id="CancelarAplicarNC" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
<button id="CancelarAplicarNC" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||||||
<asp:Button Text="AplicarNC" ID="BtnAplicarNC" OnClick="BtnAplicarNC_Click" CssClass="btn btn-primary" ValidationGroup="GrpModalAplicarNC" runat="server" />
|
<asp:Button Text="Aplicar NC" ID="BtnAplicarNC" OnClick="BtnAplicarNC_Click" CssClass="btn btn-primary" ValidationGroup="GrpModalAplicarNC" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
|
|||||||
@@ -3567,6 +3567,12 @@ Partial Class Ventas
|
|||||||
HplPagado.NavigateUrl = String.Format("/Contabilidad/PopUpAuxiliar.aspx?Tipo=CxCClientes&CveCliente={0}&CveVenta={1}&TB_iframe=true&height=550&width=920", DbRowVenta("CveCliente"), DbRowVenta("CveVenta"))
|
HplPagado.NavigateUrl = String.Format("/Contabilidad/PopUpAuxiliar.aspx?Tipo=CxCClientes&CveCliente={0}&CveVenta={1}&TB_iframe=true&height=550&width=920", DbRowVenta("CveCliente"), DbRowVenta("CveVenta"))
|
||||||
'LkNotaCredito.Visible = True
|
'LkNotaCredito.Visible = True
|
||||||
HplDownXML.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", CveVenta, "XML", DbRowVenta("SerieFolio"), DbRowVenta("TipoDocto"))))
|
HplDownXML.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", CveVenta, "XML", DbRowVenta("SerieFolio"), DbRowVenta("TipoDocto"))))
|
||||||
|
'visualizo el saldo de anticipos, para cuando se aplique una Nota de crédito, decida si afecta anticipos o a DSV
|
||||||
|
LblNCSaldoAnticipo.Visible = True
|
||||||
|
ChkAplicaNCAnticipo.Visible = True
|
||||||
|
ChkAplicaNCAnticipo.Checked = True
|
||||||
|
If DbRowVenta("SaldoAnticipo").ToString.ToDouble <= 0 Then ChkAplicaNCAnticipo.Checked = False : ChkAplicaNCAnticipo.Enabled = False
|
||||||
|
LblNCSaldoAnticipo.Text = String.Format("Saldo Anticipo: $ {0}", DbRowVenta("SaldoAnticipo").ToString.ToDouble.FormatoNumero)
|
||||||
Case "Dev"
|
Case "Dev"
|
||||||
DdlTipoComprobante.Items.Insert(0, New ListItem("Devolucion", "Dev"))
|
DdlTipoComprobante.Items.Insert(0, New ListItem("Devolucion", "Dev"))
|
||||||
HplDownXML.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", CveVenta, "XML", DbRowVenta("SerieFolio"), DbRowVenta("TipoDocto"))))
|
HplDownXML.NavigateUrl = String.Format("/Compras/PopUpVerFactura.aspx?P={0}", Encripta(String.Format("OP=FactVta&CVEVENTA={0}&EXT={1}&SERIEFOLIO={2}&TIPODOCTO={3}", CveVenta, "XML", DbRowVenta("SerieFolio"), DbRowVenta("TipoDocto"))))
|
||||||
@@ -9978,7 +9984,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
'cuando es NC, por amortización de anticipo, no debe de registrar el concepto 11,
|
'cuando es NC, por amortización de anticipo, no debe de registrar el concepto 11,
|
||||||
'pero cuando es NC y se aplicó anticipo, debe de restarle el importe
|
'pero cuando es NC y se aplicó anticipo, debe de restarle el importe
|
||||||
If ObjFactura.TipoDocto.Contiene("Egs") And CveAnticipo > 0 Then
|
If ObjFactura.TipoDocto.Contiene("Egs") And CveAnticipo > 0 AndAlso ChkAplicaNCAnticipo.Checked = True Then
|
||||||
ConceptoContableAplicar = 11
|
ConceptoContableAplicar = 11
|
||||||
CveVentaAplicar = CveAnticipo
|
CveVentaAplicar = CveAnticipo
|
||||||
CveVentaAmortizacionAplicar = ObjFactura.CveVenta
|
CveVentaAmortizacionAplicar = ObjFactura.CveVenta
|
||||||
@@ -15840,16 +15846,18 @@ Partial Class Ventas
|
|||||||
|
|
||||||
'CONVERTIR REMISION - TIPO MONEDA -PESO A DOLARES
|
'CONVERTIR REMISION - TIPO MONEDA -PESO A DOLARES
|
||||||
If DdlMoneda.SelectedValue.ToEntero <> 1 AndAlso ChkConvertirDoctoPesos.Checked Then
|
If DdlMoneda.SelectedValue.ToEntero <> 1 AndAlso ChkConvertirDoctoPesos.Checked Then
|
||||||
|
Dim Importe As Decimal
|
||||||
|
Dim TCC As Decimal = TxtTipoCambio.Text.Trim.ToDecimal
|
||||||
For Each Row As DataRow In TmpDT.Rows
|
For Each Row As DataRow In TmpDT.Rows
|
||||||
Row("PU") = Math.Round(Row("PU").ToString.ToDecimal * TxtTipoCambio.Text.Trim.ToDecimal, 6)
|
Row("PU") = Math.Round(Row("PU").ToString.ToDecimal * TCC, 6)
|
||||||
Row("Total") = Math.Round(Row("Cantidad").ToString.ToDecimal * Row("PU").ToString.ToDecimal, NumeroDecimales)
|
Row("Total") = Math.Round(Row("Cantidad").ToString.ToDecimal * Row("PU").ToString.ToDecimal, NumeroDecimales)
|
||||||
Row("TotalImporte") = Math.Round(Row("Cantidad").ToString.ToDecimal * Row("PU").ToString.ToDecimal, NumeroDecimales)
|
Row("TotalImporte") = Math.Round(Row("Cantidad").ToString.ToDecimal * Row("PU").ToString.ToDecimal, NumeroDecimales)
|
||||||
Row("Descuento") = Math.Round(Row("Descuento").ToString.ToDecimal * TxtTipoCambio.Text.Trim.ToDecimal, NumeroDecimales)
|
Row("Descuento") = Math.Round(Row("Descuento").ToString.ToDecimal * TCC, NumeroDecimales)
|
||||||
Row("ImporteIEPS") = Math.Round(Row("ImporteIEPS").ToString.ToDecimal * TxtTipoCambio.Text.Trim.ToDecimal, NumeroDecimales)
|
Importe = Row("Total").ToString.ToDecimal - Row("Descuento").ToString.ToDecimal
|
||||||
Row("ImporteIVA") = Math.Round(Row("ImporteIVA").ToString.ToDecimal * TxtTipoCambio.Text.Trim.ToDecimal, NumeroDecimales)
|
Row("ImporteIEPS") = Math.Round(Importe * Row("PorcentajeIEPS").ToString.ToDecimal, NumeroDecimales)
|
||||||
Row("ImporteRetIVA") = Math.Round(Row("ImporteRetIVA").ToString.ToDecimal * TxtTipoCambio.Text.Trim.ToDecimal, NumeroDecimales)
|
Row("ImporteIVA") = Math.Round(Importe * Row("PorcentajeIVA").ToString.ToDecimal, NumeroDecimales)
|
||||||
Row("ImporteRetISR") = Math.Round(Row("ImporteRetISR").ToString.ToDecimal * TxtTipoCambio.Text.Trim.ToDecimal, NumeroDecimales)
|
Row("ImporteRetIVA") = Math.Round(Importe * Row("PorcentajeRetIVA").ToString.ToDecimal, NumeroDecimales)
|
||||||
|
Row("ImporteRetISR") = Math.Round(Importe * Row("PorcentajeRetISR").ToString.ToDecimal, NumeroDecimales)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Dim ImpuestosLocales As Double = 0
|
Dim ImpuestosLocales As Double = 0
|
||||||
@@ -16780,7 +16788,7 @@ Partial Class Ventas
|
|||||||
End Sub
|
End Sub
|
||||||
Private Sub GeneraGlobalDTCliente()
|
Private Sub GeneraGlobalDTCliente()
|
||||||
Dim Objclientes As New ClsClientes
|
Dim Objclientes As New ClsClientes
|
||||||
If Objclientes.GetClientes(-1, "-1", "-1", "-1", "-1", "-1", "-1", -1, -1, Estatus:=-1) Then
|
If Objclientes.GetClientes(-1, "-1", "-1", "-1", "-1", "-1", "-1", -1, -1, Estatus:=-1,TipoCliente:=-1) Then
|
||||||
Application("GlobalDTCliente") = Objclientes.DtResultados
|
Application("GlobalDTCliente") = Objclientes.DtResultados
|
||||||
End If
|
End If
|
||||||
Objclientes.Dispose()
|
Objclientes.Dispose()
|
||||||
|
|||||||
@@ -7,7 +7,9 @@
|
|||||||
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net40" />
|
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net40" />
|
||||||
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net40" />
|
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net40" />
|
||||||
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net40" />
|
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net40" />
|
||||||
|
<package id="Microsoft.ReportingServices.ReportViewerControl.WebForms" version="150.1358.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.ReportViewer.2015.Runtime" version="12.0.2.2402" targetFramework="net4" />
|
<package id="Microsoft.ReportViewer.2015.Runtime" version="12.0.2.2402" targetFramework="net4" />
|
||||||
|
<package id="Microsoft.SqlServer.Types" version="14.0.1016.290" targetFramework="net45" />
|
||||||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net4" />
|
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net4" />
|
||||||
<package id="Microsoft.Web.Xdt" version="1.0.0" targetFramework="net4" />
|
<package id="Microsoft.Web.Xdt" version="1.0.0" targetFramework="net4" />
|
||||||
<package id="NC-OS-SessionStateProvider" version="4.4.0.0" targetFramework="net40" />
|
<package id="NC-OS-SessionStateProvider" version="4.4.0.0" targetFramework="net40" />
|
||||||
|
|||||||
Reference in New Issue
Block a user