Tareas varias
This commit is contained in:
@@ -300,7 +300,8 @@ Public Class ClsInventarios
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetRepAlmacenes(FechaInicio As String, FechaFin As String, CveEmpresa As Integer, CveTipoAlmacen As String, Contabilizable As Integer, Inventariable As Boolean, Optional SoloMovimientosContables As Boolean = False) As Boolean
|
Public Function GetRepAlmacenes(FechaInicio As String, FechaFin As String, CveEmpresa As Integer, CveTipoAlmacen As String, Contabilizable As Integer, Inventariable As Boolean,
|
||||||
|
Optional SoloMovimientosContables As Boolean = False, Optional Almacenes As String = "-1", Optional CveSubProyecto As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Inv_AlmacenesRepGet")
|
DataAdapter("PA_Inv_AlmacenesRepGet")
|
||||||
|
|
||||||
@@ -311,7 +312,9 @@ Public Class ClsInventarios
|
|||||||
.Add("@CveTipoAlmacen", SqlDbType.VarChar).Value = CveTipoAlmacen
|
.Add("@CveTipoAlmacen", SqlDbType.VarChar).Value = CveTipoAlmacen
|
||||||
.Add("@Inventariable", SqlDbType.Bit).Value = Inventariable
|
.Add("@Inventariable", SqlDbType.Bit).Value = Inventariable
|
||||||
.Add("@SoloMovimientosContables", SqlDbType.Bit).Value = SoloMovimientosContables
|
.Add("@SoloMovimientosContables", SqlDbType.Bit).Value = SoloMovimientosContables
|
||||||
.Add("@Modalidad", SqlDbType.Int).Value = Contabilizable
|
.Add("@Modalidad", SqlDbType.Int).Value = Contabilizable
|
||||||
|
.Add("@Almacenes", SqlDbType.VarChar).Value = Almacenes
|
||||||
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
@@ -2415,15 +2418,15 @@ Public Class ClsInventarios
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetInventarioFisicoDetalle(CveInventarioFisico As Integer, CveUsuario As Integer) As Boolean
|
Public Function GetInventarioFisicoDetalle(CveInventarioFisico As Integer, CveUsuario As Integer, Optional Agrupar As Boolean = False) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Inv_InventarioFisicoDetalleGet")
|
DataAdapter("PA_Inv_InventarioFisicoDetalleGet")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveInventarioFisico", SqlDbType.Int).Value = CveInventarioFisico
|
.Add("@CveInventarioFisico", SqlDbType.Int).Value = CveInventarioFisico
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
|
.Add("@Agrupar", SqlDbType.Bit).Value = Agrupar
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@@ -2438,10 +2441,10 @@ Public Class ClsInventarios
|
|||||||
End Try
|
End Try
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "I N V E N T A R I O - F I S I C O - R E S U L T A D O"
|
#Region "I N V E N T A R I O - F I S I C O - R E S U L T A D O"
|
||||||
Public Function AddInventarioFisicoResultados(CveInventarioFisico As Integer, CveUsuario As Integer) As Boolean
|
Public Function AddInventarioFisicoResultados(CveInventarioFisico As Integer, CveUsuario As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|||||||
@@ -380,7 +380,6 @@
|
|||||||
<asp:Literal ID="LtlDescrip" runat="server" Text='<%# Eval("Descripcion", "<div>{0}</div>")%>'></asp:Literal>
|
<asp:Literal ID="LtlDescrip" runat="server" Text='<%# Eval("Descripcion", "<div>{0}</div>")%>'></asp:Literal>
|
||||||
<span style='display: none'><%# Eval("RazonSocial")%></span>
|
<span style='display: none'><%# Eval("RazonSocial")%></span>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
|
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
<div>
|
<div>
|
||||||
<asp:LinkButton ID="LbMoneda_RazonSocial" runat="server" CausesValidation="false" Text="Proveedor" OnClick="LbOrden_Click" CommandArgument="Moneda,RazonSocial"></asp:LinkButton> <asp:ImageButton ID="ImgMoneda_RazonSocial" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" OnClick="LbOrden_Click" CommandArgument="Moneda,RazonSocial" />/<asp:LinkButton ID="LbMoneda_OrdenMonedaProveedor_SerieFolio" runat="server" CausesValidation="false" Text="Factura" OnClick="LbOrden_Click" CommandArgument="Moneda,OrdenMonedaProveedor,SerieFolio"></asp:LinkButton> <asp:ImageButton ID="ImgMoneda_OrdenMonedaProveedor_SerieFolio" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" OnClick="LbOrden_Click" CommandArgument="Moneda,OrdenMonedaProveedor,SerieFolio" />
|
<asp:LinkButton ID="LbMoneda_RazonSocial" runat="server" CausesValidation="false" Text="Proveedor" OnClick="LbOrden_Click" CommandArgument="Moneda,RazonSocial"></asp:LinkButton> <asp:ImageButton ID="ImgMoneda_RazonSocial" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" OnClick="LbOrden_Click" CommandArgument="Moneda,RazonSocial" />/<asp:LinkButton ID="LbMoneda_OrdenMonedaProveedor_SerieFolio" runat="server" CausesValidation="false" Text="Factura" OnClick="LbOrden_Click" CommandArgument="Moneda,OrdenMonedaProveedor,SerieFolio"></asp:LinkButton> <asp:ImageButton ID="ImgMoneda_OrdenMonedaProveedor_SerieFolio" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" OnClick="LbOrden_Click" CommandArgument="Moneda,OrdenMonedaProveedor,SerieFolio" />
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ Imports Extensiones
|
|||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
|
|
||||||
Partial Class Bancos_RepProgramarRecursos
|
Partial Class Bancos_RepProgramarRecursos
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
|
|
||||||
#Region "P R O P I E D A D E S"
|
#Region "P R O P I E D A D E S"
|
||||||
|
|
||||||
Private Property DtDatos As DataTable
|
Private Property DtDatos As DataTable
|
||||||
Get
|
Get
|
||||||
Return CType(ViewState("DtDatos"), DataTable)
|
Return CType(ViewState("DtDatos"), DataTable)
|
||||||
@@ -80,9 +80,9 @@ Partial Class Bancos_RepProgramarRecursos
|
|||||||
Set(value As String)
|
Set(value As String)
|
||||||
ViewState("UsuarioProgramo") = value
|
ViewState("UsuarioProgramo") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
DdlUsuarioProgramo.Visible = False
|
DdlUsuarioProgramo.Visible = False
|
||||||
@@ -501,7 +501,6 @@ Partial Class Bancos_RepProgramarRecursos
|
|||||||
Protected Sub BtnProgramar_Click(sender As Object, e As EventArgs) Handles BtnProgramar.Click
|
Protected Sub BtnProgramar_Click(sender As Object, e As EventArgs) Handles BtnProgramar.Click
|
||||||
Dim CveUsuario As Integer = UsuarioActual.CveUsuario
|
Dim CveUsuario As Integer = UsuarioActual.CveUsuario
|
||||||
|
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(138) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(138) = "1" Then
|
||||||
'Validación del SAT - DF 21/01/17
|
'Validación del SAT - DF 21/01/17
|
||||||
Dim Validada As Boolean = False
|
Dim Validada As Boolean = False
|
||||||
@@ -596,18 +595,18 @@ Partial Class Bancos_RepProgramarRecursos
|
|||||||
MsgError &= "No se pudo programar la factura </br>"
|
MsgError &= "No se pudo programar la factura </br>"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
Comp.Dispose()
|
||||||
TxtCodigoP.Text = ""
|
|
||||||
|
|
||||||
|
TxtCodigoP.Text = ""
|
||||||
|
|
||||||
If MsgError <> "" Then
|
If MsgError <> "" Then
|
||||||
Alert(MsgError, TipoMensaje.MsgError)
|
Alert(MsgError, TipoMensaje.MsgError)
|
||||||
Else
|
Else
|
||||||
Alert("La programación se guardó correctamente", TipoMensaje.MsgInformacion)
|
Alert("La programación se guardó correctamente", TipoMensaje.MsgInformacion)
|
||||||
|
EnviaCorreoNotificacion()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Comp.Dispose()
|
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
|
|
||||||
'Recarga DdlUsuarioProgramo
|
'Recarga DdlUsuarioProgramo
|
||||||
@@ -623,6 +622,105 @@ Partial Class Bancos_RepProgramarRecursos
|
|||||||
End If
|
End If
|
||||||
ObjUsuarios.Dispose()
|
ObjUsuarios.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
Private Sub EnviaCorreoNotificacion()
|
||||||
|
If UsuarioActual.CveEmpresa = 13 Then
|
||||||
|
|
||||||
|
Dim strBody As New StringBuilder
|
||||||
|
Try
|
||||||
|
strBody.Append("<html xmlns=""http://www.w3.org/1999/xhtml""> ")
|
||||||
|
strBody.Append("<head> ")
|
||||||
|
strBody.Append(" <style type=""text/css""> ")
|
||||||
|
strBody.Append(" body ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" margin:0px; ")
|
||||||
|
strBody.Append(" padding:0px 0px 0px 0px; ")
|
||||||
|
strBody.Append(" font-family: Verdana, Arial, Helvetica, sans-serif; ")
|
||||||
|
strBody.Append(" font-size: 10px; ")
|
||||||
|
strBody.Append(" background-color:#F0F0F0; ")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" a.Texto ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" font-size:11px; ")
|
||||||
|
strBody.Append(" background-color:#F7F6F3; ")
|
||||||
|
strBody.Append(" text-decoration:none; ")
|
||||||
|
strBody.Append(" font-weight:bold; ")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" .Texto ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" background-color:#F7F6F3; color:Black; font-family:Verdana; font-size:10px; text-align:center; vertical-align:middle; height:20px;")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" .TextoAlterno ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" background-color:White; color:Black; font-family:Verdana; font-size:10px; text-align:center; ")
|
||||||
|
strBody.Append(" vertical-align:middle; height:20px;")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" .BarraIdentidad ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" color:#FFFFFF; ")
|
||||||
|
strBody.Append(" background:#F0F0F0; ")
|
||||||
|
strBody.Append(" font-weight:bold; ")
|
||||||
|
strBody.Append(" font-size:19px; ")
|
||||||
|
strBody.Append(" font-style:oblique; ")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" .Titulos ")
|
||||||
|
strBody.Append(" { ")
|
||||||
|
strBody.Append(" background-color: Gray;")
|
||||||
|
strBody.Append(" color:White; ")
|
||||||
|
strBody.Append(" font-family:Verdana; font-size:12px; text-align:center; ")
|
||||||
|
strBody.Append(" vertical-align:middle; font-weight:bold; height:30px; ")
|
||||||
|
strBody.Append(" text-decoration:none; ")
|
||||||
|
strBody.Append(" } ")
|
||||||
|
strBody.Append(" .Verde {color: #00CC00;} ")
|
||||||
|
strBody.Append(" .Negro {color: #000000;} ")
|
||||||
|
strBody.Append(" .Rojo {color: #FF0000;} ")
|
||||||
|
strBody.Append(" </style> ")
|
||||||
|
strBody.Append("</head> ")
|
||||||
|
strBody.Append("<body> ")
|
||||||
|
'Cargo el detalle
|
||||||
|
strBody.Append(" <div style='width: 550px'> ")
|
||||||
|
strBody.Append(" <fieldset> ")
|
||||||
|
strBody.Append(" <legend>Compras Programadas</legend> ")
|
||||||
|
strBody.Append(" <table width=""550px""><tr style='background-color:gray;color:White;font-family:Verdana;font-size:10px;text-align:center;vertical-align:middle;font-weight:bold;height:20px;text-decoration:none;'>")
|
||||||
|
strBody.Append(" <th scope='col' style='width: 100px'>Serie-Folio</th> <th scope='col' style='width: 100px'>Fecha</th><th scope='col' style='width: 120px'>Importe</th><th scope='col' style='width: 100px'>Importe Programado</th></tr>")
|
||||||
|
|
||||||
|
For Each gvr As GridViewRow In Gv.Rows
|
||||||
|
If gvr.FCCheckBox("Chk").Checked Then
|
||||||
|
Dim SerieFolio = gvr.DataKey("SerieFolio")
|
||||||
|
Dim Importe = gvr.DataKey("Original").ToDouble.FormatoNumero()
|
||||||
|
Dim ImporteProgramo = gvr.FCTextBox("TxtS").Text.ToDouble.FormatoNumero()
|
||||||
|
|
||||||
|
strBody.Append($"<tr class='Texto'><td>{SerieFolio}</td><td>{DateTime.Now}</td><td style='text-align: right;'><span >{Importe}</span></td><td style='text-align: right;'>{ImporteProgramo}</td></tr>")
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
strBody.Append(" </table> ")
|
||||||
|
strBody.Append(" </fieldset> ")
|
||||||
|
strBody.Append(" </div> ")
|
||||||
|
strBody.Append("</body></html>")
|
||||||
|
|
||||||
|
Try
|
||||||
|
|
||||||
|
Dim Correo As String = "" '"rpenunuriv@hotmail.com"
|
||||||
|
'Rafael Peñuñuri
|
||||||
|
Dim ObjUsuarios As New ClsSisUsuarios
|
||||||
|
If ObjUsuarios.GetUsuarios(293) Then
|
||||||
|
If ObjUsuarios.DtResultados.Rows.Count > 0 Then
|
||||||
|
Correo = ObjUsuarios.DtResultados.Rows(0)("Correo").ToString()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
ObjUsuarios.Dispose()
|
||||||
|
|
||||||
|
Dim Asunto As String = "SIG - Se programaron las siguientes facturas"
|
||||||
|
Dim Mail As New ClsSisMail()
|
||||||
|
Mail.SendMail(ClsPaginas.EmpresaNotificaciones, Correo, Asunto, strBody.ToString())
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió error al mandar MAIL por cambio de Estatus", ex)
|
||||||
|
End Try
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrio un error al general el correo.", ex)
|
||||||
|
End Try
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -795,8 +893,8 @@ Partial Class Bancos_RepProgramarRecursos
|
|||||||
End If
|
End If
|
||||||
ObjMovimientos.Dispose()
|
ObjMovimientos.Dispose()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "C R E D I T O S - V E N C I M I E N T O"
|
#Region "C R E D I T O S - V E N C I M I E N T O"
|
||||||
Private Sub CargaCreditosVencimiento()
|
Private Sub CargaCreditosVencimiento()
|
||||||
Dim ObjCreditos As New ClsBancos
|
Dim ObjCreditos As New ClsBancos
|
||||||
@@ -826,9 +924,9 @@ Partial Class Bancos_RepProgramarRecursos
|
|||||||
End If
|
End If
|
||||||
GvV.DataBind()
|
GvV.DataBind()
|
||||||
UPDatos.Update()
|
UPDatos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,336 +1,342 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="InventarioFisicoDetalle.aspx.vb" Inherits="Inventarios_InventarioFisicoDetalle" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="InventarioFisicoDetalle.aspx.vb" Inherits="Inventarios_InventarioFisicoDetalle" %>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
<style>
|
<style>
|
||||||
#C_TxtHoraInicio_picker {
|
#C_TxtHoraInicio_picker {
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grides > tbody > tr > td:nth-child(3), .grides > tbody > tr > td:nth-child(3) {
|
.grides > tbody > tr > td:nth-child(3), .grides > tbody > tr > td:nth-child(3) {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#C_myhidenbutton {
|
#C_myhidenbutton {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.psagregar {
|
.psagregar {
|
||||||
width: 450px;
|
width: 450px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.psagregar > div.comboxes {
|
.psagregar > div.comboxes {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-scrollable {
|
.table-scrollable {
|
||||||
margin-top: 0px !important;
|
margin-top: 0px !important;
|
||||||
margin-bottom: 0px !important;
|
margin-bottom: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Widthall {
|
.Widthall {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_scrollHeadInner {
|
.dataTables_scrollHeadInner {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
background-color: #dddddd;
|
background-color: #dddddd;
|
||||||
padding-left: 0px !important;
|
padding-left: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_scrollFoot {
|
.dataTables_scrollFoot {
|
||||||
display: none;
|
display: none;
|
||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-scrollable {
|
.table-scrollable {
|
||||||
margin: 0px !important;
|
margin: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_scroll {
|
.dataTables_scroll {
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table.dataTable {
|
.table.dataTable {
|
||||||
margin-top: 0px !important;
|
margin-top: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_scrollBody table th {
|
.dataTables_scrollBody table th {
|
||||||
padding: 0px !important;
|
padding: 0px !important;
|
||||||
padding-right: 4px !important;
|
padding-right: 4px !important;
|
||||||
padding-left: 4px !important;
|
padding-left: 4px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sinlink td a {
|
.sinlink td a {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
color: black;
|
color: black;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
}
|
}
|
||||||
|
|
||||||
.white a {
|
.white a {
|
||||||
color: white !important;
|
color: white !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Derecha {
|
.Derecha {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Izquierda {
|
.Izquierda {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.SinColor th {
|
.SinColor th {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="btnFin" runat="server" Text="Finalizar" data-toggle="confirmation" data-popout="true" data-original-title="Finalizar el inventario" data-btn-ok-label="si" />
|
<asp:LinkButton ID="btnFin" runat="server" Text="Finalizar" data-toggle="confirmation" data-popout="true" data-original-title="Finalizar el inventario" data-btn-ok-label="si" />
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LBAvance" OnClick="LBAvance_Click" runat="server" Text="Ver Avance" Visible="false" />
|
<asp:LinkButton ID="LBAvance" OnClick="LBAvance_Click" runat="server" Text="Ver Avance" Visible="false" />
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkPDF" runat="server"><i class="fa fa-ad-pdf"></i> Imprimir PDF</asp:LinkButton>
|
<asp:LinkButton ID="LnkPDF" runat="server"><i class="fa fa-ad-pdf"></i> Imprimir PDF</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkExcel" runat="server"><i class="fa fa-ad-excel"></i> Imprimir EXCEL</asp:LinkButton>
|
<asp:LinkButton ID="LnkPDFResumido" runat="server"><i class="fa fa-ad-pdf"></i> Imprimir PDF</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
</asp:Content>
|
<asp:LinkButton ID="LnkExcel" runat="server"><i class="fa fa-ad-excel"></i> Imprimir EXCEL</asp:LinkButton>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
</li>
|
||||||
Inventario Físico Detalle
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||||
</asp:Content>
|
Inventario Físico Detalle
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
|
</asp:Content>
|
||||||
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
<div class="col-md-6" style="max-width: 545px;">
|
|
||||||
<div class="portlet smmallpadding light bordered infomov">
|
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
||||||
<div class="portlet-title">
|
|
||||||
<div class="tools">
|
<div class="col-md-6" style="max-width: 545px;">
|
||||||
<a href="javascript:;" class="expand"></a>
|
<div class="portlet smmallpadding light bordered infomov">
|
||||||
</div>
|
<div class="portlet-title">
|
||||||
<div class="caption uppercase" style="position: relative;">
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="expand"></a>
|
||||||
|
</div>
|
||||||
|
<div class="caption uppercase" style="position: relative;">
|
||||||
<i class="fa fa-info-circle"></i>Información del movimiento
|
<i class="fa fa-info-circle"></i>Información del movimiento
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
</div>
|
||||||
<table>
|
<div class="portlet-body">
|
||||||
<tr>
|
<table>
|
||||||
<td class="col-md-4">
|
<tr>
|
||||||
<label><b>Título: </b></label>
|
<td class="col-md-4">
|
||||||
<asp:Label ID="lbTitulo" runat="server"></asp:Label>
|
<label><b>Título: </b></label>
|
||||||
</td>
|
<asp:Label ID="lbTitulo" runat="server"></asp:Label>
|
||||||
<td class="col-md-4">
|
</td>
|
||||||
<label><b>SubProyecto: </b></label>
|
<td class="col-md-4">
|
||||||
<asp:Label ID="lbSubProyecto" runat="server"></asp:Label>
|
<label><b>SubProyecto: </b></label>
|
||||||
</td>
|
<asp:Label ID="lbSubProyecto" runat="server"></asp:Label>
|
||||||
<td class="col-md-4">
|
</td>
|
||||||
<label><b>Estatus: </b></label>
|
<td class="col-md-4">
|
||||||
<asp:Label ID="lbEstatus" runat="server"></asp:Label>
|
<label><b>Estatus: </b></label>
|
||||||
</td>
|
<asp:Label ID="lbEstatus" runat="server"></asp:Label>
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td class="col-md-4">
|
<tr>
|
||||||
<label><b>Fecha Inicio: </b></label>
|
<td class="col-md-4">
|
||||||
<asp:Label ID="lbFechaI" runat="server"></asp:Label>
|
<label><b>Fecha Inicio: </b></label>
|
||||||
</td>
|
<asp:Label ID="lbFechaI" runat="server"></asp:Label>
|
||||||
<td class="col-md-4">
|
</td>
|
||||||
<label><b>Fecha Fin: </b></label>
|
<td class="col-md-4">
|
||||||
<asp:Label ID="lbFechaF" runat="server"></asp:Label>
|
<label><b>Fecha Fin: </b></label>
|
||||||
</td>
|
<asp:Label ID="lbFechaF" runat="server"></asp:Label>
|
||||||
<td class="col-md-4">
|
</td>
|
||||||
<label><b>Usuario: </b></label>
|
<td class="col-md-4">
|
||||||
<asp:DropDownList ID="ddlUsuario" AutoPostBack="true" runat="server" AppendDataBoundItems="true" Class="form-control input-sm select2me" Style="width: 141px !important;" DataTextField="Nombre" DataValueField="CveUsuario">
|
<label><b>Usuario: </b></label>
|
||||||
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
<asp:DropDownList ID="ddlUsuario" AutoPostBack="true" runat="server" AppendDataBoundItems="true" Class="form-control input-sm select2me" Style="width: 141px !important;" DataTextField="Nombre" DataValueField="CveUsuario">
|
||||||
</asp:DropDownList>
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
||||||
</td>
|
</asp:DropDownList>
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td colspan="3"> <label><b>Almacenes:</b></label> <asp:Label ID="LblAlmacenes" runat="server" Text=""></asp:Label>
|
<tr>
|
||||||
</td>
|
<td colspan="3"> <label><b>Almacenes:</b></label> <asp:Label ID="LblAlmacenes" runat="server" Text=""></asp:Label>
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td colspan="3"> <label><b>Clasificaciones:</b></label> <asp:Label ID="LblClasif" runat="server" Text="Todas"></asp:Label>
|
<tr>
|
||||||
<br />
|
<td colspan="3"> <label><b>Clasificaciones:</b></label> <asp:Label ID="LblClasif" runat="server" Text="Todas"></asp:Label>
|
||||||
<label><b>Clasificaciones Excluidas:</b></label> <asp:Label ID="LblClasificacionesExcluidas" runat="server" Text=""></asp:Label>
|
<br />
|
||||||
</td>
|
<label><b>Clasificaciones Excluidas:</b></label> <asp:Label ID="LblClasificacionesExcluidas" runat="server" Text=""></asp:Label>
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td colspan="3"> <label><b>Productos:</b></label> <asp:Label ID="LblProductos" runat="server" Text="Todos"></asp:Label>
|
<tr>
|
||||||
<br />
|
<td colspan="3"> <label><b>Productos:</b></label> <asp:Label ID="LblProductos" runat="server" Text="Todos"></asp:Label>
|
||||||
<label><b>Productos Excluidos:</b></label> <asp:Label ID="LblProductosExcluidos" runat="server" Text=""></asp:Label>
|
<br />
|
||||||
</td>
|
<label><b>Productos Excluidos:</b></label> <asp:Label ID="LblProductosExcluidos" runat="server" Text=""></asp:Label>
|
||||||
</tr>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
<table>
|
</table>
|
||||||
<tr>
|
<table>
|
||||||
<td class="col-md-12" style="width: 500px;">
|
<tr>
|
||||||
<label><b>Observaciones: </b></label>
|
<td class="col-md-12" style="width: 500px;">
|
||||||
<asp:Label ID="lbObservaciones" runat="server" Style="width: 450px;"></asp:Label>
|
<label><b>Observaciones: </b></label>
|
||||||
</td>
|
<asp:Label ID="lbObservaciones" runat="server" Style="width: 450px;"></asp:Label>
|
||||||
</tr>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
</div>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-md-3" id="PAgregar" runat="server">
|
|
||||||
<asp:UpdatePanel ID="UPAgregarPro" runat="server" RenderMode="Inline" ViewStateMode="Inherit" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPAgregarPro" runat="server" RenderMode="Inline" ViewStateMode="Inherit" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:Panel ID="PnlII" runat="server" DefaultButton="BtnGuardar">
|
<div class="col-md-3" id="PAgregar" runat="server">
|
||||||
<div class="portlet smmallpadding light bordered" id="DivCodigoBarras" runat="server">
|
<asp:Panel ID="PnlII" runat="server" DefaultButton="BtnGuardar">
|
||||||
<div class="portlet-title">
|
<div class="portlet smmallpadding light bordered" id="DivCodigoBarras" runat="server">
|
||||||
<div class="tools">
|
<div class="portlet-title">
|
||||||
<a href="javascript:;" class="collapse"></a>
|
<div class="tools">
|
||||||
</div>
|
<a href="javascript:;" class="collapse"></a>
|
||||||
<div class="caption uppercase" style="position: relative;">
|
</div>
|
||||||
|
<div class="caption uppercase" style="position: relative;">
|
||||||
<i class="fa fa-info-circle"></i>Agregar Producto
|
<i class="fa fa-info-circle"></i>Agregar Producto
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
</div>
|
||||||
<div class="row">
|
<div class="portlet-body">
|
||||||
<label class="col-md-4">Cantidad</label>
|
<div class="row">
|
||||||
<div class="col-md-8">
|
<label class="col-md-4">Cantidad</label>
|
||||||
<asp:TextBox runat="server" ID="TxtCantidadProducto" Text="1" Width="50px"></asp:TextBox>
|
<div class="col-md-8">
|
||||||
<asp:RequiredFieldValidator runat="server" ID="RFVCantidad" ControlToValidate="TxtCantidadProducto" ValidationGroup="GrpIngresar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingrése una." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
<asp:TextBox runat="server" ID="TxtCantidadProducto" Text="1" Width="50px"></asp:TextBox>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOCantidad" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
<asp:RequiredFieldValidator runat="server" ID="RFVCantidad" ControlToValidate="TxtCantidadProducto" ValidationGroup="GrpIngresar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingrése una." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
||||||
</div>
|
<ajax:ValidatorCalloutExtender ID="VCOCantidad" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
</div>
|
||||||
<div class="row" style="margin-top: 5px;">
|
</div>
|
||||||
<label class="col-md-4">Código/NoParte</label>
|
<div class="row" style="margin-top: 5px;">
|
||||||
<div class="col-md-8">
|
<label class="col-md-4">Código/NoParte</label>
|
||||||
<asp:TextBox runat="server" ID="TxtCodigo"></asp:TextBox>
|
<div class="col-md-8">
|
||||||
</div>
|
<asp:TextBox runat="server" ID="TxtCodigo"></asp:TextBox>
|
||||||
</div>
|
</div>
|
||||||
<div class="row" style="margin-top: 5px;">
|
</div>
|
||||||
<label class="col-md-4">Código.Barras</label>
|
<div class="row" style="margin-top: 5px;">
|
||||||
<div class="col-md-8">
|
<label class="col-md-4">Código.Barras</label>
|
||||||
<asp:TextBox runat="server" ID="TxtCodigoBarras"></asp:TextBox>
|
<div class="col-md-8">
|
||||||
</div>
|
<asp:TextBox runat="server" ID="TxtCodigoBarras"></asp:TextBox>
|
||||||
</div>
|
</div>
|
||||||
<div class="row" style="margin-top: 5px;">
|
</div>
|
||||||
<label class="col-md-4">Serie</label>
|
<div class="row" style="margin-top: 5px;">
|
||||||
<div class="col-md-8">
|
<label class="col-md-4">Serie</label>
|
||||||
<asp:TextBox runat="server" ID="TxtCodigoSerie"></asp:TextBox>
|
<div class="col-md-8">
|
||||||
<asp:RequiredFieldValidator runat="server" ID="RFVSerie" ControlToValidate="TxtCodigoSerie" Enabled="false" ValidationGroup="GrpIngresar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Serie''</b> es necesario, por favor ingrése una." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
<asp:TextBox runat="server" ID="TxtCodigoSerie"></asp:TextBox>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCESerie" runat="server" HighlightCssClass="vco" TargetControlID="RFVSerie" Width="300px"></ajax:ValidatorCalloutExtender>
|
<asp:RequiredFieldValidator runat="server" ID="RFVSerie" ControlToValidate="TxtCodigoSerie" Enabled="false" ValidationGroup="GrpIngresar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Serie''</b> es necesario, por favor ingrése una." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCESerie" runat="server" HighlightCssClass="vco" TargetControlID="RFVSerie" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row" style="margin-top: 5px;">
|
</div>
|
||||||
<div class="col-md-12" style="text-align: center;">
|
<div class="row" style="margin-top: 5px;">
|
||||||
<asp:Button ID="BtnGuardar" runat="server" ValidationGroup="GrpIngresar" Text="Ingresar" class="btn btn-primary" Enabled="false" />
|
<div class="col-md-12" style="text-align: center;">
|
||||||
</div>
|
<asp:Button ID="BtnGuardar" runat="server" ValidationGroup="GrpIngresar" Text="Ingresar" class="btn btn-primary" Enabled="false" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</asp:Panel>
|
</div>
|
||||||
</ContentTemplate>
|
</asp:Panel>
|
||||||
</asp:UpdatePanel>
|
</div>
|
||||||
</div>
|
</ContentTemplate>
|
||||||
</div>
|
</asp:UpdatePanel>
|
||||||
<asp:UpdatePanel ID="UPPInventario" runat="server" RenderMode="Inline" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
</div>
|
||||||
<div class="row">
|
<asp:UpdatePanel ID="UPPInventario" runat="server" UpdateMode="Conditional">
|
||||||
<label class="col-md-2"><b>Ultimo Registrado: </b></label>
|
<ContentTemplate>
|
||||||
<div class="col-md-8">
|
<div class="row">
|
||||||
<asp:GridView ID="GvIFDUltimoRegistrado" ClientIDMode="Static" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False" GridLines="None" DataKeyNames="CveInventarioFisicoDetalle" ShowHeaderWhenEmpty="True" CssClass="table table-striped table-hover Widthall">
|
<label class="col-md-2"><b>Ultimo Registrado: </b></label>
|
||||||
<Columns>
|
<div class="col-md-8">
|
||||||
<asp:BoundField HeaderText="Fecha" DataField="FechaInvFisico" DataFormatString="{0:g}"></asp:BoundField>
|
<asp:GridView ID="GvIFDUltimoRegistrado" ClientIDMode="Static" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False" GridLines="None" DataKeyNames="CveInventarioFisicoDetalle" ShowHeaderWhenEmpty="True" CssClass="table table-striped table-hover Widthall">
|
||||||
<asp:BoundField HeaderText="Código Barras" DataField="CodigoBarras" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
<asp:BoundField HeaderText="Fecha" DataField="FechaInvFisico" DataFormatString="{0:g}"></asp:BoundField>
|
||||||
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
<asp:BoundField HeaderText="Código Barras" DataField="CodigoBarras" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
||||||
<asp:BoundField HeaderText="Serie/Lote" DataField="SerieLote" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
||||||
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right"></asp:BoundField>
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
||||||
</Columns>
|
<asp:BoundField HeaderText="Serie/Lote" DataField="SerieLote" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
||||||
</asp:GridView>
|
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right"></asp:BoundField>
|
||||||
</div>
|
</Columns>
|
||||||
<div class="col-md-2">
|
</asp:GridView>
|
||||||
<asp:Button ID="BtnVerRegistrados" OnClick="BtnVerRegistrados_Click" runat="server" CssClass="btn btn-primary btn-sm" Text="Ver Registrados" />
|
</div>
|
||||||
</div>
|
<div class="col-md-2">
|
||||||
</div>
|
<asp:Button ID="BtnVerRegistrados" OnClick="BtnVerRegistrados_Click" runat="server" CssClass="btn btn-primary btn-sm" Text="Ver Registrados" />
|
||||||
<br />
|
</div>
|
||||||
<div class="row col-md-12" align="right" id="DivBuscador" runat="server">
|
</div>
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="return Filtrar(event);" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<br />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvIFD.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<div class="row col-md-12" align="right" id="DivBuscador" runat="server">
|
||||||
<div style="display: inline-block;" id="SumFiltra"></div>
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="return Filtrar(event);" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
</div>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvIFD.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
<asp:GridView ID="GvIFD" ClientIDMode="Static" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False" GridLines="None" DataKeyNames="CveInventarioFisicoDetalle" ShowHeaderWhenEmpty="True" CssClass="table table-striped table-hover Widthall">
|
<div style="display: inline-block;" id="SumFiltra"></div>
|
||||||
<Columns>
|
</div>
|
||||||
<asp:BoundField HeaderText="Fecha" DataField="FechaInvFisico" DataFormatString="{0:g}"></asp:BoundField>
|
<asp:GridView ID="GvIFD" ClientIDMode="Static" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False" GridLines="None" DataKeyNames="CveInventarioFisicoDetalle" ShowHeaderWhenEmpty="True" CssClass="table table-striped table-hover Widthall">
|
||||||
<asp:BoundField HeaderText="Código Barras" DataField="CodigoBarras" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
<asp:BoundField HeaderText="Fecha" DataField="FechaInvFisico" DataFormatString="{0:g}"></asp:BoundField>
|
||||||
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
<asp:BoundField HeaderText="Código Barras" DataField="CodigoBarras" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
||||||
<asp:BoundField HeaderText="Serie/Lote" DataField="SerieLote" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
||||||
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right"></asp:BoundField>
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
||||||
<asp:TemplateField HeaderText="Eliminar" ItemStyle-HorizontalAlign="Center">
|
<asp:BoundField HeaderText="Serie/Lote" DataField="SerieLote" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
|
||||||
<ItemTemplate>
|
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right"></asp:BoundField>
|
||||||
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Estas seguro que desea eliminar el registro?" data-btn-ok-label="si" />
|
<asp:TemplateField HeaderText="Eliminar" ItemStyle-HorizontalAlign="Center">
|
||||||
</ItemTemplate>
|
<ItemTemplate>
|
||||||
</asp:TemplateField>
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Estas seguro que desea eliminar el registro?" data-btn-ok-label="si" />
|
||||||
</Columns>
|
</ItemTemplate>
|
||||||
</asp:GridView>
|
</asp:TemplateField>
|
||||||
</ContentTemplate>
|
</Columns>
|
||||||
<Triggers>
|
</asp:GridView>
|
||||||
<asp:AsyncPostBackTrigger ControlID="ddlUsuario" EventName="SelectedIndexChanged" />
|
</ContentTemplate>
|
||||||
</Triggers>
|
<Triggers>
|
||||||
</asp:UpdatePanel>
|
<asp:AsyncPostBackTrigger ControlID="ddlUsuario" EventName="SelectedIndexChanged" />
|
||||||
|
</Triggers>
|
||||||
</asp:Content>
|
</asp:UpdatePanel>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
||||||
|
</asp:Content>
|
||||||
<script src="/Scripts/DataTables.js"></script>
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
|
||||||
|
<script src="/Scripts/DataTables.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
function pageLoad(sender, e) {
|
function pageLoad(sender, e) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('a[class="ajax__tab_tab"]').click(function () {
|
$('a[class="ajax__tab_tab"]').click(function () {
|
||||||
$.fn.dataTable.tables({ visible: true, api: true }).columns.adjust();
|
$.fn.dataTable.tables({ visible: true, api: true }).columns.adjust();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function Filtrar(e) {
|
function Filtrar(e) {
|
||||||
debugger;
|
debugger;
|
||||||
if (e.keyCode == 13 || e.which == 13) {
|
if (e.keyCode == 13 || e.which == 13) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
<%= String.Format("FiltrarTabla('TxtBusqueda','{0}','SumFiltra')", GvIFD.ClientID) %>;
|
<%= String.Format("FiltrarTabla('TxtBusqueda','{0}','SumFiltra')", GvIFD.ClientID) %>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function playsonidito(NomArchivo) {
|
function playsonidito(NomArchivo) {
|
||||||
var URL = /Sonidos/ + NomArchivo
|
var URL = /Sonidos/ + NomArchivo
|
||||||
var snd = new Audio(URL);
|
var snd = new Audio(URL);
|
||||||
snd.play();
|
snd.play();
|
||||||
snd.currentTime = 0;
|
snd.currentTime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function OrdenarGV() {
|
function OrdenarGV() {
|
||||||
$('#<%=GvIFD.ClientID%>').DataTable({
|
$('#<%=GvIFD.ClientID%>').DataTable({
|
||||||
retrieve: true,
|
retrieve: true,
|
||||||
scrollY: '300px',
|
scrollY: '300px',
|
||||||
scrollCollapse: true,
|
scrollCollapse: true,
|
||||||
paging: false,
|
paging: false,
|
||||||
searching: false,
|
searching: false,
|
||||||
info: false,
|
info: false,
|
||||||
ordering: false
|
ordering: false
|
||||||
});
|
});
|
||||||
$('#GvIFD').parent().parent().children().first().css("position", "static");
|
$('#GvIFD').parent().parent().children().first().css("position", "static");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
@@ -88,44 +88,42 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
|||||||
#Region " CARGA DATOS "
|
#Region " CARGA DATOS "
|
||||||
Private Sub CargaDatos(CveInventarioFisico As Integer, CveEmpresa As Integer, Optional CveUsuario As Integer = -1)
|
Private Sub CargaDatos(CveInventarioFisico As Integer, CveEmpresa As Integer, Optional CveUsuario As Integer = -1)
|
||||||
|
|
||||||
Dim Inventario As New ClsInventarios
|
Dim ObjInventario As New ClsInventarios
|
||||||
|
If ObjInventario.GetInventarioFisico(CveInventarioFisico, CveEmpresa, -1, -1) AndAlso ObjInventario.DtResultados.Rows.Count > 0 Then
|
||||||
|
Dim CveEstatus = ObjInventario.DtResultados.FiltroPrimeroValor("CveEstatus")
|
||||||
|
Select Case CveEstatus
|
||||||
|
Case "0" 'NUEVO
|
||||||
|
CveSubProyecto = ObjInventario.CveSubProyectoInventario
|
||||||
|
lbTitulo.Text = ObjInventario.InventarioFisico
|
||||||
|
lbObservaciones.Text = ObjInventario.Observaciones
|
||||||
|
lbSubProyecto.Text = ObjInventario.SubProyectoInventario
|
||||||
|
lbEstatus.Text = ObjInventario.Estatus
|
||||||
|
|
||||||
If Inventario.GetInventarioFisico(CveInventarioFisico, CveEmpresa, -1, -1) Then
|
lbFechaF.Text = ObjInventario.FechaF
|
||||||
|
|
||||||
Select Case Inventario.Estatus
|
|
||||||
Case "Nuevo"
|
|
||||||
CveSubProyecto = Inventario.CveSubProyectoInventario
|
|
||||||
lbTitulo.Text = Inventario.InventarioFisico
|
|
||||||
lbObservaciones.Text = Inventario.Observaciones
|
|
||||||
lbSubProyecto.Text = Inventario.SubProyectoInventario
|
|
||||||
lbEstatus.Text = Inventario.Estatus
|
|
||||||
|
|
||||||
lbFechaF.Text = Inventario.FechaF
|
|
||||||
btnFin.Text = "Iniciar"
|
btnFin.Text = "Iniciar"
|
||||||
BtnGuardar.Enabled = False
|
BtnGuardar.Enabled = False
|
||||||
btnFin.ToolTip = "Inicia el Inventario Físico"
|
btnFin.ToolTip = "Inicia el Inventario Físico"
|
||||||
Case "Finalizado"
|
Case "3" 'FINALIZADO
|
||||||
GvIFD.Columns(6).Visible = False
|
GvIFD.Columns(6).Visible = False
|
||||||
PAgregar.Visible = False
|
PAgregar.Visible = False
|
||||||
'BtnGuardar.Visible = False
|
BtnGuardar.Enabled = False
|
||||||
|
BtnGuardar.Visible = False
|
||||||
btnFin.Visible = False
|
btnFin.Visible = False
|
||||||
'BtnGuardar.Enabled = False
|
CveSubProyecto = ObjInventario.CveSubProyectoInventario
|
||||||
'PAgregar.Visible = False
|
lbTitulo.Text = ObjInventario.InventarioFisico
|
||||||
CveSubProyecto = Inventario.CveSubProyectoInventario
|
lbObservaciones.Text = ObjInventario.Observaciones
|
||||||
lbTitulo.Text = Inventario.InventarioFisico
|
lbSubProyecto.Text = ObjInventario.SubProyectoInventario
|
||||||
lbObservaciones.Text = Inventario.Observaciones
|
lbEstatus.Text = ObjInventario.Estatus
|
||||||
lbSubProyecto.Text = Inventario.SubProyectoInventario
|
lbFechaI.Text = ObjInventario.FechaI
|
||||||
lbEstatus.Text = Inventario.Estatus
|
lbFechaF.Text = ObjInventario.FechaF
|
||||||
lbFechaI.Text = Inventario.FechaI
|
Case "1", "2" ' EN PROCESO,EN ESPERA
|
||||||
lbFechaF.Text = Inventario.FechaF
|
CveSubProyecto = ObjInventario.CveSubProyectoInventario
|
||||||
Case Else ' en proceso
|
lbTitulo.Text = ObjInventario.InventarioFisico
|
||||||
CveSubProyecto = Inventario.CveSubProyectoInventario
|
lbObservaciones.Text = ObjInventario.Observaciones
|
||||||
lbTitulo.Text = Inventario.InventarioFisico
|
lbEstatus.Text = ObjInventario.Estatus
|
||||||
lbObservaciones.Text = Inventario.Observaciones
|
lbSubProyecto.Text = ObjInventario.SubProyectoInventario
|
||||||
lbEstatus.Text = Inventario.Estatus
|
lbFechaI.Text = ObjInventario.FechaI
|
||||||
lbSubProyecto.Text = Inventario.SubProyectoInventario
|
lbFechaF.Text = ObjInventario.FechaF
|
||||||
lbFechaI.Text = Inventario.FechaI
|
|
||||||
lbFechaF.Text = Inventario.FechaF
|
|
||||||
BtnGuardar.Enabled = True
|
BtnGuardar.Enabled = True
|
||||||
btnFin.Text = "Finalizar"
|
btnFin.Text = "Finalizar"
|
||||||
LBAvance.Visible = UsuarioActual.TienePermisoProceso(178) ' si tiene permiso de ver el avance, se activa
|
LBAvance.Visible = UsuarioActual.TienePermisoProceso(178) ' si tiene permiso de ver el avance, se activa
|
||||||
@@ -133,8 +131,8 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
|||||||
GvIFD.Visible = False
|
GvIFD.Visible = False
|
||||||
DivBuscador.Visible = False
|
DivBuscador.Visible = False
|
||||||
|
|
||||||
If Inventario.GetInventarioFisicoDetallesAlmacen(CveInventarioFisico, UsuarioActual.CveEmpresa) Then
|
If ObjInventario.GetInventarioFisicoDetallesAlmacen(CveInventarioFisico, UsuarioActual.CveEmpresa) Then
|
||||||
Dim dt As DataTable = Inventario.DtResultados
|
Dim dt As DataTable = ObjInventario.DtResultados
|
||||||
Dim str As New StringBuilder
|
Dim str As New StringBuilder
|
||||||
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
||||||
|
|
||||||
@@ -144,8 +142,9 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
|||||||
End If
|
End If
|
||||||
LblAlmacenes.Text = str.ToString
|
LblAlmacenes.Text = str.ToString
|
||||||
End If
|
End If
|
||||||
If Inventario.GetInventarioFisicoDetallesClasificacion(CveInventarioFisico, UsuarioActual.CveEmpresa) Then
|
|
||||||
Dim dt As DataTable = Inventario.DtResultados
|
If ObjInventario.GetInventarioFisicoDetallesClasificacion(CveInventarioFisico, UsuarioActual.CveEmpresa) Then
|
||||||
|
Dim dt As DataTable = ObjInventario.DtResultados
|
||||||
Dim str As New StringBuilder
|
Dim str As New StringBuilder
|
||||||
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
||||||
|
|
||||||
@@ -161,8 +160,9 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
If Inventario.GetInventarioFisicoDetallesProductosServicios(CveInventarioFisico, UsuarioActual.CveEmpresa) Then
|
|
||||||
Dim dt As DataTable = Inventario.DtResultados
|
If ObjInventario.GetInventarioFisicoDetallesProductosServicios(CveInventarioFisico, UsuarioActual.CveEmpresa) Then
|
||||||
|
Dim dt As DataTable = ObjInventario.DtResultados
|
||||||
Dim str As New StringBuilder
|
Dim str As New StringBuilder
|
||||||
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
||||||
|
|
||||||
@@ -179,18 +179,32 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Inventario.GetInventarioFisicoDetalle(CveInventarioFisico, CveUsuario) Then
|
If ObjInventario.GetInventarioFisicoDetalle(CveInventarioFisico, CveUsuario) Then
|
||||||
If Inventario.DtResultados.Rows.Count > 0 Then
|
If ObjInventario.DtResultados.Rows.Count > 0 Then
|
||||||
GvIFDUltimoRegistrado.DataSource = Inventario.DtResultados.AsEnumerable.OrderByDescending(Function(k) k!CveInventarioFisicoDetalle).Take(1).CopyToDataTable
|
GvIFDUltimoRegistrado.DataSource = ObjInventario.DtResultados.AsEnumerable.OrderByDescending(Function(k) k!CveInventarioFisicoDetalle).Take(1).CopyToDataTable
|
||||||
Else
|
Else
|
||||||
GvIFDUltimoRegistrado.DataSource = Nothing
|
GvIFDUltimoRegistrado.DataSource = Nothing
|
||||||
End If
|
End If
|
||||||
DtDatos = Inventario.DtResultados
|
DtDatos = ObjInventario.DtResultados
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
GvIFD.Columns(6).Visible = False
|
||||||
|
PAgregar.Visible = False
|
||||||
|
BtnGuardar.Enabled = False
|
||||||
|
BtnGuardar.Visible = False
|
||||||
|
btnFin.Visible = False
|
||||||
|
CveSubProyecto = ObjInventario.CveSubProyectoInventario
|
||||||
|
lbTitulo.Text = ObjInventario.InventarioFisico
|
||||||
|
lbObservaciones.Text = ObjInventario.Observaciones
|
||||||
|
lbSubProyecto.Text = ObjInventario.SubProyectoInventario
|
||||||
|
lbEstatus.Text = ObjInventario.Estatus
|
||||||
|
lbFechaI.Text = ObjInventario.FechaI
|
||||||
|
lbFechaF.Text = ObjInventario.FechaF
|
||||||
|
|
||||||
|
Alert("Ocurrió un error al obterner el inventario fisico")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Inventario.Dispose()
|
ObjInventario.Dispose()
|
||||||
GvIFDUltimoRegistrado.DataBind()
|
GvIFDUltimoRegistrado.DataBind()
|
||||||
|
|
||||||
'If (GvIFD.Rows.Count > 0) Then
|
'If (GvIFD.Rows.Count > 0) Then
|
||||||
@@ -397,20 +411,30 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
|||||||
#Region " VER AVANCE "
|
#Region " VER AVANCE "
|
||||||
Protected Sub LBAvance_Click(sender As Object, e As EventArgs)
|
Protected Sub LBAvance_Click(sender As Object, e As EventArgs)
|
||||||
Response.Redirect($"~/Inventarios/RepAnomalias.aspx?CveInventarioFisico={CveInventarioFisico}&EsAvance=1")
|
Response.Redirect($"~/Inventarios/RepAnomalias.aspx?CveInventarioFisico={CveInventarioFisico}&EsAvance=1")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "I M P R I M I R"
|
#Region "I M P R I M I R"
|
||||||
Private Sub LnkPDF_Click(sender As Object, e As EventArgs) Handles LnkPDF.Click
|
Private Sub LnkPDF_Click(sender As Object, e As EventArgs) Handles LnkPDF.Click
|
||||||
Impimir(Formato:="PDF")
|
Impimir(Formato:="PDF")
|
||||||
|
End Sub
|
||||||
|
Private Sub LnkPDFResumido_Click(sender As Object, e As EventArgs) Handles LnkPDFResumido.Click
|
||||||
|
Impimir(Formato:="PDF", Agrupar:=True)
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub LnkExcel_Click(sender As Object, e As EventArgs) Handles LnkExcel.Click
|
Private Sub LnkExcel_Click(sender As Object, e As EventArgs) Handles LnkExcel.Click
|
||||||
Impimir(Formato:="EXCEL")
|
Impimir(Formato:="EXCEL")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub Impimir(Optional Formato As String = "PDF")
|
Protected Sub Impimir(Optional Formato As String = "PDF", Optional Agrupar As Boolean = False)
|
||||||
|
Dim DtDatos As New DataTable
|
||||||
|
Dim ObjInventario As New ClsInventarios()
|
||||||
|
If ObjInventario.GetInventarioFisicoDetalle(CveInventarioFisico, UsuarioActual.CveUsuario, Agrupar:=Agrupar) Then
|
||||||
|
DtDatos = ObjInventario.DtResultados
|
||||||
|
End If
|
||||||
|
ObjInventario.Dispose()
|
||||||
|
|
||||||
If DtDatos IsNot Nothing Then
|
If DtDatos IsNot Nothing Then
|
||||||
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/RepAnomalias.rdlc", UsuarioActual.Empresa.Ruta))
|
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/RepAnomalias.rdlc", UsuarioActual.Empresa.Ruta))
|
||||||
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||||
@@ -441,8 +465,8 @@ Partial Class Inventarios_InventarioFisicoDetalle
|
|||||||
Else
|
Else
|
||||||
Alert("No se encontraron resultado", TipoMensaje.MsgAdvertencia)
|
Alert("No se encontraron resultado", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,258 +1,278 @@
|
|||||||
<%@ Page Title="REPORTE DE ALMACÉN" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAlmacen.aspx.vb" Inherits="Inventarios_RepAlmacen" %>
|
<%@ Page Title="REPORTE DE ALMACÉN" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAlmacen.aspx.vb" Inherits="Inventarios_RepAlmacen" %>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
<style>
|
<style>
|
||||||
.GVAlmacen > tbody > tr:nth-child(2) {
|
.GVAlmacen > tbody > tr:nth-child(2) {
|
||||||
background: #CCCCCC;
|
background: #CCCCCC;
|
||||||
color: #67809F;
|
color: #67809F;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.GVAlmacen > tbody > tr > td:nth-child(2) {
|
.GVAlmacen > tbody > tr > td:nth-child(2) {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.GVAlmacen > tbody > tr > td:nth-child(3) {
|
.GVAlmacen > tbody > tr > td:nth-child(3) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.select2 .select2-selection__rendered {
|
|
||||||
line-height: 1;
|
.select2 .select2-selection__rendered {
|
||||||
color: #111;
|
line-height: 1;
|
||||||
}
|
color: #111;
|
||||||
|
}
|
||||||
.select2 .select2-selection--multiple {
|
|
||||||
box-sizing: border-box;
|
.select2 .select2-selection--multiple {
|
||||||
cursor: pointer;
|
box-sizing: border-box;
|
||||||
display: block;
|
cursor: pointer;
|
||||||
min-height: 20px;
|
display: block;
|
||||||
user-select: none;
|
min-height: 20px;
|
||||||
-webkit-user-select: none;
|
user-select: none;
|
||||||
}
|
-webkit-user-select: none;
|
||||||
|
}
|
||||||
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
|
||||||
margin-top: 10px;
|
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
||||||
}
|
margin-top: 10px;
|
||||||
|
}
|
||||||
.select2-selection__rendered {
|
|
||||||
margin-top: 0px;
|
.select2-selection__rendered {
|
||||||
height: 25px;
|
margin-top: 0px;
|
||||||
}
|
height: 25px;
|
||||||
|
}
|
||||||
.select2-selection {
|
|
||||||
margin-top: 0px;
|
.select2-selection {
|
||||||
height: 31px;
|
margin-top: 0px;
|
||||||
}
|
height: 31px;
|
||||||
|
}
|
||||||
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
|
||||||
border: none;
|
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
||||||
outline: 0;
|
border: none;
|
||||||
}
|
outline: 0;
|
||||||
#chartdiv {
|
}
|
||||||
width: 100%;
|
|
||||||
height: 500px;
|
#chartdiv {
|
||||||
}
|
width: 100%;
|
||||||
</style>
|
height: 500px;
|
||||||
</asp:Content>
|
}
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
||||||
REPORTE DE ALMACÉN
|
.v-center {
|
||||||
</asp:Content>
|
display: flex;
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
align-items: center;
|
||||||
</asp:Content>
|
}
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
</style>
|
||||||
<li>
|
</asp:Content>
|
||||||
<asp:LinkButton ID="LnkPdf" runat="server"><i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
</li>
|
REPORTE DE ALMACÉN
|
||||||
<li>
|
</asp:Content>
|
||||||
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</li>
|
</asp:Content>
|
||||||
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
<ContentTemplate>
|
<li>
|
||||||
<li>
|
<asp:LinkButton ID="LnkPdf" runat="server"><i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
||||||
<asp:LinkButton ID="LnkVerGrafica" OnClick="LnkVerGrafica_Click" runat="server"><i class="fa fa-signal"></i> Ver Grafica</asp:LinkButton>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
</ContentTemplate>
|
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
||||||
</asp:UpdatePanel>
|
</li>
|
||||||
</asp:Content>
|
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
<ContentTemplate>
|
||||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
<li>
|
||||||
<ContentTemplate>
|
<asp:LinkButton ID="LnkVerGrafica" OnClick="LnkVerGrafica_Click" runat="server"><i class="fa fa-signal"></i> Ver Grafica</asp:LinkButton>
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
</li>
|
||||||
<div class="portlet-title portlet-filterT smalltitle">
|
</ContentTemplate>
|
||||||
<div class="tools">
|
</asp:UpdatePanel>
|
||||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" />
|
</asp:Content>
|
||||||
<a href="javascript;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||||
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||||
</div>
|
<ContentTemplate>
|
||||||
<div class="titlefiltros caption">
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
<div class="row">
|
<div class="portlet-title portlet-filterT smalltitle">
|
||||||
<div class="col-md-1 truncate" style="text-align: right!important">Fecha Inicio:</div>
|
<div class="tools">
|
||||||
<div class="col-md-1 col-sm-1">
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" />
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
<a href="javascript;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
||||||
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaI" runat="server" CssClass="form-control" MaxLength="10"></asp:TextBox>
|
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
||||||
<span class="input-group-btn ">
|
</div>
|
||||||
<asp:LinkButton ID="ImgFechaI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<div class="titlefiltros caption">
|
||||||
</span>
|
<div class="row v-center">
|
||||||
</div>
|
<div class="col-md-1 truncate" style="text-align: right!important">Fecha Inicio:</div>
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="TxtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<div class="col-md-1 v-center">
|
||||||
<ajax:CalendarExtender runat="server" ID="CEFechaI" TargetControlID="TxtFechaI" PopupButtonID="ImgFechaI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
||||||
</div>
|
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaI" runat="server" CssClass="form-control" MaxLength="10"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
<div class="col-md-1 truncate" style="text-align: right!important">Fecha Fin:</div>
|
<asp:LinkButton ID="ImgFechaI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
<div class="col-md-1 col-sm-1">
|
</span>
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
</div>
|
||||||
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaF" runat="server" CssClass="form-control" MaxLength="10"></asp:TextBox>
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="TxtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
<span class="input-group-btn ">
|
<ajax:CalendarExtender runat="server" ID="CEFechaI" TargetControlID="TxtFechaI" PopupButtonID="ImgFechaI" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
<asp:LinkButton ID="ImgFechaF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
</div>
|
||||||
</span>
|
<div class="col-md-1 truncate" style="text-align: right!important">Fecha Fin:</div>
|
||||||
</div>
|
<div class="col-md-1 v-center">
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="TxtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 95px !important; padding: 0px;">
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFechaF" PopupButtonID="ImgFechaF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
<asp:TextBox Style="width: 80px !important;" ID="TxtFechaF" runat="server" CssClass="form-control" MaxLength="10"></asp:TextBox>
|
||||||
</div>
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="ImgFechaF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
<div class="col-md-1 truncate" style="text-align: right!important">Tipo Almacen:</div>
|
</span>
|
||||||
<div class="col-md-1">
|
</div>
|
||||||
<asp:ListBox ID="DdlTipoAlmacen" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" DataTextField="TipoAlmacen" DataValueField="CveTipoAlmacen" Style="width: 100%;" runat="server"></asp:ListBox>
|
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="TxtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
</div>
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFechaF" PopupButtonID="ImgFechaF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
</div>
|
||||||
<div class="col-md-1 truncate" style="text-align: right!important">Modalidad:</div>
|
<div class="col-md-1 truncate v-center" style="text-align: right!important">Almacen:</div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-2 v-center">
|
||||||
<asp:DropDownList ID="DdlModalidadFiltro" runat="server" CssClass="input-small input-sm select2me" Width="100%">
|
<asp:ListBox ID="DdlAlmacen" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" DataTextField="Almacen" DataValueField="CveAlmacen" Style="width: 100%;" runat="server"></asp:ListBox>
|
||||||
<asp:ListItem Text="Todas" Value="-1" Selected="True"> </asp:ListItem>
|
</div>
|
||||||
<asp:ListItem Text="Contable" Value="1"></asp:ListItem>
|
<div class="col-md-1 truncate v-center" style="text-align: right!important">Tipo Almacen:</div>
|
||||||
<asp:ListItem Text="No Contable" Value="0"></asp:ListItem>
|
<div class="col-md-2 v-center">
|
||||||
</asp:DropDownList>
|
<asp:ListBox ID="DdlTipoAlmacen" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" DataTextField="TipoAlmacen" DataValueField="CveTipoAlmacen" Style="width: 100%;" runat="server"></asp:ListBox>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<asp:CheckBox ID="ChkInventariable" CssClass="md-checksd" runat="server" Text="Aplica Inventario" />
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="portlet-body" style="display: none;">
|
||||||
</div>
|
<div class="row">
|
||||||
</div>
|
<div class="col-md-1 truncate" style="text-align: right!important">Modalidad:</div>
|
||||||
</ContentTemplate>
|
<div class="col-md-1">
|
||||||
</asp:UpdatePanel>
|
<asp:DropDownList ID="DdlModalidadFiltro" runat="server" CssClass="input-small input-sm select2me" Width="100%">
|
||||||
|
<asp:ListItem Text="Todas" Value="-1" Selected="True"> </asp:ListItem>
|
||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
<asp:ListItem Text="Contable" Value="1"></asp:ListItem>
|
||||||
<ContentTemplate>
|
<asp:ListItem Text="No Contable" Value="0"></asp:ListItem>
|
||||||
<asp:GridView ID="GVAlmacen" runat="server" AutoGenerateColumns="False" data-sort="true" EmptyDataText="No se encontraron Almacenes" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" GridLines="None">
|
</asp:DropDownList>
|
||||||
<Columns>
|
</div>
|
||||||
<asp:TemplateField HeaderText="Almacén">
|
<div class="col-md-1 truncate" style="text-align: right!important">Sucursal:</div>
|
||||||
<ItemTemplate>
|
<div class="col-md-1">
|
||||||
<asp:HyperLink ID="HyperLink1" Target="_blank" NavigateUrl='<%# String.Format("/Inventarios/RepEntradasSalidas.aspx?CveAlmacen={0}&FechaInicio={1:d}&FechaCorte={2:d}", Eval("CveAlmacen").ToString, Eval("FechaInicio"), Eval("FechaFin"))%>' runat="server"><%# Eval("Almacen") %></asp:HyperLink>
|
<asp:DropDownList ID="DdlSucursal" runat="server" CssClass="input-small input-sm select2me" Width="100%" DataTextField="SubProyecto" DataValueField="CveSubProyecto">
|
||||||
</ItemTemplate>
|
<asp:ListItem Text="Todas" Value="-1" Selected="True"> </asp:ListItem>
|
||||||
</asp:TemplateField>
|
</asp:DropDownList>
|
||||||
<asp:TemplateField HeaderText="Existencia" ItemStyle-HorizontalAlign="Right">
|
</div>
|
||||||
<ItemTemplate>
|
<div class="col-md-2">
|
||||||
<asp:Label ID="LtlExist" runat="server" Text='<%# Eval("Existencia", "{0:#,###.##}")%>'></asp:Label>
|
<asp:CheckBox ID="ChkInventariable" CssClass="md-checksd" runat="server" Text="Aplica Inventario" />
|
||||||
</ItemTemplate>
|
</div>
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
</div>
|
||||||
<ItemTemplate>
|
</div>
|
||||||
<asp:Label ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:#,##0.00}")%>'></asp:Label>
|
</div>
|
||||||
</ItemTemplate>
|
</ContentTemplate>
|
||||||
</asp:TemplateField>
|
</asp:UpdatePanel>
|
||||||
<asp:TemplateField HeaderText="Tipo Almacén">
|
|
||||||
<ItemTemplate>
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||||
<asp:Label ID="LtlAlmacen" runat="server" Text='<%# Eval("TipoAlmacen")%>'></asp:Label>
|
<ContentTemplate>
|
||||||
</ItemTemplate>
|
<asp:GridView ID="GVAlmacen" runat="server" AutoGenerateColumns="False" data-sort="true" EmptyDataText="No se encontraron Almacenes" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" GridLines="None">
|
||||||
</asp:TemplateField>
|
<Columns>
|
||||||
</Columns>
|
<asp:TemplateField HeaderText="Almacén">
|
||||||
</asp:GridView>
|
<ItemTemplate>
|
||||||
</ContentTemplate>
|
<asp:HyperLink ID="HyperLink1" Target="_blank" NavigateUrl='<%# String.Format("/Inventarios/RepEntradasSalidas.aspx?CveAlmacen={0}&FechaInicio={1:d}&FechaCorte={2:d}", Eval("CveAlmacen").ToString, Eval("FechaInicio"), Eval("FechaFin"))%>' runat="server"><%# Eval("Almacen") %></asp:HyperLink>
|
||||||
</asp:UpdatePanel>
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
<div id="DivModalGrafica" class="modal ADS fade" role="dialog">
|
<asp:TemplateField HeaderText="Existencia" ItemStyle-HorizontalAlign="Right">
|
||||||
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UPModalProd" UpdateMode="Conditional">
|
<ItemTemplate>
|
||||||
<ContentTemplate>
|
<asp:Label ID="LtlExist" runat="server" Text='<%# Eval("Existencia", "{0:#,###.##}")%>'></asp:Label>
|
||||||
<div class="modal-content">
|
</ItemTemplate>
|
||||||
<div class="modal-header">
|
</asp:TemplateField>
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
||||||
<h4 class="modal-title">
|
<ItemTemplate>
|
||||||
<asp:Label ID="LblTituloGrafica" runat="server" ClientIDMode="Static" Text="Almacenes"></asp:Label>
|
<asp:Label ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:#,##0.00}")%>'></asp:Label>
|
||||||
</h4>
|
</ItemTemplate>
|
||||||
</div>
|
</asp:TemplateField>
|
||||||
<div class="modal-body">
|
<asp:TemplateField HeaderText="Tipo Almacén">
|
||||||
<div class="row">
|
<ItemTemplate>
|
||||||
<div class="col-md-2"></div>
|
<asp:Label ID="LtlAlmacen" runat="server" Text='<%# Eval("TipoAlmacen")%>'></asp:Label>
|
||||||
<label class="col-md-1 truncate">Grafica:</label>
|
</ItemTemplate>
|
||||||
<div class="col-md-2">
|
</asp:TemplateField>
|
||||||
<asp:DropDownList ID="DdlGrafica" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlGrafica_SelectedIndexChanged" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
</Columns>
|
||||||
<asp:ListItem Selected="True" Text="Barras" Value="1"></asp:ListItem>
|
</asp:GridView>
|
||||||
<asp:ListItem Text="Pastel" Value="2"></asp:ListItem>
|
</ContentTemplate>
|
||||||
</asp:DropDownList>
|
</asp:UpdatePanel>
|
||||||
</div>
|
|
||||||
<label class="col-md-1 truncate"> Ver:</label>
|
<div id="DivModalGrafica" class="modal ADS fade" role="dialog">
|
||||||
<div class="col-md-2">
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UPModalProd" UpdateMode="Conditional">
|
||||||
<asp:DropDownList ID="DdlVer" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlVer_SelectedIndexChanged" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
<ContentTemplate>
|
||||||
<asp:ListItem Selected="True" Text="Existencias" Value="1"></asp:ListItem>
|
<div class="modal-content">
|
||||||
<asp:ListItem Text="Total" Value="2"></asp:ListItem>
|
<div class="modal-header">
|
||||||
</asp:DropDownList>
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
</div>
|
<h4 class="modal-title">
|
||||||
</div>
|
<asp:Label ID="LblTituloGrafica" runat="server" ClientIDMode="Static" Text="Almacenes"></asp:Label>
|
||||||
<br />
|
</h4>
|
||||||
<div id="chartdiv"></div>
|
</div>
|
||||||
</div>
|
<div class="modal-body">
|
||||||
<div class="modal-footer">
|
<div class="row">
|
||||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
|
<div class="col-md-2"></div>
|
||||||
</div>
|
<label class="col-md-1 truncate">Grafica:</label>
|
||||||
</div>
|
<div class="col-md-2">
|
||||||
</ContentTemplate>
|
<asp:DropDownList ID="DdlGrafica" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlGrafica_SelectedIndexChanged" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
</asp:UpdatePanel>
|
<asp:ListItem Selected="True" Text="Barras" Value="1"></asp:ListItem>
|
||||||
</div>
|
<asp:ListItem Text="Pastel" Value="2"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
</asp:Content>
|
<label class="col-md-1 truncate"> Ver:</label>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
<div class="col-md-2">
|
||||||
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
|
<asp:DropDownList ID="DdlVer" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlVer_SelectedIndexChanged" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
|
<asp:ListItem Selected="True" Text="Existencias" Value="1"></asp:ListItem>
|
||||||
<script src="https://www.amcharts.com/lib/3/pie.js"></script>
|
<asp:ListItem Text="Total" Value="2"></asp:ListItem>
|
||||||
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
|
</asp:DropDownList>
|
||||||
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
</div>
|
||||||
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
|
</div>
|
||||||
|
<br />
|
||||||
|
<div id="chartdiv"></div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/pie.js"></script>
|
||||||
|
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
|
||||||
|
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
||||||
|
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
function CargaGraficaBarras(data,title) {
|
function CargaGraficaBarras(data, title) {
|
||||||
|
|
||||||
var chart = AmCharts.makeChart("chartdiv", {
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
"type": "serial",
|
"type": "serial",
|
||||||
"theme": "light",
|
"theme": "light",
|
||||||
"dataProvider": data,
|
"dataProvider": data,
|
||||||
"startDuration": 2,
|
"startDuration": 2,
|
||||||
"valueAxes": [{
|
"valueAxes": [{
|
||||||
"position": "left",
|
"position": "left",
|
||||||
"title": title
|
"title": title
|
||||||
}],
|
}],
|
||||||
"graphs": [{
|
"graphs": [{
|
||||||
"balloonText": "[[category]]: <b>[[value]]</b>",
|
"balloonText": "[[category]]: <b>[[value]]</b>",
|
||||||
"colorField": "Color",
|
"colorField": "Color",
|
||||||
"fillAlphas": 1,
|
"fillAlphas": 1,
|
||||||
"lineAlpha": 0.1,
|
"lineAlpha": 0.1,
|
||||||
"type": "column",
|
"type": "column",
|
||||||
"valueField": "Valor"
|
"valueField": "Valor"
|
||||||
}],
|
}],
|
||||||
"depth3D": 20,
|
"depth3D": 20,
|
||||||
"angle": 30,
|
"angle": 30,
|
||||||
"chartCursor": {
|
"chartCursor": {
|
||||||
"categoryBalloonEnabled": false,
|
"categoryBalloonEnabled": false,
|
||||||
"cursorAlpha": 0,
|
"cursorAlpha": 0,
|
||||||
"zoomable": false
|
"zoomable": false
|
||||||
},
|
},
|
||||||
"categoryField": "Texto",
|
"categoryField": "Texto",
|
||||||
"categoryAxis": {
|
"categoryAxis": {
|
||||||
"gridPosition": "start",
|
"gridPosition": "start",
|
||||||
"labelRotation": 90
|
"labelRotation": 90
|
||||||
},
|
},
|
||||||
"export": {
|
"export": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function CargaGraficaPastel(data) {
|
function CargaGraficaPastel(data) {
|
||||||
|
|
||||||
var chart = AmCharts.makeChart("chartdiv", {
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
"type": "pie",
|
"type": "pie",
|
||||||
"theme": "light",
|
"theme": "light",
|
||||||
"dataProvider":
|
"dataProvider":
|
||||||
@@ -263,12 +283,12 @@
|
|||||||
"depth3D": 0,
|
"depth3D": 0,
|
||||||
"balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
|
"balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
|
||||||
"angle": 0,
|
"angle": 0,
|
||||||
"export": {
|
"export": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ Imports System.Data
|
|||||||
Imports Microsoft.Reporting.WebForms
|
Imports Microsoft.Reporting.WebForms
|
||||||
|
|
||||||
Partial Class Inventarios_RepAlmacen
|
Partial Class Inventarios_RepAlmacen
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
|
|
||||||
|
|
||||||
#Region "PROPIEDADES"
|
#Region "PROPIEDADES"
|
||||||
Private Property TmpDT As DataTable
|
Private Property TmpDT As DataTable
|
||||||
Get
|
Get
|
||||||
@@ -25,7 +25,7 @@ Partial Class Inventarios_RepAlmacen
|
|||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
ViewState("DtColor") = value
|
ViewState("DtColor") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
@@ -39,6 +39,15 @@ Partial Class Inventarios_RepAlmacen
|
|||||||
DdlTipoAlmacen.DataSource = GlobalDTTipoAlmacen(1)
|
DdlTipoAlmacen.DataSource = GlobalDTTipoAlmacen(1)
|
||||||
DdlTipoAlmacen.DataBind()
|
DdlTipoAlmacen.DataBind()
|
||||||
DdlTipoAlmacen.Items.Insert(0, New ListItem("Todos", "-1"))
|
DdlTipoAlmacen.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
|
||||||
|
DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
|
DdlAlmacen.DataBind()
|
||||||
|
DdlAlmacen.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
|
||||||
|
DdlSucursal.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, CveEstatus:=1)
|
||||||
|
DdlSucursal.DataBind()
|
||||||
|
DdlSucursal.Items.Insert(0, New ListItem("Todas", "-1"))
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
@@ -48,8 +57,11 @@ Partial Class Inventarios_RepAlmacen
|
|||||||
FechaI = If(IsDate(TxtFechaI.Text.Trim()), TxtFechaI.Text.Trim(), "-1")
|
FechaI = If(IsDate(TxtFechaI.Text.Trim()), TxtFechaI.Text.Trim(), "-1")
|
||||||
FechaF = If(IsDate(TxtFechaF.Text.Trim()), TxtFechaF.Text.Trim(), "-1")
|
FechaF = If(IsDate(TxtFechaF.Text.Trim()), TxtFechaF.Text.Trim(), "-1")
|
||||||
Dim TipoAlmacen As String = If(DdlTipoAlmacen.GetSelectedValuesM = "", "-1", DdlTipoAlmacen.GetSelectedValuesM)
|
Dim TipoAlmacen As String = If(DdlTipoAlmacen.GetSelectedValuesM = "", "-1", DdlTipoAlmacen.GetSelectedValuesM)
|
||||||
|
Dim Almacenes As String = If(DdlAlmacen.GetSelectedValuesM = "", "-1", DdlAlmacen.GetSelectedValuesM)
|
||||||
|
Dim CveSubProyecto As Integer = DdlSucursal.SelectedValue.ToEntero()
|
||||||
|
|
||||||
If objInv.GetRepAlmacenes(FechaI, FechaF, UsuarioActual.CveEmpresa, TipoAlmacen, DdlModalidadFiltro.SelectedValue.ToEntero, ChkInventariable.Checked) Then
|
If objInv.GetRepAlmacenes(FechaI, FechaF, UsuarioActual.CveEmpresa, TipoAlmacen, DdlModalidadFiltro.SelectedValue.ToEntero, ChkInventariable.Checked,
|
||||||
|
Almacenes:=Almacenes, CveSubProyecto:=CveSubProyecto) Then
|
||||||
GVAlmacen.DataSource = objInv.DtResultados
|
GVAlmacen.DataSource = objInv.DtResultados
|
||||||
TmpDT = objInv.DtResultados
|
TmpDT = objInv.DtResultados
|
||||||
End If
|
End If
|
||||||
@@ -60,8 +72,8 @@ Partial Class Inventarios_RepAlmacen
|
|||||||
Private Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
Private Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "I M P R I M I R <i class='fa fa-print'></i>"
|
#Region "I M P R I M I R <i class='fa fa-print'></i>"
|
||||||
Protected Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click
|
Protected Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click
|
||||||
|
|
||||||
@@ -98,11 +110,11 @@ Partial Class Inventarios_RepAlmacen
|
|||||||
e.Row.CssClass = "Totales"
|
e.Row.CssClass = "Totales"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "GRAFICA"
|
#Region "GRAFICA"
|
||||||
|
|
||||||
Protected Sub LnkVerGrafica_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkVerGrafica_Click(sender As Object, e As EventArgs)
|
||||||
If Not TmpDT IsNot Nothing AndAlso TmpDT.Rows.Count > 0 Then
|
If Not TmpDT IsNot Nothing AndAlso TmpDT.Rows.Count > 0 Then
|
||||||
Alert("No hay datos disponibles", TipoMensaje.MsgAdvertencia)
|
Alert("No hay datos disponibles", TipoMensaje.MsgAdvertencia)
|
||||||
@@ -227,8 +239,8 @@ Partial Class Inventarios_RepAlmacen
|
|||||||
|
|
||||||
Protected Sub DdlVer_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlVer_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
CambioGrafica()
|
CambioGrafica()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -4,4 +4,4 @@
|
|||||||
28/08/2019:05:48 p. m. No se especifico a remitente - SIG - Se Genero una Recepción de Usados con el folio: 80
|
28/08/2019:05:48 p. m. No se especifico a remitente - SIG - Se Genero una Recepción de Usados con el folio: 80
|
||||||
|
|
||||||
02/09/2019:11:00 a. m. From:'signotificaciones@adssistemas.mx' - Para:'x@x.com' - Asunto:'Entrega de Factura SUCURSAL NARANJO SN-22' - CCP: '' - Adjuntos: 1
|
02/09/2019:11:00 a. m. From:'signotificaciones@adssistemas.mx' - Para:'x@x.com' - Asunto:'Entrega de Factura SUCURSAL NARANJO SN-22' - CCP: '' - Adjuntos: 1
|
||||||
|
|
||||||
Reference in New Issue
Block a user