Commit 292bd731 by Nilu

edit client modifications

parent 3e27bee9
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
<column name="state" type="String" nullable="true" length="200"/> <column name="state" type="String" nullable="true" length="200"/>
<column name="country" type="String" nullable="true" length="200"/> <column name="country" type="String" nullable="true" length="200"/>
<column name="post_code" type="String" nullable="true" length="10"/> <column name="post_code" type="String" nullable="true" length="10"/>
<column name="city" type="String" nullable="true" length="100"/>
<column name="time_zone" type="String" nullable="true" length="200"/>
<column name="company_id" type="Long" length="11" nullable="true"/> <column name="company_id" type="Long" length="11" nullable="true"/>
</NODE> </NODE>
......
...@@ -17,6 +17,8 @@ CREATE TABLE tl_client ( ...@@ -17,6 +17,8 @@ CREATE TABLE tl_client (
state varchar(200) NULL, state varchar(200) NULL,
country varchar(200) NULL, country varchar(200) NULL,
post_code varchar(10) NULL, post_code varchar(10) NULL,
city varchar(100) NULL,
time_zone varchar(200) NULL,
company_id numeric(12) NULL company_id numeric(12) NULL
); );
......
...@@ -18,6 +18,8 @@ CREATE TABLE tl_client ( ...@@ -18,6 +18,8 @@ CREATE TABLE tl_client (
state varchar2(200) NULL, state varchar2(200) NULL,
country varchar2(200) NULL, country varchar2(200) NULL,
post_code varchar2(10) NULL, post_code varchar2(10) NULL,
city varchar2(100) NULL,
time_zone varchar2(200) NULL,
company_id number(12) NULL company_id number(12) NULL
); );
......
...@@ -18,6 +18,8 @@ CREATE TABLE tl_client ( ...@@ -18,6 +18,8 @@ CREATE TABLE tl_client (
state varchar(200) NULL, state varchar(200) NULL,
country varchar(200) NULL, country varchar(200) NULL,
post_code varchar(10) NULL, post_code varchar(10) NULL,
city varchar(100) NULL,
time_zone varchar(200) NULL,
company_id numeric(12) NULL company_id numeric(12) NULL
); );
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<BUSINESSCLASS name="Client" package="performa.orm"> <BUSINESSCLASS name="Client" package="performa.orm">
<IMPORT value="performa.orm.types.*"/> <IMPORT value="performa.orm.types.*"/>
<IMPORT value="performa.orm.types.TimeZone"/>
<IMPORT value="oneit.business.shopping.orm.*"/> <IMPORT value="oneit.business.shopping.orm.*"/>
<MULTIPLEREFERENCE name="Jobs" type="Job" backreferenceName="Client" /> <MULTIPLEREFERENCE name="Jobs" type="Job" backreferenceName="Client" />
...@@ -20,7 +21,8 @@ ...@@ -20,7 +21,8 @@
<ATTRIB name="State" type="State" dbcol="state" mandatory="false" defaultValue="State.WA" attribHelper="EnumeratedAttributeHelper"/> <ATTRIB name="State" type="State" dbcol="state" mandatory="false" defaultValue="State.WA" attribHelper="EnumeratedAttributeHelper"/>
<ATTRIB name="Country" type="Countries" dbcol="country" mandatory="false" defaultValue="Countries.AU" attribHelper="EnumeratedAttributeHelper"/> <ATTRIB name="Country" type="Countries" dbcol="country" mandatory="false" defaultValue="Countries.AU" attribHelper="EnumeratedAttributeHelper"/>
<ATTRIB name="PostCode" type="String" dbcol="post_code" mandatory="false" length="10"/> <ATTRIB name="PostCode" type="String" dbcol="post_code" mandatory="false" length="10"/>
<ATTRIB name="City" type="String" dbcol="city" mandatory="false" length="100"/>
<ATTRIB name="TimeZone" type="TimeZone" dbcol="time_zone" mandatory="false" attribHelper="EnumeratedAttributeHelper"/>
<SINGLEREFERENCE name="Company" type="Company" dbcol="company_id" backreferenceName="Clients"/> <SINGLEREFERENCE name="Company" type="Company" dbcol="company_id" backreferenceName="Clients"/>
......
...@@ -38,32 +38,37 @@ ...@@ -38,32 +38,37 @@
<label class="label-16">Details</label> <label class="label-16">Details</label>
</div> </div>
<div class="form-group"> <div class="form-group">
<oneit:label GUIName="Client Name" /> <label><oneit:label GUIName="Client Name" /></label>
<oneit:ormInput obj="<%= client %>" type="text" attributeName="ClientName" cssClass="form-control" /> <oneit:ormInput obj="<%= client %>" type="text" attributeName="ClientName" cssClass="form-control" />
</div> </div>
<div class="form-group"> <div class="form-group">
<oneit:label GUIName="Client Logo" /> <label><oneit:ormlabel obj="<%= client %>" field="ClientLogo" /></label>
<oneit:ormInput obj="<%= client %>" type="file" attributeName="ClientLogo" accept="image/*"/> <oneit:ormInput obj="<%= client %>" type="file" attributeName="ClientLogo" accept="image/*"/>
</div> </div>
<div class="form-brack-line-sub"></div> <div class="form-brack-line-sub"></div>
<div class="form-group"> <div class="form-group">
<label><oneit:label GUIName="Contact Email Address" /></label> <label><oneit:ormlabel obj="<%= client %>" field="Email" /></label>
<oneit:ormInput obj="<%= client %>" type="text" attributeName="Email" cssClass="form-control" /> <oneit:ormInput obj="<%= client %>" type="text" attributeName="Email" cssClass="form-control" />
</div> </div>
<div class="form-group row"> <div class="form-group row">
<div class="col-md-6"> <div class="col-md-6">
<label><oneit:label GUIName="Contact First Name" /></label> <label><oneit:ormlabel obj="<%= client %>" field="ContactName" /></label>
<oneit:ormInput obj="<%= client %>" type="text" attributeName="ContactName" cssClass="form-control" /> <oneit:ormInput obj="<%= client %>" type="text" attributeName="ContactName" cssClass="form-control" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label><oneit:label GUIName="Contact Last Name" /></label> <label><oneit:ormlabel obj="<%= client %>" field="ContactSurname" /></label>
<oneit:ormInput obj="<%= client %>" type="text" attributeName="ContactSurname" cssClass="form-control" /> <oneit:ormInput obj="<%= client %>" type="text" attributeName="ContactSurname" cssClass="form-control" />
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label><oneit:label GUIName="Contact Phone Number" /></label> <label><oneit:ormlabel obj="<%= client %>" field="Phone" /></label>
<oneit:ormInput obj="<%= client %>" type="text" attributeName="Phone" cssClass="form-control" /> <oneit:ormInput obj="<%= client %>" type="text" attributeName="Phone" cssClass="form-control" />
</div> </div>
<div class="form-brack-line-sub"></div>
<div class="form-group row"> <div class="form-group row">
<div class="col-md-4"> <div class="col-md-4">
<label><oneit:ormlabel obj="<%= client %>" field="Country" /></label> <label><oneit:ormlabel obj="<%= client %>" field="Country" /></label>
...@@ -78,6 +83,16 @@ ...@@ -78,6 +83,16 @@
<oneit:ormInput obj="<%= client %>" type="text" attributeName="PostCode" cssClass="form-control" /> <oneit:ormInput obj="<%= client %>" type="text" attributeName="PostCode" cssClass="form-control" />
</div> </div>
</div> </div>
<div class="form-group row">
<div class="col-md-6">
<label><oneit:ormlabel obj="<%= client %>" field="City" /></label>
<oneit:ormInput obj="<%= client %>" type="text" attributeName="City" cssClass="form-control" />
</div>
<div class="col-md-6">
<label><oneit:ormlabel obj="<%= client %>" field="TimeZone"/></label>
<oneit:ormEnum obj="<%= client %>" attributeName="TimeZone" cssClass="form-control"/>
</div>
</div>
<div class="text-center form-group"> <div class="text-center form-group">
<oneit:button value="Save Updates" name="save" cssClass="btn btn-primary largeBtn" <oneit:button value="Save Updates" name="save" cssClass="btn btn-primary largeBtn"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage).toMap() %>" /> requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage).toMap() %>" />
......
...@@ -16,4 +16,14 @@ AssessmentCriteriaTemplate.TemplateName = Template Name ...@@ -16,4 +16,14 @@ AssessmentCriteriaTemplate.TemplateName = Template Name
CultureCriteriaTemplate.TemplateName = Template Name CultureCriteriaTemplate.TemplateName = Template Name
Client.TimeZone = Time Zone
Client.PostCode = Postal Code
Client.Phone = Contact Phone Number
Client.Email = Contact Email Address
Client.ContactName = Contact First Name
Client.ContactSurname = Contact Last Name
Client.ClientLogo = Client Logo
Client.State = State or Province
Company.TimeZone =
Company.HasClientSupport = We help clients with hiring Company.HasClientSupport = We help clients with hiring
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au">
<NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.RedefineTableOperation">
<tableName factory="String">tl_client</tableName>
<column name="city" type="String" nullable="true" length="100"/>
<column name="time_zone" type="String" nullable="true" length="200"/>
</NODE>
</NODE>
</OBJECTS>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment