[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r140 - in gnue-pim: . forms
From: |
kilo |
Subject: |
r140 - in gnue-pim: . forms |
Date: |
Thu, 25 Nov 2004 07:44:02 -0600 (CST) |
Author: kilo
Date: 2004-11-25 07:44:02 -0600 (Thu, 25 Nov 2004)
New Revision: 140
Added:
gnue-pim/forms/PERSON_Person.gfd
Modified:
gnue-pim/NEWS
gnue-pim/forms/pim.gfd
Log:
GNUe PIM.
Added Person form.
Modified: gnue-pim/NEWS
===================================================================
--- gnue-pim/NEWS 2004-11-25 12:07:31 UTC (rev 139)
+++ gnue-pim/NEWS 2004-11-25 13:44:02 UTC (rev 140)
@@ -0,0 +1,8 @@
+*********************
+GNUe PIM - Project CV
+*********************
+
+New features / changes by 2004.11.25.
+*Designed new main form.
+*Added Person form.
+
Added: gnue-pim/forms/PERSON_Person.gfd
===================================================================
--- gnue-pim/forms/PERSON_Person.gfd 2004-11-25 12:07:31 UTC (rev 139)
+++ gnue-pim/forms/PERSON_Person.gfd 2004-11-25 13:44:02 UTC (rev 140)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="iso8859-1"?>
+
+<!-- PERSON_Person Form
+
+ Copyright 2004 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 of
+ the License, 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 GNU Enterprise; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ $Id$
+-->
+
+<form style="dialog" xmlns:c="GNUe:Layout:Char" title="Person">
+ <options/>
+
+ <trigger type="On-Activation">
+ match = getParameter('id')
+ if match:
+ dts.simpleQuery({'gnue_id': match})
+ </trigger>
+
+ <datasource name="dts" connection="pim" table="PERSON_Person"/>
+
+ <logic>
+ <block name="blk" datasource="dts">
+ <field name="fldPersonName1" field="PERSON_name1" maxLength="35"/>
+ <field name="fldPersonName2" field="PERSON_name2" maxLength="35"/>
+ <field name="fldPersonName3" field="PERSON_name3" maxLength="35"/>
+ </block>
+ </logic>
+
+ <layout c:height="4" c:width="46">
+ <page>
+ <label name="lblName1:" c:height="1" c:width="5" c:x="1" c:y="1"
+ text="Name1:"/>
+ <entry name="entName1" c:height="1" c:width="35" c:x="7" c:y="1"
+ block="blk" field="fldPersonName1" focusorder="1" label=""/>
+ <label name="lblName2:" c:height="1" c:width="5" c:x="1" c:y="2"
+ text="Name2:"/>
+ <entry name="entName2" c:height="1" c:width="35" c:x="7" c:y="2"
+ block="blk" field="fldPersonName2" focusorder="2" label=""/>
+ <label name="lblName3:" c:height="1" c:width="5" c:x="1" c:y="3"
+ text="Name3:"/>
+ <entry name="entName3" c:height="1" c:width="35" c:x="7" c:y="3"
+ block="blk" field="fldPersonName3" focusorder="3" label=""/>
+ </page>
+ </layout>
+
+</form>
Property changes on: gnue-pim/forms/PERSON_Person.gfd
___________________________________________________________________
Name: svn:keywords
+ Id
Modified: gnue-pim/forms/pim.gfd
===================================================================
--- gnue-pim/forms/pim.gfd 2004-11-25 12:07:31 UTC (rev 139)
+++ gnue-pim/forms/pim.gfd 2004-11-25 13:44:02 UTC (rev 140)
@@ -27,7 +27,8 @@
<form title="GNUe PIM">
<options/>
- <datasource name="dtsPERSON_Person" connection="pim" table="PERSON_Person"/>
+ <datasource name="dtsPERSON_Person" connection="pim" table="PERSON_Person"
+ prequery="Y" />
<datasource name="dtsPIM_AdPe" connection="pim" table="PIM_AdPe" />
<datasource name="dtsPIM_PeCo" connection="pim" table="PIM_PeCo" />
<datasource name="dtsPIM_PaPe" connection="pim" table="PIM_PaPe" />
@@ -44,7 +45,10 @@
fk_source="dtsPERSON_Person" fk_key="gnue_id"
fk_description="PERSON_name1">
<trigger type="POST-CHANGE" name="postchange">
- pass
+ person = blkPIM_AdPe.fldAdpePerson.get()
+ if person:
+ print 'Person: %s' % person
+ dtsPIM_AdPe.simpleQuery({'PIM_person': person})
</trigger>
</field>
<field name="fldAdpeAddress" field="PIM_addr"/>
@@ -80,6 +84,11 @@
block="blkPIM_AdPe" field="fldAdpePerson" style="dropdown" />
<button name="btnEditPerson" c:height="1" c:width="12" c:x="22" c:y="1"
label="Add/Edit...">
+ <trigger type="ON-ACTION" name="btnEditPersonTrigger">
+ params = {'id': blkPIM_AdPe.fldAdpePerson.get() or ''}
+ form.runForm('PERSON_Person.gfd', params)
+ blkPIM_AdPe.fldAdpePerson.resetForeignKey()
+ </trigger>
</button>
<!--Address box-->
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r140 - in gnue-pim: . forms,
kilo <=