// alert('awal search kompetence'); function ClassSearchPatientNursing(strUrl, strTitle, left, top, width, height, CallbackQueryDone, CallbackQuerySkip, Scope){ // ===================================================== // // Record untuk Dataset // // ===================================================== // this.StructRecord = Ext.data.Record.create([ {name: 'ActivityOnPartition', type: 'string'} , {name: 'ActivityId', type: 'string'} , {name: 'Id', type: 'string'} , {name: 'OnPartition', type: 'string'} , {name: 'PatientId', type: 'string'} , {name: 'Mr', type: 'string'} , {name: 'EmployeeNumber', type: 'string'} , {name: 'IdentityNumber', type: 'string'} , {name: 'FamilyNumber', type: 'string'} , {name: 'FullName', type: 'string'} , {name: 'FirstName', type: 'string'} , {name: 'FamilyName', type: 'string'} , {name: 'TitleName', type: 'string'} , {name: 'Gender', type: 'string'} , {name: 'PlaceOfBirth', type: 'string'} , {name: 'DateOfBirth', type: 'string'} , {name: 'FullAddress', type: 'string'} , {name: 'Address', type: 'string'} , {name: 'HouseNumber', type: 'string'} , {name: 'BlockNumber', type: 'string'} , {name: 'AreaNumber', type: 'string'} , {name: 'AreaDescription', type: 'string'} , {name: 'VillageName', type: 'string'} , {name: 'VillageCode', type: 'string'} , {name: 'VillageId', type: 'string'} , {name: 'SubDistrictName', type: 'string'} , {name: 'SubDistrictCode', type: 'string'} , {name: 'SubDistrictId', type: 'string'} , {name: 'DistrictName', type: 'string'} , {name: 'DistrictCode', type: 'string'} , {name: 'DistrictId', type: 'string'} , {name: 'ProvinceName', type: 'string'} , {name: 'ProvinceCode', type: 'string'} , {name: 'ProvinceId', type: 'string'} , {name: 'City', type: 'string'} , {name: 'Country', type: 'string'} , {name: 'Postal', type: 'string'} , {name: 'MobilePhone', type: 'string'} , {name: 'HomePhone', type: 'string'} , {name: 'OfficePhone', type: 'string'} , {name: 'Email', type: 'string'} , {name: 'EducationDegree', type: 'string'} , {name: 'Occupation', type: 'string'} , {name: 'Ethnic', type: 'string'} , {name: 'Religion', type: 'string'} , {name: 'MaritalState', type: 'string'} , {name: 'PairName', type: 'string'} , {name: 'MotherName', type: 'string'} , {name: 'MotherIdentityNumber', type: 'string'} , {name: 'MotherAddress', type: 'string'} , {name: 'MotherPhone', type: 'string'} , {name: 'FatherName', type: 'string'} , {name: 'FatherIdentityNumber', type: 'string'} , {name: 'FatherAddress', type: 'string'} , {name: 'FatherPhone', type: 'string'} , {name: 'EmergencyContact', type: 'string'} , {name: 'EmergencyContactRelation', type: 'string'} , {name: 'EmergencyContactAddress', type: 'string'} , {name: 'EmergencyContactPhone', type: 'string'} , {name: 'BloodGroup', type: 'string'} , {name: 'BloodRhesus', type: 'string'} , {name: 'HistoryOfFamilialDisease', type: 'string'} , {name: 'HistoryOfAllergies', type: 'string'} , {name: 'HistoryOfSurgeryProcedure', type: 'string'} , {name: 'PaymentPayer', type: 'string'} , {name: 'PaymentPayerRelation', type: 'string'} , {name: 'PaymentPayerAddress', type: 'string'} , {name: 'PaymentPayerPhone', type: 'string'} , {name: 'PatientCategory', type: 'string'} , {name: 'NursingCategory', type: 'string'} , {name: 'NursingType', type: 'string'} , {name: 'BillingCategory', type: 'string'} , {name: 'ContractServiceName', type: 'string'} , {name: 'ContractServiceCode', type: 'string'} , {name: 'ContractServiceId', type: 'string'} , {name: 'BillingToName', type: 'string'} , {name: 'BillingToCode', type: 'string'} , {name: 'BillingToId', type: 'string'} , {name: 'InsuranceContractServiceName', type: 'string'} , {name: 'InsuranceContractServiceCode', type: 'string'} , {name: 'InsuranceContractServiceId', type: 'string'} , {name: 'InsuranceName', type: 'string'} , {name: 'InsuranceCode', type: 'string'} , {name: 'InsuranceId', type: 'string'} , {name: 'CompanyContractServiceName', type: 'string'} , {name: 'CompanyContractServiceCode', type: 'string'} , {name: 'CompanyContractServiceId', type: 'string'} , {name: 'CompanyName', type: 'string'} , {name: 'CompanyCode', type: 'string'} , {name: 'CompanyId', type: 'string'} , {name: 'DepartmentName', type: 'string'} , {name: 'DepartmentCode', type: 'string'} , {name: 'DepartmentId', type: 'string'} , {name: 'NursingStartDateTime', type: 'string'} , {name: 'NursingStartDate', type: 'string'} , {name: 'NursingStartTime', type: 'string'} , {name: 'NursingEndDateTime', type: 'string'} , {name: 'NursingEndDate', type: 'string'} , {name: 'NursingEndTime', type: 'string'} , {name: 'DoctorName', type: 'string'} , {name: 'DoctorCode', type: 'string'} , {name: 'DoctorId', type: 'string'} , {name: 'KodeBooking', type: 'string'} , {name: 'BillingPersonalAmount', type: 'string'} , {name: 'Billing3PartyAmount', type: 'string'} , {name: 'RequestFarmasi', type: 'string'} , {name: 'RequestFarmasiDone', type: 'string'} , {name: 'State', type: 'string'} , {name: 'StateNotes', type: 'string'} , {name: 'OnPartition', type: 'string'} , {name: 'CreateAtDate', type: 'string'} , {name: 'CreateAtTime', type: 'string'} , {name: 'UpdateAtDate', type: 'string'} , {name: 'UpdateAtTime', type: 'string'} , {name: 'PaymentPolecy', type: 'string'} , {name: 'CashPaidValue', type: 'string'} , {name: 'CashBackValue', type: 'string'} , {name: 'BankPaidValue', type: 'string'} , {name: 'DepositCashValue', type: 'string'} , {name: 'DepositBankValue', type: 'string'} , {name: 'PaymentName', type: 'string'} , {name: 'BankName', type: 'string'} , {name: 'DeviceSerialNumber', type: 'string'} , {name: 'AccountName', type: 'string'} , {name: 'AccountNumber', type: 'string'} , {name: 'AmountBill', type: 'string'} , {name: 'AdminCostIndex', type: 'string'} , {name: 'AdminBill', type: 'string'} , {name: 'TotalBill', type: 'string'} ]); // ===================================================== // // Record untuk Collumn Grid // // ===================================================== // this.StructGridCollumn = [ // notes new Ext.ux.RowNumberer({width: 40, header: 'No'}) , {header: 'Mr', width: 60, sortable: true, dataIndex: 'Mr'} , {header: 'Nama Penderita', width: 150, sortable: true, dataIndex: 'FullName'} , {header: 'Cara Bayar', width: 100, sortable: true, dataIndex: 'ContractServiceName'} , {header: 'Dokter', width: 180, sortable: true, dataIndex: 'DoctorName'} , {header: 'Poli / Ruangan', width: 150, sortable: true, dataIndex: 'DepartmentName'} , {header: 'Tanggal', width: 100, sortable: true, dataIndex: 'NursingStartDate'} , {header: 'Status', width: 70, sortable: true, dataIndex: 'StateNotes'} , {header: 'Kode Booking', hidden: true, width: 120, sortable: true, dataIndex: 'KodeBooking'} // , {header: 'Id', width: 220, sortable: true, dataIndex: 'Id'} // , {header: '*', align: 'center', width: 25, sortable: false, dataIndex: 'doSelect', renderer: function(value){return "";} } , {header: '*', align: 'center', width: 25, sortable: false, dataIndex: 'doSelect', renderer: function( value, metaData, record, rowIndex, colIndex ) { return ""; } } , {header: '**', align: 'center', width: 25, sortable: false, dataIndex: 'menu' , renderer: function( value, metaData, record, rowIndex, colIndex ) { console.log( record.get('NursingCategory') ); return ""; } } ]; // ===================================================== // this.varPrimaryKey = 'Id'; this.varSortField = 'SortField'; // ===================================================== // this.window = null; this.WindowName = ''; this.windowId=''; this.title = ''; this.varModalResult=false; this.varLeft=200; this.varTop=100; this.varWidth=600; this.varHeight=420; this.varWindowChange = false; this.Url = strUrl; this.CallbackQueryDone=null; this.CallbackQuerySkip=null; this.Scope=null; this.alertMessage = new ClassDialog(); this.confirmMessage = new ClassDialog(); this.varDataset = 'search_patient_nursing'; this.strState = 'request_data'; this.strFilterMenuId=''; this.strFilterDepartmentId=''; this.strFilterString=''; this.strSearch=''; this.varRecordLimit=18; this.CriteriaChange = false; this.SelectedIndex=-1; this.eventSkip = function(){ if(this.CallbackQuerySkip){ if(this.Scope){ this.CallbackQuerySkip.apply(this.Scope); } else { this.CallbackQuerySkip(); } } }; this.eventDone = function(Result){ if(this.CallbackQueryDone){ if(this.Scope){ //alert(Result.Id); this.CallbackQueryDone.apply(this.Scope,[Result]); } else { this.CallbackQueryDone(Result); } } }; this.storeSearch = null; this.StoreSearchDirect = null; this.getSelectedIndex = function(){ if(this.gridSearch.getSelectionModel().getSelected()){ var Id=this.gridSearch.getSelectionModel().getSelected().get(this.varPrimaryKey); return this.storeSearch.indexOfId(Id); } return -1; }; this.getSelectedAbsoluteIndex = function(){ if(this.gridSearch.getSelectionModel().getSelected()){ return (this.pagingSearch.getPageData().activePage - 1) * this.pagingSearch.pageSize + this.getSelectedIndex(); } return -1; }; this.selectPrevious = function(focus){ if(focus){Ext.fly(this.txtSearchId).focus(); return true; } if(!this.gridSearch.getSelectionModel().getSelected()){ this.gridSearch.getSelectionModel().selectRow(0, true); Ext.fly(this.txtSearchId).focus(); } if(this.gridSearch.getSelectionModel().getSelected()){ var Idx=this.getSelectedIndex(); var Count=this.storeSearch.getCount(); // Awal Recordset if(Idx==0){ var ActivePage = this.pagingSearch.getPageData().activePage; var LastPage = this.pagingSearch.getPageData().pages; if(ActivePage>1){ this.SelectedIndex=this.varRecordLimit-1; this.pagingSearch.movePrevious(); return true; } } this.gridSearch.getSelectionModel().selectPrevious(); this.SelectedIndex=this.getSelectedIndex(); Ext.fly(this.txtSearchId).focus(); } return true; }; this.selectNext = function(focus){ if(focus){Ext.fly(this.txtSearchId).focus(); return true; } if(!this.gridSearch.getSelectionModel().getSelected()){ this.gridSearch.getSelectionModel().selectRow(0, true); Ext.fly(this.txtSearchId).focus(); return true; } if(this.gridSearch.getSelectionModel().getSelected()){ var Idx=this.getSelectedIndex(); var Count=this.storeSearch.getCount(); // Akhir Recordset if(Idx==Count-1){ var ActivePage = this.pagingSearch.getPageData().activePage; var LastPage = this.pagingSearch.getPageData().pages; if(ActivePage!=LastPage){ this.SelectedIndex=0; this.pagingSearch.moveNext(); return true; } } this.gridSearch.getSelectionModel().selectNext(); this.SelectedIndex=this.getSelectedIndex(); Ext.fly(this.txtSearchId).focus(); } return true; }; this.previousPage = function(){ if(this.gridSearch.getSelectionModel().getSelected()){ var ActivePage = this.pagingSearch.getPageData().activePage; var LastPage = this.pagingSearch.getPageData().pages; if(ActivePage>1){ this.SelectedIndex=this.getSelectedIndex(); this.pagingSearch.movePrevious(); } } this.txtSearch.focus(250); return true; }; this.nextPage = function(){ if(this.gridSearch.getSelectionModel().getSelected()){ var ActivePage = this.pagingSearch.getPageData().activePage; var LastPage = this.pagingSearch.getPageData().pages; if(ActivePage!=LastPage){ this.SelectedIndex=this.getSelectedIndex(); this.pagingSearch.moveNext(); } }; this.txtSearch.focus(250); return true; }; //============================================================================================// this.txtSearch=new Ext.form.SearchField({ width:300 , plugins: ['fieldtip'] , qtipOnMouseOver: true, qtipOnClick: true, qtipOnFocus: true , qtip: 'Pencarian' }); this.txtSearchId=this.txtSearch.getId(); this.txtSearch.on('common_request', function(obj, e){ this.gridSearch.disable(); this.reQuery(this.storeSearch); }, this); this.txtSearch.on('keyboard', function(obj, e){ var key=e.getKey(); if(key==vk_RETURN) { obj.propagation=false; this.doSelect(); return true; } else if(key==vk_ESCAPE){ this.varModalResult=false; this.window.hide(); return true; } else if(key==vk_UP){ obj.propagation=false; this.selectPrevious(false); return true; } else if(key==vk_DOWN) { obj.propagation=true; this.selectNext(false); return true; } else if(key==vk_PgUP) { obj.propagation=false; this.previousPage(false); return true; } else if(key==vk_PgDOWN) { obj.propagation=false; this.nextPage(false); return true; } else if(key==vk_TAB) { obj.propagation=false; this.cbSearchFilter.focus(25); return true; } else if(key==vk_F8) { obj.propagation=false; alert('ok'); return true; } obj.propagation=true; return true; }, this); this.cbSearchFilter = new Ext.form.ComboBox({ width: 200 , plugins: ['fieldtip'] , qtipOnMouseOver: true, qtipOnClick: true, qtipOnFocus: true , qtip: 'Filter Pencarian' , typeAhead: true , editable: true , forceSelection: false , triggerAction: 'all' , lazyRender:true , mode: 'local' , enableKeyEvents: true , store: new Ext.data.ArrayStore({ id: 0 , fields: [ 'cmbId', 'cmbText' ] , data: [ ['ALL', 'KOMPETENSI & JADWAL'] , ['COMPETENCE', 'KOMPETENSI'] , ['SCHEDULE', 'JADWAL'] , ['NONE', 'TANPA FILTER'] ] }) , valueField: 'cmbId' , displayField: 'cmbText' }); this.cbSearchFilter_RenderListener=function(Control, e){ Control.getEl().on('focus', function(e){ }, this); Control.getEl().on(strKeyEvent, function(e){ var key = e.getKey(); if(key==vk_ESCAPE) { e.preventDefault(); e.stopPropagation(); this.txtSearch.focus(25); return true; } else if(key==vk_RETURN) { e.preventDefault(); e.stopPropagation(); // this.txtOccupationResume.focus(25); return true; } else if(key==vk_TAB) { e.preventDefault(); e.stopPropagation(); this.txtSearch.focus(25); return true; } }, this); Control.getEl().on('blur', function(e){ // this.cbEducationDegreeDescription.setValue(this.cbSearchFilter.getValue()); }, this); }; this.cbSearchFilter.addListener('render', this.cbSearchFilter_RenderListener, this); this.cbSearchFilter.on('select', function(Control, record, index){ this.reQuery(this.StoreSearch); } , this); //============================================================================================// this.proxyReader = new Ext.data.HttpProxy({ url: this.Url }); this.storeSearch = new Ext.data.GroupingStore({ proxy: this.proxyReader , reader: new Ext.data.JsonReader({ root: 'value_data' , totalProperty: 'total_data' , id: this.varPrimaryKey , fields: this.StructRecord }) , sortInfo:{field: this.varSortField, direction: 'ASC'} , remoteSort: true }); this.eventStoreSearchDataChanged = function(objStore){ if(this.windowState==true){ this.gridSearch.enable(); if(this.SelectedIndex!=-1){ this.gridSearch.getSelectionModel().selectRow(this.SelectedIndex, true); this.gridSearch.getView().refresh(); } if(this.SelectedIndex!=-1){ var Count=this.storeSearch.getCount(); if(this.SelectedIndex1){QueryDialog=true;} if(objStore.getCount()==0){QueryDialog=true;} if(QueryDialog){ this.OpenSearch(); return false; } this.eventDone(objStore.getAt(0),this.Scope); return true; } }; this.storeSearch.on('datachanged', this.eventStoreSearchDataChanged, this); this.pagingSearch = new Ext.PagingToolbar({ store: this.storeSearch, pageSize: this.varRecordLimit , displayInfo: true , displayMsg: 'Menampilkan data: {0} - {1}. Total: {2}' , emptyMsg: 'Tidak ada data.' }); this.gridSearch = new Ext.grid.GridPanel({ store: this.storeSearch , columns: this.StructGridCollumn , view: new Ext.grid.GroupingView({ forceFit: false , groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})' }) , sm: new Ext.grid.RowSelectionModel({singleSelect:true}) , stripeRows: true , frame: true // , autoExpandColumn: 'alamat' , autoScroll: true , tbar: ['Kata kunci Pencarian :', ' ', this.txtSearch /* ,'->' , 'Filter' , this.cbSearchFilter */ ] , bbar: this.pagingSearch , listeners: { keydown: function(e){ this.gridKeyPress(e); }, scope: this } }); this.eventGridSearchRowDblClick = function(objGrid, rowindex, e){ if(this.CallbackQueryDone){ this.doSelect(); } return true; }; this.gridSearch.on('rowdblclick', this.eventGridSearchRowDblClick, this); this.gridKeyPress=function(e){ var key=e.getKey(); if(key==vk_RETURN) { e.preventDefault(); e.stopPropagation(); this.doSelect(); return true; } else if(key==vk_UP) { e.preventDefault(); e.stopPropagation(); this.selectPrevious(true); return true; } else if(key==vk_DOWN) { e.preventDefault(); e.stopPropagation(); this.selectNext(true); return true; } else if(key==vk_PgUP) { e.preventDefault(); e.stopPropagation(); this.previousPage(true); return true; } else if(key==vk_PgDOWN) { e.preventDefault(); e.stopPropagation(); this.nextPage(true); return true; } else if(key==vk_F8) { this.SelectedIndex = this.getSelectedIndex(); if(this.SelectedIndex!=-1){ var row = this.SelectedIndex; var collumn = 8; // alert( [ row , collumn ]); cell = this.gridSearch.getView().getCell(row,collumn); var position = cell.getXY(); // var position = Ext.fly( this.gridSearch.getView().getCell(row,collumn) ).getXY(); // position[0] += -25; // X // position[1] += 1; // Y console.log(position); this.gridFloatingMenu.showAt( position ); // return true; // alert('ok'); return true; } } return true; }; // ==================================================================================== // ==================================================================================== this.doSelection = function() { this.Selected = null; try { this.Selected = this.gridSearch.getSelectionModel().getSelected(); } catch(err) { // catchCode - Block of code to handle errors } finally { if(this.Selected) { if(this.Selected.get('State')=='0'){ return true; } return true; } } } this.ActionDetail1Event = function(){ // alert('1'); try { this.Selected = this.gridSearch.getSelectionModel().getSelected(); } catch(err) { // catchCode - Block of code to handle errors } finally { if(this.Selected) { if(this.Selected.get('State')=='0'){ return true; } return true; } } } this.ActionDetail1 = new Ext.Action({ text: 'Detail1' , style: '{background-image: url(__VIRTUAL_DIRECTORY____SUBDIRECTORY__/assets/user/images/new-doc-22X22.png); background-repeat:no-repeat;}' , iconCls: 'blist' }); this.ActionDetail1.setHandler(this.ActionDetail1Event, this); this.ActionDetail2Event = function(){ // alert('2'); try { this.Selected = this.gridSearch.getSelectionModel().getSelected(); } catch(err) { // catchCode - Block of code to handle errors } finally { if(this.Selected) { if(this.Selected.get('State')=='0'){ return true; } return true; } } } this.ActionDetail2 = new Ext.Action({ text: 'Detail2' , style: '{background-image: url(__VIRTUAL_DIRECTORY____SUBDIRECTORY__/assets/user/images/save-doc-22X22.png); background-repeat:no-repeat;}' , iconCls: 'blist' }); this.ActionDetail2.setHandler(this.ActionDetail2Event, this); this.gridFloatingMenu = new Ext.menu.Menu({ floating: true , style: '{border-radius: 3px;}' , items: [ this.ActionDetail1 , this.ActionDetail2 ] }); // ==================================================================================== // ==================================================================================== this.eventGridSearchCellClick = function(objGrid, row, collumn, event){ if(objGrid.getColumnModel().getDataIndex(collumn)=='doSelect'){ this.doSelect(); return true; } if(objGrid.getColumnModel().getDataIndex(collumn)=='menu'){ var htmlCell = objGrid.getView().getCell(row, collumn); var cell = Ext.fly(htmlCell); var position = cell.getXY(); // var position = Ext.fly( objGrid.getView().getCell(row,collumn) ).getXY(); position[0] += -25; // X position[1] += 1; // Y // console.log(position); this.gridFloatingMenu.showAt( position ); return true; } }; this.gridSearch.on('cellclick', this.eventGridSearchCellClick, this); // ==================================================================================== // ==================================================================================== this.doSelect = function() { try { var Selected = this.gridSearch.getSelectionModel().getSelected(); } catch(err) { // catchCode - Block of code to handle errors } finally { if(Selected) { if(Selected.get('State')=='0'){ this.strMessage = '

