11월, 2012의 게시물 표시

자바스크립트 for 루프

for (var i=0;i < store.data.items.length;i++){ var record = store.data.items[i]; record.set('day', date); record.set('qty', record.get('qty')); };

Extjs 그리드(Grid) 틀고정- "Locked"

locked : boolean 그리드 config 값 중에서 틀정 칼럼의 틀고정 기능을 사용하기 위해서 설정 한다. Ext.define('gridX',{         extened: 'Ext.panel',         alias: 'xxx',         title: 'grid', columns:  { defaults: { width: 100 }, items: [{ xtype: 'rownum', locked: true, --> 틀고정 width: 10 }] }

Extjs 필드 validation관련-전화번호,사업자,이메일

전화번호 밸리데이션 { name : 'tel', // 전화번호 fieldLabel : "TEL", maxLength : 20, enforceMaxLength: true, // 입력란 길이 제한 regex: /^[0-9,-]{0,30}$/, regexText: ' 전화번호 는 숫자와 - 를 입력 할 수 있습니다.',    validator: function(v) {         return /^[0-9,-]{0,30}$/.test(v)?true:"NOTICE";    } } 사업자번호 밸리데이션 { name : 'bsno', // 사업자번호 fieldLabel : "BSNO", maxLength : 12, enforceMaxLength: true, // 입력란 길이 제한 readOnly : false,    regex: /^[0-9]{3}[\- ]?[0-9]{2}[\- ]?[0-9]{5}$/,        regexText: ' 사업자번호 는 숫자와 - 를 입력할 수 있습니다.',    validator: function(v) {         return /^[0-9]{3}[\- ]?[0-9]{2}[\- ]?[0-9]{5}$/.test(v)?true:"NOTICE";    },        listeners: {        change:function(me,newVal,oldVal){         if(typeof(old...

ExtJS 4 – bindStore vs reconfigure 두가지 사용법

내용상으로는  마스터 디테일 구조에서 디테일쪽 데이터 구조를 연결하는 2가지 방법입니다. 1. bindStore  myForm.loadRecord(myRecord); myGrid.getView().bindStore(myRecord.getAssociatedStore()); 2. reconfigure   myGrid.reconfigure(myRecord.getAssociation(), columnConfig); myGrid.getStore.sort("id", "ASC"); myGrid.getView().refresh();

자바 BigDecimal 마이너스 곱하기. 음수만들기

BigDecimal Seq = dtail.getSeq(); BigDecimal minusQty = new BigDecimal(-1); BigDecimal qty = dtail.getStorQty(); BigDecimal dtQty = qty. multiply (minusQty);

JavaScript replace() Method

replace() Method 예제 "일이삼사오" var str=" 일이삼사오 "; var n=str.replace("이삼","오야"); result "일오야사오" slice(st,en); substr(a,b); 비슷함.

펌) The JavaScript experience: Extjs.util.MixedCollection : how to sort ?

펌) MixedCollection  소트(sort)하기 The JavaScript experience: Extjs.util.MixedCollection : how to sort ? : ks to this post

Extjs 4 Store 관련 - 기본파라미터 적용. - extraParams

extraParams   스토어에서 autoLoad = true 설정 된 경우 페이지 로딩 되면 자동으로 호출하게 되는데 조회 할 때  파라미터 값을 적용 하게 할 경우 아래와 같이 extraParams  를 설정 하면 된다. Ext.define('project.store.MyStore, { extend: 'project.store.BaseStore', model: 'project.model.MyStore', // autoLoad: false, proxy: { api : { create: contextPath + '/my/add.json', read: contextPath + '/my/list.json', update: contextPath + '/my/update.json', destroy: contextPath + '/my/delete.json' }, extraParams  : { 'myid': 'myid', 'myAuth': login.myAuth } }/*     listeners: {         beforeload: function(store, operation, options){             console.log( operation )         }     }*/ });

Extjs4 Model(데이터모델) 관련 config 속성

이미지
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.Model field 속성 config 에는 convert & serialize 실제 속성이 string으로 정의 된 칼럼을 컨버트해서 date형식으로 보여주고 실제 Sync시에는 스트링으로 Sync 하도록 처리 가능하다. convert: Ext.util.Format.stringToDate, serialize: Ext.util.Format.dateToString ex) fields:{    {name: 'resistDate' , type: 'string', convert: Ext.util.Format.stringToDate, serialize: Ext.util.Format.dateToString} } useNull = 숫자형이나 null을 허용 ex) {name: 'qty' , type: 'int', useNull: true}, persist = sync시 밸류값 제외 ex) {name: 'namedesc' , type: 'string', persist: false}

IPAD- MINI 아이패드 미니 - 스펙

이미지
메일 받았습니다. 드디어 출시 되나 봅니다. 허허허~ 생각보다 비싼 가격이 문제 군요. 아이패드 미니 스펙 1. Display: 7.85인치 (1024 x 768, 레티나 디스플레이 아님, 아이패드2 해상도) 2. CPU: A5 (A5는 아이폰4S에 사용되었으며, 아이폰5는 A6칩이 사용됨) or A5X 3, RAM: 1GB (저가 모델인 만큼 512MB가 탑재된다는 소문도 있음) 4. Memory: 16GB/32GB 5. 전송 방식: 3G, LTE, wifi전용 출시 6. 커넥터: 8핀 라이트닝 커넥터 7. 카메라: 전면 페이스타임 카메라, 후면 500만 화소(Flash 없음) 8. 사이즈: 200.4 x 134.5 x 7.4mm 9. 가격: 16GB 모델 기준 42만

넥서스10, nexus10 괴물스펙!

이미지
넥서스10 1. 일반 와이파이 전송속도 보다 약 3~4배 빠르다.  2. 1.7GHz의 ARM Cortex A15 기반 삼성 엑시노스 5250 듀얼코어 프로세서 3. 2GB 메모리 4. 해상도 WQXGA 2,560x1,600 5. 출시가격은 16GB 모델이 399달러, 32GB 모델이 499달러 괴물스펙에 저렴한 가격이네요 정말로!