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,193 @@
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PopUpBuscarContrato.aspx.vb" Inherits="Contratos_PopUpBuscarContrato" %>
<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">
Buscar Contrato
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Panel ID="PnlPrincipal" runat="server" HorizontalAlign="Center" DefaultButton="BtnBuscar" Width="750px">
<table class="Widthall">
<tr>
<td class="Titulos" colspan="4">Filtros para búsqueda de contratos</td>
</tr>
<tr style="text-align:left">
<td class="text-right" style="height:25px!important"><b>Compra/Venta:</b></td>
<td style="height:25px!important">
<asp:DropDownList id="DdlTipo" AutoPostBack="true" Height="30px" Width="150" runat="server" >
<asp:ListItem Value="1">Venta</asp:ListItem>
<asp:ListItem Value="0">Compra</asp:ListItem>
</asp:DropDownList>
</td>
<td class="text-right"><b>Tipo Contrato:</b></td>
<td>
<asp:DropDownList id="DdlTipoContrato" Width="150" Height="30px" DataValueField="CveContratoTipo" DataTextField="ContratoTipo" runat="server" CssClass="select2me" ></asp:DropDownList>
</td>
</tr>
<tr style="text-align:left">
<td class="text-right" style="height:25px!important"><b>No. Contrato:</b></td>
<td style="height:25px!important">
<asp:TextBox ID="TxtNumeroContrato" Height="30px" runat="server" autofocus></asp:TextBox>
</td>
<td class="text-right" style="height:25px!important"><b>Descripción:</b></td>
<td style="height:25px!important">
<asp:TextBox ID="TxtDescripcion" MaxLength="255" Height="30px" runat="server"></asp:TextBox>
</td>
</tr>
<tr style="text-align:left" >
<td class="text-right" style="height:25px!important"><b>Ubicación:</b></td>
<td style="height:25px!important"> <asp:TextBox ID="TxtUbicacion" MaxLength="50" Height="30px" runat="server"></asp:TextBox>
</td>
<td class="text-right" style="height:25px!important"><b>Responsable:</b></td>
<td style="height:25px!important">
<asp:TextBox ID="TxtResponsable" MaxLength="50" Height="30px" runat="server"></asp:TextBox>
</td>
</tr>
<tr style="text-align:left">
<td class="text-right" style="height:25px!important"><b><asp:Literal runat="server" ID="ltlContratante" Text="Cliente"></asp:Literal></b></td>
<td style="height:25px!important">
<asp:DropDownList id="DdlCliente" AppendDataBoundItems="true" Width="150" Height="30px" DataValueField="CveCliente" DataTextField="NombreComercial" runat="server" CssClass="select2me" >
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList id="DdlProveedor" AppendDataBoundItems="true" Width="150" Height="30px" DataValueField="CveProveedor" DataTextField="RazonSocial" runat="server" CssClass="select2me" >
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
</asp:DropDownList>
</td>
<td class="text-right" style="height:25px!important"><b>Estatus:</b></td>
<td style="height:25px!important">
<asp:CheckBox ID="ChkEstatus" runat="server" Height="30px" Text="Activo"/>
</td>
</tr>
<tr style="text-align:left">
<td class="text-right" style="height:25px!important"><b>Proyecto:</b></td>
<td style="height:25px!important">
<asp:DropDownList ID="DdlProyecto" Height="30px" AutoPostBack="true" Width="150" DataValueField="CveProyecto" DataTextField="Proyecto" runat="server" CssClass="select2me"></asp:DropDownList>
</td>
<td class="text-right" style="height:25px!important"><b>SubProyecto:</b></td>
<td style="height:25px!important">
<asp:DropDownList ID="DdlSubProtecto" Height="30px" Width="150" DataValueField="CveSubProyecto" DataTextField="SubProyecto" runat="server" CssClass="select2me"></asp:DropDownList>
</td>
</tr>
<tr>
<td style="text-align: center;" colspan="4" >
<asp:Button ID="BtnBuscar" runat="server" Text="Buscar" class="btn btn-primary" /></td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table id="TblBusqueda" runat="server" border="0" visible="true" style="width:100%">
<tr>
<td style="text-align:left">Número de registros encontrados:&nbsp;<b><asp:Literal ID="LtlTotalRegistros" runat="server"></asp:Literal></b></td>
<td >
<div id="DvBusqueda" class="" align="right" style="margin-right:30px!important">
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GV.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GV.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
</div> </td>
</tr>
<tr>
<td colspan="2">
<asp:GridView ID="GV" runat="server" DataKeyNames="CveContrato, NumeroContrato,CveCliente,CveProveedor" AutoGenerateColumns="false" EmptyDataText="No se encontraron registros" ToolTip="Listado de Contratos Encontrados." CssClass="table table-striped table-hover Widthall ScrollAD" data-sort="true" GridLines="None" >
<Columns>
<asp:TemplateField HeaderText="No. Contrato" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:Literal id="LtlNumeroContrato" runat="server" Text='<%# Eval("NumeroContrato") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Descrpción" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100" ItemStyle-CssClass="truncate" >
<ItemTemplate>
<asp:Literal id="LtlDescripcionContrato" runat="server" Text='<%# Eval("DescripcionContrato") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Cliente" ItemStyle-HorizontalAlign="Left" >
<ItemTemplate>
<asp:Literal id="LtlCliente" runat="server" Text='<%# Eval("Cliente") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Proveedor" ItemStyle-HorizontalAlign="Left" >
<ItemTemplate>
<asp:Literal id="LtlProveedor" runat="server" Text='<%# Eval("Proveedor") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Estatus" Visible="false" ItemStyle-Width="70">
<ItemTemplate>
<asp:Literal id="LtlEstatus" runat="server" Text='<%# Eval("SEstatusContrato") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Fecha Inicial" ItemStyle-Width="80">
<ItemTemplate>
<asp:Literal id="LtlFechaInicial" runat="server" Text='<%# Eval("FechaInicial", "{0:d}") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Fecha Final" ItemStyle-Width="80">
<ItemTemplate>
<asp:Literal id="LtlFechaFinal" runat="server" Text='<%# Eval("FechaFinal", "{0:d}") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<RowStyle CssClass="Texto" />
<AlternatingRowStyle CssClass="TextoAlterno" />
</asp:GridView>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
<script language="javascript" type="text/javascript">
function Ir(v) {
window.open('v', '_blank');
}
function Ir2(CveContrato, NumeroContrato) {
window.opener.VinculaContrato(CveContrato, NumeroContrato);
window.close();
}
function Ir3(CveOC, Folio, CveEstatusSiguiente) {
window.opener.VinculaOC(CveOC, Folio, CveEstatusSiguiente);
window.close();
}
function format(input) {
var num = input.value.split('.', 1);
var decimal = input.value.replace(num.value, '');
num = num.value.replace(/\,/g, '');
if (!isNaN(num)) {
num = num.toString().split('').reverse().join('').replace(/(?=\d*\.?)(\d{3})/g, '$1,');
num = num.split('').reverse().join('').replace(/^[\,]/, '');
input.value = num + decimal;
}
}
function cpf(t) {
var v = t.value.replace(/([^0-9\.]+)/g, '');
v = v.replace(/^[\.]/, '');
v = v.replace(/[\.][\.]/g, '');
v = v.replace(/\.(\d)(\d)(\d)/g, '.$1$2');
v = v.replace(/\.(\d{1,2})\./g, '.$1');
v = v.toString().split('').reverse().join('').replace(/(\d{3})/g, '$1,');
v = v.split('').reverse().join('').replace(/^[\,]/, '');
t.value = v;
}
</script>
</asp:Content>