123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[/**
- * spclcareweb/js/MNS001.js
- * 전문간호에서 공통으로 사용하는 스크립트
- * injspecialroomweb/xrw/에서도 사용하고 있음
- * dhkim 생성
- */
- /***********************************************************************************************************************************************************
- * @group :
- * @ver : 2007.02.28
- * : 2008.04.14
- * @by : dhkim
- * @---------------------------------------------------------------------------------------------------------------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 등록번호 조회를 위한 팝업화면 호출
- * @param : flg - (1 : 원무 환자정보 조회, 2: 신규등록환자조회, 3: sms전송환자 조회)
- * @param : xPath - return할 xPath
- * @return :
- ************************************************************************************************************************************************************/
- //------------(20130403)
- //autoflag : 조회후 row가 1건이면 자동 닫기
- function fPopPatient(flg, xpath, pNRow, pid, fromdd, enddd,autoflag ){
- //------------(20130403)
-
-
- if(utlf_isNull(xpath)){
- xpath = "";
- }
- if(utlf_isNull(flg)){
- flg = "1";
- }
- if(utlf_isNull(pid)){
- pid = "";
- }
- //조회조건의 등록번호 팝업 호출 이벤트 발생시
- frmf_setParameter("flg", flg);
- frmf_setParameter("xpath", xpath);
- frmf_setParameter("pNRow", pNRow);
-
- if(!utlf_isNull(pid))
- frmf_setParameter("pid", pid);
- if(!utlf_isNull(fromdd))
- frmf_setParameter("fromdd", fromdd);
- if(!utlf_isNull(enddd))
- frmf_setParameter("enddd", enddd);
- if (!utlf_isNull(autoflag)) {
- frmf_setParameter("autoflag", autoflag);
- }
-
- var rtn =frmf_modal("SMMNS03100","SMMNS03100","","",1,1,1,"","","","","","M");
-
- if(flg =="1"){
- //받는 데이터셋 카피
- } else if(flg =="2"){
- //받는 데이터셋 카피
- }else if(flg =="3") {
- var rrr = frmf_getParameter("SMMNS02000_return");
- if(rrr == "N"){
- fsetting(rtn,"N");
- }
- else{
- ds_data_rtn.copyData(rtn);
- fsetting(rtn,"Y");
- }
- }
- }
- /**
- * 세션 GET
- */
- function lf_aezfSetSuppDeptcd(){
- //var dutplcecd = getUserInfo("dutplcecd");
- var dutplcecd =sysf_getUserInfo("dutplcecd");
- // var selectplcecd = getScreenPrestDeptCd();
- var selectplcecd=frmf_getPrestDeptCd();
-
- if(utlf_isNull(selectplcecd)){
- selectplcecd = dutplcecd;
- }
- return selectplcecd;
- }
- /**
- * 해당부서코드의 명칭을 조회
- */
- function getMenuDeptnm(sendnode, sendcol, deptcd, submitnm, resultnode, resultcol) {
-
- dsf_makeValue(sendnode, sendcol, "string", deptcd, 0);
-
- if( submitnm == "TRMNI02031" ){
- var oParam = {};
- oParam.id = "TRMNI02031";
- oParam.service = "injspecialroomapp.InjSpecialRoomPatMngt";
- oParam.method = "reqGetDeptInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_temp_menudeptinfo=menudeptinfo";
- oParam.async = false;
- oParam.callback = "cf_SubmitCallBack";
- tranf_submit(oParam);
- }
-
- if(arErrorCode.pop("TRMNI02031") > -1){
- selectplcenm = resultnode.getColumn(0, resultcol);
- }else{
- sysf_messageBox('메뉴사용처명 조회를 실패했습니다.', 'E999');
- }
-
- return selectplcenm;
-
- //model.makeValue("/root/send/globalinstance/instance1nm", selectplcenm);
- }
- function cf_SubmitCallBack(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /**
- * 20090217 dhkim 추가
- * 간호부서테이블 조회
- * cdgrupid : 간호부서그룹코드
- */
- function fGetNursDept(cdgrupid, sendnode, recivenode, submitid, errmessage){
- /*
- model.removenode('/root/send');
- model.makeValue('/root/send/cdgrupid', '022');
-
- model.removenode('/root/hidden/nursdeptinfo');
- model.makenode('/root/hidden/nursdeptinfo');
- if(!submit('TRMNS00108')){
- messageBox('간호에 등록된 전문분야정보를 조회를 실패하였습니다.', 'E999');
- return false;
- }
- */
- model.removenode(sendnode);
- model.makeValue(sendnode, cdgrupid);
-
- model.removenode(recivenode);
- model.makenode(recivenode);
- if(!submit(submitid)){
- messageBox(errmessage, 'E999');
- return false;
- }
- }
- ]]></Script>
|