|
Last
revision of this document: |
This
is document contains the code for Class JSBS_MinimalParameters.
For
easy 'cut and paste' ;-)
package
js_base.structures;
import
java.util.*;
/**
*
* @author kurt@javascout.biz
*
@date 2006-06-29
*
* @description
*
Minimum Set of parameters
* needed for the
methods responsible for database-operations
* The
values of this class are a subset of JSBS_UniversalParameters
* to
reduce the amount of data transferred between the Fat-Client and the
* methods for database-operations on the
Java-Application-Server (JAS).
*
* @change-log
*
when who why
*
--------------------------------------------------------
*
*/
public
class JSBS_MinimalParameters
{
/*
*
Name of the user; the one he or she is registered at the user-table
of the application */
public
String
strUserName
=
"";
/*
*
Work-Date of the client.
* This date can be different
from the actual date on the Server
* as it might be
necessary to perform business-operations for the future or the past
*/
public
GregorianCalendar calWorkDate;
/*
*
Language the user has chosen.
* This variableinfluences
the language
of the content of Combo-Boxes or
List-Boxes
* if the content was prepared on the
Server-side */
public
String strLanguageCode
= "";
/*
*
Preferred currency; this is the one chosen for display.
* (only
needed if the application should work with multi-currency)
*/
public
String strPreferredCurrency
= "";
/*
*
-------------------------------
* Constructor of the class
*/
public
JSBS_MinimalParameters(JSBS_UniversalParameters
parmJSBS_UniversalParameters) {
/*
*
Fill the values of this class from the UniversalParameters
*/
this.strUserName
= parmJSBS_UniversalParameters.strUserName
;
this.calWorkDate
= parmJSBS_UniversalParameters.calWorkDate
;
this.strLanguageCode
= parmJSBS_UniversalParameters.strLanguageCode
;
this.strPreferredCurrency
= parmJSBS_UniversalParameters.strPreferredCurrency
;
}
}