123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <?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>
- <orddeptcd/>
- <orddrid/>
- </cond>
- </main>
- <init>
- <orddept/>
- <userlist/>
- </init>
- <orddd/>
- <ordh>09</ordh>
- <ordm>00</ordm>
- </root>
- </instance>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXMMO00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/followup"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //20081117 마정민수정: 서소영선생님 요청으로 followup 진료과, 진료의를 환자진료과, 주치의정보로 함.
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "O");
-
- var vDutplcecd = opener.model.getvalue ( "/root/paminfo/list/orddeptcd" );
- if ( isNull(vDutplcecd )) {
- vDutplcecd = getUserInfo("dutplcecd");
- }
- var vUserid = opener.model.getvalue ( "/root/paminfo/list/medispclid" );
- if ( isNull(vUserid )) {
- vDutplcecd = getUserInfo("userid");
- }
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", vDutplcecd, "0330");
-
- model.setValue("/root/main/cond/orddeptcd", vDutplcecd);
-
- model.setValue("/root/main/cond/orddrid" , vUserid);
-
- model.refresh();
-
- //20081005 마정민수정: 퇴원예고일자를 진료일로 박아준다.
- //여기 진료일은 진료희망일 용도로만 쓰인다. 실제 예약잡을때는 퇴원예고일로 처리해 준다.
- var orddd = opener.model.getValue ( "/root/paminfo/list/dschdclrdt" ).substring( 0, 8 );
- var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
- if ( prcpgenrflag != "E" ) { //응급
- cmb_orddept.disabled = false;
- cmb_dr.disabled = false;
- model.setValue( "/root/orddd", orddd);
- } else {
- model.setValue ( "/root/orddd", orddd );
- }
-
- model.refresh();
- ]]>
- </script>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="540" pageheight="70" guideline="1,542;2,69;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <button id="button2" class="btn4_letter2" navindex="6" style="left:406px; top:35px; width:56px; height:22px; ">
- <caption>예약</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isNull(cmb_orddept.label)) {
- messageBox ( "진료과가", "E014" );
- return;
- }
- if (isNull(cmb_dr.label)) {
- messageBox ( "진료의가", "E014" );
- return;
- }
-
- var orddd = model.getValue ( "/root/orddd" );
- if ( isNull(orddd)) {
- messageBox ( "진료일이", "E014" );
- return;
- }
-
- if ( !isValidDateTime ( orddd, "YYYYMMDD")) {
- messageBox ( "진료일이", "E016" );
- return;
- }
-
- if ( orddd <getCurrentDate()) {
- messageBox ( "진료일를 과거일자로 선택 할수 없습니다.", "E999" );
- return;
- }
-
- var ordh = model.getValue ( "/root/ordh" );
- var ordm = model.getValue ( "/root/ordm" );
- if ( isNull(ordh) || isNull(ordm)) {
- messageBox ( "진료시간이", "E014" );
- return;
- }
- if ( eval(ordh) >= 24 ) {
- messageBox ( "예약시간이 잘못 입력되었습니다.", "E" );
- return;
- }
- if ( eval(ordm) >= 60 ) {
- messageBox ( "예약분이 잘못 입력되었습니다.", "E" );
- return;
- }
-
- if( "11111" == model.getValue ( "/root/main/cond/orddrid" ) || "EMR" == model.getValue ( "/root/main/cond/orddrid" ) ) {
- messageBox ( "일반의사 또는 의무기록으로 퇴원후외래(F/U) 예약을 진행 할 수 없습니다.", "E" );
- return;
- }
- ordh = ordh.toString().getLeftPad ( 2, "0" );
- ordm = ordm.toString().getLeftPad ( 2, "0" );
-
- opener.javascript.setParameter ( "SPMMO14400_orddeptcd", model.getValue ( "/root/main/cond/orddeptcd" ));
- opener.javascript.setParameter ( "SPMMO14400_orddrid", model.getValue ( "/root/main/cond/orddrid" ));
- opener.javascript.setParameter ( "SPMMO14400_otpt_orddd", orddd );
- opener.javascript.setParameter ( "SPMMO14400_ordtm", ordh + ordm );
- opener.javascript.setParameter ( "SPMMO14400_rtnyn","Y" );
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="cell_1" style="left:192px; top:5px; width:70px; height:23px; ">진료의</caption>
- <caption id="caption1" class="cell_1" style="left:3px; top:5px; width:61px; height:23px; text-align:left; ">진료과</caption>
- <line id="line7" class="line_1" style="x1:3px; y1:0px; x2:523px; y2:0px; "/>
- <caption id="caption2" class="cell_1" style="left:359px; top:6px; width:70px; height:23px; ">진료일</caption>
- <button id="button1" class="btn4_letter2" navindex="7" style="left:465px; top:35px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- opener.javascript.setParameter ( "SPMMO14400_rtnyn","N" );
- window.close();
- ]]>
- </script>
- </button>
- <line id="line4" class="line_3" style="x1:3px; y1:30px; x2:523px; y2:30px; "/>
- <input id="input1" ref="/root/orddd" navindex="3" inputtype="date" style="left:431px; top:7px; width:91px; height:19px; text-align:center; "/>
- <input id="input2" ref="/root/ordh" navindex="4" visibility="hidden" imemode="disabled" maxlength="2" format="#" style="left:310px; top:30px; width:45px; height:19px; text-align:center; "/>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" navindex="1" appearance="minimal" itemcount="30" style="left:65px; top:7px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_dr" ref="/root/main/cond/orddrid" navindex="2" appearance="minimal" editmode="search" itemcount="30" style="left:264px; top:7px; width:93px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input3" ref="/root/ordm" navindex="5" visibility="hidden" imemode="disabled" maxlength="2" format="#" style="left:360px; top:30px; width:45px; height:19px; text-align:center; "/>
- </xhtml:body>
- </xhtml:html>
|