Skip to content

Commit

Permalink
Arreglo Cirulación
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan David Echeverry Rivera authored and Juan David Echeverry Rivera committed Apr 6, 2016
1 parent 7ad052d commit 5be2e8a
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 91 deletions.
2 changes: 1 addition & 1 deletion Boot-Park/.vs/config/applicationhost.config
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
</site>
<site name="Boot-Park" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\casa\Desktop\Proyecto\BootPark\Boot-Park\Boot-Park" />
<virtualDirectory path="/" physicalPath="C:\Users\ingen\Desktop\Proyectos\BootPark\Boot-Park\Boot-Park" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:56075:localhost" />
Expand Down
2 changes: 1 addition & 1 deletion Boot-Park/Boot-Park/Boot-Park.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<WarningLevel>1</WarningLevel>
<RegisterForComInterop>true</RegisterForComInterop>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
Expand Down
2 changes: 1 addition & 1 deletion Boot-Park/Boot-Park/Boot-Park.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<StartPageUrl>View/Private/BootPark/Parametrizacion/Particular.aspx</StartPageUrl>
<StartPageUrl>View/Private/Desktop.aspx</StartPageUrl>
<StartAction>SpecificPage</StartAction>
<AspNetDebugging>True</AspNetDebugging>
<SilverlightDebugging>False</SilverlightDebugging>
Expand Down
96 changes: 50 additions & 46 deletions Boot-Park/Boot-Park/View/Public/test/test.aspx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<script type="text/javascript">
try {
debugger;
var obj = new ActiveXObject("BootParkBiom.PluginBiometrico");
obj.ConectarConTerminal("192.168.1.201", "4370", 'Biometrico');
}
Expand All @@ -28,76 +29,79 @@
// socket.emit('open', { my: 'derecha' });
function proceso() {
var user = null;
function proceso(user) {
while (true) {
if (typeof (obj.Usuario()) != 'undefined' || user != null) {
console.log("Validado"); // ESCRIBE UN MENSAJE
/*MAIN DEL CODIGO*/
var aspirante = '' + obj.Usuario(); // OBTENGO EL USUARIO DE LA TARJETA
Ext.net.Notification.show({
html: 'BIEN HECHO! El aspirante es:' + aspirante,
title: 'Notificación'
});
TEST.ValidaAspirante(aspirante,
{
success: function (response) {
if (response) // SI ES VERDADERO VALIDE EL TAG
{
var tag = TEST.DetectarTag(
if (eval(aspirante)){
Ext.net.Notification.show({
html: 'BIEN HECHO! El aspirante es:' + aspirante,
title: 'Notificación'
});
TEST.ValidaAspirante(aspirante,
{
success: function (response) {
if (response) // SI ES VERDADERO VALIDE EL TAG
{
success: function (data) // TAG DETECTADO
var tag = TEST.DetectarTag(
{
if (data != '') {
Ext.net.Notification.show({
html: 'BIEN HECHO! El tag es:' + data,
title: 'Notificación'
});
TEST.ValidarVehiculo(aspirante, data,
{
success: function (resp) //LO QUE RESPONDE AL VALIDAR EL TAG
success: function (data) // TAG DETECTADO
{
if (data != '') {
Ext.net.Notification.show({
html: 'BIEN HECHO! El tag es:' + data,
title: 'Notificación'
});
TEST.ValidarVehiculo(aspirante, data,
{
if (resp) // SI ES VERDADERO
success: function (resp) //LO QUE RESPONDE AL VALIDAR EL TAG
{
TEST.CargarAspirante(aspirante);// CARGA EL ASPIRANTE
TEST.CargarVehiculo(data); // CARGA EL VEHICULO
TEST.RegistrarCirculacion(aspirante, data); // REGISTRA LA CIRCULACION
TEST.AbrirPuerta(); // ABRE LA PUERTA
} else {
alert('VEHICULO NO AUTORIZADO');
if (resp) // SI ES VERDADERO
{
TEST.CargarAspirante(aspirante);// CARGA EL ASPIRANTE
TEST.CargarVehiculo(data); // CARGA EL VEHICULO
TEST.RegistrarCirculacion(aspirante, data); // REGISTRA LA CIRCULACION
TEST.AbrirPuerta(); // ABRE LA PUERTA
} else {
alert('VEHICULO NO AUTORIZADO');
}
}
}
});
});
}
}
}
});
});
} else // COMO NO ES VERDADERO: PEDOR AL USUARIO QUE SE RETIRE
{
alert('RETIRESE POR FAVOR');
} else // COMO NO ES VERDADERO: PEDOR AL USUARIO QUE SE RETIRE
{
alert('RETIRESE POR FAVOR');
}
}
}
});
});
/*FIN DEL MANIN DEL CODIGO*/
/*FIN DEL MANIN DEL CODIGO*/
obj.Usuario = null;// REINICIA EL USUARIO
Concurrent.Thread.sleep(6000); // NO SE COMO CUADRAR ESTE SEÑOR // 5850
}
obj.Usuario = null;// REINICIA EL USUARIO
Concurrent.Thread.sleep(6000); // NO SE COMO CUADRAR ESTE SEÑOR // 5850
}
else {
console.log("Sin Validado"); // ESCRIBE UN MENSAJE
}
}
}
Concurrent.Thread.create(proceso);
Concurrent.Thread.create(proceso, null);
Expand Down
82 changes: 41 additions & 41 deletions Boot-Park/Boot-Park/View/Public/test/test.aspx.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Boot-Park/Boot-Park/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration>
<connectionStrings>
<!--<add name="MariaDBLocal" connectionString="Server=104.131.189.103;Uid=root;Pwd=kakaroto5;Database=BOOTPARK;"/>-->
<add name="MariaDBLocal" connectionString="Server=localhost;Uid=root;Pwd=root;Database=BOOTPARK;"/>
<add name="MariaDBLocal" connectionString="Server=localhost;Uid=root;Pwd=bootpark;Database=BOOTPARK;"/>
</connectionStrings>
<!--
Para obtener una descripción de los cambios de web.config, vea http://go.microsoft.com/fwlink/?LinkId=235367.
Expand Down
Binary file not shown.

0 comments on commit 5be2e8a

Please sign in to comment.