123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?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>내 환자 Setting</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <wardcd/>
- <userid/>
- <usernm/>
- <multicheck/>
- </cond>
- <mypatinfo>
- <mypatlist>
- <mysetting/>
- <roomcd/>
- <bedcd/>
- <patnm/>
- <sexage/>
- <orddeptnm/>
- <wardcd/>
- <pid/>
- <bfsetting/>
- </mypatlist>
- </mypatinfo>
- <settinginfo>
- <settingtime/>
- </settinginfo>
- <saveinfo>
- <message/>
- </saveinfo>
- </main>
- <send/>
- <init>
- <ward>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </ward>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- // 환자리스트 조회
- function fGetPatList(pFlag){
-
- model.setValue("/root/main/cond/multicheck", "N");
- grd_mypatlist.attribute("height") = "663";
- tar_settinginfo.visible = false;
- grd_mypatlist.rebuildStyle();
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("root/main/cond/wardcd"));
- model.makeValue("/root/send/srchflag" ,pFlag);
- submit("TRMNB00402");
- grd_mypatlist.rebuildStyle(0, 0, grd_mypatlist.rows-1, grd_mypatlist.cols-1);
- setRowStyle("grd_mypatlist", "0", "true", "mysetting", "equal");
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //20070726 1530
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "W";
- var rslt_ref = "/root/init/ward";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, "depthngnm", "asc" );
- sct_wardlist.refresh();
- grd_mypatlist.mergeCol(0) = false;
- grd_mypatlist.mergeCol(2) = false;
- grd_mypatlist.mergeCol(3) = false;
- grd_mypatlist.mergeCol(4) = false;
- grd_mypatlist.mergeCol(5) = false;
- grd_mypatlist.mergeCol(6) = false;
- grd_mypatlist.mergeCol(7) = false;
- grd_mypatlist.mergeCol(8) = false;
- grd_mypatlist.mergeCol(9) = false;
- grd_mypatlist.mergeCol(10) = false;
-
- model.removeNodeset("/root/main/mypatinfo/mypatlist");
-
- if (checkOpener()) {
- var wardcd = opener.javascript.getParameter("wardcd");
- model.setValue("root/main/cond/userid", getUserId());
- model.setValue("root/main/cond/usernm", getUserName());
- if(wardcd != null) {
- model.setValue("root/main/cond/wardcd", wardcd);
- } else {
- model.setValue("root/main/cond/wardcd", getUserInfo("dutplcecd"));
- }
-
- } else {
- model.setValue("root/main/cond/userid", getUserId());
- model.setValue("root/main/cond/usernm", getUserName());
- model.setValue("root/main/cond/wardcd", getUserInfo("dutplcecd"));
- }
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("root/main/cond/wardcd"));
- model.makeValue("/root/send/userid", model.getValue("root/main/cond/userid"));
- // submit("TRMNW00101", false);
- submit("TRMNB00402");
- setRowStyle("grd_mypatlist", "0", "true", "mysetting", "equal");
-
- ]]>
- </script>
- <submission id="TXMNB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/settinginfo"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
- <submission id="TRMNB00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/mypatinfo"/>
- <submission id="TXMNB00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="380" pageheight="754" guideline="1,359;1,1157;1,361;2,784;" style="font-size:11pt; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:360px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:109px; height:14px; ">내 환자 Setting</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:360px; height:732px; ">
- <datagrid id="grd_mypatlist" nodeset="/root/main/mypatinfo/mypatlist" allowselection="false" caption="^병실^병상^환자명^S/A^진료과^병동^환자번호^전세팅" colsep="^" colwidth="20, 64, 0, 79, 50, 125, 0, 0, 0" dataheight="25" defaultrows="0" frozencols="7" mergecells="bycol" multitotal="false" rowheader="25" rowheight="32" rowsep="|" style="left:0px; top:67px; width:357px; height:643px; ">
- <col ref="mysetting" type="checkbox"/>
- <col ref="roomcd"/>
- <col ref="bedcd"/>
- <col ref="patnm"/>
- <col ref="sexage"/>
- <col ref="orddeptnm"/>
- <col ref="wardcd"/>
- <col ref="pid"/>
- <col ref="bfsetting"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_mypatlist.col != 0 && isDataCell()) {
- if (grd_mypatlist.mergeCol(grd_mypatlist.col) == true) {
- var arrRows = grd_mypatlist.mergeArea(grd_mypatlist.row, grd_mypatlist.col).split(",");
- var currentMysetting = model.getValue("/root/main/mypatinfo/mypatlist["+arrRows[0]+"]/mysetting")
-
- if(currentMysetting == "true" ) {
- currentMysetting = "false";
- } else {
- currentMysetting = "true";
- }
-
- for (var i=parseInt(arrRows[0]); i<=parseInt(arrRows[2]); i++) {
- model.setValue("/root/main/mypatinfo/mypatlist["+i+"]/mysetting", currentMysetting);
- }
- } else {
- var currentMysetting = model.getValue("/root/main/mypatinfo/mypatlist["+grd_mypatlist.selectedRow(0)+"]/mysetting")
- if (currentMysetting == "true") {
- model.setValue("/root/main/mypatinfo/mypatlist["+grd_mypatlist.selectedRow(0)+"]/mysetting","false");
- } else {
- model.setValue("/root/main/mypatinfo/mypatlist["+grd_mypatlist.selectedRow(0)+"]/mysetting","true");
- }
- }
- }
-
- grd_mypatlist.rebuildStyle(0, 0, grd_mypatlist.rows-1, grd_mypatlist.cols-1);
- setRowStyle("grd_mypatlist", "0", "true", "mysetting", "equal");
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:62px; x2:357px; y2:62px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:47px; width:95px; height:13px; ">내환자리스트</caption>
- <button id="btn_save" class="btn2_letter2" style="left:264px; top:40px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/send");
- model.makeValue("/root/send/mypatlist", grd_mypatlist.getUpdateDataAll("u"));
- if(grd_mypatlist.rows > 1){
- if (submit("TXMNB00401") ) {
- grd_mypatlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- /*
- for(var i=1; i < grd_mypatlist.rows; i++) {
- if(grd_mypatlist.valueMatrix(i,0) != "true") {
- grd_mypatlist.rowHidden(i) = true;
- }
- }
- */
- fGetPatList("setting"); // 환자리스트 조회
- model.setValue("/root/main/saveinfo/message", " " + model.getValue("/root/main/settinginfo/settingtime") + "\n ["+ getUserName() + "]간호사의 \n 내환자가 Setting 되었습니다.");
- grd_mypatlist.attribute("height") = "405";
- tar_settinginfo.visible = true;
- tar_settinginfo.refresh();
- }
- } else {
- messageBox("저장할 내역이 ", "I004")
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell_1" style="left:0px; top:15px; width:70px; height:23px; ">사원번호</caption>
- <caption id="caption2" class="cell_1" style="left:179px; top:15px; width:70px; height:23px; ">간호사명</caption>
- <output id="opt_empno" ref="/root/main/cond/userid" class="output_fix" style="left:73px; top:16px; width:102px; height:19px; "/>
- <output id="opt_nursnm" ref="/root/main/cond/usernm" class="output_fix" style="left:252px; top:16px; width:102px; height:19px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:10px; x2:357px; y2:10px; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:37px; x2:357px; y2:37px; "/>
- <select1 id="sct_wardlist" ref="/root/main/cond/wardcd" class="combo_default" appearance="minimal" style="left:100px; top:41px; width:121px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ward/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("root/main/cond/wardcd"));
- submit("TRMNB00402");
- grd_mypatlist.rebuildStyle(0, 0, grd_mypatlist.rows-1, grd_mypatlist.cols-1);
- setRowStyle("grd_mypatlist", "0", "true", "mysetting", "equal");
- ]]>
- </script>
- </select1>
- <button id="btn_ref" class="btn2_letter2" style="left:222px; top:40px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPatList(); // 환자리스트 조회
- ]]>
- </script>
- </button>
- <textarea id="tar_settinginfo" ref="/root/main/saveinfo/message" visibility="hidden" scroll="auto" editable="false" style="left:0px; top:520px; width:357px; height:115px; font-family:돋움체; font-size:13pt; font-weight:bold; vertical-align:middle; background-color:#ffffcc; "/>
- <button id="button1" class="btn2_letter3" style="left:306px; top:40px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var btn = messageBox("초기화를 ", "Q004");
- if (btn == '6') {
- model.removenode("/root/send");
- model.makeValue("/root/send/userid", model.getValue("/root/main/cond/userid"));
- model.makeValue("/root/send/flag", "Y");
- submit("TXMNB00402");
-
- fGetPatList("setting"); // 환자리스트 조회
- model.setValue("/root/main/saveinfo/message", " " + model.getValue("/root/main/settinginfo/settingtime") + "\n ["+ getUserName() + "]간호사의 \n 내환자가 초기화 되었습니다.");
- grd_mypatlist.attribute("height") = "405";
- tar_settinginfo.visible = true;
- tar_settinginfo.refresh();
- model.refresh();
- } else if (btn == '7') {
- return;
- }
- ]]>
- </script>
- </button>
- <caption id="caption3" style="left:331px; top:715px; width:28px; height:15px; ">[표]</caption>
- <bool id="bool1" ref="/root/main/cond/multicheck" style="left:1px; top:70px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var multicheck = model.getValue("/root/main/cond/multicheck");
- var xMyPatListPath = "/root/main/mypatinfo/mypatlist";
- var nodeCnt = getNodesetCount(xMyPatListPath);
- for(var i = 1; i <= nodeCnt; i++){
- if(multicheck == "true"){
- model.setValue(xMyPatListPath + "[" + i + "]/mysetting", "true");
- }else{
- model.setValue(xMyPatListPath + "[" + i + "]/mysetting", "false");
- }
- }
- ]]>
- </script>
- </bool>
- </group>
- <img id="img1" src="../../../emr/commonweb/images/icon_btn.gif" style="left:325px; top:8px; width:15px; height:15px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onmousemove">
- <![CDATA[
- cap_key.visible =true;
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- cap_key.visible =false;
- ]]>
- </script>
- </img>
- <caption id="cap_key" class="text_essential" visibility="hidden" appearance="caption" style="left:20px; top:210px; width:300px; height:65px; text-align:left; ">
- <![CDATA[내환자 SETTING은 입원, 전실된 환자가
- 자동으로 설정되지 않으므로
- 내환자가 추가된 경우에는 재설정해주시기 바랍니다.
- 설정된 내환자 정보는 24시간 저장됩니다.
- ]]>
- </caption>
- </xhtml:body>
- </xhtml:html>
|