123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[/**
- * MMR00403.js
- * SMMMR00403_입원초진JCI.xrw
- CarePlan을 부분서식 형태로 작성되도록 변경:20161109 이윤주
- * /
-
-
- /**
- * @desc : [item코드목록]
- * "0000931001" 주호소
- * "0001173001" 현병력
- * "0000098001" 과거력
- * "0000079001" 계통문진
- * "0000570001" 신체검진
- * "0001019001" 추정진단
- * "0022826001" Care Plan
- * "0013328001" 퇴원계획
- * "0006747001" 환자및보호자교육
- * [버튼목록]
- * "btn_imge_0001173001"
- * "btn_etcrec_0001173001"
- * "btn_imge_0000098001"
- * "btn_fmy_0000098001"
- * "btn_etcrec_0000098001"
- * "btn_imge_0000079001"
- * "btn_etcrec_0000079001"
- * "btn_imge_0000570001"
- * "btn_etcrec_0000570001"
- * "btn_etcrec_0001019001"
- * "btn_dsch_0013328001"
- * "btn_edu_0006747001"
- */
- var gItemCds = new Array(
- "0000931001"//주호소
- , "0001173001"//현병력
- , "0000098001"//과거력
- , "0000079001"//계통문진
- , "0000570001"//신체검진
- , "0001019001"//추정진단
- , "0022826001"//Care Plan
- , "0013328001"//퇴원계획
- , "0006747001"//환자 및 보호자 교육
- );
- var gItemCdsTextArea = new Array(
- "0000931001"//주호소
- , "0001173001"//현병력
- , "0000098001"//과거력
- , "0000079001"//계통문진
- , "0000570001"//신체검진
- , "0001019001"//추정진단
- , "0022826001"//Care Plan
- , "0006747001"//환자 및 보호자 교육
- );
- /**
- * @desc : 확장버튼(이미지,가계도,추가기록)을 기록여부에 따라 표시를 위한 버튼목록
- * @id :
- * @authur : dhkim
- * @history : 2009.12.03 신규
- */
- var gExtnBtnIds = new Array(
- "btn_imge_0001173001" //현병력이미지
- , "btn_etcrec_0001173001" //현병력추가기록
- , "btn_imge_0000098001" //과거력
- , "btn_fmy_0000098001" //가계도
- , "btn_etcrec_0000098001" //
- , "btn_imge_0000079001"
- , "btn_etcrec_0000079001"
- , "btn_imge_0000570001"
- , "btn_etcrec_0000570001"
- , "btn_etcrec_0001019001"
- , "btn_dsch_0013328001" //퇴원요구도
- , "btn_edu_0006747001" //교육요구도
- );
-
- var gLoadFormCnts = 0;
- /*******************************************************************
- * Function : fFormReady
- * Description : 화면 로드시 초기화 작업을 수행
- *******************************************************************/
- function fFormReady()
- {
- this.ComnFormObj = this.grup_base;
- dsf_createDsRow("ds_temp_mainrecitem",
- [{col:"formxrw", val:""}]);
- // 공통서식의 초기 recitem 정보. 기록 데이터 조합시 사용
- ds_temp_mainrecitem.assign(ds_data_recitem);
-
- //섹션사이즈초기화
- lf_setSectionSize(gItemCds, "grup_base.tar_0000931001", "grup_base.tar_0006747001");
- //섹션별 버튼초기화
- InitBtnImge(gItemCds);
- InitBtnFmy(gItemCds);
- InitBtnEtcRec(gItemCds);
- // InitBtnComn(gItemCds);
- InitBtnDiag("0001019001");//0001019001: 추정진단
-
- //기본 첫번째 부분서식을 로딩해서 보여준다.
- // dispOnLoadComplete(COMN_FORM);//COMN_FORM : 1
- //2010.01.21, hkjoo
- // initCmbExtnList(gItemCds);
- // lf_checkUnitForm(gItemCds); // 부분서식 로딩
- lf_AllLoadUnitFormExpand(gItemCds); // 전체 로딩
-
- lf_setRecData(gItemCds);
- }
- /**
- * @desc : 기록데이터 조회
- * @id :
- * @event : xforms-ready
- * @return : void
- * @authur : 박종훈
- */
- function fLoadData()
- {
- lf_setRecData(gItemCds);
- // InitPgmFormData();
- // InitUnitFormData(gItemCds);
- }
- /**
- * @group :
- * @ver : 2008.06.13
- * @by : snoweye
- * @---------------------------------------------------
- * @type : function
- * @access : private
- * @desc : 부분서식 로딩
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fLoadUnitForm()
- {
- initSection(gItemCds);
- }
- /**
- * @group :
- * @ver : 2009.12.03
- * @by : dhkim
- * @---------------------------------------------------
- * @type : function
- * @access : private
- * @desc : 부분서식 로딩후 후처리
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fOnLoadComplete()
- {
- var curLoadFormCd = this.frmf_getParameter("loadformcd");
-
- var objExt = new ExtCommon;
- var arrUnitformmast = objExt.findRows(ds_data_unitformmast, "formcd", curLoadFormCd);
-
- var fstLevlItemCd = "";
- for (var i=0; i<arrUnitformmast.length; i++) {
- var unitformload = ds_data_unitformmast.getColumn(arrUnitformmast[i], "loaded");
- if (unitformload != "true") {
- fstLevlItemCd = ds_data_unitformmast.getColumn(arrUnitformmast[i], "orgsupdegnitemcd");
- var ivwObj = ComnFormObj.components["ivw_" + fstLevlItemCd];
- if(!utlf_isNull(ivwObj))
- {
- var nRow = ds_data_unitformmast.findRow("orgsupdegnitemcd", fstLevlItemCd);
- ds_data_unitformmast.setColumn(nRow, "loaded", "true");
- //setFstLevlItemCdOnUnitForm(ivwObj, ds_data_unitformmast.getColumn(arrUnitformmast[i], "orgsupdegnitemno"));//부분서식의 아이템에 부분서식 상위코드를 세팅
- break;
- }
- }
- }
-
- if (fstLevlItemCd == "0000931001") {
- //주호소,퇴원계획
- fSetSizeFormCC(fstLevlItemCd);
- }
-
- //확장서식 데이터 값 매핑
- fExtnInitFormRec();
-
- gLoadFormCnts++;
- utlf_addLog("@@@@@ gItemCds.length : " + gItemCds.length + " gLoadFormCnts : " + gLoadFormCnts );
- if(gItemCds.length == gLoadFormCnts)
- {
- dispOnLoadComplete(UNIT_FORM);
-
- //서식 로딩 후 포커스 처리
- if (parent.fGetFormRec("status") == "C")
- {
- SetDefFocusMTX(gItemCds);
- }
- }
-
- //2010.04.14 dhkim 환자교육 날짜 default
- fSetEduDt();
-
- }
- /**
- * @group :
- * @ver : 2008.11.28
- * @by : jonghun
- * @---------------------------------------------------
- * @type : function
- * @access : private
- * @desc : 동일 서식이 떠있을 경우 내부 인스턴스 로딩 후 디폴트 조회내용 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetDefData()
- {
- dispOnLoadComplete(UNIT_FORM);
-
- if (parent.fGetFormRec("status") == "C")
- {
- SetDefFocusMTX(gItemCds);//공통기록 디폴트 포커스처리(MTX)
- }
- }
- /**
- * @desc : 서식 주호소 화면 로딩 후 사이즈 조절
- * care plan 화면 로딩 후 사이즈 조절
- * 퇴원계획화면 로딩 후 사이즈 조절
- * @id :
- * @event : xforms-ready
- * @return : void
- * @authur : dhkim
- */
- function fSetSizeFormCC(gItemCd_MMR00401)
- {
- //서식 주호소 화면 로딩
- if(gItemCd_MMR00401 == "0000931001")
- grup_base.ivw_0000931001.fInitPage(false, parseInt(grup_base.ivw_0000931001.position.height), parseInt(grup_base.ivw_0000931001.position.width));
-
- //퇴원계획화면 로딩
- // else if(gItemCd_MMR00401 == "0013328001")//상용구팝업 visible
- // grup_base.ivw_0013328001.fInitPage(false, parseInt(grup_base.ivw_0013328001.position.height), parseInt(grup_base.ivw_0013328001.position.width));
- }
- /**
- * @group :
- * @ver : 2009.12.04
- * @by : dhkim
- * @---------------------------------------------------
- * @type : function
- * @access : private
- * @desc : 부분서식 로딩
- * (0022826001) Care Plan,
- * (0013328001) 퇴원계획,
- * (0006747001) 환자및보호자교육
- * @param : gItemCds
- * @return :
- * @---------------------------------------------------
- */
- function loadUnitForm_MMR00401(itemCds){
- }
- /*******************************************************************
- * Function : expandSection_MMR00401
- * Description : care plan ivw 확대
- *******************************************************************/
- function expandSection_MMR00401(obj){
- var ctrlID = obj.name;
- var itemcd = ctrlID.replace("lbl_", "");
- var bFold = itemcd == gMaxSectionID ? true : false;
- var ctrl = null;
- var unitformcd = "";
- var itemCds = gItemCds;
-
- for (var i = 0; i < itemCds.length; i++)
- {
-
- var secCtrl = ComnFormObj.components["lbl_" + itemCds[i]];
- var nFindRow = ds_data_unitformmast.findRow("orgsupdegnitemcd", itemCds[i]);
- var formdegnseq = ds_data_unitformmast.getColumn(nFindRow, "formdegnseq");
- unitformcd = ds_data_unitformmast.getColumn(nFindRow, "formcd");
-
-
- if(utlf_isNull(formdegnseq))
- ctrl = ComnFormObj.components["tar_" + itemCds[i]];
- else
- ctrl = ComnFormObj.components["ivw_" + itemCds[i]];
-
-
- //20100106 dhkim ivw 축소/확장
- if(itemcd == itemCds[i]){
- if(bFold){
-
- ctrl.position.height = gMaxSectionHei;
-
- if (unitformcd == "0900006875")//care plan 상용구 hidden
- {
- ctrl.fInitPage(true, parseInt(gMaxSectionHei), parseInt(ctrl.position.width));
- }else{
- //ctrl.fInitPage(false, parseInt(gMaxSectionHei), parseInt(ctrl.position.width));
- }
-
- }else{
- ctrl.position.height = ctrl.orgheight;
-
- if (unitformcd == "0900006875")//care plan 상용구 hidden
- {
- ctrl.fInitPage(true, parseInt(secCtrl.orgheight), parseInt(ctrl.position.width));
- }else{
- //ctrl.fInitPage(false, parseInt(secCtrl.orgheight), parseInt(ctrl.position.width));
- }
-
- }
- }
-
- }
- }
- /**
- * @group :
- * @ver : 2009.10.09
- * @by :
- * @---------------------------------------------------
- * @type : function
- * @access : private
- * @desc :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function setInterfaceData()
- {
- // alert("setInterfaceData");
- var ifItemCds = new Array(
- "0000931001"//주호소
- , "0001173001"//현병력
- , "0000098001"//과거력
- , "0000079001"//계통문진
- , "0000570001"//신체검진
- , "0001019001"//추정진단
- , "0022826001"//Care Plan
- , "0013328001"//퇴원계획
- , "0006747001"//환자및보호자교육
- );
-
- copyNodeset(gPageInfo.recItemRef2, "/root/main/recifinfo/recitem", "replace", model, parent.model);
-
- setSrchData(gPageInfo.recItemRef2 , window);
- InitUnitFormData(ifItemCds);
-
- setButtonToggleAllByRecYn(window, gExtnBtnIds);
- }
- /**
- * @desc : 서식 데이터 Clear
- * @id :
- * @event : xforms-ready
- * @return : void
- * @authur : 박종훈
- */
- function fClearComnFormData()
- {
- if (gMaxSectionID != "")
- {
- var MaxObj = document.controls("lbl_" + gMaxSectionID);
- MaxObj.dispatch("onclick");
- }
-
- ClearComnFormData(gItemCds);
- clearData();
-
- //포커스 처리
- SetDefFocusMTX(gItemCds);
- }
- /**
- * @desc : 기록 인스턴스 연결
- * @id :
- * @event : xforms-ready
- * @return : void
- * @authur : 박종훈
- */
- function fSetRecItemValue(reciteminfo)
- {
- return SetCommMediFormValue(gItemCds, reciteminfo);
- }
- /*******************************************************************
- * Function : fChkPreSave
- * Description : 저장전 필수입력내역을 체크한다.
- * History : - (care plan, 퇴원계획)필수체크 추가
- * "0022826001"//Care Plan
- * "0013328001"//퇴원계획
- *******************************************************************/
- function fChkPreSave(signedYn)
- {
- // var nFindRow = ds_data_formdegn.findRow("degnitemcd", "0022826001");
- // var itemNm = ds_data_formdegn.getColumn(nFindRow, "itemnm");
- var rtnVal = true;
- if(rtnVal == false){
- return rtnVal;
- }else{
- // 요청번호:20160419029 입원초진기록 작성 관련 프로그램 요청
- if (parent.fGetFormRec("status") == "C" ) {
- lf_setEduDt();
- }
-
- if( signedYn == "N" )
- return true;
-
- // var nRow = ds_data_formdegn.findRow("degnitemcd", "0013328001");
- // itemNm = ds_data_formdegn.getColumn(nRow, "itemnm");
- // return grup_base.ivw_0013328001.fChkGrdPreSave(itemNm);
- }
-
-
- }
- /**
- * @group :
- * @ver : 2008.09.02
- * @by : jonghun
- * @---------------------------------------------------
- * @type : function
- * @access : private
- * @desc : 추가기록창 팝업처리
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fEtcRec()
- {
- //setParameter("etc_rec", "추가 기타기록 테스트입니다...");
- modal("SPMMR06100");
-
- var recrtn = getParameter("etcrec_rtn");
-
- if (recrtn != "")
- {
- model.setValue("/root/main/recinfo/recitem[degnitemlevlcd='0000098.0008458']/reccnts", recrtn);
- setParameter("etc_rec", recrtn);
-
- }
-
- //alert(recrtn);
- }
- /**
- * @desc : Value List데이터 아이템 값 매핑
- * @
- * @param :
- * @return :
- * @authur : 박종훈
- */
- function fSetDataValItem()
- {
-
- }
- /**
- * @desc : 확장서식 기록 초기 설정
- * @
- * @param :
- * @return :
- * @authur : 박종훈
- */
- function fExtnInitFormRec()
- {
- fSetDataValItem();
- }
- /*******************************************************************
- * Function : fPopEduDsch_SMMMR00401
- * Description : 퇴원요구도/교육요구도 jci 팝업 호출
- *******************************************************************/
- function fPopEduDsch_SMMMR00401(){
-
- var pid = parent.fGetPamInfo("pid");
- var indd = parent.fGetPamInfo("indd");
- var cretno = parent.fGetPamInfo("cretno");
-
- this.frmf_setParameter("SPMRJ00300_pid", pid);
- this.frmf_setParameter("SPMRJ00300_orddd", indd);
- this.frmf_setParameter("SPMRJ00300_cretno", cretno);
-
- frmf_modal("SPMRJ00300", "SPMRJ00300", null, null, 1, 0, 0, null, null, null, null, null, "M");
-
- }
- /*******************************************************************
- * Function : getSubmitID_MMR01300I
- * Description : MMR01300.js에서 submit직전에 submitID를 설정하기 위해서 호출한다.
- *******************************************************************/
- function getSubmitID_MMR01300I(flag) {
- //2010.02.23 dhkim - 통합기록조회용 JCI구분자추가(fSetXsltFlag없애고 getSubmitID_MMR01300I로 이동)
- parent.fSetFormRec("xsltflag", "JCI3");
-
- //2010.03.12 안치원 - 수정없이 staff-sign할때 xsltflag가 들어가지 않는 오류수정
- if (utlf_isNull(flag)) {
- parent.fSetFormRec("addexecflag", "careplan;patedu");
- return TX_SUBMIT_EXTN_FORM;
- }
- }
- /*******************************************************************
- * Function : initFormAtLast_MMR01100I
- * Description : MMR01100.js에서 서식load를 완료한 후에 호출한다.
- *******************************************************************/
- function initFormAtLast_MMR01100I() {
-
- //grup_base.ivw_0013328001.fAddrow();
-
- var flag = false;
- if (parent.fGetFormRec("status") == "U" ) {
- if (parent.fGetFormRec("espiyn") == "Y") {
-
- var sSendDsNm = dsf_createDs("ds_send_extninfo", [{col: "infoflag" , type:"STRING", size:256}
- , {col: "formrecseq" , type:"BIGDECIMAL", size:256}
- , {col: "oprsrvno" , type:"STRING", size:256}
- , {col: "opendyn" , type:"STRING", size:256}
- , {col: "skinprepyn" , type:"STRING", size:256}
- , {col: "pid" , type:"STRING", size:256}
- , {col: "orddd" , type:"STRING", size:256}
- , {col: "cretno" , type:"STRING", size:256}
- , {col: "fromsrcformcd" , type:"STRING", size:256}
- , {col: "toformcd" , type:"STRING", size:256}
- , {col: "indd" , type:"STRING", size:256}
- , {col: "dschdd" , type:"STRING", size:256}
- , {col: "standd" , type:"STRING", size:256}
- , {col: "deptcd" , type:"STRING", size:256}
- , {col: "jobkindcd" , type:"STRING", size:256}
- , {col: "fstlevlitembasecds", type:"STRING", size:256}
- , {col: "srcformcd" , type:"STRING", size:256}
- , {col: "formrecdd" , type:"STRING", size:256}
- , {col: "anstdeptcd" , type:"STRING", size:256}
- , {col: "opdd" , type:"STRING", size:256}
- , {col: "recdataflag" , type:"STRING", size:256}
- , {col: "formrecdeptcd" , type:"STRING", size:256}
- , {col: "condflag" , type:"STRING", size:256}
- , {col: "orddeptcd" , type:"STRING", size:256}]);
-
-
- var objSendDS:Dataset = new Dataset;
- objSendDS = this.objects[sSendDsNm];
- objSendDS.addRow();
-
- //2010.01.15 안치원 - 입원초진기록JCI Staff-Sign 막음.
- //2010.02.25 dhkim - staff-sign주석해제
- flag = true;
- objSendDS.setColumn(0, "infoflag", "staffauth");
- objSendDS.setColumn(0, "formrecseq", parent.fGetFormRec("formrecseq"));
- }
- } else if (parent.fGetFormRec("status") == "C" ) {
-
- //2010.04.29 안치원 - 응급실,DSC경유 입원환자는 간호입실일자를 진료일자로하여 입원초진기록을 작성한다.
- //2010.04.29 dhkim - 응급실,DSC경유 입원환자 진료시간도 간호입실시간으로하여 입원초진기록을 작성한다.
- var ordtype = parent.fGetPamInfo("ioflag");
- var orgordtype = parent.fGetPamInfo("orgordtype");
- var careinrmdd = parent.fGetPamInfo("careinrmdd");
- var careinrmtm = parent.fGetPamInfo("careinrmtm");
- if (ordtype == "I" && orgordtype != "I" && ! utlf_isNull(careinrmdd)) {
- parent.fSetFormRec("formrecdd", careinrmdd);
- }
- if (ordtype == "I" && orgordtype != "I" && ! utlf_isNull(careinrmtm)) {
- parent.fSetFormRec("formrechm", careinrmtm);
- }
-
- //2010.04.14 dhkim 환자및 보호자 교육 일시 펑션 호출로 변경
- // fSetEduDt();
- this.setTimer(1, 500);
- }
-
- if (flag) {
-
- // return dataset set
- var sRtnDsNm_1 = dsf_createDs("ds_main_extninfo_resultinfo", [{col: "infoflag", type:"STRING", size:256}]);
- var objRtnDS_1:Dataset = new Dataset;
- objRtnDS_1 = this.objects[sRtnDsNm_1];
-
- var sRtnDsNm_2 = dsf_createDs("ds_main_extninfo_staffauthinfo", [{col: "authyn", type:"STRING", size:256}]);
- var objRtnDS_2:Dataset = new Dataset;
- objRtnDS_2 = this.objects[sRtnDsNm_2];
- var sRtnDsNm_3 = dsf_createDs("ds_main_extninfo_oprinfo", [{col: "oprsrvno" , type:"STRING", size:256}
- , {col: "opcnfmdd" , type:"STRING", size:256}
- , {col: "opcnfmhm" , type:"STRING", size:256}
- , {col: "perfdeptcd" , type:"STRING", size:256}
- , {col: "perfdrid" , type:"STRING", size:256}
- , {col: "perfdrnm" , type:"STRING", size:256}
- , {col: "assdrid" , type:"STRING", size:256}
- , {col: "assdrnm" , type:"STRING", size:256}
- , {col: "oproomcd" , type:"STRING", size:256}
- , {col: "anstdrid" , type:"STRING", size:256}
- , {col: "anstdrnm" , type:"STRING", size:256}
- , {col: "anstmthdcd" , type:"STRING", size:256}
- , {col: "anstmthdnm" , type:"STRING", size:256}
- , {col: "anstmthdcdsub" , type:"STRING", size:256}
- , {col: "anstmthdcdsubnm" , type:"STRING", size:256}
- , {col: "skinprepcc" , type:"STRING", size:256}
- , {col: "perfdrnm2" , type:"STRING", size:256}
- , {col: "perfdrnm3" , type:"STRING", size:256}
- , {col: "assdrnm2" , type:"STRING", size:256}
- , {col: "assdrnm3" , type:"STRING", size:256}
- , {col: "assdrnm4" , type:"STRING", size:256}]);
- var objRtnDS_3:Dataset = new Dataset;
- objRtnDS_3 = this.objects[sRtnDsNm_3];
- var sRtnDsNm_4 = dsf_createDs("ds_main_extninfo_oplistinfo", [{col: "opinfo" , type:"STRING", size:256}
- , {col: "oprsrvno" , type:"STRING", size:256}
- , {col: "deptcd" , type:"STRING", size:256}
- , {col: "depthngnm" , type:"STRING", size:256}
- , {col: "opcnfmdd" , type:"STRING", size:256}]);
-
- var objRtnDS_4:Dataset = new Dataset;
- objRtnDS_4 = this.objects[sRtnDsNm_4];
-
- var sRtnDsNm_5 = dsf_createDs("ds_main_extninfo_recitem", [{col: "instcd" , type:"STRING", size:256}
- , {col: "rechistseq" , type:"BIGDECIMAL", size:256}
- , {col: "recitemno" , type:"INT", size:256}
- , {col: "fstlevlitemcd" , type:"STRING", size:256}
- , {col: "formcd" , type:"STRING", size:256}
- , {col: "formdegnseq" , type:"BIGDECIMAL", size:256}
- , {col: "degnitemno" , type:"INT", size:256}
- , {col: "degnitemcd" , type:"STRING", size:256}
- , {col: "degnitemkind" , type:"STRING", size:256}
- , {col: "degnitemlevlno" , type:"STRING", size:256}
- , {col: "degnitemnm" , type:"STRING", size:256}
- , {col: "degnitemlevlcd" , type:"STRING", size:256}
- , {col: "rectermcd" , type:"STRING", size:256}
- , {col: "rectermnm" , type:"STRING", size:256}
- , {col: "recrefcd" , type:"STRING", size:256}
- , {col: "recitemnm" , type:"STRING", size:256}
- , {col: "reccnts" , type:"STRING", size:256}
- , {col: "unitnm" , type:"STRING", size:256}
- , {col: "recimge" , type:"BLOB", size:256}
- , {col: "srcimge" , type:"BLOB", size:256}
- , {col: "rowno" , type:"STRING", size:256}
- , {col: "colno" , type:"STRING", size:256}
- , {col: "supdegnitemno" , type:"INT", size:256}
- , {col: "extdegnitemlevlcd" , type:"STRING", size:256}
- , {col: "rectermflag" , type:"STRING", size:256}
- , {col: "degnunitcd" , type:"STRING", size:256}]);
- var objRtnDS_5:Dataset = new Dataset;
- objRtnDS_5 = this.objects[sRtnDsNm_5];
- //dsf_setTypeFormat(objRtnDS_5, "recitemno:INT^degnitemno:INT^supdegnitemno:INT");
- var sRtnDsNm_6 = dsf_createDs("ds_main_extninfo_drlistinfo", [{col: "userid" , type:"STRING", size:256}
- , {col: "usernm" , type:"STRING", size:256}
- , {col: "mpphonno" , type:"STRING", size:256}
- , {col: "refseq" , type:"STRING", size:256}]);
-
- var objRtnDS_6:Dataset = new Dataset;
- objRtnDS_6 = this.objects[sRtnDsNm_6];
-
- var sRtnDsNm_7 = dsf_createDs("ds_data_diagcdlist", [{col: "diagkindcd" , type:"STRING", size:256}
- , {col: "diagkindcdflag" , type:"STRING", size:256}
- , {col: "icd10cd" , type:"STRING", size:256}
- , {col: "icd10cd" , type:"STRING", size:256}
- , {col: "diagengnm" , type:"STRING", size:256}
- , {col: "termhngnm" , type:"STRING", size:256}]);
-
- var objRtnDS_7:Dataset = new Dataset;
- objRtnDS_7 = this.objects[sRtnDsNm_7];
- var sRtnDsNm_8 = dsf_createDs("ds_main_extninfo_selectoplist", [{col: "opcd" , type:"STRING", size:256}
- , {col: "opengnm" , type:"STRING", size:256}]);
-
- var objRtnDS_8:Dataset = new Dataset;
- objRtnDS_8 = this.objects[sRtnDsNm_8];
- var sRtnDsNm_9 = dsf_createDs("ds_main_extninfo_dscinoutinfo", [{col: "nurin" , type:"STRING", size:256}
- , {col: "nurout" , type:"STRING", size:256}
- , {col: "oprin" , type:"STRING", size:256}
- , {col: "oprout" , type:"STRING", size:256}]);
-
- var objRtnDS_9:Dataset = new Dataset;
- objRtnDS_9 = this.objects[sRtnDsNm_9];
-
- var sRtnDsNm_10 = dsf_createDs("ds_main_extninfo_rectextinfo", [{col: "fstlevlitembasecd" , type:"STRING", size:256}
- , {col: "viewcnts" , type:"STRING", size:256}]);
-
- var objRtnDS_10:Dataset = new Dataset;
- objRtnDS_10 = this.objects[sRtnDsNm_10];
-
- var sRtnDsNm_11 = dsf_createDs("ds_main_extninfo_anstdrlistinfo", [{col: "userid" , type:"STRING", size:256}
- , {col: "usernm" , type:"STRING", size:256}
- , {col: "mpphonno" , type:"STRING", size:256}
- , {col: "refseq" , type:"STRING", size:256}]);
-
- var objRtnDS_11:Dataset = new Dataset;
- objRtnDS_11 = this.objects[sRtnDsNm_11];
- var sRtnDsNm_12 = dsf_createDs("ds_main_extninfo_oproomlistinfo", [{col: "oproomcd" , type:"STRING", size:256}
- , {col: "oproomnm" , type:"STRING", size:256}]);
-
- var objRtnDS_12:Dataset = new Dataset;
- objRtnDS_12 = this.objects[sRtnDsNm_12];
- var sRtnDsNm_13 = dsf_createDs("ds_main_extninfo_recseqinfo", [{col: "formrecseq" , type:"STRING", size:256}]);
-
- var objRtnDS_13:Dataset = new Dataset;
- objRtnDS_13 = this.objects[sRtnDsNm_13];
- var sRtnDsNm_14 = dsf_createDs("ds_main_extninfo_etcinfo", [{col: "col0" , type:"STRING", size:256}
- , {col: "col1" , type:"STRING", size:256}
- , {col: "col2" , type:"STRING", size:256}
- , {col: "col3" , type:"STRING", size:256}
- , {col: "col4" , type:"STRING", size:256}
- , {col: "col5" , type:"STRING", size:256}
- , {col: "col6" , type:"STRING", size:256}
- , {col: "col7" , type:"STRING", size:256}
- , {col: "col8" , type:"STRING", size:256}
- , {col: "col9" , type:"STRING", size:256}]);
- var objRtnDS_14:Dataset = new Dataset;
- objRtnDS_14 = this.objects[sRtnDsNm_14];
-
- var oParam = {};
- oParam.id = "TRMMR01302";
- oParam.service = "medirecapp.RecIf";
- oParam.method = "reqGetFormRecExtnInfo";
- oParam.inds = "req="+sSendDsNm;
- oParam.outds = sRtnDsNm_1+"=resultinfo "+sRtnDsNm_2+"=staffauthinfo "+sRtnDsNm_3+"=oprinfo "+sRtnDsNm_4+"=oplistinfo "+sRtnDsNm_5+"=recitem "+sRtnDsNm_6+"=drlistinfo "+sRtnDsNm_7+"=diagcdlist "+sRtnDsNm_8+"=selectoplist "+sRtnDsNm_9+"=dscinoutinfo "+sRtnDsNm_10+"=rectextinfo "+sRtnDsNm_11+"=anstdrlistinfo "+sRtnDsNm_12+"=oproomlistinfo "+sRtnDsNm_13+"=recseqinfo "+sRtnDsNm_14+"=etcinfo";
- oParam.async = false;
- oParam.callback = "cf_TRMMR01302";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TRMMR01302") > -1){
- var execInfoFlag = utlf_transNullToEmpty(objRtnDS_1.getColumn(0, "infoflag"));
- if (execInfoFlag.indexOf("staffauth;") != -1) {
- fCosignCheck_SMMMR00401();
- }
- }
- }
- }
- function cf_TRMMR01302(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- utlf_addLog("***** cf_TRMMR01302 *****");
- dsf_setDefaultVal(ds_main_extninfo_recitem, "recitemno:'',degnitemno:'',supdegnitemno:''");
- dsf_setTypeFormat(ds_main_extninfo_recitem, "recitemno:INT^degnitemno:INT^supdegnitemno:INT");
- }
- /**
- * @desc : 분만실코드조회(간호공통테이블에서조회)
- * @ver : 2010.04.26 dhkim 추가
- */
- function fGetNursHardCdInfo_MMR00401(pCode, pDate){
- model.removeNodeset("/root/send_mmr00401");
- model.removeNodeset("/root/code_mmr00401");
- model.makeNode("/root/code_mmr00401");
- model.makeValue("/root/send_mmr00401/cdgrupid", pCode); // 조회할 CdGrupID 코드정보
- model.makeValue("/root/send_mmr00401/srchdd" , pDate); // 조회기준일자
- submit("TRMMR00902",false);
- }
- /*******************************************************************
- * Function : fSetEduDt
- * Description : 환자및 보호자 교육 일자,시간 세팅
- *******************************************************************/
- function fSetEduDt(){
- utlf_addLog("***** fSetEduDt() *****");
- if (parent.fGetFormRec("status") == "C" ) {
- if (!utlf_isNull(grup_base.ivw_0006747001.url)) {
- //2010.01.15 dhkim - format변경
- var itemVal = new ITEMVAL();
- var str = parent.fGetFormRec("formrecdd") + parent.fGetFormRec("formrechm");
- var formRecDt = str.toDate("YYYYMMDDhhmm");
-
- //교육일자 설정
- itemVal.reccnts = formRecDt.getDateFormat("YYYYMMDD");
- grup_base.ivw_0006747001.setFormItemValue("0000160", itemVal); //0006747.
-
- //교육시간 설정
- itemVal.reccnts = formRecDt.getDateFormat("hhmm");
- grup_base.ivw_0006747001.setFormItemValue("0000538", itemVal); //0006747.
- }
- }
- }
- /*******************************************************************
- * Function : fCosignCheck_SMMMR00401
- * Description : staff-sign 버튼을 설정한다.
- *******************************************************************/
- function fCosignCheck_SMMMR00401() {
- utlf_addLog("***** fCosignCheck_SMMMR00401() *****");
- if (parent.fGetFormRec("formrecdeptcd") == sysf_getUserInfo("dutplcecd")) {
-
- if (parent.fGetFormRec("espiyn") == "Y") {
-
- var authyn = ds_main_extninfo_staffauthinfo.getColumn(0, "authyn");
- var cosign = parent.fGetFormRec("cosign");
- utlf_addLog("authyn :"+authyn + "cosign :"+cosign );
- utlf_addLog("authyn getFormrec:"+parent.fGetFormRec("authyn"));
-
- if (cosign == "Y") {
- if (parent.fGetFormRec("cosignid") == sysf_getUserId()) {
- if (parent.fGetFormRec("formrecuserid") == sysf_getUserId()) {
- //staff이 신규작성하여 sign된 경우 수정모드
- // [요청번호:20180712032] 입퇴원요약기록, 수술기록의 STAFF SIGN 관련건 수정모드 -> 싸인모드
- parent.initButtonLayer_MMR01100("staff_auth_y");
- } else {
- //전공의가 신규작성하여 staff이 sign한 경우 싸인모드
- parent.initButtonLayer_MMR01100("staff_auth_y");
- }
- } else {
- //staff sign이후이므로 staff이외에는 수정불가
- parent.initButtonLayer_MMR01100("no_auth");
- }
- } else {
- if (authyn == "Y") {
- //전공의 신규작성후에 staff이 수정모드로 열었으므로, 싸인모드
- parent.initButtonLayer_MMR01100("staff_auth_y");
- } else {
- //수정모드
- parent.initButtonLayer_MMR01100("staff_auth_n");
- }
- }
-
- } else {
- //수정모드
- parent.initButtonLayer_MMR01100("staff_auth_n");
- }
-
- } else {
- parent.initButtonLayer_MMR01100("no_auth");
- }
- }]]></Script>
|