Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -7691,6 +7691,26 @@ Public Class ClsVentas
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
Public Function GetSMSIndicadores(Opcion As Integer, FechaInicio As Date, FechaFin As Date, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
DataAdapter("PA_SMS_IndicadoresGet")
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@Opcion", SqlDbType.Int).Value = Opcion
|
||||||
|
.Add("@FechaInicio", SqlDbType.Date).Value = FechaInicio
|
||||||
|
.Add("@FechaFin", SqlDbType.Date).Value = FechaFin
|
||||||
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener los indicadores de venta.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
#Region "IDisposable Support"
|
#Region "IDisposable Support"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -312,38 +312,28 @@ Partial Class Inventarios_Kardex
|
|||||||
GvM.DataSource = DtTemp
|
GvM.DataSource = DtTemp
|
||||||
GvM.DataBind()
|
GvM.DataBind()
|
||||||
UpAcciones.Update()
|
UpAcciones.Update()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa <> 119 Then
|
If UsuarioActual.CveEmpresa <> 119 Then
|
||||||
|
Dim drPs As DataRow = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa, CvePS:=CvePS).FiltroPrimero("", "")
|
||||||
Dim drPs As DataRow = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS).FiltroPrimero("", "")
|
|
||||||
|
|
||||||
If drPs IsNot Nothing Then
|
If drPs IsNot Nothing Then
|
||||||
Dim NumeroParte As String = drPs("NumeroParte").ToString
|
Dim NumeroParte As String = drPs("NumeroParte").ToString
|
||||||
Dim Codigo As String = drPs("Codigo").ToString
|
Dim PS As String = drPs("PSCodigo").ToString
|
||||||
Dim PS As String = drPs("PS").ToString
|
LblNumeroParte.Visible = True
|
||||||
|
|
||||||
If NumeroParte.Trim.Length > 0 Then
|
If NumeroParte.Trim.Length > 0 Then
|
||||||
If UsuarioActual.TienePermisoPagina(13) Then
|
If UsuarioActual.TienePermisoPagina(13) Then
|
||||||
LblNumeroParte.Text = $" Producto: <a href='../Ventas/ProductosServicios.aspx?CvePS={CvePS}' class='Texto' target='_blank' >{Codigo}</a> - <a href='../Ventas/ProductosServicios.aspx?CvePS={CvePS}' class='Texto' target='_blank' >{NumeroParte}</a> - <a href='../Ventas/ProductosServicios.aspx?CvePS={CvePS}' class='Texto' target='_blank' >{PS}</a>"
|
LblNumeroParte.Text = $" Producto: <a href='../Ventas/ProductosServicios.aspx?CvePS={CvePS}' class='Texto' target='_blank' >{NumeroParte}</a> - <a href='../Ventas/ProductosServicios.aspx?CvePS={CvePS}' class='Texto' target='_blank' >{PS}</a>"
|
||||||
Else
|
Else
|
||||||
LblNumeroParte.Text = $" Producto: {NumeroParte}"
|
LblNumeroParte.Text = $" Producto: {NumeroParte}"
|
||||||
End If
|
End If
|
||||||
LblNumeroParte.Visible = True
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Alert("Seleccione un producto.", TipoMensaje.MsgAdvertencia)
|
Alert("Seleccione un producto.", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
UpNumeroParte.Update()
|
UpNumeroParte.Update()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -151,24 +151,15 @@
|
|||||||
<asp:ListItem Text="No Inventariable" Value="0"></asp:ListItem>
|
<asp:ListItem Text="No Inventariable" Value="0"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-1 truncate" style="text-align: right!important">Grupo:</div>
|
<div class="col-md-1 truncate" style="text-align: right!important">Grupo:</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlGrupo" runat="server" CssClass="input-small input-sm select2me" Width="100%">
|
<asp:DropDownList ID="DdlGrupo" runat="server" CssClass="input-small input-sm select2me" Width="100%">
|
||||||
<asp:ListItem Text="Almacen" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Almacen" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Clasificación" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Clasificación" Value="2"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Tipo Almacen" Value="3"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ Partial Class Inventarios_RepAlmacen
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Dim Liga As String = $"./RepEntradasSalidas.aspx?CveAlmacen={e.Row.DataKey("CveAlmacen").ToEntero}&CveClasificacion={e.Row.DataKey("CveClasificacion").ToEntero}&FechaInicio={e.Row.DataKey("FechaInicio").ToDate.ToString("dd/MM/yyyy")}&FechaCorte={e.Row.DataKey("FechaFin").ToDate.ToString("dd/MM/yyyy")}&Tipo=-1"
|
Dim Liga As String = $"./RepEntradasSalidas.aspx?CveAlmacen={e.Row.DataKey("CveAlmacen").ToEntero}&CveClasificacion={e.Row.DataKey("CveClasificacion").ToEntero}&FechaInicio={e.Row.DataKey("FechaInicio").ToDate.ToString("dd/MM/yyyy")}&FechaCorte={e.Row.DataKey("FechaFin").ToDate.ToString("dd/MM/yyyy")}&CveTipoAlmacen={e.Row.DBCampo("CveTipoAlmacen")}&Tipo=-1"
|
||||||
e.Row.Cells(0).Text = $"<a href='{Liga}' target='_blank' >{e.Row.DataKey("Gpo")}</a>"
|
e.Row.Cells(0).Text = $"<a href='{Liga}' target='_blank' >{e.Row.DataKey("Gpo")}</a>"
|
||||||
|
|
||||||
'If DdlGrupo.SelectedValue.ToEntero = 1 Then
|
'If DdlGrupo.SelectedValue.ToEntero = 1 Then
|
||||||
|
|||||||
Reference in New Issue
Block a user