Merge branch 'master' of http://oirigoyen@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -1,32 +1,42 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepEntradasUsadosClientes.aspx.vb" Inherits="Acumuladores_RepEntradasUsadosClientes" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepEntradasUsadosClientes.aspx.vb" Inherits="Acumuladores_RepEntradasUsadosClientes" %>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" Runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" Runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" Runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" Runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
|
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton runat="server" ID="BtnImprimir" OnClick="BtnImprimir_Click" data-toggle="tooltip" data-placement="left" title="Agregar un Defecto" Text="<i class='fa fa-file-pdf-o'></i>Imprimir"></asp:LinkButton>
|
||||||
|
</li>
|
||||||
|
</ContentTemplate>
|
||||||
|
<Triggers>
|
||||||
|
<asp:PostBackTrigger ControlID="BtnImprimir" />
|
||||||
|
</Triggers>
|
||||||
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" Runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" Runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" Runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
<div class="portlet-title portlet-filterT smalltitle">
|
<div class="portlet-title portlet-filterT smalltitle">
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" />
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" />
|
||||||
<a href="javascript;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
<a href="javascript;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
||||||
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
<div class="titlefiltros caption">
|
<div class="titlefiltros caption">
|
||||||
<div class="col-md-1 truncate v-center" style="text-align: right!important">Almacen:</div>
|
<div class="col-md-1 truncate v-center" style="text-align: right!important">Almacen:</div>
|
||||||
<div class="col-md-2 v-center">
|
<div class="col-md-2 v-center">
|
||||||
<asp:ListBox ID="DdlAlmacen" CssClass="form-control input-sm select2me" DataTextField="Almacen" DataValueField="CveAlmacen" Style="width: 100%;" runat="server"></asp:ListBox>
|
<asp:ListBox ID="DdlAlmacen" CssClass="form-control input-sm select2me" DataTextField="Almacen" DataValueField="CveAlmacen" Style="width: 100%;" runat="server"></asp:ListBox>
|
||||||
</div>
|
</div>
|
||||||
<div class="row v-center">
|
<div class="row v-center">
|
||||||
<div class="col-md-1 truncate" style="text-align: right!important">Fecha Inicio:</div>
|
<div class="col-md-1 truncate" style="text-align: right!important">Fecha Inicio:</div>
|
||||||
<div class="col-md-1 v-center">
|
<div class="col-md-1 v-center">
|
||||||
@@ -50,16 +60,27 @@
|
|||||||
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="TxtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="TxtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFechaF" PopupButtonID="ImgFechaF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFechaF" PopupButtonID="ImgFechaF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
<asp:UpdatePanel ID="UpDatos" UpdateMode="Conditional" runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:GridView runat="server" ID="GvDatos" data-sort="true" AutoGenerateColumns="False" EmptyDataText="No se encontraron datos con los filtros seleccionados" ToolTip="Listado de Movimientos" DataKeyNames="Codigo,Codigo_Clientes,Total" CssClass="Widthall table table-striped table-hover ScrollAD" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField HeaderText="Tipo" DataField="Codigo"/>
|
||||||
|
<asp:BoundField HeaderText="Clientes/Grupos" DataField="Codigo_Clientes"/>
|
||||||
|
<asp:BoundField HeaderText="Cantidad" DataField="Total"/>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<asp:GridView runat="server" id="GvDatos"></asp:GridView>
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" Runat="Server">
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,20 @@
|
|||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
|
Imports System.Data
|
||||||
Imports System
|
Imports System
|
||||||
|
Imports Microsoft.Reporting.WebForms
|
||||||
|
|
||||||
Partial Class Acumuladores_RepEntradasUsadosClientes
|
Partial Class Acumuladores_RepEntradasUsadosClientes
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
|
|
||||||
|
Private Property DatosEntradasUsadosClientes() As DataTable
|
||||||
|
Get
|
||||||
|
Return CType(ViewState("DatosEntradasUsados"), DataTable)
|
||||||
|
End Get
|
||||||
|
Set(value As DataTable)
|
||||||
|
ViewState("DatosEntradasUsados") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Private Sub Acumuladores_EntradasUsados_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Private Sub Acumuladores_EntradasUsados_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
|
|
||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
@@ -38,11 +49,44 @@ Partial Class Acumuladores_RepEntradasUsadosClientes
|
|||||||
Dim Acum As New ClsAcumuladores
|
Dim Acum As New ClsAcumuladores
|
||||||
|
|
||||||
If Acum.EntradasUsadosClientesRep(CveAlmacen, FechaI, FechaF, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
If Acum.EntradasUsadosClientesRep(CveAlmacen, FechaI, FechaF, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||||
GvDatos.datasource = Acum.DtResultados
|
GvDatos.DataSource = Acum.DtResultados
|
||||||
|
DatosEntradasUsadosClientes = Acum.DtResultados.FiltraParametros("Codigo_Clientes <> 'Total:'")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Acum.Dispose()
|
Acum.Dispose()
|
||||||
GvDatos.databind
|
GvDatos.DataBind()
|
||||||
|
UpDatos.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub GvDatos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
||||||
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
|
||||||
|
If e.Row.DBCampo("EsHeader").ToString = "-1" Then
|
||||||
|
e.Row.CssClass = "SubTotales2"
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub BtnImprimir_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
|
||||||
|
Dim Dia As String = {"lunes", "martes", "miércoles", "jueves", "viernes", "sábado", "domingo"}(If((Weekday(Today) - 2) = -1, 7, Weekday(Today) - 2))
|
||||||
|
Dim Mes As String = {"enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"}(Month(Today) - 1)
|
||||||
|
|
||||||
|
Dim FechaConFormato As String = String.Format("{0}, {1} de {2} de {3}", Dia, Month(Today), Mes, Year(Today))
|
||||||
|
|
||||||
|
Dim params As New List(Of ReportParameter)
|
||||||
|
|
||||||
|
params.Add(New ReportParameter("Direccion", "Tamaulipas Esq. con Guadalupe Victoria"))
|
||||||
|
params.Add(New ReportParameter("FechaConFormato", FechaConFormato))
|
||||||
|
params.Add(New ReportParameter("FechaInicial", TxtFechaI.Text))
|
||||||
|
params.Add(New ReportParameter("FechaFinal", TxtFechaF.Text))
|
||||||
|
|
||||||
|
Dim rds As New ReportDataSource With {.Name = "DataSet1", .Value = DatosEntradasUsadosClientes}
|
||||||
|
|
||||||
|
ImprimirPDF(String.Format("Empresas/{0}/Formatos/RepEntradasUsadosClientes.rdlc", UsuarioActual.CveEmpresa), DatosEntradasUsadosClientes, params, "prueba", "PDF")
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -703,7 +703,7 @@ Public Class ClsAcumuladores
|
|||||||
Public Function AddGarantiasDetalle(CveVentaDetalle As Integer, CvePS As Integer, CveFolioGarantia As Integer, CveTipoUso As Integer,
|
Public Function AddGarantiasDetalle(CveVentaDetalle As Integer, CvePS As Integer, CveFolioGarantia As Integer, CveTipoUso As Integer,
|
||||||
CodigoEnsamble As String, CodigoLinea As String, CodigoInspeccion As String,
|
CodigoEnsamble As String, CodigoLinea As String, CodigoInspeccion As String,
|
||||||
CveTipoDefecto As Integer, NumPoliza As String, Importe As Double,
|
CveTipoDefecto As Integer, NumPoliza As String, Importe As Double,
|
||||||
Consecutivo As String) As Boolean
|
Consecutivo As String, FechaAjuste As DateTime) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
SqlDataAdapter("PA_Acum_GarantiasDetalleAdd")
|
SqlDataAdapter("PA_Acum_GarantiasDetalleAdd")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -717,7 +717,8 @@ Public Class ClsAcumuladores
|
|||||||
.Add("@CveTipoDefecto", SqlDbType.Int).Value = CveTipoDefecto
|
.Add("@CveTipoDefecto", SqlDbType.Int).Value = CveTipoDefecto
|
||||||
.Add("@NumPoliza", SqlDbType.VarChar).Value = NumPoliza
|
.Add("@NumPoliza", SqlDbType.VarChar).Value = NumPoliza
|
||||||
.Add("@Importe", SqlDbType.Float).Value = Importe
|
.Add("@Importe", SqlDbType.Float).Value = Importe
|
||||||
.Add("@Consecutivo", SqlDbType.VarChar).Value = Consecutivo
|
.Add("@Consecutivo", SqlDbType.VarChar).Value = Consecutivo
|
||||||
|
.Add("@FechaAjuste", SqlDbType.DateTime).Value = FechaAjuste
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ Public Class ClsProductosServicios
|
|||||||
|
|
||||||
Public Property CvePS As Integer
|
Public Property CvePS As Integer
|
||||||
Public Property CveClasificacion As Integer
|
Public Property CveClasificacion As Integer
|
||||||
|
Public Property Clasificacion As String
|
||||||
Public Property CveUnidadMedida As Integer
|
Public Property CveUnidadMedida As Integer
|
||||||
Public Property CveSATPS As Integer
|
Public Property CveSATPS As Integer
|
||||||
Public Property SATClavePS As String
|
Public Property SATClavePS As String
|
||||||
@@ -226,6 +227,7 @@ Public Class ClsProductosServicios
|
|||||||
If Data.Rows.Count > 0 Then
|
If Data.Rows.Count > 0 Then
|
||||||
Me.CvePS = Data.Rows(0)("CvePS").ToString().ToEntero
|
Me.CvePS = Data.Rows(0)("CvePS").ToString().ToEntero
|
||||||
Me.CveClasificacion = Data.Rows(0)("CveClasificacion").ToString.ToEntero
|
Me.CveClasificacion = Data.Rows(0)("CveClasificacion").ToString.ToEntero
|
||||||
|
Me.Clasificacion = Data.Rows(0)("Clasificacion").ToString
|
||||||
CveUnidadMedida = Data.Rows(0)("CveUnidadMedida").ToString.ToEntero
|
CveUnidadMedida = Data.Rows(0)("CveUnidadMedida").ToString.ToEntero
|
||||||
CveSATPS = Data.Rows(0)("CveSATPS").ToString.ToEntero
|
CveSATPS = Data.Rows(0)("CveSATPS").ToString.ToEntero
|
||||||
Me.SATClavePS = Data.Rows(0)("SATClavePS").ToString
|
Me.SATClavePS = Data.Rows(0)("SATClavePS").ToString
|
||||||
|
|||||||
@@ -1349,7 +1349,7 @@ Namespace Modelos
|
|||||||
For Each Dr As DataRow In DtAjustes.Rows
|
For Each Dr As DataRow In DtAjustes.Rows
|
||||||
If Not ObjAcum.AddGarantiasDetalle(Dr("CveVentaDetalle").ToString.ToEntero, Dr("CvePS").ToString.ToEntero, Dr("CveFolioGarantia").ToString.ToEntero, Dr("CveTipoUso").ToString.ToEntero,
|
If Not ObjAcum.AddGarantiasDetalle(Dr("CveVentaDetalle").ToString.ToEntero, Dr("CvePS").ToString.ToEntero, Dr("CveFolioGarantia").ToString.ToEntero, Dr("CveTipoUso").ToString.ToEntero,
|
||||||
Dr("CodigoEnsamble").ToString, Dr("CodigoLinea").ToString, Dr("CodigoInspeccion").ToString, Dr("CveTipoDefecto").ToString.ToEntero,
|
Dr("CodigoEnsamble").ToString, Dr("CodigoLinea").ToString, Dr("CodigoInspeccion").ToString, Dr("CveTipoDefecto").ToString.ToEntero,
|
||||||
Dr("NumPoliza").ToString, Dr("Importe").ToString.ToDouble, Dr("Consecutivo").ToString) Then
|
Dr("NumPoliza").ToString, Dr("Importe").ToString.ToDouble, Dr("Consecutivo").ToString, Dr("FechaAjuste").ToString.ToDateTime()) Then
|
||||||
ErrorList.Add("Ocurrió un error al agregar la garantia detalle.")
|
ErrorList.Add("Ocurrió un error al agregar la garantia detalle.")
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ Public Class SIGPolizaVirtual : Implements IHttpHandler, IRequiresSessionState
|
|||||||
obj.sale_type = "01" 'PISO
|
obj.sale_type = "01" 'PISO
|
||||||
obj.sale_type_service = "01" 'PARTICULAR
|
obj.sale_type_service = "01" 'PARTICULAR
|
||||||
obj.sale_total = ObjFactura.Total
|
obj.sale_total = ObjFactura.Total
|
||||||
obj.sale_discount = ObjFactura.SubTotal
|
obj.sale_discount = 0 'ObjFactura.SubTotal
|
||||||
obj.sale_id = GuidGenerator.GenerateTimeBasedGuid().ToString()
|
obj.sale_id = GuidGenerator.GenerateTimeBasedGuid().ToString()
|
||||||
|
|
||||||
'Dim PS = ObjFactura.DtDetalle.Rows(0)
|
'Dim PS = ObjFactura.DtDetalle.Rows(0)
|
||||||
|
|||||||
@@ -6639,10 +6639,10 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
IdCtaContable = CtaProveedorExtranjera
|
IdCtaContable = CtaProveedorExtranjera
|
||||||
CveCuenta = CveCuentaProveedorExtranjera
|
CveCuenta = CveCuentaProveedorExtranjera
|
||||||
If ObjConta.AddPrePolizasDetalle(CvePrePolizaTemp, False, importeMovimientoNC, Referencia, 17, Concepto, FechaMovimiento, IdCtaContable, -1, CveCompra:=Gvr.DataKey("CveCompra").ToEntero, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimientoNC, ImporteME:=importeMovimientoNC, TipoCambio:=TipoCambioFactura, CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza) Then
|
If ObjConta.AddPrePolizasDetalle(CvePrePolizaTemp, False, importeMovimientoNC, Referencia, 272, Concepto, FechaMovimiento, IdCtaContable, -1, CveCompra:=Gvr.DataKey("CveCompra").ToEntero, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMovimientoNC, ImporteME:=importeMovimientoNC, TipoCambio:=TipoCambioFactura, CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza, CveCompraAmortizacion:=CveCompra) Then
|
||||||
IdCtaContable = CtaProveedorComplementaria
|
IdCtaContable = CtaProveedorComplementaria
|
||||||
CveCuenta = CveCuentaProveedorComplementaria
|
CveCuenta = CveCuentaProveedorComplementaria
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePolizaTemp, False, importeMNNC - importeMovimientoNC, Referencia, 206, Concepto, FechaMovimiento, IdCtaContable, -1, CveCompra:=Gvr.DataKey("CveCompra").ToEntero, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMNNC - importeMovimientoNC, ImporteME:=importeMovimientoNC, TipoCambio:=TipoCambioFactura, CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePolizaTemp, False, importeMNNC - importeMovimientoNC, Referencia, 206, Concepto, FechaMovimiento, IdCtaContable, -1, CveCompra:=Gvr.DataKey("CveCompra").ToEntero, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMNNC - importeMovimientoNC, ImporteME:=importeMovimientoNC, TipoCambio:=TipoCambioFactura, CveCuenta:=CveCuenta, Contabilizable:=SeContabiliza, CveCompraAmortizacion:=CveCompra) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -681,7 +681,7 @@ Partial Class General_SaldosIniciales
|
|||||||
|
|
||||||
Dim CveTipoPS As Integer = If(TipoPS.ToUpper = "PRODUCTO", 2, 1)
|
Dim CveTipoPS As Integer = If(TipoPS.ToUpper = "PRODUCTO", 2, 1)
|
||||||
Dim CveClasificacion As Integer = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveClasificacion", $"Clasificacion = '{Clasificacion}'").ToString.ToEntero
|
Dim CveClasificacion As Integer = GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveClasificacion", $"Clasificacion = '{Clasificacion}'").ToString.ToEntero
|
||||||
Dim CveUnidadMedida As Integer = GlobalDTUnidadesMedida(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveUnidadMedida", $"UnidadMedida = '{UnidadMedida}'").ToString.ToEntero
|
Dim CveUnidadMedida As Integer = GlobalDTUnidadesMedida(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveUnidadMedida", $"UnidadMedida = '{UnidadMedida}' OR Abreviatura = '{UnidadMedida}'").ToString.ToEntero
|
||||||
Dim CveSATPS As Integer = GlobalDTPSATPS.FiltroPrimeroValor("CveSATPS", $"SATClavePS = '{SATClavePS}'").ToString.ToEntero
|
Dim CveSATPS As Integer = GlobalDTPSATPS.FiltroPrimeroValor("CveSATPS", $"SATClavePS = '{SATClavePS}'").ToString.ToEntero
|
||||||
Dim CveTamaño As Integer = GlobalDTAcumTamaños.FiltroPrimeroValor("CveTamaño", $"Tamaño = '{Tamaño}' AND CveEmpresa = {UsuarioActual.CveEmpresa}").ToString.ToEntero
|
Dim CveTamaño As Integer = GlobalDTAcumTamaños.FiltroPrimeroValor("CveTamaño", $"Tamaño = '{Tamaño}' AND CveEmpresa = {UsuarioActual.CveEmpresa}").ToString.ToEntero
|
||||||
Dim CveClasificacion2 As Integer = GlobalDTClasificaciones2(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveClasificacion", $"Clasificacion = '{Clasificacion2}'").ToString.ToEntero
|
Dim CveClasificacion2 As Integer = GlobalDTClasificaciones2(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveClasificacion", $"Clasificacion = '{Clasificacion2}'").ToString.ToEntero
|
||||||
|
|||||||
@@ -1886,14 +1886,18 @@ Partial Class Inventarios_RecepcionEntrega
|
|||||||
Dim CveConceptoMovimientoVirtual As Integer = -1
|
Dim CveConceptoMovimientoVirtual As Integer = -1
|
||||||
Dim CveAlmacenVirtual As Integer = -1
|
Dim CveAlmacenVirtual As Integer = -1
|
||||||
Dim CveMovimientoRelacionadoVirtual As Integer = -1
|
Dim CveMovimientoRelacionadoVirtual As Integer = -1
|
||||||
|
Dim ValidaVirtual As Boolean = False
|
||||||
|
|
||||||
If TipoMovimiento = 1 Then
|
If TipoMovimiento = 1 Then
|
||||||
For Each GvRow As GridViewRow In GvDatos.Rows
|
For Each GvRow As GridViewRow In GvDatos.Rows
|
||||||
If GvRow.RowType = DataControlRowType.DataRow Then
|
If GvRow.RowType = DataControlRowType.DataRow Then
|
||||||
|
|
||||||
For Each Tam As DataRow In DtTamanios.Rows
|
If GvRow.datakey("CveTamaño").tostring.toentero > 0 Then
|
||||||
If Tam("CveTamaño").ToString() = GvRow.DataKey("CveTamaño") Then
|
ValidaVirtual = True ' si tiene tamaño, debe de tener virtual
|
||||||
Dim CvePSCargo = Tam("CvePSCargo").ToString().ToEntero()
|
Dim drr As DataRow = DtTamanios.FiltroPrimero(String.Format("CveTamaño={0}", GvRow.DataKey("CveTamaño")))
|
||||||
|
If drr IsNot Nothing Then
|
||||||
|
|
||||||
|
Dim CvePSCargo = drr("CvePSCargo").ToString().ToEntero()
|
||||||
Dim Row As DataRow = DtPSVirtual.NewRow()
|
Dim Row As DataRow = DtPSVirtual.NewRow()
|
||||||
Row("CvePS") = CvePSCargo
|
Row("CvePS") = CvePSCargo
|
||||||
Row("Cantidad") = GvRow.FCTextBox("TbCantidadF").Text.ToDecimal()
|
Row("Cantidad") = GvRow.FCTextBox("TbCantidadF").Text.ToDecimal()
|
||||||
@@ -1901,9 +1905,9 @@ Partial Class Inventarios_RecepcionEntrega
|
|||||||
Row("CveUM") = GvRow.DataKey("CveUM").ToEntero()
|
Row("CveUM") = GvRow.DataKey("CveUM").ToEntero()
|
||||||
|
|
||||||
DtPSVirtual.Rows.Add(Row)
|
DtPSVirtual.Rows.Add(Row)
|
||||||
|
|
||||||
End If
|
End If
|
||||||
Next
|
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -1911,6 +1915,7 @@ Partial Class Inventarios_RecepcionEntrega
|
|||||||
CveAlmacenVirtual = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 24).FiltroPrimeroValor("CveAlmacen", $"CveSubProyecto={CveSubProyecto}").ToEntero()
|
CveAlmacenVirtual = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 24).FiltroPrimeroValor("CveAlmacen", $"CveSubProyecto={CveSubProyecto}").ToEntero()
|
||||||
|
|
||||||
ElseIf TipoMovimiento = 2 Then
|
ElseIf TipoMovimiento = 2 Then
|
||||||
|
ValidaVirtual = True
|
||||||
Dim CveMovimientoSalidaDev As Integer = -1
|
Dim CveMovimientoSalidaDev As Integer = -1
|
||||||
If ObjInventario.GetInv_Mov(CveVentaSurtir, UsuarioActual.CveEmpresa) Then
|
If ObjInventario.GetInv_Mov(CveVentaSurtir, UsuarioActual.CveEmpresa) Then
|
||||||
Dim RowMovimiento As DataRow = ObjInventario.DtResultados.FiltroPrimero("CvePS IS NULL AND CveTipoAlmacen = 24 AND CveConcepto = 3 AND CveVenta > 0")
|
Dim RowMovimiento As DataRow = ObjInventario.DtResultados.FiltroPrimero("CvePS IS NULL AND CveTipoAlmacen = 24 AND CveConcepto = 3 AND CveVenta > 0")
|
||||||
@@ -1919,6 +1924,7 @@ Partial Class Inventarios_RecepcionEntrega
|
|||||||
CveMovimientoRelacionadoVirtual = CveMovimientoSalidaDev
|
CveMovimientoRelacionadoVirtual = CveMovimientoSalidaDev
|
||||||
Else
|
Else
|
||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
|
TextoError = "Ocurrió un error al procesar el movimiento. Por favor vuelva a intentar."
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'CARGA CONCEPTOS DEVUELTOS EN LA VENTA
|
'CARGA CONCEPTOS DEVUELTOS EN LA VENTA
|
||||||
@@ -1926,6 +1932,7 @@ Partial Class Inventarios_RecepcionEntrega
|
|||||||
DtPSVirtual = ObjInventario.DtResultados.Copy()
|
DtPSVirtual = ObjInventario.DtResultados.Copy()
|
||||||
Else
|
Else
|
||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
|
TextoError = "Ocurrió un error al procesar los movimientos de devolución. Por favor vuelva a intentar."
|
||||||
End If
|
End If
|
||||||
CveConceptoMovimientoVirtual = 18
|
CveConceptoMovimientoVirtual = 18
|
||||||
End If
|
End If
|
||||||
@@ -1953,11 +1960,16 @@ Partial Class Inventarios_RecepcionEntrega
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
ErrorMovInv = True
|
If ValidaVirtual Then
|
||||||
|
ErrorMovInv = True
|
||||||
|
TextoError = "Ocurrió un error al procesar el movimiento en almacen virtual. Por favor vuelva a intentar."
|
||||||
|
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DtPSVirtual.Rows.Count = 0 Then
|
If DtPSVirtual.Rows.Count = 0 AndAlso ValidaVirtual = True Then
|
||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
|
TextoError = "No se tienen productos para el almacen virtual."
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,30 @@
|
|||||||
|
|
||||||
<asp:UpdatePanel ID="upDatosPA_N" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="upDatosPA_N" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3 col-md-offset-1">
|
||||||
|
<div class="dashboard-stat blue">
|
||||||
|
<div class="visual"><i class="fa fa-sort-numeric-desc"></i></div>
|
||||||
|
<div class="details">
|
||||||
|
<div class="number"> <asp:Literal ID="LtlTotal" runat="server"></asp:Literal> </div>
|
||||||
|
<div class="desc">
|
||||||
|
Total Aguinaldo
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3 col-md-offset-2">
|
||||||
|
<div class="dashboard-stat green">
|
||||||
|
<div class="visual"><i class="fa fa-line-chart"></i></div>
|
||||||
|
<div class="details">
|
||||||
|
<div class="number"> <asp:Literal ID="LtldiasEjercicio" runat="server"></asp:Literal></div>
|
||||||
|
<div class="desc">
|
||||||
|
Días ejercicio
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<asp:GridView ID="GVCalcularAguinaldo" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVCalcularUtilidades" AutoGenerateColumns="False"
|
<asp:GridView ID="GVCalcularAguinaldo" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVCalcularUtilidades" AutoGenerateColumns="False"
|
||||||
DataKeyNames="Nombre,CvePersonal">
|
DataKeyNames="Nombre,CvePersonal">
|
||||||
<Columns>
|
<Columns>
|
||||||
@@ -88,13 +112,25 @@
|
|||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<ItemStyle HorizontalAlign ="Right" />
|
<ItemStyle HorizontalAlign ="Right" />
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField HeaderText="Aguinaldo Gravado">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblAguinaldoGravado" runat="server" Text='<%# Eval("AguinaldoGravado", "${0:N2}")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
<ItemStyle HorizontalAlign ="Right" />
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="Impuesto">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblAguinaldo" runat="server" Text='<%# Eval("ISR", "${0:N2}")%>'> </asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
<ItemStyle HorizontalAlign ="Right" />
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<%-- <asp:TemplateField HeaderText="Gravadas">
|
<%-- <asp:TemplateField HeaderText="Gravadas">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="lbluGravadas" runat="server" Text='<%# Eval("UGravadas", "${0:N2}")%>'> </asp:Label>
|
<asp:Label ID="lbluGravadas" runat="server" Text='<%# Eval("ISR", "${0:N2}")%>'> </asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="ISR">
|
<asp:TemplateField HeaderText="ISR">
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ public partial class Nomina_Aguinaldo : ClsPaginas
|
|||||||
objnom.GetCalculoAguinaldo(ejercicio, UsuarioActual.CveEmpresa, 0, CveTipoPeriodo, CvePeriodo);
|
objnom.GetCalculoAguinaldo(ejercicio, UsuarioActual.CveEmpresa, 0, CveTipoPeriodo, CvePeriodo);
|
||||||
DTAguinaldos = objnom.DtResultados;
|
DTAguinaldos = objnom.DtResultados;
|
||||||
GVCalcularAguinaldo.DataSource = DTAguinaldos;
|
GVCalcularAguinaldo.DataSource = DTAguinaldos;
|
||||||
|
LtlTotal.Text = string.Format("{0:N2}", DTAguinaldos.SUM("Aguinaldo"));
|
||||||
|
LtldiasEjercicio.Text = string.Format("{0}/12/31", ejercicio).ToDate().DayOfYear.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
GVCalcularAguinaldo.DataBind();
|
GVCalcularAguinaldo.DataBind();
|
||||||
|
|||||||
@@ -780,6 +780,86 @@
|
|||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
|
|
||||||
|
<ajax:TabPanel ID="TabFonacot" runat="server" HeaderText="Fonacot">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="portlet light bordered xspadding" id="porletFonacot">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="fa fa-home font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">Fonacot</span>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
<asp:LinkButton ID="LnkGuardarFonacot" OnClick="LnkGuardarFonacot_Click" runat="server" Text="Guardar" class="btn btn-primary" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body form">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox CssClass="form-control" ID="TxtFonNumCredito" runat="server" MaxLength="20"></asp:TextBox>
|
||||||
|
<asp:Label AssociatedControlID="TxtFonNumCredito" runat="server" Text="Número de crédito"></asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox CssClass="form-control" ID="TxtFonDescripcion" runat="server" MaxLength="20"></asp:TextBox>
|
||||||
|
<asp:Label AssociatedControlID="TxtFonDescripcion" runat="server" Text="Descripción"></asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="">
|
||||||
|
<asp:Label AssociatedControlID="DdlFonTipoAplicacion" CssClass="ddlInfolabel" runat="server" Text="Tipo Aplicación"></asp:Label>
|
||||||
|
|
||||||
|
<asp:DropDownList ID="DdlFonTipoAplicacion" AutoPostBack="true" runat="server" Class="form-control select2me" Width="100%">
|
||||||
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Fonacot(Importe fijo)" Value="3001"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Fonacot(Por días Labarados)" Value="3002"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox CssClass="form-control" ID="TxtFonValor" runat="server" MaxLength="20"></asp:TextBox>
|
||||||
|
<asp:Label AssociatedControlID="TxtFonValor" runat="server" Text="Valor"></asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright " style="width: 120px !important; display: inline-block;">
|
||||||
|
<asp:TextBox CssClass="form-control" ID="TxtFonFechaInicio" runat="server" MaxLength="20"></asp:TextBox>
|
||||||
|
<asp:Label AssociatedControlID="TxtFonFechaInicio" runat="server" Text="Fecha Inicio"></asp:Label>
|
||||||
|
<asp:RequiredFieldValidator runat="server" ID="rfvFonFechaFEstFin" ControlToValidate="TxtFonFechaInicio" ErrorMessage="Debe ingresar una fecha" ValidationGroup="vgEstFon" />
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFonFechaFEstFin" runat="server" TargetControlID="TxtFonFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="CEEFonFechaFEstFin" TargetControlID="TxtFonFechaInicio" PopupButtonID="LnkFonFechaFEstFin" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
</div>
|
||||||
|
<div style="display: inline-block; vertical-align: top; padding-top: 10px;">
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="LnkFonFechaFEstFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div class="">
|
||||||
|
<asp:Label AssociatedControlID="ChkFonacot" runat="server" Text="Estado (Activo)"></asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<asp:CheckBox ID="ChkFonacot" CssClass="chksino" runat="server" Text=" " />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</ajax:TabPanel>
|
||||||
<ajax:TabPanel ID="TabMovtosPermanentes" runat="server" HeaderText="Movimientos Permanentes">
|
<ajax:TabPanel ID="TabMovtosPermanentes" runat="server" HeaderText="Movimientos Permanentes">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:UpdatePanel ID="UpMovtosPermanentes" UpdateMode="Conditional" runat="server">
|
<asp:UpdatePanel ID="UpMovtosPermanentes" UpdateMode="Conditional" runat="server">
|
||||||
|
|||||||
@@ -1049,6 +1049,28 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
ChkInfo.Checked = frow["estatus"].ToString().ToUpper().Contiene("1", "TRUE");
|
ChkInfo.Checked = frow["estatus"].ToString().ToUpper().Contiene("1", "TRUE");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
frow = objper.DtResultados.FiltroPrimero("CveSistema =4");
|
||||||
|
TxtFonValor.Text = "";
|
||||||
|
DdlFonTipoAplicacion.SelectedValueExist("-1");
|
||||||
|
TxtFonDescripcion.Text = "";
|
||||||
|
TxtFonNumCredito.Text = "";
|
||||||
|
TxtFonFechaInicio.Text = "";
|
||||||
|
ChkFonacot.Checked = false;
|
||||||
|
if (frow != null)
|
||||||
|
{
|
||||||
|
|
||||||
|
TxtFonValor.Text = String.Format("{0:###,###.##}", frow["Importe"]);
|
||||||
|
DdlFonTipoAplicacion.SelectedValueExist(frow["TipoAplicacion"].ToString());
|
||||||
|
|
||||||
|
TxtFonDescripcion.Text = String.Format("{0}", frow["Descripcion02"]);
|
||||||
|
TxtFonNumCredito.Text = String.Format("{0}", frow["Descripcion01"]);
|
||||||
|
TxtFonFechaInicio.Text = String.Format("{0:dd/MM/yyyy}", frow["FInicioAplicacion"]);
|
||||||
|
ChkFonacot.Checked = frow["estatus"].ToString().ToUpper().Contiene("1", "TRUE");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
@@ -1168,7 +1190,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
string FechaInicio = "";
|
string FechaInicio = "";
|
||||||
string FechaFin = "";
|
string FechaFin = "";
|
||||||
string DiasRetardos = "";
|
string DiasRetardos = "";
|
||||||
|
string DiasIncapacidad = "";
|
||||||
{
|
{
|
||||||
DataRow drow = dtempleados.FiltroPrimero(string.Format("CvePersonal = {0}", SRCvePersonal));
|
DataRow drow = dtempleados.FiltroPrimero(string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||||
if (drow != null)
|
if (drow != null)
|
||||||
@@ -1179,6 +1201,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
FechaInicio = string.Format("{0:dd/MM/yyyy}", drow["FechaInicio"]);
|
FechaInicio = string.Format("{0:dd/MM/yyyy}", drow["FechaInicio"]);
|
||||||
FechaFin = string.Format("{0:dd/MM/yyyy}", drow["FechaFin"]);
|
FechaFin = string.Format("{0:dd/MM/yyyy}", drow["FechaFin"]);
|
||||||
DiasRetardos = string.Format("{0}", drow["DiasRetardos"].ToString().ToEntero());
|
DiasRetardos = string.Format("{0}", drow["DiasRetardos"].ToString().ToEntero());
|
||||||
|
DiasIncapacidad = string.Format("{0}", drow["DiasIncapacidad"].ToString().ToEntero());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//string Codigo = "";
|
//string Codigo = "";
|
||||||
@@ -1195,6 +1218,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
NSS = drow["NSS"].ToString();
|
NSS = drow["NSS"].ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("DiasIncapacidad", DiasIncapacidad));
|
||||||
parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("Codigo", CodigoEmpleado));
|
parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("Codigo", CodigoEmpleado));
|
||||||
parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("NombreCompleto", NombreCompleto));
|
parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("NombreCompleto", NombreCompleto));
|
||||||
parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("RFC", RFC));
|
parametros.Add(new Microsoft.Reporting.WebForms.ReportParameter("RFC", RFC));
|
||||||
@@ -3025,4 +3049,33 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
UpMovtosPermanentes.Update();
|
UpMovtosPermanentes.Update();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
protected void LnkGuardarFonacot_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
double importe = TxtFonValor.Text.ToDouble();
|
||||||
|
int TipoAplicacion = DdlFonTipoAplicacion.SelectedValue.ToEntero();
|
||||||
|
int NoPagos = 0;
|
||||||
|
double SaldoIni = 0;
|
||||||
|
string descripcion02 = TxtFonDescripcion.Text;
|
||||||
|
string descripcion01 = TxtFonNumCredito.Text;
|
||||||
|
string fecha = TxtFonFechaInicio.Text.Replace("_", "");
|
||||||
|
int estatus = ChkFonacot.Checked ? 1 : 0;
|
||||||
|
if (fecha.Length > 8)
|
||||||
|
fecha = fecha.ToDateTime().ToString("yyyy/MM/dd");
|
||||||
|
else
|
||||||
|
fecha = "";
|
||||||
|
bool continuar = true;
|
||||||
|
using (ClsRH ObjPersonal = new ClsRH())
|
||||||
|
{
|
||||||
|
if (!ObjPersonal.AddConcepto(SRCvePersonal, -1, importe, TipoAplicacion, NoPagos, SaldoIni, UsuarioActual.CveUsuario, 4, descripcion01, descripcion02, fecha, "", estatus, UsuarioActual.CveEmpresa))
|
||||||
|
continuar = false;
|
||||||
|
}
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
LnkConsultar_Click(null, null);
|
||||||
|
mostrarConceptos();
|
||||||
|
Alert("Se actualizo el calculo de fonacot");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -156,7 +156,7 @@
|
|||||||
<asp:CheckBox ID="AplicaNoAplica" runat="server" CssClass="make-switchsd" data-size="small" Text=" " Checked="true" />
|
<asp:CheckBox ID="AplicaNoAplica" runat="server" CssClass="make-switchsd" data-size="small" Text=" " Checked="true" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4" style="display:none;">
|
<div class="col-md-4" >
|
||||||
<label for="AplicaFalta">Aplica Falta:</label><br />
|
<label for="AplicaFalta">Aplica Falta:</label><br />
|
||||||
<asp:CheckBox ID="AplicaFalta" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
<asp:CheckBox ID="AplicaFalta" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
||||||
</div>
|
</div>
|
||||||
@@ -164,16 +164,18 @@
|
|||||||
<label for="AplicaVacacion">Aplica Vacaciones:</label><br />
|
<label for="AplicaVacacion">Aplica Vacaciones:</label><br />
|
||||||
<asp:CheckBox ID="AplicaVacacion" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
<asp:CheckBox ID="AplicaVacacion" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label for="AplicaIncapacidad">Aplica Incapacidad:</label><br />
|
<label for="AplicaIncapacidad">Aplica Incapacidad:</label><br />
|
||||||
<asp:CheckBox ID="AplicaIncapacidad" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
<asp:CheckBox ID="AplicaIncapacidad" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label for="AplicaRetardo">Aplica Retardo:</label><br />
|
<label for="AplicaRetardo">Aplica Retardo:</label><br />
|
||||||
<asp:CheckBox ID="AplicaRetardo" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
<asp:CheckBox ID="AplicaRetardo" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label for="AplicaAguinaldo">Aplica Aguinaldo:</label><br />
|
<label for="AplicaAguinaldo">Aplica Aguinaldo:</label><br />
|
||||||
<asp:CheckBox ID="AplicaAguinaldo" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
<asp:CheckBox ID="AplicaAguinaldo" runat="server" CssClass="chksino" data-size="small" Text=" " Checked="true" />
|
||||||
@@ -208,7 +210,7 @@
|
|||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
<script language="javascript" type="text/javascript">
|
<script type="text/javascript">
|
||||||
function C() {
|
function C() {
|
||||||
return confirm('¿Está seguro que desea eliminar el tipo de Asistencias/Inasistencias?');
|
return confirm('¿Está seguro que desea eliminar el tipo de Asistencias/Inasistencias?');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Partial Class RH_CatAsistenciasInasistencias
|
|||||||
BtnAgregarTiposDModal.Visible = True
|
BtnAgregarTiposDModal.Visible = True
|
||||||
CheckActiveSection.Visible = False
|
CheckActiveSection.Visible = False
|
||||||
AplicaNoAplica.Checked = False
|
AplicaNoAplica.Checked = False
|
||||||
AplicaFalta.Checked = False
|
AplicaFalta.Checked = True
|
||||||
AplicaVacacion.Checked = False
|
AplicaVacacion.Checked = False
|
||||||
AplicaIncapacidad.Checked = False
|
AplicaIncapacidad.Checked = False
|
||||||
AplicaRetardo.Checked = False
|
AplicaRetardo.Checked = False
|
||||||
@@ -78,6 +78,7 @@ Partial Class RH_CatAsistenciasInasistencias
|
|||||||
|
|
||||||
Protected Sub LbAgregar_Click(sender As Object, e As System.EventArgs) Handles BtnAgregarTiposDModal.Click 'esta funcion es la que agrega un nuevo motivo de baja se activa con el boton "Agregar" de la ventana modal"
|
Protected Sub LbAgregar_Click(sender As Object, e As System.EventArgs) Handles BtnAgregarTiposDModal.Click 'esta funcion es la que agrega un nuevo motivo de baja se activa con el boton "Agregar" de la ventana modal"
|
||||||
Dim ObjAsistenciasInasistencias As New ClsRH
|
Dim ObjAsistenciasInasistencias As New ClsRH
|
||||||
|
Dim chkAplicaFalta As Boolean = AplicaFalta.Checked
|
||||||
Dim chkAplicaNoAplica As Boolean = Not AplicaNoAplica.Checked
|
Dim chkAplicaNoAplica As Boolean = Not AplicaNoAplica.Checked
|
||||||
Dim chkAplicaVacacion As Boolean = AplicaVacacion.Checked
|
Dim chkAplicaVacacion As Boolean = AplicaVacacion.Checked
|
||||||
Dim chkAplicaIncapacidad As Boolean = AplicaIncapacidad.Checked
|
Dim chkAplicaIncapacidad As Boolean = AplicaIncapacidad.Checked
|
||||||
@@ -86,7 +87,7 @@ Partial Class RH_CatAsistenciasInasistencias
|
|||||||
Dim chkAplicaUtilidades As Boolean = AplicaUtilidades.Checked
|
Dim chkAplicaUtilidades As Boolean = AplicaUtilidades.Checked
|
||||||
|
|
||||||
|
|
||||||
If ObjAsistenciasInasistencias.AddAsistenciasInasistencias(TipoTxt.Text.Trim, chkAplicaNoAplica, chkAplicaNoAplica, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
|
If ObjAsistenciasInasistencias.AddAsistenciasInasistencias(TipoTxt.Text.Trim, chkAplicaFalta, chkAplicaNoAplica, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
|
||||||
chkAplicaVacacion, chkAplicaIncapacidad, chkAplicaRetardo, chkAplicaAguinaldo, chkAplicaUtilidades) Then
|
chkAplicaVacacion, chkAplicaIncapacidad, chkAplicaRetardo, chkAplicaAguinaldo, chkAplicaUtilidades) Then
|
||||||
TipoTxt.Text = ""
|
TipoTxt.Text = ""
|
||||||
Alert("El nuevo Tipo Asistencias/Inasistencias se guardó correctamente.", TipoMensaje.MsgInformacion)
|
Alert("El nuevo Tipo Asistencias/Inasistencias se guardó correctamente.", TipoMensaje.MsgInformacion)
|
||||||
@@ -121,6 +122,7 @@ chkAplicaVacacion, chkAplicaIncapacidad, chkAplicaRetardo, chkAplicaAguinaldo, c
|
|||||||
|
|
||||||
|
|
||||||
AplicaFalta.Checked = If(GvRow.DataKey("AplicaFalta") = "Aplica", True, False)
|
AplicaFalta.Checked = If(GvRow.DataKey("AplicaFalta") = "Aplica", True, False)
|
||||||
|
|
||||||
AplicaVacacion.Checked = If(GvRow.DataKey("AplicaVacacion") = "Aplica", True, False)
|
AplicaVacacion.Checked = If(GvRow.DataKey("AplicaVacacion") = "Aplica", True, False)
|
||||||
AplicaIncapacidad.Checked = If(GvRow.DataKey("AplicaIncapacidad") = "Aplica", True, False)
|
AplicaIncapacidad.Checked = If(GvRow.DataKey("AplicaIncapacidad") = "Aplica", True, False)
|
||||||
AplicaRetardo.Checked = If(GvRow.DataKey("AplicaRetardo") = "Aplica", True, False)
|
AplicaRetardo.Checked = If(GvRow.DataKey("AplicaRetardo") = "Aplica", True, False)
|
||||||
@@ -142,7 +144,7 @@ chkAplicaVacacion, chkAplicaIncapacidad, chkAplicaRetardo, chkAplicaAguinaldo, c
|
|||||||
Dim ObjAsistenciasInasistencias As New ClsRH
|
Dim ObjAsistenciasInasistencias As New ClsRH
|
||||||
Dim Tipo As String = TipoTxt.Text.Trim
|
Dim Tipo As String = TipoTxt.Text.Trim
|
||||||
Dim Estatus As Boolean = ChkEstatus.Checked
|
Dim Estatus As Boolean = ChkEstatus.Checked
|
||||||
Dim AplicaFalta As Boolean = Not AplicaNoAplica.Checked
|
Dim ckAplicaFalta As Boolean = Not AplicaFalta.Checked
|
||||||
Dim AplicaAsistencia As Boolean = AplicaNoAplica.Checked
|
Dim AplicaAsistencia As Boolean = AplicaNoAplica.Checked
|
||||||
Dim CveAsistenciasInasistencias As Integer = CveTipoAsisAEditar 'aquí obtenemos el valor de la propiedad que utilizamos en el metodo "GvDatos_RowEditing"
|
Dim CveAsistenciasInasistencias As Integer = CveTipoAsisAEditar 'aquí obtenemos el valor de la propiedad que utilizamos en el metodo "GvDatos_RowEditing"
|
||||||
|
|
||||||
@@ -155,7 +157,7 @@ chkAplicaVacacion, chkAplicaIncapacidad, chkAplicaRetardo, chkAplicaAguinaldo, c
|
|||||||
Dim chkAplicaUtilidades As Boolean = AplicaUtilidades.Checked
|
Dim chkAplicaUtilidades As Boolean = AplicaUtilidades.Checked
|
||||||
|
|
||||||
|
|
||||||
If ObjAsistenciasInasistencias.UpdateAsistenciasInasistencias(Tipo, AplicaFalta, AplicaAsistencia, Estatus, CveAsistenciasInasistencias,
|
If ObjAsistenciasInasistencias.UpdateAsistenciasInasistencias(Tipo, ckAplicaFalta, AplicaAsistencia, Estatus, CveAsistenciasInasistencias,
|
||||||
chkAplicaVacacion, chkAplicaIncapacidad, chkAplicaRetardo, chkAplicaAguinaldo, chkAplicaUtilidades) Then
|
chkAplicaVacacion, chkAplicaIncapacidad, chkAplicaRetardo, chkAplicaAguinaldo, chkAplicaUtilidades) Then
|
||||||
GvDatos.EditIndex = -1
|
GvDatos.EditIndex = -1
|
||||||
ViewState("DTAsistenciasInasistencias") = ObjAsistenciasInasistencias.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
ViewState("DTAsistenciasInasistencias") = ObjAsistenciasInasistencias.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
||||||
|
|||||||
@@ -1727,6 +1727,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<asp:GridView ID="GVAsistencia" runat="server" AutoGenerateColumns="false" DataKeyNames="CvePersonal,CveAsistencia" ShowHeader="false"
|
<asp:GridView ID="GVAsistencia" runat="server" AutoGenerateColumns="false" DataKeyNames="CvePersonal,CveAsistencia" ShowHeader="false"
|
||||||
|
data-heighterror="550"
|
||||||
EmptyDataText="No se encontraron registros de Asistencias con los filtros seleccionados" ToolTip="Listado de Asistencias" data-rows="0"
|
EmptyDataText="No se encontraron registros de Asistencias con los filtros seleccionados" ToolTip="Listado de Asistencias" data-rows="0"
|
||||||
CssClass="table table-striped table-advance table-hover Widthall mysmallbtn ScrollAD" data-tableheader="#GvAsistenciaHeader" GridLines="None">
|
CssClass="table table-striped table-advance table-hover Widthall mysmallbtn ScrollAD" data-tableheader="#GvAsistenciaHeader" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ Imports Microsoft.Reporting.WebForms
|
|||||||
Imports System.Globalization
|
Imports System.Globalization
|
||||||
|
|
||||||
Partial Class RH_Personal
|
Partial Class RH_Personal
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
|
|
||||||
#Region "P R O P I E D A D E S"
|
#Region "P R O P I E D A D E S"
|
||||||
Private Property DTCuentasBancos As DataTable
|
Private Property DTCuentasBancos As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -321,14 +321,14 @@ Partial Class RH_Personal
|
|||||||
Set(value As Integer)
|
Set(value As Integer)
|
||||||
ViewState("CveMovimientoDetalleUniforme") = value
|
ViewState("CveMovimientoDetalleUniforme") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "V A C A C I O N E S - P E R M I S O S"
|
#Region "V A C A C I O N E S - P E R M I S O S"
|
||||||
|
|
||||||
Private Property VacInicioPeriodo As Date
|
Private Property VacInicioPeriodo As Date
|
||||||
Get
|
Get
|
||||||
If ViewState("VacInicioPeriodo") Is Nothing Then
|
If ViewState("VacInicioPeriodo") Is Nothing Then
|
||||||
@@ -626,137 +626,137 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
ViewState("Orden") = ""
|
ViewState("Orden") = ""
|
||||||
ViewState("Orden1") = ""
|
ViewState("Orden1") = ""
|
||||||
Session("FileUpload") = ""
|
Session("FileUpload") = ""
|
||||||
ViewState("Archivo") = ""
|
ViewState("Archivo") = ""
|
||||||
DTConsumos = Nothing
|
DTConsumos = Nothing
|
||||||
|
|
||||||
If UsuarioActual.CveRol = 1 Or UsuarioActual.CveEmpresa = 74 Then
|
If UsuarioActual.CveRol = 1 Or UsuarioActual.CveEmpresa = 74 Then
|
||||||
TabGES.Visible = True
|
TabGES.Visible = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
SetValues()
|
||||||
|
'SetPermisos()
|
||||||
|
|
||||||
|
CargaEscolaridad()
|
||||||
|
CargaEstadoCivil()
|
||||||
|
CargaDepartamento()
|
||||||
|
CargaPuestos()
|
||||||
|
CargaEstatusPersonal()
|
||||||
|
CargaGenero()
|
||||||
|
CargaMotivoBaja()
|
||||||
|
CargaRuta()
|
||||||
|
CargaTiposContrato()
|
||||||
|
CargaTipoPeriodo()
|
||||||
|
CargaTurno()
|
||||||
|
CargaJornadas()
|
||||||
|
CargaProyecto()
|
||||||
|
CargaTiposAsistencia()
|
||||||
|
'CargaMotivoHoraExtra()
|
||||||
|
CargaMotivosHorasExtras()
|
||||||
|
CargaSupervisores()
|
||||||
|
CargaMetodosPago()
|
||||||
|
CargaTipoRegimen()
|
||||||
|
CargaRiesgoPuesto()
|
||||||
|
CargaBancos()
|
||||||
|
CargaSubProyectosZona()
|
||||||
|
CargaEstados(1)
|
||||||
|
CargaMonedas()
|
||||||
|
CargaSuperioresOrganigrama()
|
||||||
|
CargaUsuariosNomina()
|
||||||
|
CargaComboUniformes()
|
||||||
|
CargaPermisos()
|
||||||
|
CargaCombosBuzon()
|
||||||
|
CargaPermisosReemplazos()
|
||||||
|
|
||||||
|
|
||||||
|
If Request("CvePersonal") IsNot Nothing AndAlso IsNumeric(Request("CvePersonal")) AndAlso Request("CvePersonal").ToEntero > 0 Then
|
||||||
|
ViewState("CvePersonal") = Request("CvePersonal")
|
||||||
|
'CvePersonal = ViewState("CvePersonal").ToString.ToEntero
|
||||||
|
CargaDatos()
|
||||||
|
CargaDocumentacionFirmaDecontratos()
|
||||||
|
'LnkAddLicencias.Visible = True
|
||||||
|
'TabLicencias.Visible = True
|
||||||
|
'Configuración de Modalidad Update
|
||||||
|
BtnGuardar.Text = "Guardar Cambios"
|
||||||
|
LtlTitulo.Text = "Consulta de Personal:"
|
||||||
|
If UsuarioActual.CveRol = 1 Then
|
||||||
|
'ImgImprimir.Visible = True
|
||||||
|
ImgImprimirExpediente.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
SetValues()
|
'ImgAddObs.Attributes.Add("onclick", "javascript: PosicionaObjeto(this.id,'DivEventoBitacora',null,-250,-250); $('#DivEventoBitacora').show(1000); ")
|
||||||
'SetPermisos()
|
If Request("Opt") IsNot Nothing AndAlso IsNumeric(Request("Opt")) Then Tab.ActiveTabIndex = Request("Opt").ToEntero - 1
|
||||||
|
|
||||||
CargaEscolaridad()
|
'Inicia Permisos
|
||||||
CargaEstadoCivil()
|
If UsuarioActual.TienePermisoProceso(228) Then
|
||||||
CargaDepartamento()
|
GVAsistencia.Columns(10).Visible = True
|
||||||
CargaPuestos()
|
End If
|
||||||
CargaEstatusPersonal()
|
'Fin Permisos
|
||||||
CargaGenero()
|
HlEvento.Visible = True
|
||||||
CargaMotivoBaja()
|
HlEvento.NavigateUrl = "/OI/PopUpAgenda.aspx?CveTipoEvento=2&CvePersonal=" & CvePersonal & "&TB_iframe=true&height=370&width=600;"
|
||||||
CargaRuta()
|
|
||||||
CargaTiposContrato()
|
|
||||||
CargaTipoPeriodo()
|
|
||||||
CargaTurno()
|
|
||||||
CargaJornadas()
|
|
||||||
CargaProyecto()
|
|
||||||
CargaTiposAsistencia()
|
|
||||||
'CargaMotivoHoraExtra()
|
|
||||||
CargaMotivosHorasExtras()
|
|
||||||
CargaSupervisores()
|
|
||||||
CargaMetodosPago()
|
|
||||||
CargaTipoRegimen()
|
|
||||||
CargaRiesgoPuesto()
|
|
||||||
CargaBancos()
|
|
||||||
CargaSubProyectosZona()
|
|
||||||
CargaEstados(1)
|
|
||||||
CargaMonedas()
|
|
||||||
CargaSuperioresOrganigrama()
|
|
||||||
CargaUsuariosNomina()
|
|
||||||
CargaComboUniformes()
|
|
||||||
CargaPermisos()
|
|
||||||
CargaCombosBuzon()
|
|
||||||
CargaPermisosReemplazos()
|
|
||||||
|
|
||||||
|
CargaViaticosPersonal()
|
||||||
|
|
||||||
If Request("CvePersonal") IsNot Nothing AndAlso IsNumeric(Request("CvePersonal")) AndAlso Request("CvePersonal").ToEntero > 0 Then
|
divBitacora.Visible = True
|
||||||
ViewState("CvePersonal") = Request("CvePersonal")
|
CargaGvBitacora()
|
||||||
'CvePersonal = ViewState("CvePersonal").ToString.ToEntero
|
Else
|
||||||
CargaDatos()
|
|
||||||
CargaDocumentacionFirmaDecontratos()
|
'Configuración de Modalidad Insert
|
||||||
'LnkAddLicencias.Visible = True
|
|
||||||
'TabLicencias.Visible = True
|
ImgAddObs.Visible = False
|
||||||
'Configuración de Modalidad Update
|
LblFechaCaptura.Text = Now.ToShortDateString()
|
||||||
BtnGuardar.Text = "Guardar Cambios"
|
LblUsuarioCapturo.Text = UsuarioActual.Usuario
|
||||||
LtlTitulo.Text = "Consulta de Personal:"
|
ViewState("CvePersonal") = -1
|
||||||
If UsuarioActual.CveRol = 1 Then
|
BtnEliminar.Visible = False
|
||||||
'ImgImprimir.Visible = True
|
CarcaConceptosNomina()
|
||||||
ImgImprimirExpediente.Visible = True
|
For Each Gvr As GridViewRow In GVConceptos.Rows
|
||||||
|
If CBool(Gvr.DataKey("Obligatorio")) Then
|
||||||
|
Gvr.FCCheckBox("ChkAplica").Checked = True
|
||||||
|
Else
|
||||||
|
Gvr.Visible = False
|
||||||
End If
|
End If
|
||||||
|
Next
|
||||||
|
'Inicia Permisos
|
||||||
|
'Fin Permisos
|
||||||
|
End If
|
||||||
|
CargaCuentasBancarias()
|
||||||
|
|
||||||
'ImgAddObs.Attributes.Add("onclick", "javascript: PosicionaObjeto(this.id,'DivEventoBitacora',null,-250,-250); $('#DivEventoBitacora').show(1000); ")
|
If UsuarioActual.Empresa.Funcionalidad(568) = "1" Then
|
||||||
If Request("Opt") IsNot Nothing AndAlso IsNumeric(Request("Opt")) Then Tab.ActiveTabIndex = Request("Opt").ToEntero - 1
|
|
||||||
|
|
||||||
'Inicia Permisos
|
CrearEstructuraFamiliares()
|
||||||
If UsuarioActual.TienePermisoProceso(228) Then
|
CargaFamiliares()
|
||||||
GVAsistencia.Columns(10).Visible = True
|
|
||||||
End If
|
|
||||||
'Fin Permisos
|
|
||||||
HlEvento.Visible = True
|
|
||||||
HlEvento.NavigateUrl = "/OI/PopUpAgenda.aspx?CveTipoEvento=2&CvePersonal=" & CvePersonal & "&TB_iframe=true&height=370&width=600;"
|
|
||||||
|
|
||||||
CargaViaticosPersonal()
|
LIFamiliaresAcciones.Visible = True
|
||||||
|
DivFamiliares.Visible = True
|
||||||
|
DivPadres.Visible = False
|
||||||
|
|
||||||
divBitacora.Visible = True
|
|
||||||
CargaGvBitacora()
|
|
||||||
Else
|
|
||||||
|
|
||||||
'Configuración de Modalidad Insert
|
|
||||||
|
|
||||||
ImgAddObs.Visible = False
|
|
||||||
LblFechaCaptura.Text = Now.ToShortDateString()
|
|
||||||
LblUsuarioCapturo.Text = UsuarioActual.Usuario
|
|
||||||
ViewState("CvePersonal") = -1
|
|
||||||
BtnEliminar.Visible = False
|
|
||||||
CarcaConceptosNomina()
|
|
||||||
For Each Gvr As GridViewRow In GVConceptos.Rows
|
|
||||||
If CBool(Gvr.DataKey("Obligatorio")) Then
|
|
||||||
Gvr.FCCheckBox("ChkAplica").Checked = True
|
|
||||||
Else
|
|
||||||
Gvr.Visible = False
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
'Inicia Permisos
|
|
||||||
'Fin Permisos
|
|
||||||
End If
|
|
||||||
CargaCuentasBancarias()
|
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(568) = "1" Then
|
|
||||||
|
|
||||||
CrearEstructuraFamiliares()
|
|
||||||
CargaFamiliares()
|
|
||||||
|
|
||||||
LIFamiliaresAcciones.Visible = True
|
|
||||||
DivFamiliares.Visible = True
|
|
||||||
DivPadres.Visible = False
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'If UsuarioActual.TienePermisoProceso(84) Then 'abonar pago
|
|
||||||
' HplAbonarMasivo.Visible = True
|
|
||||||
' GvGxC.Columns(7).Visible = True
|
|
||||||
'End If
|
|
||||||
|
|
||||||
|
|
||||||
If Not CvePersonal > 0 Then
|
|
||||||
DivSuperiorInmediato.Visible = False
|
|
||||||
End If
|
|
||||||
|
|
||||||
'09/05/2018 - Si el Personal tiene consumos, muestra boton para generar reporte
|
|
||||||
If DTConsumos IsNot Nothing Then
|
|
||||||
If DTConsumos.Rows.Count > 0 Then
|
|
||||||
UpDescargaConsumos.Visible = True
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
CargaLicencias()
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
AgregarEventosAsincronosGvVacaciones()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
'If UsuarioActual.TienePermisoProceso(84) Then 'abonar pago
|
||||||
|
' HplAbonarMasivo.Visible = True
|
||||||
|
' GvGxC.Columns(7).Visible = True
|
||||||
|
'End If
|
||||||
|
|
||||||
|
|
||||||
|
If Not CvePersonal > 0 Then
|
||||||
|
DivSuperiorInmediato.Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
'09/05/2018 - Si el Personal tiene consumos, muestra boton para generar reporte
|
||||||
|
If DTConsumos IsNot Nothing Then
|
||||||
|
If DTConsumos.Rows.Count > 0 Then
|
||||||
|
UpDescargaConsumos.Visible = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
CargaLicencias()
|
||||||
|
|
||||||
|
End If
|
||||||
|
AgregarEventosAsincronosGvVacaciones()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaCuentasContables()
|
Private Sub CargaCuentasContables()
|
||||||
@@ -810,10 +810,10 @@ Partial Class RH_Personal
|
|||||||
Private Sub SetPermisos()
|
Private Sub SetPermisos()
|
||||||
'Permisos
|
'Permisos
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "Carga Combos"
|
#Region "Carga Combos"
|
||||||
|
|
||||||
Private Sub CargaEscolaridad()
|
Private Sub CargaEscolaridad()
|
||||||
DdlEscolaridad.DataSource = GlobalDTEscolaridad
|
DdlEscolaridad.DataSource = GlobalDTEscolaridad
|
||||||
DdlEscolaridad.DataBind()
|
DdlEscolaridad.DataBind()
|
||||||
@@ -1042,16 +1042,16 @@ Partial Class RH_Personal
|
|||||||
Nom.Dispose()
|
Nom.Dispose()
|
||||||
GvNominas.DataBind()
|
GvNominas.DataBind()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Asistencias"
|
#Region "Asistencias"
|
||||||
|
|
||||||
|
|
||||||
Protected Sub LnkEliminarAsistencia_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkEliminarAsistencia_Click(sender As Object, e As EventArgs)
|
||||||
Dim GvRow As GridViewRow = DirectCast((DirectCast(sender, LinkButton)).NamingContainer, GridViewRow)
|
Dim GvRow As GridViewRow = DirectCast((DirectCast(sender, LinkButton)).NamingContainer, GridViewRow)
|
||||||
Dim ObjRH As New ClsRH
|
Dim ObjRH As New ClsRH
|
||||||
@@ -1159,7 +1159,7 @@ Partial Class RH_Personal
|
|||||||
ObjPersonal.Dispose()
|
ObjPersonal.Dispose()
|
||||||
|
|
||||||
BtnConsultarAsistencia_Click(sender, e)
|
BtnConsultarAsistencia_Click(sender, e)
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
Private Sub CargaConsignacion()
|
Private Sub CargaConsignacion()
|
||||||
|
|
||||||
@@ -1758,11 +1758,11 @@ Partial Class RH_Personal
|
|||||||
DdlClienteAsignado.Attributes.Remove("onclick")
|
DdlClienteAsignado.Attributes.Remove("onclick")
|
||||||
DdlClienteAsistenciaC.Attributes.Remove("onclick")
|
DdlClienteAsistenciaC.Attributes.Remove("onclick")
|
||||||
DdlClienteAsistenciaA.Attributes.Remove("onclick")
|
DdlClienteAsistenciaA.Attributes.Remove("onclick")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "Buzón de Calidad"
|
#Region "Buzón de Calidad"
|
||||||
|
|
||||||
|
|
||||||
Private Sub CargaBuzonCalidad()
|
Private Sub CargaBuzonCalidad()
|
||||||
|
|
||||||
Dim ObjPersonal As New ClsRH
|
Dim ObjPersonal As New ClsRH
|
||||||
@@ -2098,12 +2098,12 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
GvBuzonCalidad.DataBind()
|
GvBuzonCalidad.DataBind()
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Resguardos"
|
#Region "Resguardos"
|
||||||
|
|
||||||
Protected Sub GvResguardos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvResguardos.RowDataBound
|
Protected Sub GvResguardos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvResguardos.RowDataBound
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
@@ -2126,13 +2126,13 @@ Partial Class RH_Personal
|
|||||||
e.Row.FCLiteral("LtlAF").Text = Liga & e.Row.FCLiteral("LtlAF").Text & "</a>"
|
e.Row.FCLiteral("LtlAF").Text = Liga & e.Row.FCLiteral("LtlAF").Text & "</a>"
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Nómina"
|
#Region "Nómina"
|
||||||
|
|
||||||
|
|
||||||
Private Sub CarcaConceptosNomina()
|
Private Sub CarcaConceptosNomina()
|
||||||
Dim ObjPersonal As New ClsRH
|
Dim ObjPersonal As New ClsRH
|
||||||
If ObjPersonal.GetPersonalConceptos(CvePersonal, UsuarioActual.CveEmpresa) Then
|
If ObjPersonal.GetPersonalConceptos(CvePersonal, UsuarioActual.CveEmpresa) Then
|
||||||
@@ -2185,6 +2185,10 @@ Partial Class RH_Personal
|
|||||||
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Infonavit(Porcentaje)", "5001"))
|
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Infonavit(Porcentaje)", "5001"))
|
||||||
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Infonavit(Factor Descuento)", "5002"))
|
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Infonavit(Factor Descuento)", "5002"))
|
||||||
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Infonavit(Cuota Fija)", "5003"))
|
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Infonavit(Cuota Fija)", "5003"))
|
||||||
|
|
||||||
|
ElseIf (e.Row.DBCampo("CveSistema").ToString() = "4") Then
|
||||||
|
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Fonacot(Importe fijo)", "3001"))
|
||||||
|
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Fonacot(Por días Labarados)", "3002"))
|
||||||
Else
|
Else
|
||||||
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Saldo", "1"))
|
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("Saldo", "1"))
|
||||||
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("No. Pagos", "2"))
|
e.Row.FCDropDownList("DdlTipoAplicacion").Items.Add(New ListItem("No. Pagos", "2"))
|
||||||
@@ -2193,30 +2197,30 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
|
|
||||||
If e.Row.DBCampo("TipoAplicacion").ToEntero > 5 Then
|
If e.Row.DBCampo("TipoAplicacion").ToEntero > 5 Then
|
||||||
TipoAplicacion = "2600"
|
TipoAplicacion = "2600"
|
||||||
End If
|
|
||||||
e.Row.FCDropDownList("DdlTipoAplicacion").SelectedValueExist(TipoAplicacion)
|
|
||||||
End If
|
End If
|
||||||
|
e.Row.FCDropDownList("DdlTipoAplicacion").SelectedValueExist(TipoAplicacion)
|
||||||
|
End If
|
||||||
|
|
||||||
'If e.Row.DBCampo("TipoCalculo") = "False" Then
|
'If e.Row.DBCampo("TipoCalculo") = "False" Then
|
||||||
' e.Row.FCTextBox("TxtImporte").Visible = False
|
' e.Row.FCTextBox("TxtImporte").Visible = False
|
||||||
' e.Row.FCDropDownList("DdlTipoAplicacion").Visible = False
|
' e.Row.FCDropDownList("DdlTipoAplicacion").Visible = False
|
||||||
'Else
|
'Else
|
||||||
' Select Case e.Row.DBCampo("TipoAplicacion").ToEntero
|
' Select Case e.Row.DBCampo("TipoAplicacion").ToEntero
|
||||||
' Case 1
|
' Case 1
|
||||||
' 'Saldo
|
' 'Saldo
|
||||||
' e.Row.FCLiteral("LtlSaldo").Visible = True
|
' e.Row.FCLiteral("LtlSaldo").Visible = True
|
||||||
' e.Row.FCTextBox("TxtSaldoIni").Visible = True
|
' e.Row.FCTextBox("TxtSaldoIni").Visible = True
|
||||||
' Case 2
|
' Case 2
|
||||||
' 'Numero de Pagos
|
' 'Numero de Pagos
|
||||||
' e.Row.FCLiteral("LtlNoPago").Visible = True
|
' e.Row.FCLiteral("LtlNoPago").Visible = True
|
||||||
' e.Row.FCTextBox("TxtNoPagos").Visible = True
|
' e.Row.FCTextBox("TxtNoPagos").Visible = True
|
||||||
' Case 2600
|
' Case 2600
|
||||||
' 'Permanente
|
' 'Permanente
|
||||||
' End Select
|
' End Select
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub BtnGuardarInfornavit_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnGuardarInfornavit_Click(sender As Object, e As EventArgs)
|
||||||
@@ -2299,9 +2303,9 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
ObjPersonal.Dispose()
|
ObjPersonal.Dispose()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub DdlTipoAplicacion_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlTipoAplicacion_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
Dim Ddl As DropDownList = DirectCast(sender, DropDownList)
|
Dim Ddl As DropDownList = DirectCast(sender, DropDownList)
|
||||||
|
|
||||||
@@ -2383,10 +2387,10 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "G A S T O S X C O M P R O B A R"
|
#Region "G A S T O S X C O M P R O B A R"
|
||||||
|
|
||||||
Protected Sub RBLTipoGastos_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub RBLTipoGastos_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
If RBLTipoGastos.SelectedValue = "1" Then
|
If RBLTipoGastos.SelectedValue = "1" Then
|
||||||
@@ -2475,10 +2479,10 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "E V E N T O - B I T A C O R A"
|
#Region "E V E N T O - B I T A C O R A"
|
||||||
Protected Sub GVEventoBitacora_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvEB.RowDataBound
|
Protected Sub GVEventoBitacora_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvEB.RowDataBound
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
@@ -2554,9 +2558,9 @@ Partial Class RH_Personal
|
|||||||
HttpContext.Current.Response.End()
|
HttpContext.Current.Response.End()
|
||||||
|
|
||||||
Archivo = Nothing
|
Archivo = Nothing
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub GvGxC_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvGxC.RowDataBound, GvGxCHistorial.RowDataBound
|
Protected Sub GvGxC_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvGxC.RowDataBound, GvGxCHistorial.RowDataBound
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
If e.Row.RowIndex = 1 Then
|
If e.Row.RowIndex = 1 Then
|
||||||
@@ -2609,7 +2613,7 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
#Region "TAB BANCOS"
|
#Region "TAB BANCOS"
|
||||||
Private Sub CargaMonedas()
|
Private Sub CargaMonedas()
|
||||||
DdlMoneda.DataSource = GlobalDTMonedas
|
DdlMoneda.DataSource = GlobalDTMonedas
|
||||||
@@ -2757,8 +2761,8 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
ObjCuentasBancos.Dispose()
|
ObjCuentasBancos.Dispose()
|
||||||
CargaGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString)
|
CargaGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "GRIDVIEW - CUENTAS BANCARIAS"
|
#Region "GRIDVIEW - CUENTAS BANCARIAS"
|
||||||
Protected Sub GvBancosCuentas_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvBancosCuentas.RowDataBound
|
Protected Sub GvBancosCuentas_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvBancosCuentas.RowDataBound
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
@@ -2909,11 +2913,11 @@ Partial Class RH_Personal
|
|||||||
CargaGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString)
|
CargaGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString)
|
||||||
ObjCuentasBancos.Dispose()
|
ObjCuentasBancos.Dispose()
|
||||||
CargaGvBitacora()
|
CargaGvBitacora()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
#Region "O R D E N A M I E N T O"
|
#Region "O R D E N A M I E N T O"
|
||||||
Protected Sub LbOrden_Click(ByVal sender As Object, ByVal e As EventArgs)
|
Protected Sub LbOrden_Click(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
Dim Orden As String = ""
|
Dim Orden As String = ""
|
||||||
@@ -2949,10 +2953,10 @@ Partial Class RH_Personal
|
|||||||
ViewState("Orden1") = Orden
|
ViewState("Orden1") = Orden
|
||||||
CargaGvAsistencias()
|
CargaGvAsistencias()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
#Region "I M P R I M I R N O M I N A"
|
#Region "I M P R I M I R N O M I N A"
|
||||||
Protected Sub LbPDF_Click(sender As Object, e As EventArgs)
|
Protected Sub LbPDF_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
@@ -2960,11 +2964,11 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
ImprimirbytesPDF(GeneraPDFNomina(CvePersonal, LB.CommandArgument.ToEntero, UsuarioActual.CveEmpresa, UsuarioActual.Empresa.Ruta), "Recibo")
|
ImprimirbytesPDF(GeneraPDFNomina(CvePersonal, LB.CommandArgument.ToEntero, UsuarioActual.CveEmpresa, UsuarioActual.Empresa.Ruta), "Recibo")
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
#Region " ORGANIGRAMA "
|
#Region " ORGANIGRAMA "
|
||||||
Private Sub CargaSuperioresOrganigrama()
|
Private Sub CargaSuperioresOrganigrama()
|
||||||
Dim ObjRH As New ClsRH
|
Dim ObjRH As New ClsRH
|
||||||
@@ -2985,10 +2989,10 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
#Region "I M P R I M I R "
|
#Region "I M P R I M I R "
|
||||||
Private Sub GenerarPDF(Optional Formato As String = "PDF")
|
Private Sub GenerarPDF(Optional Formato As String = "PDF")
|
||||||
|
|
||||||
@@ -3290,12 +3294,12 @@ Partial Class RH_Personal
|
|||||||
End Sub
|
End Sub
|
||||||
Protected Sub BtnExcelHistorial_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnExcelHistorial_Click(sender As Object, e As EventArgs)
|
||||||
GenerarPDFGastosXComp("Excel")
|
GenerarPDFGastosXComp("Excel")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "D O C U M E N T A C I O N C O N T R A T O S"
|
#Region "D O C U M E N T A C I O N C O N T R A T O S"
|
||||||
|
|
||||||
Private Sub CargaDocumentacionFirmaDecontratos()
|
Private Sub CargaDocumentacionFirmaDecontratos()
|
||||||
|
|
||||||
If CvePersonal > 0 Then
|
If CvePersonal > 0 Then
|
||||||
@@ -3986,10 +3990,10 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
RegistraScript("Download('" & baseUrl & "')")
|
RegistraScript("Download('" & baseUrl & "')")
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub LBCancelar_Click(sender As Object, e As EventArgs)
|
Protected Sub LBCancelar_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
Dim FolioFiscal = CType(sender, LinkButton).CommandArgument.ToString
|
Dim FolioFiscal = CType(sender, LinkButton).CommandArgument.ToString
|
||||||
@@ -4010,10 +4014,10 @@ Partial Class RH_Personal
|
|||||||
Obj = Nothing
|
Obj = Nothing
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "VACACIONES"
|
#Region "VACACIONES"
|
||||||
|
|
||||||
Private Sub CargaVacaciones()
|
Private Sub CargaVacaciones()
|
||||||
|
|
||||||
Dim objRH As New ClsRH
|
Dim objRH As New ClsRH
|
||||||
@@ -4703,12 +4707,12 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
objRH.Dispose()
|
objRH.Dispose()
|
||||||
Return ListaTags
|
Return ListaTags
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "CURSOS"
|
#Region "CURSOS"
|
||||||
|
|
||||||
Private Sub CargaCursos()
|
Private Sub CargaCursos()
|
||||||
|
|
||||||
Dim objRH As New ClsRH
|
Dim objRH As New ClsRH
|
||||||
@@ -4805,11 +4809,11 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "UNIFORMES"
|
#Region "UNIFORMES"
|
||||||
Private Sub CargaComboUniformes()
|
Private Sub CargaComboUniformes()
|
||||||
|
|
||||||
@@ -4934,12 +4938,12 @@ Partial Class RH_Personal
|
|||||||
CargaUniformesPersonal()
|
CargaUniformesPersonal()
|
||||||
End If
|
End If
|
||||||
ObjInv.Dispose()
|
ObjInv.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "CARGAR IMAGEN"
|
#Region "CARGAR IMAGEN"
|
||||||
Private Sub LnkSubirFacturas_Click(sender As Object, e As EventArgs) Handles LnkSubirFacturas.Click
|
Private Sub LnkSubirFacturas_Click(sender As Object, e As EventArgs) Handles LnkSubirFacturas.Click
|
||||||
RegistraScript(String.Format("$('#{0}').modal();", "ModalArchvivo"))
|
RegistraScript(String.Format("$('#{0}').modal();", "ModalArchvivo"))
|
||||||
@@ -4963,10 +4967,10 @@ Partial Class RH_Personal
|
|||||||
TxtCargaImg.Text = "[]"
|
TxtCargaImg.Text = "[]"
|
||||||
UpAddArchivo.Update()
|
UpAddArchivo.Update()
|
||||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "ModalArchvivo"))
|
RegistraScript(String.Format("$('#{0}').modal('hide');", "ModalArchvivo"))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "PERMISOS"
|
#Region "PERMISOS"
|
||||||
|
|
||||||
Public Sub CargaPermisos()
|
Public Sub CargaPermisos()
|
||||||
|
|
||||||
Dim ObjRH As New ClsRH
|
Dim ObjRH As New ClsRH
|
||||||
@@ -5092,57 +5096,57 @@ Partial Class RH_Personal
|
|||||||
ObjRH.Dispose()
|
ObjRH.Dispose()
|
||||||
|
|
||||||
CargaPermisos()
|
CargaPermisos()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
'Protected Sub BtnCargarArchivo_Click(sender As Object, e As System.EventArgs) Handles BtnCargarArchivo.Click
|
'Protected Sub BtnCargarArchivo_Click(sender As Object, e As System.EventArgs) Handles BtnCargarArchivo.Click
|
||||||
' Preguntar si existe en temporales
|
' Preguntar si existe en temporales
|
||||||
' If Session("FileUpload").ToString <> String.Empty AndAlso File.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString) Then
|
' If Session("FileUpload").ToString <> String.Empty AndAlso File.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString) Then
|
||||||
' Dim Extension As String = Path.GetExtension(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString)
|
' Dim Extension As String = Path.GetExtension(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString)
|
||||||
' If Not Directory.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal") Then Directory.CreateDirectory(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal")
|
' If Not Directory.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal") Then Directory.CreateDirectory(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal")
|
||||||
' If File.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal\" & CvePersonal & Extension) Then
|
' If File.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal\" & CvePersonal & Extension) Then
|
||||||
' File.Delete(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal\" & CvePersonal & Extension)
|
' File.Delete(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal\" & CvePersonal & Extension)
|
||||||
' File.Move(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString, Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal\" & CvePersonal & Extension)
|
' File.Move(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString, Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal\" & CvePersonal & Extension)
|
||||||
' Else
|
' Else
|
||||||
' File.Move(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString, Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal\" & CvePersonal & Extension)
|
' File.Move(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\Temp\" & Session("FileUpload").ToString, Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal\" & CvePersonal & Extension)
|
||||||
' End If
|
' End If
|
||||||
|
|
||||||
' Else
|
' Else
|
||||||
' Imagen Default
|
' Imagen Default
|
||||||
' If ImgPersonal.ImageUrl = "../Empresas/" & UsuarioActual.CveEmpresa & "/RH/Personal/" Then
|
' If ImgPersonal.ImageUrl = "../Empresas/" & UsuarioActual.CveEmpresa & "/RH/Personal/" Then
|
||||||
' ImgPersonal.ImageUrl = "/Imagenes/SinImagen.jpg"
|
' ImgPersonal.ImageUrl = "/Imagenes/SinImagen.jpg"
|
||||||
' End If
|
' End If
|
||||||
' End If
|
' End If
|
||||||
|
|
||||||
|
|
||||||
' Si existe mover de temporales a .../Empresas/RH/Personal, SINO Session("FileUpload") = ""
|
' Si existe mover de temporales a .../Empresas/RH/Personal, SINO Session("FileUpload") = ""
|
||||||
' Si existe en: .../Empresas/RH/Personal Guardar, SINO Session("FileUpload") = ""
|
' Si existe en: .../Empresas/RH/Personal Guardar, SINO Session("FileUpload") = ""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
' If Session("FileUpload").ToString <> String.Empty AndAlso File.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\" & Session("FileUpload").ToString) Then
|
' If Session("FileUpload").ToString <> String.Empty AndAlso File.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\" & Session("FileUpload").ToString) Then
|
||||||
' Dim Extension As String = Path.GetExtension(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal" & Session("FileUpload").ToString)
|
' Dim Extension As String = Path.GetExtension(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal" & Session("FileUpload").ToString)
|
||||||
' If Not Directory.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal") Then Directory.CreateDirectory(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal")
|
' If Not Directory.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal") Then Directory.CreateDirectory(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal")
|
||||||
' Session("FileUpload") = ""
|
' Session("FileUpload") = ""
|
||||||
|
|
||||||
' If File.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal\" & CvePersonal & Extension) Then
|
' If File.Exists(Request.PhysicalApplicationPath + "Empresas\" & UsuarioActual.CveEmpresa & "\RH\Personal\" & CvePersonal & Extension) Then
|
||||||
' ImgPersonal.ImageUrl = "/Empresas/" & UsuarioActual.CveEmpresa & "/RH/Personal/" & CvePersonal & Extension
|
' ImgPersonal.ImageUrl = "/Empresas/" & UsuarioActual.CveEmpresa & "/RH/Personal/" & CvePersonal & Extension
|
||||||
|
|
||||||
' End If
|
' End If
|
||||||
' End If
|
' End If
|
||||||
'End Sub
|
'End Sub
|
||||||
|
|
||||||
#Region "Consumos"
|
#Region "Consumos"
|
||||||
|
|
||||||
Private Sub Consumos()
|
Private Sub Consumos()
|
||||||
|
|
||||||
Dim ObjCompras As New ClsCompras
|
Dim ObjCompras As New ClsCompras
|
||||||
@@ -5221,10 +5225,10 @@ Partial Class RH_Personal
|
|||||||
End Sub
|
End Sub
|
||||||
Protected Sub LnkImprimirPDFConsumo_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkImprimirPDFConsumo_Click(sender As Object, e As EventArgs)
|
||||||
GenerarPDFConsumo()
|
GenerarPDFConsumo()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region ""
|
#Region ""
|
||||||
Protected Sub LbMail_Click(sender As Object, e As EventArgs)
|
Protected Sub LbMail_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
@@ -5308,9 +5312,9 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "VIATICOS"
|
#Region "VIATICOS"
|
||||||
Protected Sub CargaViaticosPersonal()
|
Protected Sub CargaViaticosPersonal()
|
||||||
Dim ObjBancos As ClsBancos = New ClsBancos
|
Dim ObjBancos As ClsBancos = New ClsBancos
|
||||||
@@ -5345,11 +5349,11 @@ Partial Class RH_Personal
|
|||||||
If (e.Row.RowType = DataControlRowType.Footer) Then
|
If (e.Row.RowType = DataControlRowType.Footer) Then
|
||||||
e.Row.FCLiteral("LtTotalImporte").Text = DTViaticosDetalle.SUM("Importe").FormatoNumero()
|
e.Row.FCLiteral("LtTotalImporte").Text = DTViaticosDetalle.SUM("Importe").FormatoNumero()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "BITACORA"
|
#Region "BITACORA"
|
||||||
|
|
||||||
Private Sub CargaGvBitacora()
|
Private Sub CargaGvBitacora()
|
||||||
|
|
||||||
If CvePersonal > 0 Then
|
If CvePersonal > 0 Then
|
||||||
@@ -5362,12 +5366,12 @@ Partial Class RH_Personal
|
|||||||
UpHistorialModificacion.Update()
|
UpHistorialModificacion.Update()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "PAGO DE FACTURAS"
|
#Region "PAGO DE FACTURAS"
|
||||||
|
|
||||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs)
|
||||||
CargaPagoFactura()
|
CargaPagoFactura()
|
||||||
UpnHistorial.Update()
|
UpnHistorial.Update()
|
||||||
@@ -5380,10 +5384,10 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
ObjRH.Dispose()
|
ObjRH.Dispose()
|
||||||
GVPagoFactura.DataBind()
|
GVPagoFactura.DataBind()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub BtnSaldoInicial_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnSaldoInicial_Click(sender As Object, e As EventArgs)
|
||||||
Dim SaldoInicial As Double = TxtSaldoInicial.Text.ToDouble()
|
Dim SaldoInicial As Double = TxtSaldoInicial.Text.ToDouble()
|
||||||
Dim Fecha As DateTime = TxtFechaSaldo.Text.ToDateTime()
|
Dim Fecha As DateTime = TxtFechaSaldo.Text.ToDateTime()
|
||||||
@@ -5399,8 +5403,8 @@ Partial Class RH_Personal
|
|||||||
End Sub
|
End Sub
|
||||||
Private Function AgregarSaldoInicial(SaldoInicial As Double, Fecha As DateTime, CveMoneda As Integer, ObjMov As ClsContabilidad) As Integer
|
Private Function AgregarSaldoInicial(SaldoInicial As Double, Fecha As DateTime, CveMoneda As Integer, ObjMov As ClsContabilidad) As Integer
|
||||||
Return ObjMov.AddPrePolizas("RH/Personal", 13, SaldoInicial, SaldoInicial, CveMoneda, Fecha, "Saldo Inicial", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
Return ObjMov.AddPrePolizas("RH/Personal", 13, SaldoInicial, SaldoInicial, CveMoneda, Fecha, "Saldo Inicial", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#Region "L I C E N C I A S"
|
#Region "L I C E N C I A S"
|
||||||
Public Sub CargaLicencias()
|
Public Sub CargaLicencias()
|
||||||
If CvePersonal > 0 Then
|
If CvePersonal > 0 Then
|
||||||
@@ -5547,7 +5551,7 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
RegistraScript("$('#DivAddLicencias').modal('hide');")
|
RegistraScript("$('#DivAddLicencias').modal('hide');")
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
Protected Sub BtnPDFResguardo_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnPDFResguardo_Click(sender As Object, e As EventArgs)
|
||||||
GenerarPDFResguardosAF()
|
GenerarPDFResguardosAF()
|
||||||
@@ -5682,7 +5686,7 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
|
|
||||||
Protected Sub BtnAgregarFamiliar_Click(sender As Object, e As EventArgs) Handles BtnAgregarFamiliar.Click
|
Protected Sub BtnAgregarFamiliar_Click(sender As Object, e As EventArgs) Handles BtnAgregarFamiliar.Click
|
||||||
resetFormFamiliares()
|
ResetFormFamiliares()
|
||||||
RegistraScript("$('#divAgregarFamiliar').modal({ backdrop: 'static', keyboard: false});")
|
RegistraScript("$('#divAgregarFamiliar').modal({ backdrop: 'static', keyboard: false});")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -75,11 +75,13 @@ Partial Class Ventas_ActualizarPrecios
|
|||||||
|
|
||||||
Public Sub CargaPreciosLista()
|
Public Sub CargaPreciosLista()
|
||||||
|
|
||||||
DdlPrecioLista.ITEMS.CLEAR
|
DdlPrecioLista.ITEMS.Clear
|
||||||
Dim ObjVta As New ClsVentas
|
Dim ObjVta As New ClsVentas
|
||||||
|
Dim primerItem As String = ""
|
||||||
If ObjVta.GetPrecioListas(UsuarioActual.CveEmpresa) Then
|
If ObjVta.GetPrecioListas(UsuarioActual.CveEmpresa) Then
|
||||||
DdlPrecioLista.DataSource = ObjVta.DtResultados.Copy()
|
DdlPrecioLista.DataSource = ObjVta.DtResultados.Copy()
|
||||||
DdlPrecioListaCarga.DataSource = ObjVta.DtResultados.Copy()
|
DdlPrecioListaCarga.DataSource = ObjVta.DtResultados.Copy()
|
||||||
|
primerItem = ObjVta.DtResultados.FiltroPrimeroValor("CvePrecioLista")
|
||||||
End If
|
End If
|
||||||
ObjVta.Dispose()
|
ObjVta.Dispose()
|
||||||
|
|
||||||
@@ -87,6 +89,10 @@ Partial Class Ventas_ActualizarPrecios
|
|||||||
DdlPrecioLista.DataBind()
|
DdlPrecioLista.DataBind()
|
||||||
DdlPrecioListaCarga.DataBind()
|
DdlPrecioListaCarga.DataBind()
|
||||||
|
|
||||||
|
If (DdlPrecioLista.Items.Count = 1) Then
|
||||||
|
DdlPrecioLista.Items.FindByValue(primerItem).Selected = True
|
||||||
|
End If
|
||||||
|
|
||||||
DdlPrecioLista.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlPrecioLista.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
If UsuarioActual.CveEmpresa.Contiene(1, 140) Then
|
If UsuarioActual.CveEmpresa.Contiene(1, 140) Then
|
||||||
DdlPrecioLista.Items.Insert(0, New ListItem("Sin Precio Lista", "-2"))
|
DdlPrecioLista.Items.Insert(0, New ListItem("Sin Precio Lista", "-2"))
|
||||||
|
|||||||
@@ -5587,9 +5587,8 @@ Partial Class PV
|
|||||||
|
|
||||||
Dim CveUnidadMedidaPSA As Integer = -1
|
Dim CveUnidadMedidaPSA As Integer = -1
|
||||||
Dim UnidadMedidaPSA As String = "Unidad"
|
Dim UnidadMedidaPSA As String = "Unidad"
|
||||||
Dim CveClacificacionPSA As Integer = -1
|
Dim CveClasificacionPSA As Integer = -1
|
||||||
|
Dim ClasificacionPSA As String = ""
|
||||||
Dim ClacificacionPSA As String = ""
|
|
||||||
|
|
||||||
Dim CveSubProyectoPSA As Integer = -1
|
Dim CveSubProyectoPSA As Integer = -1
|
||||||
Dim SubProyectoPSA As String = ""
|
Dim SubProyectoPSA As String = ""
|
||||||
@@ -5601,8 +5600,8 @@ Partial Class PV
|
|||||||
DTPSTemp.Columns.Add("Cantidad", GetType(Integer))
|
DTPSTemp.Columns.Add("Cantidad", GetType(Integer))
|
||||||
DTPSTemp.Columns.Add("CveUnidadMedida", GetType(Integer))
|
DTPSTemp.Columns.Add("CveUnidadMedida", GetType(Integer))
|
||||||
DTPSTemp.Columns.Add("UnidadMedida", GetType(String))
|
DTPSTemp.Columns.Add("UnidadMedida", GetType(String))
|
||||||
DTPSTemp.Columns.Add("CveClacificacion", GetType(Integer))
|
DTPSTemp.Columns.Add("CveClasificacion", GetType(Integer))
|
||||||
DTPSTemp.Columns.Add("Clacificacion", GetType(String))
|
DTPSTemp.Columns.Add("Clasificacion", GetType(String))
|
||||||
DTPSTemp.Columns.Add("CvePS", GetType(Integer))
|
DTPSTemp.Columns.Add("CvePS", GetType(Integer))
|
||||||
DTPSTemp.Columns.Add("PS", GetType(String))
|
DTPSTemp.Columns.Add("PS", GetType(String))
|
||||||
DTPSTemp.Columns.Add("PU", GetType(Decimal))
|
DTPSTemp.Columns.Add("PU", GetType(Decimal))
|
||||||
@@ -5626,21 +5625,14 @@ Partial Class PV
|
|||||||
|
|
||||||
If ObjProductosServicios.GetPS(CvePsTemp, -1, UsuarioActual.CveEmpresa) Then
|
If ObjProductosServicios.GetPS(CvePsTemp, -1, UsuarioActual.CveEmpresa) Then
|
||||||
CveUnidadMedidaPSA = ObjProductosServicios.CveUnidadMedida
|
CveUnidadMedidaPSA = ObjProductosServicios.CveUnidadMedida
|
||||||
CveClacificacionPSA = ObjProductosServicios.CveClasificacion
|
CveClasificacionPSA = ObjProductosServicios.CveClasificacion
|
||||||
|
ClasificacionPSA = ObjProductosServicios.Clasificacion
|
||||||
UnidadMedidaPSA = ObjProductosServicios.DtResultados.FiltroPrimeroValor("UnidadMedida")
|
UnidadMedidaPSA = ObjProductosServicios.DtResultados.FiltroPrimeroValor("UnidadMedida")
|
||||||
PSPSA = ObjProductosServicios.PS
|
PSPSA = ObjProductosServicios.PS
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If UsuarioActual.Empresa.UsaAC Then
|
|
||||||
ClacificacionPSA = GlobalDTClasificaciones(UsuarioActual.CveEmpresa, UsoClasificacion:=If(UsuarioActual.Empresa.UsaContabilidad, CveClacificacionPSA, -1)).FiltroPrimeroValor("Clasificacion", " Codigo = '' OR Codigo IS NULL ", Orderby:="Clasificacion")
|
|
||||||
Else
|
|
||||||
ClacificacionPSA = GlobalDTClasificaciones(UsuarioActual.CveEmpresa, UsoClasificacion:=If(UsuarioActual.Empresa.UsaContabilidad, CveClacificacionPSA, -1)).FiltroPrimeroValor("Clasificacion", Orderby:="Clasificacion")
|
|
||||||
End If
|
|
||||||
|
|
||||||
Dim Cargo As Decimal = DTTamanios.FiltroPrimeroValor("Cargo", $" CveTamaño = { CveTamanioTemp }").ToDecimal
|
Dim Cargo As Decimal = DTTamanios.FiltroPrimeroValor("Cargo", $" CveTamaño = { CveTamanioTemp }").ToDecimal
|
||||||
|
|
||||||
|
|
||||||
If DTPSTemp.FiltraParametros($"CvePs = { CvePsTemp }").Rows.Count > 0 Then
|
If DTPSTemp.FiltraParametros($"CvePs = { CvePsTemp }").Rows.Count > 0 Then
|
||||||
|
|
||||||
For Each dRowUpdate As DataRow In DTPSTemp.Rows
|
For Each dRowUpdate As DataRow In DTPSTemp.Rows
|
||||||
@@ -5660,8 +5652,8 @@ Partial Class PV
|
|||||||
dRowNuevo("PU") = Cargo
|
dRowNuevo("PU") = Cargo
|
||||||
dRowNuevo("CveUnidadMedida") = CveUnidadMedidaPSA
|
dRowNuevo("CveUnidadMedida") = CveUnidadMedidaPSA
|
||||||
dRowNuevo("UnidadMedida") = UnidadMedidaPSA
|
dRowNuevo("UnidadMedida") = UnidadMedidaPSA
|
||||||
dRowNuevo("CveClacificacion") = CveClacificacionPSA
|
dRowNuevo("CveClasificacion") = CveClasificacionPSA
|
||||||
dRowNuevo("Clacificacion") = ClacificacionPSA
|
dRowNuevo("Clasificacion") = ClasificacionPSA
|
||||||
dRowNuevo("CvePS") = CvePsTemp
|
dRowNuevo("CvePS") = CvePsTemp
|
||||||
dRowNuevo("PS") = PSPSA
|
dRowNuevo("PS") = PSPSA
|
||||||
|
|
||||||
@@ -5686,7 +5678,7 @@ Partial Class PV
|
|||||||
For Each drowPsTamaños As DataRow In DTPSTemp.Rows
|
For Each drowPsTamaños As DataRow In DTPSTemp.Rows
|
||||||
If drowPsTamaños("PU").ToString.ToDecimal > 0 Then
|
If drowPsTamaños("PU").ToString.ToDecimal > 0 Then
|
||||||
Dim Concec = AgregarProductoServicio(drowPsTamaños("Cantidad").ToString.ToEntero, drowPsTamaños("CveUnidadMedida").ToString.ToEntero, drowPsTamaños("UnidadMedida").ToString,
|
Dim Concec = AgregarProductoServicio(drowPsTamaños("Cantidad").ToString.ToEntero, drowPsTamaños("CveUnidadMedida").ToString.ToEntero, drowPsTamaños("UnidadMedida").ToString,
|
||||||
drowPsTamaños("CveClacificacion").ToString.ToEntero, drowPsTamaños("Clacificacion").ToString, drowPsTamaños("CvePS").ToString.ToEntero,
|
drowPsTamaños("CveClasificacion").ToString.ToEntero, drowPsTamaños("Clasificacion").ToString, drowPsTamaños("CvePS").ToString.ToEntero,
|
||||||
drowPsTamaños("PS").ToString, "", drowPsTamaños("PU").ToString.ToDecimal, 0, -1, "", drowPsTamaños("CveSubProyecto").ToString.ToEntero,
|
drowPsTamaños("PS").ToString, "", drowPsTamaños("PU").ToString.ToDecimal, 0, -1, "", drowPsTamaños("CveSubProyecto").ToString.ToEntero,
|
||||||
drowPsTamaños("SubProyecto").ToString, EsCargo:=True, ConsecPSPadre:=drowPsTamaños("ConsecPSPadre").ToString.ToEntero)
|
drowPsTamaños("SubProyecto").ToString, EsCargo:=True, ConsecPSPadre:=drowPsTamaños("ConsecPSPadre").ToString.ToEntero)
|
||||||
If Consec > 0 Then
|
If Consec > 0 Then
|
||||||
|
|||||||
@@ -6735,7 +6735,9 @@ Partial Class Ventas
|
|||||||
'ENVIAR POLIZA VIRTUAL
|
'ENVIAR POLIZA VIRTUAL
|
||||||
If ErrorList.Count = 0 Then
|
If ErrorList.Count = 0 Then
|
||||||
If UsuarioActual.Empresa.Funcionalidad(576) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(576) = "1" Then
|
||||||
GeneraPolizaVentaWS(ObjFactura)
|
If Not GeneraPolizaVentaWS(ObjVentas, ObjFactura) Then
|
||||||
|
ErrorList.Add("Ocurrió un error al registrar los movimientos de almacén del contrato de consignación")
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -23528,9 +23530,9 @@ Partial Class Ventas
|
|||||||
|
|
||||||
Dim CveUnidadMedidaPSA As Integer = -1
|
Dim CveUnidadMedidaPSA As Integer = -1
|
||||||
Dim UnidadMedidaPSA As String = "Unidad"
|
Dim UnidadMedidaPSA As String = "Unidad"
|
||||||
Dim CveClacificacionPSA As Integer = -1
|
Dim CveClasificacionPSA As Integer = -1
|
||||||
|
|
||||||
Dim ClacificacionPSA As String = ""
|
Dim ClasificacionPSA As String = ""
|
||||||
|
|
||||||
Dim CveSubProyectoPSA As Integer = -1
|
Dim CveSubProyectoPSA As Integer = -1
|
||||||
Dim SubProyectoPSA As String = ""
|
Dim SubProyectoPSA As String = ""
|
||||||
@@ -23538,12 +23540,12 @@ Partial Class Ventas
|
|||||||
Dim PSPSA As String = ""
|
Dim PSPSA As String = ""
|
||||||
|
|
||||||
Dim DTPSTemp As New DataTable '= TmpDT.Clone
|
Dim DTPSTemp As New DataTable '= TmpDT.Clone
|
||||||
'AgregarProductoServicio(1, CveUnidadMedidaPSA, UnidadMedidaPSA, CveClacificacionPSA, ClacificacionPSA, CvePSPSA, PSPSA, "", ImporteCargo, 0, -1, "", CveSubProyectoPSA, SubProyectoPSA)
|
|
||||||
DTPSTemp.Columns.Add("Cantidad", GetType(Integer))
|
DTPSTemp.Columns.Add("Cantidad", GetType(Integer))
|
||||||
DTPSTemp.Columns.Add("CveUnidadMedida", GetType(Integer))
|
DTPSTemp.Columns.Add("CveUnidadMedida", GetType(Integer))
|
||||||
DTPSTemp.Columns.Add("UnidadMedida", GetType(String))
|
DTPSTemp.Columns.Add("UnidadMedida", GetType(String))
|
||||||
DTPSTemp.Columns.Add("CveClacificacion", GetType(Integer))
|
DTPSTemp.Columns.Add("CveClasificacion", GetType(Integer))
|
||||||
DTPSTemp.Columns.Add("Clacificacion", GetType(String))
|
DTPSTemp.Columns.Add("Clasificacion", GetType(String))
|
||||||
DTPSTemp.Columns.Add("CvePS", GetType(Integer))
|
DTPSTemp.Columns.Add("CvePS", GetType(Integer))
|
||||||
DTPSTemp.Columns.Add("PS", GetType(String))
|
DTPSTemp.Columns.Add("PS", GetType(String))
|
||||||
DTPSTemp.Columns.Add("PU", GetType(Decimal))
|
DTPSTemp.Columns.Add("PU", GetType(Decimal))
|
||||||
@@ -23563,20 +23565,16 @@ Partial Class Ventas
|
|||||||
SubProyectoPSA = DrowPartidas("SubProyecto").ToString
|
SubProyectoPSA = DrowPartidas("SubProyecto").ToString
|
||||||
|
|
||||||
Dim ObjProductosServicios As New ClsProductosServicios()
|
Dim ObjProductosServicios As New ClsProductosServicios()
|
||||||
|
|
||||||
If ObjProductosServicios.GetPS(CvePsTemp, -1, UsuarioActual.CveEmpresa) Then
|
If ObjProductosServicios.GetPS(CvePsTemp, -1, UsuarioActual.CveEmpresa) Then
|
||||||
CveUnidadMedidaPSA = ObjProductosServicios.CveUnidadMedida
|
CveUnidadMedidaPSA = ObjProductosServicios.CveUnidadMedida
|
||||||
CveClacificacionPSA = ObjProductosServicios.CveClasificacion
|
CveClasificacionPSA = ObjProductosServicios.CveClasificacion
|
||||||
|
ClasificacionPSA = ObjProductosServicios.Clasificacion
|
||||||
UnidadMedidaPSA = ObjProductosServicios.DtResultados.FiltroPrimeroValor("UnidadMedida")
|
UnidadMedidaPSA = ObjProductosServicios.DtResultados.FiltroPrimeroValor("UnidadMedida")
|
||||||
PSPSA = ObjProductosServicios.PS
|
PSPSA = ObjProductosServicios.PS
|
||||||
End If
|
End If
|
||||||
ObjProductosServicios.Dispose()
|
ObjProductosServicios.Dispose()
|
||||||
|
|
||||||
If UsuarioActual.Empresa.UsaAC Then
|
|
||||||
ClacificacionPSA = GlobalDTClasificaciones(UsuarioActual.CveEmpresa, UsoClasificacion:=If(UsuarioActual.Empresa.UsaContabilidad, CveClacificacionPSA, -1)).FiltroPrimeroValor("Clasificacion", " Codigo = '' OR Codigo IS NULL ", Orderby:="Clasificacion")
|
|
||||||
Else
|
|
||||||
ClacificacionPSA = GlobalDTClasificaciones(UsuarioActual.CveEmpresa, UsoClasificacion:=If(UsuarioActual.Empresa.UsaContabilidad, CveClacificacionPSA, -1)).FiltroPrimeroValor("Clasificacion", Orderby:="Clasificacion")
|
|
||||||
End If
|
|
||||||
|
|
||||||
Dim Cargo As Decimal = DTTamanios.FiltroPrimeroValor("Cargo", $" CveTamaño = { CveTamanioTemp }").ToDecimal
|
Dim Cargo As Decimal = DTTamanios.FiltroPrimeroValor("Cargo", $" CveTamaño = { CveTamanioTemp }").ToDecimal
|
||||||
|
|
||||||
|
|
||||||
@@ -23599,8 +23597,8 @@ Partial Class Ventas
|
|||||||
dRowNuevo("PU") = Cargo
|
dRowNuevo("PU") = Cargo
|
||||||
dRowNuevo("CveUnidadMedida") = CveUnidadMedidaPSA
|
dRowNuevo("CveUnidadMedida") = CveUnidadMedidaPSA
|
||||||
dRowNuevo("UnidadMedida") = UnidadMedidaPSA
|
dRowNuevo("UnidadMedida") = UnidadMedidaPSA
|
||||||
dRowNuevo("CveClacificacion") = CveClacificacionPSA
|
dRowNuevo("CveClasificacion") = CveClasificacionPSA
|
||||||
dRowNuevo("Clacificacion") = ClacificacionPSA
|
dRowNuevo("Clasificacion") = ClasificacionPSA
|
||||||
dRowNuevo("CvePS") = CvePsTemp
|
dRowNuevo("CvePS") = CvePsTemp
|
||||||
dRowNuevo("PS") = PSPSA
|
dRowNuevo("PS") = PSPSA
|
||||||
|
|
||||||
@@ -23619,7 +23617,7 @@ Partial Class Ventas
|
|||||||
Modalidad = "A"
|
Modalidad = "A"
|
||||||
If drowPsTamaños("PU").ToString.ToDecimal > 0 Then
|
If drowPsTamaños("PU").ToString.ToDecimal > 0 Then
|
||||||
AgregarProductoServicio(drowPsTamaños("Cantidad").ToString.ToEntero, drowPsTamaños("CveUnidadMedida").ToString.ToEntero, drowPsTamaños("UnidadMedida").ToString,
|
AgregarProductoServicio(drowPsTamaños("Cantidad").ToString.ToEntero, drowPsTamaños("CveUnidadMedida").ToString.ToEntero, drowPsTamaños("UnidadMedida").ToString,
|
||||||
drowPsTamaños("CveClacificacion").ToString.ToEntero, drowPsTamaños("Clacificacion").ToString, drowPsTamaños("CvePS").ToString.ToEntero,
|
drowPsTamaños("CveClasificacion").ToString.ToEntero, drowPsTamaños("Clasificacion").ToString, drowPsTamaños("CvePS").ToString.ToEntero,
|
||||||
drowPsTamaños("PS").ToString, "", drowPsTamaños("PU").ToString.ToDecimal, 0, -1, "", drowPsTamaños("CveSubProyecto").ToString.ToEntero,
|
drowPsTamaños("PS").ToString, "", drowPsTamaños("PU").ToString.ToDecimal, 0, -1, "", drowPsTamaños("CveSubProyecto").ToString.ToEntero,
|
||||||
drowPsTamaños("SubProyecto").ToString)
|
drowPsTamaños("SubProyecto").ToString)
|
||||||
End If
|
End If
|
||||||
@@ -23812,49 +23810,61 @@ Partial Class Ventas
|
|||||||
CargaRNC()
|
CargaRNC()
|
||||||
RegistraScript("$('#ModalAplicarRemisionesNC').modal({backdrop: 'static', keyboard: false });")
|
RegistraScript("$('#ModalAplicarRemisionesNC').modal({backdrop: 'static', keyboard: false });")
|
||||||
End Sub
|
End Sub
|
||||||
Protected Function GeneraPolizaVentaWS(ObjFactura As Modelos.Factura) As Boolean
|
Protected Function GeneraPolizaVentaWS(ByRef ObjVentas As ClsVentas, ObjFactura As Modelos.Factura) As Boolean
|
||||||
Dim obj As New Modelos.MPolizaVentaWS
|
Dim DtUsados As DataTable = Nothing
|
||||||
'DATOS DEL CLIENTE
|
|
||||||
obj.customer_name = ObjFactura.Cliente.Nombre
|
|
||||||
obj.customer_last_name1 = ""
|
|
||||||
obj.customer_last_name2 = ""
|
|
||||||
obj.customer_birthday = Nothing
|
|
||||||
obj.customer_phone = ObjFactura.Cliente.Telefono
|
|
||||||
obj.customer_email = ObjFactura.Cliente.Mail
|
|
||||||
obj.customer_gender = "03" 'OTRO GENERO
|
|
||||||
obj.customer_advertising = False
|
|
||||||
obj.customer_car_brand = "00"
|
|
||||||
obj.customer_car_model = "00"
|
|
||||||
obj.customer_car_year = ObjFactura.Fecha.Year
|
|
||||||
|
|
||||||
'DATOS DE VENTA
|
If ObjVentas.GetVentasUsadosDetalle(ObjFactura.CveVenta) Then
|
||||||
obj.sale_date = Now
|
DtUsados = ObjVentas.DtResultados.Copy()
|
||||||
obj.sale_paidby = "01"
|
End If
|
||||||
obj.sale_type = "01" 'PISO
|
|
||||||
obj.sale_type_service = "01" 'PARTICULAR
|
|
||||||
obj.sale_total = ObjFactura.Total
|
|
||||||
obj.sale_discount = ObjFactura.SubTotal
|
|
||||||
obj.sale_id = ObjFactura.CveVenta.ToString()
|
|
||||||
|
|
||||||
'DATOS DEL PRODUCTO
|
For Each Row As DataRow In DtUsados.Rows
|
||||||
obj.product_code = "174925"
|
Dim obj As New Modelos.MPolizaVentaWS
|
||||||
obj.product_unique_code = "65047187"
|
'DATOS DEL CLIENTE
|
||||||
obj.product_sale_type = "02" 'AJUSTE
|
obj.customer_name = ObjFactura.Cliente.Nombre
|
||||||
|
obj.customer_last_name1 = ""
|
||||||
|
obj.customer_last_name2 = ""
|
||||||
|
obj.customer_birthday = Nothing
|
||||||
|
obj.customer_phone = ObjFactura.Cliente.Telefono
|
||||||
|
obj.customer_email = ObjFactura.Cliente.Mail
|
||||||
|
obj.customer_gender = "03" 'OTRO GENERO
|
||||||
|
obj.customer_advertising = False
|
||||||
|
obj.customer_car_brand = "00"
|
||||||
|
obj.customer_car_model = "00"
|
||||||
|
obj.customer_car_year = ObjFactura.Fecha.Year
|
||||||
|
|
||||||
'DATOS DE USADO
|
'DATOS DE VENTA
|
||||||
obj.used_product = True
|
obj.sale_date = ObjFactura.Fecha
|
||||||
obj.used_brand = "01"
|
obj.sale_paidby = "01"
|
||||||
obj.used_bci = "25"
|
obj.sale_type = "01" 'PISO
|
||||||
obj.used_month = 1
|
obj.sale_type_service = "02" 'COMERCIAL
|
||||||
obj.used_year = 2015
|
obj.sale_total = ObjFactura.Total
|
||||||
obj.used_sale_date = ObjFactura.Fecha
|
obj.sale_discount = ObjFactura.Descuento
|
||||||
|
obj.sale_id = String.Format("{0}{1}{2}", ObjFactura.Serie, ObjFactura.Folio, ObjFactura.CveVenta)
|
||||||
|
|
||||||
Return False
|
'DATOS DEL PRODUCTO
|
||||||
'EnviarPolizaVentaWS(obj)
|
obj.product_code = Row("Codigo").ToString()
|
||||||
|
obj.product_unique_code = "" 'se indique el código único de la batería.
|
||||||
|
obj.product_sale_type = "01 " 'VENTA
|
||||||
|
|
||||||
|
Dim FechaUsado As DateTime = Row("FechaAjuste").ToString().ToDateTime()
|
||||||
|
|
||||||
|
'DATOS DE USADO
|
||||||
|
obj.used_product = True
|
||||||
|
obj.used_brand = Row("IdModelo").ToString() 'MARCAR DEL USADO
|
||||||
|
obj.used_bci = Row("CveBCIUsado").ToString() 'VALOR DEL BCI
|
||||||
|
obj.used_month = FechaUsado.Month
|
||||||
|
obj.used_year = FechaUsado.Year
|
||||||
|
obj.used_sale_date = FechaUsado
|
||||||
|
|
||||||
|
EnviarPolizaVentaWS(obj)
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Protected Sub EnviarPolizaVentaWS(obj As Modelos.MPolizaVentaWS)
|
Protected Sub EnviarPolizaVentaWS(obj As Modelos.MPolizaVentaWS)
|
||||||
Dim Retorno As String = "[]"
|
|
||||||
|
Dim Respuesta As String = "[]"
|
||||||
|
|
||||||
Dim User As String = "cslth.2809@jcilink.com"
|
Dim User As String = "cslth.2809@jcilink.com"
|
||||||
Dim Password As String = "ff31580a95f36b51ad27f970428b77a5a9245076"
|
Dim Password As String = "ff31580a95f36b51ad27f970428b77a5a9245076"
|
||||||
@@ -23898,14 +23908,12 @@ Partial Class Ventas
|
|||||||
Dim content As New FormUrlEncodedContent(Parametros)
|
Dim content As New FormUrlEncodedContent(Parametros)
|
||||||
Dim response = wc.PostAsync(Url, content).Result
|
Dim response = wc.PostAsync(Url, content).Result
|
||||||
|
|
||||||
Retorno = response.Content.ReadAsStringAsync().Result
|
Respuesta = response.Content.ReadAsStringAsync().Result
|
||||||
End Using
|
End Using
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
ex.GuardaLog(ex.Message)
|
ex.GuardaLog(ex.Message)
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
Reference in New Issue
Block a user