Nom
This commit is contained in:
@@ -9814,26 +9814,6 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
script = string.Format("Savexml(\"{0} {1}.xml\", $('.ltlxml').html());", Xmlname, empleado);
|
script = string.Format("Savexml(\"{0} {1}.xml\", $('.ltlxml').html());", Xmlname, empleado);
|
||||||
|
|
||||||
|
|
||||||
//System.IO.FileInfo file = new System.IO.FileInfo(PathXML);
|
|
||||||
//string mimeType = "text/plain";
|
|
||||||
//try
|
|
||||||
//{
|
|
||||||
// mimeType = MimeMapping.GetMimeMapping(PathXML);
|
|
||||||
//}
|
|
||||||
//catch (Exception)
|
|
||||||
//{
|
|
||||||
|
|
||||||
//}
|
|
||||||
//// Response.Write(path)
|
|
||||||
//Response.Clear();
|
|
||||||
//Response.ClearHeaders();
|
|
||||||
//Response.ClearContent();
|
|
||||||
//Response.AddHeader("Content-Disposition", $"attachment; filename= {Uri.EscapeDataString(file.Name)}");
|
|
||||||
//Response.AddHeader("Content-Length", file.Length.ToString());
|
|
||||||
//Response.ContentType = mimeType;
|
|
||||||
//Response.Flush();
|
|
||||||
//Response.TransmitFile(file.FullName);
|
|
||||||
//Response.End();
|
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(PathXMLF) && System.IO.File.Exists(PathXMLF))
|
if (!string.IsNullOrEmpty(PathXMLF) && System.IO.File.Exists(PathXMLF))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,10 +4,6 @@
|
|||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
<style>
|
<style>
|
||||||
/* .GVGetMovtoPermanenteRep .headerHide:not(Titulos) th:nth-child(2) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
.GVGetMovtoPermanenteRep tr:not(.cvetipo0) td .btnhideshow {
|
.GVGetMovtoPermanenteRep tr:not(.cvetipo0) td .btnhideshow {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -16,13 +12,6 @@
|
|||||||
background-color: #ddd;
|
background-color: #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*.GVGetMovtoPermanenteRep tr:not(.cvetipo0) td:nth-child(1) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.GVGetMovtoPermanenteRep tr:.cvetipo0 td:nth-child(2) {
|
|
||||||
display: none;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
.GVGetMovtoPermanenteRep tr:not(.cvetipo0) td .lblconcepto {
|
.GVGetMovtoPermanenteRep tr:not(.cvetipo0) td .lblconcepto {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -34,16 +23,6 @@
|
|||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
/* Ocultar las columnas 3 a 9 en filas que no tienen la clase cvetipo0 */
|
|
||||||
/*.GVGetMovtoPermanenteRep tr.cvetipo0 td:nth-child(3),
|
|
||||||
.GVGetMovtoPermanenteRep tr.cvetipo0 td:nth-child(4),
|
|
||||||
.GVGetMovtoPermanenteRep tr.cvetipo0 td:nth-child(5),
|
|
||||||
.GVGetMovtoPermanenteRep tr.cvetipo0 td:nth-child(6),
|
|
||||||
.GVGetMovtoPermanenteRep tr.cvetipo0 td:nth-child(7),
|
|
||||||
.GVGetMovtoPermanenteRep tr.cvetipo0 td:nth-child(8),
|
|
||||||
.GVGetMovtoPermanenteRep tr.cvetipo0 td:nth-child(9) {
|
|
||||||
display: none;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
.GVGetMovtoPermanenteRep td:nth-child(3),
|
.GVGetMovtoPermanenteRep td:nth-child(3),
|
||||||
.GVGetMovtoPermanenteRep td:nth-child(4),
|
.GVGetMovtoPermanenteRep td:nth-child(4),
|
||||||
|
|||||||
@@ -54,6 +54,17 @@ public partial class Nomina_RepMovtosPermanentes : ClsPaginas
|
|||||||
get { return TxtRpdFechaFin.Text; }
|
get { return TxtRpdFechaFin.Text; }
|
||||||
set { TxtRpdFechaFin.Text = value; }
|
set { TxtRpdFechaFin.Text = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private DataTable dtmovs
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (ViewState["dtmovs"] == null) { return null; }
|
||||||
|
else { return (DataTable)ViewState["dtmovs"]; }
|
||||||
|
}
|
||||||
|
|
||||||
|
set { ViewState["dtmovs"] = value; }
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@@ -148,6 +159,7 @@ public partial class Nomina_RepMovtosPermanentes : ClsPaginas
|
|||||||
//string fechaFin = "";
|
//string fechaFin = "";
|
||||||
int CvePeriodo = DdlPeriodo.SelectedValue.ToEntero() > 0 ? DdlPeriodo.SelectedValue.ToEntero() : -1;
|
int CvePeriodo = DdlPeriodo.SelectedValue.ToEntero() > 0 ? DdlPeriodo.SelectedValue.ToEntero() : -1;
|
||||||
ObjGetM.GetMovtoPermanenteRepFechas(RcvePersonal, UsuarioActual.CveEmpresa, RcveTipo, RcveSaldo, RcveEstatus, RcveConcepto, fechaInicio.ToDateTime().ToString("yyyy-MM-dd"), fechaFin.ToDateTime().ToString("yyyy-MM-dd"), CvePeriodo);
|
ObjGetM.GetMovtoPermanenteRepFechas(RcvePersonal, UsuarioActual.CveEmpresa, RcveTipo, RcveSaldo, RcveEstatus, RcveConcepto, fechaInicio.ToDateTime().ToString("yyyy-MM-dd"), fechaFin.ToDateTime().ToString("yyyy-MM-dd"), CvePeriodo);
|
||||||
|
dtmovs = ObjGetM.DtResultados;
|
||||||
GVGetMovtoPermanenteRep.DataSource = ObjGetM.DtResultados;
|
GVGetMovtoPermanenteRep.DataSource = ObjGetM.DtResultados;
|
||||||
GVGetMovtoPermanenteRep.DataBind();
|
GVGetMovtoPermanenteRep.DataBind();
|
||||||
|
|
||||||
@@ -221,14 +233,8 @@ public partial class Nomina_RepMovtosPermanentes : ClsPaginas
|
|||||||
|
|
||||||
protected void LnkFormatoxls_Click(object sender, EventArgs e)
|
protected void LnkFormatoxls_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
using (ClsNominas ObjGetM = new ClsNominas())
|
if(dtmovs != null && dtmovs.Rows.Count >0)
|
||||||
{
|
ExportarExcel(dtmovs);
|
||||||
//string fechaInicio = "";
|
|
||||||
//string fechaFin = "";
|
|
||||||
ObjGetM.GetMovtoPermanenteRepFechas(RcvePersonal, UsuarioActual.CveEmpresa, RcveTipo, RcveSaldo, RcveEstatus, RcveConcepto, fechaInicio.ToDateTime().ToString("yyyy-MM-dd"), fechaFin.ToDateTime().ToString("yyyy-MM-dd"));
|
|
||||||
ExportarExcel(ObjGetM.DtResultados);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user