Merge branch 'master' of http://oirigoyen@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -93,12 +93,23 @@
|
|||||||
<table><tr><td>ISPT</td>
|
<table><tr><td>ISPT</td>
|
||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtISPT" runat="server" Width="75px"></asp:TextBox></td>
|
<asp:TextBox ID="TxtISPT" runat="server" Width="75px"></asp:TextBox></td>
|
||||||
|
<td>Servicio Médico:</td><td><asp:TextBox ID="TxtServicioMedico" runat="server" Width="75px"></asp:TextBox></td>
|
||||||
|
<td>Fonacot:</td><td><asp:TextBox ID="TxtFonacot" runat="server" Width="75px"></asp:TextBox></td>
|
||||||
</tr><tr> <td>Crédito al Salario</td>
|
</tr><tr> <td>Crédito al Salario</td>
|
||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtCredSalario" runat="server" Width="75px"></asp:TextBox></td>
|
<asp:TextBox ID="TxtCredSalario" runat="server" Width="75px"></asp:TextBox></td>
|
||||||
|
<td>Pensión:</td><td><asp:TextBox ID="TxtPension" runat="server" Width="75px"></asp:TextBox></td>
|
||||||
|
<td>P. Infonavit:</td><td><asp:TextBox ID="TxtInfonavit" runat="server" Width="75px"></asp:TextBox></td>
|
||||||
|
</tr>
|
||||||
|
</tr><tr>
|
||||||
|
<td>ISR Asimilados</td><td> <asp:TextBox ID="TxtISRAsimilados" runat="server" Width="75px"></asp:TextBox></td>
|
||||||
|
<td>C. Sindical</td>
|
||||||
|
<td>
|
||||||
|
<asp:TextBox ID="TxtSindical" runat="server" Width="75px"></asp:TextBox></td>
|
||||||
|
|
||||||
</tr></table>
|
<td> </td><td> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
<asp:Panel ID="PnlFiniquito" runat="server" Visible="true">
|
<asp:Panel ID="PnlFiniquito" runat="server" Visible="true">
|
||||||
<table border="0" id="TbIEPersonal" runat="server" Visible="false" >
|
<table border="0" id="TbIEPersonal" runat="server" Visible="false" >
|
||||||
|
|||||||
@@ -373,6 +373,12 @@ Partial Class AC_RegNomina
|
|||||||
Dim IdCtaCreditoSalario As Integer = 635
|
Dim IdCtaCreditoSalario As Integer = 635
|
||||||
Dim IdCtaDevolucionISPT As Integer = 1745
|
Dim IdCtaDevolucionISPT As Integer = 1745
|
||||||
Dim IdCtaMatriz As Integer
|
Dim IdCtaMatriz As Integer
|
||||||
|
Dim IdCtaCuotaSindical As Integer = 644
|
||||||
|
Dim IdCtaInfonavit As Integer = 2018
|
||||||
|
Dim IdCtaFonacot As Integer = 646
|
||||||
|
Dim IdCtaServicioMedico As Integer = 643
|
||||||
|
Dim IdCtaPension As Integer = 643
|
||||||
|
Dim IdCtaISRAsimilados As Integer = 4442
|
||||||
|
|
||||||
Dim Importe As Double
|
Dim Importe As Double
|
||||||
Dim MsgError As String = ""
|
Dim MsgError As String = ""
|
||||||
@@ -564,6 +570,7 @@ Partial Class AC_RegNomina
|
|||||||
|
|
||||||
ObjIE.UpdateIEPrePoliza(Fecha, objAC.Folio.ToString, IDPoliza, CvePrePoliza, CveIE, -1)
|
ObjIE.UpdateIEPrePoliza(Fecha, objAC.Folio.ToString, IDPoliza, CvePrePoliza, CveIE, -1)
|
||||||
Else
|
Else
|
||||||
|
MsgError = "no se pudo agregar el movimiento bancario"
|
||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -586,9 +593,34 @@ Partial Class AC_RegNomina
|
|||||||
If Importe > 0 AndAlso Not objAC.AddMovimiento(IDPoliza, IdCtaCreditoSalario, False, Importe, "", Concepto, 0, Fecha, "") Then TieneError = True
|
If Importe > 0 AndAlso Not objAC.AddMovimiento(IDPoliza, IdCtaCreditoSalario, False, Importe, "", Concepto, 0, Fecha, "") Then TieneError = True
|
||||||
|
|
||||||
|
|
||||||
'Registro del Mov Devolución
|
'Registro Cuotas Sindicales
|
||||||
Importe = TxtISPT.Text.ToDouble - TxtCredSalario.Text.ToDouble
|
Importe = TxtSindical.Text.ToDouble
|
||||||
If Importe <> 0 AndAlso Not objAC.AddMovimiento(IDPoliza, IdCtaDevolucionISPT, If(Importe > 0, False, True), Math.Abs(Importe), "", Concepto, 0, Fecha, "") Then TieneError = True
|
If Importe > 0 AndAlso Not objAC.AddMovimiento(IDPoliza, IdCtaCuotaSindical, True, Importe, "", Concepto, 0, Fecha, "") Then TieneError = True
|
||||||
|
|
||||||
|
'Registro Prestamo infonavit
|
||||||
|
Importe = txtInfonavit.Text.ToDouble
|
||||||
|
If Importe > 0 AndAlso Not objAC.AddMovimiento(IDPoliza, IdCtaInfonavit, True, Importe, "", Concepto, 0, Fecha, "") Then TieneError = True
|
||||||
|
|
||||||
|
'Registro Fonacot
|
||||||
|
Importe = txtFonacot.Text.ToDouble
|
||||||
|
If Importe > 0 AndAlso Not objAC.AddMovimiento(IDPoliza, IdCtaFonacot, True, Importe, "", Concepto, 0, Fecha, "") Then TieneError = True
|
||||||
|
|
||||||
|
'Registro Servicio Medico
|
||||||
|
Importe = txtServicioMedico.Text.ToDouble
|
||||||
|
If Importe > 0 AndAlso Not objAC.AddMovimiento(IDPoliza, IdCtaServicioMedico, True, Importe, "", Concepto, 0, Fecha, "") Then TieneError = True
|
||||||
|
|
||||||
|
'Registro Pensión
|
||||||
|
Importe = txtPension.Text.ToDouble
|
||||||
|
If Importe > 0 AndAlso Not objAC.AddMovimiento(IDPoliza, IdCtaPension, True, Importe, "", Concepto, 0, Fecha, "") Then TieneError = True
|
||||||
|
|
||||||
|
'Registro ISR Asimilados
|
||||||
|
Importe = TxtISRAsimilados.Text.ToDouble
|
||||||
|
If Importe > 0 AndAlso Not objAC.AddMovimiento(IDPoliza, IdCtaISRAsimilados, True, Importe, "", Concepto, 0, Fecha, "") Then TieneError = True
|
||||||
|
|
||||||
|
|
||||||
|
''Registro del Mov Devolución
|
||||||
|
'Importe = TxtISPT.Text.ToDouble - TxtCredSalario.Text.ToDouble
|
||||||
|
'If Importe <> 0 AndAlso Not objAC.AddMovimiento(IDPoliza, IdCtaDevolucionISPT, If(Importe > 0, False, True), Math.Abs(Importe), "", Concepto, 0, Fecha, "") Then TieneError = True
|
||||||
|
|
||||||
Else
|
Else
|
||||||
TieneError = True
|
TieneError = True
|
||||||
|
|||||||
@@ -369,7 +369,7 @@
|
|||||||
<asp:UpdatePanel ID="UPCompras" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPCompras" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvCxP" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Cuentas X Pagar Pendientes"
|
<asp:GridView ID="GvCxP" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Cuentas X Pagar Pendientes"
|
||||||
DataKeyNames="CveCompra,ImporteProgramo,Saldo,SubTotal,IVA,IVADeducible,IVANoDeducible,IEPS,RetIVA,RetISR,Original,UUID,RFC,CveFactura,SerieFolio,Descripcion,CvePrePoliza,Fecha,EstatusInventario,CveProveedor,TipoCambio, CveMoneda,CveRetIVAConcepto,IVAPorPagar,IVAPorPagarDeducible,IVAPorPagarNoDeducible,IEPSPorPagar,CveRetISRConcepto,PorcentajeIVA,CveTipoConcepto,CveSubProyecto,TotalOriginal"
|
DataKeyNames="CveCompra,ImporteProgramo,Saldo,SubTotal,IVA,IVADeducible,IVANoDeducible,IEPS,RetIVA,RetISR,Original,UUID,RFC,CveFactura,SerieFolio,Descripcion,CvePrePoliza,Fecha,EstatusInventario,CveProveedor,TipoCambio, CveMoneda,CveRetIVAConcepto,IVAPorPagar,IVAPorPagarDeducible,IVAPorPagarNoDeducible,IEPSPorPagar,CveRetISRConcepto,PorcentajeIVA,CveTipoConcepto,CveSubProyecto,TotalOriginal,EsImportacion"
|
||||||
Width="100%" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" Style="text-align: center;" GridLines="None">
|
Width="100%" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" Style="text-align: center;" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
|
|||||||
@@ -1043,21 +1043,17 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
Dim PorcentajeImpuesto As Decimal = 0
|
Dim PorcentajeImpuesto As Decimal = 0
|
||||||
|
|
||||||
If ConceptoContable.Contiene(14, 19) AndAlso gvr.DataKey("CveCompra").ToEntero > 0 Then
|
If ConceptoContable.Contiene(14, 19) AndAlso gvr.DataKey("CveCompra").ToEntero > 0 Then
|
||||||
Dim objcompras As New ClsCompras
|
|
||||||
objcompras.GetCompras(gvr.DataKey("CveCompra").ToEntero, "-1", "-1", -1, -1, UsuarioActual.CveEmpresa)
|
If UsuarioActual.Empresa.Funcionalidad(558) = "1" Then
|
||||||
If objcompras.DtResultados IsNot Nothing AndAlso objcompras.DtResultados.Rows.Count > 0 Then
|
If gvr.DataKey("EsImportacion").ToString = "1" Then
|
||||||
Dim dr As DataRow = objcompras.DtResultados.Rows(0)
|
EsImportacion = True
|
||||||
If UsuarioActual.Empresa.Funcionalidad(558) = "1" Then
|
If ConceptoContable = 14 Then
|
||||||
If dr("EsImportacion").ToString = "True" Then
|
ConceptoContable = 287
|
||||||
EsImportacion = True
|
|
||||||
If ConceptoContable = 14 Then
|
|
||||||
ConceptoContable = 287
|
|
||||||
Else
|
|
||||||
ConceptoContable = 288
|
|
||||||
End If
|
|
||||||
Else
|
Else
|
||||||
EsImportacion = False
|
ConceptoContable = 288
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
EsImportacion = False
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -2656,10 +2652,12 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
'cuando es cheque
|
'cuando es cheque
|
||||||
If DdlTipoTransaccion.SelectedValue = "1" Then
|
If DdlTipoTransaccion.SelectedValue = "1" Then
|
||||||
ChkAbonoCuenta.Visible = True
|
ChkAbonoCuenta.Visible = True
|
||||||
|
TxtPagueseA.Enabled = True
|
||||||
|
|
||||||
Else
|
Else
|
||||||
ChkAbonoCuenta.Visible = False
|
ChkAbonoCuenta.Visible = False
|
||||||
|
TxtPagueseA.Enabled = False
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DdlTipoTransaccion.SelectedValue.ToEntero.Contiene(9, 17) Then
|
If DdlTipoTransaccion.SelectedValue.ToEntero.Contiene(9, 17) Then
|
||||||
|
|||||||
@@ -202,7 +202,6 @@ Partial Class ContabilidadC_RegPrePoliza
|
|||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
|
|
||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
Tick = DateTime.Now.Ticks.ToString
|
|
||||||
|
|
||||||
If UsuarioActual.Empresa.TipoContabilizacion = 1 OrElse UsuarioActual.Empresa.TipoContabilidad = 1 Then
|
If UsuarioActual.Empresa.TipoContabilizacion = 1 OrElse UsuarioActual.Empresa.TipoContabilidad = 1 Then
|
||||||
Response.Redirect(Request.Url.PathAndQuery.Replace("RegPrePoliza", "RegPrePolizaS"))
|
Response.Redirect(Request.Url.PathAndQuery.Replace("RegPrePoliza", "RegPrePolizaS"))
|
||||||
@@ -849,7 +848,10 @@ Partial Class ContabilidadC_RegPrePoliza
|
|||||||
dr("MultipleSubProyecto") = drt("MultipleSubProyecto")
|
dr("MultipleSubProyecto") = drt("MultipleSubProyecto")
|
||||||
dr("PorcentajeImpuesto") = drt("PorcentajeImpuesto")
|
dr("PorcentajeImpuesto") = drt("PorcentajeImpuesto")
|
||||||
dr("CveCuenta") = drt("CveCuenta")
|
dr("CveCuenta") = drt("CveCuenta")
|
||||||
dr("FolioPoliza") = drt("FolioPoliza")
|
If CvePrePoliza > 0 Then
|
||||||
|
dr("FolioPoliza") = drt("FolioPoliza")
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
DtMovimientos.Rows.Add(dr)
|
DtMovimientos.Rows.Add(dr)
|
||||||
|
|
||||||
@@ -1775,6 +1777,7 @@ Partial Class ContabilidadC_RegPrePoliza
|
|||||||
Dim ObjIE As New ClsBancos()
|
Dim ObjIE As New ClsBancos()
|
||||||
Dim pathPoliza As String = ""
|
Dim pathPoliza As String = ""
|
||||||
Dim TieneComprobante As Boolean
|
Dim TieneComprobante As Boolean
|
||||||
|
Tick = DateTime.Now.Ticks.ToString
|
||||||
|
|
||||||
Try
|
Try
|
||||||
TieneComprobante = VerificarComprobante()
|
TieneComprobante = VerificarComprobante()
|
||||||
@@ -1856,20 +1859,18 @@ Partial Class ContabilidadC_RegPrePoliza
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
MergePdfFiles(Pathpdf.ToArray)
|
MergePdfFiles(Pathpdf.ToArray)
|
||||||
If File.Exists(pathPoliza) Then
|
|
||||||
Directory.Delete(String.Format("{0}{1}", AppDomain.CurrentDomain.BaseDirectory, Tick), True)
|
|
||||||
End If
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Alert("No se tiene cargado comprobante de pago", TipoMensaje.MsgAdvertencia)
|
Alert("No se tiene cargado comprobante de pago", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Alert("Error al descargar el paquete", TipoMensaje.MsgError)
|
Alert("Error al descargar el paquete", TipoMensaje.MsgError)
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
|
If Directory.Exists(String.Format("{0}/{1}", AppDomain.CurrentDomain.BaseDirectory, Tick)) Then
|
||||||
|
Directory.Delete(String.Format("{0}/{1}", AppDomain.CurrentDomain.BaseDirectory, Tick), True)
|
||||||
|
End If
|
||||||
ObjCompra.Dispose()
|
ObjCompra.Dispose()
|
||||||
ObjIE.Dispose()
|
ObjIE.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -2037,6 +2037,9 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
If UsuarioActual.CveEmpresa = 119 Then
|
If UsuarioActual.CveEmpresa = 119 Then
|
||||||
params.Add(New ReportParameter("UsuarioRegistro", GlobalDTUsuarios(dr("CveUsuario").ToString.ToEntero).FiltroPrimeroValor("Nombre")))
|
params.Add(New ReportParameter("UsuarioRegistro", GlobalDTUsuarios(dr("CveUsuario").ToString.ToEntero).FiltroPrimeroValor("Nombre")))
|
||||||
End If
|
End If
|
||||||
|
If UsuarioActual.CveEmpresa = 140 Then
|
||||||
|
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||||
|
End If
|
||||||
If Archivo.Exists Then
|
If Archivo.Exists Then
|
||||||
ruta = UsuarioActual.Empresa.Ruta & "Formatos/Polizas.rdlc"
|
ruta = UsuarioActual.Empresa.Ruta & "Formatos/Polizas.rdlc"
|
||||||
Else
|
Else
|
||||||
|
|||||||
@@ -116,6 +116,10 @@ Partial Class AC_RepEstadoActividades
|
|||||||
DdlEjercicio.Items.Add(New ListItem(Now.Year.ToString, Now.Year.ToString))
|
DdlEjercicio.Items.Add(New ListItem(Now.Year.ToString, Now.Year.ToString))
|
||||||
End If
|
End If
|
||||||
DdlPeriodo.SelectedValue = Now.Month.ToString
|
DdlPeriodo.SelectedValue = Now.Month.ToString
|
||||||
|
|
||||||
|
DdlSubproyecto.datasource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa)
|
||||||
|
DdlSubproyecto.databind
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
|
|||||||
@@ -434,13 +434,14 @@
|
|||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<%--<asp:HyperLinkField HeaderText="Folio" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" ControlStyle-Width ="85px" DataTextField="SerieFolio" />--%>
|
<%--<asp:HyperLinkField HeaderText="Folio" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" ControlStyle-Width ="85px" DataTextField="SerieFolio" />--%>
|
||||||
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
||||||
<asp:BoundField HeaderText="SubTotal" DataField="SubTotal" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="SubTotal" DataField="SubTotal" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
|
||||||
<asp:BoundField HeaderText="Descuento" DataField="Descuento" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Descuento" DataField="Descuento" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Amortizacion" DataField="Amortizacion" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Amortizacion" DataField="Amortizacion" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="RetIVA" DataField="RetIVA" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="RetIVA" DataField="RetIVA" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="RetISR" DataField="RetISR" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="RetISR" DataField="RetISR" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Saldo" DataField="Saldo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Saldo" DataField="Saldo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Mon" DataField="Moneda"/>
|
<asp:BoundField HeaderText="Mon" DataField="Moneda"/>
|
||||||
<asp:BoundField HeaderText="Sucursal Venta" DataField="SubProyecto" DataFormatString="{0}" />
|
<asp:BoundField HeaderText="Sucursal Venta" DataField="SubProyecto" DataFormatString="{0}" />
|
||||||
@@ -506,8 +507,7 @@
|
|||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkFolio" runat="server" Text=" Folio" Checked="true" /></td>
|
<asp:CheckBox ID="ChkFolio" runat="server" Text=" Folio" Checked="true" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkSubTotal" runat="server" Text=" SubTotal" /></td>
|
<asp:CheckBox ID="ChkFecha" runat="server" Text=" Fecha" Checked="true" /></td>
|
||||||
|
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkSeEnvioMail" runat="server" Text=" Se envió Mail" /></td>
|
<asp:CheckBox ID="ChkSeEnvioMail" runat="server" Text=" Se envió Mail" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
@@ -515,7 +515,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkDescuento" runat="server" Text=" Descuento" /></td>
|
<asp:CheckBox ID="ChkSubTotal" runat="server" Text=" SubTotal" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChlMotivoDescuento" runat="server" Text=" Motivo Descuento" /></td>
|
<asp:CheckBox ID="ChlMotivoDescuento" runat="server" Text=" Motivo Descuento" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
@@ -525,9 +525,10 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkAmortizacion" runat="server" Text=" Amortización" /></td>
|
<asp:CheckBox ID="ChkDescuento" runat="server" Text=" Descuento" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkIVA" runat="server" Text=" IVA" Checked="true" /></td>
|
<asp:CheckBox ID="ChkVendedor" runat="server" Text=" Vendedor" Checked="false" /></td>
|
||||||
|
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkSucursalEjecucion" runat="server" Text=" Sucursal Ejecucion" /></td>
|
<asp:CheckBox ID="ChkSucursalEjecucion" runat="server" Text=" Sucursal Ejecucion" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
@@ -535,9 +536,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkRetIVA" runat="server" Text=" Ret. IVA" /></td>
|
<asp:CheckBox ID="ChkAmortizacion" runat="server" Text=" Amortización" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkRetISR" runat="server" Text=" Ret. ISR" /></td>
|
<asp:CheckBox ID="ChkSucursal" runat="server" Text=" Sucursal" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkTelefono" runat="server" Text=" Telefono" /></td>
|
<asp:CheckBox ID="ChkTelefono" runat="server" Text=" Telefono" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
@@ -545,9 +546,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkTotal" runat="server" Text=" Total" Checked="true" /></td>
|
<asp:CheckBox ID="ChkIVA" runat="server" Text=" IVA" Checked="true" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkFecha" runat="server" Text=" Fecha" Checked="true" /></td>
|
<asp:CheckBox ID="ChkCodigo" runat="server" Text=" Código Cliente" Checked="true" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkLimiteCredito" runat="server" Text=" Limite Credito" /></td>
|
<asp:CheckBox ID="ChkLimiteCredito" runat="server" Text=" Limite Credito" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
@@ -555,57 +556,57 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkSucursal" runat="server" Text=" Sucursal" /></td>
|
<asp:CheckBox ID="ChkRetIVA" runat="server" Text=" Ret. IVA" /></td>
|
||||||
|
<td style="text-align: left;">
|
||||||
|
<asp:CheckBox ID="ChkCliente" runat="server" Text=" Cliente" Checked="true" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkCodigo" runat="server" Text=" Código Cliente" Checked="true" /></td>
|
|
||||||
<td>
|
|
||||||
<asp:CheckBox ID="ChkIEPS" runat="server" Text=" IEPS" /></td>
|
<asp:CheckBox ID="ChkIEPS" runat="server" Text=" IEPS" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkEstatusCliente" runat="server" Text=" Estatus Cliente" /></td>
|
<asp:CheckBox ID="ChkEstatusCliente" runat="server" Text=" Estatus Cliente" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkCliente" runat="server" Text=" Cliente" Checked="true" /></td>
|
<asp:CheckBox ID="ChkRetISR" runat="server" Text=" Ret. ISR" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkSucursalCliente" runat="server" Text=" Sucursal Cliente" Checked="true" /></td>
|
<asp:CheckBox ID="ChkSucursalCliente" runat="server" Text=" Sucursal Cliente" Checked="true" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkEstatusCobranza" runat="server" Text=" Estatus Cobranza" />
|
<asp:CheckBox ID="ChkEstatusCobranza" runat="server" Text=" Estatus Cobranza" /></td>
|
||||||
</td>
|
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkTurnoCobranza" runat="server" Text=" TurnoCobranza" />
|
<asp:CheckBox ID="ChkTurnoCobranza" runat="server" Text=" TurnoCobranza" /></td>
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkVendedor" runat="server" Text=" Vendedor" Checked="false" /></td>
|
<asp:CheckBox ID="ChkTotal" runat="server" Text=" Total" Checked="true" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkEstatusFactura" runat="server" Text=" Estatus de Factura" /></td>
|
<asp:CheckBox ID="ChkEstatusFactura" runat="server" Text=" Estatus de Factura" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkObsCobranza" runat="server" Text=" Observación Cobranza" />
|
<asp:CheckBox ID="ChkObsCobranza" runat="server" Text=" Observación Cobranza" /></td>
|
||||||
</td>
|
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkCuentaContableReferencia" runat="server" Text=" CuentaContableReferencia" Visible="False" /></td>
|
<asp:CheckBox ID="ChkCuentaContableReferencia" runat="server" Text=" CuentaContableReferencia" Visible="False" /></td>
|
||||||
<td></td>
|
<td style="text-align: left;">
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkMotivoCancelacion" runat="server" Text=" Motivo Cancelacion" /></td>
|
<asp:CheckBox ID="ChkMotivoCancelacion" runat="server" Text=" Motivo Cancelacion" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkSeTimbro" runat="server" Text=" Se Timbró" /></td>
|
<asp:CheckBox ID="ChkSeTimbro" runat="server" Text=" Se Timbró" /></td>
|
||||||
<td>
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkFechaCobranza" runat="server" Text=" Fecha Cobranza" Checked="true" /></td>
|
<asp:CheckBox ID="ChkFechaCobranza" runat="server" Text=" Fecha Cobranza" Checked="true" /> </td>
|
||||||
<td> <asp:CheckBox ID="ChkDiasTranscurridos" runat="server" Text=" Días Transcurridos" /></td>
|
<td style="text-align: left;">
|
||||||
|
<asp:CheckBox ID="ChkDiasTranscurridos" runat="server" Text=" Días Transcurridos" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkHorario" runat="server" Text=" Horario" Checked="false" /></td>
|
<asp:CheckBox ID="ChkHorario" runat="server" Text=" Horario" Checked="false" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkDiasPago" runat="server" Text=" Dias Pago" /></td>
|
<asp:CheckBox ID="ChkDiasPago" runat="server" Text=" Dias Pago" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkFechaEjecucion" runat="server" Text=" Fecha Ejecución" /></td>
|
<asp:CheckBox ID="ChkFechaEjecucion" runat="server" Text=" Fecha Ejecución" /></td>
|
||||||
|
<td style="text-align: left;">
|
||||||
|
<asp:CheckBox ID="ChkTC" runat="server" Text=" Tipo Cambio" /></td>
|
||||||
|
|
||||||
|
|
||||||
<td> <asp:CheckBox ID="ChkTC" runat="server" Text=" Tipo Cambio" /></td>
|
|
||||||
<td></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -534,47 +534,47 @@ Partial Class RepCxCDetalle
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkTotal.Checked Then
|
If ChkTotal.Checked Then
|
||||||
|
GvDatos.Columns(9).Visible = True
|
||||||
|
SePersonalizo = 1
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(9).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ChkSubTotal.Checked Then
|
||||||
GvDatos.Columns(3).Visible = True
|
GvDatos.Columns(3).Visible = True
|
||||||
SePersonalizo = 1
|
SePersonalizo = 1
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(3).Visible = False
|
GvDatos.Columns(3).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkSubTotal.Checked Then
|
|
||||||
GvDatos.Columns(4).Visible = True
|
|
||||||
SePersonalizo = 1
|
|
||||||
Else
|
|
||||||
GvDatos.Columns(4).Visible = False
|
|
||||||
End If
|
|
||||||
|
|
||||||
If ChkIVA.Checked Then
|
If ChkIVA.Checked Then
|
||||||
GvDatos.Columns(5).Visible = True
|
|
||||||
SePersonalizo = 1
|
|
||||||
Else
|
|
||||||
GvDatos.Columns(5).Visible = False
|
|
||||||
End If
|
|
||||||
|
|
||||||
If ChkDescuento.Checked Then
|
|
||||||
GvDatos.Columns(6).Visible = True
|
GvDatos.Columns(6).Visible = True
|
||||||
SePersonalizo = 1
|
SePersonalizo = 1
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(6).Visible = False
|
GvDatos.Columns(6).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If ChkDescuento.Checked Then
|
||||||
|
GvDatos.Columns(4).Visible = True
|
||||||
|
SePersonalizo = 1
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(4).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
If ChkAmortizacion.Checked Then
|
If ChkAmortizacion.Checked Then
|
||||||
|
GvDatos.Columns(5).Visible = True
|
||||||
|
SePersonalizo = 1
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(5).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ChkRetIVA.Checked Then
|
||||||
GvDatos.Columns(7).Visible = True
|
GvDatos.Columns(7).Visible = True
|
||||||
SePersonalizo = 1
|
SePersonalizo = 1
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(7).Visible = False
|
GvDatos.Columns(7).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkRetIVA.Checked Then
|
|
||||||
GvDatos.Columns(8).Visible = True
|
|
||||||
SePersonalizo = 1
|
|
||||||
Else
|
|
||||||
GvDatos.Columns(8).Visible = False
|
|
||||||
End If
|
|
||||||
|
|
||||||
If ChkRetISR.Checked Then
|
If ChkRetISR.Checked Then
|
||||||
GvDatos.Columns(9).Visible = True
|
GvDatos.Columns(9).Visible = True
|
||||||
SePersonalizo = 1
|
SePersonalizo = 1
|
||||||
|
|||||||
2255
Empresas/140/Formatos/Polizas.rdlc
Normal file
2255
Empresas/140/Formatos/Polizas.rdlc
Normal file
File diff suppressed because it is too large
Load Diff
@@ -13,7 +13,7 @@ Partial Class Inventarios_AjustesSeccionAlmacen
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaCombos()
|
Private Sub CargaCombos()
|
||||||
Dim DtAlmacenes As DataTable = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1).FiltraParametros("CveTipoAlmacen in (1,12,14,16, 26)")
|
Dim DtAlmacenes As DataTable = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoAlmacen:=-1).FiltraParametros("CveTipoAlmacen in (1,2,12,14,16, 26)")
|
||||||
|
|
||||||
DdlAlmacen.DataSource = DtAlmacenes
|
DdlAlmacen.DataSource = DtAlmacenes
|
||||||
DdlAlmacen.DataBind()
|
DdlAlmacen.DataBind()
|
||||||
|
|||||||
@@ -25,12 +25,9 @@
|
|||||||
<asp:LinkButton ID="LnkCambiarFecha" OnClick="LnkCambiarFecha_Click" runat="server"> <i class="fa fa-calendar" style="font-weight:bold;"></i> Cambiar Fechas</asp:LinkButton>
|
<asp:LinkButton ID="LnkCambiarFecha" OnClick="LnkCambiarFecha_Click" runat="server"> <i class="fa fa-calendar" style="font-weight:bold;"></i> Cambiar Fechas</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkGuardar" runat="server" Visible="false" data-toggle="modal" data-target="#ModalUpload"> <i class="fa fa-floppy-o" style="font-weight:bold;"></i> Guardar</asp:LinkButton>
|
<asp:LinkButton ID="LnkGuardar" runat="server" Visible="false" OnClick="LnkGuardar_Click"> <i class="fa fa-floppy-o" style="font-weight:bold;"></i> Guardar</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
<Triggers>
|
|
||||||
<asp:PostBackTrigger ControlID="LnkGuardar" />
|
|
||||||
</Triggers>
|
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" Runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" Runat="Server">
|
||||||
@@ -172,7 +169,7 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
<div id="ModalUpload" class="modal ADS fade" role="dialog">
|
<div id="ModalUpload" class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog modal-sm">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header ">
|
<div class="modal-header ">
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
@@ -186,12 +183,12 @@
|
|||||||
<div class="col-md-4"> </div>
|
<div class="col-md-4"> </div>
|
||||||
<div class="form-group col-md-6 form-md-line-input input-iconright" style="padding-left: 0px !important;">
|
<div class="form-group col-md-6 form-md-line-input input-iconright" style="padding-left: 0px !important;">
|
||||||
<div class="input-group input-sm dater" data-date-format="dd/mm/yyyy" style="width: 50%;">
|
<div class="input-group input-sm dater" data-date-format="dd/mm/yyyy" style="width: 50%;">
|
||||||
|
|
||||||
|
<asp:TextBox ID="txtFechaActualizar" ClientIDMode="Static" runat="server" Width="100%" CssClass="form-control input-sm" CausesValidation="true" MaxLength="18"></asp:TextBox>
|
||||||
|
<label style=" padding-bottom: 30px; width: 70%;" for="<%= txtFechaActualizar.ClientID.ToString()%>">Fecha:</label>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="btnFechaActualizar" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="btnFechaActualizar" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
<asp:TextBox ID="txtFechaActualizar" ClientIDMode="Static" runat="server" Width="100%" CssClass="form-control input-sm" CausesValidation="true" MaxLength="18"></asp:TextBox>
|
|
||||||
<label style=" padding-bottom: 30px; width: 70%;" for="<%= txtFechaActualizar.ClientID.ToString()%>">Fecha:</label>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<asp:RequiredFieldValidator ID="RFVFechaInicioAdd" Display="None" CssClass="help-block errorimput" runat="server" ControlToValidate="txtFechaActualizar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR</span></b>:<br>El campo <b>''Fecha''</b> es necesario." ValidationGroup="Actualiza"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVFechaInicioAdd" Display="None" CssClass="help-block errorimput" runat="server" ControlToValidate="txtFechaActualizar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR</span></b>:<br>El campo <b>''Fecha''</b> es necesario." ValidationGroup="Actualiza"></asp:RequiredFieldValidator>
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaActualiar" runat="server" TargetControlID="txtFechaActualizar" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<ajax:MaskedEditExtender ID="MEEFechaActualiar" runat="server" TargetControlID="txtFechaActualizar" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
|||||||
@@ -158,14 +158,17 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas
|
|||||||
GvSolicitudes.Columns[0].Visible = true;
|
GvSolicitudes.Columns[0].Visible = true;
|
||||||
LnkGuardar.Visible = true;
|
LnkGuardar.Visible = true;
|
||||||
LnkCambiarFecha.Visible = false;
|
LnkCambiarFecha.Visible = false;
|
||||||
|
|
||||||
UPAcciones.Update();
|
UPAcciones.Update();
|
||||||
UPDatos.Update();
|
UPDatos.Update();
|
||||||
}
|
}
|
||||||
|
protected void LnkGuardar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
RegistraScript("$('#ModalUpload').modal('show')");
|
||||||
|
}
|
||||||
protected void BtnGuardarArchivo_Click(object sender, EventArgs e)
|
protected void BtnGuardarArchivo_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ActualizarFechas();
|
ActualizarFechas();
|
||||||
RegistraScript("$('#ModalUpload').modal('hide')", "hidemodal1");
|
RegistraScript("$('#ModalUpload').modal('hide')");
|
||||||
GvSolicitudes.Columns[0].Visible = false;
|
GvSolicitudes.Columns[0].Visible = false;
|
||||||
LnkGuardar.Visible = false;
|
LnkGuardar.Visible = false;
|
||||||
LnkCambiarFecha.Visible = true;
|
LnkCambiarFecha.Visible = true;
|
||||||
@@ -195,14 +198,12 @@ public partial class OC_RepSolicitudesAnticipo : ClsPaginas
|
|||||||
{
|
{
|
||||||
TieneError = true;
|
TieneError = true;
|
||||||
Alert("Ocurrio un error al actulizar las fechas", TipoMensaje.MsgError);
|
Alert("Ocurrio un error al actulizar las fechas", TipoMensaje.MsgError);
|
||||||
ObjEvento.RollBack();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (TieneError == false) {
|
if (TieneError == false) {
|
||||||
ObjEvento.Commit();
|
|
||||||
Alert("Las Fechas se actualizaron correctamente");
|
Alert("Las Fechas se actualizaron correctamente");
|
||||||
}
|
}
|
||||||
ObjEvento.Dispose();
|
ObjEvento.Dispose();
|
||||||
|
|||||||
Reference in New Issue
Block a user