This commit is contained in:
266
Documentacion/TableroMaterialidad.aspx
Normal file
266
Documentacion/TableroMaterialidad.aspx
Normal file
@@ -0,0 +1,266 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="TableroMaterialidad.aspx.cs" Inherits="Documentacion_TableroMaterialidad" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
#C_Tab_Tlablero tr th:nth-child(1) {
|
||||
text-align: left
|
||||
}
|
||||
|
||||
#C_Tab_Tlablero tr td:nth-child(n+2) {
|
||||
text-align: center
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
Materialidad
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<li>
|
||||
<asp:LinkButton ID="LckOpModalDoctos" OnClick="LckOpModalDoctos_Click" runat="server"><i class="fa fa-upload" aria-hidden="true"></i>Cargar Doctos</asp:LinkButton>
|
||||
<%--<asp:HyperLink ID="HyperLink1" onclick="$('#ModalDoctos').modal();" NavigateUrl="#" runat="server"><i class="fa fa-upload" aria-hidden="true"></i>Cargar Doctos</asp:HyperLink>--%>
|
||||
</li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LckOpModalDoctosPDFXML" OnClick="LckOpModalDoctosPDFXML_Click" runat="server"><i class="fa fa-upload" aria-hidden="true"></i>Cargar XML PDF</asp:LinkButton>
|
||||
<%--<asp:HyperLink ID="HypopenModal" onclick="$('#ModalDoctosxmlpdf').modal();" NavigateUrl="#" runat="server"><i class="fa fa-upload" aria-hidden="true"></i>Cargar XML PDF</asp:HyperLink>--%>
|
||||
</li>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet solid grey-cascade portlet-filter">
|
||||
<div class="portlet-title portlet-filterT portletfiltrostitlee">
|
||||
<div class="tools">
|
||||
<asp:Button ID="BtnConsultar" runat="server" OnClick="BtnConsultar_Click" CausesValidation="true" CssClass=" btn btn-primary " Text="Consultar" ValidationGroup="GrpFiltrar"></asp:Button>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="titlefiltros caption ">
|
||||
<div class="row">
|
||||
<div class="col-md-1" style="font-size: medium; max-width: 100px!important">Año:</div>
|
||||
<div class="col-md-2 " style="max-width: 283px!important">
|
||||
<asp:TextBox ID="Txtanio" runat="server" Text="2021" Style="display: inline-block;" type="number" CssClass=" form-control input-sm select2me" CausesValidation="true" MaxLength="30" ValidationGroup="GrpFiltrar" Width="100%"></asp:TextBox>
|
||||
</div>
|
||||
|
||||
<div class="col-md-1 " style="font-size: medium; max-width: 100px!important">Mes:</div>
|
||||
<div class=" col-md-2 " style="max-width: 180px!important">
|
||||
<asp:DropDownList ID="ddlMes" Width="100%" runat="server" CssClass="form-control select2me">
|
||||
<asp:ListItem Value="01" Text="01 - Enero"></asp:ListItem>
|
||||
<asp:ListItem Value="02" Text="02 - Febrero"></asp:ListItem>
|
||||
<asp:ListItem Value="03" Text="03 - Marzo"></asp:ListItem>
|
||||
<asp:ListItem Value="04" Text="04 - Abril"></asp:ListItem>
|
||||
<asp:ListItem Value="05" Text="05 - Mayo"></asp:ListItem>
|
||||
<asp:ListItem Value="06" Text="06 - Junio"></asp:ListItem>
|
||||
<asp:ListItem Value="07" Text="07 - Julio"></asp:ListItem>
|
||||
<asp:ListItem Value="08" Text="08 - Agosto"></asp:ListItem>
|
||||
<asp:ListItem Value="09" Text="09 - Septiembre"></asp:ListItem>
|
||||
<asp:ListItem Value="10" Text="10 - Octubre"></asp:ListItem>
|
||||
<asp:ListItem Value="11" Selected="true" Text="11 - Noviembre"></asp:ListItem>
|
||||
<asp:ListItem Value="12" Text="12 - Diciembre"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="portlet-body">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<table class=" table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
cellspacing="0" data-heighterror="330" data-freezecols="0" data-freezerows="1"
|
||||
id="C_Tab_Tlablero">
|
||||
<tbody>
|
||||
<tr>
|
||||
<asp:Repeater ID="RPTTableroHeader" runat="server">
|
||||
<HeaderTemplate>
|
||||
<!-- CvePersonal,CveEmpresa,InicioPeriodo,FinPeriodo,Antiguedad,Ejercicio,FechaIngreso,Dias,DiasDisfrutados,DiasPrima,DiasVacaciones-->
|
||||
|
||||
<th>Cliente</th>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<th><%# DataBinder.Eval(Container.DataItem, "Documentacion") %> </th>
|
||||
|
||||
<%--
|
||||
<tr>
|
||||
<td><%# String.Format("{0:dd/MM/yyyy} - {1:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "InicioPeriodo"), DataBinder.Eval(Container.DataItem, "FinPeriodo")) %> </td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "Antiguedad") %> </td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "DiasVacaciones") %> </td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "Dias") %> </td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "DiasDisfrutados") %> </td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "DiasPrima") %> </td>
|
||||
<td></td>
|
||||
</tr>--%>
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
</FooterTemplate>
|
||||
|
||||
</asp:Repeater>
|
||||
<th>XML Timbrados</th>
|
||||
<th>PDF Timbrados</th>
|
||||
<th style="width: 85px;"></th>
|
||||
</tr>
|
||||
|
||||
|
||||
<asp:Repeater ID="RptDatos" runat="server" OnItemDataBound="RptDatos_ItemDataBound">
|
||||
<ItemTemplate>
|
||||
<tr>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "NombreComercial") %></td>
|
||||
<asp:Repeater ID="rptdocumentacion" runat="server">
|
||||
<ItemTemplate>
|
||||
<td><%#
|
||||
DataBinder.Eval( ((RepeaterItem)Container.Parent.Parent).DataItem ,string.Format("V_{0}",DataBinder.Eval(Container.DataItem, "CveDocumentacion"))).ToString() =="-1" ? "N/A":
|
||||
string.Format("<a onclick=\"cargarDocto({2},{1},'{4}','{3}')\">{0}</a>",
|
||||
(DataBinder.Eval( ((RepeaterItem)Container.Parent.Parent).DataItem ,string.Format("V_{0}",DataBinder.Eval(Container.DataItem, "CveDocumentacion"))).ToString() =="0"?
|
||||
|
||||
|
||||
"No":
|
||||
|
||||
|
||||
"Si")
|
||||
|
||||
,DataBinder.Eval(Container.DataItem, "CveDocumentacion"),DataBinder.Eval(((RepeaterItem)Container.Parent.Parent).DataItem, "CveCliente")
|
||||
,DataBinder.Eval(Container.DataItem, "Documentacion"),DataBinder.Eval(((RepeaterItem)Container.Parent.Parent).DataItem, "NombreComercial")
|
||||
)
|
||||
|
||||
|
||||
%> </td>
|
||||
|
||||
</ItemTemplate>
|
||||
|
||||
</asp:Repeater>
|
||||
<td>
|
||||
<%# string.Format("<a href=\"/Documentacion/TableroMaterialidadDetalle.ASPX?CveCliente={2}&anio={3}&mes={4}\" >{1}/{0}</a>",DataBinder.Eval(Container.DataItem, "Personal"),DataBinder.Eval(Container.DataItem, "PersonalXML"),DataBinder.Eval(Container.DataItem, "CveCliente"),anio,mes) %>
|
||||
</td>
|
||||
<td>
|
||||
<%# string.Format("<a href=\"/Documentacion/TableroMaterialidadDetalle.ASPX?CveCliente={2}&anio={3}&mes={4}\" >{1}/{0}</a>",DataBinder.Eval(Container.DataItem, "Personal"),DataBinder.Eval(Container.DataItem, "PersonalPDF"),DataBinder.Eval(Container.DataItem, "CveCliente"),anio,mes) %>
|
||||
</td>
|
||||
<td>
|
||||
<%# string.Format("<a class=\"btn btn-primary\" onclick=\"enviarDocto({0})\">Enviar</a>",DataBinder.Eval(Container.DataItem, "CveCliente"),anio,mes) %>
|
||||
</td>
|
||||
</tr>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<div id="ModalDoctosxmlpdf" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content" style="width: 700px;">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Agregar documentos XML PDF Timbrados.</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="Upxmlpdf" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="alert alert-warning" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||||
<strong style="font-size: 20px; margin-right: 25px;">Información: </strong>
|
||||
Los documentos cargados serán relacionados en el periodo:
|
||||
<asp:Literal runat="server" ID="LtlPeriodoXMLPDF"></asp:Literal>
|
||||
</div>
|
||||
<div>
|
||||
<asp:TextBox ID="Anexoxmlpd" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnAddClienteDocumentoxmlpd" UseSubmitBehavior="false" OnClick="BtnAddClienteDocumentoxmlpd_Click" runat="server" Text="Guardar" CssClass="btn btn-primary" />
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ModalDoctos" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content" style="width: 700px;">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Agregar documento</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="UpModalDoctos" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="alert alert-warning" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||||
<strong style="font-size: 20px; margin-right: 25px;">Información: </strong>
|
||||
Los documentos cargados serán relacionados en el periodo:
|
||||
<asp:Literal runat="server" ID="LtlPeriodo"></asp:Literal>
|
||||
</div>
|
||||
|
||||
|
||||
<span class="doctitulo"></span>
|
||||
<asp:TextBox ID="TxtcveCliente" CssClass="hidden TxtcveCliente" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtcveDocumentacion" CssClass="hidden TxtcveDocumentacion" runat="server"></asp:TextBox>
|
||||
Tipo documento
|
||||
<asp:DropDownList ID="DdlDocumentacion" DataValueField="CveDocumentacion" DataTextField="Documentacion" Width="100%" runat="server" CssClass="form-control select2me"></asp:DropDownList>
|
||||
<div>
|
||||
<br />
|
||||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnAddClienteDocumento" UseSubmitBehavior="false" OnClick="BtnAddClienteDocumento_Click" runat="server" Text="Guardar" CssClass="btn btn-primary" />
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<asp:TextBox ID="TxtcveClienteCorreo" CssClass="hidden TxtcveClienteCorreo" runat="server"></asp:TextBox>
|
||||
<asp:Button ID="BtnEnviarDoctos" UseSubmitBehavior="false" OnClick="BtnEnviarDoctos_Click" runat="server" Text="Enviar" CssClass="btn btn-primary hidden BtnEnviarDoctos" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>
|
||||
function cargarDocto(cveCliente, cveDocumentacion, cliente, documentacion) {
|
||||
$('.TxtcveCliente').val(cveCliente)
|
||||
$('.TxtcveDocumentacion').val(cveDocumentacion)
|
||||
$('.doctitulo').html(cliente + ' - ' + documentacion);
|
||||
$('#ModalDoctos').modal()
|
||||
}
|
||||
function enviarDocto(cveCliente) {
|
||||
$('.TxtcveClienteCorreo').val(cveCliente);
|
||||
$('.BtnEnviarDoctos').click();
|
||||
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
97
Documentacion/TableroMaterialidad.aspx.cs
Normal file
97
Documentacion/TableroMaterialidad.aspx.cs
Normal file
@@ -0,0 +1,97 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Extensiones;
|
||||
|
||||
public partial class Documentacion_TableroMaterialidad :ClsPaginas
|
||||
{
|
||||
#region "Propiedades"
|
||||
|
||||
public int anio
|
||||
{
|
||||
get { return ViewState["anio"] != null ? ViewState["anio"].ToString().ToEntero() : 0; }
|
||||
set { ViewState["anio"] = value; }
|
||||
}
|
||||
public int mes
|
||||
{
|
||||
get { return ViewState["mes"] != null ? ViewState["mes"].ToString().ToEntero() : 0; }
|
||||
set { ViewState["mes"] = value; }
|
||||
}
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
cargadatos();
|
||||
}
|
||||
}
|
||||
DataTable dt;
|
||||
public void cargadatos()
|
||||
{
|
||||
using (ClsEdocumentacion edoc = new ClsEdocumentacion())
|
||||
{
|
||||
if(edoc.TableroMaterialidadGET(UsuarioActual.CveEmpresa,(anio= Txtanio.Text.ToEntero()), (mes= ddlMes.SelectedValue.ToEntero())) && edoc.DSResultados.Tables.Count >1)
|
||||
{
|
||||
RptDatos.DataSource = edoc.DSResultados.Tables[0];
|
||||
dt = edoc.DSResultados.Tables[1];
|
||||
RPTTableroHeader.DataSource = edoc.DSResultados.Tables[1];
|
||||
RPTTableroHeader.DataBind();
|
||||
RptDatos.DataBind();
|
||||
DdlDocumentacion.DataSource = dt;
|
||||
DdlDocumentacion.DataBind();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected void RptDatos_ItemDataBound(object sender, RepeaterItemEventArgs e)
|
||||
{
|
||||
DataRowView item = (DataRowView)(e.Item.DataItem);
|
||||
Repeater rpt =((Repeater)e.Item.FindControl("rptdocumentacion"));
|
||||
rpt.DataSource = dt;
|
||||
rpt.DataBind();
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected void BtnAddClienteDocumento_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void BtnEnviarDoctos_Click(object sender, EventArgs e)
|
||||
{
|
||||
Alert("El correo se ha enviado.");
|
||||
}
|
||||
|
||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
||||
{
|
||||
cargadatos();
|
||||
}
|
||||
|
||||
protected void BtnAddClienteDocumentoxmlpd_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void LckOpModalDoctos_Click(object sender, EventArgs e)
|
||||
{
|
||||
DateTime fecha = string.Format("{0}-{1}-01", anio, mes).ToDateTime();
|
||||
LtlPeriodo.Text = fecha.ToString("MMMM yyyy", System.Globalization.CultureInfo.CreateSpecificCulture("es-MX"));//string.Format("");
|
||||
UpModalDoctos.Update();
|
||||
RegistraScript("$('#ModalDoctos').modal();");
|
||||
}
|
||||
|
||||
protected void LckOpModalDoctosPDFXML_Click(object sender, EventArgs e)
|
||||
{
|
||||
DateTime fecha = string.Format("{0}-{1}-01", anio, mes).ToDateTime();
|
||||
LtlPeriodoXMLPDF.Text = fecha.ToString("MMMM yyyy", System.Globalization.CultureInfo.CreateSpecificCulture("es-MX"));
|
||||
RegistraScript("$('#ModalDoctos').modal();");
|
||||
Upxmlpdf.Update();
|
||||
}
|
||||
}
|
||||
114
Documentacion/TableroMaterialidadDetalle.aspx
Normal file
114
Documentacion/TableroMaterialidadDetalle.aspx
Normal file
@@ -0,0 +1,114 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="TableroMaterialidadDetalle.aspx.cs" Inherits="Documentacion_TableroMaterialidadDetalle" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
|
||||
<style>
|
||||
.GVData tr th:nth-child(1),
|
||||
.GVData tr th:nth-child(2) {
|
||||
text-align: left
|
||||
}
|
||||
|
||||
.GVData tr td:nth-child(n+3) {
|
||||
text-align: center
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
Materialidad personal
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet solid grey-cascade portlet-filter">
|
||||
<div class="portlet-title portlet-filterT portletfiltrostitlee">
|
||||
<div class="tools">
|
||||
<asp:Button ID="BtnConsultar" runat="server" OnClick="BtnConsultar_Click" CausesValidation="true" CssClass=" btn btn-primary " Text="Consultar" ValidationGroup="GrpFiltrar"></asp:Button>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="titlefiltros caption ">
|
||||
<div class="row">
|
||||
<div class="col-md-1" style="font-size: medium; max-width: 100px!important">Cliente:</div>
|
||||
<div class="col-md-2 " style="max-width: 283px!important">
|
||||
<ADS:Dropdownlost CssClassDdl="form-control input-sm select2me" ID="DdlCliente" Width="100%" data-metodo="getcliente" runat="server"
|
||||
DataTextField="Nombre" DataValueField="CveCliente" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
||||
</div>
|
||||
<div class="col-md-1" style="font-size: medium; max-width: 100px!important">Año:</div>
|
||||
<div class="col-md-2 " style="max-width: 283px!important">
|
||||
<asp:TextBox ID="Txtanio" runat="server" Text="2021" Style="display: inline-block;" type="number" CssClass=" form-control input-sm select2me" CausesValidation="true" MaxLength="30" ValidationGroup="GrpFiltrar" Width="100%"></asp:TextBox>
|
||||
</div>
|
||||
<div class="col-md-1 " style="font-size: medium; max-width: 100px!important">MES:</div>
|
||||
<div class=" col-md-2 " style="max-width: 283px!important">
|
||||
|
||||
<asp:DropDownList ID="ddlMes" Width="100%" runat="server" CssClass="form-control select2me">
|
||||
<asp:ListItem Value="01" Text="01 - Enero"></asp:ListItem>
|
||||
<asp:ListItem Value="02" Text="02 - Febrero"></asp:ListItem>
|
||||
<asp:ListItem Value="03" Text="03 - Marzo"></asp:ListItem>
|
||||
<asp:ListItem Value="04" Text="04 - Abril"></asp:ListItem>
|
||||
<asp:ListItem Value="05" Text="05 - Mayo"></asp:ListItem>
|
||||
<asp:ListItem Value="06" Text="06 - Junio"></asp:ListItem>
|
||||
<asp:ListItem Value="07" Text="07 - Julio"></asp:ListItem>
|
||||
<asp:ListItem Value="08" Text="08 - Agosto"></asp:ListItem>
|
||||
<asp:ListItem Value="09" Text="09 - Septiembre"></asp:ListItem>
|
||||
<asp:ListItem Value="10" Text="10 - Octubre"></asp:ListItem>
|
||||
<asp:ListItem Value="11" Selected="true" Text="11 - Noviembre"></asp:ListItem>
|
||||
<asp:ListItem Value="12" Text="12 - Diciembre"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="portlet-body">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:GridView ID="GVData" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVData" AutoGenerateColumns="False"
|
||||
DataKeyNames="CvePersonal,Codigo,NombreCompleto,CveClienteAsignado,docsXML,docsPDF">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Codigo">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblcodigo" runat="server" Text='<%# Eval("Codigo")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nombre Completo">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblnombreCompleto" runat="server" Text='<%# Eval("NombreCompleto")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="XML">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbldocsXML" runat="server" Text='<%# Eval("docsXML")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="PDF">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbldocsPDF" runat="server" Text='<%# Eval("docsPDF")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
</asp:Content>
|
||||
|
||||
70
Documentacion/TableroMaterialidadDetalle.aspx.cs
Normal file
70
Documentacion/TableroMaterialidadDetalle.aspx.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Extensiones;
|
||||
|
||||
public partial class Documentacion_TableroMaterialidadDetalle : ClsPaginas
|
||||
{
|
||||
#region "Propiedades"
|
||||
public int CveCliente
|
||||
{
|
||||
get { return ViewState["CveCliente"] != null ? ViewState["CveCliente"].ToString().ToEntero() : 0; }
|
||||
set { ViewState["CveCliente"] = value; }
|
||||
}
|
||||
|
||||
public int anio
|
||||
{
|
||||
get { return ViewState["anio"] != null ? ViewState["anio"].ToString().ToEntero() : 0; }
|
||||
set { ViewState["anio"] = value; }
|
||||
}
|
||||
public int mes
|
||||
{
|
||||
get { return ViewState["mes"] != null ? ViewState["mes"].ToString().ToEntero() : 0; }
|
||||
set { ViewState["mes"] = value; }
|
||||
}
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
if (Request["CveCliente"] != null && Request["CveCliente"].ToString().ToEntero() > 0)
|
||||
{
|
||||
CveCliente = Request["CveCliente"].ToString().ToEntero();
|
||||
DdlCliente.SelectedValue = CveCliente.ToString();
|
||||
}
|
||||
if (Request["anio"] != null && Request["anio"].ToString().ToEntero() > 0)
|
||||
{
|
||||
anio = Request["anio"].ToString().ToEntero();
|
||||
Txtanio.Text = anio.ToString();
|
||||
}
|
||||
if (Request["mes"] != null && Request["mes"].ToString().ToEntero() > 0)
|
||||
{
|
||||
mes = Request["mes"].ToString().ToEntero();
|
||||
ddlMes.SelectedValueExist(mes.ToString());
|
||||
}
|
||||
cargadatos();
|
||||
}
|
||||
}
|
||||
public void cargadatos()
|
||||
{
|
||||
using (ClsEdocumentacion edoc = new ClsEdocumentacion())
|
||||
{
|
||||
if (edoc.TableroMaterialidadDetalleGET(UsuarioActual.CveEmpresa, (anio = Txtanio.Text.ToEntero()), (mes = ddlMes.SelectedValue.ToEntero()), CveCliente) && edoc.DSResultados.Tables.Count > 0)
|
||||
{
|
||||
GVData.DataSource = edoc.DSResultados.Tables[0];
|
||||
GVData.DataBind();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
||||
{
|
||||
cargadatos();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user