movimeintos permanentes
This commit is contained in:
@@ -325,7 +325,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
{
|
||||
cargarutaempresa();
|
||||
{
|
||||
|
||||
DtNomOrden = new DataTable();
|
||||
@@ -474,6 +475,15 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
}
|
||||
}
|
||||
private void cargarutaempresa()
|
||||
{
|
||||
string rutaCBBDir = String.Format("{0}CBB\\Nomina\\", UsuarioActual.Empresa.Ruta);
|
||||
|
||||
if (!Directory.Exists(rutaCBBDir))
|
||||
{
|
||||
Directory.CreateDirectory(rutaCBBDir);
|
||||
}
|
||||
}
|
||||
#region Filtros
|
||||
private void cargaEjercicios()
|
||||
{
|
||||
@@ -2109,7 +2119,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
column++;
|
||||
libro.Cell(1, column).Value = row["CveConcepto"].ToString();
|
||||
libro.Cell(FilaConceptos, column).Value = "N";
|
||||
libro.Cell(FilaConceptos, column).Value = "S";
|
||||
libro.Cell(3, column).Value = row["Concepto"].ToString();
|
||||
libro.Cell(4, column).Value = row["Codigo"].ToString();
|
||||
libro.Column(column).Width = 15;
|
||||
@@ -2124,7 +2134,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
column++;
|
||||
libro.Cell(1, column).Value = row["CveConcepto"].ToString();
|
||||
libro.Cell(FilaConceptos, column).Value = "N";
|
||||
libro.Cell(FilaConceptos, column).Value = "S";
|
||||
libro.Cell(3, column).Value = row["Concepto"].ToString();
|
||||
libro.Cell(4, column).Value = row["Codigo"].ToString();
|
||||
libro.Column(column).Width = 15;
|
||||
@@ -2139,7 +2149,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
column++;
|
||||
libro.Cell(1, column).Value = row["CveConcepto"].ToString();
|
||||
libro.Cell(FilaConceptos, column).Value = "N";
|
||||
libro.Cell(FilaConceptos, column).Value = "S";
|
||||
libro.Cell(3, column).Value = row["Concepto"].ToString();
|
||||
libro.Cell(4, column).Value = row["Codigo"].ToString();
|
||||
libro.Column(column).Width = 15;
|
||||
|
||||
@@ -82,17 +82,26 @@
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<br />
|
||||
<div style=" text-align: right" ">
|
||||
<div >
|
||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVCalcularUtilidades.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVCalcularUtilidades.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<asp:GridView ID="GVCalcularUtilidades" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVCalcularUtilidades" AutoGenerateColumns="False"
|
||||
DataKeyNames="Nombre,CvePersonal,DiasLaborados,SueldoTotal,Importe">
|
||||
DataKeyNames="Nombre,CvePersonal,DiasLaborados,SueldoTotal,Importe" >
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Código ">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblC" runat="server" Text='<%# Eval("Codigo")%>'> </asp:Label>
|
||||
<%--<asp:Literal ID="lblC" runat="server" > </asp:Literal>--%>
|
||||
<asp:HyperLink ID="lblC" runat="server" Text='<%# Eval("Codigo") %>' NavigateUrl='<%# Eval("CvePersonal", "~/RH/Personal.aspx?CvePersonal={0}") %>'></asp:HyperLink>
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nombre ">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblnombreCompleto" runat="server" Text='<%# Eval("Nombre")%>'> </asp:Label>
|
||||
<asp:HyperLink ID="lblnombreCompleto" runat="server" Text='<%# Eval("Nombre") %>' NavigateUrl='<%# Eval("CvePersonal", "~/RH/Personal.aspx?CvePersonal={0}") %>'></asp:HyperLink>
|
||||
<%--<asp:Literal ID="lblnombreCompleto" runat="server" > </asp:Literal>--%>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
|
||||
@@ -241,4 +241,18 @@ Partial Class Nomina_ReportePTU
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
'Protected Sub GVCalcularUtilidades_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||
' If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
' Dim dataItem As DataRowView = CType(e.Row.DataItem, DataRowView)
|
||||
' Dim cvePersonal As String = e.Row.DataKey("CvePersonal").ToString()
|
||||
' Dim codigo As String = e.Row.DataKey("Codigo").ToString()
|
||||
' Dim nombre As String = e.Row.DataKey("Nombre").ToString()
|
||||
|
||||
' Dim lblC As Label = CType(e.Row.FindControl("lblC"), Label)
|
||||
' lblC.Text = String.Format("<a class='Texto sline' href='/RH/Personal.aspx?CvePersonal={0}'>{1}</a>", cvePersonal, codigo)
|
||||
' Dim lblnombreCompleto As Label = CType(e.Row.FindControl("lblnombreCompleto"), Label)
|
||||
' lblnombreCompleto.Text = String.Format("<a class='Texto sline' href='/RH/Personal.aspx?CvePersonal={0}'>{1}</a>", cvePersonal, nombre)
|
||||
' End If
|
||||
'End Sub
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user