본문 바로가기

개발하자

(326)
jqGrid 원하는 row강제선택 $("#그리드아이디").jqGrid('setSelection', "1", true); 해당소스를 넣으면 첫번째 줄이 강제선택된다.
jqGrid 그리드 row선택시 체크박스만 선택가능 //공통기능 체크박스만 선택기능 beforeSelectRow: function (rowid, e) { var $myGrid = $(this), i = $.jgrid.getCellIndex($(e.target).closest('td')[0]), cm = $myGrid.jqGrid('getGridParam', 'colModel'); return (cm[i].name === 'cb'); }, 그리드에서 row를 선택할때 어디를 클릭해도 선택이 되는데 위와 같은 코드를 넣으면 체크박스를 선택해야지만 선택이 가능하게 된다.
그리드검색시 검색값 가져오기 위와같은 그리드에서 관리년도를 2016으로 검색할 경우검색값인 2016이란 값을 얻어오려면?$("#grid-eduCourse").jqGrid("filterToolbar", { beforeSearch: function (event) { },afterSearch: function (event) { var postdata = $("#grid-eduCourse").jqGrid("getGridParam", "postData"); $('#param-year').val(postdata.eduYear); } }); $("#grid-eduCourse").jqGrid("getGridParam", "postData"); $('#param-year').val(postdata.eduYear); filterTollbar에 bef..
[Oracle] 버전별 Group By에서 문자열 합치기 (여러 ROW를 한줄로) WITH tbl (type, name, code) AS ( SELECT 'STRING', 'BBB', '1' FROM dual UNION ALL SELECT 'INTEGER', '222', '1' FROM dual UNION ALL SELECT 'STRING', 'CCC', '2' FROM dual UNION ALL SELECT 'INTEGER', '333', '2' FROM dual UNION ALL SELECT 'STRING', 'AAA', '0' FROM dual UNION ALL SELECT 'STRING', 'DDD', '3' FROM dual UNION ALL SELECT 'INTEGER', '111', '0' FROM dual ) SELECT type , SUBSTR(XMLAgg(XMLEle..
시퀀스만들기 create sequence autoseq --시퀀스명 increment by 1 -- 증가값 1씩 증가 start with 1 -- 시작값 1부터 시작 nomaxvalue -- nomaxvalue는 무제한 제한을 두려면 maxvalue n(값) nocycle -- cycle, nocycle cycle이면 최대값 이후 처음 값으로... nocache;
신호등만들기 int green = 2; int yellow = 3; int red = 4; int red2 = 5; int green2 = 6; int buttonIn = 9; void setup() { // put your setup code here, to run once: pinMode( green, OUTPUT); pinMode( yellow, OUTPUT); pinMode( red, OUTPUT); pinMode( green2, OUTPUT); pinMode( red2, OUTPUT); pinMode( buttonIn, INPUT ); } void loop() { // put your main code here, to run repeatedly: int buttonState = digitalRead( but..
helloWorld 출력하기 helloworld.js =========================== console.log("Hello World");
덤프파일 임포트 덤프파일 임포트 imp goo1/goo1 ignore=y fromuser=scott touser=goo4 file=D:\NEW_SCOTT_10.dmp 또는 imp userid=ERP43/ERP43 file='D:\ERP43.DMP' full=y ==== 오라클 덤프 파일 뜨기 ==== -기본 명령어프롬프트 > exp 아이디/비번@서비스명(SID) -옵션(파일명 지정 또는 테이블 지정) 명령어프롬프트 > exp 아이디/비번@서비스명(SID) tables=테이블명1,테이블명2... file=파일명.dmp C:\Documents and Settings\siksco>exp scott/scott@orcl tables=student,lecture,seolkang file=semester.dmp --> SID는 설치..