Study/Ext JS2011. 4. 25. 20:21




        // 저장소 데이터 가져오기
        this.store = SGP.AUTH.Data.connectionLogStore(this.url_list, this.pagesize);

        /**
        * Paging 시 store 가 로드되기 전에 검색 관련 params 를 설정.
        * @author 김기용
        * @since 2011.04.25
        */
        this.store.on({
            'beforeload': {
                fn: function (store, options) {
                    method = 'UserID';
                    keyword = this.userID;

                    // 검색 기간
                    var startDate = Ext.get("StartDate").dom.value;
                    var endDate = Ext.get("EndDate").dom.value;
                    var where = startDate + "::" + endDate;

                    if (where == "::") {
                        where = '';
                    }

                    store.baseParam = { 'method':'UserID', 'keyword':this.userID, 'where': where };
                }
            }
        });

Posted by 굥쓰