SeccionAlmacen en PS
This commit is contained in:
@@ -4663,6 +4663,55 @@ Public Class ClsInventarios
|
|||||||
End Try
|
End Try
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
Public Function AddProductosServiciosAlmacenSeccion(CvePS As Integer, CveAlmacen As Integer, CveAlmacenSeccion As Integer) As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
DataAdapter("PA_Inv_ProductosServiciosAlmacenSeccionAdd")
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CvePS", SqlDbType.Int).Value = CvePS
|
||||||
|
.Add("@CveAlmacen", SqlDbType.Int).Value = CveAlmacen
|
||||||
|
.Add("@CveAlmacenSeccion", SqlDbType.Int).Value = CveAlmacenSeccion
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al agregar el ps de la seccion de almacen", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function GetProductosServiciosAlmacenSeccion(CvePS As Integer, CveAlmacen As Integer, CveAlmacenSeccion As Integer) As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
DataAdapter("PA_Inv_ProductosServiciosAlmacenSeccionGet")
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CvePS", SqlDbType.Int).Value = CvePS
|
||||||
|
.Add("@CveAlmacen", SqlDbType.Int).Value = CveAlmacen
|
||||||
|
.Add("@CveAlmacenSeccion", SqlDbType.Int).Value = CveAlmacenSeccion
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener el ps de la seccion de almacen", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function RemoveProductosServiciosAlmacenSeccion(CvePSAlmacenSeccion As Integer) As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
DataAdapter("PA_Inv_ProductosServiciosAlmacenSeccionRemove")
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CvePSAlmacenSeccion", SqlDbType.Int).Value = CvePSAlmacenSeccion
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al eliminar el ps de la seccion de almacen", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|||||||
@@ -548,10 +548,12 @@
|
|||||||
<label class="col-md-4">¿Aplica IEPS?</label>
|
<label class="col-md-4">¿Aplica IEPS?</label>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<asp:CheckBox ID="ChkAplicaIeps" CssClass="" AutoPostBack="true" data-size="small" runat="server" Text=" " /></td>
|
<asp:CheckBox ID="ChkAplicaIeps" CssClass="" AutoPostBack="true" data-size="small" runat="server" Text=" " /></td>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-4">¿Graba en IVA?</label>
|
<label class="col-md-4">¿Graba en IVA?</label>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<asp:CheckBox ID="ChkIepsIVA" CssClass="" Enabled="false" data-size="small" runat="server" Text=" " /></td>
|
<asp:CheckBox ID="ChkIepsIVA" CssClass="" Enabled="false" data-size="small" runat="server" Text=" " /></td>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
@@ -715,6 +717,7 @@
|
|||||||
|
|
||||||
<div class="col-md-6" style="text-align: left">
|
<div class="col-md-6" style="text-align: left">
|
||||||
<input id="ChkSeleccionarTodos" type="checkbox" title="Seleccionar Todos" onclick="SeleccionarTodosChkGvSucursa()" />Seleccionar Todos
|
<input id="ChkSeleccionarTodos" type="checkbox" title="Seleccionar Todos" onclick="SeleccionarTodosChkGvSucursa()" />Seleccionar Todos
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6" style="text-align: right">
|
<div class="col-md-6" style="text-align: right">
|
||||||
<label>Aplicar precio minimo</label>
|
<label>Aplicar precio minimo</label>
|
||||||
@@ -932,8 +935,47 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<br />
|
||||||
|
<div class="row">
|
||||||
|
<asp:UpdatePanel ID="UpSeccionAlmacen" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="col-md-12" id="DivSeccionAlmacen" runat="server" visible="false">
|
||||||
|
<div class="portlet xspadding light bordered">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="icon-briefcase font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">Secciones de Almacen</span>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
<asp:LinkButton ID="LnkSeccionAlmacenAdd" OnClick="LnkSeccionAlmacenAdd_Click" runat="server" data-toggle="tooltip" data-placement="right" title="Agregar Seccion de Almacen" CssClass="btn btn-circle btn-default" Text="<i class='fa fa-plus'></i> Agregar"></asp:LinkButton>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body">
|
||||||
|
<asp:GridView ID="GvSeccionAlmacen" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePSAlmacenSeccion,CvePS,CveAlmacen,CveAlmacenSeccion" EmptyDataText="No se encontraron Productos/Servicios Adicionales" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField DataField="Almacen" HeaderText="Almacen" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField DataField="AlmacenSeccion" HeaderText="Sección Almacen" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Editar">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="LnkEditarSeccionAlmacen" runat="server" AlternateText="Editar" CausesValidation="False" OnClick="LnkEditarSeccionAlmacen_Click" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Eliminar">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="LnkRemoveSeccionAlmacen" runat="server" AlternateText="Eliminar" CausesValidation="False" OnClick="LnkRemoveSeccionAlmacen_Click" CssClass="btn btn-circle btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
|
|
||||||
@@ -1005,25 +1047,29 @@
|
|||||||
<th width="20%">
|
<th width="20%">
|
||||||
<asp:LinkButton ID="LbCaracteristica1" runat="server" CausesValidation="false" Text="" CommandArgument="Caracteristica1;1" OnClick="LbOrden_Click">
|
<asp:LinkButton ID="LbCaracteristica1" runat="server" CausesValidation="false" Text="" CommandArgument="Caracteristica1;1" OnClick="LbOrden_Click">
|
||||||
Característica
|
Característica
|
||||||
<asp:Literal ID="ImgCaracteristica1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
|
<asp:Literal ID="ImgCaracteristica1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
</asp:LinkButton>
|
</asp:LinkButton>
|
||||||
</th>
|
</th>
|
||||||
<th width="20%">
|
<th width="20%">
|
||||||
<asp:LinkButton ID="LbOpcion1" runat="server" CausesValidation="false" Text="" CommandArgument="Opcion1;1" OnClick="LbOrden_Click">
|
<asp:LinkButton ID="LbOpcion1" runat="server" CausesValidation="false" Text="" CommandArgument="Opcion1;1" OnClick="LbOrden_Click">
|
||||||
Opción
|
Opción
|
||||||
<asp:Literal ID="ImgOpcion1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
|
<asp:Literal ID="ImgOpcion1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
</asp:LinkButton>
|
</asp:LinkButton>
|
||||||
</th>
|
</th>
|
||||||
<th width="20%">
|
<th width="20%">
|
||||||
<asp:LinkButton ID="LbFechaIng1" runat="server" CausesValidation="false" Text="" CommandArgument="FechaIng1;1" OnClick="LbOrden_Click">
|
<asp:LinkButton ID="LbFechaIng1" runat="server" CausesValidation="false" Text="" CommandArgument="FechaIng1;1" OnClick="LbOrden_Click">
|
||||||
Fecha Ing.
|
Fecha Ing.
|
||||||
<asp:Literal ID="ImgFechaIng1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
|
<asp:Literal ID="ImgFechaIng1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
</asp:LinkButton>
|
</asp:LinkButton>
|
||||||
</th>
|
</th>
|
||||||
<th width="20%">
|
<th width="20%">
|
||||||
<asp:LinkButton ID="LbUsuario1" runat="server" CausesValidation="false" Text="" CommandArgument="Usuario1;1" OnClick="LbOrden_Click">
|
<asp:LinkButton ID="LbUsuario1" runat="server" CausesValidation="false" Text="" CommandArgument="Usuario1;1" OnClick="LbOrden_Click">
|
||||||
Usuario
|
Usuario
|
||||||
<asp:Literal ID="ImgUsuario1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
|
<asp:Literal ID="ImgUsuario1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
</asp:LinkButton>
|
</asp:LinkButton>
|
||||||
</th>
|
</th>
|
||||||
|
|
||||||
@@ -1664,6 +1710,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
El producto seleccionado en el recuadro de arriba sera unificado en el producto actual
|
El producto seleccionado en el recuadro de arriba sera unificado en el producto actual
|
||||||
|
|
||||||
<b>
|
<b>
|
||||||
<asp:Literal Text="" ID="LtProductoUnificar" runat="server" /></b>
|
<asp:Literal Text="" ID="LtProductoUnificar" runat="server" /></b>
|
||||||
</p>
|
</p>
|
||||||
@@ -1895,6 +1942,7 @@
|
|||||||
<div id="DivTipoCla" runat="server">
|
<div id="DivTipoCla" runat="server">
|
||||||
<p>
|
<p>
|
||||||
Tipo de Clasificación:
|
Tipo de Clasificación:
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<asp:RadioButtonList ID="RblTipoClasificación" runat="server" CssClass="rbl" RepeatDirection="Vertical" RepeatLayout="Table">
|
<asp:RadioButtonList ID="RblTipoClasificación" runat="server" CssClass="rbl" RepeatDirection="Vertical" RepeatLayout="Table">
|
||||||
<asp:ListItem Text="Todas" Value="-1" Selected="True"></asp:ListItem>
|
<asp:ListItem Text="Todas" Value="-1" Selected="True"></asp:ListItem>
|
||||||
@@ -1904,6 +1952,7 @@
|
|||||||
</asp:RadioButtonList>
|
</asp:RadioButtonList>
|
||||||
<asp:LinkButton ID="BtnTipoCla" OnClick="BtnTipoCla_Click" runat="server" CssClass="btn btn-success" Text="Aceptar" />
|
<asp:LinkButton ID="BtnTipoCla" OnClick="BtnTipoCla_Click" runat="server" CssClass="btn btn-success" Text="Aceptar" />
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -1972,6 +2021,45 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<%-- MODAL PS ADICIONALES --%>
|
||||||
|
<div id="DivAddSeccionAlmacen" class="modal ADS fade" role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<asp:UpdatePanel ID="UpModalSeccionAlmacen" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
<h4 class="modal-title" id="h4SccionAlmacen">Sección Almacen</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlAlmacen" Width="50%" runat="server" CssClass="form-control select2me" DataValueField="CveAlmacen" DataTextField="Almacen"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvAlmacen" runat="server" ControlToValidate="DdlAlmacen" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Almacen''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpModalSeccionAlmacen"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VceAlmacen" runat="server" HighlightCssClass="vco" TargetControlID="RfvAlmacen"></ajax:ValidatorCalloutExtender>
|
||||||
|
<label for="<%= DdlAlmacen.ClientID.ToString()%>">Almacen:</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlSeccionAlmacen" Width="50%" runat="server" CssClass="form-control select2me" DataValueField="CveSeccion" DataTextField="Seccion"></asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvSeccionAlmacen" runat="server" ControlToValidate="DdlSeccionAlmacen" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Sección Almacen''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpModalSeccionAlmacen"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VceSeccionAlmacen" runat="server" HighlightCssClass="vco" TargetControlID="RfvSeccionAlmacen"></ajax:ValidatorCalloutExtender>
|
||||||
|
<label for="<%= DdlSeccionAlmacen.ClientID.ToString()%>">Sección Almacen:</label>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer" style="display: block">
|
||||||
|
<asp:UpdatePanel ID="UpFooterSeccionAlmacen" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:Button ID="BtnAddSeccionAlmacen" runat="server" OnClick="BtnAddSeccionAlmacen_Click" CssClass="btn btn-success" Text="Agregar" ValidationGroup="GrpModalSeccionAlmacen"></asp:Button>
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<asp:Literal ID="LtlScripts" runat="server"></asp:Literal>
|
<asp:Literal ID="LtlScripts" runat="server"></asp:Literal>
|
||||||
<%-- FIN MODAL PS ADICIONALES --%>
|
<%-- FIN MODAL PS ADICIONALES --%>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -2149,8 +2237,7 @@
|
|||||||
|
|
||||||
var initcarusel2 = initcarusel;
|
var initcarusel2 = initcarusel;
|
||||||
|
|
||||||
function ADSReady()
|
function ADSReady() {
|
||||||
{
|
|
||||||
setPoscicion();
|
setPoscicion();
|
||||||
}
|
}
|
||||||
//TERMINA: ECOMMERCE
|
//TERMINA: ECOMMERCE
|
||||||
|
|||||||
@@ -97,6 +97,15 @@ Partial Class ProductosyServicios
|
|||||||
ViewState("CvePSAdicional") = value
|
ViewState("CvePSAdicional") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
Public Property DtSeccionAlmacen() As DataTable
|
||||||
|
Get
|
||||||
|
Return CType(ViewState("DtSeccionAlmacen"), DataTable)
|
||||||
|
End Get
|
||||||
|
Set(value As DataTable)
|
||||||
|
ViewState("DtSeccionAlmacen") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
@@ -137,6 +146,7 @@ Partial Class ProductosyServicios
|
|||||||
|
|
||||||
CargarAlias()
|
CargarAlias()
|
||||||
CargaExistencias()
|
CargaExistencias()
|
||||||
|
CargaGvSeccionAlmacen()
|
||||||
Else
|
Else
|
||||||
'Configuración de Modalidad Insert
|
'Configuración de Modalidad Insert
|
||||||
RegistraScript("$('#C_Tab_TabPaquetes_tab').css('display' , 'none')")
|
RegistraScript("$('#C_Tab_TabPaquetes_tab').css('display' , 'none')")
|
||||||
@@ -275,6 +285,11 @@ Partial Class ProductosyServicios
|
|||||||
CargaDdlFraccionArancelaria()
|
CargaDdlFraccionArancelaria()
|
||||||
CveSATPS = -1
|
CveSATPS = -1
|
||||||
|
|
||||||
|
CargaCombosSeccionAlmacen()
|
||||||
|
DivSeccionAlmacen.Visible = UsuarioActual.Empresa.Funcionalidad(563).ToString = "1"
|
||||||
|
|
||||||
|
CreaDtSeccionAlmacen()
|
||||||
|
|
||||||
If UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.UsaContabilidad Then
|
||||||
CargaCuentasContables()
|
CargaCuentasContables()
|
||||||
If Not (Request("CvePS") IsNot Nothing AndAlso IsNumeric(Request("CvePS")) AndAlso Request("CvePS").ToEntero > 0) Then DivUsoClasificacion.Visible = True
|
If Not (Request("CvePS") IsNot Nothing AndAlso IsNumeric(Request("CvePS")) AndAlso Request("CvePS").ToEntero > 0) Then DivUsoClasificacion.Visible = True
|
||||||
@@ -2462,4 +2477,71 @@ Partial Class ProductosyServicios
|
|||||||
DdlCategoriaToxicidad.SelectedValue = "000"
|
DdlCategoriaToxicidad.SelectedValue = "000"
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#Region "SECCION ALMACEN"
|
||||||
|
|
||||||
|
Private Sub CreaDtSeccionAlmacen()
|
||||||
|
DtSeccionAlmacen = New DataTable
|
||||||
|
DtSeccionAlmacen.Columns.Add("CvePSAlmacenSeccion", GetType(Integer))
|
||||||
|
DtSeccionAlmacen.Columns.Add("CvePS", GetType(Integer))
|
||||||
|
DtSeccionAlmacen.Columns.Add("CveAlmacen", GetType(Integer))
|
||||||
|
DtSeccionAlmacen.Columns.Add("Almacen", GetType(String))
|
||||||
|
DtSeccionAlmacen.Columns.Add("CveAlmacenSeccion", GetType(Integer))
|
||||||
|
DtSeccionAlmacen.Columns.Add("AlmacenSeccion", GetType(String))
|
||||||
|
End Sub
|
||||||
|
Private Sub CargaGvSeccionAlmacen()
|
||||||
|
Dim ObjInv As New ClsInventarios
|
||||||
|
If ObjInv.GetProductosServiciosAlmacenSeccion(CvePS, -1, -1) Then
|
||||||
|
GvSeccionAlmacen.DataSource = ObjInv.DtResultados
|
||||||
|
DtSeccionAlmacen = ObjInv.DtResultados
|
||||||
|
End If
|
||||||
|
ObjInv.Dispose()
|
||||||
|
GvSeccionAlmacen.DataBind()
|
||||||
|
UpSeccionAlmacen.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub CargaCombosSeccionAlmacen()
|
||||||
|
DdlAlmacen.DataSource = GlobalDTAlmacen(UsuarioActual.CveAlmacen)
|
||||||
|
DdlAlmacen.Items.Add(New ListItem("Seleccione", "-1"))
|
||||||
|
DdlAlmacen.DataBind()
|
||||||
|
|
||||||
|
DdlSeccionAlmacen.DataSource = GlobalDTSeccionAlmacen(UsuarioActual.CveAlmacen)
|
||||||
|
DdlSeccionAlmacen.Items.Add(New ListItem("Seleccione", "-1"))
|
||||||
|
DdlSeccionAlmacen.DataBind()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub LnkSeccionAlmacenAdd_Click(sender As Object, e As EventArgs)
|
||||||
|
DdlAlmacen.SelectedIndex = 0
|
||||||
|
DdlSeccionAlmacen.SelectedIndex = 0
|
||||||
|
RegistraScript("$('#DivAddSeccionAlmacen').modal();")
|
||||||
|
UpModalSeccionAlmacen.Update()
|
||||||
|
End Sub
|
||||||
|
Protected Sub LnkEditarSeccionAlmacen_Click(sender As Object, e As EventArgs)
|
||||||
|
Dim gvRow As GridViewRow = DirectCast((DirectCast(sender, LinkButton)).NamingContainer, GridViewRow)
|
||||||
|
DdlAlmacen.SelectedValueExist(gvRow.DataKey("CvAlmacen"))
|
||||||
|
DdlSeccionAlmacen.SelectedValueExist(gvRow.DataKey("CveAlmacenSeccion"))
|
||||||
|
RegistraScript("$('#DivAddSeccionAlmacen').modal();")
|
||||||
|
UpModalSeccionAlmacen.Update()
|
||||||
|
End Sub
|
||||||
|
Protected Sub LnkRemoveSeccionAlmacen_Click(sender As Object, e As EventArgs)
|
||||||
|
Dim gvRow As GridViewRow = DirectCast((DirectCast(sender, LinkButton)).NamingContainer, GridViewRow)
|
||||||
|
If gvRow.DataKey("CvePSAlmacenSeccion").ToEntero > 0 Then
|
||||||
|
DtSeccionAlmacen.Rows(gvRow.RowIndex)("CvePS") = -1
|
||||||
|
Else
|
||||||
|
DtSeccionAlmacen.Rows(gvRow.RowIndex.ToEntero).Delete()
|
||||||
|
End If
|
||||||
|
DtSeccionAlmacen.AcceptChanges()
|
||||||
|
GvSeccionAlmacen.DataSource = DtSeccionAlmacen
|
||||||
|
GvSeccionAlmacen.DataBind()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub BtnAddSeccionAlmacen_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
Reference in New Issue
Block a user