function pSetBiaya(){ /** COMMON STORES didef di parent*/ var ds_jbiaya = store_jbiaya(); var ds_prodi = store_prodireg(); var ds_jkls = store_jkls(); var ds_tahun = store_tahun(); var ds_stsmt = store_stsmt(); var storesObj = {jbiaya:ds_jbiaya, prodi:ds_prodi, jkls:ds_jkls, tahun:ds_tahun, kdstsemester:ds_stsmt}; /**====================*/ var fields_setbiaya = RH.storeFields('idsetbiaya','idjnsbiaya','kdjnsbiaya', 'kdprodi','nmprodi','idjnskls','nmjnskls', 'tahunmsk','biaya','idstatus','nmstatus','catatan','kdstsemester','nmthnakademik','tottahapan'); var ds_setbiaya = RH.JsonStore({ url : BASE_URL + 'setbiaya_controller/get_data', fields : fields_setbiaya, limit: 15, params: [{key:'kdprodi', id:'cbkdprodi'}], enableSearch: true, }); //SEARCH COMPONENT var sb_setbiaya = RH.searchComp({ id : 'sb_setbiaya', comboWidth:200, textWidth:200, fields : ['kdjnsbiaya:Jenis Biaya', 'tahunmsk:Tahun Masuk', 'nmthnakademik:Tahun Akademik - Semester', 'nmjnskls:Jenis Kelas', 'biaya:Biaya', 'nmstatus:Status', 'catatan:Catatan'], selected : 'kdjnsbiaya', store : ds_setbiaya }); var cm_setbiaya = new Ext.grid.ColumnModel([ { header: 'idsetbiaya', dataIndex: 'idsetbiaya', width: 100, hidden: true }, { header: 'Jenis Biaya', dataIndex: 'kdjnsbiaya', width: 100, sortable: true, }, { header: 'Tahun Masuk', dataIndex: 'tahunmsk', width: 100, sortable: true, }, { header: 'Program Studi', dataIndex: 'nmprodi', width: 250, sortable: true }, { header: 'Tahun Akademik - Semester', dataIndex: 'nmthnakademik', width: 200, sortable: true }, { header: 'Jenis Kelas', dataIndex: 'nmjnskls', width: 130, sortable: true }, { header: 'Biaya', dataIndex: 'biaya', width: 100, sortable: true, xtype: 'numbercolumn', format:'0,000', align:'right' }, { header: 'Status', dataIndex: 'nmstatus', width: 85, sortable: true }, { header: 'Catatan', dataIndex: 'catatan', width: 80, sortable: true }, { id: 'col.edit', width: 30, sortable: false, renderer: RH.column_edit, }, { id: 'col.delete', width: 30, sortable: false, renderer: RH.column_delete, }] ); var sm_setbiaya = new Ext.grid.RowSelectionModel({ singleSelect: true }); var gv_setbiaya = new Ext.grid.GridView({ emptyText: '< Belum ada Data >' }); var gp_setbiaya = new Ext.grid.GridPanel({ ds: ds_setbiaya, //title: 'Setting Biaya DPP/DPK', //iconCls: 'silk-group-add', cm: cm_setbiaya, sm: sm_setbiaya, view: gv_setbiaya, //forceFit: true, height:200, autoScroll:true,//autoHeight: true, autoSizeColumns: true, enableColumnResize: true, enableColumnHide: false, enableColumnMove: false, enableHdaccess: false, columnLines: true, loadMask: true, tbar: [{ text: 'Tambah Baru', id: 'tb.add-setbiaya', iconCls: 'silk-add', handler: function() { fnAdd(); } }, { text: 'Print', iconCls: 'silk-printer', hidden: true, handler: function() {} }, {xtype:'tbfill'} , sb_setbiaya //RH.searchBar() ], bbar: new Ext.PagingToolbar({ store: ds_setbiaya, displayInfo: true, pageSize: 15, mode: 'local', displayMsg: 'Data {0} - {1} dari {2}', emptyMsg: "Belum ada data" }), listeners: { cellclick: onCellClick } }); //SET_PAGE_CONTENT(gp_setbiaya); var fp_setbiaya = new Ext.Panel({ title: 'Setting Biaya Kuliah', iconCls:'silk-money', buttonAlign: 'left', bodyStyle: 'padding: 5px', border: false, layout:'fit', waitMsg: 'Waiting...', maskDisabled: false, monitorValid: true, frame: true, items: [{ xtype: 'panel', layout:'fit', tbar:[{ xtype:'label', text:'Program Studi:', style:'margin-left:5px;margin-right:10px;font-size:11px' },{ xtype: 'combo', id: 'cbkdprodi', fieldLabel: 'Program Studi', store: ds_prodi, valueField: 'kdprodi', displayField: 'lnmprodi', triggerAction: 'all', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:false, width: 300, editable: false, typeAhead: true, listeners:{ scope: this, select: function(combo, record){ reloadSetBiaya(record.data.kdprodi); } } }], items: [gp_setbiaya], }], }); SET_PAGE_CONTENT(fp_setbiaya); function reloadSetBiaya(vkdprodi){ ds_setbiaya.reload({ params: { kdprodi: vkdprodi, }, callback: function(results){ } }); } function onCellClick(grid, rowIndex, columnIndex, e) { var t = e.getTarget(); var record = grid.getStore().getAt(rowIndex); // Get the Record if (t.className == 'imgEdit') { fnEdit(grid, record); return true; } if (t.className == 'imgDelete') { fnDelete(grid, record); return true; } return false; } function fnAdd(){ var grid = gp_setbiaya; if(RH.getCompValue('cbkdprodi')==''){ RH.warning('Program Studi Belum Dipilih!'); return; } wEntrySetbiaya(false, grid, null, storesObj); } function fnEdit(grid, record){ wEntrySetbiaya(true, grid, record, storesObj); } function fnDelete(grid,record){ var url = BASE_URL + 'setbiaya_controller/delete_setbiaya'; var params = new Object({ idsetbiaya : record.data['idsetbiaya'] }); RH.deleteGridRecord(url, params, gp_setbiaya ); } } function wEntrySetbiaya(isUpdate, grid, record, storesObj) { var winTitle = (isUpdate)?'Set Biaya Kuliah (Edit)':'Set Biaya Kuliah (Entry)'; var dis_button = (isUpdate)? false:true; var ds_jbiaya = storesObj.jbiaya; var ds_prodi = storesObj.prodi; var ds_jkls = storesObj.jkls; var ds_tahun = storesObj.tahun; var ds_stsmt = storesObj.kdstsemester; var idsetbiayaparam = (record) ? record.data['idsetbiaya']:null var tottahapannot = 0; //=================================BIAYA TAHAPAN=============================================== var fields_biayatahap = RH.storeFields('idsttahapan','kdsttahapan','nmsttahapan','idsetbiaya','nominal','tgljatuhtempo'); var ds_biayatahap = RH.JsonStore({ url : BASE_URL + 'setbiaya_controller/get_biayatahap', fields : fields_biayatahap, limit: 10, params: [ {key:'idsetbiaya', value: idsetbiayaparam} ], enableSearch: false, }); var idsttahapan; //variabel untuk menampung id biaya tahapan /** GRID COLUMN MODEL */ var cm_biayatahap = new Ext.grid.ColumnModel([ new Ext.grid.RowNumberer(), //for rows numbering { header:'idsttahapan', dataIndex:'idsttahapan', hidden:true, }, { header:'idsetbiaya', dataIndex:'idsetbiaya', hidden:true, }, { header: RH.h3('Tahapan'), width:200, dataIndex: 'nmsttahapan', sortable: true }, { header: RH.h3('Nominal'), width: 200, dataIndex: 'nominal',xtype: 'numbercolumn', format:'0,000', align:'right', editor: { xtype: 'numberfield', id: 'nominal', allowBlank: false, allowNegative: false, allowDecimals: false, listeners: { change: fnChangeTahap } } }, { header: RH.h3('Tanggal Jatuh Tempo'), width: 250, dataIndex: 'tgljatuhtempo', sortable: true, xtype: 'datecolumn', format: 'm/d/Y', align:'center', editor: { xtype: 'datefield', id: 'tgljatuhtempo', minValue: '01/01/2006', listeners: { change: fnChangeTahap } } }, RH.DeleteColumn() ] ); // Selection Model var sm_biayatahap = new Ext.grid.RowSelectionModel({ singleSelect: true }); // Grid View var gv_biayatahap = new Ext.grid.GridView({emptyText: '< Belum ada Data >'}); /** GRID PANEL DETAIL*/ var gp_setbiayatahap = new Ext.grid.EditorGridPanel({ //PAKE EditorGridPanel ds: ds_biayatahap, cm: cm_biayatahap, sm: sm_biayatahap, view: gv_biayatahap, clicksToEdit: 1, forceFit: true, autoScroll:true, autoWidth: true, height: 180, columnLines: true, loadMask: true, frame: true, tbar:[{ xtype: 'textfield', id: 'hidden.idsetbiayaparamtahap', hidden:true, value: idsetbiayaparam }, { text: 'Tambah', id: 'tb.add-biayatahap', iconCls: 'silk-add', disabled:dis_button, handler: function() { wLookupTahap(record); } }], bbar: new Ext.PagingToolbar({ store: ds_biayatahap, displayInfo: true, pageSize: 10, mode: 'local', displayMsg: 'Data {0} - {1} dari {2}', emptyMsg: "Belum ada data" }), listeners: { cellclick: onCellTahapClick } }); function fnChangeTahap(numfield, newValue, oldValue) { var field = this.getId(); var value = (newValue)? newValue : oldValue; var totbiaya = Ext.getCmp('nf.biaya').getValue(); // total biaya var tottahapannew = parseInt(value) + parseInt(tottahapannot); //total tahapan baru = jumlah nominal baru yang di edit + jumlah nominal seluruh(selain yang di edit) var selisih = parseInt(totbiaya) - parseInt(tottahapannew); //selisih antara total biaya dengan total tahapan baru //pesan jika total tahapan baru melebihi total biaya dan total biaya > 0 if(selisih < 0 && totbiaya > 0){ RH.warning('Jumlah Nominal Tahapan Melebihi Total Biaya'); gp_setbiayatahap.getStore().reload(); return; }; Ext.Ajax.request({ url: BASE_URL +'setbiaya_controller/update_biaya_tahap', method: 'POST', params: { idsttahapan : idsttahapan, idsetbiaya: idsetbiayaparam, field : field, value : value, }, waitMsg: 'Tunggu, sedang proses menyimpan...', success: function() { Ext.Msg.alert("Info", "Simpan Data Berhasil"); gp_setbiayatahap.getStore().reload(); }, failure: function(result){ Ext.Msg.alert("Info", "Simpan Data Gagal"); } }); } //hitung jumlah seluruh nominal tahapan terkecuali tahapan yang akan di edit //jumlah disimpan dalam variabel tottahapannot function fnJumTahapNot(idsttahapan) { Ext.Ajax.request({ url: BASE_URL +'setbiaya_controller/getsum_tahapnot', method: 'POST', scope: this, async:false, params: { idsttahapan : idsttahapan, idsetbiaya : idsetbiayaparam }, success: function(response) { tottahapannot = response.responseText; } }); } function onCellTahapClick(grid, rowIndex, columnIndex, e) { var t = e.getTarget(); var record = grid.getStore().getAt(rowIndex); // Get the Record idsttahapan = record.data['idsttahapan']; fnJumTahapNot(idsttahapan); if (t.className == 'imgDelete') { var url = BASE_URL + 'setbiaya_controller/delete_biaya_tahap'; var params = new Object({ idsttahapan : idsttahapan, idsetbiaya: idsetbiayaparam, }); RH.deleteGridRecord(url, params, grid ); return true; } return true; } //================================================================================ var fEntry = new Ext.form.FormPanel({ border: false, id: 'f.Entry', labelAlign: 'right', labelWidth: 200, buttonAlign: 'left', bodyStyle: 'padding:5px 3px 3px 5px', // atas, kanan, bawah, kiri monitorValid: true, height: 335, width: 755, layout: { type: 'form', pack: 'center', align: 'center' }, items: [{ xtype: 'panel', layout:'fit', height: 325, //title:'Setting Biaya', id:'fp.master', frame:true, items: [{ xtype: 'fieldset', title: '', layout: 'form', items: [{ xtype: 'compositefield', //UNTUK STATUS SEMESTER items: [{ xtype: 'combo', id: 'cb.idjnsbiaya', fieldLabel: 'Jenis Biaya', store: ds_jbiaya, valueField: 'idjnsbiaya', displayField: 'kdjnsbiaya', triggerAction: 'all', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:false, width: 125, allowBlank: false, editable: false, listeners:{ select : function(){ var jnsbiaya = Ext.getCmp('cb.idjnsbiaya').getRawValue(); if(jnsbiaya=="DPK" || jnsbiaya=="KON") { Ext.getCmp('cb.kdstsemester').setValue(''); Ext.getCmp('cb.kdstsemester').hide(); } else { Ext.getCmp('cb.kdstsemester').show(); } cek_setbiaya(); } } },{ xtype: 'textfield', id: 'hidealertbiayax', width: 90, hidden: true },{ xtype: 'label', text: '', id: 'alertbiayax', style: 'color: red;font-size:12px;', }] },{ xtype: 'combo', id: 'cb.tahunmsk', fieldLabel: 'Tahun Masuk', store: ds_tahun, valueField: 'kode', displayField: 'nama', triggerAction: 'all', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:false, //false spy ga fokus setelah dipilih width: 125, allowBlank: false, editable: false, listeners:{ scope: this, select: cek_setbiaya } },{ xtype: 'combo', id: 'cb.kdstsemester', fieldLabel: 'Tahun Akademik - Semester', store: ds_stsmt, valueField: 'kdstsemester', displayField: 'nmsmt', triggerAction: 'all', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:false, //false spy ga fokus setelah dipilih width: 175, editable: false, listeners:{ scope: this, select: cek_setbiaya } },{ xtype: 'combo', id: 'cb.kdprodi', fieldLabel: 'Program Studi', store: ds_prodi, valueField: 'kdprodi', displayField: 'nmprodi', triggerAction: 'all', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:false, disabled:true, width: 300, allowBlank: false, editable: true, typeAhead: true, listeners:{ scope: this, select: cek_setbiaya } },{ xtype: 'combo', id: 'cb.idjnskls', fieldLabel: 'Jenis Kelas', store: ds_jkls, valueField: 'idjnskls', displayField: 'nmjnskls', triggerAction: 'all', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:false, //false spy ga fokus setelah dipilih width: 125, allowBlank: false, editable: false, listeners:{ scope: this, select: cek_setbiaya } },{ xtype: 'numericfield', fieldLabel: 'Biaya', id: 'nf.biaya', width: 125, allowBlank: false },{ xtype: 'combo', id: 'cb.idstatus', fieldLabel: 'Status', store: ds_status, valueField: 'idstatus', displayField: 'nmstatus', triggerAction: 'all', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', selectOnFocus:false, //false spy ga fokus setelah dipilih width: 125, allowBlank: false, editable: false },{ xtype: 'textarea', fieldLabel: 'Catatan', id : 'ta.catatan', width : 300, height : 55, }] }], bbar: [{ id:'btn_simpan',text: 'Simpan', iconCls:'silk-save', handler: function() { fnSave(); } }, { text: 'Kembali', iconCls:'silk-arrow-undo', handler: function() { win.close(); } }] }, { xtype: 'panel', layout:'fit', hidden:true, title:'Setting Biaya Tahapan', id:'fp.det', frame:true, items: [gp_setbiayatahap] }], }); var win = new Ext.Window({ title: winTitle, modal: true, items: [fEntry] }); /** CALL SET FORM AND SHOW THE FORM (WINDOW) */ setForm(isUpdate, record); win.show(); function setForm(isUpdate, record){ var kdprodi = RH.getCompValue('cbkdprodi', true); RH.setCompValue('cb.kdprodi', kdprodi); if(isUpdate){ if(record != null){ RH.disableComp('cb.idjnsbiaya'); RH.disableComp('cb.tahunmsk'); RH.disableComp('cb.kdprodi'); RH.disableComp('cb.idjnskls'); RH.disableComp('cb.kdstsemester'); RH.setCompValue('cb.idjnsbiaya', record.data['idjnsbiaya']); RH.setCompValue('cb.tahunmsk', record.data['tahunmsk']); RH.setCompValue('cb.kdstsemester', record.data['kdstsemester']); RH.setCompValue('cb.kdprodi', record.data['kdprodi']); RH.setCompValue('cb.idjnskls', record.data['idjnskls']); RH.setCompValue('nf.biaya', record.data['biaya']); RH.setCompValue('cb.idstatus', record.data['idstatus']); if(record.data['kdjnsbiaya']=="DPK" || record.data['kdjnsbiaya']=="KON") { Ext.getCmp('cb.kdstsemester').hide(); } else { Ext.getCmp('cb.kdstsemester').show(); } return; } } } function cek_setbiaya() { var kdprodi = RH.getCompValue('cb.kdprodi'); var thmasuk = RH.getCompValue('cb.tahunmsk'); var idjnskls = RH.getCompValue('cb.idjnskls'); var idjnsbiaya = RH.getCompValue('cb.idjnsbiaya'); var kdjnsbiaya = RH.getFieldValue('cb.idjnsbiaya', 'idjnsbiaya', 'kdjnsbiaya'); //utk mudah bedakan DPP & DPK var kdstsemester = RH.getCompValue('cb.kdstsemester'); var labelalertbiayax = Ext.getCmp('alertbiayax'); if (kdjnsbiaya == 'DPK' || kdjnsbiaya == 'KON') { if(kdprodi=='' || thmasuk=='' || idjnskls=='' || idjnsbiaya=='') return; } else { if(kdjnsbiaya=='' || thmasuk=='' || idjnskls=='' || idjnsbiaya=='' || kdstsemester=='') return; } Ext.Ajax.request({ url: BASE_URL + 'setbiaya_controller/get_count_setbiaya', method: 'POST', params :{ kdprodi: kdprodi, thmasuk: thmasuk, idjnskls: idjnskls, idjnsbiaya: idjnsbiaya, kdjnsbiaya: kdjnsbiaya, kdstsemester: kdstsemester }, scope: this, async:false, //waitMsg: "Biaya sedang diproses...", success: function(result){ var jsonData = Ext.decode(result.responseText); //bisa utk Ext3 dan Ext4 if (jsonData.result!='0') { labelalertbiayax.setText('Setting Biaya Kuliah Sudah Ada'); RH.setCompValue('hidealertbiayax', 'Setting Biaya Kuliah Sudah Ada'); } else { labelalertbiayax.setText(''); RH.setCompValue('hidealertbiayax', ''); } } }); } function fnSave(){ var alertx = RH.getCompValue('hidealertbiayax'); if(alertx != ''){ return; }; if(RH.isEmpty('cb.idjnsbiaya')){ RH.warning('Jenis Biaya harus diisi'); return; }; if(RH.isEmpty('cb.tahunmsk')){ RH.warning('Tahun Masuk harus diisi'); return; }; if((RH.getCompValue('cb.idjnsbiaya', true) != '2' && RH.getCompValue('cb.idjnsbiaya', true) != '5') && (RH.isEmpty('cb.kdstsemester'))){ RH.warning('Tahun Akademik - Semester harus diisi'); return; }; if(RH.isEmpty('cb.kdprodi')){ RH.warning('Program Studi harus diisi'); return; }; if(RH.isEmpty('cb.idjnskls')){ RH.warning('Jenis Kelas harus diisi'); return; }; if(RH.isEmpty('nf.biaya') || Ext.getCmp('nf.biaya').getValue() <= 0){ RH.warning('Biaya harus diisi'); return; }; if(RH.isEmpty('cb.idstatus')){ RH.warning('Status harus diisi'); return; }; var url = BASE_URL + 'setbiaya_controller/insert_setbiaya'; var params = new Object({ idjnsbiaya : RH.getCompValue('cb.idjnsbiaya'), kdstsemester : RH.getCompValue('cb.kdstsemester'), tahunmsk : RH.getCompValue('cb.tahunmsk'), kdprodi : RH.getCompValue('cb.kdprodi'), idjnskls : RH.getCompValue('cb.idjnskls'), biaya : RH.getCompValue('nf.biaya'), idstatus : RH.getCompValue('cb.idstatus'), catatan : RH.getCompValue('ta.catatan') }); var msgSuccess = 'Simpan Data Berhasil'; var msgFail = 'Simpan Data Gagal'; if(isUpdate){ url = BASE_URL + 'setbiaya_controller/update_setbiaya'; params.idsetbiaya = record.data['idsetbiaya']; msgSuccess = 'Update Data Berhasil'; msgFail = 'Update Data Gagal'; } var form = RH.getForm('f.Entry'); if(form){ Ext.Ajax.request({ url: url, params: params, method: 'POST', scope: this, async:false, success: function(result) { var jsonData = Ext.decode(result.responseText); Ext.Msg.alert("Info", msgSuccess); grid.getStore().reload(); if(isUpdate){ win.close(); } else { Ext.getCmp('hidden.idsetbiayaparamtahap').setValue(jsonData.idsetbiaya); idsetbiayaparam = jsonData.idsetbiaya Ext.getCmp('tb.add-biayatahap').enable(); Ext.getCmp('btn_simpan').disable(); } win.close(); }, failure: function() { Ext.Msg.alert("Info", msgFail); } }); } } //========================================LOOKUP TAHAP================================================== function wLookupTahap(record){ /** DATA SOURCE */ var fieldsLookuptahap = RH.storeFields('idsttahapan','kdsttahapan','nmsttahapan'); var ds_lookuptahap = RH.JsonStore({ url : BASE_URL + 'setbiaya_controller/get_sttahapan_lookup', fields : fieldsLookuptahap, limit : 18, params: [{key:'idsetbiaya', value: idsetbiayaparam}], enableSearch: false, }); //SEARCH COMPONENT var sb_lookuptahap = RH.searchComp({ id: 'sb_lookup', fields : ['kdsttahapan:Kode Tahapan','nmsttahapan:Nama Tahapan'], selected : 'kdsttahapan', store : ds_lookuptahap, textWidth : 175 }); /** GRID LOOKUP MATA KULIAH */ // COLUMN MODEL var cm_lookuptahap = new Ext.grid.ColumnModel([ new Ext.grid.RowNumberer(), //for rows numbering { header: 'idsttahapan', dataIndex: 'idsttahapan',hidden: true }, { header: 'Kode Tahapan',width: 100, dataIndex: 'kdsttahapan', sortable: true }, { header: 'Nama Tahapan', width: 200, dataIndex: 'nmsttahapan', sortable: true }] ); // Selection Model var sm_lookuptahap = new Ext.grid.RowSelectionModel({ singleSelect: true }); // Grid View var gv_lookuptahap = new Ext.grid.GridView({ emptyText: '< Belum ada Data >' }); var gp_lookuptahap = new Ext.grid.GridPanel({ ds: ds_lookuptahap, cm: cm_lookuptahap, sm: sm_lookuptahap, view: gv_lookuptahap, forceFit: true, layout:'anchor', autoSizeColumns: true, //autoExpandColumn: 'nmmkind', autoScroll:true, enableColumnResize: true, enableColumnHide: false, enableColumnMove: false, columnLines: true, loadMask: true, tbar:[sb_lookuptahap], bbar: new Ext.PagingToolbar({ store: ds_lookuptahap, displayInfo: true, pageSize: 18, mode: 'local', displayMsg: 'Data {0} - {1} dari {2}', emptyMsg: "Belum ada data" }), listeners: { rowdblclick: onRowDblClickTahap } }); /** WIN LOOKUP MATA KULIAH */ var wLookuptahap = new Ext.Window({ id: 'w.look-biaya', title: 'Status Tahapan', modal: true, layout: 'fit', width:400, height:400, items: [gp_lookuptahap] }).show(); /** FUNCTIONS */ function onRowDblClickTahap(grid, rowIdx) { var store = ds_lookuptahap; var rec = store.getAt(rowIdx); var idsttahapan = rec.data['idsttahapan']; //INSERT NEW BIAYA DETAIL (BIAYA) Ext.Ajax.request({ url: BASE_URL +'setbiaya_controller/insert_biaya_tahap', method: 'POST', params: { idsetbiaya : idsetbiayaparam, idsttahapan : idsttahapan, }, waitMsg: 'Tunggu, sedang proses menyimpan...', success: function() { Ext.Msg.alert("Info", "Simpan Data Berhasil"); gp_setbiayatahap.getStore().reload({ params: { idsetbiaya : idsetbiayaparam } }); wLookuptahap.close(); }, failure: function(result){ Ext.Msg.alert("Info", "Simpan Data Gagal"); } }); } } /* function cb_jbiaya_selected(combo, records){ //if DPK selected -> disable cb.stsmt-byr (DPK doesn't require status semester if(records.data['kdjnsbiaya']=='DPK') { RH.disableComp('cb.kdstsemester'); RH.setCompValue('cb.kdstsemester', ''); } else { RH.enableComp('cb.kdstsemester'); } } */ }