123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>PMP관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <pmplist>
- <pmplist>
- <inptdd/>
- <prtlnm/>
- <prtldg/>
- <ht/>
- <wt/>
- <bsa/>
- <spcffact/>
- </pmplist>
- <patlist>
- <pid/>
- <hngnm/>
- <age/>
- <rgstno/>
- <roomcd/>
- <patcls/>
- <orddeptnm/>
- <orddrnm/>
- <indd/>
- <dschdd/>
- <inpath/>
- <hometel/>
- <addr/>
- </patlist>
- </pmplist>
- <pharlist>
- <pharlist>
- <writid/>
- <writnm/>
- </pharlist>
- </pharlist>
- </main>
- <init>
- </init>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden>
- <userinfo>
- <userid/>
- <usernm/>
- </userinfo>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if(opener.javascript.getParameter("SMADT30800_pid") != "") {
- model.setValue("/root/main/pmplist/patlist/pid", opener.javascript.getParameter("SMADT30800_pid"));
- model.refresh();
- btn_req.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <submission id="TRADT30801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/pmplist"/>
- <submission id="TRADT00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/usersrchinfo" replace="instance" resultref="/root/hidden/userinfo"/>
- <submission id="TXADT30801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/pmplist"/>
- <script type="javascript">
- <![CDATA[
-
- function fSetIBW(){
- var ht = model.getValue( "/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht")/100;
- if (model.getValue( "/root/main/pmplist/patlist/sex") =="M"){
- model.setValue ( "/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wt", 22* ht * ht );
- } else {
- model.setValue ( "/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wt", 21* ht * ht );
- }
- model.refresh();
- }
-
-
- function fCalcVol(){
-
- var kg = model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wt");
- bsa = Math.pow( (parseFloat( model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht") ) *parseFloat( kg ) /3600), 0.5);
- bsa= Math.round( bsa * 100) /100;
- model.setValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/bsa", bsa);
- model.refresh();
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="900" pageheight="810" guideline="1,864;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:1px; top:0px; width:525px; height:13px; ">PMP관리</caption>
- <group id="group3" scroll="auto" style="left:3px; top:15px; width:867px; height:765px; ">
- <line id="line2" class="line_1" style="x1:1px; y1:18px; x2:864px; y2:18px; "/>
- <input id="ipt_writeid" ref="/root/main/pharlist/pharlist/writid" class="input_essential" autonext="false" maxlength="10" style="left:525px; top:38px; width:72px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- if(model.getValue("/root/main/pharlist/pharlist/writid") != "") {
- var writid = model.getValue("/root/main/pharlist/pharlist/writid");
- model.makeValue("/root/send/usersrchinfo/srchuserid",writid);
- var success = submit("TRADT00105");
-
- if (success) {
- model.setValue("/root/main/pharlist/pharlist/writid", model.getValue("/root/main/pharlist/pharlist/writid"));
- model.setValue("/root/main/pharlist/pharlist/writnm",model.getValue("/root/hidden/userinfo/item/usernm"));
- model.refresh();
-
- // 반환된 약사정보(이름) 체크
- if(model.getValue("/root/main/pharlist/pharlist/writnm") != "") {
- btn_save.disabled = false;
-
- } else {
- messageBox("입력한 사번으로 이름 확인을", "E009");
- model.setFocus("ipt_writeid");
- btn_save.disabled = true;
- return;
- }
- }
- } else {
- messageBox("사번은", "I003");
- btn_save.disabled = true;
- return;
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_writenm" ref="/root/main/pharlist/pharlist/writnm" class="output_fix" style="left:638px; top:38px; width:75px; height:19px; "/>
- <caption id="caption19" class="cell_1" style="left:600px; top:36px; width:35px; height:23px; vertical-align:middle; ">이름</caption>
- <caption id="caption21" class="cell_1" style="left:488px; top:36px; width:35px; height:23px; vertical-align:middle; ">사번</caption>
- <line id="line5" class="line_1" style="x1:1px; y1:216px; x2:864px; y2:216px; "/>
- <caption id="caption1" class="tit_2" style="left:2px; top:3px; width:82px; height:13px; ">환자정보</caption>
- <shape id="roundrect1" class="roundrect_btnset" appearance="roundrect" ellipseheight="20" el3lipsewidth="20" style="left:1px; top:23px; width:429px; height:182px; background-color:#f2fafe; border-color:#7cbbdd; "/>
- <output id="opt_hngnm" ref="/root/main/pmplist/patlist/hngnm" class="output_fix" appearance="output" style="left:88px; top:55px; width:80px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:213px; top:77px; width:80px; height:23px; vertical-align:middle; ">환자분류</caption>
- <caption id="caption11" class="cell_1" style="left:5px; top:177px; width:80px; height:23px; vertical-align:middle; ">주소</caption>
- <caption id="caption3" class="cell_1" style="left:213px; top:52px; width:80px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption15" class="cell_1" style="left:5px; top:52px; width:80px; height:23px; vertical-align:middle; ">환자명</caption>
- <caption id="caption7" class="cell_1" style="left:5px; top:77px; width:80px; height:23px; vertical-align:middle; ">병실명</caption>
- <caption id="caption16" class="cell_1" style="left:5px; top:127px; width:80px; height:23px; vertical-align:middle; ">입원일</caption>
- <output id="opt_rgstno" ref="/root/main/pmplist/patlist/rgstno" class="output_fix" appearance="output" style="left:297px; top:55px; width:119px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:5px; top:152px; width:80px; height:23px; vertical-align:middle; ">내원경로</caption>
- <caption id="caption17" class="cell_1" style="left:213px; top:127px; width:80px; height:23px; vertical-align:middle; ">퇴원일</caption>
- <caption id="caption18" class="cell_1" style="left:213px; top:152px; width:80px; height:23px; vertical-align:middle; ">전화번호</caption>
- <caption id="caption9" class="cell_1" style="left:5px; top:27px; width:80px; height:23px; vertical-align:middle; ">등록번호</caption>
- <output id="opt_addr" ref="/root/main/pmplist/patlist/addr" class="output_fix" appearance="output" style="left:88px; top:179px; width:329px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:5px; top:102px; width:80px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption4" class="cell_1" style="left:213px; top:102px; width:80px; height:23px; vertical-align:middle; ">진료의사</caption>
- <output id="opt_roomcd" ref="/root/main/pmplist/patlist/roomcd" class="output_fix" appearance="output" style="left:88px; top:80px; width:120px; height:19px; "/>
- <output id="opt_orddept" ref="/root/main/pmplist/patlist/orddeptnm" class="output_fix" appearance="output" style="left:88px; top:105px; width:120px; height:19px; "/>
- <output id="opt_patcls" ref="/root/main/pmplist/patlist/patcls" class="output_fix" appearance="output" style="left:297px; top:80px; width:120px; height:19px; "/>
- <output id="opt_indd" ref="/root/main/pmplist/patlist/indd" class="output_fix" appearance="output" style="left:88px; top:130px; width:120px; height:19px; "/>
- <output id="opt_chospath" ref="/root/main/pmplist/patlist/inpath" class="output_fix" appearance="output" style="left:88px; top:154px; width:120px; height:19px; "/>
- <output id="opt_orddrid" ref="/root/main/pmplist/patlist/orddrnm" class="output_fix" appearance="output" style="left:297px; top:105px; width:120px; height:19px; "/>
- <caption id="caption5" style="left:500px; top:70px; width:250px; height:28px; ">
- <![CDATA[사원번호를 입력하고 Enter Key를
- 눌러야 저장 Button이 활성화 됩니다.]]>
- </caption>
- <button id="btn_pnt" class="btn4_letter2" style="left:594px; top:110px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPADT30800", "XMLSTR", "RPADT30800", "", "true","","","","","false", "", "");
-
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" disabled="true" style="left:535px; top:110px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/pmplist", grid_pmplist.getUpdateData());
- /*model.makeValue("/root/send/savedata/sickclscd", model.getValue("/root/main/pmplist/patlist/sickclscd"));
- model.makeValue("/root/send/savedata/ioflag", model.getValue("/root/main/pmplist/patlist/ioflag"));
- model.makeValue("/root/send/savedata/orddeptcd", model.getValue("/root/main/pmplist/patlist/orddeptcd"));*/
- model.makeValue("/root/send/savedata/pid", model.getValue("/root/main/pmplist/patlist/pid"));
- model.makeValue("/root/send/savedata/writid", model.getValue("/root/main/pharlist/pharlist/writid"));
- submit("TXADT30801");
-
- ]]>
- </script>
- </button>
- <datagrid id="grid_pmplist" nodeset="/root/main/pmplist/pmplist" autoresize="true" caption="입력일자^프로토콜^차수^키(cm)^몸무게(kg)^몸무게(kg)^BSA^특이사항^pmpseqno^처리자" colsep="^" colwidth="85, 90, 75, 45, 50, 42, 55, 323, 0, 75" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:220px; width:864px; height:530px; ">
- <col ref="inptdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="prtlnm" type="input" navindex="1"/>
- <col ref="prtldg" type="input"/>
- <col ref="ht" type="input" style="text-align:right; "/>
- <col ref="wtflag" type="combo">
- <choices>
- <item>
- <label>체중</label>
- <value>1</value>
- </item>
- <item>
- <label>IBW</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="wt" type="input" format="####.99" style="text-align:right; "/>
- <col ref="bsa" type="input" style="text-align:right; "/>
- <col ref="spcffact" type="input"/>
- <col ref="pmpseqno"/>
- <col ref="prcpid"/>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13) {
- grid_pmplist.col = grid_pmplist.col+1;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag") == "1") {
- if( model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wt") != "" && model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht") != "") {
- fCalcVol();
- }
- }
- if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag") == "2") {
- if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht") != "") {
- fSetIBW();
- fCalcVol();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag") == "1") {
- if( model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wt") != "" && model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht") != "") {
- fCalcVol();
- }
- }
- if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag") == "2") {
- if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht") != "") {
- fSetIBW();
- fCalcVol();
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_add" class="btn2_letter3" style="left:680px; top:195px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grid_pmplist.addRow();
- model.setValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/inptdd", getCurrentDate());
- model.setValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag", "1");
- grid_pmplist.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter3" style="left:790px; top:195px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grid_pmplist.addStatus(grid_pmplist.row, "delete");
- ]]>
- </script>
- </button>
- <button id="btn_inrt" class="btn2_letter3" style="left:735px; top:195px; width:53px; height:19px; ">
- <caption>행삽입</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grid_pmplist.row != -1) {
- grid_pmplist.insertRow(grid_pmplist.row, "below");
- model.setValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/inptdd", getCurrentDate());
- model.setValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag", "1");
- grid_pmplist.refresh();
- }
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/main/pmplist/patlist/pid" style="left:88px; top:30px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/pmplist/patlist/pid"));
- submit("TRADT30801");
- }
- ]]>
- </script>
- </input>
- <output id="output1" ref="/root/main/pmplist/patlist/age" class="output_fix" appearance="output" style="left:171px; top:55px; width:37px; height:19px; "/>
- <button id="btn_req" visibility="hidden" style="left:215px; top:30px; width:55px; height:20px; ">
- <caption>button1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/pmplist/patlist/pid"));
- submit("TRADT30801");
- ]]>
- </script>
- </button>
- </group>
- <output id="opt_dschdd" ref="/root/main/pmplist/patlist/dschdd" class="output_fix" appearance="output" style="left:300px; top:144px; width:120px; height:19px; "/>
- <output id="opt_phno" ref="/root/main/pmplist/patlist/hometel" class="output_fix" appearance="output" style="left:300px; top:169px; width:120px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|