// ---------------------------------
if (qq_currentEvent.isEvent(PushButton_Click_getqq_UpdateOnePostCodeBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Address anAddress = this.selectOneAddress();
if (anAddress != null) {
Postcode aPostCode = new Postcode().create();
anAddress.getR_Postcode().setCity(aPostCode.getCity());
anAddress.getR_Postcode().setState(aPostCode.getState());
anAddress.getR_Postcode().setPostCodeNumber(aPostCode.getPostCodeNumber());
this.getStatus().concat("Updated postcode to: ").concat(aPostCode.toString()).concat("\n");
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------------------
// self.<UpdateOneAddressBtn>.Click
// --------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_UpdateOneAddressBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Address anAddress = this.selectOneAddress();
if (anAddress != null) {
Address newAddress = new Address().create();
anAddress.setLine1(newAddress.getLine1());
anAddress.setLine2(newAddress.getLine2());
anAddress.setLine3(newAddress.getLine3());
this.getStatus().concat("Updated Address to: ").concat(newAddress.toString()).concat("\n");
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------------------
// self.<RemoveOneAddressBtn>.Click
// --------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_RemoveOneAddressBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Address anAddress = this.selectOneAddress();
if (anAddress != null) {
// TODO [1037,Major]: If you are deleting a row inside a loop, use the Iterator in place of the array
this.getACustomer().getL_Address().deleteRow(anAddress);
this.getStatus().concat("Row removed\n");
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -----------------------------
// self.<PrintCustomerBtn>.Click
// -----------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_PrintCustomerBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
this.getStatus().concat(this.getACustomer().toString()).concat("\n");
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------
// self.<CreatePostCodeBtn>.Click
// ------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_CreatePostCodeBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
if (this.getACustomer() != null && this.getACustomer().getR_Address() != null) {
Postcode aPostCode = new Postcode().create();
this.getStatus().concat("Created postcode: ").concat(aPostCode.toString()).concat("\n");
this.getACustomer().getR_Address().setR_Postcode(aPostCode);
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------
// self.<CreateCustomerBtn>.Click
// ------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_CreateCustomerBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Customer aCustomer = new Customer().create();
this.getStatus().concat("Created customer: ").concat(aCustomer.toString()).concat("\n");
this.setACustomer(aCustomer);
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -----------------------------
// self.<CreateAddressBtn>.Click
// -----------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_CreateAddressBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
if (this.getACustomer() != null) {
Address anAddress = new Address().create();
this.getStatus().concat("Created address: ").concat(anAddress.toString()).concat("\n");
this.getACustomer().setR_Address(anAddress);
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -----------------------------
// self.<AddOneAddressBtn>.Click
// -----------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_AddOneAddressBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
if (this.getACustomer() != null && this.getACustomer().getL_Address() != null) {
Address anAddress = new Address().create();
this.getStatus().concat("Added address: ").concat(anAddress.toString()).concat("\n");
this.getACustomer().getL_Address().add(anAddress);
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -----------------------------------
// self.<CreateOneNewAddressBtn>.Click
// -----------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_CreateOneNewAddressBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Address anAddress = this.selectOneAddress();
if (anAddress != null) {
int row = this.getACustomer().getL_Address().indexOf(anAddress)+1;
anAddress = new Address().create();
this.getStatus().concat("Created new address: ").concat(anAddress.toString()).concat("\n");
this.getACustomer().getL_Address().set(row-1, anAddress);
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------------
// self.<CreateOneNewPostcodeBtn>.Click
// ------------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_CreateOneNewPostcodeBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Address anAddress = this.selectOneAddress();
if (anAddress != null) {
Postcode aPostCode = new Postcode().create();
anAddress.setR_Postcode(aPostCode);
this.getStatus().concat("Created new postcode: ").concat(aPostCode.toString()).concat("\n");
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------
// self.<UpdatePostcodeBtn>.Click
// ------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_UpdatePostcodeBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
if (this.getACustomer() != null && this.getACustomer().getR_Address() != null) {
Postcode aPostCode = new Postcode().create();
this.getACustomer().getR_Address().getR_Postcode().setCity(aPostCode.getCity());
this.getACustomer().getR_Address().getR_Postcode().setState(aPostCode.getState());
this.getACustomer().getR_Address().getR_Postcode().setPostCodeNumber(aPostCode.getPostCodeNumber());
this.getStatus().concat("Updated postcode to: ").concat(aPostCode.toString()).concat("\n");
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -----------------------------
// self.<UpdateAddressBtn>.Click
// -----------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_UpdateAddressBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
if (this.getACustomer() != null) {
Address newAddress = new Address().create();
this.getACustomer().getR_Address().setLine1(newAddress.getLine1());
this.getACustomer().getR_Address().setLine2(newAddress.getLine2());
this.getACustomer().getR_Address().setLine3(newAddress.getLine3());
this.getStatus().concat("Updated Address to: ").concat(newAddress.toString()).concat("\n");
}
// ================ End Forte Event Handler Translation ================
}
finally {