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

351 lines
26 KiB
Plaintext

<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="MovimientosBancarios.aspx.vb" Inherits="Bancos_MovimientosBancarios" %>
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="E" runat="Server">
Movimientos Bancarios - Pruebas
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="C" runat="Server">
<script type="text/javascript">
</script>
<br />
<ajax:TabContainer runat="server" ID="TabContainer" ActiveTabIndex="0" Width="100%">
<ajax:TabPanel runat="server" ID="TabAltaProveedores" HeaderText="Alta Proveedores">
<ContentTemplate>
<center>
<h2>Datos Generales</h2>
<asp:UpdatePanel ID="UPGV" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GvProveedores" runat="server" DataKeyNames="CveProveedor" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" CellPadding="1" CellSpacing="1" RowStyle-VerticalAlign="Middle" RowStyle-HorizontalAlign="Center">
<Columns>
<asp:BoundField DataField="RazonSocial" HeaderText="Empresa | Persona" ItemStyle-Width="400px" ControlStyle-CssClass="Texto" />
<asp:BoundField DataField="RFC" HeaderText="RFC" ItemStyle-Width="120px" ControlStyle-CssClass="Texto" />
<asp:TemplateField ItemStyle-Width="100px" HeaderText="Alta">
<ItemTemplate>
<asp:CheckBox runat="server" ID="CheckAgregar" Text="Agregar" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<HeaderStyle Font-Bold="true" Font-Size="Small" />
<AlternatingRowStyle CssClass="TextoAlterno"></AlternatingRowStyle>
<RowStyle CssClass="Texto"></RowStyle>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
<br /><br />
<asp:Button runat="server" ID="BtnAltas" Text="Guardar" OnClick="BtnAltas_Click" Width="150px" Height="25px" ValidationGroup="ValidarGuardar"/>
<br />Texto<asp:TextBox runat="server" ID="TxtTextoEntero" Width="600px" ></asp:TextBox>
</center>
<asp:UpdatePanel runat="server" ID="UpDatosAlta" Visible="false" UpdateMode="Conditional">
<ContentTemplate>
<table style="margin-left: 30px;">
<tr>
<td><h2>Datos Generales</h2></td>
</tr>
<tr>
<td><b>Proveedor a Registrar:</b></td>
<td>
<asp:DropDownList runat="server" ID="DdlProveedores" AutoPostBack="true" Width="300px" DataTextField="NombreComercial" DataValueField="CveProveedor" OnSelectedIndexChanged="DdlProveedores_SelectedIndexChanged"></asp:DropDownList>
</td>
</tr>
<%--<tr>
<td><b>Tipo de Transacción:</b></td>
<td>
<asp:DropDownList runat="server" ID="DdlInstruccion" Width="300px">
<asp:ListItem Text="Seleccione uno" Value="-1" Selected="True"></asp:ListItem>
<asp:ListItem Text="Alta" Value="A"></asp:ListItem>
<asp:ListItem Text="Baja" Value="B"></asp:ListItem>
<asp:ListItem Text="Cambio" Value="C"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td><b>Tipo de Proveedor:</b></td>
<td>
<asp:DropDownList runat="server" ID="DdlTipoProveedor" Width="300px">
<asp:ListItem Text="Seleccione uno" Value="-1" Selected="True"></asp:ListItem>
<asp:ListItem Text="Preferente" Value="P"></asp:ListItem>
<asp:ListItem Text="Normal" Value="N"></asp:ListItem>
<asp:ListItem Text="Otros" Value="O"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td><b>Clave del Proveedor:</b></td>
<td><asp:TextBox runat="server" ID="TxtCveProveedor" Width="300px" MaxLength="30"></asp:TextBox></td>
</tr>
<tr>
<td><b>Grupo del proveedor:</b></td>
<td><asp:TextBox runat="server" ID="TxtGrupoProveedor" Width="300px" MaxLength="10"></asp:TextBox></td>
</tr>
<tr>
<td><b>Tipo de Persona:</b></td>
<td>
<asp:DropDownList runat="server" ID="DdlTipoPersona" AutoPostBack="true" OnSelectedIndexChanged="DdlTipoPersona_SelectedIndexChanged" Width="300px">
<asp:ListItem Text="Seleccione uno" Value="-1" Selected="True"></asp:ListItem>
<asp:ListItem Text="Persona Física" Value="F"></asp:ListItem>
<asp:ListItem Text="Persona Moral" Value="M"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<asp:UpdatePanel runat="server" ID="UpDatosMoral" UpdateMode="Conditional">
<ContentTemplate>
<tr><td><h2>Persona Moral</h2></td></tr>
<tr>
<td><b>Razón Social:</b></td>
<td><asp:TextBox runat="server" ID="TxtRazonSocial" Width="300px" MaxLength="50"></asp:TextBox></td>
</tr>
<tr>
<td><b>Fecha de registro de la empresa:</b></td>
<td>
<asp:TextBox ID="TxtFechaRegistroEmpresa" runat="server" CausesValidation="true" MaxLength="10" Width="260px" ClientIDMode="Static"></asp:TextBox>
&nbsp;<asp:ImageButton runat="server" ID="ImgFecha" ImageUrl="/Imagenes/calendar.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
<ajax:MaskedEditExtender ID="MEEFecha" runat="server" TargetControlID="TxtFechaRegistroEmpresa" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
<ajax:CalendarExtender runat="server" ID="CEFecha" TargetControlID="TxtFechaRegistroEmpresa" PopupButtonID="ImgFecha" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
<asp:RequiredFieldValidator ID="RFVFecha" runat="server" ControlToValidate="TxtFechaRegistroEmpresa" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo."></asp:RequiredFieldValidator>
<asp:CompareValidator ID="CVFecha" runat="server" ControlToValidate="TxtFechaRegistroEmpresa" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (DD-MM-YYYY)." Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
<ajax:ValidatorCalloutExtender ID="VCOFecha1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
<ajax:ValidatorCalloutExtender ID="VCOFecha2" runat="server" HighlightCssClass="vco" TargetControlID="CVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
</td>
</tr>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel runat="server" ID="UpDatosPF" UpdateMode="Conditional">
<ContentTemplate>
<tr><td><h2>Persona Fisica</h2></td></tr>
<tr>
<td><b>Nombre:</b></td>
<td><asp:TextBox runat="server" ID="TxtNombrePF" Width="300px" MaxLength="20"></asp:TextBox></td>
</tr>
<tr>
<td><b>Apellido Paterno:</b></td>
<td><asp:TextBox runat="server" ID="TxtApellidoPPF" Width="300px" MaxLength="20"></asp:TextBox></td>
</tr>
<tr>
<td><b>Apellido Materno:</b></td>
<td><asp:TextBox runat="server" ID="TxtApellidoMPF" Width="300px" MaxLength="20"></asp:TextBox></td>
</tr>
<tr>
<td><b>Fecha de nacimiento:</b></td>
<td>
<asp:TextBox ID="TxtFechaNacimientoPF" runat="server" CausesValidation="true" MaxLength="10" Width="260px" ClientIDMode="Static"></asp:TextBox>
&nbsp;<asp:ImageButton runat="server" ID="ImgFechaPF" ImageUrl="/Imagenes/calendar.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
<ajax:MaskedEditExtender ID="MEEFechaPF" runat="server" TargetControlID="TxtFechaNacimientoPF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
<ajax:CalendarExtender runat="server" ID="CEFechaPF" TargetControlID="TxtFechaNacimientoPF" PopupButtonID="ImgFechaPF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
<asp:RequiredFieldValidator ID="RFVFechaPF" runat="server" ControlToValidate="TxtFechaNacimientoPF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo."></asp:RequiredFieldValidator>
<asp:CompareValidator ID="CVFechaPF" runat="server" ControlToValidate="TxtFechaNacimientoPF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (DD-MM-YYYY)." Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
<ajax:ValidatorCalloutExtender ID="VCOFechaPF1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaPF" Width="350px"></ajax:ValidatorCalloutExtender>
<ajax:ValidatorCalloutExtender ID="VCOFechaPF2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaPF" Width="350px"></ajax:ValidatorCalloutExtender>
</td>
</tr>
</ContentTemplate>
</asp:UpdatePanel>
<tr>
<td><b>RFC del proveedor</b></td>
<td><asp:TextBox runat="server" ID="TxtRFC" Width="300px" MaxLength="14"></asp:TextBox></td>
</tr>
<tr>
<td><b>Tipos de Confirmación de pagos</b></td>
<td>
<asp:DropDownList runat="server" ID="DdlConfirmacionPago" Width="300px">
<asp:ListItem Text="Seleccione uno" Value="-1" Selected="True"></asp:ListItem>
<asp:ListItem Text="Sin Confirmación de pago" Value="00"></asp:ListItem>
<asp:ListItem Text="Confirmación via Correo Electronico" Value="02"></asp:ListItem>
<asp:ListItem Text="Confirmación via SMS" Value="03"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td><b>Compañia Celular para confirmacion SMS </b></td>
<td>
<asp:DropDownList runat="server" ID="DdlCompañiaCelular" Width="300px">
<asp:ListItem Text="Seleccione uno" Value="-1" Selected="True"></asp:ListItem>
<asp:ListItem Text="Movistar" Value="1"></asp:ListItem>
<asp:ListItem Text="Iusacell" Value="2"></asp:ListItem>
<asp:ListItem Text="Telcel" Value="3"></asp:ListItem>
<asp:ListItem Text="Unefon" Value="4"></asp:ListItem>
<asp:ListItem Text="Nextel" Value="5"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td><b>Email o Numero Celular</b></td>
<td><asp:TextBox runat="server" ID="TxtEmailNumero" Width="300px" MaxLength="50"></asp:TextBox></td>
</tr>--%>
<asp:UpdatePanel runat="server" ID="UpBanco" Visible="true">
<ContentTemplate>
<tr><td><b><h2>Datos de Cuenta Bancaria</h2></b></td></tr>
<tr>
<td><b>Nombre Banco | #Cuenta</b></td>
<td><asp:TextBox runat="server" ID="TxtBanco" Width="200px" Enabled="false"></asp:TextBox><asp:TextBox runat="server" ID="TxtBancoCuenta" Width="100px" Enabled="false"></asp:TextBox></td>
</tr>
</ContentTemplate>
</asp:UpdatePanel>
<%--<tr>
<td><b>Tipo de Banco:</b></td>
<td>
<asp:DropDownList runat="server" ID="DdlTipoBanco" AutoPostBack="true" OnSelectedIndexChanged="DdlTipoBanco_SelectedIndexChanged" Width="300px">
<asp:ListItem Text="Seleccione uno" Value="-1" Selected="True"></asp:ListItem>
<asp:ListItem Text="Bancomer - BBVA" Value="1"></asp:ListItem>
<asp:ListItem Text="Otros Bancos" Value="2"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<asp:UpdatePanel runat="server" ID="UpDatosCuentaBBVA">
<ContentTemplate>
<tr><td><h3>Cuenta Bancomer</h3></td></tr>
<tr>
<td><b>Divisa Cuenta BBVA:</b></td>
<td>
<asp:DropDownList runat="server" ID="DdlDivisaBBVA" Width="300px">
<asp:ListItem Text="Seleccione uno" Value="-1" Selected="True"></asp:ListItem>
<asp:ListItem Text="Pesos" Value="MXP"></asp:ListItem>
<asp:ListItem Text="Dolares" Value="USD"></asp:ListItem>
<asp:ListItem Text="Euros" Value="EUR"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td><b>Tipo de Cuenta BBVA:</b></td>
<td>
<asp:DropDownList runat="server" ID="DdlTipoBBVA" Width="300px">
<asp:ListItem Text="Seleccione uno" Value="-1" Selected="True"></asp:ListItem>
<asp:ListItem Text="Cuenta Bancomer Clabe" Value="40"></asp:ListItem>
<asp:ListItem Text="Convenio CIE Bancomer" Value="50"></asp:ListItem>
<asp:ListItem Text="Cuenta Bancomer a 10 posiciones" Value="99"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</fieldset>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel runat="server" ID="UpDatosOtrosBancos">
<ContentTemplate>
<tr><td><h3>Cuenta Otros Bancos</h3></td></tr>
<tr>
<td><b>Divisa Otros Bancos:</b></td>
<td>
<asp:DropDownList runat="server" ID="DdlDivisaOtrosBancos" Width="300px">
<asp:ListItem Text="Seleccione uno" Value="-1" Selected="True"></asp:ListItem>
<asp:ListItem Text="Pesos" Value="MXP"></asp:ListItem>
<asp:ListItem Text="Dolares" Value="USD"></asp:ListItem>
<asp:ListItem Text="Euros" Value="EUR"></asp:ListItem>
<asp:ListItem Text="Dólar Canadiense" Value="CAD"></asp:ListItem>
<asp:ListItem Text="Franco Suizo" Value="CHK"></asp:ListItem>
<asp:ListItem Text="Corona Sueca" Value="SEK"></asp:ListItem>
<asp:ListItem Text="Libra Esterlina" Value="GBP"></asp:ListItem>
<asp:ListItem Text="Yen Japonés" Value="JPY"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td><b>Tipo de Cuenta Otros Bancos:</b></td>
<td>
<asp:DropDownList runat="server" ID="DdlTipoOtrosBancos" Width="300px">
<asp:ListItem Text="Seleccione uno" Value="-1" Selected="True"></asp:ListItem>
<asp:ListItem Text="Cuenta Interbancaria Nacional" Value="40"></asp:ListItem>
<asp:ListItem Text="Resto del Mundo" Value="96"></asp:ListItem>
<asp:ListItem Text="Estados Unidos y Puerto Rico" Value="97"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td><b><asp:Literal runat="server" ID="LbClaveOtrosBancos" Text="Clave --" />:</b></td>
<td>
<asp:TextBox runat="server" ID="TxtClaveOtrosBancos" Width="300px" MaxLength="11"></asp:TextBox>
</td>
</tr>
<asp:UpdatePanel runat="server" ID="UpDatosCuentaInternacional">
<ContentTemplate>
<tr>
<td><b>Domicilio</b></td>
<td><asp:TextBox runat="server" ID="TxtDomicilioCuentaInternacional" Width="300px" MaxLength="50"></asp:TextBox></td>
</tr>
<tr>
<td><b>Ciudad</b></td>
<td><asp:TextBox runat="server" ID="TxtCiudadCuentaInternacional" Width="300px" MaxLength="30"></asp:TextBox></td>
</tr>
<tr>
<td><b>País</b></td>
<td><asp:TextBox runat="server" ID="TxtPaisCuentaInternacional" Width="300px" MaxLength="30"></asp:TextBox></td>
</tr>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</asp:UpdatePanel>
<tr>
<td><b>Numero de Cuenta:</b></td>
<td><asp:TextBox runat="server" ID="TxtNumeroCuenta" Width="300px" MaxLength="18"></asp:TextBox></td>
</tr>--%>
<tr><td><td><asp:Button runat="server" ID="BtnAltas2" Text="Guardar" OnClick="BtnAltas_Click" Width="120px" /></td></td></tr>
<tr><td></td><td><asp:TextBox runat="server" ID="TxtAltas" Width="600px"></asp:TextBox></td></tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</ajax:TabPanel>
<ajax:TabPanel runat="server" ID="TabPagos" HeaderText="Pago a Proveedores">
<ContentTemplate>
<asp:UpdatePanel runat="server" ID="UpDatosPagos" UpdateMode="Conditional">
<ContentTemplate>
<table style="margin-left: 30px;">
<tr>
<td><b>Tipo de Instrucción</b></td>
<td>
<asp:DropDownList runat="server" ID="DdlInstruccionPagos" ValidationGroup="ValidarGuardar">
<asp:ListItem Text="Seleccione Uno" Value="-1" Selected="True"></asp:ListItem>
<asp:ListItem Text="Alta" Value="A"></asp:ListItem>
<asp:ListItem Text="Baja" Value="B"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr><td><td><asp:Button runat="server" ID="BtnPagos" Text="Guardar" OnClick="BtnPagos_Click" Width="120px" /></td></td></tr>
<tr><td></td><td><asp:TextBox runat="server" ID="TxtPagos" Width="600px"></asp:TextBox></td></tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</ajax:TabPanel>
</ajax:TabContainer>
<asp:UpdateProgress ID="upProgress" runat="server" DisplayAfter="0">
<ProgressTemplate>
<div id="overlay">
<div id="modalprogress">
<div id="theprogress">
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>La información se está procesando...</td>
</tr>
<tr>
<td>
<img src="/Imagenes/Cargando.gif" style="border-width: 0px;" alt="" /></td>
</tr>
</table>
</center>
</div>
</div>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
</asp:Content>