Project

General

Profile

Bug #1865

[HR-Recruitment Management] Applicant Master Data - Personal Statement

Added by Johanes Christian Kurni about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
High
Start date:
12/13/2022
Due date:
12/14/2022
% Done:

0%

Estimated time:
Spent time:

Description

Dear Azid,

1. Jika field "Memiliki Kenalan" dipilih "Ya" maka field "Kategori Keluarga / Teman" wajib diisi. Sebaliknya juga begitu jika pilih "Tidak" maka tidak wajib diisi.
2. Jika filed "Pernah Mederita Sakit" dipilih "Ya" maka field "Sakit Apa" wajib diisi. Sebaliknya juga begitu jika pilih "Tidak" maka tidak wajib diisi.
3. Jika field "Bersedia Ditempatkan Diseluruh Kantor BWS" dipilih "Tidak" maka field "Dimana Bila Tidak Bersedia" wajib diisi. Sebaliknya juga begitu jika pilih "Ya" maka tidak wajib diisi.

Port: http://remote.minovais.com:31118/
Server: remote.minovais.com, 1438\MSSQLSERVER2012
DB: MinovaES_BWS_Dev
Menu: HR > Employee Recruitment Management > Applicant Master Data > Personal Statement

Terima Kasih.


Files

clipboard-202212131118-olhh5.png (108 KB) clipboard-202212131118-olhh5.png Johanes Christian Kurni, 12/13/2022 11:18 AM
mdgenerator.js (156 KB) mdgenerator.js package_update M Azid Wahyudi, 12/14/2022 05:08 PM
#1

Updated by Johanes Christian Kurni about 2 years ago

  • Description updated (diff)
#2

Updated by Johanes Christian Kurni about 2 years ago

  • Description updated (diff)
#3

Updated by M Azid Wahyudi about 2 years ago

  • File mdgenerator.js mdgenerator.js added
  • Status changed from Assigned to QA Test
  • Assignee changed from M Azid Wahyudi to Johanes Christian Kurni

dear jo , udah bisa di test ya

package : C:\ClientApp\2208 Bank Woori Saudara\UI\scripts\mdgenerator.js

