-
This commit is contained in:
@@ -250,10 +250,10 @@
|
|||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright" style="width: 170px!important">
|
<div class="form-group form-md-line-input input-iconright" style="width: 170px!important">
|
||||||
|
<asp:Label runat="server" ID="lblSubProyecto" for="<%= DdlSubProyectos.ClientID.ToString()%>">SubProyecto:</asp:Label>
|
||||||
<asp:DropDownList ID="DdlSubProyectos" runat="server" CssClass="form-control input-sm select2me" DataValueField="CveSubProyecto" DataTextField="SubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm" Width="200px" AutoPostBack="true"></asp:DropDownList>
|
<asp:DropDownList ID="DdlSubProyectos" runat="server" CssClass="form-control input-sm select2me" DataValueField="CveSubProyecto" DataTextField="SubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm" Width="200px" AutoPostBack="true"></asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVProducto2" InitialValue="-1" runat="server" ControlToValidate="DdlSubProyectos" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubProyecto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpFolioGarantia"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVProducto2" InitialValue="-1" runat="server" ControlToValidate="DdlSubProyectos" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubProyecto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpFolioGarantia"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCEProducto2" runat="server" HighlightCssClass="vco" TargetControlID="RFVProducto2" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCEProducto2" runat="server" HighlightCssClass="vco" TargetControlID="RFVProducto2" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
<label for="<%= DdlSubProyectos.ClientID.ToString()%>">SubProyecto:</label>
|
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ Partial Class Acumuladores_CatFoliosGarantia
|
|||||||
|
|
||||||
#Region "Folios Garantía"
|
#Region "Folios Garantía"
|
||||||
Private Sub CargaSubProyectos()
|
Private Sub CargaSubProyectos()
|
||||||
|
CargarCentrosDeCosto(Nothing, DdlSubProyectos, Nothing, lblSubProyecto)
|
||||||
DdlSubProyectos.Items.Clear()
|
DdlSubProyectos.Items.Clear()
|
||||||
DdlSubProyectos.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
|
DdlSubProyectos.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
|
||||||
DdlSubProyectos.DataBind()
|
DdlSubProyectos.DataBind()
|
||||||
|
|||||||
@@ -891,8 +891,8 @@
|
|||||||
<th id="ThCantidadFacturada" runat="server" visible="false">Cantidad<br />
|
<th id="ThCantidadFacturada" runat="server" visible="false">Cantidad<br />
|
||||||
Facturada</th>
|
Facturada</th>
|
||||||
<th id="ThProyecto" runat="server">
|
<th id="ThProyecto" runat="server">
|
||||||
<asp:Label runat="server" ID="LblProyectoHeader" Text="Proyecto" /><br />
|
<asp:Label runat="server" ID="LblProyectoHeader" Text="" /><br />
|
||||||
<asp:Label runat="server" ID="LblSubProyecto" Text="SubProyecto" /></th>
|
<asp:Label runat="server" ID="LblSubProyecto" Text="" /></th>
|
||||||
<th>P.U. <asp:LinkButton ID="ImgDescPU" runat="server" Text="<i class='fa fa-comment-o'></i>" Style="cursor: pointer;" AlternateText="Agregar Descuento" /></th>
|
<th>P.U. <asp:LinkButton ID="ImgDescPU" runat="server" Text="<i class='fa fa-comment-o'></i>" Style="cursor: pointer;" AlternateText="Agregar Descuento" /></th>
|
||||||
<th id="thEncDesc1" runat="server" visible="true">Desc
|
<th id="thEncDesc1" runat="server" visible="true">Desc
|
||||||
</th>
|
</th>
|
||||||
@@ -5345,16 +5345,16 @@
|
|||||||
<asp:UpdatePanel ID="UPPProyecto" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPPProyecto" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="form-group form-md-line-input input-iconright" id="divProyectoPyME" runat="server">
|
<div class="form-group form-md-line-input input-iconright" id="divProyectoPyME" runat="server">
|
||||||
|
<asp:Label id="LblProyectoPyME" runat="server" for="<%= DdlProyectoPyME.ClientID.ToString()%>">Proyecto:</asp:Label>
|
||||||
<asp:DropDownList ID="DdlProyectoPyME" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto" Width="50%">
|
<asp:DropDownList ID="DdlProyectoPyME" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto" Width="50%">
|
||||||
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<label id="LblProyectoPyME" runat="server" for="<%= DdlProyectoPyME.ClientID.ToString()%>">Proyecto:</label>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:Label id="LblSubProyectoPyME" runat="server" for="<%= DdlSubProyectoPyME.ClientID.ToString()%>">SubProyecto:</asp:Label>
|
||||||
<asp:DropDownList ID="DdlSubProyectoPyME" CssClass="form-control input-sm select2me" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="50%">
|
<asp:DropDownList ID="DdlSubProyectoPyME" CssClass="form-control input-sm select2me" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="50%">
|
||||||
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<label id="LblSubProyectoPyME" runat="server" for="<%= DdlSubProyectoPyME.ClientID.ToString()%>">SubProyecto:</label>
|
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|||||||
@@ -1948,7 +1948,7 @@ Partial Class Ventas
|
|||||||
CreaDTmpF()
|
CreaDTmpF()
|
||||||
CreaDTDocumentosRelacionados()
|
CreaDTDocumentosRelacionados()
|
||||||
CargaDdlSubProyectos()
|
CargaDdlSubProyectos()
|
||||||
CargaProyecto()
|
'CargaProyecto()
|
||||||
CargaSucursales()
|
CargaSucursales()
|
||||||
|
|
||||||
CargaClasificaciones()
|
CargaClasificaciones()
|
||||||
@@ -2455,10 +2455,10 @@ Partial Class Ventas
|
|||||||
'DdlProyecto.Visible = False
|
'DdlProyecto.Visible = False
|
||||||
BrSubProyecto.Visible = False
|
BrSubProyecto.Visible = False
|
||||||
DdlProyectoPyME.Visible = False
|
DdlProyectoPyME.Visible = False
|
||||||
LblProyectoHeader.Text = "Sucursal"
|
' LblProyectoHeader.Text = "Sucursal"
|
||||||
LblSubProyecto.Text = ""
|
LblSubProyecto.Text = ""
|
||||||
divProyectoPyME.Visible = False
|
divProyectoPyME.Visible = False
|
||||||
LblSubProyectoPyME.InnerText = "Sucursal"
|
'LblSubProyectoPyME.InnerText = "Sucursal"
|
||||||
Dim dttSub As New DataTable
|
Dim dttSub As New DataTable
|
||||||
dttSub = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
|
dttSub = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
|
||||||
|
|
||||||
@@ -2479,37 +2479,38 @@ Partial Class Ventas
|
|||||||
'DdlProyecto.Visible = False
|
'DdlProyecto.Visible = False
|
||||||
BrSubProyecto.Visible = False
|
BrSubProyecto.Visible = False
|
||||||
DdlProyectoPyME.Visible = False
|
DdlProyectoPyME.Visible = False
|
||||||
LblProyectoHeader.Text = "Proyecto"
|
'LblProyectoHeader.Text = "Proyecto"
|
||||||
LblSubProyecto.Text = ""
|
LblSubProyecto.Text = ""
|
||||||
divProyectoPyME.Visible = False
|
divProyectoPyME.Visible = False
|
||||||
LblSubProyectoPyME.InnerText = "Proyecto"
|
'LblSubProyectoPyME.InnerText = "Proyecto"
|
||||||
Dim dttSub As New DataTable
|
'Dim dttSub As New DataTable
|
||||||
dttSub = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
|
'dttSub = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1)
|
||||||
|
|
||||||
DdlSubProyecto.Items.Clear()
|
'DdlSubProyecto.Items.Clear()
|
||||||
DdlSubProyecto.DataSource = dttSub
|
'DdlSubProyecto.DataSource = dttSub
|
||||||
'DdlSubProyecto.DataSource = GlobalDTSubProyectos(-1, CveEmpresa:=UsuarioActual.CveEmpresa).FiltraParametros("", "", {"CveSubProyecto", "SubProyecto"})
|
''DdlSubProyecto.DataSource = GlobalDTSubProyectos(-1, CveEmpresa:=UsuarioActual.CveEmpresa).FiltraParametros("", "", {"CveSubProyecto", "SubProyecto"})
|
||||||
DdlSubProyecto.DataBind()
|
'DdlSubProyecto.DataBind()
|
||||||
DdlSubProyecto.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
'DdlSubProyecto.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|
||||||
DdlSubProyectoPyME.Items.Clear()
|
'DdlSubProyectoPyME.Items.Clear()
|
||||||
DdlSubProyectoPyME.DataSource = dttSub
|
'DdlSubProyectoPyME.DataSource = dttSub
|
||||||
'DdlSubProyectoPyME.DataSource = GlobalDTSubProyectos(-1, CveEmpresa:=UsuarioActual.CveEmpresa).FiltraParametros("", "", {"CveSubProyecto", "SubProyecto"})
|
''DdlSubProyectoPyME.DataSource = GlobalDTSubProyectos(-1, CveEmpresa:=UsuarioActual.CveEmpresa).FiltraParametros("", "", {"CveSubProyecto", "SubProyecto"})
|
||||||
DdlSubProyectoPyME.DataBind()
|
'DdlSubProyectoPyME.DataBind()
|
||||||
DdlSubProyectoPyME.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
'DdlSubProyectoPyME.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
dttSub.Dispose()
|
'dttSub.Dispose()
|
||||||
|
|
||||||
ElseIf UsuarioActual.Empresa.Tipo_CentroCosto = 4 Then
|
'ElseIf UsuarioActual.Empresa.Tipo_CentroCosto = 4 Then
|
||||||
LblProyectoHeader.Text = "Sucursal"
|
' LblProyectoHeader.Text = "Sucursal"
|
||||||
LblSubProyecto.Text = "Proyecto"
|
' LblSubProyecto.Text = "Proyecto"
|
||||||
|
|
||||||
ElseIf UsuarioActual.Empresa.Tipo_CentroCosto = 5 Then
|
'ElseIf UsuarioActual.Empresa.Tipo_CentroCosto = 5 Then
|
||||||
LblProyectoHeader.Text = "Proyecto"
|
' LblProyectoHeader.Text = "Proyecto"
|
||||||
LblSubProyecto.Text = "Sucursal"
|
' LblSubProyecto.Text = "Sucursal"
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
CargarCentrosDeCosto(Nothing, Nothing, LblProyectoHeader, LblSubProyecto)
|
CargarCentrosDeCosto(DdlProyecto, DdlSubProyecto, LblProyectoHeader, LblSubProyecto)
|
||||||
|
CargarCentrosDeCosto(DdlProyectoPyME, DdlSubProyectoPyME, LblProyectoPyME, LblSubProyectoPyME)
|
||||||
|
|
||||||
'MOSTRAR LA OPCION DE AGREGAR PS EN BDH
|
'MOSTRAR LA OPCION DE AGREGAR PS EN BDH
|
||||||
If UsuarioActual.CveEmpresa = 140 AndAlso CveVenta <= 0 Then
|
If UsuarioActual.CveEmpresa = 140 AndAlso CveVenta <= 0 Then
|
||||||
|
|||||||
Reference in New Issue
Block a user