123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- /* ---------------------------------------------------------------------
- 수술방별 수술건수 통계 (SSMNP00500.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- : Create By taebum
- : 2008-09-28 오후 4:07:39
- ---------------------------------------------------------------------- */
- /**
- * @group :
- * @ver : 2008-09-28 오후 4:07:46
- * @by :
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- model.setValue("/root/hidden/condition/frdd", getCurrentDate());
- model.setValue("/root/hidden/condition/todd" , getCurrentDate());
- model.refresh();
-
- model.removeNodeSet("/root/main/deptlists/scaleDeptlist");
- datagrid4.refresh();
- /*
- model.removenode("/root/send");
- model.makeValue("/root/send/flag" , "X" );
- model.makeValue("/root/send/searchitem", "XX" );
- model.makeValue("/root/send/deptflag" , "011" );
- submit("TRMNP00107");
- */
- //addComboItem("cmb_orddept" , "전 체", "", "above" );
- //addComboItem("cmb_oproomlist", "전 체", "", "above" );
- }
-
- function fOnClickSearchBtn(){
- model.setValue("/root/send/frdd",model.getValue("/root/hidden/condition/frdd"));
- model.setValue("/root/send/todd",model.getValue("/root/hidden/condition/todd"));
- model.setValue("/root/send/ssflag1",model.getValue("/root/hidden/condition/ssflag1"));
- model.setValue("/root/send/ssflag2",model.getValue("/root/hidden/condition/ssflag2"));
- model.setValue("/root/send/ssflag3",model.getValue("/root/hidden/condition/ssflag3"));
- model.setValue("/root/send/etcflag1",model.getValue("/root/hidden/condition/etcflag1"));
- model.setValue("/root/send/etcflag2",model.getValue("/root/hidden/condition/etcflag2"));
- model.setValue("/root/send/etcflag3",model.getValue("/root/hidden/condition/etcflag3"));
-
- if(model.getValue("/root/send/frdd") == "" || model.getValue("/root/send/todd") == ""){
- messageBox("시작일, 종료일은 필수입력 사항입니다.", "I000");
- return;
- }
-
- model.removeNodeSet("/root/main/deptlists/roomDepsumarytlist");
- datagrid4.refresh();
- if(submit("TRSNP00500")){
- var iGridCnt = getNodesetCnt(model, "/root/main/deptlists/roomDepsumarytlist");
- fHiddenGridCol(iGridCnt, datagrid4);
- }
- }
- /**
- * @group :
- * @ver : 2007.10.17
- * @by : Grace
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Exel 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveExcel(){
- fileName = window.fileDialog("save", ",", false, "수술방별수술건수통계_집도과별_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "" && fileName != null) {
- datagrid4.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }
- /**
- * @group :
- * @ver : 2007.10.17
- * @by :
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 1행에 데이터 없는 열 감추기
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fHiddenGridCol(iGridCnt, pGrid){
- if(iGridCnt >1){
- for(var i = 1; i < pGrid.cols; i++){
- if(pGrid.valuematrix(1, i) == ""){
- pGrid.colwidth(i) = 0;
- }
- }
- }
- }
|