Ext.create('Ext.form.Panel', {
renderTo: renderTo,
name: name + tableName,
formMD: tableName,
act: null,
items: [{
xtype: 'minovaForm',
name: name,
tableName: tableName,
margin: '0 0 10 0',
isDisplay: isDisplay,
//hidden:true
buttons: [{
text: 'Save',
hidden: save,
act: act,
//margin: '0 3 15 0', //(top, right, bottom, left).
name: 'btnSaveMD',
iconCls: 'fa-save',
style: 'font-family: FontAwesome',
handler: function () {
var p_ = Ext.ComponentQuery.query('[name=Main]')[0];
//p_.mask('Loading...');
var frm = Ext.ComponentQuery.query('[name=MinovaGridFormEdit' + tableName + ']')[0];
var grid_ = Ext.ComponentQuery.query('[gridMD=' + tableName + ']')[0];
//frm.mask('loading..');
var panelInt = Ext.ComponentQuery.query('[name=PanelMdDetail]')[0];
if (panelInt) {
panelInt.mask('Loading..');
}
var valForm = '';
if (frm.getForm().isValid()) {
valForm = 1;
} else {
valForm = 0;
}

if (grid_.tableName  'PHRRC0052') {
if (frm.getForm().monitor.items.items[6].getValue() '1') {
if (frm.getForm().monitor.items.items[7].getValue() == undefined) {
valForm = 0;
}
}
if (frm.getForm().monitor.items.items[15].getValue() '1') {
if (frm.getForm().monitor.items.items[16].getValue() '') {
valForm = 0;
}
}
if (frm.getForm().monitor.items.items[18].getValue() '1') {
if (frm.getForm().monitor.items.items[19].getValue() '') {
valForm = 0;
}
}
}
if (valForm == 1) {
Ext.Ajax.request({
method: 'POST',
//async: false,
url: '/Devt/SaveTable',
params: {
tableName: tableName,
data: Ext.encode(frm.getValues()),
action: frm.act,
},
waitMsg: 'Saving Data...',
success: function (response) {
var result = Ext.decode(response.responseText);
if (result.success) {
MinovaMessage('Not Null', '000006', '', 'S');
var menu = Ext.ComponentQuery.query('[name = gridMenuMD]')[0];
var s = menu.getStore();
Ext.Ajax.request({
async: false,
method: 'POST',
url: '/UserControl/GetStore',
params: {
tableName: ' PDSPA0013 ',
param: "ModuleType='" + MinovaUtil.GetModuleType() + "' AND Language='" + getParam("Lang") + "'"
},
success: function (response) {
var results = Ext.decode(response.responseText);
var data_ = results.data;
s.loadData(results.data);
//s.reload()
}
});
grid_.getStore().reload();
frm.setHidden(true);
grid_.setHidden(false);
var p = Ext.ComponentQuery.query('[name = PanelMdDetail]')[0];
p.setHeight(500);
if (getParam('ApplicantID') != 'null') {
var _param = {
serviceName: 'ERecruitmentAuthentication.asmx',
methodName: 'SendMailChangeMD',
parameter: 'TableName=' + tableName + '&EmployeeID=' + getParam('ApplicantID')
};
var results = null;
Ext.Ajax.request({
method: 'post',
type: 'ajax',
params: _param,
url: '/InvokeService/Invoke/',
loadMask: {
msg: 'please wait...'
},
success: function (response) {}
});
}
frm.destroy();
} else {
//MinovaMessage(' Not Null ', ' 000005 ', result.message.text, 'E');
//1=error 2=warning 4=confirm
var msgType = result.message.type;
if (msgType == 4) {
mdConfirm(tableName, Ext.encode(frm.getValues()), frm.act, result.message.Id)
} else {
MinovaMessage(' Not Null ', ' 000005 ', result.message.text, 'E');
}
}
},
failure: function (response) {
pnl.unmask();
var result = Ext.decode(response.responseText);
console.log(result);
}
});
} else {
var param_ = cekMandatoryIsNull(tableName);
if (grid_.tableName 'PHRRC0052' && frm.getForm().monitor.items.items[6].getValue() '1' && (frm.getForm().monitor.items.items[7].getValue() undefined)) {
MinovaMessage(' Not Null ', ' 000012 ', '', 'E');
} else if (grid_.tableName 'PHRRC0052' && frm.getForm().monitor.items.items[15].getValue() '1' && (frm.getForm().monitor.items.items[16].getValue() '')){
MinovaMessage(' Not Null ', ' 000013 ', '', 'E');
} else if (grid_.tableName 'PHRRC0052' && frm.getForm().monitor.items.items[18].getValue() '1' && (frm.getForm().monitor.items.items[19].getValue() == '')){
MinovaMessage(' Not Null ', ' 000014 ', '', 'E');
} else if (param_ != "") {
MinovaMessage(' Not Null ', ' 000009 ', param_, 'E');
} else {
// ada field yang error
var error_ = getErrorFields(tableName);
if (error_ != ' ') {
MinovaMessage(' title ', ' 000005 ', error_, 'E');
}
}
}
//frm.unmask();
if (panelInt) {
panelInt.unmask();
}
}
}

makasih

#4

Updated by Johanes Christian Kurni about 2 years ago

  • Status changed from QA Test to Revise
  • Assignee changed from Johanes Christian Kurni to M Azid Wahyudi

Di point nomer 3 masih belum sesuai, mohon untuk di baca redmain nya lagi

Terima Kasih.

#5

Updated by M Azid Wahyudi about 2 years ago

  • Status changed from Revise to QA Test
  • Assignee changed from M Azid Wahyudi to Johanes Christian Kurni

dear jo , coba test lagi

makasih

#6

Updated by Johanes Christian Kurni about 2 years ago

  • Status changed from QA Test to Closed
#7

Updated by Johanes Christian Kurni almost 2 years ago

  • Status changed from Closed to Assigned
  • Assignee changed from Johanes Christian Kurni to M Azid Wahyudi

Azid, ada penambahan sebagai berikut

1. Field "Apakah Memiliki Kenalan" Di pilih "Tidak" maka kategori "Nama Keluarga" Tidak tidak perlu di isi
2. Field "Bersedia Ditempatkan Diseluruh Kantor BWS" dipilih "Ya" maka field "Dimana Bila Tidak Bersedia" tidak perlu diisi

Terima Kasih.

#8

Updated by Johanes Christian Kurni almost 2 years ago

  • Status changed from Assigned to Closed
  • Assignee changed from M Azid Wahyudi to Johanes Christian Kurni

Also available in: Atom PDF