Wednesday, December 12, 2007

Wearing Aerosole Boots With Jeans

- BOOKS OCCASIONAL



Example: Accounts for the following transactions in ledger
cash:



- April 15 charged Invoice No 325 for
to a credit sale
5108.60 worth €. plus 16% VAT.
- April 26 charged Invoice No 406
spot a sale worth € 6,010.12.
plus 16% VAT.
- On May 2, fees are paid to the auditor
amounting to € 2,103.54.
plus 16% VAT.
- On May 15 the bill is paid
No 287 for a purchase valued at € 4,507.59. more
16% VAT, of which € 1,202.02 was paid. the
cash and the rest within 30 days.





(To make the statement of cash receipts and payments should make
the Mayor of the accounts involved.)

Tuesday, December 11, 2007

Clear Water Before Period

EXAMPLE



From the following data make the cash-flow forecast for the months of January and February:




Box

I Need Something Free Like Jibjab

TREASURY MANAGEMENT AND PLANNING FORECAST CASH SETTLEMENT PERIODIC VAT

example

Monday, December 10, 2007

Rikers Island Visiting Schdule



The companies settled the VAT
Finance to settle differences between the input and the impact

Example: 1) VAT> VAT charged

A company submits the following quarterly stocks
VAT:
472. VAT: € 15,385.91.
477. Output VAT: € 11,719.74.








Account 4700 is an asset account that reflects the debt owed
Finance with the company for the excess VAT
has endured.


2) <> VAT

A second company has the following balances quarterly VAT: 472. VAT: € 9,616.19. 477. Output VAT: € 13,823.28.







4750 The account belongs to the person and express
debt that the company has to finance the excess VAT
has passed.

Extreme Labyrinthitis



Example: A provides, as an incidental to its business,
the following services:
1. Commercial property rents: € 1,352.28. (VAT 16%) Operating cash
collected in cash.
2. Commissary and dining fees personal
€ 1081.82. (Exempt from VAT).
spot transaction by bank transfer.
3. Industrial property transferred: € 540.91. (VAT 16%). Operation
receivables in 30 days.
4. Mediation committees: € 721.21. (VAT 16%). Operating cash
collected in cash.
5. Advisory services: € 450.76. (VAT 16%). Operation
receivables in 60 days.

Wednesday, December 5, 2007

Recipe Easy Chocolate Lava Cake

OTHER REVENUE RECORD MANAGEMENT-SERVICES OTHER OPERATIONS FOREIGN AND SUPPLIES

Example: A company faces the following
expenditure on services and supplies received from abroad:
1. Sure the delivery van: € 450.76.
operating cash paid by check
(exempt from VAT).
2. Office rent: € 1,502.53. Credit
operation due in 15 days (VAT 16%).
3. Transport of goods sold: € 1,051.77.
(VAT 16%). Operating cash paid in cash.
4. Repair machinery: € 570.96. (VAT 16%). Operation
credit to pay in 30 days.
5. Iberdrola bill for electricity consumption:
€ 150.25. (VAT 16%).
operating cash paid by bank transfer.
6. Auditor fees: € 1,051.77. (VAT 16%) (Ret.
15%). Operating cash paid in cash.
7. Campaign: € 751.27. (VAT 16%).
operating cash paid by bank transfer
.
8. Transfer fee: € 24.04.
operating cash paid by direct debit
(exempt from VAT).


























freelancers Service:

seat bill a professional who charges € 1000 + 16% VAT and must withhold 15% of income tax.


Monday, December 3, 2007

Pokemon Heart Gold How To Find Shiny Pokemon

Bonuses - MINIMUM WAGE CLASSIFICATION


Can I Buy Collidol Silver At Walgreens

2007

MINISTRY OF LABOUR AND SOCIAL AFFAIRS, Royal Decree 1632-1606 of 29 December
BOE of 30 December 2006, no.
312 Sets the minimum wage for 2007.

web: http://info.mtas.es/infpuntual/smi/RD163206.htm

In general, the SMI was set at:
    euros a day
  • 19'02 570'60
  • euros
  • 7988'40
  • month per year

Wall Gas Furnace Diagram

RECEIPT OF WAGES

The parties to the wage bill are:


O. HEADER

I. ACCRUALS

II. DETERMINATION OF THE BASES OF SOCIAL SECURITY CONTRIBUTIONS

III.DEDUCCIONES

IV.LIQUIDO TO RECEIVE

Sunday, October 21, 2007

Les Baer For Sale 2010

DWR - AJAX

.
AJAX is an acronym that means "Asynchonous JavaScript XML." In

