Clientes reacomodo, limpieza modulos, rep compras af
This commit is contained in:
@@ -440,7 +440,11 @@ Public Class ClsClasificaciones
|
|||||||
End Try
|
End Try
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
'Public Function UpdateClasificacionCunetas(CveClasificacion As Integer, CveCuentaContableIngreso As Integer, CveCuentaContableGasto As Integer, CveEmpresa As Object) As Boolean
|
||||||
|
|
||||||
|
'End Function
|
||||||
|
|
||||||
Public Function RemoveClasificacion(CveClasificacion As Integer) As Boolean
|
Public Function RemoveClasificacion(CveClasificacion As Integer) As Boolean
|
||||||
Dim OnError As Boolean = False
|
Dim OnError As Boolean = False
|
||||||
@@ -662,6 +666,8 @@ Public Class ClsClasificaciones
|
|||||||
Dispose(True)
|
Dispose(True)
|
||||||
GC.SuppressFinalize(Me)
|
GC.SuppressFinalize(Me)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -589,7 +589,7 @@ Public Class ClsClientes
|
|||||||
Optional CveMotivoTraslado As Integer = 0, Optional NumRegIdTrib As String = "", Optional ComExtEstado As String = "-1", Optional ComExtMunicipio As String = "-1", Optional ComExtColonia As String = "-1", Optional RequiereOC As Boolean = False,
|
Optional CveMotivoTraslado As Integer = 0, Optional NumRegIdTrib As String = "", Optional ComExtEstado As String = "-1", Optional ComExtMunicipio As String = "-1", Optional ComExtColonia As String = "-1", Optional RequiereOC As Boolean = False,
|
||||||
Optional LT As String = "0", Optional LG As String = "0", Optional EsDistribuidor As Boolean = False, Optional TipoCliente As Integer = 1, Optional CargoUsado As Boolean = False, Optional BonificacionUsado As Boolean = False, Optional CveTipoRetencion As Integer = 0,
|
Optional LT As String = "0", Optional LG As String = "0", Optional EsDistribuidor As Boolean = False, Optional TipoCliente As Integer = 1, Optional CargoUsado As Boolean = False, Optional BonificacionUsado As Boolean = False, Optional CveTipoRetencion As Integer = 0,
|
||||||
Optional CorreoEntregaCompras As String = "-1", Optional CorreoEntregaAlmacen As String = "-1", Optional CveSATEstado As Integer = -1, Optional CveAdminTrayecto As Integer = -1, Optional CveRegimenFiscal As Integer = 0, Optional RegimenSociedad As String = "-1", Optional TipoPersona As Boolean = False,
|
Optional CorreoEntregaCompras As String = "-1", Optional CorreoEntregaAlmacen As String = "-1", Optional CveSATEstado As Integer = -1, Optional CveAdminTrayecto As Integer = -1, Optional CveRegimenFiscal As Integer = 0, Optional RegimenSociedad As String = "-1", Optional TipoPersona As Boolean = False,
|
||||||
Optional RepresentanteLegal As String = "") As Boolean
|
Optional RepresentanteLegal As String = "", Optional FechaLimiteCredito As Date = MinFecha) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
|
||||||
@@ -735,11 +735,7 @@ Public Class ClsClientes
|
|||||||
.Add("@RegimenSociedad", SqlDbType.VarChar).Value = RegimenSociedad
|
.Add("@RegimenSociedad", SqlDbType.VarChar).Value = RegimenSociedad
|
||||||
.Add("@TipoPersona", SqlDbType.Bit).Value = TipoPersona
|
.Add("@TipoPersona", SqlDbType.Bit).Value = TipoPersona
|
||||||
.Add("@RepresentanteLegal", SqlDbType.VarChar).Value = RepresentanteLegal
|
.Add("@RepresentanteLegal", SqlDbType.VarChar).Value = RepresentanteLegal
|
||||||
|
.Add("@FechaLimiteCredito", SqlDbType.Date).Value = FechaLimiteCredito
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
@@ -789,7 +785,7 @@ Public Class ClsClientes
|
|||||||
Optional ApellidoPaternoPF As String = "-1", Optional ApellidoMaternoPF As String = "-1", Optional NombresPF As String = "-1", Optional RequiereOC As Boolean = False,
|
Optional ApellidoPaternoPF As String = "-1", Optional ApellidoMaternoPF As String = "-1", Optional NombresPF As String = "-1", Optional RequiereOC As Boolean = False,
|
||||||
Optional LT As String = "0", Optional LG As String = "0", Optional EsDistribuidor As Boolean = False, Optional TipoCliente As Integer = 1, Optional CargoUsado As Boolean = False, Optional BonificacionUsado As Boolean = False, Optional CveTipoRetencion As Integer = 0, Optional CorreoEntregaCompras As String = "-1", Optional CorreoEntregaAlmacen As String = "-1",
|
Optional LT As String = "0", Optional LG As String = "0", Optional EsDistribuidor As Boolean = False, Optional TipoCliente As Integer = 1, Optional CargoUsado As Boolean = False, Optional BonificacionUsado As Boolean = False, Optional CveTipoRetencion As Integer = 0, Optional CorreoEntregaCompras As String = "-1", Optional CorreoEntregaAlmacen As String = "-1",
|
||||||
Optional CveSATEstado As Integer = -1, Optional CveAdminTrayecto As Integer = -1, Optional NoDesglosaIVA As Boolean = False, Optional CveRegimenFiscal As Integer = 0, Optional RegimenSociedad As String = "-1", Optional TipoPersona As Boolean = False,
|
Optional CveSATEstado As Integer = -1, Optional CveAdminTrayecto As Integer = -1, Optional NoDesglosaIVA As Boolean = False, Optional CveRegimenFiscal As Integer = 0, Optional RegimenSociedad As String = "-1", Optional TipoPersona As Boolean = False,
|
||||||
Optional RepresentanteLegal As String = "") As Boolean
|
Optional RepresentanteLegal As String = "", Optional FechaLimiteCredito As Date = MinFecha) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
@@ -951,6 +947,7 @@ Public Class ClsClientes
|
|||||||
.Add("@RegimenSociedad", SqlDbType.VarChar).Value = RegimenSociedad
|
.Add("@RegimenSociedad", SqlDbType.VarChar).Value = RegimenSociedad
|
||||||
.Add("@TipoPersona", SqlDbType.Bit).Value = TipoPersona
|
.Add("@TipoPersona", SqlDbType.Bit).Value = TipoPersona
|
||||||
.Add("@RepresentanteLegal", SqlDbType.VarChar).Value = RepresentanteLegal
|
.Add("@RepresentanteLegal", SqlDbType.VarChar).Value = RepresentanteLegal
|
||||||
|
.Add("@FechaLimiteCredito", SqlDbType.Date).Value = FechaLimiteCredito
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4285,8 +4285,6 @@ Public Class ClsPaginas
|
|||||||
PaginaDict.Add("/GPS/ReporteUnidadesnoTransmiten.aspx".ToUpper(), 917)
|
PaginaDict.Add("/GPS/ReporteUnidadesnoTransmiten.aspx".ToUpper(), 917)
|
||||||
|
|
||||||
PaginaDict.Add("/GPS/RepArrastre.aspx".ToUpper(), 718)
|
PaginaDict.Add("/GPS/RepArrastre.aspx".ToUpper(), 718)
|
||||||
PaginaDict.Add("/Ventas/RepConciliacionSat.aspx".ToUpper(), 716)
|
|
||||||
PaginaDict.Add("/Ventas/SolicitudesSAT.aspx".ToUpper(), 717)
|
|
||||||
|
|
||||||
PaginaDict.Add("/Nomina/CatConceptos2.aspx".ToUpper(), -1)
|
PaginaDict.Add("/Nomina/CatConceptos2.aspx".ToUpper(), -1)
|
||||||
PaginaDict.Add("/Nomina/NomTimbrados.aspx".ToUpper(), 920)
|
PaginaDict.Add("/Nomina/NomTimbrados.aspx".ToUpper(), 920)
|
||||||
@@ -5468,8 +5466,8 @@ Public Class ClsPaginas
|
|||||||
PaginaDict.Add("/Ventas/CatImpuestosLocales.aspx".ToUpper(), 394)
|
PaginaDict.Add("/Ventas/CatImpuestosLocales.aspx".ToUpper(), 394)
|
||||||
PaginaDict.Add("/Ventas/ActualizarPrecios.aspx".ToUpper(), 397)
|
PaginaDict.Add("/Ventas/ActualizarPrecios.aspx".ToUpper(), 397)
|
||||||
PaginaDict.Add("/Ventas/ClientesAbonar.aspx".ToUpper(), 321)
|
PaginaDict.Add("/Ventas/ClientesAbonar.aspx".ToUpper(), 321)
|
||||||
PaginaDict.Add("/Ventas/DiseñadorReportes.aspx".ToUpper(), 569)
|
|
||||||
PaginaDict.Add("/Ventas/ReporteDetalle.aspx".ToUpper(), 576)
|
|
||||||
PaginaDict.Add("/Ventas/PopUpBuscarPs.aspx".ToUpper(), 13)
|
PaginaDict.Add("/Ventas/PopUpBuscarPs.aspx".ToUpper(), 13)
|
||||||
PaginaDict.Add("/Ventas/RepVentasUtilidadPadre.aspx".ToUpper(), 590)
|
PaginaDict.Add("/Ventas/RepVentasUtilidadPadre.aspx".ToUpper(), 590)
|
||||||
PaginaDict.Add("/Ventas/RepVentasUtilidad.aspx".ToUpper(), 590)
|
PaginaDict.Add("/Ventas/RepVentasUtilidad.aspx".ToUpper(), 590)
|
||||||
@@ -5502,7 +5500,7 @@ Public Class ClsPaginas
|
|||||||
|
|
||||||
PaginaDict.Add("/Ventas/RepCancelacionesPorAtender.aspx".ToUpper(), 750)
|
PaginaDict.Add("/Ventas/RepCancelacionesPorAtender.aspx".ToUpper(), 750)
|
||||||
PaginaDict.Add("/Ventas/RepCancelacionesPorRespuesta.aspx".ToUpper(), 751)
|
PaginaDict.Add("/Ventas/RepCancelacionesPorRespuesta.aspx".ToUpper(), 751)
|
||||||
PaginaDict.Add("/Ventas/RepIngresos.aspx".ToUpper(), 540)
|
|
||||||
'Reportes de Anticipos-NC-IXC'
|
'Reportes de Anticipos-NC-IXC'
|
||||||
PaginaDict.Add("/Ventas/RepAnticipo-NC-IXC.aspx".ToUpper(), 869)
|
PaginaDict.Add("/Ventas/RepAnticipo-NC-IXC.aspx".ToUpper(), 869)
|
||||||
PaginaDict.Add("/Ventas/RepAnticipo-NC-IXCDetalle.aspx".ToUpper(), 869)
|
PaginaDict.Add("/Ventas/RepAnticipo-NC-IXCDetalle.aspx".ToUpper(), 869)
|
||||||
|
|||||||
@@ -1495,13 +1495,14 @@ Public Class ClsSisUsuarios
|
|||||||
|
|
||||||
|
|
||||||
#Region " S U B - P R O Y E C T O S "
|
#Region " S U B - P R O Y E C T O S "
|
||||||
Public Function GetSubProyectos(CveUsuario As Integer) As Boolean
|
Public Function GetSubProyectos(CveUsuario As Integer, Optional CveSubProyecto As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Sis_UsuariosSubProyectosGet")
|
DataAdapter("PA_Sis_UsuariosSubProyectosGet")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -6097,7 +6097,17 @@ Partial Class Bancos_IE
|
|||||||
Dim Cuerpo As String = "Se hace entrega del comprobante de pago"
|
Dim Cuerpo As String = "Se hace entrega del comprobante de pago"
|
||||||
Dim Asunto As String = "Entrega de comprobante de pago"
|
Dim Asunto As String = "Entrega de comprobante de pago"
|
||||||
|
|
||||||
If IO.File.Exists(RutaPDF) AndAlso IO.File.Exists(RutaXML) Then
|
Dim ErrorAdjuntas As String = ""
|
||||||
|
|
||||||
|
If Not IO.File.Exists(RutaPDF) Then
|
||||||
|
ErrorAdjuntas = "No se pudo adjuntar el archivo PDF<br>"
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not IO.File.Exists(RutaXML) Then
|
||||||
|
ErrorAdjuntas = $"{ErrorAdjuntas} No se pudo adjuntar el XML."
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ErrorAdjuntas.Length > 0 Then
|
||||||
|
|
||||||
Dim LSRutasMail As New List(Of ClsSisMail.ArchivoMail)
|
Dim LSRutasMail As New List(Of ClsSisMail.ArchivoMail)
|
||||||
|
|
||||||
@@ -6116,7 +6126,7 @@ Partial Class Bancos_IE
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Msg = "No se pudo adjuntar el correo electrónico."
|
Msg = ErrorAdjuntas
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -329,8 +329,6 @@
|
|||||||
<asp:Label Id="LtlPU" runat="server" Text='<%# Eval("PU", "{0:N2}") %>'></asp:Label>
|
<asp:Label Id="LtlPU" runat="server" Text='<%# Eval("PU", "{0:N2}") %>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
@@ -341,6 +339,15 @@
|
|||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px">
|
||||||
|
<HeaderTemplate>
|
||||||
|
Cuenta
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label Id="LtlPU" runat="server" Text='<%# Eval("CuentaContable") %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
<%--<RowStyle CssClass="Texto" />
|
<%--<RowStyle CssClass="Texto" />
|
||||||
<HeaderStyle CssClass="Titulos" />--%>
|
<HeaderStyle CssClass="Titulos" />--%>
|
||||||
|
|||||||
@@ -65,10 +65,18 @@
|
|||||||
<DataField>AFTipoMantenimientoStr</DataField>
|
<DataField>AFTipoMantenimientoStr</DataField>
|
||||||
<rd:TypeName>System.String</rd:TypeName>
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
</Field>
|
</Field>
|
||||||
|
<Field Name="Clasificacion2">
|
||||||
|
<DataField>Clasificacion2</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
<Field Name="Orden">
|
<Field Name="Orden">
|
||||||
<DataField>Orden</DataField>
|
<DataField>Orden</DataField>
|
||||||
<rd:TypeName>System.String</rd:TypeName>
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
</Field>
|
</Field>
|
||||||
|
<Field Name="CuentaContable">
|
||||||
|
<DataField>CuentaContable</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
</Fields>
|
</Fields>
|
||||||
<rd:DataSetInfo>
|
<rd:DataSetInfo>
|
||||||
<rd:DataSetName>DataSet</rd:DataSetName>
|
<rd:DataSetName>DataSet</rd:DataSetName>
|
||||||
@@ -135,36 +143,45 @@
|
|||||||
<Width>1.88881cm</Width>
|
<Width>1.88881cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>2.69134cm</Width>
|
<Width>2.02988cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>5.54514cm</Width>
|
<Width>4.99622cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>6.16934cm</Width>
|
<Width>2.47188cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>2.5cm</Width>
|
<Width>2.5cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>2.02988cm</Width>
|
<Width>1.66017cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>1.22736cm</Width>
|
<Width>1.79916cm</Width>
|
||||||
|
</TablixColumn>
|
||||||
|
<TablixColumn>
|
||||||
|
<Width>2.5cm</Width>
|
||||||
|
</TablixColumn>
|
||||||
|
<TablixColumn>
|
||||||
|
<Width>0.96278cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>1.36229cm</Width>
|
<Width>1.36229cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>1.77949cm</Width>
|
<Width>1.09772cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>1.57396cm</Width>
|
<Width>1.46813cm</Width>
|
||||||
|
</TablixColumn>
|
||||||
|
<TablixColumn>
|
||||||
|
<Width>2.03058cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
</TablixColumns>
|
</TablixColumns>
|
||||||
<TablixRows>
|
<TablixRows>
|
||||||
<TablixRow>
|
<TablixRow>
|
||||||
<Height>0.6cm</Height>
|
<Height>0.73231cm</Height>
|
||||||
<TablixCells>
|
<TablixCells>
|
||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
@@ -177,12 +194,14 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Serie Folio</Value>
|
<Value>Serie Folio</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox4</rd:DefaultName>
|
<rd:DefaultName>Textbox4</rd:DefaultName>
|
||||||
@@ -211,12 +230,14 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Sub Proyecto</Value>
|
<Value>Sub Proyecto</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox14</rd:DefaultName>
|
<rd:DefaultName>Textbox14</rd:DefaultName>
|
||||||
@@ -243,14 +264,16 @@
|
|||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Descripcion</Value>
|
<Value>Activo Fijo</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox6</rd:DefaultName>
|
<rd:DefaultName>Textbox6</rd:DefaultName>
|
||||||
@@ -279,12 +302,14 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Producto</Value>
|
<Value>Producto</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox15</rd:DefaultName>
|
<rd:DefaultName>Textbox15</rd:DefaultName>
|
||||||
@@ -313,12 +338,14 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Responsable</Value>
|
<Value>Responsable</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox16</rd:DefaultName>
|
<rd:DefaultName>Textbox16</rd:DefaultName>
|
||||||
@@ -345,26 +372,30 @@
|
|||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Horometro/</Value>
|
<Value>Horo./</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Odometro</Value>
|
<Value>Odo.</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox18</rd:DefaultName>
|
<rd:DefaultName>Textbox18</rd:DefaultName>
|
||||||
@@ -382,6 +413,78 @@
|
|||||||
</Textbox>
|
</Textbox>
|
||||||
</CellContents>
|
</CellContents>
|
||||||
</TablixCell>
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Textbox17">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>Tipo Mant.</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>7pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Textbox17</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>LightGrey</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<BackgroundColor>LightGrey</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Textbox21">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>Clasificacion 2</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>7pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Textbox21</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>LightGrey</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<BackgroundColor>LightGrey</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="Textbox5">
|
<Textbox Name="Textbox5">
|
||||||
@@ -393,12 +496,14 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>U.M.</Value>
|
<Value>U.M.</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox5</rd:DefaultName>
|
<rd:DefaultName>Textbox5</rd:DefaultName>
|
||||||
@@ -425,14 +530,16 @@
|
|||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Cantidad</Value>
|
<Value>Cant.</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox19</rd:DefaultName>
|
<rd:DefaultName>Textbox19</rd:DefaultName>
|
||||||
@@ -461,12 +568,14 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>PU</Value>
|
<Value>PU</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
@@ -495,12 +604,14 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Total</Value>
|
<Value>Total</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox13</rd:DefaultName>
|
<rd:DefaultName>Textbox13</rd:DefaultName>
|
||||||
@@ -518,6 +629,42 @@
|
|||||||
</Textbox>
|
</Textbox>
|
||||||
</CellContents>
|
</CellContents>
|
||||||
</TablixCell>
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Textbox20">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>Cuenta Contable</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>7pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Textbox20</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>LightGrey</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<BackgroundColor>LightGrey</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
</TablixCells>
|
</TablixCells>
|
||||||
</TablixRow>
|
</TablixRow>
|
||||||
<TablixRow>
|
<TablixRow>
|
||||||
@@ -534,7 +681,7 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!SerieFolio.Value</Value>
|
<Value>=Fields!SerieFolio.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
@@ -567,7 +714,7 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!SubProyecto.Value</Value>
|
<Value>=Fields!SubProyecto.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
@@ -599,7 +746,7 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!CodigoAF.Value</Value>
|
<Value>=Fields!CodigoAF.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
@@ -631,7 +778,7 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!CodigoPS.Value</Value>
|
<Value>=Fields!CodigoPS.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
@@ -664,7 +811,7 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!NombreCompleto.Value</Value>
|
<Value>=Fields!NombreCompleto.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
@@ -697,7 +844,7 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!AFMedida.Value</Value>
|
<Value>=Fields!AFMedida.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
@@ -719,6 +866,76 @@
|
|||||||
</Textbox>
|
</Textbox>
|
||||||
</CellContents>
|
</CellContents>
|
||||||
</TablixCell>
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="AFTipoMantenimientoStr">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>=Fields!AFTipoMantenimientoStr.Value</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>7pt</FontSize>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Left</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>AFTipoMantenimientoStr</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>=IIF(Fields!Orden.Value.ToString = "0","Silver","White")</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<BackgroundColor>=IIF(Fields!Orden.Value.ToString = "0","Silver","White")</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Clasificacion2">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>=Fields!Clasificacion2.Value</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>7pt</FontSize>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Left</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Clasificacion2</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>=IIF(Fields!Orden.Value.ToString = "0","Silver","White")</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<BackgroundColor>=IIF(Fields!Orden.Value.ToString = "0","Silver","White")</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="UnidadMedida">
|
<Textbox Name="UnidadMedida">
|
||||||
@@ -730,7 +947,7 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!UnidadMedida.Value</Value>
|
<Value>=Fields!UnidadMedida.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
@@ -763,7 +980,7 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!Cantidad.Value</Value>
|
<Value>=Fields!Cantidad.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<Format>#,0.00</Format>
|
<Format>#,0.00</Format>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
@@ -799,7 +1016,7 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!PU.Value</Value>
|
<Value>=Fields!PU.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<Format>#,0.00</Format>
|
<Format>#,0.00</Format>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
@@ -835,7 +1052,7 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!Total.Value</Value>
|
<Value>=Fields!Total.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<Format>#,0.00</Format>
|
<Format>#,0.00</Format>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
@@ -860,6 +1077,41 @@
|
|||||||
</Textbox>
|
</Textbox>
|
||||||
</CellContents>
|
</CellContents>
|
||||||
</TablixCell>
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="CuentaContable">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>=Fields!CuentaContable.Value</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>6pt</FontSize>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Left</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>CuentaContable</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>=IIF(Fields!Orden.Value.ToString = "0","Silver","White")</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<BackgroundColor>=IIF(Fields!Orden.Value.ToString = "0","Silver","White")</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
</TablixCells>
|
</TablixCells>
|
||||||
</TablixRow>
|
</TablixRow>
|
||||||
</TablixRows>
|
</TablixRows>
|
||||||
@@ -876,6 +1128,9 @@
|
|||||||
<TablixMember />
|
<TablixMember />
|
||||||
<TablixMember />
|
<TablixMember />
|
||||||
<TablixMember />
|
<TablixMember />
|
||||||
|
<TablixMember />
|
||||||
|
<TablixMember />
|
||||||
|
<TablixMember />
|
||||||
</TablixMembers>
|
</TablixMembers>
|
||||||
</TablixColumnHierarchy>
|
</TablixColumnHierarchy>
|
||||||
<TablixRowHierarchy>
|
<TablixRowHierarchy>
|
||||||
@@ -891,7 +1146,7 @@
|
|||||||
<DataSetName>DataSet1</DataSetName>
|
<DataSetName>DataSet1</DataSetName>
|
||||||
<Top>0.9482cm</Top>
|
<Top>0.9482cm</Top>
|
||||||
<Left>0.09525cm</Left>
|
<Left>0.09525cm</Left>
|
||||||
<Height>1.06771cm</Height>
|
<Height>1.20002cm</Height>
|
||||||
<Width>26.76762cm</Width>
|
<Width>26.76762cm</Width>
|
||||||
<ZIndex>2</ZIndex>
|
<ZIndex>2</ZIndex>
|
||||||
<Style>
|
<Style>
|
||||||
|
|||||||
@@ -28,47 +28,13 @@ Partial Class General_SaldosIniciales
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargarArchivo(Ruta As String, FileName As String, Tipo As String)
|
Private Sub CargarArchivo(Ruta As String, FileName As String, Tipo As String)
|
||||||
|
|
||||||
Dim dt As New DataTable
|
Dim dt As New DataTable
|
||||||
' Conexion As Odbc.OdbcConnection = Nothing
|
|
||||||
Dim ErrorArchivo = False
|
Dim ErrorArchivo = False
|
||||||
Dim ErrorExcel = False
|
Dim ErrorExcel = False
|
||||||
|
|
||||||
dt = ReadExcelFile(Ruta + FileName, True)
|
dt = ReadExcelFile(Ruta + FileName, True)
|
||||||
'Dim strConnString As String = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" + Ruta + FileName + ";Extended Properties=""Excel 12.0 Xml;HDR=YES;IMEX=1;"""
|
|
||||||
'Dim objDbFactory As Common.DbProviderFactory = Common.DbProviderFactories.GetFactory("System.Data.OleDb")
|
|
||||||
'Dim objDbAdapter As Common.DbDataAdapter = objDbFactory.CreateDataAdapter()
|
|
||||||
'Dim objDbConnection As Common.DbConnection = objDbFactory.CreateConnection()
|
|
||||||
'objDbConnection.ConnectionString = strConnString
|
|
||||||
'objDbConnection.Open()
|
|
||||||
'Dim objSheetNames As DataTable = objDbConnection.GetSchema("Tables")
|
|
||||||
'Dim HojaExcel As String = objSheetNames.FiltroPrimeroValor("TABLE_NAME")
|
|
||||||
'Try
|
|
||||||
' Select Case Tipo
|
|
||||||
' Case "CSV"
|
|
||||||
' Conexion = New Odbc.OdbcConnection("Driver={Microsoft Access Text Driver (*.txt, *.csv)};Dbq=" + Ruta + ";Extensions=asc,csv,tab,txt;")
|
|
||||||
' Conexion.Open()
|
|
||||||
' Dim cmd = Conexion.CreateCommand()
|
|
||||||
' cmd.CommandType = CommandType.Text
|
|
||||||
' cmd.CommandText = $"SELECT * FROM [{FileName}]"
|
|
||||||
' Dim DataAdapter = New Odbc.OdbcDataAdapter(cmd)
|
|
||||||
' DataAdapter.Fill(dt)
|
|
||||||
' Case "EXCEL"
|
|
||||||
' Conexion = New Odbc.OdbcConnection("Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=" + Ruta + FileName + ";")
|
|
||||||
' Conexion.Open()
|
|
||||||
' Dim cmd = Conexion.CreateCommand()
|
|
||||||
' cmd.CommandType = CommandType.Text
|
|
||||||
' cmd.CommandText = $"SELECT * FROM [{HojaExcel}]"
|
|
||||||
' Dim DataAdapter = New Odbc.OdbcDataAdapter(cmd)
|
|
||||||
' DataAdapter.Fill(dt)
|
|
||||||
' Case Else
|
|
||||||
' Alert("El archivo no tiene el formato correcto", TipoMensaje.MsgError)
|
|
||||||
' Exit Sub
|
|
||||||
' End Select
|
|
||||||
'Catch ex As Exception
|
|
||||||
' ErrorArchivo = True
|
|
||||||
' OnError("Ocurrio un error al leer el archivo <br/>" & ex.Message, ex)
|
|
||||||
'End Try
|
|
||||||
'Conexion.Close()
|
|
||||||
If Not ErrorArchivo Then
|
If Not ErrorArchivo Then
|
||||||
|
|
||||||
If RblFormato.SelectedValue = "1" Then
|
If RblFormato.SelectedValue = "1" Then
|
||||||
@@ -130,12 +96,6 @@ Partial Class General_SaldosIniciales
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'If Not dt.Columns(14).ColumnName = "Pais" Then
|
|
||||||
' Alert("El nombre de la quinceava columna debe ser 'Plazo Cobranza'. Favor de corregirlo", TipoMensaje.MsgError)
|
|
||||||
' Exit Sub
|
|
||||||
'End If
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If Not dt.Columns(14).ColumnName.ToUpper = "BANCO" Then
|
If Not dt.Columns(14).ColumnName.ToUpper = "BANCO" Then
|
||||||
Alert("El nombre de la quinceava columna debe ser 'Banco'. Favor de corregirlo", TipoMensaje.MsgError)
|
Alert("El nombre de la quinceava columna debe ser 'Banco'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
@@ -2257,6 +2217,21 @@ Partial Class General_SaldosIniciales
|
|||||||
Dim Contador As Integer = 0
|
Dim Contador As Integer = 0
|
||||||
|
|
||||||
|
|
||||||
|
Dim DTClasificaiones As New DataTable
|
||||||
|
|
||||||
|
If ObjClasificaciones.GetClasificaciones(UsuarioActual.CveEmpresa) Then
|
||||||
|
DTClasificaiones = ObjClasificaciones.DtResultados
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not DTClasificaiones.Rows.Count > 0 Then
|
||||||
|
ObjConta.Dispose()
|
||||||
|
Alert("Error a conusltar clasificaciones.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
DTClasificaiones.CaseSensitive = False
|
||||||
|
|
||||||
For Each dRow As DataRow In dt.Rows
|
For Each dRow As DataRow In dt.Rows
|
||||||
|
|
||||||
|
|
||||||
@@ -2273,6 +2248,8 @@ Partial Class General_SaldosIniciales
|
|||||||
|
|
||||||
CveCategoria = GlobalDTGralCategorias(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveCategoria", $" Categoria = '{Categoria}' ").ToEntero
|
CveCategoria = GlobalDTGralCategorias(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveCategoria", $" Categoria = '{Categoria}' ").ToEntero
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If Not CveCategoria > 0 Then
|
If Not CveCategoria > 0 Then
|
||||||
CveCategoria = GlobalDTGralCategorias(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveCategoria", "").ToEntero
|
CveCategoria = GlobalDTGralCategorias(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveCategoria", "").ToEntero
|
||||||
If Not CveCategoria > 0 Then
|
If Not CveCategoria > 0 Then
|
||||||
@@ -2312,19 +2289,26 @@ Partial Class General_SaldosIniciales
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
Dim CveClasificaionTemp = DTClasificaiones.FiltroPrimeroValor("CveClasificacion", $"Clasificacion='{Clasificacion}'").ToEntero
|
||||||
|
|
||||||
If ObjClasificaciones.AddClasificaciones(Clasificacion, "", -1, "-1", -1, "-1", -1, "-1", CveCategoria, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, RequiereSerieLote:=0, UsoClasificacion:=CveUsoClasificacion,
|
If CveClasificaionTemp > 0 Then
|
||||||
CveSATPS:=-1, RequiereAFCompra:=False, RequiereAFInsumo:=False, RequierePersonal:=False, EsAcumulador:=False, TopVentas:=False, TopCompras:=False, PrecioBaseCosto:=-1) Then
|
CveClasificacion = CveClasificaionTemp
|
||||||
|
|
||||||
CveClasificacion = ObjClasificaciones.CveClasificacion
|
|
||||||
|
|
||||||
If Not CveClasificacion > 0 Then
|
|
||||||
ErrorProceso = True
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
ErrorProceso = True
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If Not CveClasificacion > 0 Then
|
||||||
|
|
||||||
|
If ObjClasificaciones.AddClasificaciones(Clasificacion, "", -1, "-1", -1, "-1", -1, "-1", CveCategoria, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, RequiereSerieLote:=0, UsoClasificacion:=CveUsoClasificacion,
|
||||||
|
CveSATPS:=-1, RequiereAFCompra:=False, RequiereAFInsumo:=False, RequierePersonal:=False, EsAcumulador:=False, TopVentas:=False, TopCompras:=False, PrecioBaseCosto:=-1) Then
|
||||||
|
|
||||||
|
CveClasificacion = ObjClasificaciones.CveClasificacion
|
||||||
|
|
||||||
|
If Not CveClasificacion > 0 Then
|
||||||
|
ErrorProceso = True
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
ErrorProceso = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
If Not ErrorProceso Then
|
If Not ErrorProceso Then
|
||||||
|
|||||||
@@ -49,7 +49,66 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<table class="table table-striped" style="border: 1px solid #D3D3D3; min-width: 985px; width: 100%; display: none;">
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" Width="100%"
|
||||||
|
DataKeyNames="CveSubProyecto,SubProyecto,IdSegNeg,Estatus,Serie,IVA,Calle,NoExt,NoInt,Colonia,Localidad,Municipio,Estado,Pais,CP,CveProyecto,TipoSucursal,EsSucursal,
|
||||||
|
CvePais,CveEstado,CveMunicipio,CveColonia,AplicaComercioExterior,CvePrecioLista,Correo,Telefono,UTCOffsetVerano,UTCOffsetInvierno,NoVerificaAlmacen,CodigoSucursal,CveLocalidad"
|
||||||
|
EmptyDataText="No se encontraron SubProyectos" ShowHeader="true" CssClass="table table-striped table-advance table-hover ScrollAD mysmallbtn" data-sort="true" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField DataField="SubProyecto" HeaderText="Centro de costo" />
|
||||||
|
<asp:BoundField DataField="SegNeg" HeaderText="Segmento de negocio" Visible="false" />
|
||||||
|
<%-- <asp:BoundField DataField="Sucursal" DataFormatString="0:####" HeaderText="Sucursal" />--%>
|
||||||
|
<asp:BoundField DataField="UsuarioNomina" HeaderText="UsuarioNomina" />
|
||||||
|
<asp:BoundField DataField="Proyecto" HeaderText="Proyecto" />
|
||||||
|
<asp:BoundField DataField="Estatus" HeaderText="Estatus" />
|
||||||
|
<asp:BoundField DataField="FechaIng" DataFormatString="{0:d}" HeaderText="Fecha" />
|
||||||
|
<asp:BoundField DataField="Usuario" HeaderText="Usuario" />
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Usuarios" ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="LnkusuariosAsignados" runat="server" AlternateText="Usuarios Asignados" CausesValidation="False"
|
||||||
|
Width="24.1px"
|
||||||
|
OnClick="LnkusuariosAsignados_Click"
|
||||||
|
CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-list''></i>"
|
||||||
|
/>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Descargar" ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="downExcel" runat="server" CssClass="btn btn-circle btn-sm" BackColor="#006600"
|
||||||
|
Width="24.1px" Text="<i class='fa fa-ad-excel' style='padding:0px;'></i>" OnClick="downExcel_Click"> <%--Text='<img src="../Imagenes/IconoExcel.gif" />'--%>
|
||||||
|
</asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Center">
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" Width="24.1px"
|
||||||
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check' style='padding:0px;'></i>" ValidationGroup="GrpGV" />
|
||||||
|
|
||||||
|
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times' style='padding:0px;'></i>" />
|
||||||
|
</EditItemTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" OnClick="Edit_Click" Width="24.1px" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil' style='padding:0px;'></i>" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Eliminar" ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" Width="24.1px" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash' ></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<%-- <table class="table table-striped" style="border: 1px solid #D3D3D3; min-width: 985px; width: 100%; display: none;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="Titulos">
|
<tr class="Titulos">
|
||||||
<th width="100px">
|
<th width="100px">
|
||||||
@@ -81,44 +140,9 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div style="">
|
<div style="">
|
||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False"
|
|
||||||
DataKeyNames="CveSubProyecto,SubProyecto,IdSegNeg,Estatus,Serie,IVA,Calle,NoExt,NoInt,Colonia,Localidad,Municipio,Estado,Pais,CP,CveProyecto,TipoSucursal,EsSucursal,
|
</div>--%>
|
||||||
CvePais,CveEstado,CveMunicipio,CveColonia,AplicaComercioExterior,CvePrecioLista,Correo,Telefono,UTCOffsetVerano,UTCOffsetInvierno,NoVerificaAlmacen,CodigoSucursal,CveLocalidad"
|
|
||||||
EmptyDataText="No se encontraron SubProyectos" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" GridLines="None">
|
|
||||||
<Columns>
|
|
||||||
<asp:BoundField DataField="SubProyecto" HeaderText="Centro de costo" />
|
|
||||||
<asp:BoundField DataField="SegNeg" HeaderText="Segmento de negocio" Visible="false" />
|
|
||||||
<%-- <asp:BoundField DataField="Sucursal" DataFormatString="0:####" HeaderText="Sucursal" />--%>
|
|
||||||
<asp:BoundField DataField="UsuarioNomina" HeaderText="UsuarioNomina" />
|
|
||||||
<asp:BoundField DataField="Proyecto" HeaderText="Proyecto" />
|
|
||||||
<asp:BoundField DataField="Estatus" HeaderText="Estatus" />
|
|
||||||
<asp:BoundField DataField="FechaIng" DataFormatString="{0:d}" HeaderText="Fecha" />
|
|
||||||
<asp:BoundField DataField="Usuario" HeaderText="Usuario" />
|
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Descargar" ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Center">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:LinkButton ID="downExcel" runat="server" CssClass="btn btn-circle btn-sm" BackColor="#006600" Style="padding: 4px 5px 5px 8px;" Text="<i class='fa fa-ad-excel' style='padding:0px;'></i>" OnClick="downExcel_Click"> <%--Text='<img src="../Imagenes/IconoExcel.gif" />'--%>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Center">
|
|
||||||
<EditItemTemplate>
|
|
||||||
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" CssClass="btn btn-circle btn-xs green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpGV" />
|
|
||||||
|
|
||||||
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" CssClass="btn btn-circle btn-xs red" Text="<i class='fa fa-times'></i>" />
|
|
||||||
</EditItemTemplate>
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" OnClick="Edit_Click" CssClass="btn btn-circle btn-xs green" Text="<i class='fa fa-pencil'></i>" />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Eliminar" ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Center">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="display:none">
|
<div style="display:none">
|
||||||
@@ -424,6 +448,60 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="DivUsuariosProyecto" class="modal ADS fade" role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<asp:UpdatePanel ID="UpModalUsuariosProyectos" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
<h4 class="modal-title">
|
||||||
|
<asp:Label runat="server" ID="LblUsuariosProyectoTitulo"></asp:Label></h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
|
||||||
|
<asp:GridView ID="GvUsuariosProyectos" runat="server" AutoGenerateColumns="False"
|
||||||
|
DataKeyNames="CveSubProyecto,CveUsuario,SubProyecto" EmptyDataText="No se encontraron SubProyectos" ShowHeader="true"
|
||||||
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-sort="true" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField DataField="SubProyecto" HeaderText="Centro de costo" Visible="false" />
|
||||||
|
<asp:BoundField DataField="Usuario" HeaderText="Usuario" />
|
||||||
|
<asp:TemplateField HeaderText="Eliminar" ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="LnkEliminarUsuarioSubProyecto" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete"
|
||||||
|
Width="24.1px" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash' ></i>"
|
||||||
|
data-toggle="confirmation" data-popout="true"
|
||||||
|
data-original-title="Confirmar" data-btn-ok-label="si"
|
||||||
|
OnClick="LnkEliminarUsuarioSubProyecto_Click"
|
||||||
|
/>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
<script >
|
<script >
|
||||||
|
|||||||
@@ -924,10 +924,62 @@ Partial Class CatSubProyectos
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkusuariosAsignados_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||||
|
Dim CveSubProyectoUsuarios As Integer = GvRow.DataKey("CveSubProyecto").ToEntero
|
||||||
|
|
||||||
|
LblUsuariosProyectoTitulo.Text = $"Centro de Costos: {GvRow.DataKey("SubProyecto")}"
|
||||||
|
CargaUsuariosAsignados(CveSubProyectoUsuarios)
|
||||||
|
RegistraScript("$('#DivUsuariosProyecto').modal('show');")
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaUsuariosAsignados(CveSubProyectoUsuarios As Integer)
|
||||||
|
|
||||||
|
Dim ObjUsuarios As New ClsSisUsuarios
|
||||||
|
|
||||||
|
If ObjUsuarios.GetSubProyectos(-1, CveSubProyectoUsuarios) Then
|
||||||
|
GvUsuariosProyectos.DataSource = ObjUsuarios.DtResultados
|
||||||
|
Else
|
||||||
|
GvUsuariosProyectos.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjUsuarios.Dispose()
|
||||||
|
|
||||||
|
GvUsuariosProyectos.DataBind()
|
||||||
|
UpModalUsuariosProyectos.Update()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub LnkEliminarUsuarioSubProyecto_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||||
|
Dim CveUsuario As Integer = GvRow.DataKey("CveUsuario").ToEntero
|
||||||
|
Dim CveSubProyectoUsuarios As Integer = GvRow.DataKey("CveSubProyecto").ToEntero
|
||||||
|
Dim SubProyecto As String = GvRow.DataKey("SubProyecto")
|
||||||
|
Dim Erroreliminacion As Boolean = False
|
||||||
|
|
||||||
|
Dim ObjUsuarios As New ClsSisUsuarios
|
||||||
|
Dim ObjGenerales As New ClsGenerales
|
||||||
|
|
||||||
|
If ObjUsuarios.RemoveSubProyectos(CveUsuario, CveSubProyectoUsuarios, UsuarioActual.CveUsuario) Then
|
||||||
|
If Not ObjGenerales.AddHistorialBitacora(406, -1, -1, -1, -1, -1, -1, -1, "", SubProyecto, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, "-1", "-1", "-1", CveUsuarioTabla:=CveUsuario) Then
|
||||||
|
Erroreliminacion = True
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
Erroreliminacion = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
ObjUsuarios.Dispose()
|
||||||
|
|
||||||
|
If Not ErrorEliminacion Then
|
||||||
|
CargaUsuariosAsignados(CveSubProyectoUsuarios)
|
||||||
|
Alert("Centro de Costo desasignado.")
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LBAdd" PostBackUrl="/Sistemas/Empresa.aspx" CommandArgument="-1" runat="server"><i class="fa fa-plus-circle"></i> Nueva Empresa</asp:LinkButton>
|
<asp:LinkButton ID="LBAdd" PostBackUrl="/Sistemas/Empresa.aspx" CommandArgument="-1" runat="server" Visible="false"><i class="fa fa-plus-circle"></i> Nueva Empresa</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|||||||
@@ -45,12 +45,13 @@ Partial Class Sistemas_CatEmpresas
|
|||||||
#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
|
||||||
'If UsuarioActual.CveRol <> 1 Then Response.Redirect("/Inicio.aspx")
|
|
||||||
ViewState("Orden") = "CveEmpresa ASC"
|
ViewState("Orden") = "CveEmpresa ASC"
|
||||||
ViewState("CveRol") = -1
|
ViewState("CveRol") = -1
|
||||||
|
|
||||||
'CargaRoles()
|
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
|
|
||||||
|
If UsuarioActual.CveRol = 1 Or UsuarioActual.CveUsuario = 100 Then
|
||||||
|
LBAdd.Visible = True
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -1649,8 +1649,12 @@
|
|||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
<i class="icon-pin font-green"></i>
|
<i class="icon-pin font-green"></i>
|
||||||
<span class="caption-subject bold uppercase">Parametros</span>
|
<span class="caption-subject bold uppercase">Parametros</span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
|
<asp:CheckBox ID="ChkPermiteCredito" runat="server" AutoPostBack="true" Text="Permite Crédito" />
|
||||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1660,87 +1664,88 @@
|
|||||||
<asp:Button ID="BtnCargaCxC" runat="server" ClientIDMode="Static" Text="CargaCxC" Style="display: none;" OnClick="BtnCargaCxC_Click" />
|
<asp:Button ID="BtnCargaCxC" runat="server" ClientIDMode="Static" Text="CargaCxC" Style="display: none;" OnClick="BtnCargaCxC_Click" />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtLimiteCredito" runat="server" CausesValidation="true" CssClass="form-control" MaxLength="13" Text="0" Enabled="true"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" Display="None" runat="server" ControlToValidate="TxtLimiteCredito" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Límite Crédito''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="FIETTxtLimiteCredito" TargetControlID="TxtLimiteCredito" FilterType="Numbers,Custom" ValidChars=".," runat="server" />
|
||||||
|
<label for="<%= TxtLimiteCredito.ClientID.ToString()%>">Límite Crédito M.N.:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
<div>
|
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker" style="width:150px">
|
||||||
<asp:CheckBox ID="ChkPermiteCredito" runat="server" AutoPostBack="true" Text="Permite Crédito:" />
|
<asp:TextBox ID="TxtFechaLimiteCredito" CssClass="form-control" runat="server" Width="150px"></asp:TextBox>
|
||||||
</div>
|
<span class="input-group-btn " style="position: absolute; right: 41px; top: 9px;">
|
||||||
|
<asp:LinkButton ID="LnkTxtFechaLimiteCredito" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
</span>
|
||||||
<asp:TextBox ID="TxtLimiteCredito" runat="server" CausesValidation="true" CssClass="form-control" MaxLength="13" Text="0" Enabled="true"></asp:TextBox>
|
<ajax:MaskedEditExtender ID="METxtFechaLimiteCredito" runat="server" TargetControlID="TxtFechaLimiteCredito" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" Display="None" runat="server" ControlToValidate="TxtLimiteCredito" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Límite Crédito''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<ajax:CalendarExtender runat="server" ID="CETxtFechaLimiteCredito" TargetControlID="TxtFechaLimiteCredito" PopupButtonID="LnkTxtFechaLimiteCredito" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
<ajax:FilteredTextBoxExtender ID="FIETTxtLimiteCredito" TargetControlID="TxtLimiteCredito" FilterType="Numbers,Custom" ValidChars=".," runat="server" />
|
<label for="<%= TxtFechaLimiteCredito.ClientID.ToString()%>">F. Limite Crédito: </label>
|
||||||
<%-- <asp:CompareValidator CssClass="help-block errorimput" ID="CompareValidator1" runat="server" ControlToValidate="TxtLimiteCredito" ErrorMessage="El campo <b>''Límite Crédito''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
</div>
|
||||||
<label for="<%= TxtLimiteCredito.ClientID.ToString()%>">Límite Crédito M.N.:</label>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
|
||||||
<asp:TextBox ID="TxtPlazoCobranza" runat="server" CssClass="form-control" MaxLength="3" Text="0" Enabled="false"></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator CssClass="help-block errorimput" ID="RFVPlazoCobranza" runat="server" ControlToValidate="TxtPlazoCobranza" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Plazo de Cobranza''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<asp:CompareValidator CssClass="help-block errorimput" ID="CVPlazoCobranza" runat="server" ControlToValidate="TxtPlazoCobranza" ErrorMessage="El campo <b>''Plazo de Cobranza''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Integer" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
||||||
<label for="<%= TxtPlazoCobranza.ClientID.ToString()%>">Plazo Cobranza: </label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
|
||||||
<asp:TextBox ID="TxtPlazoCobranzaRemision" runat="server" CssClass="form-control" MaxLength="4" Text="0" Enabled="false"></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator CssClass="help-block errorimput" ID="RFVPlazoCobranzaRemision" runat="server" ControlToValidate="TxtPlazoCobranzaRemision" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Plazo de Cobranza Remisión''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<asp:CompareValidator CssClass="help-block errorimput" ID="CompareValidator2" runat="server" ControlToValidate="TxtPlazoCobranzaRemision" ErrorMessage="El campo <b>''Plazo de Cobranza Remisión''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Integer" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
||||||
<label for="<%= TxtPlazoCobranzaRemision.ClientID.ToString()%>">Plazo Vencimiento Remisión: </label>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:TextBox ID="TxtPlazoCobranza" runat="server" CssClass="form-control" MaxLength="3" Text="0" Enabled="false"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator CssClass="help-block errorimput" ID="RFVPlazoCobranza" runat="server" ControlToValidate="TxtPlazoCobranza" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Plazo de Cobranza''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<asp:CompareValidator CssClass="help-block errorimput" ID="CVPlazoCobranza" runat="server" ControlToValidate="TxtPlazoCobranza" ErrorMessage="El campo <b>''Plazo de Cobranza''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Integer" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||||
|
<label for="<%= TxtPlazoCobranza.ClientID.ToString()%>">Plazo Cobranza: </label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:TextBox ID="TxtPlazoCobranzaRemision" runat="server" CssClass="form-control" MaxLength="4" Text="0" Enabled="false"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator CssClass="help-block errorimput" ID="RFVPlazoCobranzaRemision" runat="server" ControlToValidate="TxtPlazoCobranzaRemision" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Plazo de Cobranza Remisión''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<asp:CompareValidator CssClass="help-block errorimput" ID="CompareValidator2" runat="server" ControlToValidate="TxtPlazoCobranzaRemision" ErrorMessage="El campo <b>''Plazo de Cobranza Remisión''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Integer" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||||
|
<label for="<%= TxtPlazoCobranzaRemision.ClientID.ToString()%>">Plazo Remisión: </label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:Label ID="LblDiasPago" runat="server" ForeColor="#888888" Text="Días de pago:"></asp:Label>
|
<asp:Label ID="LblDiasPago" runat="server" ForeColor="#888888" Text="Días de pago:"></asp:Label>
|
||||||
<br />
|
<br />
|
||||||
<label><b>L</b></label>
|
<label><b>L</b></label>
|
||||||
|
<label><b>M</b></label>
|
||||||
<label><b>M</b></label>
|
<label><b>MI</b></label>
|
||||||
|
<label><b>J</b></label>
|
||||||
<label><b>MI</b></label>
|
<label><b>V</b></label>
|
||||||
|
<label><b>S</b></label>
|
||||||
<label><b>J</b></label>
|
|
||||||
|
|
||||||
<label><b>V</b></label>
|
|
||||||
|
|
||||||
<label><b>S</b></label>
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
<asp:CheckBox ID="ChkLunes" runat="server" />
|
||||||
<asp:CheckBox ID="ChkLunes" runat="server" />
|
<asp:CheckBox ID="ChkMartes" runat="server" />
|
||||||
|
<asp:CheckBox ID="ChkMiercoles" runat="server" />
|
||||||
<asp:CheckBox ID="ChkMartes" runat="server" />
|
<asp:CheckBox ID="ChkJueves" runat="server" />
|
||||||
|
<asp:CheckBox ID="ChkViernes" runat="server" />
|
||||||
<asp:CheckBox ID="ChkMiercoles" runat="server" />
|
|
||||||
|
|
||||||
<asp:CheckBox ID="ChkJueves" runat="server" />
|
|
||||||
|
|
||||||
<asp:CheckBox ID="ChkViernes" runat="server" />
|
|
||||||
|
|
||||||
<asp:CheckBox ID="ChkSabado" runat="server" />
|
<asp:CheckBox ID="ChkSabado" runat="server" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6" style="margin-top: 10px;">
|
<div class="col-md-4" style="margin-top: 10px;">
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtDiasEspecifico" runat="server" CssClass="form-control" Enabled="false"></asp:TextBox>
|
<asp:TextBox ID="TxtDiasEspecifico" runat="server" CssClass="form-control" Enabled="false"></asp:TextBox>
|
||||||
<label for="<%= TxtDiasEspecifico.ClientID.ToString()%>">Días específicos: </label>
|
<label for="<%= TxtDiasEspecifico.ClientID.ToString()%>">Días específicos: </label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-4" style="margin-top: 10px;">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:DropDownList ID="DdlTipoPago" runat="server" CssClass="form-control select2me">
|
||||||
|
<asp:ListItem Value="Efectivo" Text="Efectivo"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="Cheque" Text="Cheque"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="Tranferencia" Text="Transferencia"></asp:ListItem>
|
||||||
|
<asp:ListItem Value="-1" Text="Seleccione" Selected="True"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<label for="<%= DdlTipoPago.ClientID.ToString()%>">Tipo Pago:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
|
||||||
<asp:DropDownList ID="DdlTipoPago" runat="server" CssClass="form-control select2me">
|
|
||||||
<asp:ListItem Value="Efectivo" Text="Efectivo"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="Cheque" Text="Cheque"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="Tranferencia" Text="Transferencia"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="-1" Text="Seleccione" Selected="True"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
<label for="<%= DdlTipoPago.ClientID.ToString()%>">Tipo de Pago:</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="<%= TxtDocumentacion.ClientID.ToString()%>">Documentación:</label>
|
<label for="<%= TxtDocumentacion.ClientID.ToString()%>">Documentación:</label>
|
||||||
<asp:TextBox ID="TxtDocumentacion" CssClass="form-control" runat="server" Rows="3"></asp:TextBox>
|
<asp:TextBox ID="TxtDocumentacion" CssClass="form-control" runat="server" Rows="3"></asp:TextBox>
|
||||||
@@ -1750,32 +1755,19 @@
|
|||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:Label ID="LblDiasRevision" runat="server" Text="Días de Revisión:"></asp:Label>
|
<asp:Label ID="LblDiasRevision" runat="server" Text="Días de Revisión:"></asp:Label>
|
||||||
<br />
|
<br />
|
||||||
<label><b>L</b></label>
|
<label><b>L</b></label>
|
||||||
|
<label><b>M</b></label>
|
||||||
<label><b>M</b></label>
|
<label><b>MI</b></label>
|
||||||
|
<label><b>J</b></label>
|
||||||
<label><b>MI</b></label>
|
<label><b>V</b></label>
|
||||||
|
<label><b>S</b></label>
|
||||||
<label><b>J</b></label>
|
|
||||||
|
|
||||||
<label><b>V</b></label>
|
|
||||||
|
|
||||||
<label><b>S</b></label>
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
<asp:CheckBox ID="ChkRevLunes" runat="server" />
|
||||||
<asp:CheckBox ID="ChkRevLunes" runat="server" />
|
<asp:CheckBox ID="ChkRevMartes" runat="server" />
|
||||||
|
<asp:CheckBox ID="ChkRevMiercoles" runat="server" />
|
||||||
<asp:CheckBox ID="ChkRevMartes" runat="server" />
|
<asp:CheckBox ID="ChkRevJueves" runat="server" />
|
||||||
|
<asp:CheckBox ID="ChkRevViernes" runat="server" />
|
||||||
<asp:CheckBox ID="ChkRevMiercoles" runat="server" />
|
<asp:CheckBox ID="ChkRevSabado" runat="server" />
|
||||||
|
|
||||||
<asp:CheckBox ID="ChkRevJueves" runat="server" />
|
|
||||||
|
|
||||||
<asp:CheckBox ID="ChkRevViernes" runat="server" />
|
|
||||||
|
|
||||||
<asp:CheckBox ID="ChkRevSabado" runat="server" />
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1784,66 +1776,12 @@
|
|||||||
<label for="<%= TxtObsDiasRevision.ClientID.ToString()%>">Documentación Revisión: </label>
|
<label for="<%= TxtObsDiasRevision.ClientID.ToString()%>">Documentación Revisión: </label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%-- <asp:GridView ID="GvDocs" AutoGenerateColumns="false" runat="server" GridLines="none" DataKeyNames="CveDocumentacion,Documentacion,Orden,CveDocumentacionElectronica,Adjunto,Estatus,Observacion,Fecha,FechaIng,Usuario,FechaLimite" Visible="false">
|
|
||||||
<Columns>
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="60px">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="ImgRequired" runat="server"></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField ControlStyle-CssClass="template" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="275" HeaderText="Documento">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="LtlDocumentacion" runat="server" Text='<%# Eval("Documentacion") %>'></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Completo" ItemStyle-Width="40px">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:CheckBox ID="chkEstatus" runat="server" CssClass="make-switchsd" Checked='<%# Eval("Estatus").ToString = "1" %>'></asp:CheckBox>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Observaciones" ItemStyle-Width="100">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtObservaciones" Width="300" MaxLength="100" runat="server" Text='<%# Eval("Observacion") %>'></asp:TextBox>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Fecha limite" ItemStyle-Width="100">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:TextBox ID="TxtFechaLimite" Width="100" onKeyPress="return handleInput(this.value)" MaxLength="100" runat="server" Text='<%# Eval("FechaLimite", "{0:d}") %>'></asp:TextBox>
|
|
||||||
<ajax:CalendarExtender runat="server" ID="Calendario6" TargetControlID="TxtFechaLimite" Enabled="True"></ajax:CalendarExtender>
|
|
||||||
<asp:RequiredFieldValidator ID="rfvFechaI6" runat="server" ControlToValidate="TxtFechaLimite" Display="None" ErrorMessage="El campo <b>''Fecha limite''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpRL"></asp:RequiredFieldValidator>
|
|
||||||
<asp:CompareValidator ID="cvFechaI6" runat="server" ControlToValidate="TxtFechaLimite" Display="None" ErrorMessage="El campo <b>''Fecha Limite''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpRL"></asp:CompareValidator>
|
|
||||||
|
|
||||||
<ajax:ValidatorCalloutExtender ID="vcoFfvFI4" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI6" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="vcoCvFI4" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI6" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:LinkButton ID="ImgUpload" runat="server" AlternateText="Editar" OnClick="Upload_ClickDocumentacion" CausesValidation="False" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-upload' ></i>" />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="50px">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Literal ID="ImgDownLoad" runat="server"></asp:Literal>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:LinkButton ID="ImgE" runat="server" AlternateText="Editar" CausesValidation="False" OnClick="Update_ClickDocumentacion"
|
|
||||||
CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-check'></i>" />
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>--%>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtCobranzaContacto" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
<asp:TextBox ID="TxtCobranzaContacto" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
<%--<asp:RequiredFieldValidator ID="RFVCobranzaContacto" runat="server" ControlToValidate="TxtCobranzaContacto" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Contacto''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>--%>
|
|
||||||
<label for="<%= TxtCobranzaContacto.ClientID.ToString()%>">Nombre Contacto de Pagos: </label>
|
<label for="<%= TxtCobranzaContacto.ClientID.ToString()%>">Nombre Contacto de Pagos: </label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1851,10 +1789,8 @@
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtCobranzaTelefono" CssClass="form-control" runat="server" MaxLength="13"></asp:TextBox>
|
<asp:TextBox ID="TxtCobranzaTelefono" CssClass="form-control" runat="server" MaxLength="13"></asp:TextBox>
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="TxtCobranzaTelefono" ClearMaskOnLostFocus="false" MaskType="None" Mask="(999) 999-9999" MessageValidatorTip="true" InputDirection="LeftToRight" ErrorTooltipEnabled="True"></ajax:MaskedEditExtender>
|
<ajax:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="TxtCobranzaTelefono" ClearMaskOnLostFocus="false" MaskType="None" Mask="(999) 999-9999" MessageValidatorTip="true" InputDirection="LeftToRight" ErrorTooltipEnabled="True"></ajax:MaskedEditExtender>
|
||||||
|
<label for="<%= TxtCobranzaTelefono.ClientID.ToString()%>">Tel. Pagos: </label>
|
||||||
<%--<asp:RequiredFieldValidator ID="RFVCobranzaTelefono" runat="server" ControlToValidate="TxtCobranzaTelefono" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Teléfono''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>--%>
|
|
||||||
<label for="<%= TxtCobranzaTelefono.ClientID.ToString()%>">Teléfono de Pagos: </label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1868,64 +1804,47 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtCobranzaCorreo" CssClass="form-control" runat="server" MaxLength="2000"></asp:TextBox>
|
<asp:TextBox ID="TxtCobranzaCorreo" CssClass="form-control" runat="server" MaxLength="2000"></asp:TextBox>
|
||||||
<%--<asp:RequiredFieldValidator ID="RFVCobranzaCorreo" runat="server" ControlToValidate="TxtCobranzaCorreo" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>--%>
|
|
||||||
<label for="<%= TxtCobranzaCorreo.ClientID.ToString()%>">Correo de Pagos: </label>
|
<label for="<%= TxtCobranzaCorreo.ClientID.ToString()%>">Correo de Pagos: </label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="row">
|
||||||
<asp:TextBox ID="TxtHorario" CssClass="form-control" runat="server" MaxLength="100"></asp:TextBox>
|
<div class="col-md-6">
|
||||||
<label for="<%= TxtHorario.ClientID.ToString()%>">Horario: </label>
|
<div class="form-group form-md-line-input">
|
||||||
</div>
|
<asp:TextBox ID="TxtHorario" CssClass="form-control" runat="server" MaxLength="100"></asp:TextBox>
|
||||||
|
<label for="<%= TxtHorario.ClientID.ToString()%>">Horario: </label>
|
||||||
<%-- <div class="form-group form-md-line-input">
|
|
||||||
<label for="<%= TxtHorario1.ClientID.ToString()%>">Horario: </label>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
<div class="col-md-5">
|
|
||||||
<asp:TextBox ID="TxtHorario1" Text="" runat="server" CssClass="form-control" />
|
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender7" runat="server" TargetControlID="TxtHorario1" AcceptAMPM="true" Mask="99:99" MaskType="Time"></ajax:MaskedEditExtender>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-1" style="text-align: left; margin-top:5px;">
|
|
||||||
<label>A</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-5"">
|
|
||||||
<asp:TextBox ID="TxtHorario2" Text="" runat="server" CssClass="form-control" />
|
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender6" runat="server" TargetControlID="TxtHorario2" AcceptAMPM="true" Mask="99:99" MaskType="Time"></ajax:MaskedEditExtender>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>--%>
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:DropDownList ID="DdlResponsable" DataValueField="CveUsuario" DataTextField="Nombre" Width="100%" runat="server" CssClass="form-control select2me">
|
||||||
|
</asp:DropDownList>
|
||||||
|
<label for="<%= DdlResponsable.ClientID.ToString()%>">Responsable Cobranza: </label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtPortalFacturacion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
<asp:TextBox ID="TxtPortalFacturacion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
<%--<asp:RequiredFieldValidator ID="RFVPortalFacturacion" runat="server" ControlToValidate="TxtPortalFacturacion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Portal Facturacion''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>--%>
|
|
||||||
<label for="<%= TxtPortalFacturacion.ClientID.ToString()%>">Portal de Facturas: </label>
|
<label for="<%= TxtPortalFacturacion.ClientID.ToString()%>">Portal de Facturas: </label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="DivPortal" runat="server" visible="false">
|
<div class="row" id="DivPortal" runat="server" visible="false" >
|
||||||
<div class="form-group form-md-line-input">
|
<div class="col-md-6">
|
||||||
<asp:TextBox ID="TxtUsuarioPortalFacturacion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
<div class="form-group form-md-line-input">
|
||||||
<%--<asp:RequiredFieldValidator ID="RFVPortalFacturacion" runat="server" ControlToValidate="TxtPortalFacturacion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Portal Facturacion''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>--%>
|
<asp:TextBox ID="TxtUsuarioPortalFacturacion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
<label for="<%= TxtUsuarioPortalFacturacion.ClientID.ToString()%>">Usuario Portal: </label>
|
<label for="<%= TxtUsuarioPortalFacturacion.ClientID.ToString()%>">Usuario Portal: </label>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group form-md-line-input">
|
<div class="col-md-6">
|
||||||
<asp:TextBox ID="TxtContraseñaPortalFacturacion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
<div class="form-group form-md-line-input">
|
||||||
<%--<asp:RequiredFieldValidator ID="RFVPortalFacturacion" runat="server" ControlToValidate="TxtPortalFacturacion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Portal Facturacion''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>--%>
|
<asp:TextBox ID="TxtContraseñaPortalFacturacion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
||||||
<label for="<%= TxtContraseñaPortalFacturacion.ClientID.ToString()%>">Contraseña Portal: </label>
|
<label for="<%= TxtContraseñaPortalFacturacion.ClientID.ToString()%>">Contraseña Portal: </label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
|
||||||
<asp:DropDownList ID="DdlResponsable" DataValueField="CveUsuario" DataTextField="Nombre" Width="150px" runat="server" CssClass="form-control select2me">
|
|
||||||
</asp:DropDownList>
|
|
||||||
<label for="<%= DdlResponsable.ClientID.ToString()%>">Responsable Cobranza: </label>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -1948,10 +1867,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<%-- <asp:RadioButtonList ID="rblreporte" runat="server" RepeatDirection="Horizontal">
|
|
||||||
<asp:ListItem Value="cxc" Selected="True">Cuentas por Cobrar</asp:ListItem>
|
|
||||||
<asp:ListItem Value="anc" Selected="False">Anticipos / NC</asp:ListItem>
|
|
||||||
</asp:RadioButtonList>--%>
|
|
||||||
<asp:CheckBox ID="ChkAntIXCNC" Text="Anticipos / NC / IXC" runat="server" Checked="true" OnCheckedChanged="ChkAntIXCNC_CheckedChanged" AutoPostBack="true" />
|
<asp:CheckBox ID="ChkAntIXCNC" Text="Anticipos / NC / IXC" runat="server" Checked="true" OnCheckedChanged="ChkAntIXCNC_CheckedChanged" AutoPostBack="true" />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|||||||
@@ -1881,6 +1881,12 @@ Partial Class Clientes
|
|||||||
TxtCorreoEntregaCompras.Text = ObjClientes.DtResultados(0)("CorreoEntregaCompras").ToString()
|
TxtCorreoEntregaCompras.Text = ObjClientes.DtResultados(0)("CorreoEntregaCompras").ToString()
|
||||||
TxtCorreoEntregaAlmacen.Text = ObjClientes.DtResultados(0)("CorreoEntregaAlmacen").ToString()
|
TxtCorreoEntregaAlmacen.Text = ObjClientes.DtResultados(0)("CorreoEntregaAlmacen").ToString()
|
||||||
|
|
||||||
|
If ObjClientes.DtResultados.Rows(0)("FechaLimiteCredito").ToString.ToDate > MinFecha Then
|
||||||
|
TxtFechaLimiteCredito.Text = ObjClientes.DtResultados.Rows(0)("FechaLimiteCredito").ToString.ToDate.ToString("dd/MM/yyyy")
|
||||||
|
Else
|
||||||
|
TxtFechaLimiteCredito.Text = ""
|
||||||
|
End If
|
||||||
|
|
||||||
CargarClientePersonalEntrega()
|
CargarClientePersonalEntrega()
|
||||||
Else
|
Else
|
||||||
Existe = False
|
Existe = False
|
||||||
@@ -1909,6 +1915,9 @@ Partial Class Clientes
|
|||||||
|
|
||||||
TxtRepresentanteLegal.Text = ObjClientes.RepresentanteLegal
|
TxtRepresentanteLegal.Text = ObjClientes.RepresentanteLegal
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
UpActivacionPortal.Update()
|
UpActivacionPortal.Update()
|
||||||
UpModalPersonaFisica.Update()
|
UpModalPersonaFisica.Update()
|
||||||
@@ -2659,6 +2668,9 @@ Partial Class Clientes
|
|||||||
|
|
||||||
Dim TipoPersona As Boolean = If(RdTipoPersona.SelectedValue.ToEntero = 1, True, False)
|
Dim TipoPersona As Boolean = If(RdTipoPersona.SelectedValue.ToEntero = 1, True, False)
|
||||||
|
|
||||||
|
|
||||||
|
Dim FechaLimiteCredito As Date = If(TxtFechaLimiteCredito.Text.ToDate > MinFecha, TxtFechaLimiteCredito.Text.ToDate, MinFecha)
|
||||||
|
|
||||||
If CveCliente = -1 Then
|
If CveCliente = -1 Then
|
||||||
Dim ErrorAC As Boolean = False
|
Dim ErrorAC As Boolean = False
|
||||||
Dim CtaCliente As Integer = DdlCtaContableClientes.SelectedValue.ToEntero()
|
Dim CtaCliente As Integer = DdlCtaContableClientes.SelectedValue.ToEntero()
|
||||||
@@ -2722,7 +2734,7 @@ Partial Class Clientes
|
|||||||
CvePais:=DdlPais.SelectedValue.ToEntero(), CveEstado:=DdlEstado.SelectedValue.ToEntero(), CveMunicipio:=DdlMunicipio.SelectedValue.ToEntero(), CveColonia:=DdlColonia.SelectedValue.ToEntero(), CveMotivoTraslado:=IIf(DdlMotivoTraslado.SelectedValue = "-1", "0", DdlMotivoTraslado.SelectedValue).ToString().ToEntero(), NumRegIdTrib:=IIf(TxtNumRegIdTrib.Text = "", "-1", TxtNumRegIdTrib.Text).ToString(),
|
CvePais:=DdlPais.SelectedValue.ToEntero(), CveEstado:=DdlEstado.SelectedValue.ToEntero(), CveMunicipio:=DdlMunicipio.SelectedValue.ToEntero(), CveColonia:=DdlColonia.SelectedValue.ToEntero(), CveMotivoTraslado:=IIf(DdlMotivoTraslado.SelectedValue = "-1", "0", DdlMotivoTraslado.SelectedValue).ToString().ToEntero(), NumRegIdTrib:=IIf(TxtNumRegIdTrib.Text = "", "-1", TxtNumRegIdTrib.Text).ToString(),
|
||||||
ComExtEstado:=IIf(TxtComExtEstado.Text = "", "-1", TxtComExtEstado.Text).ToString(), ComExtMunicipio:=IIf(TxtComExtMunicipio.Text = "", "-1", TxtComExtMunicipio.Text).ToString(), ComExtColonia:=IIf(TxtComExtColonia.Text = "", "-1", TxtComExtColonia.Text).ToString(), RequiereOC:=ChkRequiereOC.Checked, LT:=LT, LG:=LG, EsDistribuidor:=ChkEsDistribuidor.Checked,
|
ComExtEstado:=IIf(TxtComExtEstado.Text = "", "-1", TxtComExtEstado.Text).ToString(), ComExtMunicipio:=IIf(TxtComExtMunicipio.Text = "", "-1", TxtComExtMunicipio.Text).ToString(), ComExtColonia:=IIf(TxtComExtColonia.Text = "", "-1", TxtComExtColonia.Text).ToString(), RequiereOC:=ChkRequiereOC.Checked, LT:=LT, LG:=LG, EsDistribuidor:=ChkEsDistribuidor.Checked,
|
||||||
TipoCliente:=DdlTipoCliente.SelectedValue.ToEntero(), CargoUsado:=ChkCargoUsado.Checked, BonificacionUsado:=ChkBonificacionUsado.Checked, CveTipoRetencion:=DdlTipoRetencion.SelectedValue.ToEntero(), CorreoEntregaCompras:=TxtCorreoEntregaCompras.Text, CorreoEntregaAlmacen:=TxtCorreoEntregaAlmacen.Text, CveSATEstado:=DdlEstadoSAT.SelectedValue.ToEntero(), CveAdminTrayecto:=If(DdlAdminTrayecto.SelectedValue.ToEntero() <= 0, 0, DdlAdminTrayecto.SelectedValue.ToEntero()),
|
TipoCliente:=DdlTipoCliente.SelectedValue.ToEntero(), CargoUsado:=ChkCargoUsado.Checked, BonificacionUsado:=ChkBonificacionUsado.Checked, CveTipoRetencion:=DdlTipoRetencion.SelectedValue.ToEntero(), CorreoEntregaCompras:=TxtCorreoEntregaCompras.Text, CorreoEntregaAlmacen:=TxtCorreoEntregaAlmacen.Text, CveSATEstado:=DdlEstadoSAT.SelectedValue.ToEntero(), CveAdminTrayecto:=If(DdlAdminTrayecto.SelectedValue.ToEntero() <= 0, 0, DdlAdminTrayecto.SelectedValue.ToEntero()),
|
||||||
CveRegimenFiscal:=DdlRegimenFiscal.SelectedValue.ToEntero, RegimenSociedad:=TxtRegimenSociedad.Text, TipoPersona:=TipoPersona, RepresentanteLegal:=TxtRepresentanteLegal.Text) Then
|
CveRegimenFiscal:=DdlRegimenFiscal.SelectedValue.ToEntero, RegimenSociedad:=TxtRegimenSociedad.Text, TipoPersona:=TipoPersona, RepresentanteLegal:=TxtRepresentanteLegal.Text, FechaLimiteCredito:=FechaLimiteCredito) Then
|
||||||
|
|
||||||
ViewState("CveCliente") = ObjClientes.CveCliente
|
ViewState("CveCliente") = ObjClientes.CveCliente
|
||||||
|
|
||||||
@@ -2819,7 +2831,7 @@ Partial Class Clientes
|
|||||||
ApellidoPaternoPF:=IIf(TxtApellidoPaterno.Text = "", "-1", TxtApellidoPaterno.Text).ToString(), ApellidoMaternoPF:=IIf(TxtApellidoMaterno.Text = "", "-1", TxtApellidoMaterno.Text).ToString(), NombresPF:=IIf(TxtNombres.Text = "", "-1", TxtNombres.Text).ToString(),
|
ApellidoPaternoPF:=IIf(TxtApellidoPaterno.Text = "", "-1", TxtApellidoPaterno.Text).ToString(), ApellidoMaternoPF:=IIf(TxtApellidoMaterno.Text = "", "-1", TxtApellidoMaterno.Text).ToString(), NombresPF:=IIf(TxtNombres.Text = "", "-1", TxtNombres.Text).ToString(),
|
||||||
RequiereOC:=ChkRequiereOC.Checked, LT:=LT, LG:=LG, EsDistribuidor:=ChkEsDistribuidor.Checked, TipoCliente:=DdlTipoCliente.SelectedValue.ToEntero(), CargoUsado:=ChkCargoUsado.Checked, BonificacionUsado:=ChkBonificacionUsado.Checked, CveTipoRetencion:=DdlTipoRetencion.SelectedValue.ToEntero(), CorreoEntregaCompras:=TxtCorreoEntregaCompras.Text, CorreoEntregaAlmacen:=TxtCorreoEntregaAlmacen.Text, CveSATEstado:=DdlEstadoSAT.SelectedValue.ToEntero(),
|
RequiereOC:=ChkRequiereOC.Checked, LT:=LT, LG:=LG, EsDistribuidor:=ChkEsDistribuidor.Checked, TipoCliente:=DdlTipoCliente.SelectedValue.ToEntero(), CargoUsado:=ChkCargoUsado.Checked, BonificacionUsado:=ChkBonificacionUsado.Checked, CveTipoRetencion:=DdlTipoRetencion.SelectedValue.ToEntero(), CorreoEntregaCompras:=TxtCorreoEntregaCompras.Text, CorreoEntregaAlmacen:=TxtCorreoEntregaAlmacen.Text, CveSATEstado:=DdlEstadoSAT.SelectedValue.ToEntero(),
|
||||||
CveAdminTrayecto:=If(DdlAdminTrayecto.SelectedValue.ToEntero() <= 0, 0, DdlAdminTrayecto.SelectedValue.ToEntero()),
|
CveAdminTrayecto:=If(DdlAdminTrayecto.SelectedValue.ToEntero() <= 0, 0, DdlAdminTrayecto.SelectedValue.ToEntero()),
|
||||||
NoDesglosaIVA:=ChkNoDesglosaIVA.Checked, CveRegimenFiscal:=DdlRegimenFiscal.SelectedValue.ToEntero, RegimenSociedad:=TxtRegimenSociedad.Text, TipoPersona:=TipoPersona, RepresentanteLegal:=TxtRepresentanteLegal.Text) Then
|
NoDesglosaIVA:=ChkNoDesglosaIVA.Checked, CveRegimenFiscal:=DdlRegimenFiscal.SelectedValue.ToEntero, RegimenSociedad:=TxtRegimenSociedad.Text, TipoPersona:=TipoPersona, RepresentanteLegal:=TxtRepresentanteLegal.Text, FechaLimiteCredito:=FechaLimiteCredito) Then
|
||||||
|
|
||||||
|
|
||||||
ObjClientes.LimpiaImpuestosLocales(CveCliente)
|
ObjClientes.LimpiaImpuestosLocales(CveCliente)
|
||||||
|
|||||||
@@ -1,235 +0,0 @@
|
|||||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="RepConciliacionSat.aspx.cs" Inherits="Ventas_RepConciliacionSat" %>
|
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
||||||
<style>
|
|
||||||
table.table > tbody > tr.Grupo0 {
|
|
||||||
background-color: #AAA !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.table > tbody > tr.Grupo1 {
|
|
||||||
background-color: #CCC !important;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.table > tbody > tr.Grupo2 {
|
|
||||||
background-color: #DDD !important;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.GVRepConciliacionSatGET > tbody > tr > td:not(:nth-child(1)) {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.GVRepConciliacionSatGET tr:not(.Grupo0):not(.Grupo3) .showhideicon {
|
|
||||||
width: 14px;
|
|
||||||
height: 14px;
|
|
||||||
font-size: 7px;
|
|
||||||
display: block;
|
|
||||||
background-image: url(/Metronic/assets/global/img/portlet-collapse-icon-white.png);
|
|
||||||
}
|
|
||||||
|
|
||||||
.GVRepConciliacionSatGET tr:not(.Grupo0):not(.Grupo3).hidex .showhideicon {
|
|
||||||
background-image: url(/Metronic/assets/global/img/portlet-expand-icon-white.png);
|
|
||||||
}
|
|
||||||
|
|
||||||
.GVRepConciliacionSatGET .bactions {
|
|
||||||
width: 5px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
||||||
Conciliación CFDI SAT
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
||||||
<li><a onclick="javascript:AbrirVentana('/Ventas/SolicitudesSAT.aspx?tipo=2&Masterimpoup=true',1400);"><i class="fa fa-dropbox"></i>Solicitudes SAT </a></li>
|
|
||||||
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
<div class="portlet solid grey-cascade portlet-filter" id="idnecesaria">
|
|
||||||
<div class="portlet-title portlet-filterT smalltitle" style="min-height: 51px;">
|
|
||||||
<div class="tools">
|
|
||||||
<asp:Button ID="BtnConsultar" OnClick="BtnConsultar_Click" runat="server" Text="Consultar" class="btn btn-primary" />
|
|
||||||
<a href="javascript:;" class="expand"></a>
|
|
||||||
</div>
|
|
||||||
<div class="titlefiltros caption">
|
|
||||||
<div class="row">
|
|
||||||
<label class="col-md-1" style="padding-top: 13px; display: none;">Tipo: </label>
|
|
||||||
<div class="col-md-2" style="display: none;">
|
|
||||||
<asp:ListBox ID="DdlTipoComprobante" data-text="Todos" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server">
|
|
||||||
<asp:ListItem Text="Ingresos" Value="Ing"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Egresos" Value="Egs"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Remisión" Value="Rem"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Cotización" Value="Cot"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Anticipos" Value="Ant"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Pedido Con" Value="Ped"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Devolucion" Value="Dev"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Pedido" Value="Pd2"></asp:ListItem>
|
|
||||||
</asp:ListBox>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-1 truncate" style="padding-top: 13px;">
|
|
||||||
Fecha Inicio:
|
|
||||||
</div>
|
|
||||||
<div class="col-md-1" style="padding-top: 9px;">
|
|
||||||
<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 Width="80px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<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="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" 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: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="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-1 truncate" style="padding-top: 13px;">
|
|
||||||
Fecha Fin:
|
|
||||||
</div>
|
|
||||||
<div class="col-md-1" style="padding-top: 9px;">
|
|
||||||
<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 Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<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>
|
|
||||||
<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>
|
|
||||||
<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>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="portlet-body" style="display: none">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
<asp:UpdatePanel ID="upDatosRepC" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
<asp:GridView ID="GVRepConciliacionSatGET" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVRepConciliacionSatGET" AutoGenerateColumns="False"
|
|
||||||
DataKeyNames="anio,Mes,MesText,Dia,GRUPOCve,Grupo,CFDISIG,CFDISAT,CFDISIGSinSAT,CFDISATSinSIG" OnRowDataBound="GVRepConciliacionSatGET_RowDataBound">
|
|
||||||
<Columns>
|
|
||||||
<asp:TemplateField HeaderText=" ">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblgrupo" runat="server" Text='<%# Eval("Grupo")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="SIG">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink ID="HypSIG" runat="server"><%# Eval("CFDISIG")%></asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="SAT">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink ID="HypSAT" runat="server"><%# Eval("CFDISAT")%></asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Sin encontrar SAT">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink ID="HypSIGnoSAT" runat="server"><%# Eval("CFDISIGSinSAT")%></asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Sin encontrar SIG">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink ID="HypSatnoSIG" runat="server"><%# Eval("CFDISATSinSIG")%></asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderStyle-CssClass="bactions">
|
|
||||||
<ItemTemplate>
|
|
||||||
<span class="showhideicon"></span>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderStyle-CssClass="bactions">
|
|
||||||
<ItemTemplate>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
<%--<CR:CrystalReportViewer ID="reports" runat="server" AutoDataBind="true"></CR:CrystalReportViewer>--%>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
||||||
<script>
|
|
||||||
var Grupo3Show = [];
|
|
||||||
var Grupo2hide = [];
|
|
||||||
$('body').on('click', 'tr.Grupo2 ', function (e) {
|
|
||||||
let gmes = $(this).attr('gmes');
|
|
||||||
|
|
||||||
if (Grupo3Show.indexOf(gmes) >= 0) {
|
|
||||||
Grupo3Show.pop(gmes);
|
|
||||||
} else {
|
|
||||||
Grupo3Show.push(gmes);
|
|
||||||
|
|
||||||
}
|
|
||||||
showhideg3();
|
|
||||||
});
|
|
||||||
function showhideg3() {
|
|
||||||
|
|
||||||
$('.Grupo3').hide();
|
|
||||||
$('.Grupo3').each(function () {
|
|
||||||
let gmes = $(this).attr('gmes');
|
|
||||||
let ganio = $(this).attr('ganio');
|
|
||||||
if (Grupo3Show.indexOf(gmes) >= 0 && Grupo2hide.indexOf(ganio) == -1) {
|
|
||||||
$(this).show();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
//
|
|
||||||
$('.Grupo2').removeClass('hidex');
|
|
||||||
$('.Grupo2').each(function () {
|
|
||||||
let gmes = $(this).attr('gmes');
|
|
||||||
if (Grupo3Show.indexOf(gmes) == -1) {
|
|
||||||
$(this).addClass('hidex');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
$('body').on('click', 'tr.Grupo1 ', function (e) {
|
|
||||||
let ganio = $(this).attr('ganio');
|
|
||||||
|
|
||||||
if (Grupo2hide.indexOf(ganio) >= 0) {
|
|
||||||
Grupo2hide.pop(ganio);
|
|
||||||
} else {
|
|
||||||
Grupo2hide.push(ganio);
|
|
||||||
|
|
||||||
}
|
|
||||||
showhideg3();
|
|
||||||
showhideg2();
|
|
||||||
});
|
|
||||||
function showhideg2() {
|
|
||||||
|
|
||||||
$('.Grupo2').show();
|
|
||||||
$('.Grupo2').each(function () {
|
|
||||||
let ganio = $(this).attr('ganio')
|
|
||||||
if (Grupo2hide.indexOf(ganio) >= 0) {
|
|
||||||
$(this).hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.Grupo1').removeClass('hidex');
|
|
||||||
$('.Grupo1').each(function () {
|
|
||||||
let gmes = $(this).attr('gmes');
|
|
||||||
let ganio = $(this).attr('ganio');
|
|
||||||
if (Grupo2hide.indexOf(gmes) > -1) {
|
|
||||||
$(this).addClass('hidex');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function ADSBegin() {
|
|
||||||
showhideg3();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</asp:Content>
|
|
||||||
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Web;
|
|
||||||
using System.Web.UI;
|
|
||||||
using System.Web.UI.WebControls;
|
|
||||||
using Extensiones;
|
|
||||||
|
|
||||||
public partial class Ventas_RepConciliacionSat : ClsPaginas
|
|
||||||
{
|
|
||||||
const string rqFechaInicio = "FechaInicio";
|
|
||||||
const string rqFechaFin = "FechaFin";
|
|
||||||
public string RfechaI
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return ViewState["RfechaI"].ToString();
|
|
||||||
}
|
|
||||||
set { ViewState["RfechaI"] = value; }
|
|
||||||
}
|
|
||||||
public string RfechaF
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return ViewState["RfechaF"].ToString();
|
|
||||||
}
|
|
||||||
set { ViewState["RfechaF"] = value; }
|
|
||||||
}
|
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (!IsPostBack)
|
|
||||||
{
|
|
||||||
DateTime fecha;
|
|
||||||
DateTime fechaInicio = DateTime.Now;
|
|
||||||
DateTime fechaFin = DateTime.Now;
|
|
||||||
if (fechaInicio.Day < 5) { fechaInicio = fechaInicio.AddMonths(-1); }
|
|
||||||
fechaInicio = fechaInicio.AddDays(1 - fechaInicio.DayOfYear);
|
|
||||||
fechaFin = fechaInicio.AddYears(1).AddDays(-1);
|
|
||||||
if (Request[rqFechaInicio] != null) { DateTime.TryParse(Request[rqFechaInicio], out fecha); fechaInicio = fecha.Year > 1900 ? fecha : fechaInicio; }
|
|
||||||
if (Request[rqFechaFin] != null) { DateTime.TryParse(Request[rqFechaFin], out fecha); fechaFin = fecha.Year > 1900 ? fecha : fechaFin; }
|
|
||||||
txtFechaI.Text = string.Format("{0:dd/MM/yyyy}", fechaInicio);
|
|
||||||
txtFechaF.Text = string.Format("{0:dd/MM/yyyy}", fechaFin);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
CargaRepConciliacionSatGET();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
protected void CargaRepConciliacionSatGET()
|
|
||||||
{
|
|
||||||
string RtipoDocto;
|
|
||||||
RtipoDocto = "I";
|
|
||||||
RfechaI = txtFechaI.Text.Length > 0 ? txtFechaI.Text.ToDateTime().ToString("yyyy/MM/dd") : "";
|
|
||||||
RfechaF = txtFechaF.Text.Length > 0 ? txtFechaF.Text.ToDateTime().ToString("yyyy/MM/dd") : "";
|
|
||||||
using (ClsGenerales ObjRepC = new ClsGenerales())
|
|
||||||
{
|
|
||||||
ObjRepC.RepConciliacionSATGet(UsuarioActual.CveEmpresa, RtipoDocto, RfechaI, RfechaF);
|
|
||||||
GVRepConciliacionSatGET.DataSource = ObjRepC.DtResultados;
|
|
||||||
ObjRepC.Dispose();
|
|
||||||
|
|
||||||
}
|
|
||||||
GVRepConciliacionSatGET.DataBind();
|
|
||||||
upDatosRepC.Update();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
CargaRepConciliacionSatGET();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void GVRepConciliacionSatGET_RowDataBound(object sender, GridViewRowEventArgs e)
|
|
||||||
{
|
|
||||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
|
||||||
{
|
|
||||||
string fechaI = RfechaI;
|
|
||||||
string fechaF = RfechaF;
|
|
||||||
DateTime danio;
|
|
||||||
DateTime danioF;
|
|
||||||
int GRUPOCve = e.Row.DBCampo("GRUPOCve").ToString().ToEntero();
|
|
||||||
e.Row.CssClass = string.Format("Grupo{0}", GRUPOCve);
|
|
||||||
e.Row.Attributes.Add("ganio", string.Format("{0}", e.Row.DBCampo("anio")));
|
|
||||||
e.Row.Attributes.Add("gMes", string.Format("{0}", e.Row.DBCampo("Mes")));
|
|
||||||
string navigateurl = "";
|
|
||||||
switch (GRUPOCve)
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
danio = string.Format("{0}/01/01", e.Row.DBCampo("anio")).ToDateTime();
|
|
||||||
danioF = danio.AddYears(1).AddSeconds(-1);
|
|
||||||
if (RfechaI.ToDateTime() < danio)
|
|
||||||
{
|
|
||||||
fechaI = danio.ToString("yyyy/MM/dd");
|
|
||||||
}
|
|
||||||
if (RfechaF.ToDateTime() > danioF || RfechaF.Length == 0)
|
|
||||||
{
|
|
||||||
fechaF = danioF.ToString("yyyy/MM/dd HH:mm:ss");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
danio = string.Format("{0}/{1}/01", e.Row.DBCampo("anio"), e.Row.DBCampo("Mes").Substring(4)).ToDateTime();
|
|
||||||
danioF = danio.AddMonths(1).AddSeconds(-1);
|
|
||||||
if (RfechaI.ToDateTime() < danio)
|
|
||||||
{
|
|
||||||
fechaI = danio.ToString("yyyy/MM/dd");
|
|
||||||
}
|
|
||||||
if (RfechaF.ToDateTime() > danioF || RfechaF.Length == 0)
|
|
||||||
{
|
|
||||||
fechaF = danioF.ToString("yyyy/MM/dd HH:mm:ss");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
danio = string.Format("{0:yyyy/MM/dd}", e.Row.DBCampo("dia")).ToDateTime();
|
|
||||||
danioF = danio.AddDays(1).AddSeconds(-1);
|
|
||||||
if (RfechaI.ToDateTime() < danio)
|
|
||||||
{
|
|
||||||
fechaI = danio.ToString("yyyy/MM/dd");
|
|
||||||
}
|
|
||||||
if (RfechaF.ToDateTime() > danioF || RfechaF.Length == 0)
|
|
||||||
{
|
|
||||||
fechaF = danioF.ToString("yyyy/MM/dd HH:mm:ss");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
navigateurl = string.Format("{0}&{3}={1}&{4}={2}", navigateurl, fechaI, fechaF, rqFechaInicio, rqFechaFin);
|
|
||||||
e.Row.FCHyperLink("HypSIG").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=1{0}", navigateurl);
|
|
||||||
e.Row.FCHyperLink("HypSAT").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=2{0}", navigateurl);
|
|
||||||
e.Row.FCHyperLink("HypSIGnoSAT").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=3{0}", navigateurl);
|
|
||||||
e.Row.FCHyperLink("HypSatnoSIG").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=4{0}", navigateurl);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,252 +0,0 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepIngresos.aspx.vb" Inherits="Ventas_RepIngresos" %>
|
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
||||||
<style>
|
|
||||||
.btnopaco {
|
|
||||||
background-color: rgba(0,0,0,0.2);
|
|
||||||
color: #FFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btnopaco:hover {
|
|
||||||
background-color: rgba(0,0,0,0.4);
|
|
||||||
color: #FFF;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2 .select2-selection__rendered {
|
|
||||||
line-height: 1;
|
|
||||||
color: #111;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2 .select2-selection--multiple {
|
|
||||||
box-sizing: border-box;
|
|
||||||
cursor: pointer;
|
|
||||||
display: block;
|
|
||||||
min-height: 20px;
|
|
||||||
user-select: none;
|
|
||||||
-webkit-user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-selection__rendered {
|
|
||||||
margin-top: 0px;
|
|
||||||
height: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-selection {
|
|
||||||
margin-top: 0px;
|
|
||||||
height: 31px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
|
||||||
border: none;
|
|
||||||
outline: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#chartdiv {
|
|
||||||
width: 100%;
|
|
||||||
height: 500px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
||||||
Reporte de Ingresos
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
||||||
<asp:UpdatePanel runat="server" ID="UpAgregar">
|
|
||||||
<ContentTemplate>
|
|
||||||
<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>
|
|
||||||
</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>
|
|
||||||
</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>
|
|
||||||
</li>
|
|
||||||
</ContentTemplate>
|
|
||||||
<Triggers>
|
|
||||||
<asp:PostBackTrigger ControlID="LnkPDF" />
|
|
||||||
<asp:PostBackTrigger ControlID="LnkExcel" />
|
|
||||||
</Triggers>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
||||||
<asp:UpdatePanel ID="upDatosRepI" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
|
|
||||||
<div class="portlet solid grey-cascade portlet-filter" id="idnecesaria">
|
|
||||||
<div class="portlet-title portlet-filterT smalltitle">
|
|
||||||
<div class="tools">
|
|
||||||
<asp:Button ID="LnkFiltrar" OnClick="LnkFiltrar_Click" runat="server" CausesValidation="true" CssClass=" btn btn-primary " Text="Consultar" ValidationGroup="GrpFiltrar"></asp:Button>
|
|
||||||
|
|
||||||
<a href="javascript;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
|
||||||
|
|
||||||
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
|
||||||
</div>
|
|
||||||
<div class="titlefiltros caption ">
|
|
||||||
<div class="row " style="height: 32px;">
|
|
||||||
<div class="col-md-1 lbltitle">
|
|
||||||
<asp:Label runat="server" Text="Fecha Inicio" AssociatedControlID="TxtFechaInicio"></asp:Label>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-1">
|
|
||||||
<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="TxtFechaInicio" Width="80" CssClass="form-control" runat="server"></asp:TextBox>
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="LnkFechaInicio" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaInicio" runat="server" TargetControlID="TxtFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender runat="server" ID="CEEFechaInicio" TargetControlID="TxtFechaInicio" PopupButtonID="LnkFechaInicio" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-1 lbltitle">
|
|
||||||
<asp:Label runat="server" Text="Fecha Fin" AssociatedControlID="TxtFechaFin"></asp:Label>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-1">
|
|
||||||
<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="TxtFechaFin" Width="80" CssClass="form-control" runat="server"></asp:TextBox>
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="LnkFechaFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender runat="server" ID="CEEFechaFin" TargetControlID="TxtFechaFin" PopupButtonID="LnkFechaFin" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-1 lbltitle">
|
|
||||||
<asp:Label runat="server" Text="Tipo" AssociatedControlID="DdlTipoDocto"></asp:Label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-2">
|
|
||||||
|
|
||||||
|
|
||||||
<asp:ListBox ID="DdlTipoDocto" data-text="Todos" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server">
|
|
||||||
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="Ant" Text="Anticipos"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="Dev" Text="Devolución"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="Egs" Text="Egresos"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="Ing" Text="Ingresos"></asp:ListItem>
|
|
||||||
</asp:ListBox>
|
|
||||||
|
|
||||||
|
|
||||||
<%-- <asp:DropDownList ID="DdlTipoDocto" runat="server" AppendDataBoundItems="true" CssClass="form-control input-small input-sm select2me" Width="100%">
|
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="Ant" Text="Anticipos"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="Dev" Text="Devolución"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="Egs" Text="Egresos"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="Ing" Text="Ingresos"></asp:ListItem>
|
|
||||||
</asp:DropDownList>--%>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-1 lbltitle ">
|
|
||||||
<asp:Label runat="server" Text="Sub Proyecto" AssociatedControlID="DdlSubProyecto"></asp:Label>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2">
|
|
||||||
<%-- <asp:DropDownList ID="DdlSubProyecto" runat="server" AppendDataBoundItems="true" CssClass="form-control input-small input-sm select2me" Width="100%" DataTextField="SubProyecto" DataValueField="CveSubProyecto">
|
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
||||||
</asp:DropDownList>--%>
|
|
||||||
|
|
||||||
|
|
||||||
<asp:ListBox ID="DdlSubProyecto" SelectionMode="Multiple" data-text="Todos" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server"></asp:ListBox>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<asp:GridView ID="GVRepIngresos" runat="server" GridLines="None" CssClass="table table-hover table-striped GVRepIngresos ScrollAD Widthall" AutoGenerateColumns="False"
|
|
||||||
DataKeyNames="Importe,Descuento,Amortizacion,IVA,IEPS,ImpuestoLocal,Total" OnRowDataBound="GVRepIngresos_RowDataBound">
|
|
||||||
<Columns>
|
|
||||||
<asp:TemplateField HeaderText="Titulo">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink runat="server" Text='<%# Eval("ConceptoContable")%>' NavigateUrl='<%# String.Format("/Ventas/RepIngresosDetalle.aspx?CveConceptoContable={0}&CveCuenta={1}&RsFechaI={2}&RsFechaF={3}&TipoAmortizacion={4}", Eval("CveConceptoContable"), Eval("CveCuenta"), Eval("FechaInicio", "{0:yyyy/MM/dd}"), Eval("FechaFin", "{0:yyyy/MM/dd}"), IIf(Eval("CveEmpresa").ToString() = "72", Eval("TipoAmortizacion"), "-1"))%>'> </asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Sub Total" ItemStyle-HorizontalAlign="Right">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink runat="server" Text='<%# Eval("Importe", "${0:N2}")%>' NavigateUrl='<%# String.Format("/Ventas/RepIngresosDetalle.aspx?CveConceptoContable={0}&CveCuenta={1}&RsFechaI={2}&RsFechaF={3}", Eval("CveConceptoContable"), Eval("CveCuenta"), Eval("FechaInicio", "{0:yyyy/MM/dd}"), Eval("FechaFin", "{0:yyyy/MM/dd}"))%>'> </asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Descuento" ItemStyle-HorizontalAlign="Right">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink runat="server" Text='<%# Eval("Descuento", "${0:N2}")%>' NavigateUrl='<%# String.Format("/Ventas/RepIngresosDetalle.aspx?CveConceptoContable={0}&CveCuenta={1}&RsFechaI={2}&RsFechaF={3}", Eval("CveConceptoContable"), Eval("CveCuenta"), Eval("FechaInicio", "{0:yyyy/MM/dd}"), Eval("FechaFin", "{0:yyyy/MM/dd}"))%>'> </asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Amortización" ItemStyle-HorizontalAlign="Right">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink runat="server" Text='<%# Eval("Amortizacion", "${0:N2}")%>' NavigateUrl='<%# String.Format("/Ventas/RepIngresosDetalle.aspx?CveConceptoContable={0}&CveCuenta={1}&RsFechaI={2}&RsFechaF={3}", Eval("CveConceptoContable"), Eval("CveCuenta"), Eval("FechaInicio", "{0:yyyy/MM/dd}"), Eval("FechaFin", "{0:yyyy/MM/dd}"))%>'> </asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="IVA" ItemStyle-HorizontalAlign="Right">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink runat="server" Text='<%# Eval("IVA", "${0:N2}")%>' NavigateUrl='<%# String.Format("/Ventas/RepIngresosDetalle.aspx?CveConceptoContable={0}&CveCuenta={1}&RsFechaI={2}&RsFechaF={3}", Eval("CveConceptoContable"), Eval("CveCuenta"), Eval("FechaInicio", "{0:yyyy/MM/dd}"), Eval("FechaFin", "{0:yyyy/MM/dd}"))%>'> </asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="IEPS" ItemStyle-HorizontalAlign="Right">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink runat="server" Text='<%# Eval("IEPS", "${0:N2}")%>' NavigateUrl='<%# String.Format("/Ventas/RepIngresosDetalle.aspx?CveConceptoContable={0}&CveCuenta={1}&RsFechaI={2}&RsFechaF={3}", Eval("CveConceptoContable"), Eval("CveCuenta"), Eval("FechaInicio", "{0:yyyy/MM/dd}"), Eval("FechaFin", "{0:yyyy/MM/dd}"))%>'> </asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Impuesto Local" ItemStyle-HorizontalAlign="Right">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink runat="server" Text='<%# Eval("ImpuestoLocal", "${0:N2}")%>' NavigateUrl='<%# Eval("CveConceptoContable", String.Format("/Ventas/RepIngresosDetalle.aspx?GTipoDocto={{0}}{0}", Filtros))%>'> </asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink runat="server" Text='<%# Eval("Total", "${0:N2}")%>' NavigateUrl='<%# Eval("CveConceptoContable", String.Format("/Ventas/RepIngresosDetalle.aspx?GTipoDocto={{0}}{0}", Filtros))%>'> </asp:HyperLink>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
<asp:UpdatePanel runat="server" ID="UpTipoCambio" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
<div id="DivTipoCambio" class="modal fade" role="dialog">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
||||||
<h4 class="modal-title">
|
|
||||||
<asp:Label ID="Label2" runat="server" ClientIDMode="Static" Text="Cambiar Tipo Cambio de Dólares"></asp:Label>
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<asp:UpdatePanel runat="server" ID="UpBodyTipoCambio" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
<asp:RadioButtonList runat="server" ID="RblTipoCambio" AutoPostBack="true">
|
|
||||||
<asp:ListItem Selected="true" Text="Moneda Original" Value="2"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Dólares en Tipo Cambio de la Fecha Venta" Value="1"></asp:ListItem>
|
|
||||||
<%--<asp:ListItem Text="Tipo Cambio Especifico" Value="3"></asp:ListItem>--%>
|
|
||||||
</asp:RadioButtonList>
|
|
||||||
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
|
||||||
Especifico:
|
|
||||||
|
|
||||||
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<asp:Button ID="BtnTipoCambio" runat="server" Text="Aceptar" class="btn btn-primary" />
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
|
|
||||||
@@ -1,197 +0,0 @@
|
|||||||
|
|
||||||
Imports System.Data
|
|
||||||
Imports Extensiones
|
|
||||||
Imports Microsoft.Reporting.WebForms
|
|
||||||
|
|
||||||
Partial Class Ventas_RepIngresos
|
|
||||||
Inherits ClsPaginas
|
|
||||||
|
|
||||||
#Region "Propiedades"
|
|
||||||
Protected ReadOnly Property Filtros As String
|
|
||||||
Get
|
|
||||||
Dim retorno As New StringBuilder
|
|
||||||
If RsFechaI <> "-1" Then
|
|
||||||
retorno.Append("&RsFechaI=")
|
|
||||||
retorno.Append(RsFechaI)
|
|
||||||
End If
|
|
||||||
If RsFechaF <> "-1" Then
|
|
||||||
retorno.Append("&RsFechaF=")
|
|
||||||
retorno.Append(RsFechaF)
|
|
||||||
End If
|
|
||||||
If TipoDoc <> "-1" Then
|
|
||||||
retorno.Append("&TipoDoc=")
|
|
||||||
retorno.Append(TipoDoc)
|
|
||||||
End If
|
|
||||||
If CveSubProyecto <> -1 Then
|
|
||||||
retorno.Append("&CveSubProyecto=")
|
|
||||||
retorno.Append(CveSubProyecto)
|
|
||||||
End If
|
|
||||||
Return retorno.ToString()
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
Private Property RsFechaI() As String
|
|
||||||
Get
|
|
||||||
Return If(IsNothing(ViewState("RsFechaI")), "-1", CStr(ViewState("RsFechaI")))
|
|
||||||
End Get
|
|
||||||
Set
|
|
||||||
ViewState("RsFechaI") = Value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
Private Property RsFechaF() As String
|
|
||||||
Get
|
|
||||||
Return If(IsNothing(ViewState("RsFechaF")), "-1", CStr(ViewState("RsFechaF")))
|
|
||||||
End Get
|
|
||||||
Set
|
|
||||||
ViewState("RsFechaF") = Value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
Private Property TipoDoc() As String
|
|
||||||
Get
|
|
||||||
Return If(IsNothing(ViewState("TipoDoc")), "-1", CStr(ViewState("TipoDoc")))
|
|
||||||
End Get
|
|
||||||
Set
|
|
||||||
ViewState("TipoDoc") = Value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
Private Property CveSubProyecto() As Integer
|
|
||||||
Get
|
|
||||||
Return If(IsNothing(ViewState("CveSubProyecto")), -1, ViewState("CveSubProyecto").ToString().ToEntero())
|
|
||||||
End Get
|
|
||||||
Set
|
|
||||||
ViewState("CveSubProyecto") = Value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
Private Property DtDatos As DataTable
|
|
||||||
Get
|
|
||||||
DtDatos = DirectCast(ViewState("DtDatos"), DataTable)
|
|
||||||
End Get
|
|
||||||
|
|
||||||
Set(ByVal value As DataTable)
|
|
||||||
ViewState("DtDatos") = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private Property TipoCambio As Integer
|
|
||||||
Get
|
|
||||||
Return ViewState("TipoCambio").ToString.ToEntero
|
|
||||||
End Get
|
|
||||||
|
|
||||||
Set(value As Integer)
|
|
||||||
ViewState("TipoCambio") = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
Private Property TCEspecifico As Decimal
|
|
||||||
Get
|
|
||||||
Return ViewState("TCEspecifico").ToString.ToDecimal
|
|
||||||
End Get
|
|
||||||
|
|
||||||
Set(value As Decimal)
|
|
||||||
ViewState("TCEspecifico") = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
#End Region
|
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
|
||||||
If Not IsPostBack Then
|
|
||||||
TCEspecifico = -1
|
|
||||||
TipoCambio = 1
|
|
||||||
CveSubProyecto = -1
|
|
||||||
TxtFechaInicio.Text = String.Format("01/01/{0}", Now.Year)
|
|
||||||
DdlSubProyecto.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
|
|
||||||
DdlSubProyecto.DataBind()
|
|
||||||
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Protected Sub CargaRepIngresos(Optional tipoReporte As Integer = -1)
|
|
||||||
Dim Cves_Subprotectos As String = If(DdlSubProyecto.GetSelectedValuesM = "", "-1", DdlSubProyecto.GetSelectedValuesM)
|
|
||||||
Dim TiposDoc As String = If(DdlTipoDocto.GetSelectedValuesM = "", "-1", DdlTipoDocto.GetSelectedValuesM)
|
|
||||||
|
|
||||||
'If RblTipoCambio.SelectedValue.ToEntero = 3 And TxtEspecifico.Text <> "" Then
|
|
||||||
' TCEspecifico = TxtEspecifico.Text.ToDecimal
|
|
||||||
'Else
|
|
||||||
' TCEspecifico = -1
|
|
||||||
'End If
|
|
||||||
|
|
||||||
Dim ObjRepI As New ClsVentas()
|
|
||||||
If ObjRepI.RepIngresos(UsuarioActual.CveEmpresa, If(RsFechaI = "-1", MinFecha, RsFechaI.ToDate), If(RsFechaF = "-1", MaxFecha, RsFechaF.ToDate), TiposDoc, Cves_Subprotectos, TipoCambio:=TipoCambio, TCEspecifico:=TCEspecifico) Then
|
|
||||||
GVRepIngresos.DataSource = ObjRepI.DtResultados
|
|
||||||
DtDatos = ObjRepI.DtResultados
|
|
||||||
End If
|
|
||||||
ObjRepI.Dispose()
|
|
||||||
GVRepIngresos.DataBind()
|
|
||||||
upDatosRepI.Update()
|
|
||||||
End Sub
|
|
||||||
Protected Sub LnkFiltrar_Click(sender As Object, e As EventArgs)
|
|
||||||
RsFechaI = TxtFechaInicio.Text.Replace("__/__/____", "").Trim()
|
|
||||||
RsFechaI = If(RsFechaI.Length > 6, RsFechaI.ToDate().ToString("yyyy/MM/dd"), "-1")
|
|
||||||
RsFechaF = TxtFechaFin.Text.Replace("__/__/____", "").Trim()
|
|
||||||
RsFechaF = If(RsFechaF.Length > 6, RsFechaF.ToDate().ToString("yyyy/MM/dd"), "-1")
|
|
||||||
TipoDoc = DdlTipoDocto.SelectedValue
|
|
||||||
CveSubProyecto = DdlSubProyecto.SelectedValue.ToEntero()
|
|
||||||
CargaRepIngresos()
|
|
||||||
End Sub
|
|
||||||
#Region "IMPRESION"
|
|
||||||
Protected Sub LnkPDF_Click(sender As Object, e As EventArgs)
|
|
||||||
GeneraImpresion()
|
|
||||||
End Sub
|
|
||||||
Protected Sub LnkExcel_Click(sender As Object, e As EventArgs)
|
|
||||||
GeneraImpresion("Excel")
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub GeneraImpresion(Optional Formato As String = "PDF")
|
|
||||||
|
|
||||||
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 FI As String = If(TxtFechaInicio.Text = "", "", $"Fecha Inicio: {TxtFechaInicio.Text} ")
|
|
||||||
Dim FF As String = If(TxtFechaFin.Text = "", "", $"Fecha Fin: {TxtFechaFin.Text} ")
|
|
||||||
Dim Tipo As String = If(DdlTipoDocto.SelectedValue = "", "", $"Tipo Docto: {DdlTipoDocto.GetSelectedText} ")
|
|
||||||
Dim subProy As String = If(DdlSubProyecto.SelectedValue = "", "", $"SubProyecto: {DdlSubProyecto.GetSelectedText} ")
|
|
||||||
|
|
||||||
If DtDatos IsNot Nothing AndAlso DtDatos.Rows.Count > 0 Then
|
|
||||||
|
|
||||||
Dim params As New List(Of ReportParameter)
|
|
||||||
|
|
||||||
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
|
||||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
|
||||||
params.Add(New ReportParameter("AgrupadoPor", $"{FI}{FF}{Tipo}{subProy}"))
|
|
||||||
params.Add(New ReportParameter("FechaImpresion", DateAndTime.Now))
|
|
||||||
If Imagen.Exists Then
|
|
||||||
params.Add(New ReportParameter("LogoPath", logouri))
|
|
||||||
Else
|
|
||||||
params.Add(New ReportParameter("LogoPath", ""))
|
|
||||||
End If
|
|
||||||
|
|
||||||
ImprimirPDF("Empresas/Grales/Formatos/RepIngresos.rdlc", DtDatos, params, "RepPUESinPago", Formato)
|
|
||||||
Else
|
|
||||||
Alert("No se encontraron datos con los filtros especificados", TipoMensaje.MsgAdvertencia)
|
|
||||||
End If
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
#End Region
|
|
||||||
Protected Sub GVRepIngresos_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
|
||||||
If e.Row.DBCampo("TipoAmortizacion") = "" Then
|
|
||||||
e.Row.CssClass = "Totales"
|
|
||||||
ElseIf e.Row.DBCampo("TipoAmortizacion") <> "" AndAlso e.Row.DBCampo("CveConceptoContable") = "" Then
|
|
||||||
e.Row.CssClass = "SubTotales"
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
Private Sub RblTipoCambio_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RblTipoCambio.SelectedIndexChanged
|
|
||||||
TipoCambio = RblTipoCambio.SelectedValue.ToEntero
|
|
||||||
'If TipoCambio = 3 Then
|
|
||||||
' LiEspecifico.Visible = True
|
|
||||||
' TCEspecifico = GlobalTipoCambio(Now).ToDecimal
|
|
||||||
' TxtEspecifico.Text = TCEspecifico.ToString
|
|
||||||
'Else
|
|
||||||
' LiEspecifico.Visible = False
|
|
||||||
'End If
|
|
||||||
UpBodyTipoCambio.Update()
|
|
||||||
End Sub
|
|
||||||
Private Sub BtnTipoCambio_Click(sender As Object, e As EventArgs) Handles BtnTipoCambio.Click
|
|
||||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "DivTipoCambio"))
|
|
||||||
LnkFiltrar_Click(LnkFiltrar, EventArgs.Empty)
|
|
||||||
End Sub
|
|
||||||
End Class
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReporteDetalle.aspx.cs" Inherits="Ventas_ReporteDetalle" %>
|
|
||||||
|
|
||||||
<%@ Register Assembly="Stimulsoft.Report.MobileDesign, Version=2017.1.10, Culture=neutral, PublicKeyToken=EBE6666CBA19647A"
|
|
||||||
Namespace="Stimulsoft.Report.MobileDesign" TagPrefix="cc2" %>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head runat="server">
|
|
||||||
<title></title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<form id="form1" runat="server" role="application">
|
|
||||||
<cc2:StiMobileDesigner ID="SmdDesigner" runat="server"
|
|
||||||
ShowFileMenuClose="false"
|
|
||||||
PermissionDataConnections="View"
|
|
||||||
PermissionDataSources="View"
|
|
||||||
ShowAboutButton="false"
|
|
||||||
ShowAnimation="true"
|
|
||||||
ShowTooltips="true"
|
|
||||||
ShowTooltipsHelp="true"
|
|
||||||
ShowSaveButton="true"
|
|
||||||
ShowSaveDialog="true"
|
|
||||||
OnCreateReport="SmdDesigner_CreateReport"
|
|
||||||
OnSaveReport="SmdDesigner_SaveReport"
|
|
||||||
ShowFileMenuSaveAs="false"
|
|
||||||
ShowFileMenuSave="false"
|
|
||||||
ShowFileMenuOpen="false"
|
|
||||||
ValidateRequestMode="Inherit"
|
|
||||||
ViewStateMode="Inherit"
|
|
||||||
OnExit="SmdDesigner_Exit"
|
|
||||||
Theme="Office2013WhiteBlue" CacheMode="Page" InterfaceType="Auto" />
|
|
||||||
<script type="text/javascript" async="async">
|
|
||||||
onsubmit = function () {
|
|
||||||
alert("hizo postback");
|
|
||||||
}
|
|
||||||
|
|
||||||
document.getElementById("SmdDesignersaveReportHotButton").addEventListener("click", function () {
|
|
||||||
MandaAviso();
|
|
||||||
});
|
|
||||||
|
|
||||||
function MandaAviso() {
|
|
||||||
//setTimeout('window.opener.AlertFactura();', 2000);
|
|
||||||
window.opener.AlertFactura();
|
|
||||||
window.close();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,406 +0,0 @@
|
|||||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="SolicitudesSAT.aspx.cs" Inherits="Ventas_SolicitudesSAT" %>
|
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
||||||
<style>
|
|
||||||
.GVSAT_DescargaSolicitudes a {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
||||||
Solicitudes CFDI SAT
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
||||||
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
<li>
|
|
||||||
<asp:LinkButton ID="LnkVerificarSolicitudes" OnClick="LnkVerificarSolicitudes_Click" runat="server">Verificar Solicitudes</asp:LinkButton></li>
|
|
||||||
<li>
|
|
||||||
<asp:HyperLink ID="LnkSolicitarmodal" runat="server" data-toggle="modal" data-target="#ModalSolicitarSat">Solicitar SAT</asp:HyperLink></li>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
||||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
<div class="portlet solid grey-cascade portlet-filter" id="idnecesaria">
|
|
||||||
<div class="portlet-title portlet-filterT smalltitle" style="min-height: 51px;">
|
|
||||||
<div class="tools">
|
|
||||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" OnClick="BtnConsultar_Click" />
|
|
||||||
<%--<a href="javascript:;" class="expand"></a>--%>
|
|
||||||
</div>
|
|
||||||
<div class="titlefiltros caption">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-1 truncate">
|
|
||||||
Tipo:
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-2">
|
|
||||||
<asp:DropDownList ID="DdlTipo" CssClass="form-control select2me" Width="100%" runat="server">
|
|
||||||
<asp:ListItem Value="-1" Text="Todas" Selected="True"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="1" Text="Recibidas (Compras)"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="2" Text="Emitidas (Ventas)"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-1 truncate">
|
|
||||||
Fecha Inicio(ing.):
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-1">
|
|
||||||
<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 Width="80px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<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="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" 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: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="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-1 truncate">
|
|
||||||
Fecha Fin(ing.):
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-1">
|
|
||||||
<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 Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<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>
|
|
||||||
<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>
|
|
||||||
<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>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-1 truncate">
|
|
||||||
Fecha Inicio(Sol.):
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-1">
|
|
||||||
<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 Width="80px" ID="txtFechaISol" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="imgCalendarioSol" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaISol" runat="server" TargetControlID="txtFechaISol" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="txtFechaISol" PopupButtonID="imgCalendarioSol" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
||||||
<asp:RequiredFieldValidator ID="rfvFechaISol" runat="server" ControlToValidate="txtFechaISol" 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="cvFechaISol" runat="server" ControlToValidate="txtFechaISol" 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="vcoFfvFISol" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaISol" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="vcoCvFISOL" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaISol" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-1 truncate">
|
|
||||||
Fecha Fin(Sol.):
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-1">
|
|
||||||
<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 Width="80px" ID="txtFechaFSol" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="imgCalendarioFSol" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaFSol" runat="server" TargetControlID="txtFechaFSol" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender2" TargetControlID="txtFechaFSol" PopupButtonID="imgCalendarioFSol" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
||||||
<asp:RequiredFieldValidator ID="rfvFechaFSol" runat="server" ControlToValidate="txtFechaFSol" 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="cvFechaFSol" runat="server" ControlToValidate="txtFechaFSol" 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="vcoRfvFFSol" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaFSol" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="vcoCvFFSol" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaFSol" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="portlet-body" style="display: none">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="upDatosSAT" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
<asp:GridView ID="GVSAT_DescargaSolicitudes" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVSAT_DescargaSolicitudes" AutoGenerateColumns="False"
|
|
||||||
DataKeyNames="CveSolicitudSat,Tipo,TipoText,FechaIngreso,idSolicitud,FechaInicioSolicitud,FechaFinSolicitud,FechaDescarga,NoCFDI" data-sort="2">
|
|
||||||
<Columns>
|
|
||||||
<asp:TemplateField HeaderText="Tipo ">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lbltipoText" runat="server" Text='<%# Eval("TipoText")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Fecha Ingreso">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblfechaIngreso" runat="server" Text='<%# Eval("FechaIngreso","{0:dd/MM/yyyy}")%>' data-toggle="tooltip" title='<%# Eval("FechaIngreso","{0:dd/MM/yyyy HH:mm}")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="id Solicitud" Visible="false">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblidSolicitud" runat="server" Text='<%# Eval("idSolicitud")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Fecha Inicio Solicitud">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblfechaInicioSolicitud" runat="server" Text='<%# Eval("FechaInicioSolicitud","{0:dd/MM/yyyy}")%>' data-toggle="tooltip" title='<%# Eval("FechaInicioSolicitud","{0:dd/MM/yyyy HH:mm}")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Fecha Fin Solicitud">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblfechaFinSolicitud" runat="server" Text='<%# Eval("FechaFinSolicitud","{0:dd/MM/yyyy}")%>' data-toggle="tooltip" title='<%# Eval("FechaFinSolicitud","{0:dd/MM/yyyy HH:mm}")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Estatus">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblnoCFDI" runat="server" Text='<%# Eval("Estatus")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Fecha Descarga">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="lblfechaDescarga" runat="server" Text='<%# Eval("FechaDescarga")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="No CFDI">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:LinkButton ID="LnknoCFDI" OnClick="LnknoCFDI_Click" runat="server" Text='<%# Eval("NoCFDI")%>'> </asp:LinkButton>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
|
|
||||||
|
|
||||||
<div id="ModalFoliosSolicitud" class="modal ADS fade" role="dialog">
|
|
||||||
<asp:UpdatePanel ID="UpFoliosSAT" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
<div class="modal-content rowpadding">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
<h4 class="modal-title" runat="server" style="text-align: left">Folios descargados</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body" style="min-width:1000px;">
|
|
||||||
|
|
||||||
<asp:GridView ID="GVFoliosSAT" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVFoliosSAT" AutoGenerateColumns="False"
|
|
||||||
DataKeyNames="UUID" data-sort="2">
|
|
||||||
<Columns>
|
|
||||||
<asp:TemplateField HeaderText="Folio Fiscal ">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label runat="server" Text='<%# Eval("UUID")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Tipo Comprobante">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label runat="server" Text='<%# Eval("TipoComprobante")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="RFC">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label runat="server" Text='<%# Eval("RFCDe")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Serie - Folio ">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label runat="server" Text='<%# Eval("SerieFolio")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Fecha">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label runat="server" Text='<%# Eval("FechaFactura","{0: dd/MM/yyyy}")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label runat="server" Text='<%# Eval("Total","{0:N2}")%>'> </asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ModalSolicitarSat" class="modal ADS fade" role="dialog">
|
|
||||||
<asp:UpdatePanel ID="UpModalDefaults" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
<div class="modal-content rowpadding">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
<h4 class="modal-title" runat="server" style="text-align: left">Solicitar descarga SAT</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-3 ">
|
|
||||||
<asp:Label runat="server" Text="Tipo" AssociatedControlID="DdlTipoAdd"></asp:Label>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
|
||||||
<asp:DropDownList ID="DdlTipoAdd" CssClass="form-control select2me" Width="100%" runat="server">
|
|
||||||
<asp:ListItem Value="-1" Text="Todas" Selected="True"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="1" Text="Recibidas (Compras)"></asp:ListItem>
|
|
||||||
<asp:ListItem Value="2" Text="Emitidas (Ventas)"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<%--<div class="col-sm-3 ">
|
|
||||||
Fecha Inicio:
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy hh:mm:ss" style="display: inline-block;">
|
|
||||||
<asp:TextBox ID="txtFechaIAdd" runat="server" CssClass="form-control input-sm ADDateTimePicker" datetimeButton=".lnkFechaIAdd" CausesValidation="true" MaxLength="19" Width="132px "></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator ID="rfvFechaIAdd" runat="server" ControlToValidate="txtFechaIAdd" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="VGAdd"></asp:RequiredFieldValidator>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VcoFechaIAdd" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaIAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
<span class="input-group-btn"><a class="btn default lnkFechaIAdd"><i class="fa fa-calendar"></i></a></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-3 ">
|
|
||||||
Fecha Fin:
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
|
|
||||||
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy hh:mm:ss" style="display: inline-block;">
|
|
||||||
<asp:TextBox ID="txtFechaFAdd" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" datetimeButton=".lnkFechaFAdd" MaxLength="19" Width="132px "></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator ID="rfvFechaFAdd" runat="server" ControlToValidate="txtFechaFAdd" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="VGAdd"></asp:RequiredFieldValidator>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VcoFechaFAdd" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaFAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
<span class="input-group-btn"><a class="btn default lnkFechaFAdd"><i class="fa fa-calendar"></i></a></span>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>--%>
|
|
||||||
<div class="col-md-4" data-date-format="dd/mm/yyyy" style="padding-right: 0px;">
|
|
||||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
|
||||||
<asp:TextBox ID="txtFechaIAdd" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<asp:Label runat="server" Text="Fecha Inicio" AssociatedControlID="txtFechaIAdd"></asp:Label>
|
|
||||||
</div>
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaIAdd" runat="server" TargetControlID="txtFechaIAdd" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender3" TargetControlID="txtFechaIAdd" PopupButtonID="LnkFechaIAdd" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
||||||
<asp:RequiredFieldValidator ID="rfvFechaIAdd" runat="server" ControlToValidate="txtFechaIAdd" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="VGAdd"></asp:RequiredFieldValidator>
|
|
||||||
<asp:CompareValidator ID="cvFechaIAdd" runat="server" ControlToValidate="txtFechaIAdd" 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="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaIAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaIAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2" style="padding-top: 14px; padding-left: 0px;">
|
|
||||||
<div class="input-group input-sm input-small date date-picker " style="padding-left: 0px;" data-date-format="dd/mm/yyyy">
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="LnkFechaIAdd" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-4" data-date-format="dd/mm/yyyy" style="padding-right: 0px;">
|
|
||||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
|
||||||
<asp:TextBox ID="txtFechaFAdd" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
||||||
<asp:Label runat="server" Text="Fecha Fin" AssociatedControlID="txtFechaFAdd"></asp:Label>
|
|
||||||
</div>
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaFAdd" runat="server" TargetControlID="txtFechaFAdd" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender4" TargetControlID="txtFechaFAdd" PopupButtonID="LnkFechaFAdd" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
||||||
<asp:RequiredFieldValidator ID="rfvFechaFAdd" runat="server" ControlToValidate="txtFechaFAdd" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="VGAdd"></asp:RequiredFieldValidator>
|
|
||||||
<asp:CompareValidator ID="cvFechaFAdd" runat="server" ControlToValidate="txtFechaFAdd" 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="ValidatorCalloutExtender3" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaFAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaFAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</div>
|
|
||||||
<%--
|
|
||||||
<div class="col-md-2" style ="padding-top: 14px;padding-left: 0px;">
|
|
||||||
<div class="input-group input-sm input-small date date-picker " style ="padding-left: 0px;" data-date-format="dd/mm/yyyy" >
|
|
||||||
<span class="input-group-btn ">
|
|
||||||
<asp:LinkButton ID="LnkFechaFAdd" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server" ValidationGroup="VGAdd"></asp:LinkButton>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>--%>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal-footer">
|
|
||||||
<asp:LinkButton ID="LnkSolicitarCFDI" CssClass="btn btn-primary" OnClick="LnkSolicitarCFDI_Click" runat="server">Solicitar SAT</asp:LinkButton>
|
|
||||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
</div>
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
||||||
<script>
|
|
||||||
function ADSBegin() {
|
|
||||||
$("#barradenavegacion").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
function CargaPickers() {
|
|
||||||
if ($.datetimepicker) {
|
|
||||||
$.datetimepicker.setLocale('es');
|
|
||||||
$('input.ADDateTimePicker').each(function () {
|
|
||||||
let TThis = $(this);
|
|
||||||
let datetimeButton = TThis.attr('datetimeButton')
|
|
||||||
TThis.datetimepicker({
|
|
||||||
dayOfWeekStart: 1,
|
|
||||||
lang: 'es',
|
|
||||||
format: 'd/m/Y H:i:s',
|
|
||||||
formatDate: 'd/m/Y H:i:s',
|
|
||||||
step: 30
|
|
||||||
});
|
|
||||||
if (datetimeButton && datetimeButton.length) {
|
|
||||||
let button = $(datetimeButton);
|
|
||||||
if (button && button.length) {
|
|
||||||
button.unbind("click");
|
|
||||||
button.bind("click", function () {
|
|
||||||
TThis.datetimepicker('show')
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
console.error('no se encontro el boton :' + datetimeButton)
|
|
||||||
}
|
|
||||||
} else//creoBoton
|
|
||||||
{
|
|
||||||
var Div = TThis.parent()
|
|
||||||
|
|
||||||
var boton = document.createElement('span');
|
|
||||||
boton.className = "input-group-btn"
|
|
||||||
|
|
||||||
var subboton = document.createElement('a')
|
|
||||||
subboton.className = "btn default"
|
|
||||||
subboton.innerHTML = "<i class='fa fa-calendar'></i>"
|
|
||||||
subboton.addEventListener('click', function () {
|
|
||||||
TThis.datetimepicker('show')
|
|
||||||
});
|
|
||||||
boton.appendChild(subboton)
|
|
||||||
|
|
||||||
var agregar = true;
|
|
||||||
for (var i = 0; i < Div[0].children.length; i++) {
|
|
||||||
if (Div[0].children[i].isEqualNode(boton)) {
|
|
||||||
agregar = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (agregar) {
|
|
||||||
//Div[0].appendChild(boton);
|
|
||||||
TThis.before(boton);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//Div[0].appendChild(boton)
|
|
||||||
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
console.error("caught TypeError: datetimepicker is undefined");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</asp:Content>
|
|
||||||
|
|
||||||
@@ -1,151 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Web;
|
|
||||||
using System.Web.UI;
|
|
||||||
using System.Web.UI.WebControls;
|
|
||||||
using Extensiones;
|
|
||||||
|
|
||||||
public partial class Ventas_SolicitudesSAT : ClsPaginas
|
|
||||||
{
|
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
|
|
||||||
if (!IsPostBack)
|
|
||||||
{
|
|
||||||
//this.RegistraScript("$('#ModalSolicitarSat').modal();");
|
|
||||||
int rtipo = Request["tipo"] == null ? -1 : Request["tipo"].ToString().ToEntero();
|
|
||||||
string rfIngInicio = Request["fIngInicio"] == null ? "" : Request["fIngInicio"].ToString().Trim();
|
|
||||||
string rfIngFin = Request["fIngFin"] == null ? "" : Request["fIngFin"].ToString().Trim();
|
|
||||||
string rfSolInicio = Request["fSolInicio"] == null ? "" : Request["fSolInicio"].ToString().Trim();
|
|
||||||
string rfSolFin = Request["fSolFin"] == null ? "" : Request["fSolFin"].ToString().Trim();
|
|
||||||
|
|
||||||
if (rfIngInicio == "")
|
|
||||||
{
|
|
||||||
rfIngInicio = string.Format("{0:01/MM/yyyy}",DateTime.Now);
|
|
||||||
}
|
|
||||||
if (rfIngFin == "")
|
|
||||||
{
|
|
||||||
rfIngFin = string.Format("{0:dd/MM/yyyy}",string.Format("{0:01/MM/yyyy}", DateTime.Now).ToDateTime().AddMonths(1).AddDays(-1));
|
|
||||||
|
|
||||||
}
|
|
||||||
DateTime dValor = DateTime.Now;
|
|
||||||
dValor = DateTime.Now; if (DateTime.TryParse(rfIngInicio, out dValor)) { rfIngInicio = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfIngInicio = ""; }
|
|
||||||
dValor = DateTime.Now; if (DateTime.TryParse(rfIngFin, out dValor)) { rfIngFin = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfIngFin = ""; }
|
|
||||||
dValor = DateTime.Now; if (DateTime.TryParse(rfSolInicio, out dValor)) { rfSolInicio = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfSolInicio = ""; }
|
|
||||||
dValor = DateTime.Now; if (DateTime.TryParse(rfSolFin, out dValor)) { rfSolFin = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfSolFin = ""; }
|
|
||||||
|
|
||||||
DdlTipo.SelectedValueExist(rtipo);
|
|
||||||
txtFechaI.Text = rfIngInicio;
|
|
||||||
txtFechaF.Text = rfIngFin;
|
|
||||||
txtFechaISol.Text = rfSolInicio;
|
|
||||||
txtFechaFSol.Text = rfSolFin;
|
|
||||||
cargarDatos();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private void cargarDatos()
|
|
||||||
{
|
|
||||||
int rtipo = DdlTipo.SelectedValue.ToEntero();
|
|
||||||
string rfIngInicio = txtFechaI.Text;
|
|
||||||
string rfIngFin = txtFechaF.Text;
|
|
||||||
string rfSolInicio = txtFechaISol.Text;
|
|
||||||
string rfSolFin = txtFechaFSol.Text;
|
|
||||||
using (ClsGenerales objgral = new ClsGenerales())
|
|
||||||
{
|
|
||||||
objgral.SAT_DescargaSolicitudesGET(UsuarioActual.CveEmpresa, rtipo, rfIngInicio, rfIngFin, rfSolInicio, rfSolFin);
|
|
||||||
GVSAT_DescargaSolicitudes.DataSource = objgral.DtResultados;
|
|
||||||
GVSAT_DescargaSolicitudes.DataBind();
|
|
||||||
}
|
|
||||||
upDatosSAT.Update();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
cargarDatos();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void LnkVerificarSolicitudes_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
string direxe = string.Format("{0}{1}", AppDomain.CurrentDomain.BaseDirectory, "Utilerias\\ADSUtilerias.exe");
|
|
||||||
|
|
||||||
String json = string.Format("{{cveTareaProgramada:{0},cveEmpresa:{1},CveTareaProgramadaHistorial:{2},recursividad:{3},Resultado:{4},parametros:'Tipo=SP'}}", 1, UsuarioActual.CveEmpresa, -1, 0, 1);//Mod.ToLiteral(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(tarea));
|
|
||||||
//this.Alert(string.Format("json:{0} : --mod TareaProgramada --Item {1}", DateTime.Now, json));
|
|
||||||
try
|
|
||||||
{
|
|
||||||
string Mensajes = "";
|
|
||||||
System.Diagnostics.Process ObjProcess = null;
|
|
||||||
{
|
|
||||||
ObjProcess = new System.Diagnostics.Process();
|
|
||||||
ObjProcess.StartInfo.RedirectStandardOutput = true;
|
|
||||||
ObjProcess.StartInfo.FileName = direxe;//System.Configuration.ConfigurationManager.AppSettings["DirUtilerias"].ToString();
|
|
||||||
ObjProcess.StartInfo.Arguments = $"--mod TareaProgramada --Item {json} ";
|
|
||||||
ObjProcess.StartInfo.UseShellExecute = false;
|
|
||||||
ObjProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
|
|
||||||
ObjProcess.Start();
|
|
||||||
}
|
|
||||||
using (System.IO.StreamReader myStreamReader = ObjProcess.StandardOutput)
|
|
||||||
{
|
|
||||||
Mensajes = myStreamReader.ReadLine();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
ex.ToString().GuardaLog();
|
|
||||||
}
|
|
||||||
cargarDatos();
|
|
||||||
Alert("La solicitud ha sido enviada");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void LnkSolicitarCFDI_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
string FechaI = string.Format("{0:yyyy-MM-dd}T00:00:00", txtFechaIAdd.Text.ToDateTime());
|
|
||||||
string FechaF = string.Format("{0:yyyy-MM-dd}T23:59:59", txtFechaFAdd.Text.ToDateTime());
|
|
||||||
|
|
||||||
string direxe = string.Format("{0}{1}", AppDomain.CurrentDomain.BaseDirectory, "Utilerias\\ADSUtilerias.exe");
|
|
||||||
|
|
||||||
String json = string.Format("{{cveTareaProgramada:{0},cveEmpresa:{1},CveTareaProgramadaHistorial:{2},recursividad:{3},Resultado:{4},parametros:'Tipo={5}&fechai={6}&fechaf={7}'}}", 1, UsuarioActual.CveEmpresa, -1, 0, 1, DdlTipoAdd.SelectedValue, FechaI, FechaF);//Mod.ToLiteral(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(tarea));
|
|
||||||
//this.Alert(string.Format("json:{0} : --mod TareaProgramada --Item {1}", DateTime.Now, json));
|
|
||||||
try
|
|
||||||
{
|
|
||||||
string Mensajes = "";
|
|
||||||
System.Diagnostics.Process ObjProcess = null;
|
|
||||||
{
|
|
||||||
ObjProcess = new System.Diagnostics.Process();
|
|
||||||
ObjProcess.StartInfo.RedirectStandardOutput = true;
|
|
||||||
ObjProcess.StartInfo.FileName = direxe;//System.Configuration.ConfigurationManager.AppSettings["DirUtilerias"].ToString();
|
|
||||||
ObjProcess.StartInfo.Arguments = $"--mod TareaProgramada --Item {json} ";
|
|
||||||
ObjProcess.StartInfo.UseShellExecute = false;
|
|
||||||
ObjProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
|
|
||||||
ObjProcess.Start();
|
|
||||||
}
|
|
||||||
using (System.IO.StreamReader myStreamReader = ObjProcess.StandardOutput)
|
|
||||||
{
|
|
||||||
Mensajes = myStreamReader.ReadLine();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
ex.ToString().GuardaLog();
|
|
||||||
}
|
|
||||||
cargarDatos();
|
|
||||||
Alert("La solicitud ha sido enviada");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void LnknoCFDI_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
GridViewRow gvrow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
|
||||||
int CveSolicitudSat = gvrow.DataKey("CveSolicitudSat").ToEntero();
|
|
||||||
using (ClsGenerales objgeneral = new ClsGenerales())
|
|
||||||
{
|
|
||||||
objgeneral.SAT_DescargaSolicitudeUUIDSGET(CveSolicitudSat);
|
|
||||||
GVFoliosSAT.DataSource = objgeneral.DtResultados;
|
|
||||||
}
|
|
||||||
GVFoliosSAT.DataBind();
|
|
||||||
RegistraScript("$('#ModalFoliosSolicitud').modal();");
|
|
||||||
UpFoliosSAT.Update();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user