[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r112 - in gnue-invoice: . forms
From: |
kilo |
Subject: |
r112 - in gnue-invoice: . forms |
Date: |
Fri, 12 Nov 2004 04:08:16 -0600 (CST) |
Author: kilo
Date: 2004-11-12 04:08:15 -0600 (Fri, 12 Nov 2004)
New Revision: 112
Modified:
gnue-invoice/forms/INV_Head.gfd
gnue-invoice/forms/INV_PaymentMethod.gfd
gnue-invoice/forms/ITEM_Item.gfd
gnue-invoice/forms/ITEM_ItemType.gfd
gnue-invoice/forms/ITEM_UnitType.gfd
gnue-invoice/forms/LOC_Address.gfd
gnue-invoice/forms/LOC_Country.gfd
gnue-invoice/forms/LOC_Region.gfd
gnue-invoice/forms/LOC_Street.gfd
gnue-invoice/forms/LOC_Zip.gfd
gnue-invoice/forms/PARTY_Party.gfd
gnue-invoice/forms/TAX_Vat.gfd
gnue-invoice/news
gnue-invoice/todo
Log:
GNUe Invoice.
Open dialogs with values loaded.
Modified: gnue-invoice/forms/INV_Head.gfd
===================================================================
--- gnue-invoice/forms/INV_Head.gfd 2004-11-12 09:07:54 UTC (rev 111)
+++ gnue-invoice/forms/INV_Head.gfd 2004-11-12 10:08:15 UTC (rev 112)
@@ -195,7 +195,8 @@
<button name="btnEditBuyer" c:height="1" c:width="6" c:x="44" c:y="2"
label="Edit...">
<trigger type="ON-ACTION" name="btnEditBuyerTrigger">
- form.runForm('PARTY_Party.gfd')
+ params = {'id': blkINV_Head.fldInvBuyer.get() or ''}
+ form.runForm('PARTY_Party.gfd', params)
blkINV_Head.fldInvBuyer.resetForeignKey()
</trigger>
</button>
@@ -206,7 +207,8 @@
<button name="btnEditPaymMeth" c:height="1" c:width="6" c:x="44" c:y="3"
label="Edit...">
<trigger type="ON-ACTION" name="btnEditPaymentMethodTrigger">
- form.runForm('INV_PaymentMethod.gfd')
+ params = {'id': blkINV_Head.fldInvPaymentmethod.get() or ''}
+ form.runForm('INV_PaymentMethod.gfd', params)
blkINV_Head.fldInvPaymentmethod.resetForeignKey()
</trigger>
</button>
@@ -239,7 +241,8 @@
<button name="btnEditItem" c:height="1" c:width="6" c:x="14" c:y="11"
label="Edit...">
<trigger type="ON-ACTION" name="btnEditItemTrigger">
- form.runForm('ITEM_Item.gfd')
+ params = {'id': blkINV_Item.fldInvProduct.get() or ''}
+ form.runForm('ITEM_Item.gfd', params)
blkINV_Item.fldInvProduct.resetForeignKey()
</trigger>
</button>
Modified: gnue-invoice/forms/INV_PaymentMethod.gfd
===================================================================
--- gnue-invoice/forms/INV_PaymentMethod.gfd 2004-11-12 09:07:54 UTC (rev
111)
+++ gnue-invoice/forms/INV_PaymentMethod.gfd 2004-11-12 10:08:15 UTC (rev
112)
@@ -26,6 +26,12 @@
<form style="dialog" xmlns:c="GNUe:Layout:Char" title="Payment Method">
<options/>
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
<datasource name="dts" connection="invoice" table="INV_PaymentMethod"/>
<logic>
Modified: gnue-invoice/forms/ITEM_Item.gfd
===================================================================
--- gnue-invoice/forms/ITEM_Item.gfd 2004-11-12 09:07:54 UTC (rev 111)
+++ gnue-invoice/forms/ITEM_Item.gfd 2004-11-12 10:08:15 UTC (rev 112)
@@ -26,6 +26,12 @@
<form style="dialog" xmlns:c="GNUe:Layout:Char" title="Item">
<options/>
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
<datasource name="dts" connection="invoice" table="ITEM_Item"/>
<datasource name="dts_ITEM_ItemType" connection="invoice" prequery="Y"
table="ITEM_ItemType"/>
@@ -57,7 +63,8 @@
<button name="btnEditType" c:height="1" c:width="6" c:x="41" c:y="1"
label="Edit...">
<trigger type="On-Action" name="btnEditTypeTrigger">
- form.runForm('ITEM_ItemType.gfd')
+ params = {'id': blk.fldItemType.get() or ''}
+ form.runForm('ITEM_ItemType.gfd', params)
blk.fldItemType.resetForeignKey()
</trigger>
</button>
@@ -80,7 +87,8 @@
<button name="btnEditUnit" c:height="1" c:width="6" c:x="41" c:y="5"
label="Edit...">
<trigger type="On-Action" name="btnEditUnitTrigger">
- form.runForm('ITEM_UnitType.gfd')
+ params = {'id': blk.fldItemUnit.get() or ''}
+ form.runForm('ITEM_UnitType.gfd', params)
blk.fldItemUnit.resetForeignKey()
</trigger>
</button>
@@ -91,7 +99,8 @@
<button name="btnEditVat" c:height="1" c:width="6" c:x="41" c:y="6"
label="Edit...">
<trigger type="On-Action" name="btnEditVatTrigger">
- form.runForm('TAX_Vat.gfd')
+ params = {'id': blk.fldItemVat.get() or ''}
+ form.runForm('TAX_Vat.gfd', params)
blk.fldItemVat.resetForeignKey()
</trigger>
</button>
Modified: gnue-invoice/forms/ITEM_ItemType.gfd
===================================================================
--- gnue-invoice/forms/ITEM_ItemType.gfd 2004-11-12 09:07:54 UTC (rev
111)
+++ gnue-invoice/forms/ITEM_ItemType.gfd 2004-11-12 10:08:15 UTC (rev
112)
@@ -26,6 +26,12 @@
<form style="dialog" xmlns:c="GNUe:Layout:Char" title="Item type">
<options/>
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
<datasource name="dts" connection="invoice" table="ITEM_ItemType"/>
<logic>
Modified: gnue-invoice/forms/ITEM_UnitType.gfd
===================================================================
--- gnue-invoice/forms/ITEM_UnitType.gfd 2004-11-12 09:07:54 UTC (rev
111)
+++ gnue-invoice/forms/ITEM_UnitType.gfd 2004-11-12 10:08:15 UTC (rev
112)
@@ -26,6 +26,12 @@
<form style="dialog" xmlns:c="GNUe:Layout:Char" title="UnitType">
<options/>
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
<datasource name="dts" connection="invoice" table="ITEM_UnitType"/>
<logic>
Modified: gnue-invoice/forms/LOC_Address.gfd
===================================================================
--- gnue-invoice/forms/LOC_Address.gfd 2004-11-12 09:07:54 UTC (rev 111)
+++ gnue-invoice/forms/LOC_Address.gfd 2004-11-12 10:08:15 UTC (rev 112)
@@ -26,6 +26,12 @@
<form style="dialog" xmlns:c="GNUe:Layout:Char" title="Address">
<options/>
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
<datasource name="dts" connection="invoice" table="LOC_Address"/>
<datasource name="dts_LOC_Zip" connection="invoice" prequery="Y"
table="LOC_Zip"/>
@@ -59,7 +65,8 @@
<button name="btnEditCountry" c:height="1" c:width="6" c:x="42" c:y="1"
label="Edit...">
<trigger type="ON-ACTION" name="btnEditCountryTrigger">
- form.runForm('LOC_Country.gfd')
+ params = {'id': blk.fldLocCountry.get() or ''}
+ form.runForm('LOC_Country.gfd', params)
blk.fldLocCountry.resetForeignKey()
</trigger>
</button>
@@ -70,7 +77,8 @@
<button name="btnEditZip" c:height="1" c:width="6" c:x="42" c:y="2"
label="Edit...">
<trigger type="ON-ACTION" name="btnEditZipTrigger">
- form.runForm('LOC_Zip.gfd')
+ params = {'id': blk.fldLocZip.get() or ''}
+ form.runForm('LOC_Zip.gfd', params)
blk.fldLocZip.resetForeignKey()
</trigger>
</button>
@@ -81,7 +89,8 @@
<button name="btnEditStreet" c:height="1" c:width="6" c:x="42" c:y="3"
label="Edit...">
<trigger type="ON-ACTION" name="btnEditStreetTrigger">
- form.runForm('LOC_Street.gfd')
+ params = {'id': blk.fldLocStreet.get() or ''}
+ form.runForm('LOC_Street.gfd', params)
blk.fldLocStreet.resetForeignKey()
</trigger>
</button>
Modified: gnue-invoice/forms/LOC_Country.gfd
===================================================================
--- gnue-invoice/forms/LOC_Country.gfd 2004-11-12 09:07:54 UTC (rev 111)
+++ gnue-invoice/forms/LOC_Country.gfd 2004-11-12 10:08:15 UTC (rev 112)
@@ -26,6 +26,12 @@
<form style="dialog" xmlns:c="GNUe:Layout:Char" title="Country">
<options/>
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
<datasource name="dts" connection="invoice" table="LOC_Country"/>
<logic>
Modified: gnue-invoice/forms/LOC_Region.gfd
===================================================================
--- gnue-invoice/forms/LOC_Region.gfd 2004-11-12 09:07:54 UTC (rev 111)
+++ gnue-invoice/forms/LOC_Region.gfd 2004-11-12 10:08:15 UTC (rev 112)
@@ -26,6 +26,12 @@
<form style="dialog" xmlns:c="GNUe:Layout:Char" title="Region">
<options/>
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
<datasource name="dts" connection="invoice" table="LOC_Region"/>
<datasource name="dts_LOC_Country" connection="invoice" prequery="Y"
table="LOC_Country"/>
@@ -56,7 +62,8 @@
<button name="btnEditCountry" c:height="1" c:width="6" c:x="40" c:y="3"
label="Edit...">
<trigger type="ON-ACTION" name="btnEditCountryTrigger">
- form.runForm('LOC_Country.gfd')
+ params = {'id': blk.fldLocCountry.get() or ''}
+ form.runForm('LOC_Country.gfd', params)
blk.fldLocCountry.resetForeignKey()
</trigger>
</button>
Modified: gnue-invoice/forms/LOC_Street.gfd
===================================================================
--- gnue-invoice/forms/LOC_Street.gfd 2004-11-12 09:07:54 UTC (rev 111)
+++ gnue-invoice/forms/LOC_Street.gfd 2004-11-12 10:08:15 UTC (rev 112)
@@ -26,6 +26,12 @@
<form style="dialog" xmlns:c="GNUe:Layout:Char" title="Street names">
<options/>
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
<datasource name="dts" connection="invoice" table="LOC_Street"/>
<logic>
Modified: gnue-invoice/forms/LOC_Zip.gfd
===================================================================
--- gnue-invoice/forms/LOC_Zip.gfd 2004-11-12 09:07:54 UTC (rev 111)
+++ gnue-invoice/forms/LOC_Zip.gfd 2004-11-12 10:08:15 UTC (rev 112)
@@ -26,6 +26,12 @@
<form style="dialog" xmlns:c="GNUe:Layout:Char" title="Postal Code">
<options/>
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
<datasource name="dts" connection="invoice" table="LOC_Zip"/>
<datasource name="dts_LOC_Region" connection="invoice" prequery="Y"
table="LOC_Region"/>
@@ -56,7 +62,8 @@
<button name="btnEditRegion" c:height="1" c:width="6" c:x="42" c:y="3"
label="Edit...">
<trigger type="ON-ACTION" name="btnEditRegionTrigger">
- form.runForm('LOC_Region.gfd')
+ params = {'id': blk.fldLocRegion.get() or ''}
+ form.runForm('LOC_Region.gfd', params)
blk.fldLocRegion.resetForeignKey()
</trigger>
</button>
Modified: gnue-invoice/forms/PARTY_Party.gfd
===================================================================
--- gnue-invoice/forms/PARTY_Party.gfd 2004-11-12 09:07:54 UTC (rev 111)
+++ gnue-invoice/forms/PARTY_Party.gfd 2004-11-12 10:08:15 UTC (rev 112)
@@ -26,6 +26,12 @@
<form style="dialog" xmlns:c="GNUe:Layout:Char" title="Party">
<options/>
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
<datasource name="dts" connection="invoice" table="PARTY_Party"/>
<datasource name="dts_LOC_Address" connection="invoice" prequery="Y"
table="LOC_Address"/>
@@ -57,7 +63,8 @@
<button name="btnEditAddress" c:height="1" c:width="6" c:x="38" c:y="3"
label="Edit...">
<trigger type="On-Action" name="btnEditAddressTrigger">
- form.runForm('LOC_Address.gfd')
+ params = {'id': blk.fldPartyAddress.get() or ''}
+ form.runForm('LOC_Address.gfd', params)
blk.fldPartyAddress.resetForeignKey()
</trigger>
</button>
Modified: gnue-invoice/forms/TAX_Vat.gfd
===================================================================
--- gnue-invoice/forms/TAX_Vat.gfd 2004-11-12 09:07:54 UTC (rev 111)
+++ gnue-invoice/forms/TAX_Vat.gfd 2004-11-12 10:08:15 UTC (rev 112)
@@ -26,6 +26,12 @@
<form style="dialog" xmlns:c="GNUe:Layout:Char" title="VAT">
<options/>
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
<datasource name="dts" connection="invoice" table="TAX_Vat"/>
<logic>
Modified: gnue-invoice/news
===================================================================
--- gnue-invoice/news 2004-11-12 09:07:54 UTC (rev 111)
+++ gnue-invoice/news 2004-11-12 10:08:15 UTC (rev 112)
@@ -2,15 +2,17 @@
*************************
GNUe Invoice - Project CV
*************************
-New features / changes by 2004.11.11
+New features / changes by 2004.11.12
* Converted all subforms to dialogs to provide modality.
- Removed '@' buttons.
+ Removed '@' buttons.
+* Dialogs come up showing the value selected in the calling form's dropdown.
+ If no value was selected before calling the dialog, it shows up empty.
New features / changes by 2004.11.11
* Converted Item-related forms to use dialogs to edit dropdown valuesets.
- As dialogs are modal, the dropdown valueset refreshes automaticaly
- on closing the dialog, so there is no need any further for the '@' button
- to refresh it manually.
+ As dialogs are modal, the dropdown valueset refreshes automaticaly
+ on closing the dialog, so there is no need any further for the '@' button
+ to refresh it manually.
New features / changes by 2004.10.28
* Display the display the sum of an invoice line.
Modified: gnue-invoice/todo
===================================================================
--- gnue-invoice/todo 2004-11-12 09:07:54 UTC (rev 111)
+++ gnue-invoice/todo 2004-11-12 10:08:15 UTC (rev 112)
@@ -4,16 +4,6 @@
*************************************
-MAKE DIALOGS EDIT SELECTED VALUE
-================================
- When a subform (dialog) opens up, automatically open it with the record
- to be edited loaded.
- If no entry was selected on the dropdown before opening up the dialog,
- it should show up empty - just ready for adding a new record.
-
- Status: in progress
-
-
PROPERLY INITIALIZE DATE DUE ENTRY
==================================
When producing several invoices continously, it is not cleared after
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r112 - in gnue-invoice: . forms,
kilo <=