0
1
Fork 0
hedera-web-mindshore/forms/account/address/index.js

21 lines
495 B
JavaScript
Raw Normal View History

2022-11-16 01:44:39 +00:00
export default new Class({
2018-05-16 15:21:15 +00:00
Extends: Hedera.Form,
2022-11-16 01:44:39 +00:00
Template: require('./ui.xml'),
2022-11-16 01:44:39 +00:00
activate() {
2022-05-28 01:18:06 +00:00
this.$.model.setInfo('a', 'myAddress', 'hedera', ['id'], 'id');
this.$.model.setDefault('clientFk', 'a',
new Sql.Function({schema: 'account', name: 'myUser_getId'}));
2018-05-16 15:21:15 +00:00
},
2022-11-16 01:44:39 +00:00
onStatusChange() {
2022-05-30 01:30:33 +00:00
if (this.$.iter.ready && this.hash.$.address == 0)
2022-05-28 01:18:06 +00:00
this.$.iter.insertRow();
2018-05-16 15:21:15 +00:00
},
2022-11-16 01:44:39 +00:00
onOperationsDone() {
2018-05-16 15:21:15 +00:00
Htk.Toast.showMessage(_('AddressChangedSuccessfully'));
2022-05-30 01:30:33 +00:00
window.history.back()
}
});