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> <ContentTemplate>
<ajax:TabContainer ID="TabsFormulas" runat="server" Width="100%" CssClass="tabBodyOverride" ActiveTabIndex="0" AutoPostBack="true"> <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> <ContentTemplate>
<asp:TextBox ID="TxtFormulaImporte" runat="server" MaxLength="70" CssClass="codeeditor " Enabled="false"></asp:TextBox> <asp:TextBox ID="TxtFormulaImporte" runat="server" MaxLength="70" CssClass="codeeditor " Enabled="false"></asp:TextBox>
</ContentTemplate> </ContentTemplate>

View File

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

View File

@@ -8,6 +8,10 @@
border: 1px solid #E87E04; border: 1px solid #E87E04;
} }
table.GvConceptos td {
white-space: nowrap;
}
.GvConceptos.table > tbody > tr > th { .GvConceptos.table > tbody > tr > th {
border-top: 1px solid #E87E04; border-top: 1px solid #E87E04;
color: #fff; color: #fff;
@@ -560,7 +564,7 @@
</asp:TemplateField> </asp:TemplateField>
<asp:TemplateField HeaderText="Valor"> <asp:TemplateField HeaderText="Valor">
<ItemTemplate> <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> </ItemTemplate>
<ItemStyle HorizontalAlign="Right" Width="13%" /> <ItemStyle HorizontalAlign="Right" Width="13%" />
</asp:TemplateField> </asp:TemplateField>
@@ -580,7 +584,7 @@
</asp:TemplateField> </asp:TemplateField>
<asp:TemplateField HeaderText="Valor"> <asp:TemplateField HeaderText="Valor">
<ItemTemplate> <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> </ItemTemplate>
<ItemStyle HorizontalAlign="Right" Width="13%" /> <ItemStyle HorizontalAlign="Right" Width="13%" />
</asp:TemplateField> </asp:TemplateField>

View File

@@ -518,7 +518,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
try try
{ {
/*
DateTime FechaInicio = (DateTime)dtPeriodo.Rows[0]["FechaInicio"]; DateTime FechaInicio = (DateTime)dtPeriodo.Rows[0]["FechaInicio"];
DateTime FechaFin = (DateTime)dtPeriodo.Rows[0]["FechaFin"]; DateTime FechaFin = (DateTime)dtPeriodo.Rows[0]["FechaFin"];
StringBuilder gvasistencia = new StringBuilder(); StringBuilder gvasistencia = new StringBuilder();
@@ -536,6 +536,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
} }
gvasistencia.Append("</tr>"); gvasistencia.Append("</tr>");
} }
string tipo = "";
foreach (DataRow rempl in dtempleados.Rows) foreach (DataRow rempl in dtempleados.Rows)
{ {
int CvePersonal = rempl["CvePersonal"].ToString().ToEntero(); int CvePersonal = rempl["CvePersonal"].ToString().ToEntero();
@@ -547,10 +548,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
{ {
DataRow drow = dtasistencia.FiltroPrimero(string.Format("Fecha='{0:yyyy/MM/dd}' AND CvePersonal={1}", fecha, CvePersonal)); DataRow drow = dtasistencia.FiltroPrimero(string.Format("Fecha='{0:yyyy/MM/dd}' AND CvePersonal={1}", fecha, CvePersonal));
fecha = fecha.AddDays(1); fecha = fecha.AddDays(1);
string tipo = "-"; tipo = "-";
if (drow != null) if (drow != null)
{ {
tipo = drow["Tipo"].ToString(); tipo = string.Format("{0} ({1}%)", drow["Tipo"], drow["PorcentajePago"]);
drow.Delete(); drow.Delete();
} }
gvasistencia.AppendFormat("<td>{0}</td>", tipo); gvasistencia.AppendFormat("<td>{0}</td>", tipo);
@@ -558,7 +559,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
gvasistencia.Append("</tr>"); gvasistencia.Append("</tr>");
} }
gvasistencia.Append("</table>"); gvasistencia.Append("</table>");
ltlGvAsistencia.Text = gvasistencia.ToString();*/ ltlGvAsistencia.Text = gvasistencia.ToString();
} }
catch (Exception) catch (Exception)
{ {