This commit is contained in:
@@ -287,12 +287,12 @@
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Cliente">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lblcliente" OnClick="lblcliente_Click" data-toggle="tooltip" ToolTip="Empleados" runat="server" Text='<%# Eval("Cliente")%>'> </asp:LinkButton>
|
||||
<%# string.Format("<a href='/Ventas/Clientes.aspx?CveCliente={0}' target='_blank'>{1}</a>", Eval("CveCliente"), Eval("Cliente")) %>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="No Empleados">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("NoEmpleados")%>'> </asp:Label>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton OnClick="lblcliente_Click" data-toggle="tooltip" ToolTip="Empleados" runat="server" Text='<%# Eval("NoEmpleados")%>'> </asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-CssClass="thCliente" HeaderText="Total">
|
||||
@@ -449,7 +449,7 @@
|
||||
|
||||
<asp:TextBox ID="TxtClientescorreo" CssClass="hidden TxtClientescorreo" runat="server"></asp:TextBox>
|
||||
<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" />--%>
|
||||
<asp:Button ID="BtnEnviarDoctos" UseSubmitBehavior="false" OnClick="BtnEnviarDoctos_Click" runat="server" Text="Enviar" CssClass="btn btn-primary hidden BtnEnviarDoctos" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<div id="ModalShowempleados" class="modal ADS fade" role="dialog">
|
||||
@@ -459,14 +459,14 @@
|
||||
<div class="modal-content" style="width: 700px;">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Documentos</h4>
|
||||
<h4 class="modal-title">Empleados</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="UpShowempleados" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:GridView ID="GVClienteEmpleado" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD" AutoGenerateColumns="False"
|
||||
<asp:GridView ID="GVClienteEmpleado" runat="server" GridLines="None" CssClass="table table-hover table-striped Widthall ScrollAD" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveCliente,CvePersonal,ConAsistencia,NominasFaltantes,NominasCapturadas,Cliente,CodigoNombreCompleto">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Empleado">
|
||||
|
||||
@@ -90,10 +90,13 @@ public partial class Documentacion_TableroMaterialidad : ClsPaginas
|
||||
anio = Txtanio.Text.ToEntero();
|
||||
mes = ddlMes.SelectedValue.ToEntero();
|
||||
DateTime fecha = String.Format("{0}-{1}{2}-01", anio, (mes < 10 ? "0" : ""), mes).ToDateTime();
|
||||
using (ClsEdocumentacion edoc = new ClsEdocumentacion())
|
||||
//using (ClsEdocumentacion edoc = new ClsEdocumentacion())
|
||||
using (ADSBase edoc = new ADSBase())
|
||||
{
|
||||
LtlPeriodo.Text = fecha.ToString("MMMM yyyy", CultureInfo.CreateSpecificCulture("es-MX"));
|
||||
edoc.Materialidad_Tablero(UsuarioActual.CveEmpresa, anio, mes);
|
||||
//edoc.Materialidad_Tablero(UsuarioActual.CveEmpresa, anio, mes);
|
||||
edoc.RunConsulta(String.Format("EXEC PA_Materialidad_TableroGET @CveEmpresa ={0}, @Anio={1}, @Mes={2}", UsuarioActual.CveEmpresa, anio, mes));
|
||||
DataSet ds = edoc.DTSetResultados;
|
||||
if (edoc.DtResultados.Rows.Count > 0)
|
||||
{
|
||||
DataRow drow = edoc.DtResultados.Rows[0];
|
||||
@@ -114,31 +117,36 @@ public partial class Documentacion_TableroMaterialidad : ClsPaginas
|
||||
LtlDoctosXEmplEntregados.Text = String.Format("{0}", drow["DoctosOkE"]);
|
||||
LtlDoctosXEmplRestantes.Text = String.Format("{0}", drow["DoctosRE"]);
|
||||
}
|
||||
if (edoc.DSResultados.Tables.Count > 1)
|
||||
if (ds.Tables.Count > 1)
|
||||
{
|
||||
GVMaterialidad.DataSource = edoc.DSResultados.Tables[1];
|
||||
GVMaterialidad.DataSource = ds.Tables[1];
|
||||
GVMaterialidad.DataBind();
|
||||
}
|
||||
if (edoc.DSResultados.Tables.Count > 2)
|
||||
if (ds.Tables.Count >2)
|
||||
{
|
||||
GvDoctosfaltantes.DataSource = edoc.DSResultados.Tables[2].FiltraParametros("ISOK =0", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosfaltantes.DataSource = ds.Tables[2].FiltraParametros("ISOK =0", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosfaltantes.DataBind();
|
||||
GvDoctosGrales.DataSource = edoc.DSResultados.Tables[2].FiltraParametros("Tipo=1", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosGrales.DataSource = ds.Tables[2].FiltraParametros("Tipo=1", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosGrales.DataBind();
|
||||
GvDoctosClientes.DataSource = edoc.DSResultados.Tables[2].FiltraParametros("Tipo=2", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosClientes.DataSource = ds.Tables[2].FiltraParametros("Tipo=2", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosClientes.DataBind();
|
||||
GVDoctosPersonal.DataSource = edoc.DSResultados.Tables[2].FiltraParametros("Tipo=3", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GVDoctosPersonal.DataBind();
|
||||
GVDoctosPersonal.DataSource = ds.Tables[2].FiltraParametros("Tipo=3", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GVDoctosPersonal.DataBind();
|
||||
}
|
||||
if (edoc.DSResultados.Tables.Count > 3)
|
||||
if (ds.Tables.Count > 3)
|
||||
{
|
||||
DtEmpleados = edoc.DSResultados.Tables[3];
|
||||
DtEmpleados = ds.Tables[3];
|
||||
}
|
||||
if (ds.Tables.Count > 4)
|
||||
{
|
||||
DdlDocumentacion.DataSource = ds.Tables[4];
|
||||
DdlDocumentacion.DataBind();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
||||
@@ -731,6 +739,12 @@ public partial class Documentacion_TableroMaterialidad : ClsPaginas
|
||||
decimal TotalDeducciones { get; set; }
|
||||
|
||||
}
|
||||
|
||||
protected void BtnEnviarDoctos_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Alert("El correo se ha enviado.");
|
||||
}
|
||||
}
|
||||
|
||||
namespace ADSistemaLibrary3.SatXml
|
||||
|
||||
Reference in New Issue
Block a user