/[papo]/gnue/forms/samples/inventory/forms/company.gfd
ViewVC logotype

Diff of /gnue/forms/samples/inventory/forms/company.gfd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by charlie, Fri Jun 28 19:43:53 2002 UTC revision 1.1.4.1 by anthonyl, Tue Mar 4 22:18:20 2003 UTC
# Line 1  Line 1 
1  <?xml version="1.0"?>  <?xml version="1.0"?>
2    
3  <!--  GNUe Designer (0.1.0)  <!--  GNUe Forms 0.5.0 Migration Tool
4        Form saved on: 2001-11-04 22:03:07  -->        Saved on: 2002-11-26 20:28:15  -->
5    
6  <form width="42" title="Company Management" height="10">  <form title="Company Management">
7    <options>    <options>
8      <option value="0.0.1" name="version"/>      <option name="version" value="0.0.1"/>
9    </options>    </options>
10    <datasource cache="5" database="dtbsgnue" name="dtsrccompany"    <datasource name="dtsrccompany" cache="5" connection="gnue"
11                table="company"/>                table="company"/>
12    <datasource table="zipcode" name="ziplookup" database="dtbsgnue"/>    <datasource name="ziplookup" connection="gnue" table="zipcode"/>
13    <page name="Page_1">    <logic>
14      <block name="blckcompany" datasource="dtsrccompany">      <block name="blckcompany" datasource="dtsrccompany">
15        <label x="1" y="1" name="Label_1" text="Company Name"/>        <field name="ntryname" case="upper" field="name" max_length="60">
       <entry x="1" y="2" field="name" name="ntryname" case="upper"  
              max_length="60" width="40">  
16          <options>          <options>
17            <option name="tip" value="Please enter the value for company name."/>            <option name="tip" value="Please enter the value for company name."/>
18          </options>          </options>
19        </entry>        </field>
20        <label x="1" y="3" name="Label_2" text="Address"/>        <field name="ntryaddr1" case="upper" field="addr1" max_length="60">
       <entry x="1" y="4" field="addr1" name="ntryaddr1" case="upper"  
              max_length="60" width="40">  
21          <options>          <options>
22            <option name="tip"            <option name="tip"
23                    value="Please enter the value for first line of address."/>                    value="Please enter the value for first line of address."/>
24          </options>          </options>
25        </entry>        </field>
26        <entry x="1" y="5" field="addr2" name="ntryaddr2" case="upper"        <field name="ntryaddr2" case="upper" field="addr2" max_length="60">
              max_length="60" width="40">  
27          <options>          <options>
28            <option name="tip"            <option name="tip"
29                    value="Please enter the value for second line of address"/>                    value="Please enter the value for second line of address"/>
30          </options>          </options>
31        </entry>        </field>
32        <label x="1" y="6" name="Label_3" text="City"/>        <field name="ntrycity" case="upper" field="city" max_length="40"
33        <entry x="1" y="7" field="city" name="ntrycity" case="upper"               readonly="">
              max_length="40" readonly="" width="25">  
34          <options>          <options>
35            <option name="tip" value="Please enter the value for city."/>            <option name="tip" value="Please enter the value for city."/>
36          </options>          </options>
37        </entry>        </field>
38        <label x="27" y="6" name="Label_4" text="ST"/>        <field name="ntrystate" case="upper" field="state" max_length="2"
39        <entry x="27" y="7" field="state" name="ntrystate" case="upper"               readonly="">
              max_length="2" readonly="" width="3">  
40          <options>          <options>
41            <option name="tip" value="Please enter the value for state."/>            <option name="tip" value="Please enter the value for state."/>
42          </options>          </options>
43        </entry>        </field>
44        <label x="31" y="6" name="Label_5" text="Zip"/>        <field name="ntryzip" case="upper" field="zip" max_length="10">
       <entry x="31" y="7" field="zip" name="ntryzip" case="upper"  
              max_length="10" width="10">  
45          <options>          <options>
46            <option name="tip" value="Please enter the value for zip code."/>            <option name="tip" value="Please enter the value for zip code."/>
47          </options>          </options>
48          <trigger type="PRE-FOCUSOUT" name="Trigger_1">          <trigger name="Trigger_1" type="PRE-FOCUSOUT"><![CDATA[
49  print "zipcode",self._value  print "zipcode",self._value
50  #ziplookup.clear()        #ziplookup.clear()      
51  #ziplookup.setField(0,"zipcode",self.value,TRUE)  #ziplookup.setField(0,"zipcode",self.value,TRUE)
# Line 64  state = rs.current.getField("state") Line 55  state = rs.current.getField("state")
55  city  = rs.current.getField("city")  city  = rs.current.getField("city")
56  blckcompany.fields.ntrycity = city  blckcompany.fields.ntrycity = city
57  blckcompany.fields.ntrystate = state  blckcompany.fields.ntrystate = state
58              </trigger>              ]]></trigger>
59        </entry>        </field>
60        <label x="1" y="8" name="Label_6" text="Phone Number"/>        <field name="ntryphone" case="upper" field="phone" max_length="20">
       <entry x="1" y="9" field="phone" name="ntryphone" case="upper"  
              max_length="20" width="19">  
61          <options>          <options>
62            <option name="tip" value="Please enter the value for phone number."/>            <option name="tip" value="Please enter the value for phone number."/>
63          </options>          </options>
64        </entry>        </field>
65        <label x="22" y="8" name="Label_7" text="Fax Number"/>        <field name="ntryfax" case="upper" field="fax" max_length="20">
       <entry x="22" y="9" field="fax" name="ntryfax" case="upper"  
              max_length="20" width="19">  
66          <options>          <options>
67            <option name="tip" value="Please enter the value for fax number."/>            <option name="tip" value="Please enter the value for fax number."/>
68          </options>          </options>
69        </entry>        </field>
70      </block>      </block>
71    </page>    </logic>
72    <database provider="postgresql" dbname="gnue" host="gnue" name="dtbsgnue"    <layout xmlns:c="GNUe:Layout:Char" c:height="10" c:width="42">
73              comment=""/>      <page name="Page_1">
74          <label name="Label_1" text="Company Name" c:x="1" c:y="1"/>
75          <entry block="blckcompany" field="ntryname" c:width="40" c:x="1" c:y="2"/>
76          <label name="Label_2" text="Address" c:x="1" c:y="3"/>
77          <entry block="blckcompany" field="ntryaddr1" c:width="40" c:x="1"
78                 c:y="4"/>
79          <entry block="blckcompany" field="ntryaddr2" c:width="40" c:x="1"
80                 c:y="5"/>
81          <label name="Label_3" text="City" c:x="1" c:y="6"/>
82          <entry block="blckcompany" field="ntrycity" c:width="25" c:x="1" c:y="7"/>
83          <label name="Label_4" text="ST" c:x="27" c:y="6"/>
84          <entry block="blckcompany" field="ntrystate" c:width="3" c:x="27"
85                 c:y="7"/>
86          <label name="Label_5" text="Zip" c:x="31" c:y="6"/>
87          <entry block="blckcompany" field="ntryzip" c:width="10" c:x="31" c:y="7"/>
88          <label name="Label_6" text="Phone Number" c:x="1" c:y="8"/>
89          <entry block="blckcompany" field="ntryphone" c:width="19" c:x="1"
90                 c:y="9"/>
91          <label name="Label_7" text="Fax Number" c:x="22" c:y="8"/>
92          <entry block="blckcompany" field="ntryfax" c:width="19" c:x="22" c:y="9"/>
93        </page>
94      </layout>
95  </form>  </form>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.4.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26