123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- /* ---------------------------------------------------------------------
- 수술코드 조회 팝업 (SPMNP01501.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- : Create By taebum
- : 2008-10-26 오후 2:44:31
- ---------------------------------------------------------------------- */
- /**
- * @group :
- * @ver : 2008-10-26 오후 2:44:38
- * @by :
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- model.removeNodeSet("/root/main/opnmLists/opcdlists");
- datagrid1.refresh();
-
- model.removenode("/root/send");
- model.makeValue("/root/send/flag" , "TEMP" );
- //대분류코드 리스트 조회
- submit("TRMNP01506");
- //집도의 리스트 조회
- model.makeValue("/root/hidden/condition/lcombolists/lists1/opgrp1","%");
- model.makeValue("/root/hidden/condition/lcombolists/lists1/opgrp2","");
- model.makeValue("/root/hidden/condition/lcombolists/lists1/opgrp3","");
- model.makeValue("/root/hidden/condition/lcombolists/lists1/opgrpkname","전 체");
- model.makeValue("/root/hidden/condition/lcombolists/lists1/opgrpename","");
-
- combo1.refresh();
-
- model.setValue("/root/hidden/condition/searchcond/opgrp1", "%");
- model.setValue("/root/hidden/condition/searchcond/codeflag" , "knm");
- model.refresh();
- }
-
-
- /**
- * @group :
- * @ver : 2007.10.17
- * @by : Grace
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 집도과 클릭시 해당 집도의 정보 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fValueChangedDeptCombo(){
- var sLCode = model.getValue("/root/hidden/condition/searchcond/opgrp1");
- if(sLCode != "%" && sLCode != "undefined" && sLCode != "" && sLCode != null){
- model.removenode("/root/send");
- model.makeValue("/root/send/lcode" ,sLCode);
- submit("TRMNP01507");
- model.makeValue("/root/hidden/condition/scombolists/lists2/opgrp1","%");
- model.makeValue("/root/hidden/condition/scombolists/lists2/opgrp2","%");
- model.makeValue("/root/hidden/condition/scombolists/lists2/opgrp3","");
- model.makeValue("/root/hidden/condition/scombolists/lists2/opgrpkname","전 체");
- model.makeValue("/root/hidden/condition/scombolists/lists2/opgrpename","");
- combo2.refresh();
- model.setValue("/root/hidden/condition/searchcond/opgrp2", "%");
- }
- }
- /**
- * 조회
- *
- */
- function fOnClickSearchBtn(){
- model.removenode("/root/send");
- var sLcode = model.getValue("/root/hidden/condition/searchcond/opgrp1");
- var sScode = model.getValue("/root/hidden/condition/searchcond/opgrp2");
- var sCodeflag = model.getValue("/root/hidden/condition/searchcond/codeflag");
- var sCodenm = model.getValue("/root/hidden/condition/searchcond/codenm");
-
- if(sLcode == "%"){
- sScode = "%"
- }
-
- if((sLcode == null ||sLcode =="" ||sLcode =="undefined"||sLcode =="%" ) &&
- (sCodenm == "" || sCodenm == "undefined" || sCodenm == null)){
- model.alert("대분류 또는 수술코드 또는 명칭을 입력하셔야 합니다.");
- return;
- }
-
- if((sCodeflag == "" || sCodeflag == null || sCodeflag == "undefined") &&
- (sCodenm =="" || sCodenm == null || sCodenm == "undefined")){
- model.alert("수술코드 또는 수술명을 선택하셔야 합니다.");
- return;
- }
-
- model.makeValue("/root/send/opgrp1" ,sLcode);
- model.makeValue("/root/send/opgrp2" ,sScode);
- model.makeValue("/root/send/codeflag" ,sCodeflag);
- model.makeValue("/root/send/codenm" ,sCodenm);
- model.makeValue("/root/send/temp" ,"temp");
-
- model.removeNodeSet("/root/main/opnmLists/opcdlists");
- datagrid1.refresh();
- submit("TRMNP01508");
- }
- /**
- * Double click
- *
- */
- function fOnDoubleClick(){
- var iRow = datagrid1.row;
-
- if(iRow != null && iRow > 0){
- var sOpcd = model.getValue("/root/main/opnmLists/opcdlists["+iRow+"]/opcd");
- var sOpknm = model.getValue("/root/main/opnmLists/opcdlists["+iRow+"]/opkname");
- var sOpEnm = model.getValue("/root/main/opnmLists/opcdlists["+iRow+"]/opename");
-
- var sSendData = sOpcd + "▧" + sOpknm + "▧" + sOpEnm;
- opener.javascript.setParameter("SPMNP01501_ResultData",sSendData);
- }
- window.close();
- }
|