123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- /* ---------------------------------------------------------------------
- 과별 집도의별 수술명별 수술방 사용시간 (SSMNP00300.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- : Create By taebum
- : 2008-10-23 오후 4:51:47
- ---------------------------------------------------------------------- */
- /**
- * @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.setValue("/root/init/tab","day");
- model.removeNodeSet("/root/main/daylists/deptDoctDaylist");
- datagrid1.refresh();
-
- model.removeNodeSet("/root/main/doctlists/deptDoctDetaillist");
- 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");
- //수술방 조회
- model.removenode("/root/send");
- model.makeValue("/root/send/flag" , "userid" );
- model.makeValue("/root/send/searchitem" , "00009006" );
-
- submit("TRMNP00301", false); // 수술실의 코드와 명칭을 가져온다.
- addComboItem("combo1" , "전 체", "%", "above" );
- addComboItem("combo2" , "전 체", "%", "above" );
- model.setValue("/root/hidden/condition/oproomcd", "%");
- model.setValue("/root/hidden/condition/deptcd", "%");
- model.refresh();
- }
-
- function fOnClickSearchBtn(){
- model.removenode("/root/send");
- model.makeValue("/root/send/frdd" ,model.getValue("/root/hidden/condition/frdd"));
- model.makeValue("/root/send/todd" ,model.getValue("/root/hidden/condition/todd"));
- model.makeValue("/root/send/ssflag1" ,model.getValue("/root/hidden/condition/ssflag1"));
- model.makeValue("/root/send/ssflag2" ,model.getValue("/root/hidden/condition/ssflag2"));
- model.makeValue("/root/send/ssflag3" ,model.getValue("/root/hidden/condition/ssflag3"));
- model.makeValue("/root/send/etcflag1",model.getValue("/root/hidden/condition/etcflag1"));
- model.makeValue("/root/send/etcflag2",model.getValue("/root/hidden/condition/etcflag2"));
- model.makeValue("/root/send/etcflag3",model.getValue("/root/hidden/condition/etcflag3"));
- model.makeValue("/root/send/deptcd" ,model.getValue("/root/hidden/condition/deptcd"));
- model.makeValue("/root/send/oproomcd",model.getValue("/root/hidden/condition/oproomcd"));
- model.makeValue("/root/send/opcd" ,model.getValue("/root/hidden/condition/opcd"));
- if(model.getValue("/root/send/frdd") == "" || model.getValue("/root/send/todd") == ""){
- messageBox("시작일, 종료일은 필수입력 사항입니다.", "I000");
- return;
- }
- var sCurrentTab = model.getValue("/root/init/tab");
- if(sCurrentTab == "day"){
- model.removeNodeSet("/root/main/daylists/deptDoctDaylist");
- datagrid1.refresh();
- submit("TRSNP00300");
- }else if(sCurrentTab == "doct"){
- model.removeNodeSet("/root/main/doctlists/deptDoctDetaillist");
- datagrid4.refresh();
- submit("TRSNP00301");
- }
-
- }
- /**
- * @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) {
- datagrid3.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }
- /*
- * 수술코드 조회 팝업
- *
- */
- function fClickOpCodeHelp(){
- var xpos = event.screenX;
- var ypos = event.screenY-300;
-
- modal("SPMNP01501", 1, xpos, ypos);
- var sResult = getParameter("SPMNP01501_ResultData");
- setParameter("SPMNP01501_ResultData","");
- if(sResult != "" && sResult != null && sResult != "undefined"){
- var sResultArr = sResult.split("▧");
- model.setValue("/root/hidden/condition/opcd", sResultArr[0]);
- model.setValue("/root/hidden/condition/opnm", sResultArr[1]);
- input3.refresh();
- input2.refresh();
- }
- }
|