com.cinecolombia.interfases.ingresarDatosComplejo.web
Class IngresarDatosComplejoTranslator

java.lang.Object
  |
  +--com.cinecolombia.interfases.ingresarDatosComplejo.web.IngresarDatosComplejoTranslator
All Implemented Interfaces:
java.io.Serializable

public class IngresarDatosComplejoTranslator
extends java.lang.Object
implements java.io.Serializable

ingresarDatosComplejo usecase: helper class for this usecase

Author:
CincoSOFT
See Also:
Serialized Form
Created:
Junio 2003

Field Summary
private  java.lang.String archivoRecibido
           
private  Debug debug
           
private  java.text.DecimalFormat df
           
private  java.text.DecimalFormat df1
           
private  DisplayIngreso dispIngreso
           
private  java.util.List ingresarDatosComplejoList
          list of the usecase
private  java.lang.String[] mensajesError
           
private  Model model
           
private  java.lang.String msgError
           
private  PeliculaExhibida[] peliculas
           
private  PrecioExhibicion[] precios
           
private  java.lang.String salaCabeza
           
private  Sala[] salas
           
private  java.lang.String todayString
          current date in String
private  java.util.List useCaseActions
          security actions of the usecase
 
Constructor Summary
IngresarDatosComplejoTranslator()
          Constructor
 
Method Summary
 java.lang.String activeCurrentTab(java.lang.String tab)
          Obtiene la cadena correpondiente al tab seleccionado para activarlo
 java.lang.String getArchivoRecibido()
          Gets the archivoRecibido attribute of the IngresarDatosComplejoTranslator object
 ConceptoContable[] getConfiteria()
          Obtiene el concepto contable para confiteria
 java.util.List getData()
           
 java.lang.String getDiferenciaValores()
          Retorna la diferencia entre los ingresos y las consignaciones.
 MedioDePago getEfectivo(int i)
          Retorna el i-esimo medio de pago en efectivo de la lista de parejas enEfectivo del Model.
 java.util.List getEnEfectivo()
          Retorna la lista de efectivo del model
 java.lang.String getErroresEncontradosList()
          Obtiene el texto de las opciones de la lista de seleccion
 java.lang.String getIdxBoletasList()
          Crea un arreglo oculto con los indices de las boletas
 Model getModel()
          Obtiene el model
 java.lang.String getMsgError()
          Gets the msgError attribute of the IngresarDatosComplejoTranslator object
 java.lang.String getOpcionesTarjeta()
          Obtiene el texto de las opciones de la lista de tarjeta
 java.lang.String getOpcionesVarios()
          Obtiene el texto de las opciones de la lista de varios
 java.lang.String getPeliculasList()
          Obtiene el texto de las opciones de la lista de peliculas
 java.lang.String getPreciosList()
          Obtiene el texto de las opciones de la lista de precios
 java.lang.String getSalaCabeza()
          Obtiene el nombre de la sala cabeza
 java.lang.String getSalasList()
          Obtiene el texto de las opciones de la lista de salas
 java.util.List getTarjetas()
          Retorna la lista de tarjeta del model
 java.lang.String getTodayString()
           
 java.lang.String getTotalIngresos()
          Retorna el total de ingresos
 java.util.List getValoresEfectivo(int i)
          Retorna una lista con los valores (Long) para consignar por un medio de pago en efectivo.
 ConceptoContable[] getVarios()
          Obtiene el concepto contable para varios
 boolean isAllowed(java.lang.String action)
          determines if a action (HTLM element) is allowed for the user examining useCaseActions
 boolean isIva(int idx)
           
 boolean isTransacciones(int idx)
           
 boolean printZipFileName(int status)
          Indica si ocurrio alguno de estos errores
 void setData(javax.servlet.http.HttpServletRequest request)
          gets data from request or session and creates input data for the jsp
 boolean statusZip(int status)
          Indica si ocurrio algun error en el archivo zip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useCaseActions

private java.util.List useCaseActions
security actions of the usecase


ingresarDatosComplejoList

private java.util.List ingresarDatosComplejoList
list of the usecase


mensajesError

private java.lang.String[] mensajesError

msgError

private java.lang.String msgError

archivoRecibido

private java.lang.String archivoRecibido

todayString

private java.lang.String todayString
current date in String


debug

private Debug debug

salaCabeza

private java.lang.String salaCabeza

model

private Model model

salas

private Sala[] salas

precios

private PrecioExhibicion[] precios

peliculas

