class_batches.js

 

This class is used in all our applications as a common interface to deal with batches, is the modal window named "Batches: Extended Information"

Allow you to deal with a batch of batches for incoming, outcoming or just display information in read only mode, applying the necessary rules in each case

 

webApps20_batchesExtendedInformation

 

To include this library in your app, just add this code to your app source code in beas, between the "_header()" and "_footer()":

<script src="assets21/js/class_serials.js"></script>

 

Class members

Method Summary


constructor

constructor( mode, batches )

Initialize the class

set

set( serials, options={} )

Set the serials and options before to display this window

get

get()

Get the serials list with all modifications made by the user to the serials

display

display(onclose=null)

Open the modal window

 

 

 

 

 

Method Detail


constructor

constructor( mode, batches )

Initialize the class

 

Parameters:

{string} mode

 

{array of json objects} serials

 

 

Returns:

{class_serials object}

 

Example

set

set( batches, options={} )

Set the batches and options before to display this window

 

Parameters:

{array of json objects} serials

 

{json object} options

 

 

Returns:

{void}

 

Example

get

get()

Get the serials list with all modifications made by the user to the batches

 

Parameters: none

Returns:

{array of json objects} serials

 (see "set"

 

display

display(onclose=null)

Open the modal window

 

Parameters:

function callback

 

Returns:

{void}

 

Example

 

newBatch()

 

 

x