if AJAX is a web programming technique by which a website can exchange information with the server asynchronously, so the page can be updated without being recharged. The client (the web browser) and server and keep an asynchronous communication in the background.

such, AJAX is JavaScript but clearly in this chapter we to explain a framework that allows invoked from JavaScript (browser, client) remote method on the server implemented in Java.


DWR - Direct Web Remoting DWR

Soucre is an open framework that offers an alternative style RPC (remote procedure invocation) between the client (browser) and server. Using DWR can invoke methods via JavaScript but that is processed on the server. DWR does all the marshalling of communication. DWR

cconsiste into two main parts:
  • A servlet running on the server that processes requests and sends the responses to the browser
  • JavaScript running in the browser that sends requests and can dynamically update the HTML page.
The JavaScript needed to establish the remote method invocation is generated "on the fly" so it is minimized rather the client code we write.


DWR Hello World!

To begin we will see how to configure DWR to our web project and then develop a HelloWorld. The following tutorial (step by step) is taken from official site DWR: http://getahead.org/dwr/getstarted

1 - Download the file and copy dwr.jar in directory WEB-INF/lib of the web application.

2 - Add the following lines into the web.xml Web application.
   1:  
2: \u0026lt; servlet>
3: \u0026lt; servlet-name> dwr-invoker \u0026lt; / servlet-name>
4: \u0026lt; servlet-class>
5: org.directwebremoting.servlet.DwrServlet
6: &lt; / servlet-class &gt;
7: &lt; init-param &gt;
8: &lt; param-name &gt; debug &lt; / param-name &gt;
9: &lt; param-value &gt; true &lt; / param-value &gt;
10: &lt; / init-param &gt;
11: &lt; / servlet &gt;
12:
13: &lt; servlet-mapping &gt;
14: &lt; servlet-name &gt; dwr-invoker &lt; / servlet-name &gt;
15: &lt; url-pattern> / dwr / * \u0026lt; / url-pattern >
16: \u0026lt; / servlet-mapping >
17:

3 - Create a file called dwr.xml in the WEB-INF directory of the Web application with the following code.

dwr.xml
   1:  
2: \u0026lt;! DOCTYPE dwr PUBLIC
3: " -//GetAhead Limited//DTD Direct Web Remoting 1.0//EN "
4: " http://www.getahead.ltd.uk/dwr/dwr10.dtd " &gt;
5:
6: &lt; dwr &gt;
7: &lt; allow &gt;
8: &lt; create creator = " new " javascript = " JDate " &gt;
9: &lt; param name = " class " value = " java.util.Date " / &gt;
10: \u0026lt; / create >
11: \u0026lt; / allow >
12: \u0026lt; / dwr >
13:

4 - Now let's try to enter our web application in the directory dwr:

http://localhost:8080/ [YOUR-WEBAPP ] / dwr / DWR

display a page where you can see all public class, whose methods can be invoked via JavaScript.

In this case (as an example) is only published JDate class (the java.util). Recall that when we create the file dwr.xml , we define that we would use this class.

5 - If we "click" on JDate then see a page where we can test all the methods (in this case) JDate. Something like:


addition (on top) will see the code that we include in our JSP or HTML to invoke the remote object.


Now if, Hello World!

The project site correctly configured to use DWR we are able to make the first example.

6 - Create HolaMundoDWR class.

HolaMundoDWR.java
   1:  
2: package test;
3:
4: public class HolaMundoDWR
5: {
6: public String greeting ( String n)
7: {
8: return "Hello World " + n;
9:
} 10:}
11:

7 - We need to publish the class in DWR. To this we add the following code in the dwr.xml .
   1:  
2: \u0026lt; create creator = " new " javascript = " HolaMundoDWR " >
3: \u0026lt; param name = " class " value = " test.HolaMundoDWR " / >
4: \u0026lt; / create >
5:

8 - re-enter the directory dwr web application to ensure that the class was properly HolaMundoDWR deploy.

http://localhost:8080/ [YOUR-WEBAPP] / dwr / test / HolaMundoDWR

If all is well see the following page:


Here you can
test the method greeting, but DWR also shows the scripts that we have to include in your JSP page if we want to invoke class methods HolaMundoDWR . It also suggests to include the script util.js it will be very useful to dynamically update contenido HTML.

9 - Ahora si, podemos programar la página JSP.

testDWR.jsp
        1:   
