Commit inicial Ventas Productivo

This commit is contained in:
JORGE LUIS CAUDILLO ESPARZA
2019-08-14 16:40:54 -07:00
commit c35cf91883
13328 changed files with 3711549 additions and 0 deletions

View File

@@ -0,0 +1,166 @@
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false"
CodeFile="PopOCCotizaciones.aspx.vb" Inherits="PopOCCotizaciones" %>
<%@ MasterType virtualPath="~/Site.master"%>
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="E" runat="Server">
Carga de Cotizaciones
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="C" runat="Server">
<table cellspacing="0" rules="all" border="0" style="border-collapse: collapse;"
width="730px">
<tr class="TitulosChico">
<th scope="col" style="width: 25px">
#
</th>
<th scope="col" style="width: 150px">
Proveedor
</th>
<th scope="col" style="width: 200px">
Descripción
</th>
<th scope="col" style="width: 80px">
Total
</th>
<th scope="col" style="width: 80px">
Fecha
</th>
<th scope="col" style="width: 170px">
Archivo
</th>
<th scope="col" style="width: 25px"></th>
</tr>
<tr style="height:22px">
<td>&nbsp;</td>
<td>
<asp:DropDownList ID="CboProveedores" runat="server" DataTextField="RazonSocial"
DataValueField="CveProveedor" Width="144px">
</asp:DropDownList>
<ajax:ListSearchExtender id="LSEProveedores" runat="server"
TargetControlID="CboProveedores"
PromptText="Escriba para buscar"
PromptCssClass="ListSearchExtenderPrompt"
PromptPosition="Top"
IsSorted="true"/>
<asp:RequiredFieldValidator ID="RFVProveedor" runat="server" ControlToValidate="CboProveedores"
Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proveedor''</b> es necesario, por favor ingréselo."
ValidationGroup="GrpDetalleGuardar"></asp:RequiredFieldValidator>
<ajax:ValidatorCalloutExtender ID="VCEProveedor" runat="server" HighlightCssClass="vco"
TargetControlID="RFVProveedor" Width="300px">
</ajax:ValidatorCalloutExtender>
</td>
<td>
<asp:TextBox ID="TxtDescripcion" runat="server" Width="194px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFVDescripcion" runat="server" ControlToValidate="TxtDescripcion"
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="GrpDetalleGuardar"></asp:RequiredFieldValidator>
<ajax:ValidatorCalloutExtender ID="VCODescripcion" runat="server" HighlightCssClass="vco"
TargetControlID="RFVDescripcion" Width="300px">
</ajax:ValidatorCalloutExtender>
</td>
<td>
<asp:TextBox ID="TxtTotal" runat="server" Width="74px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFVTotal" runat="server" ControlToValidate="TxtTotal"
Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Total''</b> es necesario, por favor ingréselo."
ValidationGroup="GrpDetalleGuardar"></asp:RequiredFieldValidator>
<ajax:ValidatorCalloutExtender ID="VCETotal" runat="server" HighlightCssClass="vco"
TargetControlID="RFVTotal" Width="300px">
</ajax:ValidatorCalloutExtender>
<asp:CustomValidator
ID="CustomValidator2" runat="server" ErrorMessage="Total Incorrecto"
ToolTip="Valor Inválido" ValidateEmptyText="True" ValidationGroup="GrpDetalleGuardar"
Display="Dynamic" ControlToValidate="TxtTotal" ClientValidationFunction="ValidaDecimal"
Text="*"></asp:CustomValidator>
</td>
<td>
<asp:TextBox ID="TxtFecha" runat="server" CausesValidation="true"
MaxLength="10" ValidationGroup="GrpGuardar" Width="70px"></asp:TextBox>
<asp:ImageButton ID="imgFecha" runat="server" visible="false"
AlternateText="Click para ver el Calendario"
ImageUrl="~/imagenes/calendar.png" />
<ajax:MaskedEditExtender ID="MEEFecha" runat="server"
AcceptNegative="Left" CultureAMPMPlaceholder=""
CultureCurrencySymbolPlaceholder="" CultureDateFormat=""
CultureDatePlaceholder="" CultureDecimalPlaceholder=""
CultureThousandsPlaceholder="" CultureTimePlaceholder="" DisplayMoney="Left"
Enabled="True" ErrorTooltipEnabled="True" Mask="99/99/9999" MaskType="Date"
TargetControlID="TxtFecha" />
<ajax:MaskedEditValidator ID="MEVFecha" runat="server"
ControlExtender="MEEFecha" ControlToValidate="TxtFecha"
Display="None" EmptyValueBlurredText="*"
EmptyValueMessage="Fecha de Inicio de pagos Requerida" ErrorMessage=""
InvalidValueBlurredMessage="*" InvalidValueMessage="Fecha Inválida"
IsValidEmpty="False" TooltipMessage="Ingrese Fecha"
ValidationGroup="GrpGuardar" />
<ajax:CalendarExtender ID="CEFecha" runat="server" Enabled="True"
PopupButtonID="imgFecha" PopupPosition="BottomRight"
TargetControlID="TxtFecha">
</ajax:CalendarExtender>
<ajax:ValidatorCalloutExtender ID="VcoFechaI" runat="server"
HighlightCssClass="vco" TargetControlID="MEVFecha" Width="300px">
</ajax:ValidatorCalloutExtender>
</td>
<td>
<asp:FileUpload ID="FUArchivo" runat="server" Width="170px" />
</td>
<td style="text-align: center;">
<asp:ImageButton ID="ImgAddFactura" runat="server" ImageUrl="~/Imagenes/Btn_Add.png"
ValidationGroup="GrpDetalleGuardar" />
</td>
</tr>
<tr>
<td colspan="7">
<asp:GridView ID="GVC" runat="server" AutoGenerateColumns="False" width="730px">
<Columns>
<asp:BoundField DataField="Num" HeaderText="#">
<HeaderStyle Width="25px" />
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="RazonSocial" HeaderText="Proveedor">
<HeaderStyle Width="150px" />
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="Descripcion" HeaderText="Descripción">
<HeaderStyle Width="200px" />
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="Total" HeaderText="Total" DataFormatString="{0:N2}">
<HeaderStyle Width="80px" />
<ItemStyle HorizontalAlign="Right" />
</asp:BoundField>
<asp:BoundField DataField="Fecha" HeaderText="Fecha" DataFormatString="{0:d}">
<HeaderStyle Width="80px" />
</asp:BoundField>
<asp:TemplateField HeaderText="Archivo">
<ItemTemplate>
<asp:HyperLink ID="HplArchivo" runat="server" NavigateUrl='<%# Eval("NombreArchivo","/Cotizaciones/{0}") %>'><img src="/Imagenes/<%# Eval("Extension","{0}.png") %>" border="0" width="18px" alt="Descargar"/></asp:HyperLink>
</ItemTemplate>
<HeaderStyle Width="170px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="">
<ItemTemplate>
<asp:ImageButton ID="ImgEliminar" runat="server" CommandName="Eliminar"
CommandArgument='<%# Eval("CveCotizacion") %>' ImageUrl="/Imagenes/delete.png" />
<ajax:ConfirmButtonExtender ID="cbe" runat="server"
TargetControlID="ImgEliminar"
ConfirmText="Está seguro que desea eliminar la cotización?" />
</ItemTemplate>
<HeaderStyle Width="25px" />
</asp:TemplateField>
</Columns>
<HeaderStyle CssClass="TitulosChico"></HeaderStyle>
<RowStyle CssClass="Texto" />
<AlternatingRowStyle CssClass="TextoAlterno" />
</asp:GridView>
</td>
</tr>
</table>
</asp:Content>