' + '
' + '
  Perawatan Penderita Sudah Selesai ' + '
  Tidak diperkenankan Transaksi Depo ' + '
' + '

' ; this.alertMessage.callbackClose = function(){ this.txtSearch.focus(); }; this.alertMessage.scope = this; this.alertMessage.setPosition(280,180); this.alertMessage.message('Peringatan', 300, 200, this.strMessage); return true; } this.varModalResult=true; this.eventDone(Selected); this.window.hide(); return true; } } }; this.eventWindowListener = function(c) { c.getEl().on(strKeyEvent, function(e){ var key=e.getKey(); if(key==vk_TAB){ e.preventDefault(); e.stopPropagation(); return true; }; return true; }, this); }; this.window = new Ext.Window({ layout: 'fit' , pageX: 30, pageY: 30, width: 600, height: 380 , constrain: false , closeAction: 'hide' , modal: true , resizable: true , plain: true , items: [this.gridSearch] }); this.window.addListener('render', this.eventWindowListener, this); // this.window.show(); this.window.hide(); // untuk reset bug pada browser; // public Inisialisasi // this.windowId=this.window.getId(); this.varWindowChange=false; this.Url=strUrl; if(strUrl&&this.Url!=strUrl){this.varWindowChange=true;this.Url=strUrl;} if(strTitle&&this.title!=strTitle){this.varWindowChange=true;this.title=strTitle;} if(left&&this.varLeft!=left){this.varWindowChange=true;this.varLeft=left;} if(top&&this.varTop!=top){this.varWindowChange=true;this.varTop=top;} if(width&&this.varWidth!=width){this.varWindowChange=true;this.varWidth=width;} if(height&&this.varHeight!=height){this.varWindowChange=true;this.varHeight=height;} if(this.varWindowChange){ this.window.setTitle(strTitle); this.window.setPagePosition(this.varLeft,this.varTop); this.window.setWidth(width); this.window.setHeight(height); } if(CallbackQueryDone){this.CallbackQueryDone=CallbackQueryDone;} if(CallbackQuerySkip){this.CallbackQuerySkip=CallbackQuerySkip;} if(Scope){this.Scope=Scope;} this.eventShowWindow=function(e){ Ext.fly(this.txtSearchId).focus(500); }; this.window.on('show', this.eventShowWindow, this); this.eventHideWindow=function(e){ if(!this.varModalResult){this.eventSkip();} }; this.window.on('hide', this.eventHideWindow, this); this.reQuery = function(objStore){ if(!objStore){ objStore=this.storeSearch; } objStore.setBaseParam('page_id', strPageId); objStore.setBaseParam('dataset', this.varDataset); objStore.setBaseParam('state', 'request_data'); objStore.setBaseParam('bl_state', this.strBlState); objStore.setBaseParam('filter_operation', this.cbSearchFilter.getValue()); objStore.setBaseParam('filter_request_date', this.strFilterRequestDate); objStore.setBaseParam('filter_competence_code', this.strFilterCompetenceCode); /* objStore.setBaseParam('filter_menu_id', this.strFilterMenuId); objStore.setBaseParam('filter_department_id', this.strFilterDepartmentId); objStore.setBaseParam('filter_string', this.strFilterString); */ objStore.setBaseParam('search', this.txtSearch.getValue()); objStore.load({params:{start:0, limit:this.varRecordLimit}}); }; this.OpenSearch = function(){ this.txtSearch.setValue(this.strSearch); this.SelectedIndex=0; this.windowState=true; this.reQuery(this.storeSearch); this.window.show(); }; // public function // this.search = function(strSearch,RecordLimit){ this.varModalResult=false; this.strSearch=strSearch; this.txtSearch.setValue(this.strSearch); if(RecordLimit&&this.varRecordLimit!=RecordLimit){ this.pagingSearch.pageSize=RecordLimit; this.varRecordLimit=RecordLimit; } this.windowState = false ; // this.cbSearchFilter.setValue('ALL'); this.reQuery(this.StoreSearch); }; this.open = function(strSearch,RecordLimit){ this.varModalResult=false; this.strSearch=strSearch; this.txtSearch.setValue(this.strSearch); if(RecordLimit){ this.pagingSearch.pageSize=RecordLimit; this.varRecordLimit=RecordLimit; } // this.cbSearchFilter.setValue('ALL'); this.OpenSearch(); return true; }; } if(!objSearchPatientNursing){ var objSearchPatientNursing = new ClassSearchPatientNursing('','Daftar Penderita',195,75,980,500,null,null,this); } else { objSearchPatientNursing = new ClassSearchPatientNursing('','Daftar Penderita',195,75,980,500,null,null,this); }