private PeliculaExhibida[] peliculas

dispIngreso

private DisplayIngreso dispIngreso

df

private java.text.DecimalFormat df

df1

private java.text.DecimalFormat df1
Constructor Detail

IngresarDatosComplejoTranslator

public IngresarDatosComplejoTranslator()
Constructor

Method Detail

setData

public void setData(javax.servlet.http.HttpServletRequest request)
gets data from request or session and creates input data for the jsp

Parameters:
request - of MainServlet

isAllowed

public boolean isAllowed(java.lang.String action)
determines if a action (HTLM element) is allowed for the user examining useCaseActions

Parameters:
action - Description of the Parameter
Returns:
The allowed value

getTodayString

public java.lang.String getTodayString()

getErroresEncontradosList

public java.lang.String getErroresEncontradosList()
Obtiene el texto de las opciones de la lista de seleccion

Returns:
texto HTML que llena las opciones de la lista

getSalasList

public java.lang.String getSalasList()
Obtiene el texto de las opciones de la lista de salas

Returns:
texto HTML que llena las opciones de la lista

getPreciosList

public java.lang.String getPreciosList()
Obtiene el texto de las opciones de la lista de precios

Returns:
texto HTML que llena las opciones de la lista

getIdxBoletasList

public java.lang.String getIdxBoletasList()
Crea un arreglo oculto con los indices de las boletas

Returns:
array JavaScript

getPeliculasList

public java.lang.String getPeliculasList()
Obtiene el texto de las opciones de la lista de peliculas

Returns:
texto HTML que llena las opciones de la lista

getData

public java.util.List getData()

getMsgError

public java.lang.String getMsgError()
Gets the msgError attribute of the IngresarDatosComplejoTranslator object

Returns:
The msgError value

getArchivoRecibido

public java.lang.String getArchivoRecibido()
Gets the archivoRecibido attribute of the IngresarDatosComplejoTranslator object

Returns:
The archivoRecibido value

statusZip

public boolean statusZip(int status)
Indica si ocurrio algun error en el archivo zip

Parameters:
status - Description of the Parameter
Returns:
Description of the Return Value

printZipFileName

public boolean printZipFileName(int status)
Indica si ocurrio alguno de estos errores

Parameters:
status - Description of the Parameter
Returns:
Description of the Return Value

activeCurrentTab

public java.lang.String activeCurrentTab(java.lang.String tab)
Obtiene la cadena correpondiente al tab seleccionado para activarlo

Returns:
The answer value

getConfiteria

public ConceptoContable[] getConfiteria()
Obtiene el concepto contable para confiteria

Returns:
The ConceptoContable value

getModel

public Model getModel()
Obtiene el model

Returns:
The Model value

getVarios

public ConceptoContable[] getVarios()
Obtiene el concepto contable para varios

Returns:
The ConceptoContable value

getSalaCabeza

public java.lang.String getSalaCabeza()
Obtiene el nombre de la sala cabeza

Returns:
The SalaCabeza value

getOpcionesVarios

public java.lang.String getOpcionesVarios()
Obtiene el texto de las opciones de la lista de varios

Returns:
texto HTML que llena las opciones de la lista

getEnEfectivo

public java.util.List getEnEfectivo()
Retorna la lista de efectivo del model

Returns:
The List Efectivo value

getEfectivo

public MedioDePago getEfectivo(int i)
Retorna el i-esimo medio de pago en efectivo de la lista de parejas enEfectivo del Model.

Parameters:
i - Indice del medio de pago en la lista enEfectivo del Model

getValoresEfectivo

public java.util.List getValoresEfectivo(int i)
Retorna una lista con los valores (Long) para consignar por un medio de pago en efectivo.

Parameters:
i - Indice del medio de pago en enEfectivo del Model

getTotalIngresos

public java.lang.String getTotalIngresos()
Retorna el total de ingresos

Returns:
The total value

getDiferenciaValores

public java.lang.String getDiferenciaValores()
Retorna la diferencia entre los ingresos y las consignaciones.

Returns:
The diferencia value

getOpcionesTarjeta

public java.lang.String getOpcionesTarjeta()
Obtiene el texto de las opciones de la lista de tarjeta

Returns:
texto HTML que llena las opciones de la lista

getTarjetas

public java.util.List getTarjetas()
Retorna la lista de tarjeta del model

Returns:
The List Tarjeta value

isIva

public boolean isIva(int idx)

isTransacciones

public boolean isTransacciones(int idx)