1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- /*
- 수술통계 - 월별/과별/교수별 수술 건수, 총 시간
- - Version :
- 1) : Ver.1.00.01
- - Create : 2012.03.21 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("TRMNP20201");
- model.refresh();
- }
- //이전 년버튼 클릭시 - 전년도+월로 세팅
- 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();
- }
|