Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -9969,7 +9969,7 @@ Public Class ClsPaginas
|
||||
Pago.CveConceptoPago = If(Pago.CveConceptoPago = -1, 2, Pago.CveConceptoPago) 'si viene en parametro lo toma com primera opcion, sino el 2
|
||||
|
||||
If VentaActual.CveMoneda <> 1 Then
|
||||
If Pago.TipoPago = "NC" Then Pago.CveConceptoPago = 301 : Pago.CveConceptoPago = 292
|
||||
If Pago.TipoPago = "NC" Then Pago.CveConceptoPago = 301 Else Pago.CveConceptoPago = 292
|
||||
End If
|
||||
|
||||
Dim Concepto As String = String.Format("{0} F:{1}", VentaActual.ClienteNombre, VentaActual.SerieFolio)
|
||||
@@ -10000,12 +10000,12 @@ Public Class ClsPaginas
|
||||
If VentaActual.CveMoneda > 1 Then ImporteME = Pago.ImportePagoVenta
|
||||
|
||||
'movimiento de pago cliente
|
||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Pago.ImportePagoVenta, Pago.ImportePagoVenta, Pago.CveConceptoPago, VentaActual.SerieFolio, Concepto, VentaActual.IdCtaContableCliente, CveVenta:=VentaActual.CveVenta, CveCliente:=VentaActual.CveCliente, CveIE:=Pago.CveIE, CvePersonal:=Pago.CvePersonal, CveVentaAmortizacion:=Pago.CveVentaAmortizacion, TipoCambio:=TCValuacion, TipoCambioPago:=Pago.TCPago, ImporteME:=ImporteME) Then ErrorMovtos = True
|
||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Pago.ImportePagoVenta, Pago.ImportePagoVenta, Pago.CveConceptoPago, VentaActual.SerieFolio, Concepto, VentaActual.IdCtaContableCliente, CveVenta:=VentaActual.CveVenta, CveCliente:=VentaActual.CveCliente, CveIE:=Pago.CveIE, CvePersonal:=Pago.CvePersonal, CveVentaAmortizacion:=Pago.CveVentaAmortizacion, TipoCambio:=TCValuacionVenta, TipoCambioPago:=Pago.TCPago, ImporteME:=ImporteME) Then ErrorMovtos = True
|
||||
|
||||
'movimiento de pago cliente Complementaria
|
||||
If Not ErrorMovtos AndAlso VentaActual.CveMoneda > 1 Then
|
||||
|
||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Pago.ImportePagoVenta, (ImporteME * TCValuacion - ImporteME).RoundSQL, CveConceptoContableComplementaria, VentaActual.SerieFolio, Concepto, VentaActual.IdCtaContableClienteComplementaria, CveVenta:=VentaActual.CveVenta, CveCliente:=VentaActual.CveCliente, CveIE:=Pago.CveIE, CvePersonal:=Pago.CvePersonal, CveVentaAmortizacion:=Pago.CveVentaAmortizacion, TipoCambio:=TCValuacion, TipoCambioPago:=Pago.TCPago, ImporteME:=ImporteME) Then ErrorMovtos = True
|
||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Pago.ImportePagoVenta, (ImporteME * TCValuacion - ImporteME).RoundSQL, CveConceptoContableComplementaria, VentaActual.SerieFolio, Concepto, VentaActual.IdCtaContableClienteComplementaria, CveVenta:=VentaActual.CveVenta, CveCliente:=VentaActual.CveCliente, CveIE:=Pago.CveIE, CvePersonal:=Pago.CvePersonal, CveVentaAmortizacion:=Pago.CveVentaAmortizacion, TipoCambio:=TCValuacionVenta, TipoCambioPago:=Pago.TCPago, ImporteME:=ImporteME) Then ErrorMovtos = True
|
||||
|
||||
End If
|
||||
|
||||
@@ -10150,13 +10150,13 @@ Public Class ClsPaginas
|
||||
|
||||
End If
|
||||
|
||||
If Not ErrorMovtos AndAlso VentaActual.TC <> Pago.TCPago Then
|
||||
If Not ErrorMovtos AndAlso TCValuacionVenta <> TCValuacionPago Then
|
||||
Dim ConceptoContable, IdCtaContable As Integer
|
||||
Dim TipoMovimiento As Boolean
|
||||
Dim Diferencia As Decimal = 0
|
||||
|
||||
If tImporteVenta <> tImportePago Then
|
||||
If tImporteVenta > tImportePago Then
|
||||
If tImporteVenta < tImportePago Then
|
||||
ConceptoContable = 64 : IdCtaContable = UsuarioActual.Empresa.IdCuentaGananciaCambiaria
|
||||
TipoMovimiento = True
|
||||
Else
|
||||
|
||||
@@ -1741,7 +1741,7 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
||||
CveEstatusPersonal As Integer, CveSubProyecto As Integer, CveClienteAsignado As Integer, HorarioTrabajo As String, CveSupervisor As Integer,
|
||||
CveTipoPeriodo As Integer, CveMetodoPago As Integer, CveTipoContrato As Integer, CveMotivoBaja As Integer, CveProyecto As Integer,
|
||||
FechaIFinContrato As String, FechaFFinContrato As String, FechaIIngreso As String, FechaFIngreso As String, SqlStr As String, NCaracteristicas As Integer,
|
||||
CveEmpresa As Integer, Optional TopSelect As Integer = 10000) As Boolean
|
||||
CveEmpresa As Integer, Optional TopSelect As Integer = 10000, Optional EsReserva As Integer = -1) As Boolean
|
||||
|
||||
Dim Retorno As Boolean = False
|
||||
SqlDataAdapter("PA_RH_Personal2Get")
|
||||
@@ -1777,6 +1777,7 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
||||
.Add("@NCaracteristicas", SqlDbType.Int).Value = NCaracteristicas
|
||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||
.Add("@TopSelect", SqlDbType.Int).Value = TopSelect
|
||||
.Add("@EsReserva", SqlDbType.Int).Value = EsReserva
|
||||
End With
|
||||
|
||||
Try
|
||||
|
||||
@@ -871,7 +871,7 @@ Partial Class Bancos_ProveedoresAbonar
|
||||
Pago.OtroGastoIngreso = 0
|
||||
End If
|
||||
|
||||
If AplicaPrePolizaPago(CompraActual, Pago, CvePrePoliza, ObjMov) Then
|
||||
If AplicaPrePolizaPagoCompra(CompraActual, Pago, CvePrePoliza, ObjMov) Then
|
||||
MsgError = "No se pudo insertar la póliza"
|
||||
End If
|
||||
|
||||
|
||||
@@ -553,12 +553,12 @@ Partial Class Inventarios_RecepcionAlmacen
|
||||
|
||||
BtnGuardar.Visible = False
|
||||
TxtFecha.Text = Now.ToShortDateString
|
||||
RVFecha.MaximumValue = MaxFecha.ToShortDateString
|
||||
|
||||
If UsuarioActual.CveEmpresa.Contiene(119) Then RVFecha.MinimumValue = Now.ToShortDateString : CEFecha.StartDate = Now Else RVFecha.MinimumValue = MinFecha.ToShortDateString
|
||||
InicializaBitacoraTemporal()
|
||||
DdlMonedaTC.Enabled = False
|
||||
|
||||
|
||||
RVFecha.MaximumValue = Now.ToShortDateString
|
||||
CEFecha.EndDate = Now
|
||||
|
||||
End Sub
|
||||
''' <summary>
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
#C_GvCaracteristicas_LtlCaracteristica_0{
|
||||
min-width: 275px!important;
|
||||
#C_GvCaracteristicas_LtlCaracteristica_0 {
|
||||
min-width: 275px !important;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
@@ -133,90 +133,104 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-right"><b>Estatus:</b></td>
|
||||
<td colspan="5">
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlEstatus" runat="server" AppendDataBoundItems="true" DataTextField="EstatusPersonal" DataValueField="CveEstatusPersonal" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
<td class="text-right"><b>clasificación:</b></td>
|
||||
<td>
|
||||
<asp:DropDownList ID="ddlclasificacion" runat="server" Width="100%" CssClass="select2me" AppendDataBoundItems="true" DataTextField="Genero" DataValueField="CveGenero" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Text="Todos" Value="-1" Selected="True" ></asp:ListItem>
|
||||
<asp:ListItem Text="Activos" Value="0"></asp:ListItem>
|
||||
<asp:ListItem Text="Reserva" Value="1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr style="vertical-align:top;"><td colspan="2">
|
||||
|
||||
<asp:GridView ID="GvCrt1" runat="server" GridLines="None" BorderWidth="0" CssClass="table table-hover table-advance Widthall" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveCaracteristica,Caracteristica" ShowHeader="False">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle BorderStyle="None" />
|
||||
<ItemTemplate>
|
||||
<asp:Panel ID="PnlClasif" Visible="False" runat="server">
|
||||
<div style="width: 100%" class="SubTotales">
|
||||
<b><asp:Literal ID="LblCaracteristica" runat="server" Text=""></asp:Literal></b>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<div style="width:105px!important; display: inline-block; text-align:right;">
|
||||
<asp:Literal ID="LtlCrt" runat="server" Text='<%# Eval("Caracteristica", "<b>{0}:</b>")%>'></asp:Literal>
|
||||
</div>
|
||||
<div style="display: inline-block;">
|
||||
<asp:DropDownList ID="DdlValor" runat="server" Visible="false" DataValueField="CveCaracteristicaOpcion" DataTextField ="CaracteristicaOpcion" Width="100px" CssClass="form-control input-inline input-sm" ></asp:DropDownList>
|
||||
<asp:TextBox CssClass="form-control input-sm" ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" Visible="false" Width="100px"></asp:TextBox>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
|
||||
</td>
|
||||
<tr style="vertical-align: top;">
|
||||
<td colspan="2">
|
||||
<asp:GridView ID="GvCrt2" runat="server" GridLines="None" BorderWidth="0" CssClass="table table-hover table-advance Widthall" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveCaracteristica,Caracteristica" ShowHeader="False">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle BorderStyle="None" />
|
||||
<ItemTemplate>
|
||||
<asp:Panel ID="PnlClasif" Visible="False" runat="server">
|
||||
<div style="width: 100%" class="SubTotales">
|
||||
<b><asp:Literal ID="LblCaracteristica" runat="server" Text=""></asp:Literal></b>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<div style="width:110px!important; display: inline-block;">
|
||||
<asp:Literal ID="LtlCrt" runat="server" Text='<%# Eval("Caracteristica", "<b>{0}:</b>")%>'></asp:Literal>
|
||||
|
||||
<asp:GridView ID="GvCrt1" runat="server" GridLines="None" BorderWidth="0" CssClass="table table-hover table-advance Widthall" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveCaracteristica,Caracteristica" ShowHeader="False">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle BorderStyle="None" />
|
||||
<ItemTemplate>
|
||||
<asp:Panel ID="PnlClasif" Visible="False" runat="server">
|
||||
<div style="width: 100%" class="SubTotales">
|
||||
<b>
|
||||
<asp:Literal ID="LblCaracteristica" runat="server" Text=""></asp:Literal></b>
|
||||
</div>
|
||||
<div style="display: inline-block;">
|
||||
<asp:DropDownList ID="DdlValor" runat="server" Visible="false" DataValueField="CveCaracteristicaOpcion" DataTextField ="CaracteristicaOpcion" Width="100px" CssClass="form-control input-inline input-sm" ></asp:DropDownList>
|
||||
<asp:TextBox CssClass="form-control input-sm" ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" Visible="false" Width="100px"></asp:TextBox>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</asp:Panel>
|
||||
<div style="width: 105px!important; display: inline-block; text-align: right;">
|
||||
<asp:Literal ID="LtlCrt" runat="server" Text='<%# Eval("Caracteristica", "<b>{0}:</b>")%>'></asp:Literal>
|
||||
</div>
|
||||
<div style="display: inline-block;">
|
||||
<asp:DropDownList ID="DdlValor" runat="server" Visible="false" DataValueField="CveCaracteristicaOpcion" DataTextField="CaracteristicaOpcion" Width="100px" CssClass="form-control input-inline input-sm"></asp:DropDownList>
|
||||
<asp:TextBox CssClass="form-control input-sm" ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" Visible="false" Width="100px"></asp:TextBox>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<asp:GridView ID="GvCrt3" runat="server" GridLines="None" BorderWidth="0" CssClass="table table-hover table-advance Widthall" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveCaracteristica,Caracteristica" ShowHeader="False">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle BorderStyle="None" />
|
||||
<ItemTemplate>
|
||||
<asp:Panel ID="PnlClasif" Visible="False" runat="server">
|
||||
<div style="width: 100%" class="SubTotales">
|
||||
<b><asp:Literal ID="LblCaracteristica" runat="server" Text=""></asp:Literal></b>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<div style="width:110px!important; display: inline-block; text-align:right;">
|
||||
<asp:Literal ID="LtlCrt" runat="server" Text='<%# Eval("Caracteristica", "<b>{0}:</b>")%>'></asp:Literal>
|
||||
<asp:GridView ID="GvCrt2" runat="server" GridLines="None" BorderWidth="0" CssClass="table table-hover table-advance Widthall" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveCaracteristica,Caracteristica" ShowHeader="False">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle BorderStyle="None" />
|
||||
<ItemTemplate>
|
||||
<asp:Panel ID="PnlClasif" Visible="False" runat="server">
|
||||
<div style="width: 100%" class="SubTotales">
|
||||
<b>
|
||||
<asp:Literal ID="LblCaracteristica" runat="server" Text=""></asp:Literal></b>
|
||||
</div>
|
||||
<div style="display: inline-block;">
|
||||
<asp:DropDownList ID="DdlValor" runat="server" Visible="false" DataValueField="CveCaracteristicaOpcion" DataTextField ="CaracteristicaOpcion" Width="100px" CssClass="form-control input-inline input-sm" ></asp:DropDownList>
|
||||
<asp:TextBox CssClass="form-control input-sm" ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" Visible="false" Width="100px"></asp:TextBox>
|
||||
</asp:Panel>
|
||||
<div style="width: 110px!important; display: inline-block;">
|
||||
<asp:Literal ID="LtlCrt" runat="server" Text='<%# Eval("Caracteristica", "<b>{0}:</b>")%>'></asp:Literal>
|
||||
</div>
|
||||
<div style="display: inline-block;">
|
||||
<asp:DropDownList ID="DdlValor" runat="server" Visible="false" DataValueField="CveCaracteristicaOpcion" DataTextField="CaracteristicaOpcion" Width="100px" CssClass="form-control input-inline input-sm"></asp:DropDownList>
|
||||
<asp:TextBox CssClass="form-control input-sm" ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" Visible="false" Width="100px"></asp:TextBox>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<asp:GridView ID="GvCrt3" runat="server" GridLines="None" BorderWidth="0" CssClass="table table-hover table-advance Widthall" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveCaracteristica,Caracteristica" ShowHeader="False">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemStyle BorderStyle="None" />
|
||||
<ItemTemplate>
|
||||
<asp:Panel ID="PnlClasif" Visible="False" runat="server">
|
||||
<div style="width: 100%" class="SubTotales">
|
||||
<b>
|
||||
<asp:Literal ID="LblCaracteristica" runat="server" Text=""></asp:Literal></b>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</asp:Panel>
|
||||
<div style="width: 110px!important; display: inline-block; text-align: right;">
|
||||
<asp:Literal ID="LtlCrt" runat="server" Text='<%# Eval("Caracteristica", "<b>{0}:</b>")%>'></asp:Literal>
|
||||
</div>
|
||||
<div style="display: inline-block;">
|
||||
<asp:DropDownList ID="DdlValor" runat="server" Visible="false" DataValueField="CveCaracteristicaOpcion" DataTextField="CaracteristicaOpcion" Width="100px" CssClass="form-control input-inline input-sm"></asp:DropDownList>
|
||||
<asp:TextBox CssClass="form-control input-sm" ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" Visible="false" Width="100px"></asp:TextBox>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="6">
|
||||
<asp:Button ID="BtnBuscar" runat="server" Text="Buscar" ValidationGroup="GrpBuscar" class="btn btn-primary" /> <asp:Button ID="BtnNuevoPersonal" runat="server" Text="Nuevo" OnClientClick="window.opener.location='/RH/Personal.aspx';window.close(); return false;" class="btn btn-success" /></td>
|
||||
@@ -226,7 +240,7 @@
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
||||
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<table id="TblBusqueda" runat="server" border="0" visible="false">
|
||||
<tr>
|
||||
|
||||
@@ -166,7 +166,7 @@ Partial Class RH_PopUpBuscarPersonal
|
||||
If ObjPersonal.GetPersonal2(-1, Codigo, Nombre, NSS, RFC, DdlTurnos.SelectedValue.ToEntero, DdlPuestos.SelectedValue.ToEntero, DdlDepartamentos.SelectedValue.ToEntero,
|
||||
DdlRuta.SelectedValue.ToEntero, DdlEscolaridad.SelectedValue.ToEntero, DdlEstadoCivil.SelectedValue.ToEntero, DdlGenero.SelectedValue.ToEntero,
|
||||
DdlEstatus.SelectedValue.ToEntero, DdlSubProyecto.SelectedValue.ToEntero, DdlClienteAsignado.SelectedValue.ToEntero, Horario, CveSupervisor,
|
||||
-1, -1, -1, -1, -1, "-1", "-1", "-1", "-1", StrFiltroCaracteristica, 1, UsuarioActual.CveEmpresa) Then
|
||||
-1, -1, -1, -1, -1, "-1", "-1", "-1", "-1", StrFiltroCaracteristica, 1, UsuarioActual.CveEmpresa, EsReserva:=ddlclasificacion.SelectedValue.ToEntero()) Then
|
||||
If ObjPersonal.DtResultados.Rows.Count > 0 Then
|
||||
LtlTotalRegistros.Text = ObjPersonal.DtResultados.Rows.Count.ToString.FormatoNumero(0)
|
||||
GV.DataSource = ObjPersonal.DtResultados
|
||||
|
||||
@@ -563,7 +563,9 @@ Public Class WSApp
|
||||
Salida.Cliente = ObjClientes.Nombre
|
||||
Salida.CvePrecioLista = ObjClientes.CvePrecioLista
|
||||
Salida.CveEstatusCliente = If(ObjClientes.Estatus, 1, 0)
|
||||
|
||||
If ObjClientes.CveSubProyecto > 0 Then
|
||||
Salida.CveSubProyecto = ObjClientes.CveSubProyecto
|
||||
End If
|
||||
retorno = JsonConvert.SerializeObject(Salida)
|
||||
End If
|
||||
Else
|
||||
@@ -655,15 +657,13 @@ Public Class WSApp
|
||||
Return If(TieneError, "{}", retorno.ToString())
|
||||
End Function
|
||||
<WebMethod()>
|
||||
Public Function GetListaPedidos(CveCliente As Integer, CveUsuario As Integer) As String
|
||||
Public Function GetListaPedidos(CveCliente As Integer, CveUsuario As Integer,FechaI As String, FechaF As String) As String
|
||||
Dim retorno = "[]"
|
||||
|
||||
Dim Serie As String = "-1"
|
||||
Dim Folio As Integer = -1
|
||||
Dim Codigo As String = "-1"
|
||||
Dim Cliente As String = "-1"
|
||||
Dim FechaI As String = "-1"
|
||||
Dim FechaF As String = "-1"
|
||||
Dim FolioFiscal As String = "-1"
|
||||
Dim PeidoContrato As String = "-1"
|
||||
Dim OrdenCompra As String = "-1"
|
||||
|
||||
Reference in New Issue
Block a user