123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- <?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>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <execdeptlist>
- <prcpcd/>
- <prcpegnm/>
- <prcpnm/>
- <restrid/>
- <restdeptcd/>
- <afterexecdeptcd/>
- <beforexecdeptcd/>
- <prcpdd/>
- <prcpno/>
- <prcphistno/>
- <instcd/>
- <pid/>
- <mmoh/>
- <mmohnm/>
- </execdeptlist>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <suppdeptcd/>
- <excuroomcd/>
- <orddeptcd/>
- <wardcd/>
- <pid/>
- <patnm/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <prcpcd/>
- <execdeptlist/>
- </send>
- <init>
- <cmb_info>
- <suppdeptlist>
- <suppdept>
- <suppdeptcd/>
- <depthngnm/>
- </suppdept>
- </suppdeptlist>
- <orddeptcdlist>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </orddeptcdlist>
- <excuroomcdlist>
- <excuroom>
- <basecd/>
- <basecdflagdesc/>
- </excuroom>
- </excuroomcdlist>
- </cmb_info>
- </init>
- <hidden>
- <source>
- <pathngnm/>
- </source>
- <supdept>
- <cdid/>
- <cdnm/>
- </supdept>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
- model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
-
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", getCurrentDate());
-
- model.removeNodeset("/root/main/execdeptlist");
-
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRAEA03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/execdeptlist"/>
- <submission id="TXAEA03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdeptlist"/>
- </model>
- <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" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/HELP0001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,746;2,784;">
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:1px; top:0px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line1" style="x1:1109px; y1:6px; x2:1109px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="input1" ref="/root/send/todd" class="input_default" inputtype="date" style="left:220px; top:11px; width:90px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:362px; top:11px; width:97px; height:17px; text-align:left; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var _pid = model.getValue("root/send/pid");
- var _frdt = model.getValue("/root/send/fromdd");
- var _todt = model.getValue("/root/send/todd");
-
- if ( _pid == "" ) {
- messageBox("필수입력사항인 등록번호를 입력해 주십시오.", "I999");
- model.setFocus("ipt_pid");
- }
- else if ( _frdt == "" && _todt != "" ) {
- messageBox("검색하실 날짜 범위의 시작일자를 입력해 주십시오." , "I999");
- model.setFocus("ipt_fromdd");
- }
- else if ( _frdt != "" && _todt == "") {
- messageBox("검색하실 날짜 범위의 마지막 일자를 입력해 주십시오." , "I999");
- model.setFocus("ipt_todd");
- }
- else if ( getDateInterval(_frdt, _todt) < 0 ) {
- messageBox("입력하신 날짜 범위로는 검색할 수 없습니다. 입력하신 날짜를 확인해 주십시오." , "I999");
- model.setFocus("ipt_fromdd");
- }
- else {
- submit("TRAEA03301");
- //submit("TRAEA00302");
-
- /* if ( grd_execdeptlist.rows == 1 ) {
- messageBox("입력하신 등록번호/일자에 해당하는 환자의 시행 처방이 DB에 존재하지 않습니다.", "I999");
- }
-
- else {
- //var _dt = "";
- //for (var i = 1; i < parseInt(grd_rsrvprescond.rows); i++) {
- // _dt = model.getValue("/root/main/rsrvprescond/rsrvlist[" + i + "]/rsrvdt");
- // _dt = _dt.toDate("YYYYMMDDhhmm").getDateFormat("YYYY-MM-DD hh:mm");
- // model.setValue("/root/main/rsrvprescond/rsrvlist[" + i + "]/rsrvdt", _dt);
- }
- */
- model.refresh();
- }
-
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" inputtype="date" style="left:100px; top:11px; width:90px; height:19px; "/>
- <input id="ipt_pid" ref="/root/send/pid" class="input_search" maxlength="10" style="left:453px; top:10px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var _str = ipt_pid.currentText;
-
- /*
- if ( _str.isNumber() == false ) {
- messageBox("등록번호는 숫자만 입력이 가능합니다.", "I999");
- ipt_pid.value = "";
- }
- */
- inputEnterKey("btn_sea", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption11" class="search_name" style="left:10px; top:11px; width:95px; height:17px; text-align:left; background-image:../../../com/commonweb/images/search_bullet1.gif; ">처방일자 :</caption>
- <button id="button61" class="icon_search" style="left:560px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* @group : 개인별 예약현황조회
- * @ver : 2007.7.25
- * @by : 조원영
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호를 통한 환자 이름 조회
- */
- modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/pid", "");
-
- model.setValue( "/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid") ); // 등록번호 설정
- model.setValue( "/root/hidden/source/pathngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm") ); // 환자 이름
-
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_pathngnm" ref="/root/hidden/source/pathngnm" class="output_fix" style="left:582px; top:10px; width:100px; height:19px; "/>
- <caption id="caption14" style="left:200px; top:13px; width:20px; height:15px; ">~</caption>
- </group>
- <caption id="caption10" class="tit_2" style="left:10px; top:45px; width:134px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">실시처방현황</caption>
- <line id="line3" class="line_1" style="x1:1px; y1:63px; x2:1195px; y2:63px; "/>
- <datagrid id="grd_execdeptlist" nodeset="/root/main/execdeptlist" caption="처방코드^영문처방명^처방명^처방의^처방과^기시행부서명^변경시행부서코드^변경시행부서^처방일자^처방번호^처방이력번호^병원코드^등록번호^외래/입원구분^구분" colsep="^" colwidth="122, 207, 215, 130, 153, 131, 50, 135, 89, 78, 111, 54, 100, 100, 80" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:66px; width:1194px; height:666px; ">
- <col ref="prcpcd" format="yyyy-mm-dd"/>
- <col ref="prcpegnm"/>
- <col ref="prcpnm"/>
- <col ref="restrid" style="text-align:center; "/>
- <col ref="restdeptcd" style="text-align:center; "/>
- <col ref="afterexecdeptcd" style="text-align:center; "/>
- <col ref="beforexecdeptcd" visibility="hidden"/>
- <col ref="beforexecdeptnm" type="inputbutton" style="text-align:center; "/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="mmoh" visibility="hidden"/>
- <col ref="mmohnm" style="text-align:center; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_execdeptlist.col == grd_execdeptlist.colRef("beforexecdeptnm") ) {// 변경시행부서 클릭
- var recv_list = "beforexecdeptcd,beforexecdeptnm";
- astOpenPopUpListByWndName(grd_execdeptlist,"",recv_list,"SMAEA03310","instcd,prcpcd","instcd,prcpcd");
- // grd_execdeptlist -> Grid명 , "" -> 공통코드(없으므로 ""), recv_list => 부모 Grid가 받을 node명,
- // SMAEA03310 => 호출할 화면명, instcd,prcpcd=> hplp에 값을 넣어줄 node명, instcd,prcpcd => Grid에서 hlep에 던져줄 인자값
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">시행 부서 변경</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:747px; width:1195px; height:37px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1133px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var updtdata = getGridUpdateData(grd_execdeptlist);
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- model.setValue("/root/send/execdeptlist",grd_execdeptlist.getUpdateData());
-
- if(messageBox("","Q002") != 6 ) {
- return false;
- }
-
- submit("TXAEA03301");
- submit("TRAEA03301");
- model.refresh();
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|