This commit is contained in:
@@ -229,11 +229,13 @@ Partial Class PopUpVerFactura
|
||||
If Request("onlyPrint").ToString() = "Recibo" Then
|
||||
ReciboAgropecuaria()
|
||||
End If
|
||||
If Request("onlyPrint").ToString() = "CitrusInventarioDiario" Then
|
||||
imprimirRepcitrusInventarioDiario("")
|
||||
If Request("onlyPrint").ToString() = "CitrusInventarioDiario" AndAlso Not IsNothing(Request("fecha")) Then
|
||||
imprimirRepcitrusInventarioDiario(Request("fecha").ToString(), "PDF")
|
||||
End If
|
||||
If Request("onlyPrint").ToString() = "CitrusInventarioDiarioxls" AndAlso Not IsNothing(Request("fecha")) Then
|
||||
imprimirRepcitrusInventarioDiario(Request("fecha").ToString(), "Excel")
|
||||
End If
|
||||
End If
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -340,10 +342,11 @@ Partial Class PopUpVerFactura
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub imprimirRepcitrusInventarioDiario(fecha As String)
|
||||
Private Sub imprimirRepcitrusInventarioDiario(fecha As String, formato As String)
|
||||
Dim totalPallets As String = ""
|
||||
Dim totalBachas As String = ""
|
||||
Dim fechas As String = ""
|
||||
Dim dfec As DateTime = fecha.ToDateTime()
|
||||
Dim fechas As String = String.Format(New System.Globalization.CultureInfo("es-MX"), "{0:dd} de {0:MMMM} del {0:yyyy}", dfec)
|
||||
Dim totalcajas As String = ""
|
||||
Dim TotalBins As String = ""
|
||||
|
||||
@@ -352,13 +355,13 @@ Partial Class PopUpVerFactura
|
||||
Dim tablaReporteBins As New DataTable
|
||||
|
||||
Using objnom As New ClsCGame
|
||||
If objnom.REPInventarioDiarioPallets(DateTime.Now, UsuarioActual.CveEmpresa, "") And objnom.DtResultados.Rows.Count > 0 Then
|
||||
If objnom.REPInventarioDiarioPallets(dfec, UsuarioActual.CveEmpresa, "") And objnom.DtResultados.Rows.Count > 0 Then
|
||||
tablaReportePallets = objnom.DtResultados
|
||||
totalPallets = tablaReportePallets.SUM("Pallets", "GroupId =1").FormatoNumero(0)
|
||||
totalBachas = tablaReportePallets.SUM("Bachas", "GroupId =1").FormatoNumero(0)
|
||||
totalcajas = tablaReportePallets.SUM("CajasTotal", "GroupId =1").FormatoNumero(0)
|
||||
End If
|
||||
If objnom.REPInventarioDiarioBins(DateTime.Now, UsuarioActual.CveEmpresa, "") And objnom.DtResultados.Rows.Count > 0 Then
|
||||
If objnom.REPInventarioDiarioBins(dfec, UsuarioActual.CveEmpresa, "") And objnom.DtResultados.Rows.Count > 0 Then
|
||||
tablaReporteBins = objnom.DtResultados
|
||||
TotalBins = tablaReporteBins.SUM("Bins").FormatoNumero(0)
|
||||
End If
|
||||
@@ -379,7 +382,7 @@ Partial Class PopUpVerFactura
|
||||
|
||||
'"D:\\ADSistemas\\Proyectos\\SIG\\SIGIT\\GPS\\PalletEtiqueta.rdlc"
|
||||
Dim rutardlc = "Formatos\RepAgroInventarioDiario.rdlc"
|
||||
ImprimirPDF(rutardlc, lrds, params, "Inventario") ', Content_Disposition:="Inline")
|
||||
ImprimirPDF(rutardlc, lrds, params, "Inventario", formato) ', Content_Disposition:="Inline")
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
@@ -820,6 +820,7 @@
|
||||
<div class="caption ">
|
||||
<i class="fa fa-user font-yellow-gold"></i>
|
||||
<span class="caption-subject bold font-black uppercase">Trabajador : </span>
|
||||
<asp:Label ID="LblCodigoEmpleado" runat="server"></asp:Label>
|
||||
<asp:HyperLink ID="LblEmpleado" runat="server" Text=""></asp:HyperLink>
|
||||
</div>
|
||||
<div class="tools">
|
||||
@@ -833,95 +834,76 @@
|
||||
</div>
|
||||
<div class="portlet-body " style="padding: 0px;">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 bold">No. trabajador</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblCodigoEmpleado" runat="server"></asp:Label>
|
||||
<div class="col-sm-1 bold">Salario</div>
|
||||
<div class="col-sm-2 text-right" >
|
||||
<asp:Label ID="LblSRSalarioDiario" runat="server"></asp:Label>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-3 bold">Días trabajados</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-sm-2 bold">Afi IMSS </div>
|
||||
<div class="col-sm-2">
|
||||
<asp:Label ID="LblNSS" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-2 bold">Días trabajados</div>
|
||||
<div class="col-sm-2 text-right">
|
||||
<asp:Label ID="LblDiasLaborados" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3 bold">Salario diario</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblSRSalarioDiario" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-3 bold">Salario Diario Integrado</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-sm-1 bold">SDI</div>
|
||||
<div class="col-sm-2 text-right">
|
||||
<asp:Label ID="LblSRSalarioDiarioIntegrado" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3 bold">Salario base cotización</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblSRSbc" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-3 bold"></div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="Label3" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3 bold">Puesto</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblSRPuesto" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-3 bold">Departamento </div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblSRDepartamento" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3 bold">Afi IMSS </div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblNSS" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-3 bold">Faltas</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblDiasFaltados" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3 bold">R.F.C.</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblRFC" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-3 bold">Retardos</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblDiasRetardos" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3 bold">CURP</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<div class="col-sm-2 bold">CURP</div>
|
||||
<div class="col-sm-2">
|
||||
<asp:Label ID="LblCURP" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-3 bold">Días Vacaciones</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-sm-2 bold">Días Vacaciones</div>
|
||||
<div class="col-sm-2 text-right">
|
||||
<asp:Label ID="LblDiasVacaciones" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3 bold">Tipo de Pago</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblTipoPeriodo" runat="server"></asp:Label>
|
||||
<div class="col-sm-1 bold">SBC</div>
|
||||
<div class="col-sm-2 text-right">
|
||||
<asp:Label ID="LblSRSbc" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-3 bold">Días Incapacidad</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-sm-2 bold">R.F.C.</div>
|
||||
<div class="col-sm-2 ">
|
||||
<asp:Label ID="LblRFC" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-2 bold">Días Incapacidad</div>
|
||||
<div class="col-sm-2 text-right">
|
||||
<asp:Label ID="LblDiasIncapacidad" runat="server"></asp:Label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-1 bold">Puesto</div>
|
||||
<div class="col-sm-2">
|
||||
<asp:Label ID="LblSRPuesto" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-2 bold">Departamento </div>
|
||||
<div class="col-sm-2">
|
||||
<asp:Label ID="LblSRDepartamento" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-2 bold">Faltas</div>
|
||||
<div class="col-sm-2 text-right">
|
||||
<asp:Label ID="LblDiasFaltados" runat="server"></asp:Label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row" style="display:none">
|
||||
<div class="col-sm-3 bold">Fecha de Pago</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblFechaPagosrb" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="col-sm-3 bold">Periodo del</div>
|
||||
<div class="col-sm-3 bold">Tipo de Pago</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Label ID="LblFecha" runat="server"></asp:Label>
|
||||
<asp:Label ID="LblTipoPeriodo" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -935,7 +917,7 @@
|
||||
<div class="portlet-title">
|
||||
<div class="caption ">
|
||||
<i class="icon-pin font-yellow-gold"></i>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">Sobre Recibo</span>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">Nomina del <asp:Label ID="LblFecha" runat="server"></asp:Label></span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
@@ -1030,8 +1012,8 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Importe">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="LtlImporte" runat="server" Text='<%# Eval("ImporteP", "${0:N}") %>' Style="word-break: break-all; display: inline-block;"></asp:Label>
|
||||
<asp:LinkButton ID="LnkImporte" OnClick="LnkConcepto_Click" runat="server"></asp:LinkButton>
|
||||
<asp:Label ID="LtlImporte" runat="server" Text='<%# Eval("ImporteP", "${0:N}") %>' data-toggle="tooltip" title='<%# Eval("ImporteGravadoP", "${0:N}") %>' Style="word-break: break-all; display: inline-block;"></asp:Label>
|
||||
<asp:LinkButton ID="LnkImporte" OnClick="LnkConcepto_Click" runat="server" data-toggle="tooltip" title='<%# Eval("ImporteGravadoP", "${0:N}") %>'></asp:LinkButton>
|
||||
<div style="display: inline-block; width: 29px;">
|
||||
<asp:LinkButton ID="LnkImportexCalculo" OnClick="LnkImportexCalculo_Click" runat="server" CssClass="btn btn-circle btn-sm btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el importe fijo?" data-btn-ok-label="si"></asp:LinkButton>
|
||||
</div>
|
||||
|
||||
@@ -3979,21 +3979,21 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
DiasLaborados = string.Format("{0}", drow["DiasLaborados"].ToString().ToEntero());
|
||||
DiasFaltados = string.Format("{0}", drow["DiasFaltados"].ToString().ToEntero());
|
||||
DiasVacaciones = string.Format("{0}", drow["DiasVacaciones"].ToString().ToEntero());
|
||||
DiasVacaciones = string.Format("{0}", drow["DiasVacacionesPorPagar"].ToString().ToEntero());//DiasVacaciones
|
||||
FechaInicio = string.Format("{0:dd/MM/yyyy}", drow["FechaInicio"]);
|
||||
FechaFin = string.Format("{0:dd/MM/yyyy}", drow["FechaFin"]);
|
||||
DiasRetardos = string.Format("{0}", drow["DiasRetardos"].ToString().ToEntero());
|
||||
DiasIncapacidad = string.Format("{0}", drow["DiasIncapacidad"].ToString().ToEntero());
|
||||
SD = string.Format("{0:####.####}", drow["SalarioDiario"]);
|
||||
SDI = string.Format("{0:####.####}", drow["SalarioDiarioIntegrado"]);
|
||||
SalarioDiarioIMSS = string.Format("{0:####.####}", drow["SalarioDiarioIMSS"]);
|
||||
SD = string.Format("{0:###0.00##}", drow["SalarioDiario"]);
|
||||
SDI = string.Format("{0:###0.00##}", drow["SalarioDiarioIntegrado"]);
|
||||
SalarioDiarioIMSS = string.Format("{0:###0.00##}", drow["SalarioDiarioIMSS"]);
|
||||
}
|
||||
|
||||
LblDiasLaborados.Text = DiasLaborados;
|
||||
LblDiasFaltados.Text = DiasFaltados;
|
||||
LblDiasVacaciones.Text = DiasVacaciones;
|
||||
LblFecha.Text = string.Format("{0} al {1}", FechaInicio, FechaFin);
|
||||
LblDiasRetardos.Text = DiasRetardos;
|
||||
//LblDiasRetardos.Text = DiasRetardos;
|
||||
LblDiasIncapacidad.Text = DiasIncapacidad;
|
||||
LblSRSalarioDiario.Text = SD;
|
||||
LblSRSalarioDiarioIntegrado.Text = SDI;
|
||||
@@ -4210,13 +4210,17 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
DataTable dtded = dtPerConceptos.FiltraParametros(string.Format("Tipo IN ('D') AND EsPadre = 1 AND CveSistema NOT IN(101) {0}", (MostrarFormulas ? "" : " AND SoloVisible=0")));
|
||||
dtper.Columns.Add("BorradoLogico", typeof(int));
|
||||
dtded.Columns.Add("BorradoLogico", typeof(int));
|
||||
|
||||
bool esfinperiodo = false;
|
||||
if(dtPerPeriodo.Rows.Count > 0)
|
||||
{
|
||||
esfinperiodo = (dtPerPeriodo.Rows[0]["EsFinMes"].ToString().ToEntero() == 1);
|
||||
}
|
||||
foreach (DataRow row in dtper.Rows)
|
||||
{
|
||||
int BorradoLogico = 0;
|
||||
int CveConcepto = row["CveConcepto"].ToString().ToEntero();
|
||||
if (!(dtPerEmpleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal)) != 0)
|
||||
&& (dtPerEmpleadosConceptos.COUNT("CveConcepto", string.Format("CveConcepto={0} AND CvePersonal ={1} AND Estatus =2", CveConcepto, SRCvePersonal)) == 0)
|
||||
&& (dtPerEmpleadosConceptos.COUNT("CveConcepto", string.Format("CveConcepto={0} AND CvePersonal ={1} AND Estatus >0", CveConcepto, SRCvePersonal)) == 0)
|
||||
)
|
||||
{
|
||||
BorradoLogico = 1;
|
||||
@@ -4229,10 +4233,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
int BorradoLogico = 0;
|
||||
int CveConcepto = row["CveConcepto"].ToString().ToEntero();
|
||||
if (!(dtPerEmpleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal)) != 0)
|
||||
&& (dtPerEmpleadosConceptos.COUNT("CveConcepto", string.Format("CveConcepto={0} AND CvePersonal ={1} AND Estatus =2", CveConcepto, SRCvePersonal)) == 0)
|
||||
&& (dtPerEmpleadosConceptos.COUNT("CveConcepto", string.Format("CveConcepto={0} AND CvePersonal ={1} AND Estatus >0", CveConcepto, SRCvePersonal)) == 0)
|
||||
)
|
||||
{
|
||||
if (!row["CveSistema"].ToString().ToEntero().Contiene(new int[] { 20, 21, 112, 202, 203, 204, 205, 206, 207, 50, 51 }))
|
||||
if (!(esfinperiodo && row["CveSistema"].ToString().ToEntero().Contiene(new int[] { 20, 21, 112, 202, 203, 204, 205, 206, 207, 50, 51 })))
|
||||
{
|
||||
BorradoLogico = 1;
|
||||
}
|
||||
@@ -4240,8 +4244,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
row["BorradoLogico"] = BorradoLogico;
|
||||
}
|
||||
dtded.AcceptChanges();
|
||||
dtper = dtper.FiltraParametros("BorradoLogico=0");
|
||||
dtded = dtded.FiltraParametros("BorradoLogico=0");
|
||||
dtper = dtper.FiltraParametros("BorradoLogico=0 OR SoloVisible >0");
|
||||
dtded = dtded.FiltraParametros("BorradoLogico=0 OR SoloVisible >0");
|
||||
int maxper = dtper.Rows.Count;
|
||||
int maxded = dtded.Rows.Count;
|
||||
int i = 0;
|
||||
@@ -4258,12 +4262,14 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
string Codigo = row["Codigo"].ToString();
|
||||
//bool visible = (dtPerEmpleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
|
||||
double Importe = dtPerEmpleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
double ImporteGravado = dtPerEmpleados.SUM(string.Format("[VG_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
nConcepto.CveConceptoP = CveConcepto;
|
||||
nConcepto.ConceptoP = Concepto;
|
||||
nConcepto.NoConceptoP = Codigo;
|
||||
nConcepto.ImporteP = Importe;
|
||||
nConcepto.ImporteGravadoP = ImporteGravado;
|
||||
nConcepto.ValorP = dtPerEmpleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
nConcepto.isOnlyBisibleP = row["SoloVisible"].ToString().ToEntero();
|
||||
nConcepto.isOnlyBisibleP = row["SoloVisible"].ToString().ToEntero();
|
||||
|
||||
|
||||
nConcepto.isSavedP = dtPerEmpleadosConceptos.COUNT("CveConcepto", string.Format("CveConcepto={0} AND CvePersonal ={1} AND Estatus >0", CveConcepto, SRCvePersonal));
|
||||
@@ -4277,10 +4283,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
string Codigo = row["Codigo"].ToString();
|
||||
//bool visible = (dtPerEmpleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
|
||||
double Importe = dtPerEmpleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
double ImporteGravado = dtPerEmpleados.SUM(string.Format("[VG_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
nConcepto.CveConceptoD = CveConcepto;
|
||||
nConcepto.ConceptoD = Concepto;
|
||||
nConcepto.NoConceptoD = Codigo;
|
||||
nConcepto.ImporteD = Importe;
|
||||
nConcepto.ImporteGravadoD = ImporteGravado;
|
||||
nConcepto.ValorD = dtPerEmpleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
nConcepto.isOnlyBisibleD = row["SoloVisible"].ToString().ToEntero();
|
||||
nConcepto.isSavedD = dtPerEmpleadosConceptos.COUNT("CveConcepto", string.Format("CveConcepto={0} AND CvePersonal ={1} AND Estatus >0", CveConcepto, SRCvePersonal));
|
||||
@@ -4296,6 +4304,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
SubTotales.ConceptoP = "Total Percepciones";
|
||||
SubTotales.EstatusP = -2;
|
||||
SubTotales.ImporteP = dtPerEmpleados.SUM("SumaPercepciones", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
SubTotales.ImporteGravadoP = dtPerEmpleados.SUM("SumaPercepcionesG", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
///Alert(SubTotales.ImporteP.ToString());
|
||||
|
||||
SubTotales.CveConceptoD = 0;
|
||||
@@ -4373,10 +4382,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
string Codigo = row["Codigo"].ToString();
|
||||
//bool visible = (dtPerEmpleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
|
||||
double Importe = dtPerEmpleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
double ImporteGravado = dtPerEmpleados.SUM(string.Format("[VG_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
nConcepto.CveConceptoP = CveConcepto;
|
||||
nConcepto.ConceptoP = Concepto;
|
||||
nConcepto.NoConceptoP = Codigo;
|
||||
nConcepto.ImporteP = Importe;
|
||||
nConcepto.ImporteGravadoP = ImporteGravado;
|
||||
nConcepto.isOnlyBisibleP = row["SoloVisible"].ToString().ToEntero();
|
||||
nConcepto.CveSistemaP = row["CveSistema"].ToString().ToEntero();
|
||||
|
||||
@@ -4390,10 +4401,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
string Codigo = row["Codigo"].ToString();
|
||||
//bool visible = (dtPerEmpleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
|
||||
double Importe = dtPerEmpleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
double ImporteGravado = dtPerEmpleados.SUM(string.Format("[VG_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
nConcepto.CveConceptoD = CveConcepto;
|
||||
nConcepto.ConceptoD = Concepto;
|
||||
nConcepto.NoConceptoD = Codigo;
|
||||
nConcepto.ImporteD = Importe;
|
||||
nConcepto.ImporteGravadoD = ImporteGravado;
|
||||
nConcepto.CveSistemaD = row["CveSistema"].ToString().ToEntero();
|
||||
nConcepto.isOnlyBisibleD = row["SoloVisible"].ToString().ToEntero();
|
||||
nConcepto.ValorD = dtPerEmpleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
@@ -4408,6 +4421,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
SubTotales.ConceptoP = "Total Percepciones";
|
||||
SubTotales.EstatusP = -2;
|
||||
SubTotales.ImporteP = dtPerEmpleados.SUM("SumaPercepciones", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
SubTotales.ImporteGravadoP = dtPerEmpleados.SUM("SumaPercepcionesG", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
///Alert(SubTotales.ImporteP.ToString());
|
||||
|
||||
SubTotales.CveConceptoD = 0;
|
||||
@@ -4591,6 +4605,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
public string LabelValorP { get; set; }
|
||||
public int CveConceptoP { get; set; }
|
||||
public double ImporteP { get; set; }
|
||||
public double ImporteGravadoP { get; set; }
|
||||
public double ValorP { get; set; }
|
||||
public int EstatusP { get; set; }
|
||||
public int isSavedP { get; set; }
|
||||
@@ -4604,6 +4619,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
public string LabelValorD { get; set; }
|
||||
public int CveConceptoD { get; set; }
|
||||
public double ImporteD { get; set; }
|
||||
public double ImporteGravadoD { get; set; }
|
||||
public double ValorD { get; set; }
|
||||
public int EstatusD { get; set; }
|
||||
public int isSavedD { get; set; }
|
||||
@@ -4620,6 +4636,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
public string LabelValorO { get; set; }
|
||||
public int CveConceptoO { get; set; }
|
||||
public double ImporteO { get; set; }
|
||||
public double ImporteGravadoO { get; set; }
|
||||
public double ValorO { get; set; }
|
||||
public int EstatusO { get; set; }
|
||||
public int isEditedO { get; set; }
|
||||
@@ -6899,7 +6916,15 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
Response.AddHeader("content-disposition", $"attachment;filename=Lista de Raya.pdf");
|
||||
Response.Buffer = true;
|
||||
memoryStream.WriteTo(Response.OutputStream);
|
||||
try
|
||||
{
|
||||
|
||||
Response.End();
|
||||
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -7731,10 +7756,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
string Codigo = row["Codigo"].ToString();
|
||||
//bool visible = (dtempleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
|
||||
double Importe = dtempleadosSimula.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", 1));
|
||||
double ImporteGravado = dtempleadosSimula.SUM(string.Format("[VG_{0}]", CveConcepto), string.Format("CvePersonal = {0}", 1));
|
||||
nConcepto.CveConceptoP = CveConcepto;
|
||||
nConcepto.ConceptoP = Concepto;
|
||||
nConcepto.NoConceptoP = Codigo;
|
||||
nConcepto.ImporteP = Importe;
|
||||
nConcepto.ImporteGravadoP = ImporteGravado;
|
||||
nConcepto.ValorP = dtempleadosSimula.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", 1));
|
||||
}
|
||||
if (maxded > i)
|
||||
@@ -7745,10 +7772,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
string Codigo = row["Codigo"].ToString();
|
||||
//bool visible = (dtempleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
|
||||
double Importe = dtempleadosSimula.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", 1));
|
||||
double ImporteGravado = dtempleadosSimula.SUM(string.Format("[VG_{0}]", CveConcepto), string.Format("CvePersonal = {0}", 1));
|
||||
nConcepto.CveConceptoD = CveConcepto;
|
||||
nConcepto.ConceptoD = Concepto;
|
||||
nConcepto.NoConceptoD = Codigo;
|
||||
nConcepto.ImporteD = Importe;
|
||||
nConcepto.ImporteGravadoD = ImporteGravado;
|
||||
nConcepto.ValorD = dtempleadosSimula.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", 1));
|
||||
}
|
||||
if (maxObl > i)
|
||||
@@ -7759,10 +7788,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
string Codigo = row["Codigo"].ToString();
|
||||
//bool visible = (dtempleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
|
||||
double Importe = dtempleadosSimula.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", 1));
|
||||
double ImporteGravado = dtempleadosSimula.SUM(string.Format("[VG_{0}]", CveConcepto), string.Format("CvePersonal = {0}", 1));
|
||||
nConcepto.CveConceptoO = CveConcepto;
|
||||
nConcepto.ConceptoO = Concepto;
|
||||
nConcepto.NoConceptoO = Codigo;
|
||||
nConcepto.ImporteO = Importe;
|
||||
nConcepto.ImporteGravadoO = ImporteGravado;
|
||||
nConcepto.ValorO = dtempleadosSimula.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", 1));
|
||||
}
|
||||
lconc.Add(nConcepto);
|
||||
@@ -7775,6 +7806,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
SubTotales.ConceptoP = "Total Percepciones";
|
||||
SubTotales.EstatusP = -2;
|
||||
SubTotales.ImporteP = dtempleadosSimula.SUM("SumaPercepciones", string.Format("CvePersonal = {0}", 1));
|
||||
SubTotales.ImporteGravadoP = dtempleadosSimula.SUM("SumaPercepcionesG", string.Format("CvePersonal = {0}", 1));
|
||||
///Alert(SubTotales.ImporteP.ToString());
|
||||
|
||||
SubTotales.CveConceptoD = 0;
|
||||
@@ -7851,10 +7883,13 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
string Codigo = row["Codigo"].ToString();
|
||||
//bool visible = (dtempleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
|
||||
double Importe = dtempleadosSimula.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
|
||||
double ImporteGravado = dtempleadosSimula.SUM(string.Format("[VG_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
nConcepto.CveConceptoP = CveConcepto;
|
||||
nConcepto.ConceptoP = Concepto;
|
||||
nConcepto.NoConceptoP = Codigo;
|
||||
nConcepto.ImporteP = Importe;
|
||||
nConcepto.ImporteGravadoP = ImporteGravado;
|
||||
nConcepto.CveSistemaP = row["CveSistema"].ToString().ToEntero();
|
||||
nConcepto.ValorP = dtempleadosSimula.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
}
|
||||
@@ -7866,10 +7901,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
string Codigo = row["Codigo"].ToString();
|
||||
//bool visible = (dtempleados.SUM(string.Format("[V_{0}]", CveConcepto)) > 0);
|
||||
double Importe = dtempleadosSimula.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
double ImporteGravado = dtempleadosSimula.SUM(string.Format("[VG_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
nConcepto.CveConceptoD = CveConcepto;
|
||||
nConcepto.ConceptoD = Concepto;
|
||||
nConcepto.NoConceptoD = Codigo;
|
||||
nConcepto.ImporteD = Importe;
|
||||
nConcepto.ImporteGravadoD = ImporteGravado;
|
||||
nConcepto.CveSistemaD = row["CveSistema"].ToString().ToEntero();
|
||||
nConcepto.ValorD = dtempleadosSimula.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
}
|
||||
@@ -7883,6 +7920,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
SubTotales.ConceptoP = "Total Percepciones";
|
||||
SubTotales.EstatusP = -2;
|
||||
SubTotales.ImporteP = dtempleadosSimula.SUM("SumaPercepciones", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
SubTotales.ImporteGravadoP = dtempleadosSimula.SUM("SumaPercepcionesG", string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
///Alert(SubTotales.ImporteP.ToString());
|
||||
|
||||
SubTotales.CveConceptoD = 0;
|
||||
|
||||
@@ -138,7 +138,7 @@ Partial Class RH_CatPuesto
|
||||
If ObjPuestos.GetPuestos(-1) Then
|
||||
GvPuestos.DataSource = ObjPuestos.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
||||
|
||||
'GlobalDTRHPuestos(-1) = ObjPuestos.DtResultados
|
||||
GlobalDTRHPuestos(UsuarioActual.CveEmpresa) = ObjPuestos.DtResultados
|
||||
Else
|
||||
Me.GvPuestos.DataSource = Nothing
|
||||
End If
|
||||
|
||||
@@ -126,14 +126,7 @@ Partial Class RH_CatTurno
|
||||
End Sub
|
||||
|
||||
Private Sub CargaGlobalDTTurno()
|
||||
|
||||
Dim ObjRH As New ClsRH
|
||||
If ObjRH.GetTurnos() Then
|
||||
Application("GlobalDTTurno") = ObjRH.DtResultados
|
||||
Else
|
||||
Application("GlobalDTTurno") = Nothing
|
||||
End If
|
||||
ObjRH.Dispose()
|
||||
GlobalDTTurno(UsuarioActual.CveEmpresa) = Nothing
|
||||
|
||||
End Sub
|
||||
Public Sub Delete_Click(sender As Object, e As EventArgs)
|
||||
|
||||
Reference in New Issue
Block a user