[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9388 - in trunk/gnue-sample/forms: . customers
From: |
reinhard |
Subject: |
[gnue] r9388 - in trunk/gnue-sample/forms: . customers |
Date: |
Tue, 20 Feb 2007 12:52:03 -0600 (CST) |
Author: reinhard
Date: 2007-02-20 12:52:02 -0600 (Tue, 20 Feb 2007)
New Revision: 9388
Added:
trunk/gnue-sample/forms/customers/
trunk/gnue-sample/forms/customers/de.gfd
Modified:
trunk/gnue-sample/forms/customers.gfd
trunk/gnue-sample/forms/invoices.gfd
Log:
Added German translation for customer form, added option to customer form to
call invoice form.
Added: trunk/gnue-sample/forms/customers/de.gfd
===================================================================
--- trunk/gnue-sample/forms/customers/de.gfd 2007-02-20 18:50:47 UTC (rev
9387)
+++ trunk/gnue-sample/forms/customers/de.gfd 2007-02-20 18:52:02 UTC (rev
9388)
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ GNU Enterprise Sample Application - Customers - German translation
+
+ Copyright 2001-2007 Free Software Foundation
+
+ This file is part of GNU Enterprise
+
+ GNU Enterprise is free software; you can redistribute it
+ and/or modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2, or (at your option) any later version.
+
+ GNU Enterprise is distributed in the hope that it will be
+ useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE. See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with program; see the file COPYING. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place
+ - Suite 330, Boston, MA 02111-1307, USA.
+ -->
+
+<form title="Kunden">
+ <options>
+ <option name="author" value="GNU Enterprise Beispielanwendung"/>
+ <option name="description" value="Kundenstammverwaltung"/>
+ </options>
+
+ <menu name="__extra_menu__">
+ <menu name="mnu_customer" label="Kunde">
+ <menuitem name="mnu_invoice" label="Rechnung erstellen"/>
+ </menu>
+ </menu>
+
+ <layout>
+ <page name="pg_customer">
+ <vbox name="box">
+ <entry name="code" label="Kundennummer:"/>
+ <entry name="name" label="Name:"/>
+ <entry name="address1" label="Adresszeile 1:"/>
+ <entry name="address2" label="Adresszeile 2:"/>
+ <entry name="city" label="Ort:"/>
+ <entry name="zip" label="PLZ:"/>
+
+ <hbox name="country">
+ <entry name="country_code" label="Länderkürzel:"/>
+ <entry name="country_name" label="Land:"/>
+ </hbox>
+
+ <entry name="inactive" label="gesperrt" />
+ <entry name="billing" label="Rechnungsempfänger:" />
+ <entry name="created" label="Anlagedatum:"/>
+ <entry name="lastinv" label="Datum der letzten Rechnung:"/>
+ </vbox>
+ </page>
+ </layout>
+</form>
Property changes on: trunk/gnue-sample/forms/customers/de.gfd
___________________________________________________________________
Name: svn:keywords
+ Id
Modified: trunk/gnue-sample/forms/customers.gfd
===================================================================
--- trunk/gnue-sample/forms/customers.gfd 2007-02-20 18:50:47 UTC (rev
9387)
+++ trunk/gnue-sample/forms/customers.gfd 2007-02-20 18:52:02 UTC (rev
9388)
@@ -25,12 +25,32 @@
<form title="Customers">
<options>
- <author>GNU Enterprise Samples</author>
- <version>$Rev$</version>
- <description>Our customers.</description>
+ <option name="author" value="GNU Enterprise Samples"/>
+ <option name="version" value="$Rev$"/>
+ <option name="description" value="Our customers."/>
</options>
<!-- ==================================================================== -->
+ <!-- Actions -->
+ <!-- ==================================================================== -->
+
+ <menu name="__extra_menu__">
+ <menu name="mnu_customer" label="Customer">
+ <menuitem name="mnu_invoice" label="Create Invoice"
action="act_invoice"/>
+ </menu>
+ </menu>
+
+ <action name="act_invoice">
+ runForm("forms/invoices.gfd",
+ parameters={'prm_customer': blk_customer.id.value})
+ </action>
+
+ <trigger name="status-change" type="ON-STATUSCHANGE">
+ status = blk_customer.get_record_status()
+ act_invoice.enabled = status in ('clean', 'modified')
+ </trigger>
+
+ <!-- ==================================================================== -->
<!-- Datasources -->
<!-- ==================================================================== -->
@@ -66,6 +86,7 @@
<logic>
<block name="blk_customer" datasource="dts_customer">
+ <field name="id" field="id" datatype="number" length="8" scale="2"/>
<field name="code" field="code" datatype="text" length="16"
case="upper" editable="new" />
<field name="name" field="name" datatype="text" length="50" />
Modified: trunk/gnue-sample/forms/invoices.gfd
===================================================================
--- trunk/gnue-sample/forms/invoices.gfd 2007-02-20 18:50:47 UTC (rev
9387)
+++ trunk/gnue-sample/forms/invoices.gfd 2007-02-20 18:52:02 UTC (rev
9388)
@@ -31,6 +31,12 @@
</options>
<!-- ==================================================================== -->
+ <!-- Parameters -->
+ <!-- ==================================================================== -->
+
+ <parameter name="prm_customer" datatype="number" length="8" scale="0"/>
+
+ <!-- ==================================================================== -->
<!-- Datasources -->
<!-- ==================================================================== -->
@@ -94,6 +100,9 @@
<field name="grand_total" field="grand_total" datatype="number"
length="9" scale="2"/>
+ <field name="customer_id" field="customer" datatype="number" length="8"
+ scale="0"/>
+
<field name="customer" field="customer" fk_key="id" fk_description="name"
fk_source="dts_customer" />
@@ -189,6 +198,18 @@
</logic>
<!-- ==================================================================== -->
+ <!-- Form triggers -->
+ <!-- ==================================================================== -->
+
+ <trigger type="ON-ACTIVATION">
+ # If a customer was given as a parameter, create a new invoice for that
+ # customer.
+ if prm_customer.value is not None:
+ blk_invoice.new_record()
+ blk_invoice.customer_id.value = prm_customer.value
+ </trigger>
+
+ <!-- ==================================================================== -->
<!-- Layout -->
<!-- ==================================================================== -->
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9388 - in trunk/gnue-sample/forms: . customers,
reinhard <=