Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
08/11/08 16:11:10 (5 months ago)
Author:
machosry
Message:

address hierarchy: completed few enhancements suggested in the dev call. still the portlet overriding is not solved yet.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs-modules/addresshierarchy

    • Property svn:ignore set to
      dist
      build
  • openmrs-modules/addresshierarchy/metadata/sqldiff.xml

    r4705 r5238  
    2727                location_attribute_type_id int(11) NOT NULL auto_increment, 
    2828                name varchar(160) NOT NULL, 
     29                choice int(1) NOT NULL, 
     30                listorder int(2) NOT NULL, 
    2931                PRIMARY KEY (location_attribute_type_id) 
    3032            ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 
     
    4345                        ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 
    4446                         
    45 INSERT INTO address_hierarchy_type (name) VALUES ('Country'); 
    46 INSERT INTO address_hierarchy_type (name) VALUES ('State/Province'); 
    47 INSERT INTO address_hierarchy_type (name) VALUES ('Sub Location 1'); 
    48 INSERT INTO address_hierarchy_type (name) VALUES ('Sub Location 2'); 
    49 INSERT INTO address_hierarchy_type (name) VALUES ('Sub Location 3'); 
    50 INSERT INTO address_hierarchy_type (name) VALUES ('Sub Location 4'); 
    51 INSERT INTO address_hierarchy_type (name) VALUES ('Sub Location 5'); 
    52 INSERT INTO address_hierarchy_type (name) VALUES ('Sub Location 6'); 
    53 INSERT INTO address_hierarchy_type (name) VALUES ('Postal Code'); 
    54 INSERT INTO address_hierarchy_type (name) VALUES ('Longitude'); 
    55 INSERT INTO address_hierarchy_type (name) VALUES ('Latitude');  
     47INSERT INTO address_hierarchy_type (name,choice,listorder) VALUES ('Country',1,1); 
     48INSERT INTO address_hierarchy_type (name,choice,listorder) VALUES ('State/Province',1,2); 
     49INSERT INTO address_hierarchy_type (name,choice,listorder) VALUES ('City/Village',1,3); 
     50INSERT INTO address_hierarchy_type (name,choice,listorder) VALUES ('Neighborhood/Cell',1,4); 
     51INSERT INTO address_hierarchy_type (name,choice,listorder) VALUES ('County/District',1,5); 
     52INSERT INTO address_hierarchy_type (name,choice,listorder) VALUES ('Township/Division',1,6); 
     53INSERT INTO address_hierarchy_type (name,choice,listorder) VALUES ('Sub Region',1,7); 
     54INSERT INTO address_hierarchy_type (name,choice,listorder) VALUES ('Region',1,8); 
     55INSERT INTO address_hierarchy_type (name,choice,listorder) VALUES ('Postal Code',1,9); 
     56INSERT INTO address_hierarchy_type (name,choice,listorder) VALUES ('Longitude',1,10); 
     57INSERT INTO address_hierarchy_type (name,choice,listorder) VALUES ('Latitude',1,11);  
    5658                </sql> 
    5759        </diff>