2: &lt; html &gt;
3: &lt; head &gt;
4: &lt;!-- incluimos los scripts que nos indico --&gt;
5: &lt;!-- la pagina de prueba de DWR --&gt;
6: &lt;script
7: type = 'text /
javascript' 8: src = ' / ZDWR / dwr / interface / HolaMundoDWR . js ' >
9: \u0026lt;/ script>
10: &lt;script type = ' text / javascript '
11: src= ' / ZDWR / dwr / engine . js ' &gt;
12: &lt;/script&gt;
13: &lt;script type = ' text / javascript '
14: src= ' / ZDWR / dwr / util . js ' &gt; &lt;/script&gt;
15: \u0026lt; / head>
16:
17: \u0026lt; body>
18: \u0026lt;! - is very important the id ( tfNom ) - >
19: Nombre &lt; input type = " text " id = " tfNom " &gt;
20:
21: &lt;!-- en el onclick del boton llamamos a la ->
22: \u0026lt;! - function greeting ( ) that this more down ->
23:
24: \u0026lt; input value = " Send "
25: type = "button "
26: onclick = "greeting ( ) " / >
27: \u0026lt; br>
28: \u0026lt; ! - Note that the spam has a id ->
29: Answer: \u0026lt; b > \u0026lt; span id = " lblNom " / > \u0026lt; / b >
30:
31: \u0026lt; / body>
32: \u0026lt; / html >
33:
34: \u0026lt;! - now develop the function greeting that ->
35: \u0026lt;! - get the name that we entered into tfNom , ->
36: \u0026lt;! - invoked to the function remote and Sets in the ->
37: \u0026lt;! - - span ( lblNom ) the result received ->
38: \u0026lt;script >
39: function greeting ( )
40: {
41: / / get the name entered by the user
42: var nom = dwr. Util . getValue( " tfNom " ) ;
43:
44: // invocamos la funcion remota pasandole nom
45: // y una funcion de callback that DWR invoked
46: / / when the information sent by the server
47: / / this available in to be used
48: HolaMundoDWR . greeting (nom , function (data )
49: {
50: / / we set the result in the span
51: dwr . useful. setValue ( " lblNom " , data ) ;
52:} ) ;
53:
} 54: \u0026lt;/ script>
55:

We can see that the library can util.js offers easy access to the objects of the page to get the data you have loaded and setearles results.

To invoke the remote method greeting need to use a callback function. This is because Java is synchronous but AJAX is asynchronous, therefore we pass this function to DWR's invoked when the information sent by the server is available and can be used in the browser. Here we set the result in the span lblNom .


HTML Object Handling

As we see, DWR solves extremely simple remote method invocation between the page HTML (or JSP) and Java class that implements them. Therefore, the increased complexity is given in order to dynamically update HTML content with the information coming from the server.

For this DWR provides a library of JavaScript functions call: util.js . We will see some examples how to dynamically update content using this library. Combos


Dependent

In this example we will see how to update the contents of a combo depending on what the user selects another combo.

For this program the next class that basically provide two methods:
  • obtenerArtistas Collection ();
  • obtenerDiscos Collection (String artist)
ie The first method returns a Collection of Strings with Artist names "registered in a database" and the second method, as an artist name will return all records by that artist that "we have registered."

For simplicity, the harcodearemos data in a Hashtable.

CatalogoCD.java
   1:  
2: package test;
3: import java.util .*;
4:
5: public CatalogoCD class
6: {
7: private Hashtable artists
8:
9: public CatalogoCD ( )
10: {
11: artists = new Hashtable ( ) ;
12: _cargarInformacion ( ) ;
13:
} 14:
15: / / returns a Collection of Strins with the
16: / / artists who have registered
17: public obtenerArtistas Collection ( )
18:
{19: Vector v = new Vector ( ) ;
20: for ( Enumeration e = artists. keys ( )
21: e. HasMoreElements ( ) ; )
22: {
23: v. add (e. nextElement ( ) ) ;
24:}
25: return v;
26:
27} :
28: / / given a artist returns a Collection of
29: / / Strings with the titles of the discs of
30: / / artist specified
31: Collection public obtenerDiscos (String artist )
32:
{33: return ( Collection ) artists. get ( artist ) ;
34:
} 35:
36: / / all harcodeado ...
37: private void _cargarInformacion ( )
38: {
39: Vector v1 = new Vector ( ) ;
40: v1. add ( " Please Please Me " ) ;
41: v1. add ( " Abbey Road " ) ;
42: v1. add ( " Magical Mystery Tour " ) ;
43: artists. put ( " The Beatles ", v1 ) ;
44:
45: Vector v2 = new Vector ( ) ;
46: v2. add ( "Too Ego " ) ;
47: v2. add ( " The Daughter of the Lagrima" ) ;
48: v2. add ( "Say No More " ) ;
49: v2. add ( " Kill Gil " ) ;
50: artists. put ( " Charly Garcia " , v2 ) ;
51:
52: / / sex Ibiza Locomia ...!
53: Vector v3 = new Vector ( ) ;
54: v3. add ( " A Ibiza with Locomia " ) ;
55: v3. add ( " Fans For Everywhere! " ) ;
56: artists. put ( " Locomia " , v3 ) ;
57:
} 58:}
59:

