/*
 * Author       : rafaelpelaez
 * Generated on : 23-Nov-2009 02:12:45
 * Version      : 3.0
 */
application "e business"
{
    type = public
    date format = "dd-MMM-yyyy"
    time zone = "America/Los_Angeles"
    section Home
    {
        form  cliente
        {
            
            must  have  Single_Line_1
            (
                displayname  =  "RFC"
                type  =  text
            )

            nombre
            (
                type  =  text
            )

            correo
            (
                type  =  text
            )

            telefono
            (
                type  =  text
            )

            direccion
            (
                type  =  text
            )

            ciudad
            (
                type  =  text
            )

            must  have  pais
            (
                type  =  picklist
                values  =  pais.pais
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        list  cliente_View
        {
            displayname = "cliente View"
            show  all  rows  from  cliente 
            (
                Single_Line_1 as "Single Line 1"
                nombre
                correo
                telefono
                direccion
                ciudad
                pais
            )
            filters 
            (
                pais
            )
            options
            (
                display rows = 100
            )
        }

        form  pais
        {
            
            must  have  pais
            (
                type  =  text
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        list  pais_View
        {
            displayname = "pais View"
            show  all  rows  from  pais 
            (
                pais
            )
            options
            (
                display rows = 100
            )
        }

        form  clientes
        {
            
            must  have  cliente
            (
                type  =  picklist
                values  =  cliente.nombre
            )

            producto
            (
                type  =  text
            )

            cantidad
            (
                type  =  text
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        list  clientes_View
        {
            displayname = "clientes View"
            show  all  rows  from  clientes 
            (
                cliente
                producto
                cantidad
            )
            filters 
            (
                cliente
            )
            options
            (
                display rows = 100
            )
        }

    }

}
