123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>기본간호추가시행등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patinfo>
- <info>
- <pid/>
- <cretno/>
- <orddd/>
- <hngnm/>
- <orddeptcd/>
- <orddeptnm/>
- <wardcd/>
- <wardnm/>
- <roomcd/>
- <sexage/>
- <age/>
- <hd/>
- <diagcd/>
- <diaghngnm/>
- <diagengnm/>
- </info>
- <patinfolist>
- <pid/>
- <hngnm/>
- </patinfolist>
- </patinfo>
- <patsrchinfo/>
- <patforminfo>
- <info>
- <pid/>
- <cretno/>
- <orddd/>
- <hngnm/>
- <orddeptcd/>
- <orddeptnm/>
- <wardcd/>
- <wardnm/>
- <roomcd/>
- <sexage/>
- <age/>
- <hd/>
- <diagcd/>
- <diaghngnm/>
- <diagengnm/>
- </info>
- <patinfolist>
- <pid/>
- <hngnm/>
- </patinfolist>
- </patforminfo>
- <nursebasicitem>
- <info>
- <itemnm>세발간호</itemnm>
- <execyn>N</execyn>
- <remcnts/>
- <status>-</status>
- </info>
- <info>
- <itemnm>목욕(전신)간호</itemnm>
- <execyn>N</execyn>
- <remcnts/>
- <status>-</status>
- </info>
- </nursebasicitem>
- <nursebasicinfo>
- <info/>
- </nursebasicinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- ]]>
- </script>
- <submission id="TRMNR08301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript">
- <![CDATA[
- var oRow = 0;
- var oSaveFlag = "";
-
- function finit(){
- oRow = opener.grd_nursebasic.row - opener.grd_nursebasic.fixedRows + 1;
- oSaveFlag = opener.window.javascript.saveFlag;
-
- if( oSaveFlag == "A" ){
- //grd_nursebaseitem.disabled = true;
- btn_save.disabled = true;
- }
-
- if( oRow >= 1 ){
- //기본간호 수행 유무 및 기타정보 셋팅
- if( opener.model.getValue("/root/main/forminfo/info/status") == "U" ){
- model.setValue( "/root/main/nursebasicitem/info[1]/execyn", opener.model.getValue("/root/main/nursebasicinfo/info[" + oRow + "]/hrwshexecstat") );
- model.setValue( "/root/main/nursebasicitem/info[2]/execyn", opener.model.getValue("/root/main/nursebasicinfo/info[" + oRow + "]/bathexecstat") );
- model.setValue( "/root/main/nursebasicitem/info[1]/remcnts", opener.model.getValue("/root/main/nursebasicinfo/info[" + oRow + "]/hrwshremcnts") );
- model.setValue( "/root/main/nursebasicitem/info[2]/remcnts", opener.model.getValue("/root/main/nursebasicinfo/info[" + oRow + "]/bathremcnts") );
- }
- //환자정보 조회
- fGetPatInfo( opener.model.getValue("/root/main/nursebasicinfo/info[" + oRow + "]/pid"), "N" );
- }
- }
-
- function fGetPatInfo(pid, refreshyn){
- if( isNull(refreshyn) ) refreshyn = "Y";
-
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/pid", pid);
- if(submit("TRMNR08301", true)){
- if( refreshyn == "Y" ){
- model.setValue( "/root/main/nursebasicitem/info[1]/execyn", "N" );
- model.setValue( "/root/main/nursebasicitem/info[2]/execyn", "N" );
- model.setValue( "/root/main/nursebasicitem/info[1]/remcnts", "" );
- model.setValue( "/root/main/nursebasicitem/info[2]/remcnts", "" );
- }
- }
-
- var nodelist = model.instances(0).selectNodes("/root/main/patinfo/info/pid");
- if(nodelist.length <= 0){
- var trgtpid = model.getValue("/root/send/reqdata/pid");
- messageBox("등록번호[" + trgtpid + "]로 환자를 조회", "E001");
- copyNodeListType("/root/main/patinfo", "/root/main/patforminfo/info", "replace", model, model);
- return;
- }
- }
-
- function fSaveAddExecInfo(flag){
- var saveDataNodes = instance1.selectNodes("/root/main/nursebasicitem/info[status!='-']");
- if( saveDataNodes.length <= 0 ){
- messageBox( "저장할 데이터가", "I004"); //없습니다
- return false;
- }
-
- var patRef = "/root/main/patinfo/info";
- var itemRef = "/root/main/nursebasicitem/info";
- var ref = "/root/main/forminfo/info"; //"/root/main/nursebasicinfo/info";
-
- opener.model.setValue( ref + "/pid", model.getValue(patRef + "/pid") );
- opener.model.setValue( ref + "/cretno", model.getValue(patRef + "/cretno") );
- opener.model.setValue( ref + "/indd", model.getValue(patRef + "/indd") );
-
- opener.model.setValue( ref + "/hrwshexecstat", model.getValue(itemRef + "[" + 1 + "]/execyn") );
- opener.model.setValue( ref + "/hrwshremcnts", model.getValue(itemRef + "[" + 1 + "]/remcnts") );
- opener.model.setValue( ref + "/bathexecstat", model.getValue(itemRef + "[" + 2 + "]/execyn") );
- opener.model.setValue( ref + "/bathremcnts", model.getValue(itemRef + "[" + 2 + "]/remcnts") );
-
- //opener.model.setValue( ref + "/status", "I" ); //오프너에서 화면을 호출할때 값이 셋팅됨.
-
- if( opener.model.getValue( ref + "/status") == "U" ){
- opener.model.setValue( ref + "/rgstdd", opener.model.getValue("/root/main/nursebasicinfo/info[" + oRow + "]/rgstdd") );
- opener.model.setValue( ref + "/rgstno", opener.model.getValue("/root/main/nursebasicinfo/info[" + oRow + "]/rgstno") );
- opener.model.setValue( ref + "/rgsthistno", opener.model.getValue("/root/main/nursebasicinfo/info[" + oRow + "]/rgstno") );
-
- if( model.getValue(itemRef + "[" + 1 + "]/execyn") == "N" && model.getValue(itemRef + "[" + 2 + "]/execyn") == "N" ){
- //opener.model.setValue( ref + "/status", "D" ); //수행취소
- }
- }else{
- if( model.getValue(itemRef + "[" + 1 + "]/execyn") == "N" && model.getValue(itemRef + "[" + 2 + "]/execyn") == "N" ){
- messageBox( "시행 유무를 ", "C002"); //선택
- return false;
- }
- }
-
- copyNodeType("/root/main/nursebasicinfo", "/root/main/forminfo", "after", opener.model, opener.model);
-
- return opener.window.javascript.fSaveInfo("E", "N");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="616" pageheight="216" guideline="1,1190;1,200;1,295;1,597;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_2" style="left:0px; top:0px; width:257px; height:14px; ">추가시행 등록</caption>
- <group id="group1" style="left:0px; top:20px; width:600px; height:163px; ">
- <input id="ipt_pid" ref="/root/main/patinfo/info/pid" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" style="left:97px; top:6px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- pid = ipt_pid.currentText; //model.getValue("/root/main/patinfo/info/pid");
- model.setValue("/root/main/patinfo/info/pid", pid);
-
- fGetPatInfo(pid, "Y");
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="cell_1" style="left:200px; top:5px; width:95px; height:23px; ">환자명</caption>
- <caption id="caption2" class="cell_1" style="left:400px; top:5px; width:95px; height:23px; ">병실</caption>
- <button id="button61" class="icon_search" style="left:180px; top:7px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500");
-
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.setValue("/root/main/patinfo/info/pid", pid);
- model.setValue("/root/main/patinfo/info/hngnm", hngnm);
-
- //submit("");
-
- ]]>
- </script>
- </button>
- <caption id="caption3" class="cell_1" style="left:200px; top:29px; width:95px; height:23px; ">진료과</caption>
- <caption id="caption4" class="cell_1" style="left:400px; top:29px; width:95px; height:23px; ">HD</caption>
- <line id="line1" class="line_2" style="x1:0px; y1:27px; x2:600px; y2:27px; "/>
- <line id="line17" class="line_1" style="x1:0px; y1:0px; x2:600px; y2:0px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:5px; width:95px; height:23px; ">등록번호</caption>
- <line id="line2" class="line_2" style="x1:0px; y1:51px; x2:600px; y2:51px; "/>
- <input id="input1" ref="/root/main/patinfo/info/hngnm" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" style="left:297px; top:6px; width:100px; height:19px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:85px; x2:600px; y2:85px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:29px; width:95px; height:23px; ">성별/연령</caption>
- <input id="input2" ref="/root/main/patinfo/info/roomcd" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" style="left:497px; top:6px; width:100px; height:19px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:160px; x2:600px; y2:160px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:53px; width:95px; height:33px; ">진단명</caption>
- <input id="input3" ref="/root/main/patinfo/info/sexage" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" style="left:97px; top:30px; width:100px; height:19px; "/>
- <input id="input5" ref="/root/main/patinfo/info/hd" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" style="left:497px; top:30px; width:100px; height:19px; "/>
- <input id="input4" ref="/root/main/patinfo/info/orddeptnm" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" style="left:297px; top:30px; width:100px; height:19px; "/>
- <textarea id="textarea1" ref="/root/main/patinfo/info/diagengnm" editable="false" style="left:97px; top:54px; width:500px; height:30px; "/>
- <datagrid id="grd_nursebaseitem" nodeset="/root/main/nursebasicitem/info" caption="기본간호 업무^시행유무^기타" colsep="^" colwidth="200, 94, 300" fixedcols="1" frozencols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:87px; width:597px; height:71px; ">
- <col ref="itemnm" type="output"/>
- <col ref="execyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="remcnts" type="input"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var iRow = grd_nursebaseitem.row;
- if( iRow > 0 && iRow <= grd_nursebaseitem.rows ){
- model.setValue("/root/main/nursebasicitem/info[" + iRow + "]/status", "I");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group2" style="left:0px; top:185px; width:600px; height:25px; ">
- <button id="btn_save" class="btn2_letter2" style="left:509px; top:3px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fSaveAddExecInfo("E") ){
- model.resetInstanceNode("/root/main/forminfo/info");
- window.close();
- }else{
- model.resetInstanceNode("/root/main/forminfo/info");
- }
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn2_letter2" style="left:554px; top:3px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|