123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- /*
- 수술통계 - 월별/과별/교수별 수술 건수, 총 시간
- - 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()
- {
- submit("TRMNP20300");
- var totalcancel = model.getValue("/root/main/total/oplist/cancelcnt")
- model.removenode("/root/cond/totalcancel");
- model.makeNode("/root/cond/totalcancel");
- model.setValue("/root/cond/totalcancel", totalcancel);
- submit("TRMNP20301");
- model.refresh();
-
-
- // grd_oplist1.multiTotals = true;
- // grd_oplist1.subtotal("clear", 0, 0);
- // grd_oplist1.subtotal("sum", grd_oplist1.colRef("num"), grd_oplist1.colRef("totalcnt"), "#,###", "background-color:#99ff99", 1, "합계");
- // grd_oplist1.subtotal("sum", grd_oplist1.colRef("num"), grd_oplist1.colRef("confirmcnt"), "#,###", "background-color:#99ff99", 1, "합계");
- // grd_oplist1.subtotal("sum", grd_oplist1.colRef("num"), grd_oplist1.colRef("cancelcnt"), "#,###", "background-color:#99ff99", 1, "합계");
- // grd_oplist1.insertRow(1);
- // grd_oplist1.valueMatrix(1, 3) = "합계";
- // grd_oplist1.valueMatrix(1, 4) = model.getValue("/root/main/total/oplist1/norcnt1");
- // grd_oplist1.valueMatrix(1, 5) = model.getValue("/root/main/total/oplist1/norcnt2");
- // grd_oplist1.valueMatrix(1, 6) = model.getValue("/root/main/total/oplist1/norcnt3");
- // grd_oplist1.valueMatrix(1, 7) = model.getValue("/root/main/total/oplist1/norcnt4");
- // grd_oplist1.valueMatrix(1, 8) = model.getValue("/root/main/total/oplist1/ercnt1");
- // grd_oplist1.valueMatrix(1, 9) = model.getValue("/root/main/total/oplist1/ercnt2");
- // grd_oplist1.valueMatrix(1, 10) = model.getValue("/root/main/total/oplist1/ercnt3");
- // grd_oplist1.valueMatrix(1, 11) = model.getValue("/root/main/total/oplist1/ercnt4");
- // grd_oplist1.valueMatrix(1, 12) = model.getValue("/root/main/total/oplist1/addcnt1");
- // grd_oplist1.valueMatrix(1, 13) = model.getValue("/root/main/total/oplist1/addcnt2");
- // grd_oplist1.valueMatrix(1, 14) = model.getValue("/root/main/total/oplist1/addcnt3");
- // grd_oplist1.valueMatrix(1, 15) = model.getValue("/root/main/total/oplist1/addcnt4");
- }
- //이전 년버튼 클릭시 - 전년도+월로 세팅
- 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();
- }
|