Merge branch 'master' of http://oirigoyen@192.168.10.111:8383/SIG.git
This commit is contained in:
50
AF/AF.aspx
50
AF/AF.aspx
@@ -1362,7 +1362,55 @@
|
||||
</asp:UpdatePanel>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
|
||||
<ajax:TabPanel ID="TabOrdenesdeServicio" Visible="false" runat="server" HeaderText="Ordenes de Servicio">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:GridView ID="GVOrdenesdeServicio" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False" data-height="400">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Folio">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Folio")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Fecha", "{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Obra">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Obra")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Tipo de Servicio">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("TipodeServicio")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Servicio">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Servicio")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Estatus">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Estatus")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Duración">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Duracion")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Atendió">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Atendio")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TabGPS" HeaderText="GPS" runat="server" Visible="false">
|
||||
<ContentTemplate>
|
||||
<ajax:TabContainer ID="TabGPSContenido" runat="server" Width="100%">
|
||||
|
||||
@@ -280,8 +280,64 @@ Partial Class AF_AF
|
||||
End If
|
||||
|
||||
CargaAFInv()
|
||||
cargaOrdenesdeservicio()
|
||||
End If
|
||||
End Sub
|
||||
Private Sub cargaOrdenesdeservicio()
|
||||
Dim dt As New DataTable()
|
||||
dt.Columns.Add("Folio", GetType(String))
|
||||
dt.Columns.Add("Fecha", GetType(Date))
|
||||
dt.Columns.Add("Obra", GetType(String))
|
||||
dt.Columns.Add("TipodeServicio", GetType(String))
|
||||
dt.Columns.Add("Servicio", GetType(String))
|
||||
dt.Columns.Add("Estatus", GetType(String))
|
||||
dt.Columns.Add("Duracion", GetType(String))
|
||||
dt.Columns.Add("Atendio", GetType(String))
|
||||
|
||||
Dim dr As DataRow = dt.NewRow()
|
||||
dr("Folio") = "101"
|
||||
dr("Fecha") = "2019/08/23"
|
||||
dr("Obra") = "Ganaderos"
|
||||
dr("TipodeServicio") = "Preventivo"
|
||||
dr("Servicio") = "100 Hrs"
|
||||
dr("Estatus") = "Terminada"
|
||||
dr("Duracion") = "5 Hrs"
|
||||
dr("Atendio") = "Juan perez"
|
||||
dt.Rows.Add(dr)
|
||||
dr = dt.NewRow()
|
||||
dr("Folio") = "190"
|
||||
dr("Fecha") = "2019/09/30"
|
||||
dr("Obra") = "Ganaderos"
|
||||
dr("TipodeServicio") = "Preventivo"
|
||||
dr("Servicio") = "200 Hrs"
|
||||
dr("Estatus") = "Terminada"
|
||||
dr("Duracion") = "5 hrs"
|
||||
dr("Atendio") = "Ernesto Lopez"
|
||||
dt.Rows.Add(dr)
|
||||
dr = dt.NewRow()
|
||||
dr("Folio") = "501"
|
||||
dr("Fecha") = "2019/11/30"
|
||||
dr("Obra") = "Vildósola"
|
||||
dr("TipodeServicio") = "Preventivo"
|
||||
dr("Servicio") = "400 Hrs"
|
||||
dr("Estatus") = "Terminada"
|
||||
dr("Duracion") = "8 hrs"
|
||||
dr("Atendio") = "Juan perez"
|
||||
dt.Rows.Add(dr)
|
||||
dr = dt.NewRow()
|
||||
dr("Folio") = "505"
|
||||
dr("Fecha") = "2019/12/14"
|
||||
dr("Obra") = "Vildósola"
|
||||
dr("TipodeServicio") = "Correctivo"
|
||||
dr("Servicio") = "Rep. Mayor motor"
|
||||
dr("Estatus") = "En proceso"
|
||||
dr("Duracion") = "ND"
|
||||
dr("Atendio") = "Juan perez"
|
||||
dt.Rows.Add(dr)
|
||||
|
||||
GVOrdenesdeServicio.DataSource = dt
|
||||
GVOrdenesdeServicio.DataBind()
|
||||
End Sub
|
||||
Private Sub CargaFechaGPS()
|
||||
TxtFechaIH.Text = $"01/{DateTime.Now.ToString("MM")}/{DateTime.Now.Year} 00:00"
|
||||
TxtFechaFH.Text = $"{DateTime.Now.ToString("dd/MM/yyyy")} 23:59"
|
||||
@@ -472,7 +528,7 @@ Partial Class AF_AF
|
||||
Private Sub CargaAFInv()
|
||||
If UsuarioActual.Empresa.UsaInventarios AndAlso CveActivoFijo <= 0 Then
|
||||
|
||||
HLAFInv.Visible = True
|
||||
HLAFInv.Visible= True
|
||||
|
||||
Dim StrAlmacenes As String = "CveTipoAlmacen IN (1,2)"
|
||||
DdlAFInvAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, CveEmpresaActual, -1).FiltraParametros(StrAlmacenes)
|
||||
|
||||
@@ -1344,7 +1344,7 @@ Namespace Modelos
|
||||
Public Sub GuardarVenta(ByRef factura As Modelos.Factura, ByRef ObjVentas As ClsVentas, ByRef ObjConta As ClsContabilidad, ByRef ObjInventario As ClsInventarios, ByRef ObjContr As ClsContratos, ByRef TmpDTDetalle As DataTable, CveNCaVincular As Integer, ByRef objContPaqi As ClsContPAQi, Optional ByRef ObjBancos As ClsBancos = Nothing, Optional ByRef ObjOS As ClsOS = Nothing, ByRef Optional ObjEventos As ClsOIEventos = Nothing, ByRef Optional ObjCGame As ClsCGame = Nothing, ByRef Optional ObjCliente As ClsClientes = Nothing, Optional EsNotaCredito As Boolean = False, Optional ObjAcum As ClsAcumuladores = Nothing)
|
||||
Dim Msgok As New StringBuilder
|
||||
|
||||
factura.CvePrePoliza = ObjConta.AddPrePolizas("Ventas/GuardarVentaM", factura.CvePlantillaPoliza, factura.TotalTC, factura.TotalTC, factura.CveMoneda, factura.Fecha, If(factura.CveEmpresaCRM > 0, factura.EmpresaCRM, factura.Cliente.Nombre), factura.CveUsuario, factura.CveEmpresa)
|
||||
factura.CvePrePoliza = ObjConta.AddPrePolizas("Modelos/GuardarVentaM", factura.CvePlantillaPoliza, factura.TotalTC, factura.TotalTC, factura.CveMoneda, factura.Fecha, If(factura.CveEmpresaCRM > 0, factura.EmpresaCRM, factura.Cliente.Nombre), factura.CveUsuario, factura.CveEmpresa)
|
||||
|
||||
If Not ObjVentas.AddVenta(factura.TipoDocto, factura.Folio, factura.CveCliente, factura.CveClienteSucursal, factura.SubTotalTC, factura.DescuentoTC,
|
||||
factura.AmortizacionTC, factura.IVATC, factura.RetIVATC, factura.RetISRTC,
|
||||
|
||||
@@ -22,8 +22,8 @@ Namespace Sigfox
|
||||
|
||||
Dim ObjGPS As New ClsGPS()
|
||||
Try
|
||||
Dim Datos = GetSigfoxDataSuntechTool(params.data)
|
||||
respuesta.Datos = Datos
|
||||
'Dim Datos = GetSigfoxDataSuntechTool(params.data)
|
||||
'respuesta.Datos = Datos
|
||||
|
||||
Dim DevID As String = params.device
|
||||
Dim Lat As Double = params.lat.ToDouble()
|
||||
@@ -32,16 +32,16 @@ Namespace Sigfox
|
||||
Dim Velocidad As Double = 0
|
||||
Dim MessageType As Integer = 0
|
||||
|
||||
If Datos IsNot Nothing Then
|
||||
If Datos.Item("Tipo-01") IsNot Nothing Then
|
||||
If Datos("Tipo-01")("Latitud") IsNot Nothing Then
|
||||
Lat = Datos("Tipo-01")("Latitud").ToString().ToDouble()
|
||||
End If
|
||||
If Datos("Tipo-01")("Longitud") IsNot Nothing Then
|
||||
Lng = Datos("Tipo-01")("Longitud").ToString().ToDouble()
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
'If Datos IsNot Nothing Then
|
||||
' If Datos.Item("Tipo-01") IsNot Nothing Then
|
||||
' If Datos("Tipo-01")("Latitud") IsNot Nothing Then
|
||||
' Lat = Datos("Tipo-01")("Latitud").ToString().ToDouble()
|
||||
' End If
|
||||
' If Datos("Tipo-01")("Longitud") IsNot Nothing Then
|
||||
' Lng = Datos("Tipo-01")("Longitud").ToString().ToDouble()
|
||||
' End If
|
||||
' End If
|
||||
'End If
|
||||
|
||||
Dim Trama As String = String.Format("ST730;{0};{1};{2};{3};{4};{5};{6};{7};{8};{9};{10};{11};{12};{13}", params.data, DevID, Lat, Lng, Fecha,
|
||||
Velocidad, MessageType, params.avgSnr, params.duplicate, params.rssi, params.seqNumber, params.snr,
|
||||
@@ -65,6 +65,65 @@ Namespace Sigfox
|
||||
End Function
|
||||
|
||||
#Region "F U N C I O N E S"
|
||||
|
||||
Public Function procesatrama(header As String, trama As String) As String
|
||||
Dim retorno As String = ""
|
||||
Dim strbyte As String = ""
|
||||
Dim hexValue As String = ""
|
||||
Dim index As Integer = 3
|
||||
Dim longitud As Integer = trama.Length
|
||||
While longitud > index
|
||||
strbyte = trama.Substring(index, 2)
|
||||
index = index + 2
|
||||
Select Case strbyte
|
||||
Case "01" 'GPS location
|
||||
If longitud > (index + 12) Then
|
||||
hexValue = trama.Substring(index, 6) 'latitud
|
||||
index = index + 6
|
||||
hexValue = trama.Substring(index, 6) 'longitude
|
||||
index = index + 6
|
||||
Else
|
||||
index = index + 12
|
||||
End If
|
||||
Case "02" 'High resolution GPS location
|
||||
If longitud > (index + 16) Then
|
||||
hexValue = trama.Substring(index, 8) 'latitud
|
||||
index = index + 8
|
||||
hexValue = trama.Substring(index, 8) 'longitude
|
||||
index = index + 8
|
||||
Else
|
||||
index = index + 8
|
||||
End If
|
||||
Case "03" 'Temperatura
|
||||
hexValue = trama.Substring(index, 2)
|
||||
index = index + 2
|
||||
Case "04" 'Battery voltage
|
||||
hexValue = trama.Substring(index, 2)
|
||||
index = index + 2
|
||||
Case "05" 'Battery level
|
||||
hexValue = trama.Substring(index, 2)
|
||||
index = index + 2
|
||||
Case "06" 'Wifi Mac address (6 bytes) + 1 byte for RSSI (positive dBm)
|
||||
hexValue = trama.Substring(index, 14)
|
||||
index = index + 14
|
||||
Case "07" 'Wifi Extended: 6 bytes for MAC address, 1 bytes for RSSI and 3 bytes for a NIC that as the same OUI as the 6 bytes MAC address
|
||||
hexValue = trama.Substring(index, 20)
|
||||
index = index + 20
|
||||
Case "08" 'Accelerometer (2 bytes per axis)
|
||||
hexValue = trama.Substring(index, 12)
|
||||
index = index + 12
|
||||
Case "09" 'Speed in km/h
|
||||
hexValue = trama.Substring(index, 2)
|
||||
index = index + 2
|
||||
Case "8x" 'Fence number
|
||||
hexValue = trama.Substring(index, 2)
|
||||
index = index + 2
|
||||
Case Else
|
||||
index = index + 2 'se desconoce pero se avanza 1 bytes
|
||||
End Select
|
||||
End While
|
||||
Return retorno
|
||||
End Function
|
||||
''' <summary>
|
||||
''' Obtiene los valores de los datos usando la libreria de SigfoxParse.js
|
||||
''' </summary>
|
||||
|
||||
@@ -2275,24 +2275,44 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
||||
HttpContext.Current.Application("GlobalDTAlmacen") = value
|
||||
End Set
|
||||
End Property
|
||||
Property GlobalDTAlmacenUsuarios(CveUsuario As Integer, CveEmpresa As Integer, Optional CveTipoAlmacen As Integer = 1) As DataTable
|
||||
Get
|
||||
If CveEmpresa <> -1 Then
|
||||
Dim Str As New StringBuilder
|
||||
Str.AppendFormat("CveUsuario = {0} AND CveEmpresa = {1} ", CveUsuario, CveEmpresa)
|
||||
If CveTipoAlmacen > 0 Then Str.AppendFormat("AND CveTipoAlmacen = {0}", CveTipoAlmacen)
|
||||
|
||||
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application("GlobalDTAlmacenUsuarios"), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
||||
GlobalDTAlmacenUsuarios = Dv.ToTable
|
||||
Dv.Dispose()
|
||||
Else
|
||||
GlobalDTAlmacenUsuarios = DirectCast(HttpContext.Current.Application("GlobalDTAlmacenUsuarios"), DataTable)
|
||||
End If
|
||||
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
HttpContext.Current.Application("GlobalDTAlmacenUsuarios") = value
|
||||
End Set
|
||||
Property GlobalDTAlmacenUsuarios(CveUsuario As Integer, CveEmpresa As Integer, Optional CveTipoAlmacen As Integer = 1) As DataTable
|
||||
Get
|
||||
Dim AppNombre As String = String.Format("GlobalDTAlmacenUsuarios-{0}", CveEmpresa)
|
||||
'sino existe, recarga los datos
|
||||
If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
||||
Dim ObjUsr As New ClsSisUsuarios
|
||||
If ObjUsr.GetAlmacen(-1, CveEmpresa) Then HttpContext.Current.Application(AppNombre) = ObjUsr.DtResultados
|
||||
ObjUsr.Dispose()
|
||||
End If
|
||||
Dim Str As New StringBuilder
|
||||
Str.AppendFormat("CveUsuario = {0} AND CveEmpresa = {1} ", CveUsuario, CveEmpresa)
|
||||
If CveTipoAlmacen > 0 Then Str.AppendFormat("AND CveTipoAlmacen = {0}", CveTipoAlmacen)
|
||||
|
||||
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
||||
GlobalDTAlmacenUsuarios = Dv.ToTable
|
||||
Dv.Dispose()
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
Dim AppNombre As String = String.Format("GlobalDTAlmacenUsuarios-{0}", CveEmpresa)
|
||||
HttpContext.Current.Application(AppNombre) = value
|
||||
End Set
|
||||
'Get
|
||||
' If CveEmpresa <> -1 Then
|
||||
' Dim Str As New StringBuilder
|
||||
' Str.AppendFormat("CveUsuario = {0} AND CveEmpresa = {1} ", CveUsuario, CveEmpresa)
|
||||
' If CveTipoAlmacen > 0 Then Str.AppendFormat("AND CveTipoAlmacen = {0}", CveTipoAlmacen)
|
||||
|
||||
' Dim Dv As New DataView(DirectCast(HttpContext.Current.Application("GlobalDTAlmacenUsuarios"), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
||||
' GlobalDTAlmacenUsuarios = Dv.ToTable
|
||||
' Dv.Dispose()
|
||||
' Else
|
||||
' GlobalDTAlmacenUsuarios = DirectCast(HttpContext.Current.Application("GlobalDTAlmacenUsuarios"), DataTable)
|
||||
' End If
|
||||
|
||||
'End Get
|
||||
'Set(value As DataTable)
|
||||
' HttpContext.Current.Application("GlobalDTAlmacenUsuarios") = value
|
||||
'End Set
|
||||
End Property
|
||||
Property GlobalDTNom_Periodos() As DataTable
|
||||
Get
|
||||
|
||||
@@ -7712,7 +7712,7 @@ Partial Class Compras_Compras
|
||||
' ImporteAnticipo += Ant.Importe ' RESTO DEL IMPORTE POR SI QUEDA DIFERENCIA DE LA SUMA DE LOS ANTICIPOS Y EL PROVEEDOR TIENE QUE PAGAR
|
||||
'movimiento de pago proveedor, --no se regisra porque no se registra el total de la compra como deuda del proveedor, solo lo que queda a deber
|
||||
'si es l moviemiento es de amortizacion con descuento, no registra el pago, ya esta descontado
|
||||
If TieneAnticiposXML = False AndAlso Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimientoCompra, Ant.Importe, " ", CveConceptoPago, " ", TxtFechaPago.Text.ToDate, 0, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorLocal, CveAcreedor:=CveAcreedor, CveIE:=Ant.CveIE, CveColectiva:=CveColectiva, ImporteMX:=Ant.Importe) Then
|
||||
If TieneAnticiposXML = False AndAlso Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimientoCompra, Ant.Importe, " ", CveConceptoPago, " ", TxtFechaPago.Text.ToDate, 0, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorLocal, CveAcreedor:=CveAcreedor, CveIE:=Ant.CveIE, CveColectiva:=CveColectiva, ImporteMX:=Ant.Importe, CveCompraAmortizacion:=CveCompraNC) Then
|
||||
ErrorMovtosCxP = True
|
||||
End If
|
||||
PorcentajePago = (Ant.Importe) / TxtTotal.Text.ToDecimal
|
||||
@@ -10630,7 +10630,7 @@ Partial Class Compras_Compras
|
||||
e.Row.Cells(0).ToolTip = "Producto/Servicio NO Registrado"
|
||||
e.Row.Cells(0).ID = String.Format("tr{0}", e.Row.RowIndex)
|
||||
e.Row.Cells(0).ClientIDMode = ClientIDMode.Static
|
||||
e.Row.Cells(0).Attributes.Add("onclick", String.Format("fnAltaPS('{0}','{1}',{2})", String.Format("tr{0}", e.Row.RowIndex), e.Row.DBCampo("PS").Replace("'", "").Replace(Chr(13), "").Replace(Chr(10), ""), e.Row.RowIndex))
|
||||
e.Row.Cells(0).Attributes.Add("onclick", String.Format("fnAltaPS('{0}','{1}',{2})", String.Format("tr{0}", e.Row.RowIndex), e.Row.DBCampo("PS").Replace("'", "'").Replace(Chr(13), "").Replace(Chr(10), ""), e.Row.RowIndex))
|
||||
If e.Row.FCTextBox("TxtPrecioEdit") IsNot Nothing Then e.Row.FCTextBox("TxtPrecioEdit").Enabled = False
|
||||
If e.Row.FCTextBox("TxtCantidadEdit") IsNot Nothing Then e.Row.FCTextBox("TxtCantidadEdit").Enabled = False
|
||||
End If
|
||||
@@ -17979,7 +17979,7 @@ Partial Class Compras_Compras
|
||||
CvePS = DdlPSAlias2.SelectedValue.ToEntero
|
||||
tPS = DdlPSAlias2.SelectedText
|
||||
|
||||
If PS.AddPSAlias(TxtPSAlias.Text.Trim, CvePS) Then
|
||||
If PS.AddPSAlias(System.Web.HttpUtility.HtmlDecode(TxtPSAlias.Text.Trim), CvePS) Then
|
||||
GlobalDTProductosServiciosAlias(-1) = PS.DtResultados
|
||||
|
||||
TmpDT.Rows(HdnAliasInd.Value.ToEntero)("CvePS") = CvePS
|
||||
|
||||
@@ -2335,16 +2335,16 @@ Partial Class PopUpVerFactura
|
||||
Dim ObjCompra As New ClsCompras()
|
||||
If ObjCompra.GetCompras(CveCompra, "-1", "-1", -1, -1, UsuarioActual.CveEmpresa) AndAlso ObjCompra.DtResultados.Rows.Count > 0 Then
|
||||
Dim dr As DataRow = ObjCompra.DtResultados.Rows(0)
|
||||
Dim FechaCompra As Date = dr("Fecha").ToString.ToDate
|
||||
Dim FechaCompra As Date = dr("FechaMovto").ToString.ToDate
|
||||
Dim FechaVencimiento As Date = dr("FechaVencimiento").ToString.ToDate
|
||||
params.Add(New ReportParameter("Fecha", FechaCompra.ToShortDateString))
|
||||
params.Add(New ReportParameter("FechaVencimiento", FechaVencimiento.ToShortDateString))
|
||||
params.Add(New ReportParameter("Plazo", DateDiff(DateInterval.Day, FechaCompra, FechaVencimiento).ToString))
|
||||
params.Add(New ReportParameter("Folio", Folio.ToString))
|
||||
'params.Add(New ReportParameter("Folio", Folio.ToString))
|
||||
params.Add(New ReportParameter("Serie", dr("Serie").ToString))
|
||||
|
||||
'params.Add(New ReportParameter("NumeroOrden", dr("OCVinculada").ToString))
|
||||
'params.Add(New ReportParameter("FacturaProveedor", dr("SerieFolio").ToString))
|
||||
params.Add(New ReportParameter("FacturaProveedor", dr("SerieFolio").ToString))
|
||||
params.Add(New ReportParameter("NombreProveedor", dr("RazonSocial").ToString))
|
||||
params.Add(New ReportParameter("DireccionProveedor", dr("Direccion").ToString))
|
||||
params.Add(New ReportParameter("CiudadProveedor", " "))
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="3%" />
|
||||
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-Width="40%" />
|
||||
<asp:BoundField HeaderText="Contrato Externo" DataField="ContratoExterno" ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:BoundField HeaderText="SerieLote" DataField="SerieLote" ItemStyle-Width="10%" />
|
||||
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="10%" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
@@ -180,7 +180,7 @@
|
||||
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="3%" />
|
||||
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-Width="40%" />
|
||||
<asp:BoundField HeaderText="Contrato Externo" DataField="ContratoExterno" ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:BoundField HeaderText="SerieLote" DataField="SerieLote" ItemStyle-Width="10%" />
|
||||
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="10%" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
|
||||
@@ -611,7 +611,7 @@ Partial Class Contratos_FacturacionMasiva
|
||||
Dim CveSubProyecto = TmpDTDetalle.Rows(0)("CveSubProyecto").ToString.ToEntero
|
||||
|
||||
|
||||
factura.CvePrePoliza = ObjConta.AddPrePolizas("Ventas/GuardarVenta", factura.CvePlantillaPoliza, factura.Total, factura.Total, factura.CveMoneda, factura.Fecha, factura.Cliente.Nombre, factura.CveUsuario, factura.CveEmpresa)
|
||||
factura.CvePrePoliza = ObjConta.AddPrePolizas("FacMas/GuardarVenta", factura.CvePlantillaPoliza, factura.Total, factura.Total, factura.CveMoneda, factura.Fecha, factura.Cliente.Nombre, factura.CveUsuario, factura.CveEmpresa)
|
||||
If Not ObjVentas.AddVenta(factura.TipoDocto, factura.Folio, factura.CveCliente, factura.CveClienteSucursal, factura.SubTotalTC, factura.DescuentoTC,
|
||||
factura.AmortizacionTC, factura.IVATC, factura.RetIVATC, factura.RetISRTC,
|
||||
factura.TotalTC, factura.CveMoneda, factura.TipoCambio, factura.CveMetodoPago, factura.CondicionesPago, factura.FormaPago, factura.FechaPago, factura.Fecha, factura.MotivoDescuento,
|
||||
|
||||
@@ -303,7 +303,7 @@ Partial Class Inventarios_AjustesSeccionAlmacen
|
||||
Dim CantidadEntrada As Decimal = RowExcel("Cantidad").ToString().ToDecimal()
|
||||
|
||||
Dim CvePS As Integer = DrPS("CvePS").ToString().ToEntero()
|
||||
Dim CveUM As Integer = DrPS("CveUM").ToString().ToEntero()
|
||||
Dim CveUM As Integer = DrPS("CveUnidadMedida").ToString().ToEntero()
|
||||
|
||||
Dim SeccionAlmacen As String = RowExcel("SeccionAlmacen").ToString.Trim
|
||||
Dim CveSeccionAlmacen As Integer = -1
|
||||
|
||||
@@ -1063,7 +1063,8 @@
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MEFechaInv" runat="server" TargetControlID="TxtFechaInvFisico" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CalEFehcInv" TargetControlID="TxtFechaInvFisico" PopupButtonID="ImgFechaInvFisico" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
|
||||
<asp:CompareValidator ID="CvFechaInv" runat="server" ControlToValidate="TxtFechaInvFisico" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="InvFisico"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCFechaInvFormat" runat="server" HighlightCssClass="vco" TargetControlID="CvFechaInv" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1278,7 +1279,7 @@
|
||||
<div class="modal-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-12" style="text-align: center;">
|
||||
<asp:Button ID="BtnAplicarCambioInvFisico" runat="server" CssClass="btn btn-primary" Text="Aplicar" />
|
||||
<asp:Button ID="BtnAplicarCambioInvFisico" runat="server" CssClass="btn btn-primary" Text="Aplicar" ValidationGroup="InvFisico"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1960,6 +1960,8 @@ Partial Class Inventarios_EntradasSalidas
|
||||
If DdlConcepto.Items.FindByValue("1") Is Nothing Then
|
||||
DdlConcepto.Items.Insert(If(DdlConcepto.Items.Count >= 1, 1, 0), New ListItem(" Inventario Inicial ", "1"))
|
||||
End If
|
||||
DdlConcepto.Items.Insert(If(DdlConcepto.Items.Count >= 1, 1, 0), New ListItem(" Salida por Ajuste ", "34"))
|
||||
|
||||
End If
|
||||
|
||||
'ACTIVO FIJO
|
||||
@@ -1977,7 +1979,7 @@ Partial Class Inventarios_EntradasSalidas
|
||||
If DdlConcepto.Items.FindByValue("2") Is Nothing Then
|
||||
DdlConcepto.Items.Insert(If(DdlConcepto.Items.Count >= 2, 2, DdlConcepto.Items.Count), New ListItem("Entrada Almacen ", "2"))
|
||||
End If
|
||||
|
||||
DdlConcepto.Items.Insert(If(DdlConcepto.Items.Count >= 1, 1, 0), New ListItem(" Salida por Ajuste ", "34"))
|
||||
End If
|
||||
|
||||
'[IPP]: PARCHE PARA JAM
|
||||
|
||||
@@ -674,7 +674,7 @@ Partial Class Inventarios_Remanufactura
|
||||
Dim CveSubProyecto = TmpDTDetalle.Rows(0)("CveSubProyecto").ToString.ToEntero
|
||||
|
||||
|
||||
factura.CvePrePoliza = ObjConta.AddPrePolizas("Ventas/GuardarVenta", factura.CvePlantillaPoliza, factura.Total, factura.Total, factura.CveMoneda, factura.Fecha, factura.Cliente.Nombre, factura.CveUsuario, factura.CveEmpresa)
|
||||
factura.CvePrePoliza = ObjConta.AddPrePolizas("Reman/GuardarVenta", factura.CvePlantillaPoliza, factura.Total, factura.Total, factura.CveMoneda, factura.Fecha, factura.Cliente.Nombre, factura.CveUsuario, factura.CveEmpresa)
|
||||
If Not ObjVentas.AddVenta(factura.TipoDocto, factura.Folio, factura.CveCliente, factura.CveClienteSucursal, factura.SubTotalTC, factura.DescuentoTC,
|
||||
factura.AmortizacionTC, factura.IVATC, factura.RetIVATC, factura.RetISRTC,
|
||||
factura.TotalTC, factura.CveMoneda, factura.TipoCambio, factura.CveMetodoPago, factura.CondicionesPago, factura.FormaPago, factura.FechaPago, factura.Fecha, factura.MotivoDescuento,
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
td.cellFail {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.addropzone {
|
||||
min-height: 130px;
|
||||
}
|
||||
@@ -1298,7 +1302,6 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="DmodalCompareSua" class="modal ADS fade" role="dialog">
|
||||
<asp:UpdatePanel ID="UpArchivoSua" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
@@ -1333,64 +1336,36 @@
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-download font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Paso 2:Resultado</span>
|
||||
<span class="caption-subject bold uppercase">Paso 2:Resultado (Periodo :
|
||||
<asp:Literal ID="LtlPeriodo" runat="server"></asp:Literal>)</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||
</div>
|
||||
<script>
|
||||
function shownew() {
|
||||
|
||||
setTimeout(function () {
|
||||
let collapse = $('#resultadoprocesasua .collapse');
|
||||
let body = $('#resultadoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.removeClass('collapse');
|
||||
collapse.addClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', 'none');
|
||||
}
|
||||
collapse = $('#cargaarchivoprocesasua .expand');
|
||||
body = $('#cargaarchivoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.addClass('collapse');
|
||||
collapse.removeClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', '');
|
||||
}
|
||||
}, 400);
|
||||
}
|
||||
function showResult() {
|
||||
|
||||
setTimeout(function () {
|
||||
let collapse = $('#cargaarchivoprocesasua .expand');
|
||||
let body = $('#cargaarchivoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.removeClass('collapse');
|
||||
collapse.addClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', 'none');
|
||||
}
|
||||
collapse = $('#resultadoprocesasua .collapse');
|
||||
body = $('#resultadoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.addClass('collapse');
|
||||
collapse.removeClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', '');
|
||||
}
|
||||
}, 400);
|
||||
}
|
||||
</script>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
<asp:LinkButton ID="LnkDownExcelSua" OnClick="LnkDownExcelSua_Click" CssClass="btn btn-default" runat="server"><i class="fa fa-ad-excel"></i>Descargar</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding " style="display: none;">
|
||||
<div style="width: 1200px; height: 350px; overflow: auto;">
|
||||
<div style="width: 1200px; min-height: 340px;">
|
||||
<table id="headerProcesaSUA" style="display: none">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th colspan="2">Salario</th>
|
||||
<th colspan="2">Cuota Fija</th>
|
||||
<th colspan="2">Cuota Excedente</th>
|
||||
<th colspan="2">Prestaciones en Dinero</th>
|
||||
<th colspan="2">Gastos Medicos</th>
|
||||
<th colspan="2">Riesgos de Trabajo</th>
|
||||
<th colspan="2">Invalidez y Vida</th>
|
||||
<th colspan="2">Guarderia</th>
|
||||
<th colspan="2">Retiro</th>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:GridView ID="GVProcesarSUA" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD" AutoGenerateColumns="False"
|
||||
OnDataBound="GVProcesarSUA_DataBound" data-height="300"
|
||||
OnRowDataBound="GVProcesarSUA_RowDataBound" data-height="300" data-tableheader="#headerProcesaSUA"
|
||||
DataKeyNames="CvePersonal,CodigoNombreCompleto,CuotaFijaSUA,CuotaFijaSIG,CuotaExcedenteSUA,CuotaExcedenteSIG,PrestacionesDineroSUA,PrestacionesSIG,GastosMedPenSUA,GastosMedicosSIG,RiesgosdeTrabajoSUA,RiesgoTrabajoSIG,InvalidezyVidaSUA,InvalidezyVidaSIG,GuarderiaSUA,GuarderiaSIG,RetiroSUA,RetiroSIG,SalarioSUA,SalarioSIG">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Nombre">
|
||||
@@ -1398,148 +1373,94 @@
|
||||
<asp:Label ID="lblcodigoNombreCompleto" runat="server" Text='<%# Eval("CodigoNombreCompleto")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Salario">
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("SalarioSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("SalarioSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("SalarioSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Cuota Fija">
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaFijaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaFijaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("SalarioSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Cuota Excedente">
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaExcedenteSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaExcedenteSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaFijaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Prestaciones en Dinero">
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("PrestacionesDineroSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("PrestacionesSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaFijaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Gastos Medicos">
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("GastosMedPenSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("GastosMedicosSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaExcedenteSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Riesgos de Trabajo">
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("RiesgosdeTrabajoSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("RiesgoTrabajoSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaExcedenteSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Invalidez y Vida">
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("InvalidezyVidaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("InvalidezyVidaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("PrestacionesDineroSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Guarderia">
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("GuarderiaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("GuarderiaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("PrestacionesSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Retiro">
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("RetiroSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("RetiroSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("GastosMedPenSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("GastosMedicosSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("RiesgosdeTrabajoSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("RiesgoTrabajoSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("InvalidezyVidaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("InvalidezyVidaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("GuarderiaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("GuarderiaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("RetiroSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("RetiroSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
@@ -1556,13 +1477,13 @@
|
||||
<ContentTemplate>
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
</ContentTemplate>
|
||||
<%--<Triggers >
|
||||
<asp:PostBackTrigger ControlID ="LnkGetTxtsSUA" />
|
||||
</Triggers>--%>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
<Triggers>
|
||||
<asp:PostBackTrigger ControlID="LnkDownExcelSua" />
|
||||
</Triggers>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div id="DmodalGetSua" class="modal ADS fade" role="dialog">
|
||||
@@ -1581,7 +1502,7 @@
|
||||
<div class="col-md-6">
|
||||
<div style="width: 140px; display: inline-block;">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:TextBox ID="TxtFechaInicio" Enabled="false" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtFechaInicio" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtFechaInicio">Fecha Inicio:</asp:Label>
|
||||
<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" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
@@ -1599,7 +1520,7 @@
|
||||
<div class="col-md-6">
|
||||
<div style="width: 140px; display: inline-block;">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:TextBox ID="TXTFechaFin" Enabled="false" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TXTFechaFin" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TXTFechaFin">Fecha Inicio:</asp:Label>
|
||||
<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" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
@@ -1639,6 +1560,53 @@
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>
|
||||
|
||||
function shownew() {
|
||||
|
||||
setTimeout(function () {
|
||||
let collapse = $('#resultadoprocesasua .collapse');
|
||||
let body = $('#resultadoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.removeClass('collapse');
|
||||
collapse.addClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', 'none');
|
||||
}
|
||||
collapse = $('#cargaarchivoprocesasua .expand');
|
||||
body = $('#cargaarchivoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.addClass('collapse');
|
||||
collapse.removeClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', '');
|
||||
}
|
||||
}, 400);
|
||||
}
|
||||
function showResult() {
|
||||
|
||||
setTimeout(function () {
|
||||
let collapse = $('#cargaarchivoprocesasua .expand');
|
||||
let body = $('#cargaarchivoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.removeClass('collapse');
|
||||
collapse.addClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', 'none');
|
||||
}
|
||||
collapse = $('#resultadoprocesasua .collapse');
|
||||
body = $('#resultadoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.addClass('collapse');
|
||||
collapse.removeClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', '');
|
||||
}
|
||||
setTimeout(function () { loadadscroll(); }, 50);
|
||||
}, 400);
|
||||
}
|
||||
function SaveCsv(filename, data) {
|
||||
var blob = new Blob([data], { type: 'text/csv' });
|
||||
if (window.navigator.msSaveOrOpenBlob) {
|
||||
|
||||
@@ -52,6 +52,16 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
set { ViewState["dtempleados"] = value; }
|
||||
}
|
||||
private DataTable DtSuaProcesado
|
||||
{
|
||||
get
|
||||
{
|
||||
if (ViewState["dtempleados"] == null) { return null; }
|
||||
else { return (DataTable)ViewState["dtempleados"]; }
|
||||
}
|
||||
|
||||
set { ViewState["dtempleados"] = value; }
|
||||
}
|
||||
|
||||
protected bool PermisoCancelarEmitido
|
||||
{
|
||||
@@ -3841,12 +3851,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
TxtArchivoSua.Text = "";
|
||||
GVProcesarSUA.DataSource = null;
|
||||
GVProcesarSUA.DataBind();
|
||||
GVProcesarSUA.DataBind();
|
||||
RegistraScript("$('#DmodalCompareSua').modal();shownew();");
|
||||
UpArchivoSua.Update();
|
||||
}
|
||||
protected void LnkUpSuaFile_Click(object sender, EventArgs e)
|
||||
{
|
||||
{
|
||||
string fileurl = "";
|
||||
GVProcesarSUA.DataSource = null;
|
||||
Files archivos = TxtArchivoSua.getfiles();
|
||||
@@ -3858,7 +3868,14 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
if (ObjPersonal.ProcesarSUA(SuaFiletext, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
GVProcesarSUA.DataSource = ObjPersonal.DTSetResultados.Tables[3];
|
||||
if (ObjPersonal.DTSetResultados.Tables.Count > 4)
|
||||
{
|
||||
DateTime dateperiodo;
|
||||
DateTime.TryParseExact( string.Format ("{0}01",ObjPersonal.DTSetResultados.Tables[1].Rows[0]["Periodo"]), "yyyyMMdd", new System.Globalization.CultureInfo("es-MX"), System.Globalization.DateTimeStyles.None,out dateperiodo);
|
||||
LtlPeriodo.Text = dateperiodo.Date.ToString("MMMM yyyy", new System.Globalization.CultureInfo("es-MX"));
|
||||
DtSuaProcesado = ObjPersonal.DTSetResultados.Tables[3];
|
||||
GVProcesarSUA.DataSource = ObjPersonal.DTSetResultados.Tables[3];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3870,8 +3887,196 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
|
||||
|
||||
protected void GVProcesarSUA_DataBound(object sender, EventArgs e)
|
||||
|
||||
protected void GVProcesarSUA_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
string SalarioSUA = string.Format("{0:N2}", e.Row.DataKey("SalarioSUA").ToDecimal());
|
||||
string SalarioSIG = string.Format("{0:N2}", e.Row.DataKey("SalarioSIG").ToDecimal());
|
||||
int celda = 1;
|
||||
if (SalarioSUA != SalarioSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string CuotaFijaSUA = string.Format("{0:N2}", e.Row.DataKey("CuotaFijaSUA").ToDecimal());
|
||||
string CuotaFijaSIG = string.Format("{0:N2}", e.Row.DataKey("CuotaFijaSIG").ToDecimal());
|
||||
if (CuotaFijaSUA != CuotaFijaSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string CuotaExcedenteSUA = string.Format("{0:N2}", e.Row.DataKey("CuotaExcedenteSUA").ToDecimal());
|
||||
string CuotaExcedenteSIG = string.Format("{0:N2}", e.Row.DataKey("CuotaExcedenteSIG").ToDecimal());
|
||||
if (CuotaExcedenteSUA != CuotaExcedenteSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string PrestacionesDineroSUA = string.Format("{0:N2}", e.Row.DataKey("PrestacionesDineroSUA").ToDecimal());
|
||||
string PrestacionesSIG = string.Format("{0:N2}", e.Row.DataKey("PrestacionesSIG").ToDecimal());
|
||||
if (PrestacionesDineroSUA != PrestacionesSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string GastosMedPenSUA = string.Format("{0:N2}", e.Row.DataKey("GastosMedPenSUA").ToDecimal());
|
||||
string GastosMedicosSIG = string.Format("{0:N2}", e.Row.DataKey("GastosMedicosSIG").ToDecimal());
|
||||
if (GastosMedPenSUA != GastosMedicosSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string RiesgosdeTrabajoSUA = string.Format("{0:N2}", e.Row.DataKey("RiesgosdeTrabajoSUA").ToDecimal());
|
||||
string RiesgoTrabajoSIG = string.Format("{0:N2}", e.Row.DataKey("RiesgoTrabajoSIG").ToDecimal());
|
||||
if (RiesgosdeTrabajoSUA != RiesgoTrabajoSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string InvalidezyVidaSUA = string.Format("{0:N2}", e.Row.DataKey("InvalidezyVidaSUA").ToDecimal());
|
||||
string InvalidezyVidaSIG = string.Format("{0:N2}", e.Row.DataKey("InvalidezyVidaSIG").ToDecimal());
|
||||
if (InvalidezyVidaSUA != InvalidezyVidaSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string GuarderiaSUA = string.Format("{0:N2}", e.Row.DataKey("GuarderiaSUA").ToDecimal());
|
||||
string GuarderiaSIG = string.Format("{0:N2}", e.Row.DataKey("GuarderiaSIG").ToDecimal());
|
||||
if (GuarderiaSUA != GuarderiaSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string RetiroSUA = string.Format("{0:N2}", e.Row.DataKey("RetiroSUA").ToDecimal());
|
||||
string RetiroSIG = string.Format("{0:N2}", e.Row.DataKey("RetiroSIG").ToDecimal());
|
||||
if (RetiroSUA != RetiroSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected void LnkDownExcelSua_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
ClosedXML.Excel.XLWorkbook wb = new ClosedXML.Excel.XLWorkbook();
|
||||
var libro = wb.AddWorksheet("SUA");
|
||||
int Fila = 1;
|
||||
libro.Column(1).Width = 50;
|
||||
ClosedXML.Excel.IXLRange range = libro.Range(Fila, 2, Fila, 3);
|
||||
range.Merge();
|
||||
range.Value = "Salario";
|
||||
range = libro.Range(Fila,4, Fila, 5);
|
||||
range.Merge();
|
||||
range.Value = "Cuota Fija";
|
||||
range = libro.Range(Fila, 6, Fila,7 );
|
||||
range.Merge();
|
||||
range.Value = "Cuota Excedente";
|
||||
range = libro.Range(Fila,8, Fila, 9);
|
||||
range.Merge();
|
||||
range.Value = "Prestaciones en Dinero";
|
||||
range = libro.Range(Fila, 10, Fila,11 );
|
||||
range.Merge();
|
||||
range.Value = "Gastos Medicos";
|
||||
range = libro.Range(Fila, 12, Fila, 13);
|
||||
range.Merge();
|
||||
range.Value = "Riesgos de Trabajo";
|
||||
range = libro.Range(Fila, 14, Fila,15 );
|
||||
range.Merge();
|
||||
range.Value = "Invalidez y Vida";
|
||||
range = libro.Range(Fila,16 , Fila, 17);
|
||||
range.Merge();
|
||||
range.Value = "Guarderia";
|
||||
range = libro.Range(Fila, 18, Fila, 19);
|
||||
range.Merge();
|
||||
range.Value = "Retiro";
|
||||
Fila = Fila + 1;
|
||||
libro.Cell(Fila, 1).Value = "Empleado";
|
||||
libro.Cell(Fila, 2).Value = "SUA"; //SalarioSUA
|
||||
libro.Cell(Fila, 3).Value = "SIG";//SalarioSIG
|
||||
libro.Cell(Fila, 4).Value = "SUA";//CuotaFijaSUA
|
||||
libro.Cell(Fila, 5).Value = "SIG";//CuotaFijaSIG
|
||||
libro.Cell(Fila, 6).Value = "SUA";//CuotaExcedenteSUA
|
||||
libro.Cell(Fila, 7).Value = "SIG";//CuotaExcedenteSIG
|
||||
libro.Cell(Fila, 8).Value = "SUA";//PrestacionesDineroSUA
|
||||
libro.Cell(Fila, 9).Value = "SIG";//PrestacionesSIG
|
||||
libro.Cell(Fila, 10 ).Value = "SUA";//GastosMedPenSUA
|
||||
libro.Cell(Fila, 11 ).Value = "SIG";//GastosMedicosSIG
|
||||
libro.Cell(Fila, 12 ).Value = "SUA";//RiesgosdeTrabajoSUA
|
||||
libro.Cell(Fila, 13 ).Value = "SIG";//RiesgoTrabajoSIG
|
||||
libro.Cell(Fila, 14 ).Value = "SUA";//InvalidezyVidaSUA
|
||||
libro.Cell(Fila, 15 ).Value = "SIG";//InvalidezyVidaSIG
|
||||
libro.Cell(Fila, 16 ).Value = "SUA";//GuarderiaSUA
|
||||
libro.Cell(Fila, 17 ).Value = "SIG";//GuarderiaSIG
|
||||
libro.Cell(Fila, 18 ).Value = "SUA";//RetiroSUA
|
||||
libro.Cell(Fila, 19 ).Value = "SIG";//RetiroSIG
|
||||
|
||||
|
||||
libro.Cell(1, 1).Style.Font.FontColor = ClosedXML.Excel.XLColor.White;
|
||||
libro.Cell(1, 1).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(79, 129, 189));
|
||||
libro.Row(1).CellsUsed().Style.Font.FontColor = ClosedXML.Excel.XLColor.White;
|
||||
libro.Row(1).CellsUsed().Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(79, 129, 189));
|
||||
libro.Row(2).CellsUsed().Style.Font.FontColor = ClosedXML.Excel.XLColor.White;
|
||||
libro.Row(2).CellsUsed().Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(79, 129, 189));
|
||||
|
||||
foreach (DataRow erow in DtSuaProcesado.Rows)
|
||||
{
|
||||
Fila++;
|
||||
libro.Cell(Fila, 1).Value = erow["CodigoNombreCompleto"];
|
||||
libro.Cell(Fila, 2).Value = string.Format("{0:N2}",erow["SalarioSUA"]);
|
||||
libro.Cell(Fila, 3).Value = string.Format("{0:N2}",erow["SalarioSIG"]);
|
||||
libro.Cell(Fila, 4).Value = string.Format("{0:N2}",erow["CuotaFijaSUA"]);
|
||||
libro.Cell(Fila, 5).Value = string.Format("{0:N2}", erow["CuotaFijaSIG"]);
|
||||
libro.Cell(Fila, 6).Value = string.Format("{0:N2}",erow["CuotaExcedenteSUA"]);
|
||||
libro.Cell(Fila, 7).Value = string.Format("{0:N2}",erow["CuotaExcedenteSIG"]);
|
||||
libro.Cell(Fila, 8).Value = string.Format("{0:N2}",erow["PrestacionesDineroSUA"]);
|
||||
libro.Cell(Fila, 9).Value = string.Format("{0:N2}",erow["PrestacionesSIG"]);
|
||||
libro.Cell(Fila, 10).Value = string.Format("{0:N2}",erow["GastosMedPenSUA"]);
|
||||
libro.Cell(Fila, 11).Value = string.Format("{0:N2}",erow["GastosMedicosSIG"]);
|
||||
libro.Cell(Fila, 12).Value = string.Format("{0:N2}",erow["RiesgosdeTrabajoSUA"]);
|
||||
libro.Cell(Fila, 13).Value = string.Format("{0:N2}",erow["RiesgoTrabajoSIG"]);
|
||||
libro.Cell(Fila, 14).Value = string.Format("{0:N2}",erow["InvalidezyVidaSUA"]);
|
||||
libro.Cell(Fila, 15).Value = string.Format("{0:N2}",erow["InvalidezyVidaSIG"]);
|
||||
libro.Cell(Fila, 16).Value = string.Format("{0:N2}",erow["GuarderiaSUA"]);
|
||||
libro.Cell(Fila, 17).Value = string.Format("{0:N2}",erow["GuarderiaSIG"]);
|
||||
libro.Cell(Fila, 18).Value = string.Format("{0:N2}",erow["RetiroSUA"]);
|
||||
libro.Cell(Fila, 19).Value = string.Format("{0:N2}",erow["RetiroSIG"]);
|
||||
}
|
||||
//libro.Row(2).SetAutoFilter();
|
||||
|
||||
|
||||
|
||||
|
||||
System.IO.Stream fs = new System.IO.MemoryStream();
|
||||
wb.SaveAs(fs);
|
||||
fs.Position = 0;
|
||||
System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
|
||||
using (System.IO.Stream input = fs)
|
||||
|
||||
{
|
||||
input.CopyTo(memoryStream);
|
||||
}
|
||||
memoryStream.Position = 0;
|
||||
|
||||
Response.Clear();
|
||||
Response.Buffer = true;
|
||||
|
||||
Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
||||
Response.AddHeader("content-disposition", string.Format("attachment;filename={0}.xlsx", "FormatoCargaNominas"));
|
||||
Response.BinaryWrite(memoryStream.ToArray());
|
||||
Response.End();
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="row">
|
||||
<label class="col-md-1 truncate">Sucursal:</label>
|
||||
<div class="col-md-2">
|
||||
<asp:DropDownList ID="DdlSucursal" runat="server" AppendDataBoundItems="true" DataTextField="Sucursal" DataValueField="CveSucursal" CssClass="form-control input-sm select2me">
|
||||
<asp:DropDownList ID="DdlSucursal" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me">
|
||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
|
||||
@@ -17,7 +17,7 @@ Partial Class OC_RepOCSinFactura
|
||||
|
||||
Private Sub CargaCombos()
|
||||
'CargaSucursales
|
||||
DdlSucursal.DataSource = GlobalDTSucursales.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
||||
DdlSucursal.DataSource = GlobalDTSubProyectos(UsuarioActual.CveEmpresa)
|
||||
DdlSucursal.DataBind()
|
||||
|
||||
'Vendedor
|
||||
|
||||
@@ -2978,7 +2978,7 @@ Partial Class Ventas_PortalCliente
|
||||
Dim EsDevolucionVenta = -1
|
||||
Dim TotalImpuestoLocal As Double = 0
|
||||
|
||||
factura.CvePrePoliza = ObjConta.AddPrePolizas("Ventas/GuardarVenta", factura.CvePlantillaPoliza, factura.Total, factura.Total, factura.CveMoneda, factura.Fecha, factura.Cliente.Nombre, factura.CveUsuario, factura.CveEmpresa)
|
||||
factura.CvePrePoliza = ObjConta.AddPrePolizas("PortalC/GuardarVenta", factura.CvePlantillaPoliza, factura.Total, factura.Total, factura.CveMoneda, factura.Fecha, factura.Cliente.Nombre, factura.CveUsuario, factura.CveEmpresa)
|
||||
If Not ObjVentas.AddVenta(factura.TipoDocto, factura.Folio, factura.CveCliente, factura.CveClienteSucursal, factura.SubTotalTC, factura.DescuentoTC,
|
||||
factura.AmortizacionTC, factura.IVATC, factura.RetIVATC, factura.RetISRTC,
|
||||
factura.TotalTC, factura.CveMoneda, factura.TipoCambio, factura.CveMetodoPago, factura.CondicionesPago, factura.FormaPago, factura.FechaPago, factura.Fecha, factura.MotivoDescuento,
|
||||
|
||||
@@ -1314,27 +1314,27 @@
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiario" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiario" Text="Salario Diario (SDD):"></asp:Label>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiario" Enabled ="false" Text="Salario Diario (SDD):"></asp:Label>
|
||||
<asp:CompareValidator ID="CVSalarioDiario" runat="server" ControlToValidate="TxtSalarioDiario" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtSDI" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:TextBox CssClass="form-control" ID="TxtSDI" Enabled ="false" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtSDI" Text="Salario Diario Integrado (SDI):"></asp:Label>
|
||||
<asp:CompareValidator ID="CVSDI" runat="server" ControlToValidate="TxtSDI" CssClass="help-block errorimput" ErrorMessage="El campo <b>''SDI''</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>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright" style="display: none;">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiarioPago" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiarioPago" Enabled ="false" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiarioPago" Text="Salario Diario de Pago:"></asp:Label>
|
||||
<asp:CompareValidator ID="CVSalario" runat="server" ControlToValidate="TxtSalarioDiarioPago" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario de Pago''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
<asp:Panel runat="server" ID="pnlSalarioIMSS" CssClass="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioCotizado" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioCotizado" Enabled ="false" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioCotizado" Text="Salario Diario IMSS:"></asp:Label>
|
||||
<asp:CompareValidator ID="CVSDT" runat="server" ControlToValidate="TxtSalarioCotizado" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario Cotizado''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||
|
||||
@@ -1343,20 +1343,20 @@
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtBono" runat="server" MaxLength="10" Text="0"></asp:TextBox>
|
||||
<label for="<%= TxtBono.ClientID.ToString()%>">Bono: </label>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtBono" Text="Bono:"></asp:Label>
|
||||
<asp:CompareValidator ID="CVBono" runat="server" ControlToValidate="TxtBono" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Bono''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtNumDiasAguinaldo" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<label for="<%= TxtNumDiasAguinaldo.ClientID.ToString()%>">Número de días Aguinaldo: </label>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtNumDiasAguinaldo" Text="Número de días Aguinaldo:"></asp:Label>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtPorPrimaVacacional" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<label for="<%= TxtPorPrimaVacacional.ClientID.ToString()%>">Prima Vacacional: </label>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtPorPrimaVacacional" Text="Prima Vacacional:"></asp:Label>
|
||||
<i>%</i>
|
||||
</div>
|
||||
|
||||
@@ -1364,8 +1364,7 @@
|
||||
<asp:DropDownList ID="DdlMetodoPago" runat="server" AppendDataBoundItems="true" CausesValidation="true" CssClass="form-control input-sm select2me" DataTextField="MetodoPago" DataValueField="CveMetodoPago" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
|
||||
<label for="<%= DdlMetodoPago.ClientID.ToString()%>">Método de Pago: </label>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlMetodoPago" Text="Método de Pago:"></asp:Label>
|
||||
<asp:RequiredFieldValidator ID="RFVMetodoPago" runat="server" ControlToValidate="DdlMetodoPago" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Método de Pago''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<i></i>
|
||||
</div>
|
||||
@@ -1373,22 +1372,19 @@
|
||||
<asp:DropDownList ID="DdlBanco" runat="server" AppendDataBoundItems="true" DataTextField="Banco" DataValueField="CveSATBanco" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Selected="True" Text="Sin asignar Banco" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<label for="<%= DdlBanco.ClientID.ToString()%>">Banco: </label>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlBanco" Text="Banco:"></asp:Label>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtBancoNumCuenta" runat="server"></asp:TextBox>
|
||||
<label for="<%= TxtBancoNumCuenta.ClientID.ToString()%>"># Cuenta: </label>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtBancoNumCuenta" Text="Cuenta:"></asp:Label>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtCLABE" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<label for="<%= TxtCLABE.ClientID.ToString()%>">CLABE: </label>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtCLABE" Text="CLABE:"></asp:Label>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -136,8 +136,8 @@ function buscadorMenuCaudi() {
|
||||
$('ul#ulmenulateralmaster li.sidebar-toggler-wrapper').append(buscador);
|
||||
|
||||
let tickBar = 0;
|
||||
let input = $('#' + idTxtMaster)
|
||||
function BuscarMenu() {
|
||||
let input = $('#' + idTxtMaster);
|
||||
let BuscarMenu =function() {
|
||||
tickBar = tickBar + 1;
|
||||
tickBarnew = tickBar;
|
||||
|
||||
@@ -232,7 +232,7 @@ setchecktotag = function () {
|
||||
$(mychecktotag.get(i)).css({ "display": "none" });
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
setswitch = function () {
|
||||
if ($("span.make-switchsd input")) {
|
||||
var mycheckswitch = $("span.make-switchsd input");
|
||||
@@ -304,7 +304,7 @@ setswitch = function () {
|
||||
mdspan.append(mdlbel);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function ADScroller2() {
|
||||
$('table.ADSCROLLER2').each(function () {
|
||||
@@ -738,14 +738,14 @@ ADSScroll = function (tablescroll) {
|
||||
});
|
||||
}
|
||||
sort = false;
|
||||
let divcontainer = $('<div class="ADScroller"></div>')
|
||||
let divcontainer = $('<div class="ADScroller"></div>');
|
||||
let divbody = $('<div class="ADScroller-body"></div>');
|
||||
let divheader = $('<div class="ADScroller-header"></div>');
|
||||
let divfooter = $('<div class="ADScroller-footer"></div>');
|
||||
let tableheader = $('<table></table>').append($('<tbody></tbody>'));
|
||||
tableheader.attr('id', 'ADSH-' + tablescroll.attr('id'))
|
||||
tableheader.attr('id', 'ADSH-' + tablescroll.attr('id'));
|
||||
let tablefooter = $('<table></table>').append($('<tbody></tbody>'));
|
||||
tablefooter.attr('id', 'ADSF-' + tablescroll.attr('id'))
|
||||
tablefooter.attr('id', 'ADSF-' + tablescroll.attr('id'));
|
||||
let trWwidth = $('<tr class="trnopadding ADtr SearchADHeader"></tr>');
|
||||
let idTheader = tablescroll.data('tableheader');
|
||||
let rowVisibles = isNaN(Number(tablescroll.data('rows'))) ? 1 : Number(tablescroll.data('rows'));
|
||||
@@ -768,7 +768,7 @@ ADSScroll = function (tablescroll) {
|
||||
if (sort) {
|
||||
trWwidth.addClass('TRSort');
|
||||
}
|
||||
tablescroll.removeClass("ScrollAD")
|
||||
tablescroll.removeClass("ScrollAD");
|
||||
tableheader.addClass(tablescroll.attr('class')).removeClass("table-advance");
|
||||
tableheader.attr('style', tablescroll.attr('style'));
|
||||
tablefooter.addClass(tablescroll.attr('class')).removeClass("table-advance");
|
||||
@@ -782,7 +782,7 @@ ADSScroll = function (tablescroll) {
|
||||
rowVisibles += 1;
|
||||
});
|
||||
} else {
|
||||
log("Tabla titulo No encontrada '" + idTheader + "'.")
|
||||
log("Tabla titulo No encontrada '" + idTheader + "'.");
|
||||
}
|
||||
}
|
||||
let firsttr = null;
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</thead>
|
||||
<tr>
|
||||
<td style="text-align: center">
|
||||
<asp:DropDownList ID="ddlSucursal" runat="server" DataValueField="CveSucursal" DataTextField="Sucursal" Width="134px" AutoPostBack="true"></asp:DropDownList>
|
||||
<asp:DropDownList ID="ddlSucursal" runat="server" DataValueField="CveSubProyecto" DataTextField="SubProyecto" Width="134px" AutoPostBack="true"></asp:DropDownList>
|
||||
<asp:RangeValidator ID="RVSucursal" runat="server" ControlToValidate="ddlSucursal" Display="None" Type="Integer" MinimumValue="1" MaximumValue="2147483647" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Sucursal''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RangeValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCESucursal" runat="server" HighlightCssClass="vco" TargetControlID="RVSucursal" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
@@ -88,7 +88,7 @@
|
||||
<asp:Literal ID="LtlSucursal" runat="server" Text='<%# Eval("Sucursal", " {0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:DropDownList ID="ddlSucursal" runat="server" Width="134" DataValueField="CveSucursal" DataTextField="Sucursal"></asp:DropDownList>
|
||||
<asp:DropDownList ID="ddlSucursal" runat="server" Width="134" DataValueField="CveSubProyecto" DataTextField="SubProyecto"></asp:DropDownList>
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
|
||||
@@ -42,7 +42,7 @@ Partial Class Ventas_CatMesas
|
||||
End Sub
|
||||
|
||||
Public Sub CargaSucursales()
|
||||
ddlSucursal.DataSource = GlobalDTSucursales().FiltraParametros(String.Format("CveEmpresa = {0}", UsuarioActual.CveEmpresa))
|
||||
ddlSucursal.DataSource = GlobalDTSubProyectos(UsuarioActual.CveEmpresa)
|
||||
ddlSucursal.DataBind()
|
||||
ddlSucursal.Items.Insert(0, New ListItem("Todas", "-1"))
|
||||
End Sub
|
||||
@@ -106,7 +106,7 @@ Partial Class Ventas_CatMesas
|
||||
e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Left
|
||||
|
||||
If e.Row.RowState = DataControlRowState.Edit OrElse e.Row.RowState = 5 Then
|
||||
e.Row.FCDropDownList("ddlSucursal").DataSource = GlobalDTSucursales().FiltraParametros(String.Format("CveEmpresa = {0}", UsuarioActual.CveEmpresa))
|
||||
e.Row.FCDropDownList("ddlSucursal").DataSource = GlobalDTSubProyectos(UsuarioActual.CveEmpresa)
|
||||
e.Row.FCDropDownList("ddlSucursal").DataBind()
|
||||
e.Row.FCDropDownList("ddlSucursal").SelectedValue = e.Row.DBCampo("CveSucursal")
|
||||
End If
|
||||
|
||||
@@ -1300,11 +1300,11 @@
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<div id="DivOCRelacionadas" class="modal ADS fade" role="dialog" runat="server" visible="false">
|
||||
<asp:GridView runat="server" ID="GvOCRelacionadas" Caption="Ordenes de Compra Relacionadas:" AutoGenerateColumns="False" DataKeyNames="CveOrdenCompra,Folio"
|
||||
CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None" ShowHeader="False">
|
||||
<div id="DivOCRelacionadas" class="col-md-3" runat="server" visible="false">
|
||||
<asp:GridView runat="server" ID="GvOCRelacionadas" Caption="OC Relacionadas:" AutoGenerateColumns="False" DataKeyNames="CveOrdenCompra,Folio"
|
||||
CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None">
|
||||
<Columns>
|
||||
<asp:HyperLinkField DataTextField="Folio" DataNavigateUrlFields="CveOrdenCompra" DataNavigateUrlFormatString="/OC/OC.aspx?OC={0}" />
|
||||
<asp:HyperLinkField DataTextField="Folio" DataNavigateUrlFields="CveOrdenCompra" DataNavigateUrlFormatString="/OC/OC.aspx?OC={0}" HeaderText="Orden Compra" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
|
||||
@@ -10902,8 +10902,8 @@ Partial Class Ventas
|
||||
Case 103 'Descuento
|
||||
If ObjFactura.Descuento <> 0 AndAlso Not ObjFactura.TipoDocto.Contiene("Rem", "RNC") AndAlso DdlTipoAmortizacionAnticipo.SelectedValue = "-1" Then
|
||||
|
||||
importeMovimiento = ObjFactura.Descuento * ValorMultiplicador
|
||||
importeMX = Math.Round(importeMovimiento, 2) * tipoCambio * Multiplicador
|
||||
importeMovimiento = ObjFactura.Descuento * Multiplicador * ValorMultiplicador
|
||||
importeMX = Math.Round(importeMovimiento, 2) * tipoCambio * Multiplicador * ValorMultiplicador
|
||||
FechaMovimiento = ObjFactura.FechaPago
|
||||
CveSubProyectoContabilizar = CveSubProyectoVenta
|
||||
|
||||
@@ -14428,7 +14428,7 @@ Partial Class Ventas
|
||||
|
||||
DdlSubProyectoEjecucion.SelectedValueExist(DdlSubProyectoDatos.SelectedValue)
|
||||
DdlSubProyectoCobranza.SelectedValueExist(DdlSubProyectoDatos.SelectedValue)
|
||||
UpDetalle.Update()
|
||||
|
||||
|
||||
'If ObjSucursal.GetSucursales(UsuarioActual.CveEmpresa) Then
|
||||
' DTSucursal = ObjSucursal.DtResultados.FiltraParametros(String.Format("CveSucursal = {0}", drc("CveSucursal").ToString().ToEntero()))
|
||||
@@ -14439,12 +14439,15 @@ Partial Class Ventas
|
||||
'End If
|
||||
End If
|
||||
ObjSubProyectos.Dispose()
|
||||
|
||||
UpDetalle.Update()
|
||||
End Sub
|
||||
Private Sub CambiaSucursal()
|
||||
CargaFormatoSucursal()
|
||||
CargaFolios()
|
||||
CargaVendedores()
|
||||
CargarAlmacenes()
|
||||
RecargaSucursalPartidas()
|
||||
DdlPS.Attributes.Remove("data-cvesubproyecto")
|
||||
DdlPS.Attributes.Add("data-cvesubproyecto", DdlSubProyectoDatos.SelectedValue)
|
||||
|
||||
@@ -14453,6 +14456,22 @@ Partial Class Ventas
|
||||
|
||||
UpPS.Update()
|
||||
End Sub
|
||||
Private Sub RecargaSucursalPartidas()
|
||||
Dim CveSubProyecto As Integer = DdlSubProyectoDatos.SelectedValue.ToEntero()
|
||||
Dim SubProyecto As String = DdlSubProyectoDatos.SelectedItem.Text
|
||||
|
||||
If TmpDT IsNot Nothing AndAlso TmpDT.Rows.Count > 0 Then
|
||||
For Each Row As DataRow In TmpDT.Rows
|
||||
Row("CveSubProyecto") = CveSubProyecto
|
||||
Row("SubProyecto") = SubProyecto
|
||||
Next
|
||||
End If
|
||||
|
||||
GvPS.DataSource = TmpDT
|
||||
DtInv = TmpDT.Copy.FiltraParametros("CveTipoPS = 2")
|
||||
GvPS.DataBind()
|
||||
UpPS.Update()
|
||||
End Sub
|
||||
Private Sub CargaFolios()
|
||||
If ExFolioFactura Then
|
||||
Exit Sub
|
||||
|
||||
Reference in New Issue
Block a user