Merge branch 'master' of http://oirigoyen@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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"];
|
||||||
|
|||||||
@@ -8,18 +8,22 @@
|
|||||||
border: 1px solid #E87E04;
|
border: 1px solid #E87E04;
|
||||||
}
|
}
|
||||||
|
|
||||||
.GvConceptos.table > tbody > tr > th {
|
table.GvConceptos td {
|
||||||
border-top: 1px solid #E87E04;
|
white-space: nowrap;
|
||||||
color: #fff;
|
}
|
||||||
font-size: 15px;
|
|
||||||
background-color: #E87E04;
|
|
||||||
}
|
|
||||||
|
|
||||||
.GvConceptos.table > tbody > tr.thTituloConcepto > th:nth-child(1),
|
.GvConceptos.table > tbody > tr > th {
|
||||||
.GvConceptos.table > tbody > tr:not(.thTituloConcepto) > th:nth-child(3),
|
border-top: 1px solid #E87E04;
|
||||||
.GvConceptos.table > tbody > tr > td:nth-child(3) {
|
color: #fff;
|
||||||
border-right: 1px solid #E87E04;
|
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 {
|
.dtosEmpleado {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
@@ -516,7 +520,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
|
|
||||||
<ajax:TabPanel ID="TabAsistencia" runat="server" HeaderText="Asistencia">
|
<ajax:TabPanel ID="TabAsistencia" runat="server" HeaderText="Asistencia">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:Literal ID="ltlGvAsistencia" runat="server"></asp:Literal>
|
<asp:Literal ID="ltlGvAsistencia" runat="server"></asp:Literal>
|
||||||
@@ -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>
|
||||||
|
|||||||
@@ -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();
|
||||||
@@ -532,10 +532,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
while (fecha <= FechaFin)
|
while (fecha <= FechaFin)
|
||||||
{
|
{
|
||||||
gvasistencia.AppendFormat("<td>{0:dd/MM/yyyy}</td>", fecha);
|
gvasistencia.AppendFormat("<td>{0:dd/MM/yyyy}</td>", fecha);
|
||||||
fecha= fecha.AddDays(1);
|
fecha = fecha.AddDays(1);
|
||||||
}
|
}
|
||||||
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();
|
||||||
@@ -546,11 +547,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
while (fecha <= FechaFin)
|
while (fecha <= FechaFin)
|
||||||
{
|
{
|
||||||
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)
|
||||||
{
|
{
|
||||||
@@ -875,8 +876,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
double Importe = dtempleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
|
double Importe = dtempleados.SUM(string.Format("[V_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
|
||||||
nConcepto.CveConceptoP = CveConcepto;
|
nConcepto.CveConceptoP = CveConcepto;
|
||||||
nConcepto.ConceptoP = Concepto;
|
nConcepto.ConceptoP = Concepto;
|
||||||
nConcepto.ImporteP = Importe;
|
nConcepto.ImporteP = Importe;
|
||||||
nConcepto.ValorP = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
|
nConcepto.ValorP = dtempleados.SUM(string.Format("[VAL_{0}]", CveConcepto), string.Format("CvePersonal = {0}", cvePersonal));
|
||||||
}
|
}
|
||||||
if (maxded > i)
|
if (maxded > i)
|
||||||
{
|
{
|
||||||
@@ -888,7 +889,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
nConcepto.CveConceptoD = CveConcepto;
|
nConcepto.CveConceptoD = CveConcepto;
|
||||||
nConcepto.ConceptoD = Concepto;
|
nConcepto.ConceptoD = Concepto;
|
||||||
nConcepto.ImporteD = Importe;
|
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);
|
lconc.Add(nConcepto);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user