function f_verifikasipmb_formcopi(id_module, ds, titlex) { var satu, dua, tiga, c1, c2, c3, h, hd, storex, allowblankx = false; var tutup = true; var win; var bintangbaru = '', bintangpindahan = '*'; if (titlex == "Pendaftaran Mahasiswa Baru") { h = 1700; hd = true; storex = ds_stmskmhs_pmb; } else if (titlex == "Tambah Mahasiswa Baru") { h = 500; hd = false; storex = ds_stmskmhs_pmb; } else { h = 500; hd = false; storex = ds_stmskmhs; } var form_bp_general = new Ext.form.FormPanel({ border: false, id: 'form_bp_general', labelAlign: 'left', buttonAlign: 'left', bodyStyle: 'padding:10px 3px 3px 5px', // atas, kanan, bawah, kiri monitorValid: true, height: h, width: 600, autoScroll: true, layout: 'form', reader: new Ext.data.JsonReader({ root: 'data', totalProperty: 'results', id: 'id', fields: [{ name: "nopmb", mapping: "nopmb" }, { name: "nokuitansipmb", mapping: "nokuitansipmb" }, { name: "nmjadwalpmb", mapping: "nmjadwalpmb" }, { name: "idstmskmhs", mapping: "idstmskmhs" }, { name: "kdprodi11", mapping: "kdprodi11" }, { name: "kdprodi22", mapping: "kdprodi22" }, { name: "kdprodi1", mapping: "kdprodi1" }, { name: "kdprodi2", mapping: "kdprodi2" }, { name: "idklsmhs1", mapping: "idklsmhs1" }, //1 { name: "idklsmhs2", mapping: "idklsmhs2" }, { name: "nama", mapping: "nama" }, { name: "kdjk", mapping: "kdjk" }, { name: "tptlahir", mapping: "tptlahir" }, { name: "tgllahir", mapping: "tgllahir" }, { name: "alamatasal", mapping: "alamatasal" }, { name: "kelurahanasal", mapping: "kelurahanasal" }, { name: "kecamatanasal", mapping: "kecamatanasal" }, { name: "kdkotkabasal", mapping: "kdkotkabasal" }, //nmkotkabtampil nmpropinsitampil { name: "nmkotkabtampil", mapping: "nmkotkabtampil" }, { name: "nmpropinsitampil", mapping: "nmpropinsitampil" }, { name: "alamatsurat", mapping: "alamatsurat" }, //2 { name: "kdpossurat", mapping: "kdpossurat" }, { name: "notelp", mapping: "notelp" }, { name: "nmslta", mapping: "nmslta" }, { name: "kdkotkabslta", mapping: "kdkotkabslta" }, //nmkotkabsltatampil nmpropinsisltatampil { name: "nmkotkabsltatampil", mapping: "nmkotkabsltatampil" }, { name: "nmpropinsisltatampil", mapping: "nmpropinsisltatampil" }, { name: "thnlulusslta", mapping: "thnlulusslta" }, { name: "nemslta", mapping: "nemslta" }, { name: "rangkingslta", mapping: "rangkingslta" }, { name: "noijazahslta", mapping: "noijazahslta" }, { name: "tglijazahslta", mapping: "tglijazahslta" }, { name: "nmortu", mapping: "nmortu" }, { name: "idpekerjaanortu", mapping: "idpekerjaanortu" }, //3 { name: "alamatortu", mapping: "alamatortu" }, { name: "nmtptbekerjamhs", mapping: "nmtptbekerjamhs" }, { name: "idpekerjaanmhs", mapping: "idpekerjaanmhs" }, //ds pekerjaan ortu { name: "alamatkerjamhs", mapping: "alamatkerjamhs" }, { name: "kdptasal", mapping: "kdptasal" }, //nmptasal { name: "nmptasal", mapping: "nmptasal" }, { name: "kdkotkabptasal", mapping: "kdkotkabptasal" }, //nmkotkabpttampil nmpropinsipttampil { name: "nmkotkabpttampil", mapping: "nmkotkabpttampil" }, { name: "nmpropinsipttampil", mapping: "nmpropinsipttampil" }, { name: "fakultasasal", mapping: "fakultasasal" }, { name: "kdprodiasal", mapping: "kdprodiasal" }, { name: "nmprodiasal", mapping: "nmprodiasal" }, { name: "idjenpdkpendaftar", mapping: "idjenpdkpendaftar" }, { name: "nimasal", mapping: "nimasal" }, //4 { name: "idstakreditasi", mapping: "idstakreditasi" }, { name: "email", mapping: "email" }, { name: "password", mapping: "nopmb" }, { name: "setbiayapmb", mapping: "nominal" }, { name: "cara_bayar", mapping: "idcarabyr" }, { name: "nobuktitransfer", mapping: "nobuktitransfer" }, { name: "tgltransfer", mapping: "tgltransfer" }, { name: "antransfer", mapping: "antransfer" }, { name: "idsbrinfo", mapping: "idsbrinfo" }, //5 { name: "idrekpmb", mapping: "idrekpmb" }, { name: "nmrekomendasi", mapping: "nmrekomendasi" }, { name: "idalasanpendaftar", mapping: "idalasanpendaftar" }, { name: "ketlainnya", mapping: "ketlainnya" } //, // { name: "kdmenuweb", mapping: "kdmenuweb"}, // // { name: "kdmenuweb", mapping: "kdmenuweb"}, // { name: "kdmenuweb", mapping: "kdmenuweb"}, //53 // { name: "kdmenuweb", mapping: "kdmenuweb"}, ] }), items: [{ xtype: 'fieldset', title: 'Pendaftaran', //height: 170, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', fieldLabel: 'No Kuitansi PMB' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', id: 'nokuitansipmb', allowBlank: false, width: 380 }, { xtype: 'textfield', fieldLabel: 'No PMB' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', id: 'nopmb', allowBlank: false, width: 380 }, { xtype: 'combo', fieldLabel: 'Jadwal PMB' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', //labelStyle: 'width:160px', width: 380, store: ds_jadwalpmb, name: 'nmjadwalpmb', id: 'nmjadwalpmb', editable: false, triggerAction: 'all', valueField: 'kdjadwalpmb', displayField: 'nmjadwalpmb', forceSelection: true, submitValue: true, hiddenName: 'h_kdjadwalpmb', allowBlank: false, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'combo', fieldLabel: 'Status Pendaftar' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', width: 380, store: storex, name: 'idstmskmhs', id: 'idstmskmhs', triggerAction: 'all', editable: false, valueField: 'idstmskmhs', displayField: 'nmstmskmhs', forceSelection: true, submitValue: true, hiddenName: 'h_idstmskmhs', allowBlank: false, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true, listeners: { change: function() { var v = Ext.getCmp('idstmskmhs').getRawValue(); if (v == "Baru") { //Ext.getCmp('fs_pendidikan').hide(); allowblankx = true; bintangbaru = "*"; bintangpindahan = ""; } else { //Ext.getCmp('fs_pendidikan').show(); allowblankx = false; bintangbaru = ""; bintangpindahan = "*"; } } } }, { xtype: 'textfield', fieldLabel: 'Program Studi', labelStyle: 'text-align: right;', hidden: true }, { xtype: 'compositefield', border: false, id: 'cmp', name: 'cmp', fieldLabel: 'Pilihan 1' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', width: 390, items: [{ xtype: 'combo', store: ds_prodi, name: 'kdprodi1', id: 'kdprodi1', triggerAction: 'all', editable: false, valueField: 'kdprodi', displayField: 'nmprodi', forceSelection: true, submitValue: true, hiddenName: 'h_kdprodi1', allowBlank: false, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true, listeners: { select: function() { Ext.getCmp('kdprodi11').setValue(Ext.getCmp('kdprodi1').getValue()); } } }, { xtype: 'combo', store: ds_klsmhs, name: 'idklsmhs1', id: 'idklsmhs1', triggerAction: 'all', editable: false, valueField: 'kdklsmhs', displayField: 'nmklsmhs', forceSelection: true, submitValue: true, hiddenName: 'h_kdklsmhs', allowBlank: false, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true, listeners: { // select:function(c,r,i){ // c1=1; // hitung(); // }, focus: function() { c1 = 1; hitung(); ds_klsmhs.setBaseParam('kdprodi', Ext.getCmp('kdprodi11').getValue()); ds_klsmhs.load(); } } }] }, { xtype: 'compositefield', border: false, fieldLabel: 'Pilihan 2', labelStyle: 'text-align: right;width:160px;', width: 390, items: [{ xtype: 'combo', // labelStyle: 'text-align: right;width:160px;', store: ds_prodi, name: 'kdprodi2', id: 'kdprodi2', triggerAction: 'all', editable: false, valueField: 'kdprodi', displayField: 'nmprodi', forceSelection: true, submitValue: true, hiddenName: 'h_kdprodi2', listeners: { select: function() { Ext.getCmp('kdprodi22').setValue(Ext.getCmp('kdprodi2').getValue()); } }, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'combo', store: ds_klsmhs2, name: 'idklsmhs2', id: 'idklsmhs2', triggerAction: 'all', editable: false, //disabled :true, valueField: 'kdklsmhs2', displayField: 'nmklsmhs2', forceSelection: true, submitValue: true, hiddenName: 'h_kdklsmhs2', typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true, listeners: { focus: function() { c2 = 2; hitung(); ds_klsmhs2.setBaseParam('kdprodi', Ext.getCmp('kdprodi22').getValue()); ds_klsmhs2.load(); } } }] }] }] }, { xtype: 'fieldset', title: 'Data Pribadi (diisi Lengkap)', //height: 400, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', labelStyle: 'text-align: right;width:160px;', fieldLabel: 'Nama' + bintangbaru + bintangpindahan, id: 'nama', width: 380, allowBlank: false, //disabled: true, listeners: {} }, { xtype: 'combo', store: [ ['L', 'Laki-laki'], ['P', 'Perempuan'] ], fieldLabel: 'Jenis Kelamin' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', allowBlank: false, // width: 200, name: 'kdjk', id: 'kdjk', triggerAction: 'all', editable: false, valueField: 'kdjk', displayField: 'nmjk', forceSelection: true, submitValue: true, hiddenName: 'h_jk', listeners: {}, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'textfield', fieldLabel: 'Tempat Lahir' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', id: 'tptlahir', allowBlank: false, width: 380 }, { xtype: 'datefield', fieldLabel: 'Tanggal Lahir' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', allowBlank: false, id: 'tgllahir' }, { xtype: 'textfield', fieldLabel: 'Alamat Asal', labelStyle: 'text-align: right;width:160px;', id: 'alamatasal', // allowBlank: false, width: 380 }, { xtype: 'textfield', fieldLabel: 'Kelurahan Asal', labelStyle: 'text-align: right;width:160px;', id: 'kelurahanasal', // allowBlank: false, width: 380 }, { xtype: 'textfield', fieldLabel: 'Kecamatan Asal', labelStyle: 'text-align: right;width:160px;', id: 'kecamatanasal', // allowBlank: false, width: 380 }, { xtype: 'compositefield', name: 'comp_kota', fieldLabel: 'Kota/Kabupaten', labelStyle: 'text-align: right;width:160px;', width: 390, id: 'comp_kota', items: [{ xtype: 'textfield', id: 'kdkotkabasal', name: 'kdkotkabasal', hidden: true, width: 100, emptyText: 'Pilih...', listeners: {} }, { xtype: 'textfield', id: 'nmkotkabtampil', name: 'nmkotkabtampil', // allowBlank: false, width: 355, emptyText: 'Pilih...', listeners: {} }, { xtype: 'button', text: ' ... ', id: 'btn_data_kota', width: 3, handler: function() { find_x("Data Kota/Kabupaten", 4); } }] }, { xtype: 'textfield', fieldLabel: 'Propinsi', labelStyle: 'text-align: right;width:160px;', id: 'nmpropinsitampil', // allowBlank: false, disabled: true, width: 380 }, { xtype: 'textfield', fieldLabel: 'Alamat Surat' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', allowBlank: false, id: 'alamatsurat', width: 380 }, { xtype: 'textfield', fieldLabel: 'Kodepos', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, id: 'kdpossurat', width: 100 }, { xtype: 'textfield', fieldLabel: 'No. Telepon / HP' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', allowBlank: false, id: 'notelp', width: 380 }] }] }, { xtype: 'fieldset', title: 'Data Kelulusan SLTA (diisi Lengkap)', //height: 400, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', fieldLabel: 'Nama Sekolah', labelStyle: 'text-align: right;width:160px;', id: 'nmslta', width: 380, //allowBlank: false, //disabled: true, listeners: {} }, { xtype: 'compositefield', name: 'comp_kota_slta', fieldLabel: 'Kota/Kabupaten', labelStyle: 'text-align: right;width:160px;', width: 390, id: 'comp_kota_slta', items: [{ xtype: 'textfield', id: 'kdkotkabslta', name: 'kdkotkabslta', hidden: true, width: 100, emptyText: 'Pilih...', listeners: {} }, { xtype: 'textfield', id: 'nmkotkabsltatampil', name: 'nmkotkabsltatampil', // allowBlank: false, width: 355, emptyText: 'Pilih...', listeners: {} }, { xtype: 'button', text: ' ... ', id: 'btn_data_kota_slta', width: 3, handler: function() { find_x("Data Kota/Kabupaten SLTA", 4); } }] }, { xtype: 'textfield', fieldLabel: 'Propinsi', labelStyle: 'text-align: right;width:160px;', id: 'nmpropinsisltatampil', // allowBlank: false, disabled: true, width: 380 }, { xtype: 'combo', store: [ ['1', '2013'], ['2', '2014'], ['3', '2015'], ['4', '2016'], ['5', '2017'], ['6', '2018'], ['7', '2019'], ['8', '2020'], ['9', '2021'], ['10', '2022'], ['11', '2023'], ['12', '2024'], ['13', '2025'], ['14', '2026'], ['15', '2027'], ['16', '2028'], ['17', '2029'], ['18', '2030'] ], fieldLabel: 'Tahun Lulus', labelStyle: 'text-align: right;width:160px;', // allowBlank: false, width: 100, name: 'thnlulusslta', id: 'thnlulusslta', triggerAction: 'all', editable: false, valueField: 'idthnlulusslta', displayField: 'nmthnlulusslta', forceSelection: true, submitValue: true, hiddenName: 'h_thnlulus', listeners: {}, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'textfield', fieldLabel: 'NEM', //allowBlank: false, labelStyle: 'text-align: right;width:160px;', id: 'nemslta', width: 100 }, { xtype: 'textfield', fieldLabel: 'Rangking', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, id: 'rangkingslta', width: 100 }, { xtype: 'textfield', fieldLabel: 'Nomor Ijazah', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, id: 'noijazahslta', width: 380 }, { xtype: 'datefield', fieldLabel: 'Tanggal Ijazah', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, id: 'tglijazahslta', width: 380 }] }] }, { xtype: 'fieldset', title: 'Data Orang Tua/Wali', //height: 400, collapsible: true, collapsed: true, hidden: true, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', fieldLabel: 'Nama Orang Tua/Wali', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, id: 'nmortu', width: 380 }, { xtype: 'combo', store: ds_pekerjaanortu, fieldLabel: 'Pekerjaan', labelStyle: 'text-align: right;width:160px;', // allowBlank: false, width: 100, name: 'idpekerjaanortu', id: 'idpekerjaanortu', triggerAction: 'all', editable: false, valueField: 'idpekerjaanortu', displayField: 'nmpekerjaanortu', forceSelection: true, submitValue: true, hiddenName: 'h_pekerjaanortu', listeners: {}, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'textfield', fieldLabel: 'Alamat', labelStyle: 'text-align: right;width:160px;', //allowBlank: false, id: 'alamatortu', width: 380 }, ] }] }, { xtype: 'fieldset', title: 'Data Pekerjaan Mahasiswa( diisi oleh Pendaftar dengan status Karyawan/Pegawai)', //height: 400, hidden: true, collapsible: true, collapsed: true, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', fieldLabel: 'Nama Instansi', labelStyle: 'text-align: right;width:160px;', // allowBlank: false, id: 'nmtptbekerjamhs', width: 380 }, { xtype: 'combo', store: ds_pekerjaanortu, fieldLabel: 'Pekerjaan', labelStyle: 'text-align: right;width:160px;', // allowBlank: false, width: 100, name: 'idpekerjaanmhs', id: 'idpekerjaanmhs', triggerAction: 'all', editable: false, valueField: 'idpekerjaanortu', displayField: 'nmpekerjaanortu', forceSelection: true, submitValue: true, hiddenName: 'h_pekerjaanortu', listeners: {}, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'textfield', fieldLabel: 'Alamat', // allowBlank: false, labelStyle: 'text-align: right;width:160px;', id: 'alamatkerjamhs', width: 380 }, ] }] }, { xtype: 'fieldset', title: 'Data Pendidikan Tinggi Yang Pernah Ditempuh ( diisi oleh Pendaftar dengan status Pindahan/Melanjutkan)', id: 'fs_pendidikan', name: 'fs_pendidikan', //height: 400, hidden: false, width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'compositefield', name: 'comp_PT_asal', fieldLabel: 'Nama Perguruan Tinggi Asal' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', width: 390, id: 'comp_PT_asal', items: [{ xtype: 'textfield', id: 'kdptasal', name: 'kdptasal', // hidden:true, allowBlank: true, readOnly:true, width: 125, emptyText: 'Pilih...', listeners: {} }, { xtype: 'textfield', id: 'nmptasal', name: 'nmptasal', allowBlank: true, //allowblankx, width: 230, emptyText: 'Pilih...', listeners: { change: function(){ // validator: function(value){ Ext.getCmp('kdptasal').setValue('999999'); // } } } }, { xtype: 'button', text: ' ... ', id: 'btn_data_PT_asal', width: 3, handler: function() { find_x("Data Perguruan Tinggi", 5); } }] }, { xtype: 'compositefield', name: 'comp_kota_pt', fieldLabel: 'Kota/Kabupaten', labelStyle: 'text-align: right;width:160px;', width: 390, id: 'comp_kota_pt', items: [{ xtype: 'textfield', id: 'kdkotkabptasal', name: 'kdkotkabptasal', hidden: true, width: 100, emptyText: 'Pilih...', listeners: {} }, { xtype: 'textfield', id: 'nmkotkabpttampil', name: 'nmkotkabpttampil', allowBlank: true, //allowblankx, width: 360, emptyText: 'Pilih...', listeners: {} }, { xtype: 'button', text: ' ... ', id: 'btn_data_kota_pt', width: 3, handler: function() { find_x("Data Kota/Kabupaten Perguruan Tinggi", 4); } }] }, { xtype: 'textfield', fieldLabel: 'Propinsi', labelStyle: 'text-align: right;width:160px;', id: 'nmpropinsipttampil', allowBlank: true, //allowblankx, disabled: true, width: 380 }, { xtype: 'textfield', fieldLabel: 'Fakultas', allowBlank: true, //allowblankx, labelStyle: 'text-align: right;width:160px;', id: 'fakultasasal', width: 380 }, { xtype: 'compositefield', name: 'comp_prodi', fieldLabel: 'Program Studi/Jurusan' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', width: 390, id: 'comp_prodi', items: [{ xtype: 'textfield', id: 'kdprodiasal', name: 'kdprodiasal', //hidden:true, allowBlank: true, //allowblankx, readOnly: true, width: 125, emptyText: 'Pilih...', listeners: {} }, { xtype: 'textfield', id: 'nmprodiasal', name: 'nmprodiasal', //readOnly: true, allowBlank: true, // allowblankx, width: 230, emptyText: 'Pilih...', listeners: { change: function(){ // validator: function(value){ Ext.getCmp('kdprodiasal').setValue('999999'); // } } } }, { xtype: 'button', text: ' ... ', id: 'btn_data_prodiasal', width: 3, handler: function() { find_x("Data Program Studi Asal", 6); } }] }, { xtype: 'combo', fieldLabel: 'Jenjang Pendidikan', store: ds_jenpdkpendaftar, name: 'idjenpdkpendaftar', id: 'idjenpdkpendaftar', triggerAction: 'all', editable: false, //disabled :true, valueField: 'idjenpdkpendaftar', displayField: 'nmjenpdkpendaftar', forceSelection: true, submitValue: true, hiddenName: 'h_enpdkpendaftar', listeners: {}, labelStyle: 'text-align: right;width:160px;', typeAhead: true, allowBlank: true, //allowblankx, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'textfield', fieldLabel: 'NPM/NIM' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', allowBlank: true, // allowblankx, id: 'nimasal', width: 380 }, { xtype: 'combo', fieldLabel: 'Peringkat Akreditasi' + bintangbaru + bintangpindahan, store: ds_stakreditasi, name: 'idstakreditasi', id: 'idstakreditasi', triggerAction: 'all', editable: false, //disabled :true, valueField: 'idstakreditasi', displayField: 'nmstakreditasi', forceSelection: true, submitValue: true, hiddenName: 'h_nmstakreditasi', listeners: {}, labelStyle: 'text-align: right;width:160px;', typeAhead: true, mode: 'local', emptyText: 'Pilih...', allowBlank: true, //allowblankx, selectOnFocus: true }] }] }, { xtype: 'fieldset', title: 'Login PMB Online', //height: 400, width: 575, hidden: true, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', fieldLabel: 'E-Mail' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', allowBlank: false, id: 'email', width: 380 }, { xtype: 'textfield', fieldLabel: 'Password', labelStyle: 'text-align: right;width:160px;', allowBlank: true, readOnly: true, id: 'password', width: 380 }] }] }, { xtype: 'fieldset', title: 'Pembayaran PMB via Transfer', //height: 400, width: 575, hidden: true, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'textfield', fieldLabel: 'Biaya yang harus dibayar', labelStyle: 'text-align: right;width:160px;', // allowBlank: false, readOnly: true, id: 'setbiayapmb', nama: 'setbiayapmb', width: 380 }, { xtype: 'combo', fieldLabel: 'Cara Bayar' + bintangbaru + bintangpindahan, labelStyle: 'text-align: right;width:160px;', store: ['Cash/Tunai', 'Transfer'], //ds_fieldpmb, name: 'cara_bayar', id: 'cara_bayar', triggerAction: 'all', editable: false, submitValue: true, hiddenName: 'h_cara_bayar', listeners: {}, allowBlank: false, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true, width: 250 }, { xtype: 'textfield', fieldLabel: 'No. Bukti Transfer', labelStyle: 'text-align: right;width:160px;', // allowBlank: false, id: 'nobuktitransfer', width: 380 }, { xtype: 'datefield', fieldLabel: 'Tanggal Transfer', // allowBlank: false, labelStyle: 'text-align: right;width:160px;', id: 'tgltransfer' }, { xtype: 'textfield', fieldLabel: 'Atas Nama', labelStyle: 'text-align: right;width:160px;', // allowBlank: false, id: 'antransfer', width: 380 }, // { // xtype: 'fieldset', // // checkboxToggle:true, // title: 'Upload Bukti Transfer', // autoHeight: true, // defaults: { // width: 250 // }, // defaultType: 'textfield', // collapsed: false, // items: [{ // xtype: 'compositefield', // name: 'comp_upload', // fieldLabel: 'Photo', // labelStyle: 'text-align: right;width:160px;', // items: [{ // xtype: 'fileuploadfield', // id: 'uploadfoto', // name: 'uploadfoto', // emptyText: 'Select an image', // labelStyle: 'text-align: right;width:160px;', // buttonText: '', // width: 160, // buttonCfg: { // iconCls: 'silk-image' // }, // allowBlank: false // }, // { // xtype: 'button', // id: 'bupload', // text: 'Upload', // width: 50, // //anchor:'20%', // handler: function() { // upload(); // } // }] // }] // } ] }] }, { xtype: 'fieldset', title: 'Informasi Lainnya', //height: 400, labelAlign: 'top', width: 575, items: [{ columnWidth: 1, border: false, layout: 'form', items: [{ xtype: 'combo', fieldLabel: 'Informasi Unla didapat dari' + bintangbaru + bintangpindahan, store: ds_sbrinfo, name: 'idsbrinfo', id: 'idsbrinfo', triggerAction: 'all', editable: false, width: 300, //disabled :true, valueField: 'idsbrinfo', displayField: 'nmsbrinfo', forceSelection: true, submitValue: true, hiddenName: 'h_nmsbrinfo', listeners: {}, labelStyle: 'text-align: right;width:160px;', allowBlank: false, typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'combo', fieldLabel: 'Contact Person, yang merekomendasikan anda masuk UNLA' + bintangbaru + bintangpindahan, store: ds_rekpmb, name: 'idrekpmb', id: 'idrekpmb', triggerAction: 'all', editable: false, width: 300, //disabled :true, valueField: 'idrekpmb', displayField: 'nmrekpmb', forceSelection: true, submitValue: true, hiddenName: 'h_idrekpmb', listeners: {}, labelStyle: 'text-align: right;width:160px;', typeAhead: true, mode: 'local', allowBlank: false, emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'textfield', fieldLabel: 'Nama', // allowBlank: false, labelStyle: 'text-align: right;width:160px;', id: 'nmrekomendasi', width: 380 }, { xtype: 'combo', fieldLabel: 'Alasan memilih UNLA' + bintangbaru + bintangpindahan, store: ds_alasanpendaftar, name: 'idalasanpendaftar', id: 'idalasanpendaftar', triggerAction: 'all', editable: false, width: 300, //disabled :true, valueField: 'idalasanpendaftar', displayField: 'nmalasanpendaftar', forceSelection: true, submitValue: true, hiddenName: 'h_idalasanpendaftar', listeners: {}, allowBlank: false, labelStyle: 'text-align: right;width:160px;', typeAhead: true, mode: 'local', emptyText: 'Pilih...', selectOnFocus: true }, { xtype: 'textfield', fieldLabel: 'Lain -lain', labelStyle: 'text-align: right;width:160px;', // allowBlank: false, id: 'ketlainnya', width: 380 }, { xtype: 'textfield', // fieldLabel: 'KODE1', id: 'kdprodi11', name: 'kdprodi11', // labelStyle: 'text-align: right;', hidden: true }, { xtype: 'textfield', // fieldLabel: 'KODE2', id: 'kdprodi22', name: 'kdprodi22', // labelStyle: 'text-align: right;', hidden: true }] }] }], buttons: [{ id: 'btn_simpan', text: 'Simpan', handler: function() { if (id_module != '') { ubah_grid('form_bp_general'); } else { simpan_grid('form_bp_general'); } } }, { text: 'Alert', hidden: true, handler: function() { getpmb(); } }], listeners: { afterrender: module_afterrender } }); function module_afterrender() { if (id_module != "") { form_bp_general.getForm().load({ url: BASE_URL + 'pendaftaran/c_verifikasipmb/grid', params: { id_module: id_module }, success: function(form, action) { cek_input_number('setbiayapmb'); hitung(); }, failure: function(form, action) { Ext.MessageBox.alert('Failure', 'Fail to get data'); }, waitMsg: 'Loading..' }); } } if (titlex == "Pendaftaran Mahasiswa Baru") { win = new Ext.Window({ title: titlex, layout: "form", x: 210, y: 300, resizable: false, closable: true, draggable: true, items: [form_bp_general] }).show(); } else { win = new Ext.Window({ title: titlex, layout: "fit", modal: true, resizable: true, maximizable: true, items: [form_bp_general] }).show(); } function simpan_grid(namaForm) { if (Ext.getCmp('idstmskmhs').getRawValue() == 'Pindahan') { if (Ext.getCmp('kdptasal').getValue() == '' || Ext.getCmp('kdptasal').getValue() == 'Pilih...' || Ext.getCmp('kdprodiasal').getValue() == '' || Ext.getCmp('kdprodiasal').getValue() == 'Pilih...' || Ext.getCmp('nimasal').getValue() == '' || Ext.getCmp('idstakreditasi').getValue() == '' || Ext.getCmp('idstakreditasi').getValue() == 'Pilih...') { Ext.MessageBox.alert("Informasi", "Data Pendidikan yang pernah ditempuh ada yang kosong!"); } else { var form_nya = Ext.getCmp(namaForm); form_nya.getForm().submit({ url: BASE_URL + 'pendaftaran/c_verifikasipmb/save', method: 'POST', params: { // matas:Ext.getCmp('menuatas').getValue(), // mbawah:Ext.getCmp('menubawah').getValue(), // mkanan:Ext.getCmp('menukanan').getValue(), // mkiri:Ext.getCmp('menukiri').getValue() }, success: function() { if (titlex != "Pendaftaran Mahasiswa Baru") { Ext.MessageBox.alert("Informasi", "Simpan Data Berhasil"); f_verifikasipmb(); } else { getpmb(); } form_bp_general.getForm().reset(); Ext.getCmp('form_bp_general').enable(); Ext.getCmp('btn_simpan').enable(); // Ext.getCmp('btn_hapus').disable(); // Ext.getCmp('btn_ubah').disable(); }, failure: function() { Ext.MessageBox.alert("Informasi", "Simpan Data Gagal"); } }); } } //end baru else { var form_nya = Ext.getCmp(namaForm); form_nya.getForm().submit({ url: BASE_URL + 'pendaftaran/c_verifikasipmb/save', method: 'POST', params: { // matas:Ext.getCmp('menuatas').getValue(), // mbawah:Ext.getCmp('menubawah').getValue(), // mkanan:Ext.getCmp('menukanan').getValue(), // mkiri:Ext.getCmp('menukiri').getValue() }, success: function() { if (titlex != "Pendaftaran Mahasiswa Baru") { Ext.MessageBox.alert("Informasi", "Simpan Data Berhasil"); f_verifikasipmb(); } else { getpmb(); } form_bp_general.getForm().reset(); Ext.getCmp('form_bp_general').enable(); Ext.getCmp('btn_simpan').enable(); // Ext.getCmp('btn_hapus').disable(); // Ext.getCmp('btn_ubah').disable(); }, failure: function() { Ext.MessageBox.alert("Informasi", "Simpan Data Gagal"); } }); } } function ubah_grid(namaForm) { // var msgplus; // if(kodex!=Ext.getCmp('kode').getValue()){ // msgplus='