This commit is contained in:
Rakcsle Supertramp
2019-09-25 08:29:39 -07:00
4 changed files with 33 additions and 28 deletions

View File

@@ -233,7 +233,7 @@
<ContentTemplate>
<ajax:TabContainer ID="TabsFormulas" runat="server" Width="100%" CssClass="tabBodyOverride" ActiveTabIndex="0" AutoPostBack="true">
<ajax:TabPanel ID="tabFormulaImporte" runat="server" HeaderText="Importe">
<ajax:TabPanel ID="tabFormulaImporte" runat="server" HeaderText="Valor">
<ContentTemplate>
<asp:TextBox ID="TxtFormulaImporte" runat="server" MaxLength="70" CssClass="codeeditor " Enabled="false"></asp:TextBox>
</ContentTemplate>

View File

@@ -54,10 +54,10 @@ public partial class Nomina_CatConcepto : ClsPaginas
{
if (!IsPostBack)
{
if (UsuarioActual.CveEmpresa ==72 || UsuarioActual.CveEmpresa== 80)
{
tabFormulaImporte.Visible = false;
}
//if (UsuarioActual.CveEmpresa ==72 || UsuarioActual.CveEmpresa== 80)
//{
// tabFormulaImporte.Visible = false;
//}
if (Request["CveConcepto"] != null && !Request["CveConcepto"].ToString().Equals("") && Request["CveConcepto"].ToEntero() > 0)
{
ViewState["CveConcepto"] = Request["CveConcepto"];

View File

@@ -8,18 +8,22 @@
border: 1px solid #E87E04;
}
.GvConceptos.table > tbody > tr > th {
border-top: 1px solid #E87E04;
color: #fff;
font-size: 15px;
background-color: #E87E04;
}
table.GvConceptos td {
white-space: nowrap;
}
.GvConceptos.table > tbody > tr.thTituloConcepto > th:nth-child(1),
.GvConceptos.table > tbody > tr:not(.thTituloConcepto) > th:nth-child(3),
.GvConceptos.table > tbody > tr > td:nth-child(3) {
border-right: 1px solid #E87E04;
}
.GvConceptos.table > tbody > tr > th {
border-top: 1px solid #E87E04;
color: #fff;
font-size: 15px;
background-color: #E87E04;
}
.GvConceptos.table > tbody > tr.thTituloConcepto > th:nth-child(1),
.GvConceptos.table > tbody > tr:not(.thTituloConcepto) > th:nth-child(3),
.GvConceptos.table > tbody > tr > td:nth-child(3) {
border-right: 1px solid #E87E04;
}
.dtosEmpleado {
font-size: 15px;
@@ -516,7 +520,7 @@
</div>
</ContentTemplate>
</ajax:TabPanel>
<ajax:TabPanel ID="TabAsistencia" runat="server" HeaderText="Asistencia">
<ContentTemplate>
<asp:Literal ID="ltlGvAsistencia" runat="server"></asp:Literal>
@@ -560,7 +564,7 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="Valor">
<ItemTemplate>
<asp:Label ID="LtlValorP" runat="server" Text='<%# Eval("ValorP", "{##,###.##}") %>' Style="word-break: break-all;"></asp:Label>
<asp:Label ID="LtlValorP" runat="server" Text='<%# Eval("ValorP", "{0:##,###.##}") %>' Style="word-break: break-all;"></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" Width="13%" />
</asp:TemplateField>
@@ -580,7 +584,7 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="Valor">
<ItemTemplate>
<asp:Label ID="LtlValorD" runat="server" Text='<%# Eval("ValorD", "{{##,###.##}}") %>' Style="word-break: break-all;"></asp:Label>
<asp:Label ID="LtlValorD" runat="server" Text='<%# Eval("ValorD", "{0:##,###.##}") %>' Style="word-break: break-all;"></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" Width="13%" />
</asp:TemplateField>

View File

@@ -518,7 +518,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
try
{
/*
DateTime FechaInicio = (DateTime)dtPeriodo.Rows[0]["FechaInicio"];
DateTime FechaFin = (DateTime)dtPeriodo.Rows[0]["FechaFin"];
StringBuilder gvasistencia = new StringBuilder();
@@ -532,10 +532,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
while (fecha <= FechaFin)
{
gvasistencia.AppendFormat("<td>{0:dd/MM/yyyy}</td>", fecha);
fecha= fecha.AddDays(1);
fecha = fecha.AddDays(1);
}
gvasistencia.Append("</tr>");
}
string tipo = "";
foreach (DataRow rempl in dtempleados.Rows)
{
int CvePersonal = rempl["CvePersonal"].ToString().ToEntero();
@@ -546,11 +547,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
while (fecha <= FechaFin)
{
DataRow drow = dtasistencia.FiltroPrimero(string.Format("Fecha='{0:yyyy/MM/dd}' AND CvePersonal={1}", fecha, CvePersonal));
fecha=fecha.AddDays(1);
string tipo = "-";
fecha = fecha.AddDays(1);
tipo = "-";
if (drow != null)
{
tipo = drow["Tipo"].ToString();
tipo = string.Format("{0} ({1}%)", drow["Tipo"], drow["PorcentajePago"]);
drow.Delete();
}
gvasistencia.AppendFormat("<td>{0}</td>", tipo);
@@ -558,7 +559,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
gvasistencia.Append("</tr>");
}
gvasistencia.Append("</table>");
ltlGvAsistencia.Text = gvasistencia.ToString();*/
ltlGvAsistencia.Text = gvasistencia.ToString();
}
catch (Exception)
{
@@ -875,8 +876,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
double Importe = dtempleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
nConcepto.CveConceptoP = CveConcepto;
nConcepto.ConceptoP = Concepto;
nConcepto.ImporteP = Importe;
nConcepto.ValorP = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
nConcepto.ImporteP = Importe;
nConcepto.ValorP = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
}
if (maxded > i)
{
@@ -888,7 +889,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
nConcepto.CveConceptoD = CveConcepto;
nConcepto.ConceptoD = Concepto;
nConcepto.ImporteD = Importe;
nConcepto.ValorD = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
nConcepto.ValorD = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
}
lconc.Add(nConcepto);
}