Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -1639,7 +1639,8 @@ Public Class ClsProductosServicios
|
|||||||
|
|
||||||
|
|
||||||
#Region "Precios Lista"
|
#Region "Precios Lista"
|
||||||
Public Function GetPSPreciosLista(CveEmpresa As Integer, CvePrecioLista As Integer, Optional CveClasificacion As Integer = -1, Optional CvePS As Integer = -1, Optional CveProveedor As Integer = -1, Optional Estado As Integer = -1, Optional CveMarca As Integer = -1) As Boolean
|
Public Function GetPSPreciosLista(CveEmpresa As Integer, CvePrecioLista As Integer, Optional CveClasificacion As Integer = -1, Optional CvePS As Integer = -1,
|
||||||
|
Optional CveProveedor As Integer = -1, Optional Estado As Integer = -1, Optional Marcas As String = "-1") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_PSPrecioListaGet")
|
DataAdapter("PA_Vta_PSPrecioListaGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1649,7 +1650,7 @@ Public Class ClsProductosServicios
|
|||||||
.Add("@CvePS", SqlDbType.Int).Value = CvePS
|
.Add("@CvePS", SqlDbType.Int).Value = CvePS
|
||||||
.Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor
|
.Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor
|
||||||
.Add("@Estado", SqlDbType.Int).Value = Estado
|
.Add("@Estado", SqlDbType.Int).Value = Estado
|
||||||
.Add("@CveMarca", SqlDbType.Int).Value = CveMarca
|
.Add("@Marcas", SqlDbType.VarChar).Value = Marcas
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
|
|||||||
@@ -905,7 +905,7 @@
|
|||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!PS.Value & " " & Fields!Obs.Value</Value>
|
<Value>=Fields!PS.Value & IIF(Fields!Obs.Value <> "",System.Environment.NewLine &"Observaciones: ","") & Fields!Obs.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontFamily>calibri</FontFamily>
|
<FontFamily>calibri</FontFamily>
|
||||||
<FontSize>8.75pt</FontSize>
|
<FontSize>8.75pt</FontSize>
|
||||||
|
|||||||
@@ -491,31 +491,31 @@
|
|||||||
<TablixBody>
|
<TablixBody>
|
||||||
<TablixColumns>
|
<TablixColumns>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>0.53032in</Width>
|
<Width>0.54014in</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>0.58129in</Width>
|
<Width>0.59111in</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>0.79377in</Width>
|
<Width>0.80359in</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>0.65422in</Width>
|
<Width>0.66404in</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>2.59092in</Width>
|
<Width>2.60074in</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>0.8212in</Width>
|
<Width>0.83102in</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>0.63048in</Width>
|
<Width>0.6403in</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>0.68106in</Width>
|
<Width>0.69088in</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>0.88308in</Width>
|
<Width>0.80447in</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
</TablixColumns>
|
</TablixColumns>
|
||||||
<TablixRows>
|
<TablixRows>
|
||||||
@@ -919,6 +919,7 @@
|
|||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="Cantidad1">
|
<Textbox Name="Cantidad1">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
<CanShrink>true</CanShrink>
|
<CanShrink>true</CanShrink>
|
||||||
<KeepTogether>true</KeepTogether>
|
<KeepTogether>true</KeepTogether>
|
||||||
<Paragraphs>
|
<Paragraphs>
|
||||||
@@ -954,6 +955,7 @@
|
|||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="UM">
|
<Textbox Name="UM">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
<CanShrink>true</CanShrink>
|
<CanShrink>true</CanShrink>
|
||||||
<KeepTogether>true</KeepTogether>
|
<KeepTogether>true</KeepTogether>
|
||||||
<Paragraphs>
|
<Paragraphs>
|
||||||
@@ -989,6 +991,7 @@
|
|||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="SATClaveProdServ">
|
<Textbox Name="SATClaveProdServ">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
<CanShrink>true</CanShrink>
|
<CanShrink>true</CanShrink>
|
||||||
<KeepTogether>true</KeepTogether>
|
<KeepTogether>true</KeepTogether>
|
||||||
<Paragraphs>
|
<Paragraphs>
|
||||||
@@ -1024,6 +1027,7 @@
|
|||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="SATClaveUM">
|
<Textbox Name="SATClaveUM">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
<CanShrink>true</CanShrink>
|
<CanShrink>true</CanShrink>
|
||||||
<KeepTogether>true</KeepTogether>
|
<KeepTogether>true</KeepTogether>
|
||||||
<Paragraphs>
|
<Paragraphs>
|
||||||
@@ -1059,6 +1063,7 @@
|
|||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="PS">
|
<Textbox Name="PS">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
<CanShrink>true</CanShrink>
|
<CanShrink>true</CanShrink>
|
||||||
<KeepTogether>true</KeepTogether>
|
<KeepTogether>true</KeepTogether>
|
||||||
<Paragraphs>
|
<Paragraphs>
|
||||||
@@ -1092,6 +1097,7 @@
|
|||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="PU1">
|
<Textbox Name="PU1">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
<CanShrink>true</CanShrink>
|
<CanShrink>true</CanShrink>
|
||||||
<KeepTogether>true</KeepTogether>
|
<KeepTogether>true</KeepTogether>
|
||||||
<Paragraphs>
|
<Paragraphs>
|
||||||
@@ -1126,6 +1132,7 @@
|
|||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="PorcentajeIVA">
|
<Textbox Name="PorcentajeIVA">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
<CanShrink>true</CanShrink>
|
<CanShrink>true</CanShrink>
|
||||||
<KeepTogether>true</KeepTogether>
|
<KeepTogether>true</KeepTogether>
|
||||||
<Paragraphs>
|
<Paragraphs>
|
||||||
@@ -1163,6 +1170,7 @@
|
|||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="Descuento1">
|
<Textbox Name="Descuento1">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
<CanShrink>true</CanShrink>
|
<CanShrink>true</CanShrink>
|
||||||
<KeepTogether>true</KeepTogether>
|
<KeepTogether>true</KeepTogether>
|
||||||
<Paragraphs>
|
<Paragraphs>
|
||||||
@@ -1200,6 +1208,7 @@
|
|||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="TiempoEntrega">
|
<Textbox Name="TiempoEntrega">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
<CanShrink>true</CanShrink>
|
<CanShrink>true</CanShrink>
|
||||||
<KeepTogether>true</KeepTogether>
|
<KeepTogether>true</KeepTogether>
|
||||||
<Paragraphs>
|
<Paragraphs>
|
||||||
@@ -1265,7 +1274,7 @@
|
|||||||
<Top>1.92778in</Top>
|
<Top>1.92778in</Top>
|
||||||
<Left>0.09836in</Left>
|
<Left>0.09836in</Left>
|
||||||
<Height>0.36206in</Height>
|
<Height>0.36206in</Height>
|
||||||
<Width>8.16634in</Width>
|
<Width>8.16633in</Width>
|
||||||
<ZIndex>1</ZIndex>
|
<ZIndex>1</ZIndex>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
|
|||||||
@@ -480,9 +480,8 @@ Partial Class RH_CatCursos
|
|||||||
Dim Correo As String = row.DataKey("Correo")
|
Dim Correo As String = row.DataKey("Correo")
|
||||||
Dim _Nombres As String = row.DataKey("Nombres")
|
Dim _Nombres As String = row.DataKey("Nombres")
|
||||||
Dim _CvePersonal As Integer = row.DataKey("CvePersonal").ToString.ToEntero
|
Dim _CvePersonal As Integer = row.DataKey("CvePersonal").ToString.ToEntero
|
||||||
|
|
||||||
Dim chkGrupo As CheckBox = row.FCCheckBox("chkGrupo")
|
Dim chkGrupo As CheckBox = row.FCCheckBox("chkGrupo")
|
||||||
Dim Contenido As String = "Buen día <br/> Estimado(a) " & _Nombres & " <br/> Por medio de la presente el departamento de recursos de esta empresa le hace la cordial invitación para asistir al curso " & Curso & " Impartido por " & Capacitador & ". Esperamos contar con su asistencia."
|
Dim Contenido As String = "Buen día <br/> Estimado(a) " & _Nombres & " <br/> Por medio de la presente, el departamento de Capital Humano de " & UsuarioActual.Empresa.Empresa & " le hace la cordial invitación para asistir al curso " & Curso & " Impartido por el capacitador " & Capacitador & ".Esperamos contar con su asistencia."
|
||||||
|
|
||||||
If CveCursoPersonal = -1 Then
|
If CveCursoPersonal = -1 Then
|
||||||
If chkGrupo.Checked = True Then
|
If chkGrupo.Checked = True Then
|
||||||
@@ -638,11 +637,17 @@ Partial Class RH_CatCursos
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Function GenerarImvitacion(_Curso As String, _Capacitador As String, _Nombres As String, _CvePersonal As Integer) As Byte()
|
Private Function GenerarImvitacion(_Curso As String, _Capacitador As String, _Nombres As String, _CvePersonal As Integer, _Fecha As String, _Ubicacion As String) As Byte()
|
||||||
|
|
||||||
|
'Darle formato a la fecha
|
||||||
|
Dim FechaAux As Date = Date.Parse(_Fecha)
|
||||||
|
Dim dia As Integer = Day(FechaAux)
|
||||||
|
Dim mes As Integer = Month(FechaAux)
|
||||||
|
Dim mesArray = New String() {"enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"}
|
||||||
|
Dim año As Integer = Year(FechaAux)
|
||||||
Dim RutaArchivo As String = UsuarioActual.Empresa.Ruta & "\Formatos\CursoInvitacion.docx"
|
Dim RutaArchivo As String = UsuarioActual.Empresa.Ruta & "\Formatos\CursoInvitacion.docx"
|
||||||
Dim RutaLogo As String = Path.Combine(UsuarioActual.Empresa.Ruta, "Logo.png")
|
Dim RutaLogo As String = Path.Combine(UsuarioActual.Empresa.Ruta, "Logo.png")
|
||||||
Dim Contenido As String = "Buen día. Estimado(a) " & _Nombres & vbLf & vbLf & vbLf & vbLf & " Por medio de la presente, el departamento de Recursos Humanos de esta " & UsuarioActual.Empresa.Empresa & " le hace la cordial invitación para asistir al curso " & _Curso & " impartido por el capacitador " & _Capacitador & "." & vbLf & vbLf & vbLf & vbLf & "Esperamos contar con su asistencia."
|
Dim Contenido As String = "Buen día. Estimado(a) " & _Nombres & vbLf & vbLf & vbLf & vbLf & " Por medio de la presente, el departamento de Recursos Humanos de esta " & UsuarioActual.Empresa.Empresa & " le hace la cordial invitación para asistir al curso " & _Curso & " impartido por el capacitador " & _Capacitador & ", el día " & dia & " de " & mesArray(mes - 1) & " de " & año & " en lugar " & _Ubicacion & "." & vbLf & vbLf & vbLf & vbLf & "Esperamos contar con su asistencia."
|
||||||
|
|
||||||
If Not File.Exists(RutaArchivo) Then
|
If Not File.Exists(RutaArchivo) Then
|
||||||
RutaArchivo = $"{Server.MapPath("~")}\Empresas\Grales\Formatos\CursoInvitacion.docx"
|
RutaArchivo = $"{Server.MapPath("~")}\Empresas\Grales\Formatos\CursoInvitacion.docx"
|
||||||
@@ -793,7 +798,7 @@ Partial Class RH_CatCursos
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Dim BytesDocumento As Byte() = GenerarImvitacion(_Curso, _Capacitador, _Nombres, _CvePersonal)
|
Dim BytesDocumento As Byte() = GenerarImvitacion(_Curso, _Capacitador, _Nombres, _CvePersonal, _Fecha, _Ubicacion)
|
||||||
MandaCorreo("Invitación a Curso " & Curso, _Correo, "", ContenidoSB.ToString, BytesDocumento)
|
MandaCorreo("Invitación a Curso " & Curso, _Correo, "", ContenidoSB.ToString, BytesDocumento)
|
||||||
|
|
||||||
Contador = Contador + 1
|
Contador = Contador + 1
|
||||||
|
|||||||
@@ -1,373 +1,377 @@
|
|||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="ActualizarPrecios.aspx.vb" Inherits="Ventas_ActualizarPrecios" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="ActualizarPrecios.aspx.vb" Inherits="Ventas_ActualizarPrecios" %>
|
||||||
|
|
||||||
<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>
|
||||||
.v-center {
|
.v-center {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
Actualizar Precios
|
Actualizar Precios
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
<li>
|
<li>
|
||||||
<asp:HyperLink ID="HlAgregarExcel" NavigateUrl="#" Visible="True" data-toggle="modal" data-target="#DivCargaExcel" runat="server"><i class='fa fa-server'></i> Importar Listado</asp:HyperLink>
|
<asp:HyperLink ID="HlAgregarExcel" NavigateUrl="#" Visible="True" data-toggle="modal" data-target="#DivCargaExcel" runat="server"><i class='fa fa-server'></i> Importar Listado</asp:HyperLink>
|
||||||
</li>
|
</li>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
<asp:UpdatePanel runat="server" ID="UpEncabezado" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="UpEncabezado" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="portlet solid grey-cascade portlet-filter" id="idnecesaria">
|
<div class="portlet solid grey-cascade portlet-filter" id="idnecesaria">
|
||||||
<div class="portlet-title portlet-filterT smalltitle">
|
<div class="portlet-title portlet-filterT smalltitle">
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" OnClick="BtnConsultar_Click" ValidationGroup="GrpConsultar" />
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" OnClick="BtnConsultar_Click" ValidationGroup="GrpConsultar" />
|
||||||
<a href="javascript:;" class="expand"></a>
|
<a href="javascript:;" class="expand"></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="titlefiltros caption ">
|
<div class="titlefiltros caption ">
|
||||||
<div class="row v-center">
|
<div class="row v-center">
|
||||||
<label class="col-md-1 v-center truncate">Precio de Lista:</label>
|
<label class="col-md-1 v-center truncate">Precio de Lista:</label>
|
||||||
<div class="col-md-1 v-center">
|
<div class="col-md-1 v-center">
|
||||||
<asp:DropDownList ID="DdlPrecioLista" runat="server" AppendDataBoundItems="true" Width="100%" CssClass="select2me" DataValueField="CvePrecioLista" DataTextField="PrecioLista"></asp:DropDownList>
|
<asp:DropDownList ID="DdlPrecioLista" runat="server" AppendDataBoundItems="true" Width="100%" CssClass="select2me" DataValueField="CvePrecioLista" DataTextField="PrecioLista"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 v-center truncate">Clasificación:</label>
|
<label class="col-md-1 v-center truncate">Clasificación:</label>
|
||||||
<div class="col-md-1 v-center">
|
<div class="col-md-1 v-center">
|
||||||
<asp:DropDownList ID="DDlClasificacion" runat="server" Width="100%" CssClass="select2me" OnSelectedIndexChanged="DDlClasificacion_SelectedIndexChanged" AutoPostBack="True" DataValueField="CveClasificacion" DataTextField="Clasificacion"></asp:DropDownList>
|
<asp:DropDownList ID="DDlClasificacion" runat="server" Width="100%" CssClass="select2me" OnSelectedIndexChanged="DDlClasificacion_SelectedIndexChanged" AutoPostBack="True" DataValueField="CveClasificacion" DataTextField="Clasificacion"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 v-center truncate">PS:</label>
|
<label class="col-md-1 v-center truncate">PS:</label>
|
||||||
<div class="col-md-2 v-center">
|
<div class="col-md-2 v-center">
|
||||||
<ADS:Dropdownlost ID="DDlPs" AutoPostBack="false" runat="server" DataTextField="PSCodigo" DataValueField="CvePS" CssClassDdl="select2me" CssStyle="width:200px;"></ADS:Dropdownlost>
|
<ADS:Dropdownlost ID="DDlPs" AutoPostBack="false" runat="server" DataTextField="PSCodigo" DataValueField="CvePS" CssClassDdl="select2me" CssStyle="width:200px;"></ADS:Dropdownlost>
|
||||||
</div>
|
</div>
|
||||||
<label id="LblMarca" runat="server" visible="false" class="col-md-1 v-center truncate">Marca:</label>
|
<label id="LblMarca" runat="server" visible="false" class="col-md-1 v-center truncate">Marca:</label>
|
||||||
<asp:DropDownList ID="DdlMarca" CssClass="form-control input-sm select2me" runat="server" Visible="false" DataTextField="Marca" DataValueField="CveMarca" Width="206px" Height="22px">
|
<div class="col-md-9">
|
||||||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListBox ID="DdlMarca" runat="server" DataTextField="Marca" DataValueField="CveMarca" data-text="Todos" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 50%; height: 50px !important;">
|
||||||
</asp:DropDownList>
|
<asp:ListItem Text="Todas" Value="-1"></asp:ListItem>
|
||||||
</div>
|
</asp:ListBox>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body" style="display: none">
|
</div>
|
||||||
<div class="row v-center">
|
</div>
|
||||||
<label class="col-md-1 v-center" id="LblProveedorCompra" runat="server" visible="false">Proveedor:</label>
|
<div class="portlet-body" >
|
||||||
<div class="col-md-1 v-center" id="DivProveedorCompra" runat="server" visible="false">
|
<div class="row v-center">
|
||||||
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlProveedor" Width="100%" data-metodo="getproveedores" runat="server" DataTextField="RazonSocial" DataValueField="CveProveedor" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
<label class="col-md-1 v-center" id="LblProveedorCompra" runat="server" visible="false">Proveedor:</label>
|
||||||
</div>
|
<div class="col-md-1 v-center" id="DivProveedorCompra" runat="server" visible="false">
|
||||||
<label class="col-md-1 v-center truncate">Estado:</label>
|
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlProveedor" Width="100%" data-metodo="getproveedores" runat="server" DataTextField="RazonSocial" DataValueField="CveProveedor" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
||||||
<div class="col-md-1 v-center">
|
</div>
|
||||||
<asp:DropDownList ID="DdlEstado" runat="server" Width="100%" CssClass="select2me">
|
<label class="col-md-1 v-center truncate">Estado:</label>
|
||||||
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
<div class="col-md-1 v-center">
|
||||||
<asp:ListItem Value="1" Selected="True">Activos</asp:ListItem>
|
<asp:DropDownList ID="DdlEstado" runat="server" Width="100%" CssClass="select2me">
|
||||||
<asp:ListItem Value="0">Incativos</asp:ListItem>
|
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
||||||
</asp:DropDownList>
|
<asp:ListItem Value="1" Selected="True">Activos</asp:ListItem>
|
||||||
</div>
|
<asp:ListItem Value="0">Incativos</asp:ListItem>
|
||||||
</div>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</div>
|
||||||
</asp:UpdatePanel>
|
</div>
|
||||||
<asp:UpdatePanel runat="server" UpdateMode="conditional" ID="UPPrecioLista">
|
</ContentTemplate>
|
||||||
<ContentTemplate>
|
</asp:UpdatePanel>
|
||||||
<div class="row">
|
<asp:UpdatePanel runat="server" UpdateMode="conditional" ID="UPPrecioLista">
|
||||||
<div class="col-md-6">
|
<ContentTemplate>
|
||||||
<div class="portlet light smmallpadding traspasorow bordered xspadding">
|
<div class="row">
|
||||||
<div class="portlet-title">
|
<div class="col-md-6">
|
||||||
<div class="caption font-green">
|
<div class="portlet light smmallpadding traspasorow bordered xspadding">
|
||||||
<i class="icon-pin font-green"></i>
|
<div class="portlet-title">
|
||||||
<span class="caption-subject bold uppercase">Actualizar Precio de Lista</span>
|
<div class="caption font-green">
|
||||||
</div>
|
<i class="icon-pin font-green"></i>
|
||||||
<div class="actions">
|
<span class="caption-subject bold uppercase">Actualizar Precio de Lista</span>
|
||||||
<div class="btn-group">
|
</div>
|
||||||
</div>
|
<div class="actions">
|
||||||
</div>
|
<div class="btn-group">
|
||||||
<div class="tools">
|
</div>
|
||||||
<a href="javascript:;" class="collapse"></a>
|
</div>
|
||||||
</div>
|
<div class="tools">
|
||||||
</div>
|
<a href="javascript:;" class="collapse"></a>
|
||||||
<div class="portlet-body rowpadding">
|
</div>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col-md-12">
|
<div class="portlet-body rowpadding">
|
||||||
<asp:RadioButtonList AutoPostBack="true" OnSelectedIndexChanged="RblTipo_SelectedIndexChanged" RepeatDirection="Horizontal" ID="RblTipo" runat="server">
|
<div class="row">
|
||||||
<asp:ListItem Selected="true" Value="Imp" Text="Importe Fijo" />
|
<div class="col-md-12">
|
||||||
<asp:ListItem Value="Por" Text="Porcentaje" />
|
<asp:RadioButtonList AutoPostBack="true" OnSelectedIndexChanged="RblTipo_SelectedIndexChanged" RepeatDirection="Horizontal" ID="RblTipo" runat="server">
|
||||||
</asp:RadioButtonList>
|
<asp:ListItem Selected="true" Value="Imp" Text="Importe Fijo" />
|
||||||
</div>
|
<asp:ListItem Value="Por" Text="Porcentaje" />
|
||||||
</div>
|
</asp:RadioButtonList>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col-md-6">
|
</div>
|
||||||
<div runat="Server" id="ImporteFijo" class="form-group form-md-line-input input-iconright" style="width: 50%">
|
<div class="row">
|
||||||
<asp:TextBox ID="TxtImporte" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
<div class="col-md-6">
|
||||||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxtImporte" FilterType="Numbers, Custom" ValidChars="." />
|
<div runat="Server" id="ImporteFijo" class="form-group form-md-line-input input-iconright" style="width: 50%">
|
||||||
<label for="<%= TxtImporte.ClientID.ToString()%>">Importe Nuevo:</label>
|
<asp:TextBox ID="TxtImporte" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
<i>$</i>
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxtImporte" FilterType="Numbers, Custom" ValidChars="." />
|
||||||
</div>
|
<label for="<%= TxtImporte.ClientID.ToString()%>">Importe Nuevo:</label>
|
||||||
</div>
|
<i>$</i>
|
||||||
<div class="col-md-1">
|
</div>
|
||||||
<a class="btn btn-default" onclick="CambiaImporte();">Aplicar Importe</a>
|
</div>
|
||||||
</div>
|
<div class="col-md-1">
|
||||||
</div>
|
<a class="btn btn-default" onclick="CambiaImporte();">Aplicar Importe</a>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col-md-6">
|
</div>
|
||||||
<div runat="Server" id="Div1" class="form-group form-md-line-input input-iconright" style="width: 50%">
|
<div class="row">
|
||||||
<asp:TextBox ID="TxtPrecio" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
<div class="col-md-6">
|
||||||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TxtPrecio" FilterType="Numbers, Custom" ValidChars="." />
|
<div runat="Server" id="Div1" class="form-group form-md-line-input input-iconright" style="width: 50%">
|
||||||
<label for="<%= TxtPrecio.ClientID.ToString()%>">Precio Min.:</label>
|
<asp:TextBox ID="TxtPrecio" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
<i>$</i>
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TxtPrecio" FilterType="Numbers, Custom" ValidChars="." />
|
||||||
</div>
|
<label for="<%= TxtPrecio.ClientID.ToString()%>">Precio Min.:</label>
|
||||||
</div>
|
<i>$</i>
|
||||||
<div class="col-md-1">
|
</div>
|
||||||
<a class="btn btn-default" onclick="CambiaPrecio();">Aplicar Precio Min.</a>
|
</div>
|
||||||
</div>
|
<div class="col-md-1">
|
||||||
</div>
|
<a class="btn btn-default" onclick="CambiaPrecio();">Aplicar Precio Min.</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright" style="width: 50%">
|
|
||||||
<asp:TextBox ID="TxtPorcentaje" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender ID="FTBSerie" runat="server" TargetControlID="TxtPorcentaje" FilterType="Numbers, Custom" ValidChars=".,-" />
|
<div class="form-group form-md-line-input input-iconright" style="width: 50%">
|
||||||
<label for="<%= TxtPorcentaje.ClientID.ToString()%>">Porcentaje Nuevo:</label>
|
<asp:TextBox ID="TxtPorcentaje" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
</div>
|
<ajax:FilteredTextBoxExtender ID="FTBSerie" runat="server" TargetControlID="TxtPorcentaje" FilterType="Numbers, Custom" ValidChars=".,-" />
|
||||||
<div class="text-right">
|
<label for="<%= TxtPorcentaje.ClientID.ToString()%>">Porcentaje Nuevo:</label>
|
||||||
<asp:LinkButton ID="BtnGuardar" runat="server" AlternateText="Actualizar" CausesValidation="True" CssClass="btn btn-primary" Text="Actualizar Seleccionadas" ValidationGroup="GrpGuardar" />
|
</div>
|
||||||
</div>
|
<div class="text-right">
|
||||||
</div>
|
<asp:LinkButton ID="BtnGuardar" runat="server" AlternateText="Actualizar" CausesValidation="True" CssClass="btn btn-primary" Text="Actualizar Seleccionadas" ValidationGroup="GrpGuardar" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</div>
|
||||||
</asp:UpdatePanel>
|
</div>
|
||||||
<asp:UpdatePanel runat="server" ID="UpDatos" UpdateMode="Conditional">
|
</ContentTemplate>
|
||||||
<ContentTemplate>
|
</asp:UpdatePanel>
|
||||||
<div runat="server" visible="false" id="dvDatos">
|
<asp:UpdatePanel runat="server" ID="UpDatos" UpdateMode="Conditional">
|
||||||
<div align="right">
|
<ContentTemplate>
|
||||||
<input type="text" id="TxtBuscar" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBuscar','{0}')", GVPrecios.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<div runat="server" visible="false" id="dvDatos">
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBuscar','{0}')", GVPrecios.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<div align="right">
|
||||||
</div>
|
<input type="text" id="TxtBuscar" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBuscar','{0}')", GVPrecios.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<asp:GridView ID="GVPrecios" runat="server" GridLines="None" DataKeyNames="CvePS, CvePrecioLista,PrecioLista,PS,Codigo,Porcentaje,CodigoPS"
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBuscar','{0}')", GVPrecios.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" AutoGenerateColumns="False" data-sort="true" EmptyDataText="No se encontraron registros" ToolTip="Listado de Nombres">
|
</div>
|
||||||
<Columns>
|
<asp:GridView ID="GVPrecios" runat="server" GridLines="None" DataKeyNames="CvePS, CvePrecioLista,PrecioLista,PS,Codigo,Porcentaje,CodigoPS"
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="5%">
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" AutoGenerateColumns="False" data-sort="true" EmptyDataText="No se encontraron registros" ToolTip="Listado de Nombres">
|
||||||
<ItemTemplate>
|
<Columns>
|
||||||
<asp:CheckBox runat="server" ID="chkPS" />
|
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="5%">
|
||||||
</ItemTemplate>
|
<ItemTemplate>
|
||||||
</asp:TemplateField>
|
<asp:CheckBox runat="server" ID="chkPS" />
|
||||||
<asp:BoundField DataField="Codigo" ItemStyle-Width="10%" HeaderText="Código" />
|
</ItemTemplate>
|
||||||
<asp:BoundField DataField="PS" ItemStyle-Width="30%" HeaderText="Producto/Servicio" />
|
</asp:TemplateField>
|
||||||
<asp:BoundField DataField="Clasificacion" ItemStyle-Width="15%" HeaderText="Clasificación" />
|
<asp:BoundField DataField="Codigo" ItemStyle-Width="10%" HeaderText="Código" />
|
||||||
<asp:BoundField DataField="PrecioLista" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Importe" DataFormatString="$ {0:N2}" ItemStyle-HorizontalAlign="right" />
|
<asp:BoundField DataField="PS" ItemStyle-Width="30%" HeaderText="Producto/Servicio" />
|
||||||
<asp:TemplateField HeaderText="">
|
<asp:BoundField DataField="Clasificacion" ItemStyle-Width="15%" HeaderText="Clasificación" />
|
||||||
<ItemTemplate>
|
<asp:BoundField DataField="PrecioLista" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Importe" DataFormatString="$ {0:N2}" ItemStyle-HorizontalAlign="right" />
|
||||||
<asp:TextBox ID="TxtPrecio" runat="server" Text='<%# Eval("PrecioLista", "{0:N2}")%>' CssClass="CssCamviaPrecio" MaxLength="39" Width="60px"></asp:TextBox>
|
<asp:TemplateField HeaderText="">
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtPrecio" FilterType="Numbers,Custom" ValidChars="." />
|
<ItemTemplate>
|
||||||
<asp:RegularExpressionValidator ID="REVTxtPrecio" runat="server" ControlToValidate="TxtPrecio" Display="None" EnableClientScript="True" ErrorMessage="El campo <b>''PrecioLista''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationGroup="GrpGuardar" ValidationExpression="^[0-9]{1,15}(?:\.[0-9]{1,4})?$" />
|
<asp:TextBox ID="TxtPrecio" runat="server" Text='<%# Eval("PrecioLista", "{0:N2}")%>' CssClass="CssCamviaPrecio" MaxLength="39" Width="60px"></asp:TextBox>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCPrecio" runat="server" HighlightCssClass="vco" TargetControlID="REVTxtPrecio" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtPrecio" FilterType="Numbers,Custom" ValidChars="." />
|
||||||
</ItemTemplate>
|
<asp:RegularExpressionValidator ID="REVTxtPrecio" runat="server" ControlToValidate="TxtPrecio" Display="None" EnableClientScript="True" ErrorMessage="El campo <b>''PrecioLista''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationGroup="GrpGuardar" ValidationExpression="^[0-9]{1,15}(?:\.[0-9]{1,4})?$" />
|
||||||
</asp:TemplateField>
|
<ajax:ValidatorCalloutExtender ID="VCPrecio" runat="server" HighlightCssClass="vco" TargetControlID="REVTxtPrecio" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
<asp:TemplateField HeaderText="Precio Mínimo" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right">
|
</ItemTemplate>
|
||||||
<ItemTemplate>
|
</asp:TemplateField>
|
||||||
<asp:LinkButton ID="LnkPrecioMinActual" OnClick="LnkPrecioMinActual_Click" runat="server" Text='<%# If(Eval("PrecioMinimo").ToString.Length = 0, "N/A", Eval("PrecioMinimo", "{0:N2}")) %>'></asp:LinkButton>
|
<asp:TemplateField HeaderText="Precio Mínimo" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right">
|
||||||
</ItemTemplate>
|
<ItemTemplate>
|
||||||
</asp:TemplateField>
|
<asp:LinkButton ID="LnkPrecioMinActual" OnClick="LnkPrecioMinActual_Click" runat="server" Text='<%# If(Eval("PrecioMinimo").ToString.Length = 0, "N/A", Eval("PrecioMinimo", "{0:N2}")) %>'></asp:LinkButton>
|
||||||
<asp:TemplateField HeaderText="">
|
</ItemTemplate>
|
||||||
<ItemTemplate>
|
</asp:TemplateField>
|
||||||
<asp:TextBox ID="TxtPrecioMinimo" runat="server" Text='<%# Eval("PrecioMinimo", "{0:N2}")%>' CssClass="CssCamviaPrecio" MaxLength="39" Width="60px"></asp:TextBox>
|
<asp:TemplateField HeaderText="">
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtPrecioMinimo" FilterType="Numbers,Custom" ValidChars="." />
|
<ItemTemplate>
|
||||||
<asp:RegularExpressionValidator ID="REVTxtPrecioMinimo" runat="server" ControlToValidate="TxtPrecioMinimo" Display="None" EnableClientScript="True" ErrorMessage="El campo <b>''PrecioLista''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationGroup="GrpGuardar" ValidationExpression="^[0-9]{1,15}(?:\.[0-9]{1,4})?$" />
|
<asp:TextBox ID="TxtPrecioMinimo" runat="server" Text='<%# Eval("PrecioMinimo", "{0:N2}")%>' CssClass="CssCamviaPrecio" MaxLength="39" Width="60px"></asp:TextBox>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCTxtPrecioMinimo" runat="server" HighlightCssClass="vco" TargetControlID="REVTxtPrecioMinimo" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtPrecioMinimo" FilterType="Numbers,Custom" ValidChars="." />
|
||||||
</ItemTemplate>
|
<asp:RegularExpressionValidator ID="REVTxtPrecioMinimo" runat="server" ControlToValidate="TxtPrecioMinimo" Display="None" EnableClientScript="True" ErrorMessage="El campo <b>''PrecioLista''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationGroup="GrpGuardar" ValidationExpression="^[0-9]{1,15}(?:\.[0-9]{1,4})?$" />
|
||||||
</asp:TemplateField>
|
<ajax:ValidatorCalloutExtender ID="VCTxtPrecioMinimo" runat="server" HighlightCssClass="vco" TargetControlID="REVTxtPrecioMinimo" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</ItemTemplate>
|
||||||
<asp:BoundField DataField="UnidadMedida" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="U.M." ItemStyle-HorizontalAlign="Center" />
|
</asp:TemplateField>
|
||||||
<asp:BoundField DataField="Moneda" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Moneda" ItemStyle-HorizontalAlign="Left" />
|
|
||||||
<asp:BoundField DataField="VentaMinima" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="E. Mínimo" ItemStyle-HorizontalAlign="right" />
|
<asp:BoundField DataField="UnidadMedida" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="U.M." ItemStyle-HorizontalAlign="Center" />
|
||||||
|
<asp:BoundField DataField="Moneda" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Moneda" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField DataField="VentaMinima" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="E. Mínimo" ItemStyle-HorizontalAlign="right" />
|
||||||
<asp:BoundField DataField="ImporteAnterior" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Importe Anterior" DataFormatString="$ {0:N2}" ItemStyle-HorizontalAlign="right" />
|
|
||||||
<asp:BoundField DataField="PrecioMinimoAnterior" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Precio Mínimo Anterior" DataFormatString="$ {0:N2}" ItemStyle-HorizontalAlign="right" />
|
|
||||||
<asp:BoundField DataField="FechaModificacion" DataFormatString="{0:dd/MM/yyyy hh:mm:ss}" ItemStyle-Width="10%" HeaderText="Fecha Modificación" />
|
<asp:BoundField DataField="ImporteAnterior" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Importe Anterior" DataFormatString="$ {0:N2}" ItemStyle-HorizontalAlign="right" />
|
||||||
<asp:BoundField DataField="UsuarioModifico" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderText="Usuario Modificó" />
|
<asp:BoundField DataField="PrecioMinimoAnterior" NullDisplayText="N/A" ItemStyle-Width="10%" HeaderText="Precio Mínimo Anterior" DataFormatString="$ {0:N2}" ItemStyle-HorizontalAlign="right" />
|
||||||
<asp:BoundField DataField="Porcentaje" NullDisplayText="N/A" ItemStyle-Width="10%" DataFormatString="%{0}" HeaderText="Porcentaje" ItemStyle-HorizontalAlign="right" />
|
<asp:BoundField DataField="FechaModificacion" DataFormatString="{0:dd/MM/yyyy hh:mm:ss}" ItemStyle-Width="10%" HeaderText="Fecha Modificación" />
|
||||||
<asp:BoundField DataField="FechaIng" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderText="Fecha Ingreso" />
|
<asp:BoundField DataField="UsuarioModifico" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderText="Usuario Modificó" />
|
||||||
<asp:BoundField DataField="Usuario" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderText="Usuario Ingresó" />
|
<asp:BoundField DataField="Porcentaje" NullDisplayText="N/A" ItemStyle-Width="10%" DataFormatString="%{0}" HeaderText="Porcentaje" ItemStyle-HorizontalAlign="right" />
|
||||||
|
<asp:BoundField DataField="FechaIng" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderText="Fecha Ingreso" />
|
||||||
</Columns>
|
<asp:BoundField DataField="Usuario" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="10%" HeaderText="Usuario Ingresó" />
|
||||||
</asp:GridView>
|
|
||||||
|
</Columns>
|
||||||
</div>
|
</asp:GridView>
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
</div>
|
||||||
<div id="ModalActualizaPrecios" class="modal ADS fade" role="dialog">
|
</ContentTemplate>
|
||||||
<div class="modal-dialog" style="width: 900px; margin: auto;">
|
</asp:UpdatePanel>
|
||||||
<div class="modal-content">
|
<div id="ModalActualizaPrecios" class="modal ADS fade" role="dialog">
|
||||||
|
<div class="modal-dialog" style="width: 900px; margin: auto;">
|
||||||
<div class="modal-header ">
|
<div class="modal-content">
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
||||||
<h4 class="modal-title">
|
<div class="modal-header ">
|
||||||
<asp:UpdatePanel ID="UpModalTitulo" runat="server" UpdateMode="Conditional">
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
<ContentTemplate>
|
<h4 class="modal-title">
|
||||||
<asp:Literal ID="LtlModalTitleUpModalTitulo" runat="server">Codigo </asp:Literal>
|
<asp:UpdatePanel ID="UpModalTitulo" runat="server" UpdateMode="Conditional">
|
||||||
</ContentTemplate>
|
<ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
<asp:Literal ID="LtlModalTitleUpModalTitulo" runat="server">Codigo </asp:Literal>
|
||||||
</h4>
|
</ContentTemplate>
|
||||||
</div>
|
</asp:UpdatePanel>
|
||||||
|
</h4>
|
||||||
<div class="modal-body">
|
</div>
|
||||||
<asp:UpdatePanel runat="server" ID="UpModalActualizaPrecios" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
<div class="modal-body">
|
||||||
<div class="col-md-12">
|
<asp:UpdatePanel runat="server" ID="UpModalActualizaPrecios" UpdateMode="Conditional">
|
||||||
<div class="col-md-3" style="text-align: left">
|
<ContentTemplate>
|
||||||
<input id="ChkSeleccionarTodos" type="checkbox" title="Seleccionar Todos" onclick="SeleccionarTodosChkGvSucursa()" /> Seleccionar Todos
|
<div class="col-md-12">
|
||||||
</div>
|
<div class="col-md-3" style="text-align: left">
|
||||||
<div class="col-md-9" style="text-align: right">
|
<input id="ChkSeleccionarTodos" type="checkbox" title="Seleccionar Todos" onclick="SeleccionarTodosChkGvSucursa()" />
|
||||||
<label>Aplicar precio mínimo</label>
|
Seleccionar Todos
|
||||||
<asp:TextBox ID="TxtAplicarPrecio" runat="server" Width="60px" MaxLength="39"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender ID="FilTxtAplicarPrecio" TargetControlID="TxtAplicarPrecio" runat="server" FilterType="Numbers,Custom" ValidChars="." InvalidChars="-+" />
|
</div>
|
||||||
<a id="lnkAplicarPrecioSucursales" runat="server" class="btn btn-default" onclick="CambiaPrecioModal();">Aplicar</a>
|
<div class="col-md-9" style="text-align: right">
|
||||||
</div>
|
<label>Aplicar precio mínimo</label>
|
||||||
</div>
|
<asp:TextBox ID="TxtAplicarPrecio" runat="server" Width="60px" MaxLength="39"></asp:TextBox>
|
||||||
<asp:GridView ID="gvSucursal" runat="server" AutoGenerateColumns="False" DataKeyNames="CveSubProyecto" EmptyDataText="No se encontraron Sucursales" ToolTip="Listado de Sucursales habilitadas para Productos o Servicios"
|
<ajax:FilteredTextBoxExtender ID="FilTxtAplicarPrecio" TargetControlID="TxtAplicarPrecio" runat="server" FilterType="Numbers,Custom" ValidChars="." InvalidChars="-+" />
|
||||||
CssClass="table table-striped table-smallpadding table-advance table-hover Widthall" OnRowDataBound="gvSucursal_RowDataBound" Style="text-align: center;" GridLines="None">
|
<a id="lnkAplicarPrecioSucursales" runat="server" class="btn btn-default" onclick="CambiaPrecioModal();">Aplicar</a>
|
||||||
<Columns>
|
</div>
|
||||||
<asp:TemplateField>
|
</div>
|
||||||
<ItemTemplate>
|
<asp:GridView ID="gvSucursal" runat="server" AutoGenerateColumns="False" DataKeyNames="CveSubProyecto" EmptyDataText="No se encontraron Sucursales" ToolTip="Listado de Sucursales habilitadas para Productos o Servicios"
|
||||||
<asp:CheckBox ID="chkSucursal" runat="server" Checked="false" CssClass="CsMCheckGvSucursal" />
|
CssClass="table table-striped table-smallpadding table-advance table-hover Widthall" OnRowDataBound="gvSucursal_RowDataBound" Style="text-align: center;" GridLines="None">
|
||||||
<asp:HiddenField ID="hdnEnBD" runat="server" Value='<%# If (IsDBNull(Eval("CvePS")),0,1) %>' />
|
<Columns>
|
||||||
</ItemTemplate>
|
<asp:TemplateField>
|
||||||
</asp:TemplateField>
|
<ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Sucursal" ItemStyle-Width="30%">
|
<asp:CheckBox ID="chkSucursal" runat="server" Checked="false" CssClass="CsMCheckGvSucursal" />
|
||||||
<ItemTemplate>
|
<asp:HiddenField ID="hdnEnBD" runat="server" Value='<%# If (IsDBNull(Eval("CvePS")),0,1) %>' />
|
||||||
<asp:Literal ID="LtlSucursal" runat="server" Text='<%# Eval("SubProyecto", "{0}") %>'></asp:Literal>
|
</ItemTemplate>
|
||||||
</ItemTemplate>
|
</asp:TemplateField>
|
||||||
<ItemStyle HorizontalAlign="Left" />
|
<asp:TemplateField HeaderText="Sucursal" ItemStyle-Width="30%">
|
||||||
</asp:TemplateField>
|
<ItemTemplate>
|
||||||
<asp:TemplateField HeaderText="Precio Mínimo">
|
<asp:Literal ID="LtlSucursal" runat="server" Text='<%# Eval("SubProyecto", "{0}") %>'></asp:Literal>
|
||||||
<ItemTemplate>
|
</ItemTemplate>
|
||||||
<asp:TextBox ID="TxtPrecioMinimo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="39" Text='<%# Eval("PrecioMinimo", "{0:N2}")%>' ValidationGroup="GrpEditGuardarO" Width="90px" CssClass="CssMCamviaPrecio"></asp:TextBox>
|
<ItemStyle HorizontalAlign="Left" />
|
||||||
<asp:RequiredFieldValidator ID="RFVTxtPrecioMinimo" runat="server" ControlToValidate="TxtPrecioMinimo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEditGuardarS"></asp:RequiredFieldValidator>
|
</asp:TemplateField>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOTxtPrecioMinimo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTxtPrecioMinimo" Width="100px"></ajax:ValidatorCalloutExtender>
|
<asp:TemplateField HeaderText="Precio Mínimo">
|
||||||
<ajax:FilteredTextBoxExtender ID="FilTxtPrecioMinimo" runat="server" TargetControlID="TxtPrecioMinimo" FilterType="Numbers,Custom" ValidChars="." InvalidChars=",-+" />
|
<ItemTemplate>
|
||||||
</ItemTemplate>
|
<asp:TextBox ID="TxtPrecioMinimo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="39" Text='<%# Eval("PrecioMinimo", "{0:N2}")%>' ValidationGroup="GrpEditGuardarO" Width="90px" CssClass="CssMCamviaPrecio"></asp:TextBox>
|
||||||
</asp:TemplateField>
|
<asp:RequiredFieldValidator ID="RFVTxtPrecioMinimo" runat="server" ControlToValidate="TxtPrecioMinimo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEditGuardarS"></asp:RequiredFieldValidator>
|
||||||
<asp:TemplateField HeaderText="Mínimo" Visible="false">
|
<ajax:ValidatorCalloutExtender ID="VCOTxtPrecioMinimo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTxtPrecioMinimo" Width="100px"></ajax:ValidatorCalloutExtender>
|
||||||
<ItemTemplate>
|
<ajax:FilteredTextBoxExtender ID="FilTxtPrecioMinimo" runat="server" TargetControlID="TxtPrecioMinimo" FilterType="Numbers,Custom" ValidChars="." InvalidChars=",-+" />
|
||||||
<asp:TextBox ID="TxtMinimo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Minimo") %>' ValidationGroup="GrpEditGuardarO" Width="100px"></asp:TextBox>
|
</ItemTemplate>
|
||||||
</ItemTemplate>
|
</asp:TemplateField>
|
||||||
</asp:TemplateField>
|
<asp:TemplateField HeaderText="Mínimo" Visible="false">
|
||||||
<asp:TemplateField HeaderText="Máximo" Visible="false">
|
<ItemTemplate>
|
||||||
<ItemTemplate>
|
<asp:TextBox ID="TxtMinimo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Minimo") %>' ValidationGroup="GrpEditGuardarO" Width="100px"></asp:TextBox>
|
||||||
<asp:TextBox ID="TxtMaximo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Maximo")%>' ValidationGroup="GrpEditGuardarO" Width="100px"></asp:TextBox>
|
</ItemTemplate>
|
||||||
</ItemTemplate>
|
</asp:TemplateField>
|
||||||
</asp:TemplateField>
|
<asp:TemplateField HeaderText="Máximo" Visible="false">
|
||||||
<asp:BoundField HeaderText="Precio Mínimo Anterior" DataField="PrecioMinimoAnterior" DataFormatString="{0:N2}" />
|
<ItemTemplate>
|
||||||
<asp:BoundField HeaderText="Usuario Modificó" DataField="Usuario" />
|
<asp:TextBox ID="TxtMaximo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Maximo")%>' ValidationGroup="GrpEditGuardarO" Width="100px"></asp:TextBox>
|
||||||
<asp:BoundField HeaderText="Fecha Modificación" DataField="FechaModificacion" DataFormatString="{0:dd/MM/yyyy hh:mm:ss}" />
|
</ItemTemplate>
|
||||||
</Columns>
|
</asp:TemplateField>
|
||||||
<RowStyle CssClass="Texto" />
|
<asp:BoundField HeaderText="Precio Mínimo Anterior" DataField="PrecioMinimoAnterior" DataFormatString="{0:N2}" />
|
||||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
<asp:BoundField HeaderText="Usuario Modificó" DataField="Usuario" />
|
||||||
</asp:GridView>
|
<asp:BoundField HeaderText="Fecha Modificación" DataField="FechaModificacion" DataFormatString="{0:dd/MM/yyyy hh:mm:ss}" />
|
||||||
|
</Columns>
|
||||||
|
<RowStyle CssClass="Texto" />
|
||||||
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||||
</ContentTemplate>
|
</asp:GridView>
|
||||||
</asp:UpdatePanel>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<asp:UpdatePanel runat="server" ID="UpModalBotonesCodigos" UpdateMode="Conditional">
|
</ContentTemplate>
|
||||||
<ContentTemplate>
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
<asp:LinkButton ID="LnkModalGuardarPreciosMinimos" runat="server" Text="Guardar" CssClass="btn btn-primary" OnClick="LnkModalGuardarPreciosMinimos_Click"></asp:LinkButton>
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
<asp:UpdatePanel runat="server" ID="UpModalBotonesCodigos" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
</ContentTemplate>
|
|
||||||
|
<asp:LinkButton ID="LnkModalGuardarPreciosMinimos" runat="server" Text="Guardar" CssClass="btn btn-primary" OnClick="LnkModalGuardarPreciosMinimos_Click"></asp:LinkButton>
|
||||||
</asp:UpdatePanel>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||||||
</div>
|
|
||||||
</div>
|
</ContentTemplate>
|
||||||
</div>
|
|
||||||
</div>
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
<%--CARGA EXCEL--%>
|
</div>
|
||||||
<div id="DivCargaExcel" class="modal ADS fade" role="dialog">
|
</div>
|
||||||
<div class="modal-dialog">
|
</div>
|
||||||
<!-- Modal content-->
|
|
||||||
<div class="modal-content">
|
<%--CARGA EXCEL--%>
|
||||||
<div class="modal-header ">
|
<div id="DivCargaExcel" class="modal ADS fade" role="dialog">
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
<div class="modal-dialog">
|
||||||
<h4 class="modal-title">Agregar Excel</h4>
|
<!-- Modal content-->
|
||||||
</div>
|
<div class="modal-content">
|
||||||
<div class="modal-body">
|
<div class="modal-header ">
|
||||||
<div class="row v-center">
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
<div class="col-md-6 v-center">
|
<h4 class="modal-title">Agregar Excel</h4>
|
||||||
<label class="col-md-6 v-center truncate">Precio de Lista:</label>
|
</div>
|
||||||
<div class="col-md-6 v-center">
|
<div class="modal-body">
|
||||||
<asp:DropDownList ID="DdlPrecioListaCarga" runat="server" AppendDataBoundItems="true" Width="100%" CssClass="select2me" DataValueField="CvePrecioLista" DataTextField="PrecioLista"></asp:DropDownList>
|
<div class="row v-center">
|
||||||
<asp:RequiredFieldValidator ID="RFVPrecioListaCarga" runat="server" ControlToValidate="DdlPrecioListaCarga" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Precio Lista''</b> es necesario, por favor selecionarlo." ValidationGroup="GrpCargarExcel"></asp:RequiredFieldValidator>
|
<div class="col-md-6 v-center">
|
||||||
<ajax:ValidatorCalloutExtender ID="VCEPrecioListaCarga" runat="server" HighlightCssClass="vco" TargetControlID="RFVPrecioListaCarga" Width="300px"></ajax:ValidatorCalloutExtender>
|
<label class="col-md-6 v-center truncate">Precio de Lista:</label>
|
||||||
</div>
|
<div class="col-md-6 v-center">
|
||||||
</div>
|
<asp:DropDownList ID="DdlPrecioListaCarga" runat="server" AppendDataBoundItems="true" Width="100%" CssClass="select2me" DataValueField="CvePrecioLista" DataTextField="PrecioLista"></asp:DropDownList>
|
||||||
</div>
|
<asp:RequiredFieldValidator ID="RFVPrecioListaCarga" runat="server" ControlToValidate="DdlPrecioListaCarga" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Precio Lista''</b> es necesario, por favor selecionarlo." ValidationGroup="GrpCargarExcel"></asp:RequiredFieldValidator>
|
||||||
<div class="row">
|
<ajax:ValidatorCalloutExtender ID="VCEPrecioListaCarga" runat="server" HighlightCssClass="vco" TargetControlID="RFVPrecioListaCarga" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
<div class="col-md-12">
|
</div>
|
||||||
<h3>Arraste o haga click para subir el archivo Excel</h3>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="row">
|
<div class="col-md-12">
|
||||||
<div class="col-md-11" style="margin-left: 30px; margin-right: 30px;">
|
<h3>Arraste o haga click para subir el archivo Excel</h3>
|
||||||
<asp:TextBox ID="TxtExcel" CssClass="ADSdropzone hidden" Text="" data-maxFile="1" runat="server"></asp:TextBox>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
</div>
|
<div class="col-md-11" style="margin-left: 30px; margin-right: 30px;">
|
||||||
<div class="modal-footer">
|
<asp:TextBox ID="TxtExcel" CssClass="ADSdropzone hidden" Text="" data-maxFile="1" runat="server"></asp:TextBox>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col-md-2" style="text-align: left">
|
</div>
|
||||||
<asp:UpdatePanel ID="UpDescargar" runat="server" UpdateMode="Conditional">
|
</div>
|
||||||
<ContentTemplate>
|
<div class="modal-footer">
|
||||||
<asp:Button ID="BtnDescargarFormato" runat="server" CssClass="btn btn-warning" Text="Descargar Formato" />
|
<div class="row">
|
||||||
</ContentTemplate>
|
<div class="col-md-2" style="text-align: left">
|
||||||
<Triggers>
|
<asp:UpdatePanel ID="UpDescargar" runat="server" UpdateMode="Conditional">
|
||||||
<asp:PostBackTrigger ControlID="BtnDescargarFormato" />
|
<ContentTemplate>
|
||||||
</Triggers>
|
<asp:Button ID="BtnDescargarFormato" runat="server" CssClass="btn btn-warning" Text="Descargar Formato" />
|
||||||
</asp:UpdatePanel>
|
</ContentTemplate>
|
||||||
</div>
|
<Triggers>
|
||||||
<div class="col-md-10" style="text-align: right">
|
<asp:PostBackTrigger ControlID="BtnDescargarFormato" />
|
||||||
<asp:Button ID="BtnCargaExcel" runat="server" CssClass="btn btn-success" Text="Aceptar" ValidationGroup="GrpCargarExcel"></asp:Button>
|
</Triggers>
|
||||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-md-10" style="text-align: right">
|
||||||
</div>
|
<asp:Button ID="BtnCargaExcel" runat="server" CssClass="btn btn-success" Text="Aceptar" ValidationGroup="GrpCargarExcel"></asp:Button>
|
||||||
</div>
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</asp:Content>
|
</div>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
function CambiaImporte() {
|
function CambiaImporte() {
|
||||||
var topLevelElem = document.getElementById("form1");
|
var topLevelElem = document.getElementById("form1");
|
||||||
var checks = topLevelElem.getElementsByTagName("input");
|
var checks = topLevelElem.getElementsByTagName("input");
|
||||||
var idd = '';
|
var idd = '';
|
||||||
|
|
||||||
var valor = $('#<%= TxtImporte.ClientID %>').val();
|
var valor = $('#<%= TxtImporte.ClientID %>').val();
|
||||||
|
|
||||||
for (var i = 0; i < checks.length; i++) {
|
for (var i = 0; i < checks.length; i++) {
|
||||||
if (checks[i].type == "checkbox") {
|
if (checks[i].type == "checkbox") {
|
||||||
debugger;
|
debugger;
|
||||||
|
|
||||||
if (checks[i].checked) {
|
if (checks[i].checked) {
|
||||||
idd = checks[i].id.replace('C_GVPrecios_chkPS_', '')
|
idd = checks[i].id.replace('C_GVPrecios_chkPS_', '')
|
||||||
if ($get('C_GVPrecios_TxtPrecio_' + idd) != null) {
|
if ($get('C_GVPrecios_TxtPrecio_' + idd) != null) {
|
||||||
$get('C_GVPrecios_TxtPrecio_' + idd).value = FormatoNumero(ToDouble(valor), 2);
|
$get('C_GVPrecios_TxtPrecio_' + idd).value = FormatoNumero(ToDouble(valor), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function CambiaPrecio() {
|
function CambiaPrecio() {
|
||||||
var topLevelElem = document.getElementById("form1");
|
var topLevelElem = document.getElementById("form1");
|
||||||
var checks = topLevelElem.getElementsByTagName("input");
|
var checks = topLevelElem.getElementsByTagName("input");
|
||||||
var idd = '';
|
var idd = '';
|
||||||
@@ -378,42 +382,42 @@
|
|||||||
// $('.CssCamviaPrecio').val(valor);
|
// $('.CssCamviaPrecio').val(valor);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
for (var i = 0; i < checks.length; i++) {
|
for (var i = 0; i < checks.length; i++) {
|
||||||
if (checks[i].type == "checkbox") {
|
if (checks[i].type == "checkbox") {
|
||||||
debugger;
|
debugger;
|
||||||
|
|
||||||
if (checks[i].checked) {
|
if (checks[i].checked) {
|
||||||
idd = checks[i].id.replace('C_GVPrecios_chkPS_', '')
|
idd = checks[i].id.replace('C_GVPrecios_chkPS_', '')
|
||||||
if ($get('C_GVPrecios_TxtPrecioMinimo_' + idd) != null) {
|
if ($get('C_GVPrecios_TxtPrecioMinimo_' + idd) != null) {
|
||||||
$get('C_GVPrecios_TxtPrecioMinimo_' + idd).value = FormatoNumero(ToDouble(valor), 2);
|
$get('C_GVPrecios_TxtPrecioMinimo_' + idd).value = FormatoNumero(ToDouble(valor), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function CambiaPrecioModal() {
|
function CambiaPrecioModal() {
|
||||||
|
|
||||||
var ChecksGv = $('.CsMCheckGvSucursal').find('input[type=checkbox]');
|
var ChecksGv = $('.CsMCheckGvSucursal').find('input[type=checkbox]');
|
||||||
|
|
||||||
var valor = $('#<%= TxtAplicarPrecio.ClientID %>').val();
|
var valor = $('#<%= TxtAplicarPrecio.ClientID %>').val();
|
||||||
if (!isNaN(valor) && valor.length > 0) {
|
if (!isNaN(valor) && valor.length > 0) {
|
||||||
$(".CssMCamviaPrecio").each(function (index) {
|
$(".CssMCamviaPrecio").each(function (index) {
|
||||||
if ($($(ChecksGv).get(index)).attr('checked')) {
|
if ($($(ChecksGv).get(index)).attr('checked')) {
|
||||||
|
|
||||||
$(this).val(valor);
|
$(this).val(valor);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function SeleccionarTodosChkGvSucursa() {
|
function SeleccionarTodosChkGvSucursa() {
|
||||||
if ($('#ChkSeleccionarTodos').attr('checked')) {
|
if ($('#ChkSeleccionarTodos').attr('checked')) {
|
||||||
$('.CsMCheckGvSucursal').find('input[type=checkbox]').prop('checked', true);
|
$('.CsMCheckGvSucursal').find('input[type=checkbox]').prop('checked', true);
|
||||||
} else {
|
} else {
|
||||||
$('.CsMCheckGvSucursal').find('input[type=checkbox]').prop('checked', false);
|
$('.CsMCheckGvSucursal').find('input[type=checkbox]').prop('checked', false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function FncSeleccionaChk(chk) {
|
function FncSeleccionaChk(chk) {
|
||||||
chk.checked = true;
|
chk.checked = true;
|
||||||
@@ -421,6 +425,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ Partial Class Ventas_ActualizarPrecios
|
|||||||
If UsuarioActual.Empresa.Funcionalidad(130) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(130) = "1" Then
|
||||||
Dim ObjMarcas As New ClsProductosServicios
|
Dim ObjMarcas As New ClsProductosServicios
|
||||||
If ObjMarcas.GetMarcas(UsuarioActual.CveEmpresa) Then
|
If ObjMarcas.GetMarcas(UsuarioActual.CveEmpresa) Then
|
||||||
DdlMarca.DataSource = ObjMarcas.DtResultados
|
DdlMarca.DataSource = ObjMarcas.DtResultados.Copy
|
||||||
End If
|
End If
|
||||||
ObjMarcas.Dispose()
|
ObjMarcas.Dispose()
|
||||||
DdlMarca.DataBind()
|
DdlMarca.DataBind()
|
||||||
@@ -145,6 +145,7 @@ Partial Class Ventas_ActualizarPrecios
|
|||||||
Dim objPS As New ClsProductosServicios
|
Dim objPS As New ClsProductosServicios
|
||||||
Dim CveProveedor As Integer = -1
|
Dim CveProveedor As Integer = -1
|
||||||
Dim CvePS As Integer = -1
|
Dim CvePS As Integer = -1
|
||||||
|
Dim Marcas As String = If(DdlMarca.GetSelectedValuesM = "", "-1", DdlMarca.GetSelectedValuesM)
|
||||||
|
|
||||||
If DDlPs.SelectedValue.ToEntero > 0 Then
|
If DDlPs.SelectedValue.ToEntero > 0 Then
|
||||||
CvePS = DDlPs.SelectedValue.ToEntero
|
CvePS = DDlPs.SelectedValue.ToEntero
|
||||||
@@ -155,7 +156,7 @@ Partial Class Ventas_ActualizarPrecios
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If objPS.GetPSPreciosLista(UsuarioActual.CveEmpresa, DdlPrecioLista.SelectedValue.ToEntero, DDlClasificacion.SelectedValue.ToEntero, CvePS,
|
If objPS.GetPSPreciosLista(UsuarioActual.CveEmpresa, DdlPrecioLista.SelectedValue.ToEntero, DDlClasificacion.SelectedValue.ToEntero, CvePS,
|
||||||
CveProveedor:=CveProveedor, Estado:=DdlEstado.SelectedValue.ToEntero, CveMarca:=DdlMarca.SelectedValue.ToEntero()) Then
|
CveProveedor:=CveProveedor, Estado:=DdlEstado.SelectedValue.ToEntero, Marcas:=Marcas) Then
|
||||||
GVPrecios.DataSource = objPS.DtResultados
|
GVPrecios.DataSource = objPS.DtResultados
|
||||||
End If
|
End If
|
||||||
objPS.Dispose()
|
objPS.Dispose()
|
||||||
|
|||||||
@@ -376,7 +376,7 @@ Partial Class RepVentaDetalle
|
|||||||
Private Sub CargaEstatus()
|
Private Sub CargaEstatus()
|
||||||
DdlEstatus.Items.Clear()
|
DdlEstatus.Items.Clear()
|
||||||
If DdlTipoComprobante.GetSelectedText <> "" Then
|
If DdlTipoComprobante.GetSelectedText <> "" Then
|
||||||
DdlEstatus.DataSource = GlobalDTEstatusFactura.FiltraParametros(String.Format("TipoDocto IN ({0})", DdlTipoComprobante.GetSelectedValuesM(True)))
|
DdlEstatus.DataSource = GlobalDTEstatusFactura.FiltraParametros(String.Format("TipoDocto IN ({0})", DdlTipoComprobante.GetSelectedValuesM(True).Replace("Ant", "Ing")))
|
||||||
Else
|
Else
|
||||||
DdlEstatus.DataSource = GlobalDTEstatusFactura
|
DdlEstatus.DataSource = GlobalDTEstatusFactura
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user