This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
td.cellFail {
|
||||
color:red;
|
||||
|
||||
}
|
||||
.addropzone {
|
||||
min-height: 130px;
|
||||
}
|
||||
@@ -1298,7 +1302,6 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="DmodalCompareSua" class="modal ADS fade" role="dialog">
|
||||
<asp:UpdatePanel ID="UpArchivoSua" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
@@ -1338,59 +1341,25 @@
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||
</div>
|
||||
<script>
|
||||
function shownew() {
|
||||
|
||||
setTimeout(function () {
|
||||
let collapse = $('#resultadoprocesasua .collapse');
|
||||
let body = $('#resultadoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.removeClass('collapse');
|
||||
collapse.addClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', 'none');
|
||||
}
|
||||
collapse = $('#cargaarchivoprocesasua .expand');
|
||||
body = $('#cargaarchivoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.addClass('collapse');
|
||||
collapse.removeClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', '');
|
||||
}
|
||||
}, 400);
|
||||
}
|
||||
function showResult() {
|
||||
|
||||
setTimeout(function () {
|
||||
let collapse = $('#cargaarchivoprocesasua .expand');
|
||||
let body = $('#cargaarchivoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.removeClass('collapse');
|
||||
collapse.addClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', 'none');
|
||||
}
|
||||
collapse = $('#resultadoprocesasua .collapse');
|
||||
body = $('#resultadoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.addClass('collapse');
|
||||
collapse.removeClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', '');
|
||||
}
|
||||
}, 400);
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding " style="display: none;">
|
||||
<div style="width: 1200px; height: 350px; overflow: auto;">
|
||||
<div style="width: 1200px; min-height: 340px;">
|
||||
<table id="headerProcesaSUA" style="display: none">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th colspan="2">Salario</th>
|
||||
<th colspan="2">Cuota Fija</th>
|
||||
<th colspan="2">Cuota Excedente</th>
|
||||
<th colspan="2">Prestaciones en Dinero</th>
|
||||
<th colspan="2">Gastos Medicos</th>
|
||||
<th colspan="2">Riesgos de Trabajo</th>
|
||||
<th colspan="2">Invalidez y Vida</th>
|
||||
<th colspan="2">Guarderia</th>
|
||||
<th colspan="2">Retiro</th>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:GridView ID="GVProcesarSUA" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD" AutoGenerateColumns="False"
|
||||
OnDataBound="GVProcesarSUA_DataBound" data-height="300"
|
||||
OnRowDataBound="GVProcesarSUA_RowDataBound" data-height="300" data-tableheader="#headerProcesaSUA"
|
||||
DataKeyNames="CvePersonal,CodigoNombreCompleto,CuotaFijaSUA,CuotaFijaSIG,CuotaExcedenteSUA,CuotaExcedenteSIG,PrestacionesDineroSUA,PrestacionesSIG,GastosMedPenSUA,GastosMedicosSIG,RiesgosdeTrabajoSUA,RiesgoTrabajoSIG,InvalidezyVidaSUA,InvalidezyVidaSIG,GuarderiaSUA,GuarderiaSIG,RetiroSUA,RetiroSIG,SalarioSUA,SalarioSIG">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Nombre">
|
||||
@@ -1398,148 +1367,94 @@
|
||||
<asp:Label ID="lblcodigoNombreCompleto" runat="server" Text='<%# Eval("CodigoNombreCompleto")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Salario">
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("SalarioSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("SalarioSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("SalarioSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Cuota Fija">
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaFijaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaFijaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("SalarioSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Cuota Excedente">
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaExcedenteSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaExcedenteSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaFijaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Prestaciones en Dinero">
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("PrestacionesDineroSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("PrestacionesSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaFijaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaExcedenteSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Gastos Medicos">
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("GastosMedPenSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("GastosMedicosSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("CuotaExcedenteSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("PrestacionesDineroSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Riesgos de Trabajo">
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("RiesgosdeTrabajoSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("RiesgoTrabajoSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("PrestacionesSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("GastosMedPenSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Invalidez y Vida">
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("InvalidezyVidaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("InvalidezyVidaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("GastosMedicosSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Guarderia">
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("GuarderiaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("GuarderiaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("RiesgosdeTrabajoSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Retiro">
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<table>
|
||||
<tr class="titulorow">
|
||||
<td>SUA</td>
|
||||
<td>SIG</td>
|
||||
</tr>
|
||||
<tr class="itemrow">
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("RetiroSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
<td>
|
||||
<asp:Label runat="server" Text='<%# Eval("RetiroSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:Label runat="server" Text='<%# Eval("RiesgoTrabajoSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("InvalidezyVidaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("InvalidezyVidaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("GuarderiaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("GuarderiaSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SUA">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("RetiroSUA","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="SIG">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("RetiroSIG","{0:N2}")%>'> </asp:Label></td>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
@@ -1581,7 +1496,7 @@
|
||||
<div class="col-md-6">
|
||||
<div style="width: 140px; display: inline-block;">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:TextBox ID="TxtFechaInicio" Enabled="false" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtFechaInicio" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtFechaInicio">Fecha Inicio:</asp:Label>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaInicio" runat="server" TargetControlID="TxtFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEEFechaInicio" TargetControlID="TxtFechaInicio" PopupButtonID="LnkFechaInicio" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
@@ -1599,7 +1514,7 @@
|
||||
<div class="col-md-6">
|
||||
<div style="width: 140px; display: inline-block;">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:TextBox ID="TXTFechaFin" Enabled="false" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TXTFechaFin" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TXTFechaFin">Fecha Inicio:</asp:Label>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaFin" runat="server" TargetControlID="TXTFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEEFechaFin" TargetControlID="TXTFechaFin" PopupButtonID="LnkFechaFin" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
@@ -1639,6 +1554,53 @@
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>
|
||||
|
||||
function shownew() {
|
||||
|
||||
setTimeout(function () {
|
||||
let collapse = $('#resultadoprocesasua .collapse');
|
||||
let body = $('#resultadoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.removeClass('collapse');
|
||||
collapse.addClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', 'none');
|
||||
}
|
||||
collapse = $('#cargaarchivoprocesasua .expand');
|
||||
body = $('#cargaarchivoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.addClass('collapse');
|
||||
collapse.removeClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', '');
|
||||
}
|
||||
}, 400);
|
||||
}
|
||||
function showResult() {
|
||||
|
||||
setTimeout(function () {
|
||||
let collapse = $('#cargaarchivoprocesasua .expand');
|
||||
let body = $('#cargaarchivoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.removeClass('collapse');
|
||||
collapse.addClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', 'none');
|
||||
}
|
||||
collapse = $('#resultadoprocesasua .collapse');
|
||||
body = $('#resultadoprocesasua .portlet-body');
|
||||
if (collapse && collapse.length > 0) {
|
||||
collapse.addClass('collapse');
|
||||
collapse.removeClass('expand');
|
||||
}
|
||||
if (body && body.length > 0) {
|
||||
body.css('display', '');
|
||||
}
|
||||
setTimeout(function () { loadadscroll(); }, 50);
|
||||
}, 400);
|
||||
}
|
||||
function SaveCsv(filename, data) {
|
||||
var blob = new Blob([data], { type: 'text/csv' });
|
||||
if (window.navigator.msSaveOrOpenBlob) {
|
||||
|
||||
@@ -3841,12 +3841,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
TxtArchivoSua.Text = "";
|
||||
GVProcesarSUA.DataSource = null;
|
||||
GVProcesarSUA.DataBind();
|
||||
GVProcesarSUA.DataBind();
|
||||
RegistraScript("$('#DmodalCompareSua').modal();shownew();");
|
||||
UpArchivoSua.Update();
|
||||
}
|
||||
protected void LnkUpSuaFile_Click(object sender, EventArgs e)
|
||||
{
|
||||
{
|
||||
string fileurl = "";
|
||||
GVProcesarSUA.DataSource = null;
|
||||
Files archivos = TxtArchivoSua.getfiles();
|
||||
@@ -3870,8 +3870,91 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
|
||||
|
||||
protected void GVProcesarSUA_DataBound(object sender, EventArgs e)
|
||||
|
||||
protected void GVProcesarSUA_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
|
||||
//CvePersonal,CodigoNombreCompleto,,,,,
|
||||
//,,,,,,
|
||||
//,,,,,,,
|
||||
//Literal LtlNombre = e.Row.FCLiteral("LtlNombre");
|
||||
//LinkButton LnkTimbrar = (LinkButton)e.Row.FindControl("LnkTimbrar");
|
||||
string SalarioSUA = string.Format("{0:N2}",e.Row.DataKey("SalarioSUA").ToDecimal());
|
||||
string SalarioSIG = string.Format("{0:N2}", e.Row.DataKey("SalarioSIG").ToDecimal());
|
||||
int celda = 1;
|
||||
if (SalarioSUA != SalarioSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string CuotaFijaSUA = string.Format("{0:N2}", e.Row.DataKey("CuotaFijaSUA").ToDecimal());
|
||||
string CuotaFijaSIG = string.Format("{0:N2}", e.Row.DataKey("CuotaFijaSIG").ToDecimal());
|
||||
if (CuotaFijaSUA != CuotaFijaSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string CuotaExcedenteSUA = string.Format("{0:N2}", e.Row.DataKey("CuotaExcedenteSUA").ToDecimal());
|
||||
string CuotaExcedenteSIG = string.Format("{0:N2}", e.Row.DataKey("CuotaExcedenteSIG").ToDecimal());
|
||||
if (CuotaExcedenteSUA != CuotaExcedenteSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string PrestacionesDineroSUA = string.Format("{0:N2}", e.Row.DataKey("PrestacionesDineroSUA").ToDecimal());
|
||||
string PrestacionesSIG = string.Format("{0:N2}", e.Row.DataKey("PrestacionesSIG").ToDecimal());
|
||||
if (PrestacionesDineroSUA != PrestacionesSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string GastosMedPenSUA = string.Format("{0:N2}", e.Row.DataKey("GastosMedPenSUA").ToDecimal());
|
||||
string GastosMedicosSIG = string.Format("{0:N2}", e.Row.DataKey("GastosMedicosSIG").ToDecimal());
|
||||
if (GastosMedPenSUA != GastosMedicosSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string RiesgosdeTrabajoSUA = string.Format("{0:N2}", e.Row.DataKey("RiesgosdeTrabajoSUA").ToDecimal());
|
||||
string RiesgoTrabajoSIG = string.Format("{0:N2}", e.Row.DataKey("RiesgoTrabajoSIG").ToDecimal());
|
||||
if (RiesgosdeTrabajoSUA != RiesgoTrabajoSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string InvalidezyVidaSUA = string.Format("{0:N2}", e.Row.DataKey("InvalidezyVidaSUA").ToDecimal());
|
||||
string InvalidezyVidaSIG = string.Format("{0:N2}", e.Row.DataKey("InvalidezyVidaSIG").ToDecimal());
|
||||
if (InvalidezyVidaSUA != InvalidezyVidaSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string GuarderiaSUA = string.Format("{0:N2}", e.Row.DataKey("GuarderiaSUA").ToDecimal());
|
||||
string GuarderiaSIG = string.Format("{0:N2}", e.Row.DataKey("GuarderiaSIG").ToDecimal());
|
||||
if (GuarderiaSUA != GuarderiaSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
celda = celda + 2;
|
||||
string RetiroSUA = string.Format("{0:N2}", e.Row.DataKey("RetiroSUA").ToDecimal());
|
||||
string RetiroSIG = string.Format("{0:N2}", e.Row.DataKey("RetiroSIG").ToDecimal());
|
||||
if (RetiroSUA != RetiroSIG)
|
||||
{
|
||||
e.Row.Cells[celda].CssClass = "cellFail";
|
||||
e.Row.Cells[celda + 1].CssClass = "cellFail";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user