To register the class as a service in DWR have to add the following lines in the file dwr.xml .
   1:  
2: \u0026lt; create creator = " new " javascript = " CatalogoCD " >
3: \u0026lt; param name = " class "value = " test.CatalogoCD " / &gt;
4: &lt; / create &gt;
5:

Ahora vamos a:
http://localhost:8080/[ YOUR-WEBAPP ]/dwr/test/CatalogoCD

para ver los scripts que debemos incluir en la página JSP.


Y ahora veamos la página JSP:

discos.jsp
        1:   
2: &lt; html &gt;
3: &lt; head &gt;
4: &lt;script
5: type = ' text / javascript '
6: src= ' / TestAjax / dwr / interface / CatalogoCD . js ' >
7: \u0026lt;/ script>
8: \u0026lt;script
9: type = ' text / javascript '
10: src = ' / test ajax / dwr / engine . js ' >
11: \u0026lt;/ script>
12: \u0026lt;script
13: type = ' text /
javascript' 14: src = ' / TestAjax / dwr / util . js ' >
15: \u0026lt;/ script>
16:
17: \u0026lt;script >
18: function obtenerArtistas ( )
19: {
20: CatalogoCD . obtenerArtistas ( function( data ) {
21: dwr . util . removeAllOptions( " cbArtista " ) ;
22: dwr . util . addOptions( " cbArtista " , data ) ;
23: obtenerDiscos( ) ;
24: } ) ;
25: }
26:
27: function obtenerDiscos ( )
28: {
29: was Art = DWR . util . getValue ( " cbArtista " ) ;
30: CatalogoCD . obtenerDiscos ( Art , function ( data )
31: {
32: dwr . util . removeAllOptions( " cbDisco " ) ;
33: dwr . util . addOptions( " cbDisco " , data ) ;
34: } ) ;
35: }
36: &lt;/script&gt;
37: \u0026lt; / head >
38:
39: \u0026lt; body >
40: \u0026lt; input type = "button "
41: value = " Send "
42: onclick = " obtenerArtistas ( ) " / &gt;
43: &lt; select id = " cbArtista "
44: onChange = " obtenerDiscos ( ) " / &gt;
45: &lt; select id = " cbDisco " / &gt;
46: &lt; / body &gt;
47: &lt; / html &gt;
48:

As we see, the page if you ate
NZA from line 39. We have two select (combos), one with id = " cbArtista " and the other with id = " idDisco " and a button .

In the event of the button onclick invoke the function obtenerArtistas , and onChange event of the combo of artists invoke the function obtenerDiscos .

Consider then the function obtenerArtistas (found from line 18).
   17:  
18: function obtenerArtistas ( )
19: {
20: CatalogoCD . obtenerArtistas ( function ( date) {
21: dwr . util . removeAllOptions ( " cbArtista " ) ;
22: dwr . util . addOptions ( " cbArtista " , data) ;
23: obtenerDiscos ( ) ;
24: } ) ;
25:}
26:

function CatalogoCD.obtenerArtistas invoked by passing a callback function where you first remove all items of the combo and then we set the combo of artists in the collection that returns the Java method. Finally we invoke the function for cargargar obtenerDiscos discs was selected artists.

The function code is obtenerDiscos from line 27 and can be seen below.
   26:  
27: obtenerDiscos function ( )
28: {
29: art var dwr = . useful. getValue ( " cbArtista " ) ;
30: CatalogoCD . obtenerDiscos ( art, function ( data )
31: {
32: dwr . util . removeAllOptions( " cbDisco " ) ;
33: dwr . util . addOptions( " cbDisco " , data ) ;
34: } ) ;
35: }
36:

En esta función tomamos el valor que se encuentra seleccionado en el combo de artistas y lo asignamos a la variable art . Luego invocamos a la función CatalogoCD.obtenerDiscos pasándole art y una función callback dentro de la cual borramos los items del combo de discos y seteamos en dicho combo la colección que retorna el método Java.

El resultado será:






.