function FoodCourtImpl(){
this.arrayCategoria=new Array();
this.buscarCategoriaPorTipo=buscarCategoriaPorTipo;
}
function buscarCategoriaPorTipo(_1){
for(var i=0;i<this.arrayCategoria.length;i++){
if(this.arrayCategoria[i].tipoCategoria==_1){
return this.arrayCategoria[i];
}
}
return null;
}
function FoodCourt(){
}
FoodCourt.prototype=new FoodCourtImpl();
function HorarioImpl(){
this.contieneHora=contieneHoraHorarioImpl;
}
function contieneHoraHorarioImpl(_3){
var i;
for(i=0;i<this.rangosHora.length;i++){
if(this.rangosHora[i].contieneHora(_3)){
return true;
}
}
return false;
}
function LocalDistritoImpl(){
this.tieneRepartoLimitado=tieneRepartoLimitadoLocalDistritoImpl;
this.getZonaAtencion=getZonaAtencionLocalDistritoImpl;
this.tieneMontoTopeParaRecargoPorDelivery=tieneMontoTopeParaRecargoPorDeliveryLocalDistritoImpl;
this.getRecargoPorDelivery=getRecargoPorDeliveryLocalDistritoImpl;
this.tieneRecargoPorDeliveryDeterminado=tieneRecargoPorDeliveryDeterminadoLocalDistritoImpl;
this.getMontoTopeParaRecargoPorDelivery=getMontoTopeParaRecargoPorDeliveryLocalDistritoImpl;
}
function tieneRepartoLimitadoLocalDistritoImpl(){
if(this.zonasAtiende==null||this.zonasAtiende.length==0){
return false;
}
return true;
}
function getZonaAtencionLocalDistritoImpl(_5){
if(this.zonasAtiende==null||this.zonasAtiende.length==0){
return null;
}
for(var i=0;i<this.zonasAtiende.length;i++){
if(this.zonasAtiende[i]!=null&&this.zonasAtiende[i].zona.codigo==_5){
return this.zonasAtiende[i];
}
}
return null;
}
function tieneMontoTopeParaRecargoPorDeliveryLocalDistritoImpl(_7){
if(this.local.restaurante.esCargoPorDeliveryNivelRestaurante()){
return this.local.restaurante.tieneMontoTopeParaRecargoPorDelivery(this.distrito.codigo,_7);
}
if(this.zonasAtiende.length==0&&this.local.esCargoPorDeliveryNivelLocal()){
return this.local.tieneMontoTopeParaRecargoPorDelivery(this.distrito.codigo,_7);
}
if(_7!=null){
var _8=this.getZonaAtencion(_7);
if(_8==null){
return false;
}
return _8.montoTopeCargoDelivery;
}else{
for(var i=0;i<this.zonasAtiende.length;i++){
if(this.zonasAtiende[i].flagMontoTopeCargoDelivery){
return true;
}
}
return false;
}
}
function getRecargoPorDeliveryLocalDistritoImpl(_a,_b,_c){
if(this.local.restaurante.esCargoPorDeliveryNivelRestaurante()){
return this.local.restaurante.getRecargoPorDelivery(this.distrito.codigo,false,_a,_b,_c);
}
if(!this.local.restaurante.aplicaRecargoPorDelivery()){
return 0;
}
if(this.zonasAtiende.length==0&&this.local.esCargoPorDeliveryNivelLocal()){
return this.local.getRecargoPorDelivery(this.distrito.codigo,_a,_b,_c);
}
if(!_b){
var _d=this.getZonaAtencion(_a);
return _d.getRecargoPorDelivery(_c);
}else{
return 0;
}
}
function tieneRecargoPorDeliveryDeterminadoLocalDistritoImpl(_e,_f){
if(this.local.restaurante.esCargoPorDeliveryNivelRestaurante()){
return this.local.restaurante.tieneRecargoPorDeliveryDeterminado(this.distrito.codigo,false,_e,_f);
}
if(!this.local.restaurante.aplicaRecargoPorDelivery()){
return true;
}
if(this.zonasAtiende.length==0&&this.local.esCargoPorDeliveryNivelLocal()){
return this.local.tieneRecargoPorDeliveryDeterminado(this.distrito.codigo,_e,_f);
}
if(!_f){
var _10=this.getZonaAtencion(_e);
if(_10!=null){
return true;
}
return false;
}else{
return false;
}
}
function getMontoTopeParaRecargoPorDeliveryLocalDistritoImpl(_11){
if(this.local.restaurante.esCargoPorDeliveryNivelRestaurante()){
return this.local.restaurante.getMontoTopeParaRecargoPorDelivery(null,_11);
}
if(this.zonasAtiende.length==0&&this.local.esCargoPorDeliveryNivelLocal()){
return this.local.getMontoTopeParaRecargoPorDelivery(null,_11);
}
var _12=this.getZonaAtencion(_11);
return _12.montoTopeCargoDelivery;
}
function LocalDistrito(){
}
LocalDistrito.prototype=new LocalDistritoImpl();
function LocalHorarioImpl(){
}
function LocalHorario(){
}
LocalHorario.prototype=new LocalHorarioImpl();
function LocalZonaImpl(){
this.getRecargoPorDelivery=getRecargoPorDeliveryLocalZonaImpl;
}
function getRecargoPorDeliveryLocalZonaImpl(_13){
if(_13==null){
return this.montoCargoDelivery;
}else{
if(this.flagMontoTopeCargoDelivery&&this.montoTopeCargoDelivery<=_13){
return 0;
}else{
return this.montoCargoDelivery;
}
}
}
function LocalZona(){
}
LocalZona.prototype=new LocalZonaImpl();
function LocalImpl(_14){
this.codigo=_14;
this.esCargoPorDeliveryNivelLocal=esCargoPorDeliveryNivelLocalLocalImpl;
this.tieneMontoTopeParaRecargoPorDelivery=tieneMontoTopeParaRecargoPorDeliveryLocalImpl;
this.getRecargoPorDelivery=getRecargoPorDeliveryLocalImpl;
this.tieneRecargoPorDeliveryDeterminado=tieneRecargoPorDeliveryDeterminadoLocalImpl;
this.getMontoTopeParaRecargoPorDelivery=getMontoTopeParaRecargoPorDeliveryLocalImpl;
this.hasHorario=hasHorarioLocal;
this.getHorario=getHorarioLocal;
this.atiendeDistrito=atiendeDistritoLocalImpl;
this.getLocalDistritoAtencion=getLocalDistritoAtencionLocalImpl;
this.esAbiertoSegunHorario=esAbiertoSegunHorarioLocalImpl;
this.esAbierto=esAbiertoLocalImpl;
this.tieneImagenesZonaReparto=tieneImagenesZonaRepartoLocalImpl;
this.vendeOnline=vendeOnlineLocalImpl;
this.getXML=getXMLL;
this.buscarDistritoPorCodigo=buscarDistritoPorCodigoL;
this.getTiempoDemoraDeliveryActual=getTiempoDemoraDeliveryActualLocalImpl;
}
function getTiempoDemoraDeliveryActualLocalImpl(){
if(this.flagDemoraMaxima==null||this.flagDemoraMaxima==Local.FLAG_NO_DEMORA_ADICIONAL_DELIVERY){
return this.tiempoDemora;
}else{
return this.tiempoDemoraMaximo;
}
}
function esCargoPorDeliveryNivelLocalLocalImpl(){
if(this.tipoCargoDelivery==Local.TIPO_CARGO_DELIVERY_LOCAL){
return true;
}else{
return false;
}
}
function tieneMontoTopeParaRecargoPorDeliveryLocalImpl(_15,_16){
if(this.restaurante.esCargoPorDeliveryNivelRestaurante()){
return this.restaurante.tieneMontoTopeParaRecargoPorDelivery(_15,_16);
}
if(this.esCargoPorDeliveryNivelLocal()){
return this.flagMontoTopeCargoDelivery;
}else{
if(_15!=null){
var _17=this.getLocalDistritoAtencion(_15);
if(_17==null){
return false;
}
return _17.tieneMontoTopeParaRecargoPorDelivery(_16);
}else{
for(var i=0;i<this.distritosAtiende.length;i++){
if(this.distritosAtiende[i].tieneMontoTopeParaRecargoPorDelivery()){
return true;
}
}
return false;
}
}
}
function getRecargoPorDeliveryLocalImpl(_19,_1a,_1b,_1c){
if(this.restaurante.esCargoPorDeliveryNivelRestaurante()){
return this.restaurante.getRecargoPorDelivery(_19,false,_1a,_1b,_1c);
}
if(!this.restaurante.aplicaRecargoPorDelivery()){
return 0;
}
if(this.esCargoPorDeliveryNivelLocal()){
if(_1c==null){
return this.montoCargoDelivery;
}else{
if(this.flagMontoTopeCargoDelivery&&this.montoTopeCargoDelivery<=_1c){
return 0;
}else{
return this.montoCargoDelivery;
}
}
}else{
var _1d=this.getLocalDistritoAtencion(_19);
if(_1d==null){
return 0;
}
return _1d.getRecargoPorDelivery(_1a,_1b,_1c);
}
}
function tieneRecargoPorDeliveryDeterminadoLocalImpl(_1e,_1f,_20){
if(this.restaurante.esCargoPorDeliveryNivelRestaurante()){
return this.restaurante.tieneRecargoPorDeliveryDeterminado(_1e,false,_1f,_20);
}
if(!this.restaurante.aplicaRecargoPorDelivery()){
return true;
}
if(this.esCargoPorDeliveryNivelLocal()){
return true;
}else{
var _21=this.getLocalDistritoAtencion(_1e);
return _21.tieneRecargoPorDeliveryDeterminado(_1f,_20);
}
}
function getMontoTopeParaRecargoPorDeliveryLocalImpl(_22,_23){
if(this.restaurante.esCargoPorDeliveryNivelRestaurante()){
return this.restaurante.getMontoTopeParaRecargoPorDelivery(_22,_23);
}
if(this.esCargoPorDeliveryNivelLocal()){
return this.montoTopeCargoDelivery;
}else{
var _24=this.getLocalDistritoAtencion(_22);
return _24.getMontoTopeParaRecargoPorDelivery(_23);
}
}
function hasHorarioLocal(dia){
if(this.horario==null||this.horario.length==0){
return false;
}
var i;
for(i=0;i<this.horario.length;i++){
if(this.horario[i]!=null&&this.horario[i].codigoDia==dia){
return true;
}
}
return false;
}
function getHorarioLocal(dia){
if(this.horario==null||this.horario.length==0){
return false;
}
var i;
for(i=0;i<this.horario.length;i++){
if(this.horario[i]!=null&&this.horario[i].codigoDia==dia){
return this.horario[i];
}
}
return null;
}
function getXMLL(_29){
var xml="";
var _2b="";
_2b=_2b+getXML("codigo",TAG_TIPO_DATO_PRIMITIVO,TAG_TIPO_LONG,this.codigo);
xml=xml+getXML(_29,TAG_TIPO_DATO_OBJETO,"LocalImpl",_2b);
return xml;
}
function buscarDistritoPorCodigoL(_2c){
var _2d=null;
var num;
var i;
if(this.arrayDistrito!=null){
num=this.arrayDistrito.length;
for(var i=0;i<num;i++){
if(this.arrayDistrito[i].codigo==_2c){
_2d=this.arrayDistrito[i];
break;
}
}
}
return _2d;
}
function atiendeDistritoLocalImpl(_30){
if(this.distritosAtiende==null||this.distritosAtiende.length==0){
return false;
}
for(var i=0;i<this.distritosAtiende.length;i++){
if(this.distritosAtiende[i]!=null&&this.distritosAtiende[i].distrito.codigo==_30){
return true;
}
}
return false;
}
function getLocalDistritoAtencionLocalImpl(_32){
if(this.distritosAtiende==null||this.distritosAtiende.length==0){
return null;
}
for(var i=0;i<this.distritosAtiende.length;i++){
if(this.distritosAtiende[i]!=null&&this.distritosAtiende[i].distrito.codigo==_32){
return this.distritosAtiende[i];
}
}
return null;
}
function esAbiertoSegunHorarioLocalImpl(){
var _34=new Date(fechaHoraActualServidor.getTime());
var _35=this.getHorario(_34.getDay()+1);
if(_35==null){
return false;
}
return _35.horario.contieneHora(_34);
}
function esAbiertoLocalImpl(_36){
if(this.flagEstadoAtencion!=null&&this.flagEstadoAtencion==_36){
return this.esAbiertoSegunHorario();
}else{
return false;
}
}
function tieneImagenesZonaRepartoLocalImpl(_37){
if(this.flagImagenZona!=null&&this.flagImagenZona==_37){
return true;
}else{
return false;
}
}
function vendeOnlineLocalImpl(){
if(this.flagVendeOnline==null||this.flagVendeOnline!=1){
return false;
}else{
return true;
}
}
function Local(){
}
Local.prototype=new LocalImpl();
function RangoHoraImpl(){
this.contieneHora=contieneHoraRangoHoraImpl;
this.getHoraInicioConFecha=getHoraInicioConFechaRangoHoraImpl;
this.getHoraFinConFecha=getHoraFinConFechaRangoHoraImpl;
}
function contieneHoraRangoHoraImpl(_38){
if(this.getHoraInicioConFecha(_38).before(_38)&&this.getHoraFinConFecha(_38).after(_38)){
return true;
}else{
return false;
}
}
function getHoraInicioConFechaRangoHoraImpl(_39){
var _3a=new Date();
_3a.setTime(this.horaInicio.getTime());
_3a.setFullYear(_39.getFullYear());
_3a.setDate(_39.getDate());
_3a.setMonth(_39.getMonth());
_3a.setSeconds(_39.getSeconds());
_3a.setMilliseconds(_39.getMilliseconds());
return _3a;
}
function getHoraFinConFechaRangoHoraImpl(_3b){
var _3c=new Date();
_3c.setTime(this.horaFin.getTime());
_3c.setFullYear(_3b.getFullYear());
_3c.setDate(_3b.getDate());
_3c.setMonth(_3b.getMonth());
_3c.setSeconds(_3b.getSeconds());
_3c.setMilliseconds(_3b.getMilliseconds());
return _3c;
}
function RangoHoraPedidoImpl(){
}
function RangoHoraPedido(){
}
function RestauranteFoodCourtImpl(){
}
function RestauranteFuncionalidadImpl(){
}
function RestauranteImpl(_3d){
this.codigo=_3d;
this.categorias;
this.arbolCategoria;
this.arrayAtributoPrincipal=null;
this.arrayAtributoSecundario=null;
this.arrayValorAtributoPrincipal=null;
this.arrayValorAtributoSecundario=null;
this.arrayLocal="";
this.rutaNombreLogoNormal="";
this.rutaNombreLogoReducido="";
this.arrayProductoIngrediente=null;
this.atiendeDistrito=atiendeDistritoRestauranteImpl;
this.esLocalAbierto=esLocalAbiertoRestauranteImpl;
this.esAbiertoParaDistrito=esAbiertoParaDistritoRestauranteImpl;
this.buscarLocalAtiendeDistrito=buscarLocalAtiendeDistritoRestauranteImpl;
this.getLocal=getLocalRestauranteImpl;
this.vendeOnlineLocalAtiendeDistrito=vendeOnlineLocalAtiendeDistritoRestauranteImpl;
this.getXML=getXMLR;
this.buscarValorAtributoPrincipalPorCodigoAtributo=buscarValorAtributoPrincipalPorCodigoAtributoR;
this.buscarValorAtributoSecundarioPorCodigoAtributo=buscarValorAtributoSecundarioPorCodigoAtributoR;
this.buscarProductoIngrediente=buscarProductoIngredienteR;
this.buscarLocalPorDistrito=buscarLocalPorDistritoR;
this.buscarAtributoPrincipal=buscarAtributoPrincipalR;
this.buscarValorAtributoPrincipalPorCodigoAtributoPorCodigo=buscarValorAtributoPrincipalPorCodigoAtributoPorCodigoR;
this.buscarValorAtributoSecundarioPorCodigoAtributoPorCodigo=buscarValorAtributoSecundarioPorCodigoAtributoPorCodigoR;
this.esDistritoUsuarioActivo=esDistritoUsuarioActivoRestauranteImpl;
this.aplicaRecargoPorDelivery=aplicaRecargoPorDeliveryRestauranteImpl;
this.esCargoPorDeliveryNivelRestaurante=esCargoPorDeliveryNivelRestauranteRestauranteImpl;
this.getRecargoPorDelivery=getRecargoPorDeliveryRestauranteImpl;
this.tieneMontoTopeParaRecargoPorDelivery=tieneMontoTopeParaRecargoPorDeliveryRestauranteImpl;
this.tieneRecargoPorDeliveryDeterminado=tieneRecargoPorDeliveryDeterminadoRestauranteImpl;
this.getMontoTopeParaRecargoPorDelivery=getMontoTopeParaRecargoPorDeliveryRestauranteImpl;
this.getRangoHoraPedido=getRangoHoraPedidoRestauranteImpl;
}
function getRangoHoraPedidoRestauranteImpl(_3e){
if(this.rangosHoraPedido==null){
return null;
}
for(var i=0;i<this.rangosHoraPedido.length;i++){
if(this.rangosHoraPedido[i].codigo==_3e){
return this.rangosHoraPedido[i];
}
}
return null;
}
function aplicaRecargoPorDeliveryRestauranteImpl(){
if(this.indicadorCargoDelivery==Restaurante.FLAG_CARGO_DELIVERY){
return true;
}else{
return false;
}
}
function esCargoPorDeliveryNivelRestauranteRestauranteImpl(){
if(this.tipoCargoDelivery==Restaurante.TIPO_CARGO_DELIVERY_RESTAURANTE){
return true;
}else{
return false;
}
}
function tieneMontoTopeParaRecargoPorDeliveryRestauranteImpl(_40,_41){
if(this.esCargoPorDeliveryNivelRestaurante()){
return this.flagMontoTopeCargoDelivery;
}else{
if(_40!=null){
var _42=this.buscarLocalAtiendeDistrito(_40);
if(_42==null){
return false;
}
return _42.tieneMontoTopeParaRecargoPorDelivery(_40,_41);
}else{
for(var i=0;i<this.locales.length;i++){
if(this.locales[i].tieneMontoTopeParaRecargoPorDelivery(_40,_41)){
return true;
}
}
return false;
}
}
}
function getRecargoPorDeliveryRestauranteImpl(_44,_45,_46,_47,_48){
if(!this.aplicaRecargoPorDelivery()){
return 0;
}
if(this.esCargoPorDeliveryNivelRestaurante()){
if(_48==null){
return this.montoCargoDelivery;
}else{
if(this.flagMontoTopeCargoDelivery&&this.montoTopeCargoDelivery<=_48){
return 0;
}else{
return this.montoCargoDelivery;
}
}
}
if(site.esSiteFoodCourtVirtual||this.esDistritoUsuarioActivo()||!_45){
var _49=this.buscarLocalAtiendeDistrito(_44);
if(_49==null){
return 0;
}
return _49.getRecargoPorDelivery(_44,_46,_47,_48);
}else{
return 0;
}
}
function tieneRecargoPorDeliveryDeterminadoRestauranteImpl(_4a,_4b,_4c,_4d){
if(!this.aplicaRecargoPorDelivery()){
return true;
}
if(this.esCargoPorDeliveryNivelRestaurante()){
return true;
}
if(site.esSiteFoodCourtVirtual||this.esDistritoUsuarioActivo()||!_4b){
var _4e=this.buscarLocalAtiendeDistrito(_4a);
if(_4e==null){
true;
}
return _4e.tieneRecargoPorDeliveryDeterminado(_4a,_4c,_4d);
}else{
return false;
}
}
function getMontoTopeParaRecargoPorDeliveryRestauranteImpl(_4f,_50){
if(this.esCargoPorDeliveryNivelRestaurante()){
return this.montoTopeCargoDelivery;
}else{
var _51=this.buscarLocalAtiendeDistrito(_4f);
return _51.getMontoTopeParaRecargoPorDelivery(_4f,_50);
}
}
function getXMLR(_52){
var xml="";
var _54="";
_54=_54+getXML("codigo",TAG_TIPO_DATO_PRIMITIVO,TAG_TIPO_LONG,this.codigo);
xml=xml+getXML(_52,TAG_TIPO_DATO_OBJETO,"RestauranteImpl",_54);
return xml;
}
function buscarProductoIngredienteR(_55){
var _56=null;
var num;
if(this.arrayProductoIngrediente!=null){
num=this.arrayProductoIngrediente.length;
for(var i=0;i<num;i++){
if(this.arrayProductoIngrediente[i].codigo==_55){
_56=this.arrayProductoIngrediente[i];
break;
}
}
}
return _56;
}
function buscarLocalPorDistritoR(_59){
var _5a=null;
var num;
var i;
if(this.arrayLocal!=null){
num=this.arrayLocal.length;
for(var i=0;i<num;i++){
if(this.arrayLocal[i].buscarDistritoPorCodigo(_59)!=null){
_5a=this.arrayLocal[i];
break;
}
}
}
return _5a;
}
function buscarAtributoPrincipalR(_5d){
var _5e=null;
var num;
var i;
if(this.arrayAtributoPrincipal!=null){
num=this.arrayAtributoPrincipal.length;
for(var i=0;i<num;i++){
if(this.arrayAtributoPrincipal[i].codigo==_5d){
_5e=this.arrayAtributoPrincipal[i];
break;
}
}
}
return _5e;
}
function buscarValorAtributoPrincipalPorCodigoAtributoPorCodigoR(_61,_62){
var _63=null;
var num;
if(this.arrayAtributoPrincipal!=null){
num=this.arrayAtributoPrincipal.length;
for(var i=0;i<num;i++){
if(this.arrayAtributoPrincipal[i].codigo==_61){
_63=this.arrayAtributoPrincipal[i].buscarValorAtributoPrincipalPorCodigo(_62);
break;
}
}
}
return _63;
}
function buscarValorAtributoSecundarioPorCodigoAtributoPorCodigoR(_66,_67){
var _68=null;
var num;
if(this.arrayAtributoSecundario!=null){
num=this.arrayAtributoSecundario.length;
for(var i=0;i<num;i++){
if(this.arrayAtributoSecundario[i].codigo==_66){
_68=this.arrayAtributoSecundario[i].buscarValorAtributoSecundarioPorCodigo(_67);
break;
}
}
}
return _68;
}
function buscarValorAtributoPrincipalPorCodigoAtributoR(_6b,_6c){
var _6d=null;
var num;
if(this.arrayValorAtributoPrincipal!=null){
num=this.arrayValorAtributoPrincipal.length;
for(var i=0;i<num;i++){
if(this.arrayValorAtributoPrincipal[i].codigo==_6c&&this.arrayValorAtributoPrincipal[i].atributoPrincipal.codigo==_6b){
_6d=this.arrayValorAtributoPrincipal[i];
break;
}
}
}
return _6d;
}
function buscarValorAtributoSecundarioPorCodigoAtributoR(_70,_71){
var _72=null;
var num;
if(this.arrayValorAtributoSecundario!=null){
num=this.arrayValorAtributoSecundario.length;
for(var i=0;i<num;i++){
if(this.arrayValorAtributoSecundario[i].codigo==_71&&this.arrayValorAtributoSecundario[i].atributoSecundario.codigo==_70){
_72=this.arrayValorAtributoSecundario[i];
break;
}
}
}
return _72;
}
function atiendeDistritoRestauranteImpl(_75){
if(this.locales==null||this.locales.length==0){
return false;
}
for(var i=0;i<this.locales.length;i++){
if(this.locales[i]!=null&&this.locales[i].atiendeDistrito(_75)){
return true;
}
}
return false;
}
function esLocalAbiertoRestauranteImpl(_77,_78,_79){
if(this.locales==null||_77<0||_77>=this.locales.length){
return false;
}
if(this.indicadorDisponibilidad!=null&&this.indicadorDisponibilidad==_78){
return this.locales[_77].esAbierto(_79);
}else{
return false;
}
}
function esAbiertoParaDistritoRestauranteImpl(_7a,_7b,_7c){
if(this.indicadorDisponibilidad!=null&&this.indicadorDisponibilidad==_7b){
var _7d=this.buscarLocalAtiendeDistrito(_7a);
if(_7d==null){
return false;
}
return _7d.esAbierto(_7c);
}else{
return false;
}
}
function getLocalRestauranteImpl(_7e){
if(this.locales==null||this.locales.length==0){
return null;
}
for(var i=0;i<this.locales.length;i++){
if(this.locales[i]!=null&&this.locales[i].codigo==_7e){
return this.locales[i];
}
}
return null;
}
function buscarLocalAtiendeDistritoRestauranteImpl(_80){
if(this.locales==null||this.locales.length==0){
return null;
}
for(var i=0;i<this.locales.length;i++){
if(this.locales[i]!=null&&this.locales[i].atiendeDistrito(_80)){
return this.locales[i];
}
}
return null;
}
function vendeOnlineLocalAtiendeDistritoRestauranteImpl(_82){
var _83=this.buscarLocalAtiendeDistrito(_82);
if(_83==null){
return false;
}else{
return _83.vendeOnline();
}
}
function esDistritoUsuarioActivoRestauranteImpl(){
if(this.flagDistritoUsuario!=null&&this.flagDistritoUsuario==Restaurante.FLAG_DISTRITO_USUARIO_ACTIVO){
return true;
}else{
return false;
}
}
function Restaurante(){
}
Restaurante.prototype=new RestauranteImpl();
function RestauranteTipoComidaImpl(){
}
function RestauranteTipoPagoImpl(){
}
function Acceso(_84,_85,_86,_87,_88){
this.codigo=_84;
this.codigoFuncionario=_85;
this.codigoFoodcourt=_86;
this.codigoRestaurante=_87;
this.codigoLocal=_88;
}
function ComboRestauranteLocal(_89,_8a,_8b,_8c){
this.codigo=_89;
this.nombre=_8a;
this.codigoRestaurante=_8b;
this.flagDemoraMaxima=_8c;
}
function compararFechas(_8d,_8e){
if(_8d.getTime()==_8e.getTime()){
return 0;
}else{
if(_8d.getTime()<_8e.getTime()){
return -1;
}else{
return 1;
}
}
}
Date.prototype.before=function(_8f){
if(compararFechas(this,_8f)<0){
return true;
}else{
return false;
}
};
Date.prototype.after=function(_90){
if(compararFechas(this,_90)>0){
return true;
}else{
return false;
}
};

