Files
SIG/OC/RepCotizaciones.aspx
JORGE LUIS CAUDILLO ESPARZA c35cf91883 Commit inicial Ventas Productivo
2019-08-14 16:40:54 -07:00

231 lines
16 KiB
Plaintext

<%@ Page Title="SIG - Cotizaciones" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepCotizaciones.aspx.vb" Inherits="RepCotizaciones" %>
<%--<%@ MasterType VirtualPath="~/Metronic.master" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
Cotizaciones
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
<asp:UpdatePanel ID="UPOC" runat="server">
<ContentTemplate>
<table width="500px">
<tr style="height: 22px">
<td style="width: 130px">Folio Requisición:</td>
<td style="width: 70px">
<asp:TextBox ID="TxtFolio" runat="server" Width="70px"></asp:TextBox></td>
<td style="width: 70px">
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" /></td>
<td style="width: 270px">&nbsp;</td>
</tr>
<tr>
<td colspan="4">
<div runat="server" visible="false" id="divOC" style="width: 830px">
<fieldset>
<legend><b>Datos Requisición:</b></legend>
<table width="100%">
<tr style="height: 22px">
<td style="width: 90px">Folio:
</td>
<td style="width: 300px">
<asp:Label ID="LblFolio" runat="server" Text="" CssClass="rep_bold"></asp:Label>
</td>
<td></td>
<td></td>
</tr>
<tr style="height: 22px">
<td style="width: 90px">Empresa:
</td>
<td style="width: 300px">
<asp:Label ID="LblEmpresa" runat="server" Text="" CssClass="rep_bold"></asp:Label>
</td>
<td style="width: 90px">Estatus:
</td>
<td>
<asp:Label ID="LblEstatus" runat="server" Text="" CssClass="rep_bold"></asp:Label>
</td>
</tr>
<tr style="height: 22px">
<td>Proyecto:
</td>
<td>
<asp:Label ID="LblProyecto" runat="server" Text="" CssClass="rep_bold"></asp:Label>
</td>
<td>SubProyecto:
</td>
<td>
<asp:Label ID="LblSubProyecto" runat="server" Text="" CssClass="rep_bold"></asp:Label>
</td>
</tr>
<tr style="height: 20px">
<td>Descripción:
</td>
<td colspan="3">
<asp:Label ID="LblDescrip" runat="server" Width="450px" CssClass="rep_bold"></asp:Label>
</td>
</tr>
<tr style="height: 20px">
<td>Justificación:
</td>
<td colspan="3">
<asp:TextBox ID="TxtJustificacion" runat="server" Width="450px" TextMode="MultiLine"
ReadOnly="true" Rows="5"></asp:TextBox>
</td>
</tr>
</table>
</fieldset>
</div>
</td>
</tr>
<tr>
<td colspan="4" align="right">
<asp:HyperLink ID="HplAgregar" CssClass="Texto thickbox" runat="server" Text="Agregar Cotizacion" Style="cursor: pointer;" ToolTip="Agregar Cotizacion" Visible="False">Agregar Cotización</asp:HyperLink>
</td>
</tr>
<tr>
<td colspan="4">
<asp:GridView ID="GvD" runat="server" AutoGenerateColumns="False" DataKeyNames="CveOrdenCompra,CveOrdenCompraDetalle"
ClientIDMode="Static" ShowHeader="True" CellPadding="2"
CellSpacing="2" ssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
<Columns>
<asp:TemplateField HeaderText="Cantidad">
<ItemTemplate>
<asp:Label ID="Literal" runat="server" Text='<%# Bind("Cantidad","{0:###,###,###.##}") %>'></asp:Label>
</ItemTemplate>
<ItemStyle Width="70px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Unidad">
<EditItemTemplate>
<asp:DropDownList ID="CboUnidadMedidaEdit" runat="server" DataTextField="Abreviatura"
DataValueField="CveUnidadMedida" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 70px !important;">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RFVUnidadMedida" runat="server" ControlToValidate="CboUnidadMedidaEdit"
Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad de Medida''</b> es necesario, por favor ingréselo."
ValidationGroup="GrpEditGuardar"></asp:RequiredFieldValidator>
</EditItemTemplate>
<ItemTemplate>
<asp:Literal ID="LA" runat="server" Text='<%# Bind("Abreviatura") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="50px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Descripción">
<EditItemTemplate>
<asp:TextBox ID="TxtDescripDetalleEdit" runat="server" Text='<%# Bind("Descripcion") %>'
Width="345px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFVDescripcion" runat="server" ControlToValidate="TxtDescripDetalleEdit"
Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo."
ValidationGroup="GrpEditGuardar"></asp:RequiredFieldValidator>
<ajax:ValidatorCalloutExtender ID="VCOEmpresa" runat="server" HighlightCssClass="vco"
TargetControlID="RFVDescripcion" Width="300px">
</ajax:ValidatorCalloutExtender>
</EditItemTemplate>
<ItemTemplate>
<asp:Literal ID="LDescrip" runat="server" Text='<%# Bind("Descripcion") %>'></asp:Literal>
</ItemTemplate>
<ItemStyle Width="350px" HorizontalAlign="Left" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:Button ID="Btn1" runat="server" Text="" Visible="false" Width="100px" CssClass="gbqfba" CommandName="RegProv" />
</ItemTemplate>
<ItemStyle Width="100px" HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:Button ID="Btn2" runat="server" Text="" Visible="false" Width="100px" CssClass="gbqfba" CommandName="RegProv" />
</ItemTemplate>
<ItemStyle Width="100px" HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:Button ID="Btn3" runat="server" Text="" Visible="false" Width="100px" CssClass="gbqfba" CommandName="RegProv" />
</ItemTemplate>
<ItemStyle Width="100px" HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:Button ID="Btn4" runat="server" Text="" Visible="false" Width="100px" CssClass="gbqfba" CommandName="RegProv" />
</ItemTemplate>
<ItemStyle Width="100px" HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:Button ID="Btn5" runat="server" Text="" Visible="false" Width="100px" CssClass="gbqfba" CommandName="RegProv" />
</ItemTemplate>
<ItemStyle Width="100px" HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:Button ID="Btn6" runat="server" Text="" Visible="false" Width="100px" CssClass="gbqfba" CommandName="RegProv" />
</ItemTemplate>
<ItemStyle Width="100px" HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:Button ID="Btn7" runat="server" Text="" Visible="false" Width="100px" CssClass="gbqfba" CommandName="RegProv" />
</ItemTemplate>
<ItemStyle Width="100px" HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:Button ID="Btn8" runat="server" Text="" Visible="false" Width="100px" CssClass="gbqfba" CommandName="RegProv" />
</ItemTemplate>
<ItemStyle Width="100px" HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:Button ID="Btn9" runat="server" Text="" Visible="false" Width="100px" CssClass="gbqfba" CommandName="RegProv" />
</ItemTemplate>
<ItemStyle Width="100px" HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:Button ID="Btn10" runat="server" Text="" Visible="false" Width="100px" CssClass="gbqfba" CommandName="RegProv" />
</ItemTemplate>
<ItemStyle Width="100px" HorizontalAlign="Right" />
</asp:TemplateField>
</Columns>
<HeaderStyle CssClass="TitulosChico" Height="25px"></HeaderStyle>
<RowStyle CssClass="Texto" />
<AlternatingRowStyle CssClass="TextoAlterno" />
</asp:GridView>
</td>
</tr>
<tr>
<td style="text-align: right;" colspan="4">
<asp:Button ID="btnGeneraOrdenes" runat="server" Visible="false" Text="Generar Ordenes de Compra" class="btn btn-primary" /></td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
</asp:Content>