parametro de marca
This commit is contained in:
@@ -30,12 +30,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="titlefiltros caption">
|
<div class="titlefiltros caption">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<label class="col-md-1 ">Marcas:</label>
|
||||||
|
<div class="col-md-1">
|
||||||
|
<asp:DropDownList ID="DdlMarcas" runat="server" DataValueField="CveMarca" DataTextField="Marca" class="select2me" Width="100%"></asp:DropDownList>
|
||||||
|
</div>
|
||||||
<label class="col-md-1 ">Clasificación:</label>
|
<label class="col-md-1 ">Clasificación:</label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-1">
|
||||||
<asp:DropDownList ID="DdlClasificaciones" runat="server" DataValueField="CveClasificacion" DataTextField="Clasificacion" class="select2me" Width="100%"></asp:DropDownList>
|
<asp:DropDownList ID="DdlClasificaciones" runat="server" DataValueField="CveClasificacion" DataTextField="Clasificacion" class="select2me" Width="100%"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<asp:Label runat="server" ID="LblSubProyecto" CssClass="col-md-1" Text="SubProyecto"></asp:Label>
|
<asp:Label runat="server" ID="LblSubProyecto" CssClass="col-md-1" Text="SubProyecto"></asp:Label>
|
||||||
<div class="col-md-2">
|
<div class="col-md-1">
|
||||||
<asp:DropDownList runat="server" ID="DdlSubProyecto" CssClass="select2me" Width="100%" DataTextField="SubProyecto" DataValueField="CveSubProyecto"></asp:DropDownList>
|
<asp:DropDownList runat="server" ID="DdlSubProyecto" CssClass="select2me" Width="100%" DataTextField="SubProyecto" DataValueField="CveSubProyecto"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 ">Fecha Inicial:</label>
|
<label class="col-md-1 ">Fecha Inicial:</label>
|
||||||
@@ -92,7 +96,7 @@
|
|||||||
<asp:BoundField DataField="Codigo" HeaderText="Código" />
|
<asp:BoundField DataField="Codigo" HeaderText="Código" />
|
||||||
<asp:BoundField DataField="PS" HeaderText="Producto/Servicio" />
|
<asp:BoundField DataField="PS" HeaderText="Producto/Servicio" />
|
||||||
<asp:BoundField DataField="Serie" HeaderText="Serie" />
|
<asp:BoundField DataField="Serie" HeaderText="Serie" />
|
||||||
<asp:BoundField DataField="Fecha" DataFormatString="{0:d}" HeaderText="Fecha" />
|
<asp:BoundField DataField="Fecha" DataFormatString="{0:d}" HeaderText="Fecha Compra" />
|
||||||
<asp:BoundField DataField="mesestranscurridos" HeaderText="M.Transc." />
|
<asp:BoundField DataField="mesestranscurridos" HeaderText="M.Transc." />
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
|||||||
@@ -61,10 +61,14 @@ public partial class Acumuladores_RepAcumuladoresVigencia : ClsPaginas
|
|||||||
private void CargaCombos()
|
private void CargaCombos()
|
||||||
{
|
{
|
||||||
CargarCentrosDeCosto(null, DdlSubProyecto, null, LblSubProyecto);
|
CargarCentrosDeCosto(null, DdlSubProyecto, null, LblSubProyecto);
|
||||||
DdlClasificaciones.DataSource = get_GlobalDTClasificaciones(UsuarioActual.CveEmpresa);
|
DdlClasificaciones.DataSource = get_GlobalDTClasificaciones(UsuarioActual.CveEmpresa).FiltraParametros("Categoria = 'ACUMULADORES'");
|
||||||
DdlClasificaciones.DataBind();
|
DdlClasificaciones.DataBind();
|
||||||
DdlClasificaciones.Items.Insert(0, new ListItem("Todos", "-1"));
|
DdlClasificaciones.Items.Insert(0, new ListItem("Todos", "-1"));
|
||||||
}
|
|
||||||
|
DdlMarcas.DataSource = get_GlobalDTGralMarcas(UsuarioActual.CveEmpresa);
|
||||||
|
DdlMarcas.DataBind();
|
||||||
|
DdlMarcas.Items.Insert(0, new ListItem("Todas", "-1"));
|
||||||
|
}
|
||||||
|
|
||||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
protected void BtnConsultar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@@ -76,7 +80,7 @@ public partial class Acumuladores_RepAcumuladoresVigencia : ClsPaginas
|
|||||||
{
|
{
|
||||||
ClsAcumuladores ObjAcum = new ClsAcumuladores();
|
ClsAcumuladores ObjAcum = new ClsAcumuladores();
|
||||||
|
|
||||||
if (ObjAcum.GetVigencias(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), DdlClasificaciones.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa, DdlSubProyecto.SelectedValue.ToEntero()))
|
if (ObjAcum.GetVigencias(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), DdlMarcas.SelectedValue.ToEntero(), DdlClasificaciones.SelectedValue.ToEntero(), UsuarioActual.CveEmpresa, DdlSubProyecto.SelectedValue.ToEntero()))
|
||||||
{
|
{
|
||||||
GvAcum.DataSource = ObjAcum.DtResultados;
|
GvAcum.DataSource = ObjAcum.DtResultados;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1315,11 +1315,12 @@ Public Class ClsAcumuladores
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
#Region "VIGENCIA ACUMULADORES"
|
#Region "VIGENCIA ACUMULADORES"
|
||||||
Public Function GetVigencias(FechaInicio As Date, FechaFin As Date, CveClasificacion As Integer, CveEmpresa As Integer, CveSubProyecto As Integer) As Boolean
|
Public Function GetVigencias(FechaInicio As Date, FechaFin As Date, CveMarca As Integer, CveClasificacion As Integer, CveEmpresa As Integer, CveSubProyecto As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
SqlDataAdapter("PA_Inv_ProductosFechasComprasSerie")
|
SqlDataAdapter("PA_Inv_ProductosFechasComprasSerie")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveMarca", SqlDbType.Int).Value = CveMarca
|
||||||
.Add("@CveClasificacion", SqlDbType.Int).Value = CveClasificacion
|
.Add("@CveClasificacion", SqlDbType.Int).Value = CveClasificacion
|
||||||
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||||
.Add("@FechaIni", SqlDbType.Date).Value = FechaInicio
|
.Add("@FechaIni", SqlDbType.Date).Value = FechaInicio
|
||||||
|
|||||||
Reference in New Issue
Block a user