Commit 292bd731 by Nilu

edit client modifications

parent 3e27bee9
......@@ -17,6 +17,8 @@
<column name="state" 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="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"/>
</NODE>
......
......@@ -17,6 +17,8 @@ CREATE TABLE tl_client (
state varchar(200) NULL,
country varchar(200) NULL,
post_code varchar(10) NULL,
city varchar(100) NULL,
time_zone varchar(200) NULL,
company_id numeric(12) NULL
);
......
......@@ -18,6 +18,8 @@ CREATE TABLE tl_client (
state varchar2(200) NULL,
country varchar2(200) NULL,
post_code varchar2(10) NULL,
city varchar2(100) NULL,
time_zone varchar2(200) NULL,
company_id number(12) NULL
);
......
......@@ -18,6 +18,8 @@ CREATE TABLE tl_client (
state varchar(200) NULL,
country varchar(200) NULL,
post_code varchar(10) NULL,
city varchar(100) NULL,
time_zone varchar(200) NULL,
company_id numeric(12) NULL
);
......
......@@ -5,14 +5,15 @@
<BUSINESSCLASS name="Client" package="performa.orm">
<IMPORT value="performa.orm.types.*"/>
<IMPORT value="performa.orm.types.TimeZone"/>
<IMPORT value="oneit.business.shopping.orm.*"/>
<MULTIPLEREFERENCE name="Jobs" type="Job" backreferenceName="Client" />
<TABLE name="tl_client" tablePrefix="object">
<ATTRIB name="ClientName" type="String" dbcol="client_name" mandatory="true" length="100"/>
<ATTRIB name="ClientLogo" type="BinaryContent" dbcol="client_logo" mandatory="false" binaryHandler="loggedin" attribHelper="BLOBAttributeHelper" attribHelperInstance="BLOBAttributeHelper.INSTANCE" />
<ATTRIB name="ClientName" type="String" dbcol="client_name" mandatory="true" length="100"/>
<ATTRIB name="ClientLogo" type="BinaryContent" dbcol="client_logo" mandatory="false" binaryHandler="loggedin" attribHelper="BLOBAttributeHelper" attribHelperInstance="BLOBAttributeHelper.INSTANCE" />
<ATTRIB name="Email" type="String" dbcol="email" mandatory="false" length="100" validators="Email" />
<ATTRIB name="ContactName" type="String" dbcol="contact_name" mandatory="false" length="100"/>
<ATTRIB name="ContactSurname" type="String" dbcol="contact_surname" mandatory="false" length="100"/>
......@@ -20,7 +21,8 @@
<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="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"/>
......
......@@ -38,46 +38,61 @@
<label class="label-16">Details</label>
</div>
<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" />
</div>
<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/*"/>
</div>
<div class="form-brack-line-sub"></div>
<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" />
</div>
<div class="form-group row">
<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" />
</div>
<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" />
</div>
</div>
<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" />
</div>
<div class="form-brack-line-sub"></div>
<div class="form-group row">
<div class="col-md-4">
<label><oneit:ormlabel obj="<%= client %>" field="Country" /></label>
<label><oneit:ormlabel obj="<%= client %>" field="Country" /></label>
<oneit:ormEnum obj="<%= client %>" attributeName="Country" cssClass="form-control"/>
</div>
<div class="col-md-4">
<label><oneit:ormlabel obj="<%= client %>" field="State" /></label>
<oneit:ormEnum obj="<%= client %>" attributeName="State" cssClass="form-control"/>
<label><oneit:ormlabel obj="<%= client %>" field="State" /></label>
<oneit:ormEnum obj="<%= client %>" attributeName="State" cssClass="form-control"/>
</div>
<div class="col-md-4">
<label><oneit:ormlabel obj="<%= client %>" field="PostCode" /></label>
<oneit:ormInput obj="<%= client %>" type="text" attributeName="PostCode" cssClass="form-control" />
<label><oneit:ormlabel obj="<%= client %>" field="PostCode" /></label>
<oneit:ormInput obj="<%= client %>" type="text" attributeName="PostCode" cssClass="form-control" />
</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>
<div class="text-center form-group">
<oneit:button value="Save Updates" name="save" cssClass="btn btn-primary largeBtn"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage).toMap() %>" />
......
......@@ -16,4 +16,14 @@ AssessmentCriteriaTemplate.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
\ 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