12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- /*
- 수술통계 - 방 구분별 (일일/중앙) 수술 건수
- - Version :
- 1) : Ver.1.00.01
- - Create : 2012.02.27 KJS
- */
- var scmonth = "";
- //화면초기화
- function fInitialize(){
-
- var currentdate = getCurrentDate();
- scmonth = currentdate.substr(0,6);
- model.setValue("/root/cond/scmonth", scmonth);
- model.refresh();
- }
- // 현황내역 가져오기
- function fSearch()
- {
- //model.makeValue("/root/cond/gbn", 1);
- submit("TRMNP20101");
- model.refresh();
-
- grd_oplist5.mergeCells = "bycol";
- grd_oplist5.mergeCol(0) = true;
- grd_oplist5.mergeCol(1) = false;
- grd_oplist5.mergeCol(2) = false;
- grd_oplist5.merge();
- }
- //이전 년버튼 클릭시 - 전년도+월로 세팅
- function fClkBfYear(srchym){
-
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
-
- yyear--;
-
- scmonth = yyear + mmont;
-
- model.setValue('/root/cond/scmonth', scmonth);
- model.refresh();
- }
- //다음 년버튼 클릭시 - 다음년도+월로 세팅
- function fClkAfYear(scmonth){
-
- var yyear = scmonth.substring(0, 4);
- var mmont = scmonth.substring(4, 6);
-
- yyear++;
-
- scmonth = yyear + mmont;
-
- model.setValue('/root/cond/scmonth', scmonth);
- model.refresh();
- }
- //이전 달버튼 클릭시 - 년도+전월 세팅
- function fClkBfMonth(scmonth){
- var yyear = scmonth.substring(0, 4);
- var mmont = scmonth.substring(4, 6);
-
- mmont = mmont.toDate('MM').getAddDate(-1, "M").getDateFormat('MM');
- if(mmont == '12'){
- yyear--;
- }
- scmonth = yyear + mmont;
-
- model.setValue('/root/cond/scmonth', scmonth);
- model.refresh();
- }
- //다음 달버튼 클릭시 - 년도+다음월 세팅
- function fClkAfMonth(scmonth){
- var yyear = scmonth.substring(0, 4);
- var mmont = scmonth.substring(4, 6);
- mmont = mmont.toDate('MM').getAddDate(+1, "M").getDateFormat('MM');
- if(mmont == '01'){
- yyear++;
- }
- scmonth = yyear + mmont;
-
- model.setValue('/root/cond/scmonth', scmonth);
- model.refresh();
- }
|