123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>중환자실 다직종 회진등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <fromdd/>
- <todd/>
- <wardcd/>
- <jobcd/>
- <userid/>
- <chkuser/>
- <chkdel/>
- </cond>
- <icurinfo>
- <icurlist/>
- </icurinfo>
- <bficurinfo>
- <rnddd/>
- <wardcd/>
- <jobcd/>
- <authcnfyn>N</authcnfyn>
- </bficurinfo>
- </main>
- <send>
- <savedata/>
- <reqdata/>
- </send>
- <hidden>
- </hidden>
- <init>
- <hc452/>
- <hc453/>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize_SPMMO21401();
- ]]>
- </script>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO21402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/icurinfo"/>
- <submission id="TRMMB04107" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXMMO21402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden"/>
- </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="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO21401.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="916" pageheight="716" guideline="1,5;2,10;2,62;1,899;2,716;1,-3;" style="background-color:transparent; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:21px; width:899px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:83px; x2:900px; y2:83px; "/>
- <caption id="caption14" class="search_name" style="left:5px; top:31px; width:76px; height:17px; ">회 진 일</caption>
- <caption id="caption26" class="search_name" style="left:299px; top:31px; width:76px; height:17px; ">중환자실</caption>
- <caption id="caption29" class="search_name" style="left:485px; top:31px; width:55px; height:17px; ">직종</caption>
- <caption id="caption2" class="tit_2" style="left:0px; top:68px; width:170px; height:15px; vertical-align:middle; ">중환자실 회진 리스트</caption>
- <input id="ipt_orddd" ref="/root/main/cond/fromdd" class="input" autonext="false" inputtype="date" style="left:85px; top:31px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_req.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption1" style="left:180px; top:31px; width:15px; height:20px; ">~</caption>
- <input id="input1" ref="/root/main/cond/todd" class="input" autonext="false" inputtype="date" style="left:195px; top:31px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_req.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <datagrid id="grd_icurlist" nodeset="/root/main/icurinfo/icurlist" caption="회진일자^중환자실^직종^사번^성명^등록일시^삭제^전담전문의확인^전담전문의^확인일시^instcd^rndno^wardnm^jobnm^signdata" colsep="^" colwidth="90, 100, 90, 70, 80, 110, 40, 95, 75, 110, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:88px; width:899px; height:628px; text-align:center; margin-left:0; margin-right:0; ">
- <col ref="rnddd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="wardcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/hc452/hardcd">
- <label ref="hardcdnm"/>
- <value ref="hardcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="jobcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/hc453/hardcd">
- <label ref="hardcdnm"/>
- <value ref="hardcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="userid" style="text-align:center; "/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn"/>
- <col disabled="true" ref="delyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label/>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="cnfyn" type="checkbox"/>
- <col ref="cnfnm" style="text-align:center; "/>
- <col ref="cnfdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="rndno" visibility="hidden"/>
- <col ref="wardnm" visibility="hidden"/>
- <col ref="jobnm" visibility="hidden"/>
- <col ref="signdata" visibility="hidden"/>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- var nRow = grd_icurlist.row;
- if ( grd_icurlist.col == grd_icurlist.colRef("rnddd")) {
- model.setValue ( "/root/main/bficurinfo/rnddd", model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/rnddd"));
- } else if ( grd_icurlist.col == grd_icurlist.colRef("wardcd")) {
- model.setValue ( "/root/main/bficurinfo/wardcd", model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/wardcd"));
- } else if ( grd_icurlist.col == grd_icurlist.colRef("continueflag")) {
- model.setValue ( "/root/main/bficurinfo/jobcd", model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/jobcd"));
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var nRow = grd_icurlist.row;
- if (grd_icurlist.col == grd_icurlist.colRef("cnfyn")) { // 전담전문의 확인
- var sAuthCnfYn = model.getValue ( "/root/main/bficurinfo/authcnfyn");
- if(sAuthCnfYn != "Y") { // 전담전문의가 확인 되지 않았으면
- if (grd_icurlist.valueMatrix(grd_icurlist.row, grd_icurlist.col) == "Y") { // 전담전문의 확인을 체크 했을때
- if ( messageBox ( "해당 중환자실 전담 전문의가 최종 확인 하는곳 입니다. \n\n전담전문의가 맞습니까?","Q") == "6" ) {
- model.setValue ("/root/main/bficurinfo/authcnfyn", "Y");
- } else {
- model.setValue ("/root/main/bficurinfo/authcnfyn", "N");
- model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/cnfyn", "N");
- }
- } else { // 전담전문의 체크를 해제 할때
- if(model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/cnfid") != getUserInfo("userid")) {
- model.setValue("/root/main/icurinfo/icurlist["+ nRow +"]/cnfyn", "Y");
- messageBox("이미 전담전문의가 확인 하였습니다. \n\n확인한 전담전문의만 수정이 가능 합니다.","E") ;
- }
- }
- }
- } else { // 전담전문의 확인 이외의 값 변경
- if (grd_icurlist.col == grd_icurlist.colRef("rnddd") && model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/rndno") != "0") { // 이미 저장된 회진일자는 수정 불가능
- model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/rnddd", model.setValue ( "/root/main/bficurinfo/rnddd"));
- messageBox ( "이미 저장된 내역의 회진일자는 변경이 불가능 합니다. 삭제후 신규 등록 하세요.","E") ;
- } else if(model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/userid") != getUserInfo("userid")) {
- if (grd_icurlist.col == grd_icurlist.colRef("rnddd")) {
- model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/rnddd", model.setValue ( "/root/main/bficurinfo/rnddd"));
- } else if (grd_icurlist.col == grd_icurlist.colRef("warddd")) {
- model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/warddd", model.setValue ( "/root/main/bficurinfo/warddd"));
- } else if (grd_icurlist.col == grd_icurlist.colRef("jobcd")) {
- model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/jobcd", model.setValue ( "/root/main/bficurinfo/jobcd"));
- }
- messageBox ( "자신의 회진리스트만 수정이 가능 합니다.","E") ;
- } else {
- if(model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/cnfyn") == "Y") { // 이미 전담전문의 확인 된경우
- if (grd_icurlist.col == grd_icurlist.colRef("rnddd")) {
- model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/rnddd", model.setValue ( "/root/main/bficurinfo/rnddd"));
- } else if (grd_icurlist.col == grd_icurlist.colRef("warddd")) {
- model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/warddd", model.setValue ( "/root/main/bficurinfo/warddd"));
- } else if (grd_icurlist.col == grd_icurlist.colRef("jobcd")) {
- model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/jobcd", model.setValue ( "/root/main/bficurinfo/jobcd"));
- }
- messageBox ( "전담전문의 확인 이후에는 수정이 불가능 합니다.","E") ;
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <line id="line3" style="x1:745px; y1:30px; x2:745px; y2:60px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_default" appearance="minimal" editmode="search" style="left:383px; top:31px; width:97px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hc452/hardcd">
- <label ref="hardcdnm"/>
- <value ref="hardcd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_req" class="btn1_letter2" style="left:760px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqIcurList();
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn1_letter2" style="left:830px; top:30px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrtIcurList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_medispclid" ref="/root/main/cond/jobcd" appearance="minimal" editmode="search" itemcount="30" style="left:542px; top:31px; width:78px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hc453/hardcd">
- <label ref="hardcdnm"/>
- <value ref="hardcd"/>
- </itemset>
- </choices>
- </select1>
- <bool id="chk_user" checkvalue="Y,N" ref="/root/main/cond/chkuser" style="left:630px; top:24px; width:25px; height:20px; "/>
- <caption id="cap_user" style="left:651px; top:24px; width:89px; height:20px; ">
- <![CDATA[다른사람 포함]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var chkuser = model.getValue("/root/main/cond/chkuser");
- if (chkuser =="Y") {
- model.setValue("/root/main/cond/chkuser", "N");
- } else {
- model.setValue("/root/main/cond/chkuser", "Y");
- }
- model.refresh();
- ]]>
- </script>
- </caption>
- <bool id="chk_del" checkvalue="Y,N" ref="/root/main/cond/chkdel" style="left:630px; top:42px; width:25px; height:20px; "/>
- <caption id="cap_del" style="left:651px; top:42px; width:89px; height:20px; ">
- <![CDATA[삭제 포함]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var chkdel = model.getValue("/root/main/cond/chkdel");
- if (chkdel =="Y") {
- model.setValue("/root/main/cond/chkdel", "N");
- } else {
- model.setValue("/root/main/cond/chkdel", "Y");
- }
- model.refresh();
- ]]>
- </script>
- </caption>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:15px; ">중환자실 다직종 회진등록</caption>
- <button id="btn_add" class="btn2_letter3" style="left:730px; top:62px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddIcur();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter3" style="left:790px; top:62px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelIcur();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter2" style="left:857px; top:62px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveIcur();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|