This commit is contained in:
@@ -5656,7 +5656,11 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
||||
Return Retorno
|
||||
End Function
|
||||
|
||||
Public Function SolicitudVacacionesAdd(CvePersonal As Integer, Fecha As Date, FechaFin As Date, Estatus As Integer, CveUsuario As Integer, CveAutoriza As Integer, Folio As Integer, Optional Motivo As String = "", Optional FechaPago As String = "", Optional diasinabiles As Integer = 0, Optional PorcentajePrimaVac As Decimal = -1, Optional CveTipoPago As Integer = 0, Optional diasExtras As Integer = 0) As Boolean
|
||||
Public Function SolicitudVacacionesAdd(CvePersonal As Integer, Fecha As Date, FechaFin As Date, Estatus As Integer, CveUsuario As Integer,
|
||||
CveAutoriza As Integer, Folio As Integer, Optional Motivo As String = "", Optional FechaPago As String = "",
|
||||
Optional diasinabiles As Integer = 0, Optional PorcentajePrimaVac As Decimal = -1,
|
||||
Optional CveTipoPago As Integer = 0, Optional diasExtras As Integer = 0,
|
||||
Optional Ejercicio As Integer = 0, Optional PrimaVacacional As Integer = 1, Optional CobrarImss As Integer = 0) As Boolean
|
||||
Dim Retorno As Boolean = False
|
||||
|
||||
DataAdapter("PA_RH_SolicitudVacacionesAdd")
|
||||
@@ -5674,6 +5678,9 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
||||
.Add("@FechaPago", SqlDbType.VarChar).Value = FechaPago
|
||||
.Add("@CveTipoPago", SqlDbType.Int).Value = CveTipoPago
|
||||
.Add("@diasExtras", SqlDbType.Int).Value = diasExtras
|
||||
.Add("@Ejercicio", SqlDbType.Int).Value = Ejercicio
|
||||
.Add("@PrimaVacacional", SqlDbType.Int).Value = PrimaVacacional
|
||||
.Add("@CobrarImss", SqlDbType.Int).Value = CobrarImss
|
||||
'.Add("@Motivo", SqlDbType.VarChar).Value = MotivoFechaPago As String = "", Optional diasinabiles
|
||||
End With
|
||||
|
||||
|
||||
@@ -1359,9 +1359,9 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright" style=" padding-top: 0px;">
|
||||
<asp:Label runat="server" AssociatedControlID="DdlFormapagovacaciones" style=" padding-bottom: 0px;margin-bottom: 0px;">Forma de pago</asp:Label><br />
|
||||
<asp:DropDownList ID="DdlFormapagovacaciones" DataValueField="Cve" style=" margin-top: -4px;" DataTextField="Texto" Width="100%" CssClass="form-control select2me " runat="server">
|
||||
<div class="form-group form-md-line-input input-iconright" style="padding-top: 0px;">
|
||||
<asp:Label runat="server" AssociatedControlID="DdlFormapagovacaciones" Style="padding-bottom: 0px; margin-bottom: 0px;">Forma de pago</asp:Label><br />
|
||||
<asp:DropDownList ID="DdlFormapagovacaciones" DataValueField="Cve" Style="margin-top: -4px;" DataTextField="Texto" Width="100%" CssClass="form-control select2me " runat="server">
|
||||
<asp:ListItem Text="Pagadas por anticipado" Value="1" Selected="True"></asp:ListItem>
|
||||
<asp:ListItem Text="Por pagar" Value="2"></asp:ListItem>
|
||||
<asp:ListItem Text="Trabajadas" Value="3"></asp:ListItem>
|
||||
@@ -1374,7 +1374,7 @@
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtVacDiasExtra" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtVacDiasExtra" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtVacDiasExtra">Días extras</asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1382,27 +1382,28 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtVacEjercicio" CssClass="form-control input-sm " Text="2021" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtVacEjercicio" CssClass="form-control input-sm " Text="2021" runat="server"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtVacEjercicio">Ejercicio</asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
|
||||
<div style="padding-top: 0px; padding-bottom: 0px;">
|
||||
¿Prima Vacacional?
|
||||
</div>
|
||||
<asp:CheckBox ID="ChkVacPrimaVacacional" CssClass="chksino " Text=" " runat="server" />
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-6">
|
||||
|
||||
<div style="padding-top: 0px; padding-bottom: 0px;">
|
||||
¿Cobrar IMSS?
|
||||
<div class="col-md-6">
|
||||
|
||||
<div style="padding-top: 0px; padding-bottom: 0px;">
|
||||
¿Cobrar IMSS?
|
||||
</div>
|
||||
<asp:CheckBox ID="ChkVacCobrarIMSS" CssClass="chksino " Text=" " runat="server" />
|
||||
</div>
|
||||
<asp:CheckBox ID="ChkVacCobrarIMSS" CssClass="chksino " Text=" " runat="server" />
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<asp:LinkButton ID="LnkSRVacacionesUP" OnClick="LnkSRVacacionesUP_Click" Visible="false" CssClass="btn btn-success" ValidationGroup="VG_Vacaciones" runat="server">Actualizar</asp:LinkButton>
|
||||
@@ -1687,20 +1688,45 @@
|
||||
<asp:ListItem Value="-1" Text="Seleccione"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtmcImporte" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtmcImporte" Enabled="false" Text="Importe"></asp:Label>
|
||||
<i></i>
|
||||
<div class="row">
|
||||
<div class="col-md-9"></div>
|
||||
<div class="col-md-3">Calcular automatico</div>
|
||||
</div>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtmcImporteGrabado" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtmcImporteGrabado" Enabled="false" Text="Gravado"></asp:Label>
|
||||
<i></i>
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="Txtmcvalor" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="Txtmcvalor" Enabled="false" Text="Valor"></asp:Label>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 text-center">
|
||||
<asp:CheckBox ID="ChkCalAutomaticoV" OnCheckedChanged="ChkCalAutomaticoV_CheckedChanged" AutoPostBack="true" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="Txtmcvalor" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="Txtmcvalor" Enabled="false" Text="Valor"></asp:Label>
|
||||
<i></i>
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtmcImporte" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtmcImporte" Enabled="false" Text="Importe"></asp:Label>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 text-center">
|
||||
<asp:CheckBox ID="ChkCalAutomatico" OnCheckedChanged="ChkCalAutomatico_CheckedChanged" AutoPostBack="true" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtmcImporteGrabado" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtmcImporteGrabado" Enabled="false" Text="Gravado"></asp:Label>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 text-center">
|
||||
<asp:CheckBox ID="ChkCalAutomaticoG" OnCheckedChanged="ChkCalAutomaticoG_CheckedChanged" AutoPostBack="true" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
@@ -2257,17 +2283,16 @@
|
||||
</asp:DropDownList>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlTipoPeriodoCM">Tipo Periodo:</asp:Label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-3 bold">Salario Diario</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblSalarioDiarioSimula" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-3 bold"> </div>
|
||||
<div class="col-sm-3 bold"></div>
|
||||
<div class="col-sm-3">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%--<table class="table table-striped table-hover Widthall GvConceptossimulador">
|
||||
|
||||
</table>--%>
|
||||
|
||||
@@ -1823,11 +1823,33 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
TxtmcImporte.Text = "";
|
||||
TxtmcImporteGrabado.Text = "";
|
||||
Txtmcvalor.Text = "";
|
||||
ChkCalAutomaticoG.Checked = false;
|
||||
ChkCalAutomatico.Checked = false;
|
||||
ChkCalAutomaticoV.Checked = false;
|
||||
if (CveConcepto > 0)
|
||||
{
|
||||
DataRow drow = dtempleadosConceptos.FiltroPrimero(string.Format("CveConcepto={0} AND CvePersonal ={1}", CveConcepto, CvePersonal));
|
||||
if (drow != null)
|
||||
{
|
||||
int TipoCalculo = drow["Estatus"].ToString().ToEntero();
|
||||
ChkCalAutomaticoG.Checked = true;
|
||||
ChkCalAutomatico.Checked = true;
|
||||
ChkCalAutomaticoV.Checked = true;
|
||||
if (TipoCalculo >= 5)
|
||||
{
|
||||
TipoCalculo -= 5;
|
||||
ChkCalAutomaticoG.Checked = false;
|
||||
}
|
||||
if (TipoCalculo >= 3)
|
||||
{
|
||||
TipoCalculo -= 3;
|
||||
ChkCalAutomatico.Checked = false;
|
||||
}
|
||||
if (TipoCalculo >= 1)
|
||||
{
|
||||
ChkCalAutomaticoV.Checked = false;
|
||||
|
||||
}
|
||||
TxtmcImporte.Text = string.Format("{0:N2}", drow["Importe"]);
|
||||
TxtmcImporteGrabado.Text = string.Format("{0:N2}", drow["ImporteGravado"]);
|
||||
Txtmcvalor.Text = string.Format("{0:N2}", drow["Valor"]);
|
||||
@@ -1841,12 +1863,30 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
}
|
||||
UPpanelModalUpConcepto.Update();
|
||||
ChkCalAutomaticoV_CheckedChanged(ChkCalAutomaticoV, null);
|
||||
ChkCalAutomatico_CheckedChanged(ChkCalAutomatico, null);
|
||||
ChkCalAutomaticoG_CheckedChanged(ChkCalAutomaticoG, null);
|
||||
}
|
||||
protected void ChkCalAutomaticoV_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Txtmcvalor.Enabled = !ChkCalAutomaticoV.Checked;
|
||||
}
|
||||
protected void ChkCalAutomatico_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
TxtmcImporte.Enabled = !ChkCalAutomatico.Checked;
|
||||
}
|
||||
protected void ChkCalAutomaticoG_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
TxtmcImporteGrabado.Enabled = !ChkCalAutomaticoG.Checked;
|
||||
|
||||
}
|
||||
protected void BtnAceptarMC_Click(object sender, EventArgs e)
|
||||
{
|
||||
int chkImporte = 1;
|
||||
int chkImporteGravado = 1;
|
||||
int chkImporteValor = 1;
|
||||
int chkImporte = ChkCalAutomatico.Checked? 0:1;
|
||||
int chkImporteGravado = ChkCalAutomaticoG.Checked ? 0 : 1;
|
||||
int chkImporteValor = ChkCalAutomaticoV.Checked ? 0 : 1;
|
||||
bool continuar = true;
|
||||
int CveNomina = 0;
|
||||
double Total = 0;
|
||||
@@ -1858,12 +1898,15 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
CvePersonal = DdlmcPersonal.SelectedValue.ToEntero();
|
||||
}
|
||||
int CveConcepto = DdlmcConceptos.SelectedValue.ToEntero();
|
||||
if (CveConcepto > 0 && CvePersonal > 0)
|
||||
{
|
||||
decimal ImporteConcepto = TxtmcImporte.Text.Replace("$", "").Replace(",", "").ToDecimal();
|
||||
decimal ImporteGravadoConcepto = TxtmcImporteGrabado.Text.Replace("$", "").Replace(",", "").ToDecimal();
|
||||
decimal ImporteGravadoConcepto = ChkCalAutomaticoG.Checked ? 0.0m : TxtmcImporteGrabado.Text.Replace("$", "").Replace(",", "").ToDecimal();
|
||||
decimal ImporteExentoConcepto = ImporteConcepto - ImporteGravadoConcepto;
|
||||
decimal ImporteValor = Txtmcvalor.Text.Replace("$", "").Replace(",", "").ToDecimal();
|
||||
if ((ImporteConcepto>= 0 && ImporteGravadoConcepto<= ImporteConcepto)|| (ImporteConcepto < 0 && ImporteGravadoConcepto >= ImporteConcepto))
|
||||
{
|
||||
|
||||
if (CveConcepto > 0 && CvePersonal > 0)
|
||||
{
|
||||
using (ClsNominas objNomina = new ClsNominas())
|
||||
{
|
||||
|
||||
@@ -1933,6 +1976,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
Alert("Debe seleccionar un concepto.", TipoMensaje.MsgAdvertencia);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert("el importe gravado no puede ser mayor al importe total, en caso de que el importe total sea negativo no puede ser menor.",TipoMensaje.MsgAdvertencia );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -5728,7 +5776,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
VacFolioActual = VacFolioActual + 1;
|
||||
ClsRH objRH = new ClsRH();
|
||||
// Dim continuar As Boolean = objRH.SolicitudVacacionesAdd(CvePersonal, fInicio, fFin, 0, UsuarioActual.CveUsuario, VacCveSupervisor, VacFolioActual, motivoVacaciones)
|
||||
bool continuar = objRH.SolicitudVacacionesAdd(SRCvePersonal, fInicio, fFin, 0, UsuarioActual.CveUsuario, VacCveSupervisor, VacFolioActual, FechaPago: fechapago, diasinabiles: diasinhabil, CveTipoPago: DdlFormapagovacaciones.SelectedValue.ToEntero(), diasExtras: TxtVacDiasExtra.Text.ToEntero());//
|
||||
bool continuar = objRH.SolicitudVacacionesAdd(SRCvePersonal, fInicio, fFin, 0, UsuarioActual.CveUsuario, VacCveSupervisor, VacFolioActual, FechaPago: fechapago,
|
||||
diasinabiles: diasinhabil, CveTipoPago: DdlFormapagovacaciones.SelectedValue.ToEntero(), diasExtras: TxtVacDiasExtra.Text.ToEntero());
|
||||
if (objRH.DtResultados.Rows.Count > 0)
|
||||
{
|
||||
string ShowError = objRH.DtResultados.Rows[0]["ShowError"].ToString();
|
||||
@@ -6733,4 +6782,5 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
LnkSRVacacionesADD.Visible = true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -939,7 +939,16 @@
|
||||
<asp:CompareValidator ID="CVFechaIngreso" runat="server" ControlToValidate="TxtFechaIngreso" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaIngreso''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardarAddS"></asp:CompareValidator>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" style="display: none;">
|
||||
<div class="col-md-3">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiario" runat="server" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiario" Enabled="false" Text="Salario Diario (SDD):"></asp:Label>
|
||||
<%--<asp:CompareValidator ID="CVSalarioDiario" runat="server" ControlToValidate="TxtSalarioDiario" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5" style="display: none;">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtCodigo" runat="server" MaxLength="12" Text="-1"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtCodigo" runat="server" Text="Código:"></asp:Label>
|
||||
@@ -1098,7 +1107,7 @@
|
||||
<div class="modal-footer">
|
||||
<asp:LinkButton ID="LnkGuardar" OnClick="LnkGuardar_Click" CssClass="btn btn-primary" ValidationGroup="GrpGuardarAddS" runat="server">Agregar</asp:LinkButton>
|
||||
<asp:Button ID="ClickOnHideModal" ClientIDMode="Static" OnClick="ClickOnHideModal_Click" CssClass="hidden" runat="server" Text="Button" />
|
||||
|
||||
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Terminar</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1121,13 +1121,14 @@ Partial Class RH_CatPersonal
|
||||
Dim isSindicalizado As Boolean = (DDlSindicalizado.SelectedValue = "1")
|
||||
Dim CvePuesto As Integer = DdlPuestoAdd.SelectedValue.ToEntero()
|
||||
Dim CveSATRiesgoPuesto As Integer = DdlRiesgoPuesto.SelectedValue.ToEntero()
|
||||
Dim SalarioDiario As Decimal = TxtSalarioDiario.Text.ToDecimal()
|
||||
Dim continuar As Boolean = False
|
||||
Dim CvePersonal As Integer = 0
|
||||
Using ObjPersonal As New ClsRH()
|
||||
|
||||
If ObjPersonal.AddPersonal("-1", TxtAPaterno.Text.Trim, TxtAMaterno.Text.Trim, TxtNombres.Text.Trim, "", TxtFechaIngreso.Text.ToDate,
|
||||
DdlTipoPeriodoAdd.SelectedValue.ToEntero, TxtNumeroSS.Text.Trim, ChkSeInscribioSS.Checked, 0,
|
||||
0, 0, 0, 0, 15, 25, DdlMetodoPagoAdd.SelectedValue.ToEntero, TxtFechaIngreso.Text.Trim.ToDate, "-1",
|
||||
DdlTipoPeriodoAdd.SelectedValue.ToEntero, TxtNumeroSS.Text.Trim, True, SalarioDiario,
|
||||
SalarioDiario, 0, 0, 0, 15, 25, DdlMetodoPagoAdd.SelectedValue.ToEntero, TxtFechaIngreso.Text.Trim.ToDate, "-1",
|
||||
DdlTipoContratoAdd.SelectedValue.ToEntero, "",
|
||||
DdlTurno.SelectedValue.ToEntero, CvePuesto,
|
||||
DdlDepartamentoAdd.SelectedValue.ToEntero,
|
||||
|
||||
@@ -645,22 +645,22 @@
|
||||
</div>
|
||||
<div class="portlet-body form">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList Width="100%" ID="DdlEstatusPersonal" runat="server" AppendDataBoundItems="True" AutoPostBack="True" DataTextField="EstatusPersonal" DataValueField="CveEstatusPersonal" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar">
|
||||
<asp:DropDownList Width="100%" ID="DdlEstatusPersonal" Enabled="false" runat="server" AppendDataBoundItems="True" AutoPostBack="True" DataTextField="EstatusPersonal" DataValueField="CveEstatusPersonal" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<label for="<%= DdlEstatusPersonal.ClientID.ToString()%>">Estatus: </label>
|
||||
<asp:RequiredFieldValidator ID="RFVEstatusPersonal" runat="server" ControlToValidate="DdlEstatusPersonal" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''EstatusPersonal''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<i></i>
|
||||
</div>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<%-- <div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList Width="100%" ID="DdlMotivoBaja" runat="server" AppendDataBoundItems="True" DataTextField="MotivoBaja" DataValueField="CveMotivoBaja" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Selected="True" Text="Sin asignar Motivo de Baja" Value="-1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<label for="<%= DdlMotivoBaja.ClientID.ToString()%>">Motivo de Baja: </label>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>--%>
|
||||
|
||||
<div runat="server" id="DivFechaActivo" visible="true" class="form-group form-md-line-input input-iconright">
|
||||
<%-- <div runat="server" id="DivFechaActivo" visible="true" class="form-group form-md-line-input input-iconright">
|
||||
|
||||
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style=" padding: 5px 0px;">
|
||||
<asp:TextBox ID="TxtFechaActivo" runat="server" CausesValidation="True" CssClass="form-control input-sm"></asp:TextBox>
|
||||
@@ -677,9 +677,9 @@
|
||||
|
||||
<i></i>
|
||||
|
||||
</div>
|
||||
</div>--%>
|
||||
|
||||
<div runat="server" id="DivFechaBaja" visible="true" class="form-group form-md-line-input input-iconright">
|
||||
<%-- <div runat="server" id="DivFechaBaja" visible="true" class="form-group form-md-line-input input-iconright">
|
||||
|
||||
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style=" padding: 5px 0px;">
|
||||
<asp:TextBox ID="TxtFechaBaja" runat="server" CausesValidation="True" CssClass="form-control input-sm"></asp:TextBox>
|
||||
@@ -696,9 +696,9 @@
|
||||
<asp:RequiredFieldValidator ID="RfvTxtFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> es necesario " ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<i></i>
|
||||
|
||||
</div>
|
||||
</div>--%>
|
||||
|
||||
<div runat="server" id="DivFechaReingreso" visible="true" class="form-group form-md-line-input input-iconright">
|
||||
<%-- <div runat="server" id="DivFechaReingreso" visible="true" class="form-group form-md-line-input input-iconright">
|
||||
|
||||
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style=" padding: 5px 0px;">
|
||||
<asp:TextBox ID="TxtFechaReingreso" runat="server" CausesValidation="True" CssClass="form-control input-sm"></asp:TextBox>
|
||||
@@ -715,7 +715,7 @@
|
||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtFechaReingreso" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Reingreso''</b> es necesario " ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<i></i>
|
||||
|
||||
</div>
|
||||
</div>--%>
|
||||
|
||||
|
||||
<div>
|
||||
@@ -4813,7 +4813,7 @@
|
||||
<div style=" width: 200px;
|
||||
display: inline-block;">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:TextBox ID="TxtFechamodSalario" Enabled="false" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtFechamodSalario" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtFechamodSalario">Fecha:</asp:Label>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaModSalario" runat="server" TargetControlID="TxtFechamodSalario" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEEFechaModSalario" TargetControlID="TxtFechamodSalario" PopupButtonID="LnkFechaModSalario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
|
||||
@@ -1075,8 +1075,8 @@ Partial Class RH_Personal
|
||||
End Sub
|
||||
|
||||
Private Sub CargaMotivoBaja()
|
||||
DdlMotivoBaja.DataSource = GlobalDTMotivoBaja.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
||||
DdlMotivoBaja.DataBind()
|
||||
'DdlMotivoBaja.DataSource = GlobalDTMotivoBaja.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
||||
'DdlMotivoBaja.DataBind()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaEstatusPersonal()
|
||||
@@ -1524,14 +1524,13 @@ Partial Class RH_Personal
|
||||
|
||||
DdlPuesto.SelectedValue = ObjPersonal.CvePuesto.ToString()
|
||||
DdlRuta.SelectedValue = ObjPersonal.CveRuta.ToString()
|
||||
DdlMotivoBaja.SelectedValue = ObjPersonal.CveMotivoBaja.ToString()
|
||||
'DdlMotivoBaja.SelectedValue = ObjPersonal.CveMotivoBaja.ToString()
|
||||
|
||||
TxtFechaBaja.Text = If(ObjPersonal.FechaBaja.ToShortDateString = "01/01/0001", "", ObjPersonal.FechaBaja.ToShortDateString)
|
||||
|
||||
If ObjPersonal.DtResultados IsNot Nothing AndAlso ObjPersonal.DtResultados.Rows.Count > 0 Then
|
||||
TxtFechaActivo.Text = If(drow("FechaActivo").ToString().Length > 0, drow("FechaActivo").ToString().ToDate.ToString("dd/MM/yyyy"), drow("FechaIng").ToString().ToDate.ToString("dd/MM/yyyy"))
|
||||
TxtFechaReingreso.Text = If(drow("FechaReingreso").ToString().Length > 0, drow("FechaReingreso").ToString().ToDate.ToString("dd/MM/yyyy"), "")
|
||||
End If
|
||||
'If ObjPersonal.DtResultados IsNot Nothing AndAlso ObjPersonal.DtResultados.Rows.Count > 0 Then
|
||||
' TxtFechaActivo.Text = If(drow("FechaActivo").ToString().Length > 0, drow("FechaActivo").ToString().ToDate.ToString("dd/MM/yyyy"), drow("FechaIng").ToString().ToDate.ToString("dd/MM/yyyy"))
|
||||
' TxtFechaReingreso.Text = If(drow("FechaReingreso").ToString().Length > 0, drow("FechaReingreso").ToString().ToDate.ToString("dd/MM/yyyy"), "")
|
||||
'End If
|
||||
|
||||
DdlEstatusPersonal.SelectedValue = ObjPersonal.CveEstatusPersonal.ToString()
|
||||
|
||||
@@ -1713,19 +1712,18 @@ Partial Class RH_Personal
|
||||
Dim Mensaje = ""
|
||||
Dim Accion = ""
|
||||
|
||||
Dim FechaBaja As Date = MinFecha
|
||||
Dim FechaActivo As Date = MinFecha
|
||||
Dim FechaReingreso As Date = MinFecha
|
||||
'Dim FechaBaja As Date = MinFecha
|
||||
'Dim FechaActivo As Date = MinFecha
|
||||
'Dim FechaReingreso As Date = MinFecha
|
||||
|
||||
If DdlEstatusPersonal.SelectedValue.ToEntero <> CvePersonalEstatusInicial Then
|
||||
If DdlEstatusPersonal.SelectedValue.ToEntero = 1 Then
|
||||
FechaActivo = TxtFechaActivo.Text.ToDate
|
||||
ElseIf DdlEstatusPersonal.SelectedValue.ToEntero = 2 Then
|
||||
FechaBaja = TxtFechaBaja.Text.ToDate
|
||||
ElseIf DdlEstatusPersonal.SelectedValue.ToEntero = 5 Then
|
||||
FechaReingreso = TxtFechaReingreso.Text.ToDate
|
||||
End If
|
||||
End If
|
||||
'If DdlEstatusPersonal.SelectedValue.ToEntero <> CvePersonalEstatusInicial Then
|
||||
' If DdlEstatusPersonal.SelectedValue.ToEntero = 1 Then
|
||||
' FechaActivo = TxtFechaActivo.Text.ToDate
|
||||
' ElseIf DdlEstatusPersonal.SelectedValue.ToEntero = 2 Then
|
||||
' ElseIf DdlEstatusPersonal.SelectedValue.ToEntero = 5 Then
|
||||
' FechaReingreso = TxtFechaReingreso.Text.ToDate
|
||||
' End If
|
||||
'End If
|
||||
|
||||
If UsuarioActual.CveEmpresa = 72 OrElse UsuarioActual.CveEmpresa = 80 Then
|
||||
TxtSalarioCotizado.Text = TxtSDI.Text
|
||||
@@ -1745,7 +1743,7 @@ Partial Class RH_Personal
|
||||
DdlEscolaridad.SelectedValue.ToEntero,
|
||||
DdlEstadoCivil.SelectedValue.ToEntero,
|
||||
DdlGenero.SelectedValue.ToEntero,
|
||||
DdlMotivoBaja.SelectedValue.ToEntero, If(DdlEstatusPersonal.SelectedValue = "2", TxtFechaBaja.Text.Trim, "-1"),
|
||||
-1, "-1",
|
||||
DdlEstatusPersonal.SelectedValue.ToEntero, TxtFechaNacimiento.Text.ToDate,
|
||||
TxtLugarNacimiento.Text.Trim, TxtCalle.Text.Trim, TxtNumExt.Text.Trim, TxtNumInt.Text.Trim, TxtColonia.Text.Trim, TxtCP.Text.Trim, TxtCiudad.Text.Trim,
|
||||
DdlEstados.SelectedValue.ToEntero, TxtTelefono.Text.Trim, TxtCelular.Text.Trim, TxtRFC.Text.Trim,
|
||||
@@ -1816,7 +1814,7 @@ Partial Class RH_Personal
|
||||
DdlEscolaridad.SelectedValue.ToEntero,
|
||||
DdlEstadoCivil.SelectedValue.ToEntero,
|
||||
DdlGenero.SelectedValue.ToEntero,
|
||||
DdlMotivoBaja.SelectedValue.ToEntero, If(DdlEstatusPersonal.SelectedValue = "2", TxtFechaBaja.Text.Trim, "-1"),
|
||||
-1, "-1",
|
||||
DdlEstatusPersonal.SelectedValue.ToEntero, TxtFechaNacimiento.Text.ToDate,
|
||||
TxtLugarNacimiento.Text.Trim, TxtCalle.Text.Trim, TxtNumExt.Text.Trim, TxtNumInt.Text.Trim, TxtColonia.Text.Trim, TxtCP.Text.Trim, TxtCiudad.Text.Trim,
|
||||
DdlEstados.SelectedValue.ToEntero, TxtTelefono.Text.Trim, TxtCelular.Text.Trim, TxtRFC.Text.Trim,
|
||||
@@ -1826,7 +1824,7 @@ Partial Class RH_Personal
|
||||
URL, DdlSupervisor.SelectedValue.ToEntero, TxtCLABE.Text.Trim, TxtBancoNumCuenta.Text.Trim, DdlJornada.SelectedValue.ToEntero, DdlViaticos.SelectedValue.ToEntero, DdlViaticos.SelectedItem.Text,
|
||||
DdlPrestamos.SelectedValue.ToEntero, DdlPrestamos.SelectedItem.Text, UsuarioActual.CveEmpresa, DDLUsuarioNomina.SelectedValue.ToEntero, DdlSubproyectoZona.SelectedValue.ToEntero, CveUniforme:=DdlUniforme.SelectedValue.ToEntero,
|
||||
TelefonoExtension:=TxtTelefonoExtension.Text, CelularPersonal:=TxtCelularPersonal.Text, TelefonoMarcadoRapido:=TxtTelefonoMarcadoRapido.Text, ContactoAlterno:="", CveUsuarioModifico:=UsuarioActual.CveUsuario,
|
||||
FechaActivo:=FechaActivo, FechaReingreso:=FechaReingreso, CveTipodeSalario:=DDlTipoSalario.SelectedValue.ToEntero(), Sindicalizado:=If(ChkSindicalizado.Checked, 1, 0), CvePais:=DdlPais.SelectedValue.ToEntero) Then
|
||||
CveTipodeSalario:=DDlTipoSalario.SelectedValue.ToEntero(), Sindicalizado:=If(ChkSindicalizado.Checked, 1, 0), CvePais:=DdlPais.SelectedValue.ToEntero) Then
|
||||
|
||||
'Funsion usa RH Familiares
|
||||
If UsuarioActual.Empresa.Funcionalidad(568) = "1" Then
|
||||
@@ -2652,16 +2650,18 @@ Partial Class RH_Personal
|
||||
|
||||
Private Sub MostrarOcultarFechasEstatus()
|
||||
|
||||
'DivFechaReingreso.Visible = False
|
||||
'DivFechaActivo.Visible = False
|
||||
|
||||
If DdlEstatusPersonal.SelectedValue.ToEntero.Contiene(1, 2, 5) Then
|
||||
DivFechaActivo.Visible = If(DdlEstatusPersonal.SelectedValue.ToEntero = 1, True, False)
|
||||
DivFechaBaja.Visible = If(DdlEstatusPersonal.SelectedValue.ToEntero = 2, True, False)
|
||||
DivFechaReingreso.Visible = If(DdlEstatusPersonal.SelectedValue.ToEntero = 5, True, False)
|
||||
Else
|
||||
DivFechaActivo.Visible = False
|
||||
DivFechaBaja.Visible = False
|
||||
DivFechaReingreso.Visible = False
|
||||
End If
|
||||
'If DdlEstatusPersonal.SelectedValue.ToEntero.Contiene(1, 2, 5) Then
|
||||
' DivFechaActivo.Visible = If(DdlEstatusPersonal.SelectedValue.ToEntero = 1, True, False)
|
||||
' 'DivFechaBaja.Visible = If(DdlEstatusPersonal.SelectedValue.ToEntero = 2, True, False)
|
||||
' 'DivFechaReingreso.Visible = If(DdlEstatusPersonal.SelectedValue.ToEntero = 5, True, False)
|
||||
'Else
|
||||
' DivFechaActivo.Visible = False
|
||||
' 'DivFechaBaja.Visible = False
|
||||
' DivFechaReingreso.Visible = False
|
||||
'End If
|
||||
|
||||
End Sub
|
||||
|
||||
@@ -3396,7 +3396,7 @@ Partial Class RH_Personal
|
||||
params.Add(New ReportParameter("Proyecto", DdlProyectoAsignado.SelectedItem.Text))
|
||||
params.Add(New ReportParameter("SubProyecto", DdlSubProyectoAsignado.SelectedItem.Text))
|
||||
params.Add(New ReportParameter("Estatus", If(DdlEstatusPersonal.SelectedValue = "-1", "", DdlEstatusPersonal.SelectedItem.Text)))
|
||||
params.Add(New ReportParameter("MotivoBaja", If(DdlMotivoBaja.SelectedValue = "-1", "", DdlMotivoBaja.SelectedItem.Text)))
|
||||
params.Add(New ReportParameter("MotivoBaja", ""))
|
||||
params.Add(New ReportParameter("FechaInicio", ObjPersonal.FechaIng.ToShortDateString))
|
||||
params.Add(New ReportParameter("FechaFin", If(ObjPersonal.FechaBaja.ToShortDateString = "01/01/0001", "", ObjPersonal.FechaBaja.ToShortDateString)))
|
||||
params.Add(New ReportParameter("CuentaContable", DdlViaticos.SelectedItem.Text))
|
||||
@@ -3490,7 +3490,7 @@ Partial Class RH_Personal
|
||||
params.Add(New ReportParameter("Proyecto", DdlProyectoAsignado.SelectedItem.Text))
|
||||
params.Add(New ReportParameter("SubProyecto", DdlSubProyectoAsignado.SelectedItem.Text))
|
||||
params.Add(New ReportParameter("Estatus", If(DdlEstatusPersonal.SelectedValue = "-1", "", DdlEstatusPersonal.SelectedItem.Text)))
|
||||
params.Add(New ReportParameter("MotivoBaja", If(DdlMotivoBaja.SelectedValue = "-1", "", DdlMotivoBaja.SelectedItem.Text)))
|
||||
params.Add(New ReportParameter("MotivoBaja", ""))
|
||||
params.Add(New ReportParameter("FechaInicio", ObjPersonal.FechaIng.ToShortDateString))
|
||||
params.Add(New ReportParameter("FechaFin", If(ObjPersonal.FechaBaja.ToShortDateString = "01/01/0001", "", ObjPersonal.FechaBaja.ToShortDateString)))
|
||||
params.Add(New ReportParameter("CuentaContable", DdlViaticos.SelectedItem.Text))
|
||||
|
||||
@@ -290,6 +290,12 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user