123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <?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>
- <prtlhislist>
- <item>
- <prcpdd/>
- <spcbarcdno/>
- <orddrid/>
- <prcpnm/>
- <reqno/>
- <formrecseq/>
- </item>
- </prtlhislist>
- </main>
- <send>
- <baseinfo>
- <prcphopefromdd/>
- <prcphopetodd/>
- <pid/>
- <prcpdd/>
- <execprcpuniqno/>
- <reqno/>
- </baseinfo>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- <hidden/>
- </root>
- </instance>
- <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/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 등록번호, formrecseq 를 받아서 처방을 조회 함
- if (checkOpener()) { //opener 검사
- var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
- if(param != "") { // opener parameter value가 있는 경우
- //parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- model.setValue("/root/send/baseinfo/pid" , condarray[0]);
- model.setValue("/root/send/baseinfo/prcpdd", condarray[1]);
- model.setValue("/root/send/baseinfo/execprcpuniqno", condarray[2]);
- }
- }
- model.setValue("/root/send/baseinfo/prcphopefromdd", getCurrentDate());
- model.setValue("/root/send/baseinfo/prcphopetodd", getCurrentDate() );
- ipt_prcphopefromdd.value = ipt_prcphopefromdd.value.toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD") ;
-
- fGetEScopeCmt();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRLPJ02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prtlhislist"/>
- <submission id="TXLPJ02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 내시경소견입력
- * @ver : 2009.07.21
- * @by : 박상환(평화이즈)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 내시경소견입력 formrecseq 업데이트
- */
- function fExeEScopeCmt() {
- model.removeNodeset("/root/send/baseinfo/reqno");
- model.makeValue("/root/send/baseinfo/reqno", model.getValue("/root/main/prtlhislist/item[" + grd_list.row + "]/reqno"));
- if(submit("TXLPJ02501")) {
- messageBox("저장이 ", "I002");
- fGetEScopeCmt();
- }
-
- }
-
- /* @group : 내시경소견입력
- * @ver : 2009.07.21
- * @by : 박상환(평화이즈)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 내시경소견관련 처방 조회
- */
- function fGetEScopeCmt() {
- if(submit("TRLPJ02501")) {
- var nodelist = instance1.selectNodes("/root/main/prtlhislist/item");
- for(var i = 0; i <= nodelist.length; i++){
- if(model.getValue("/root/main/prtlhislist/item[" + i + "]/formrecseq") == "0"){
- grd_list.cellstyle("background-color", i, 0, i, 5) = "#FFFFFF";
- }else {
- grd_list.cellstyle("background-color", i, 0, i, 5) = "#FFF500";
- }
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="670" pageheight="430" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:645px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">내시경소견입력</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:645px; height:380px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:200px; height:14px; ">처방목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:642px; y2:70px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:643px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:642px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">처방일자 :</caption>
- <line id="line13" class="line_4" style="x1:555px; y1:7px; x2:555px; y2:29px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:575px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetEScopeCmt();
- ]]>
- </script>
- </button>
- <input id="ipt_prcphopetodd" ref="/root/send/baseinfo/prcphopetodd" class="input_s_essential" inputtype="date" style="left:227px; top:9px; width:100px; height:19px; "/>
- <input id="ipt_prcphopefromdd" ref="/root/send/baseinfo/prcphopefromdd" class="input_s_essential" inputtype="date" style="left:107px; top:9px; width:100px; height:19px; "/>
- <caption id="caption9" class="search_n_b" style="left:211px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_pid" ref="/root/send/baseinfo/pid" class="input_s_essential" style="left:439px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') {
- inputEnterKey("btn_sea", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption42" class="search_name" style="left:350px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- </group>
- <datagrid id="grd_list" nodeset="/root/main/prtlhislist/item" caption="처방일자^바코드번호^진료의^처방명^reqno^formrecseq" colsep="^" colwidth="100, 140, 100, 279, 47, 130" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" navindex="5" style="left:0px; top:75px; width:640px; height:300px; text-align:center; ">
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="spcbarcdno"/>
- <col ref="orddrid"/>
- <col ref="prcpnm" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqno" visibility="hidden"/>
- <col disabled="false" ref="formrecseq" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_list.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeEScopeCmt();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_execprcpuniqno" ref="/root/send/baseinfo/execprcpuniqno" class="input_search" visibility="hidden" style="left:370px; top:45px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') {
- inputEnterKey("btn_sea", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_reqno" ref="/root/send/baseinfo/reqno" class="input_search" visibility="hidden" style="left:490px; top:45px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') {
- inputEnterKey("btn_sea", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_prcpdd" ref="/root/send/baseinfo/prcpdd" class="input_search" visibility="hidden" style="left:270px; top:45px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') {
- inputEnterKey("btn_sea", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:393px; width:645px; height:27px; ">
- <button id="btn_confirm1" class="btn4_letter2" style="left:524px; top:2px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_list.row >= 1 ){
- fExeEScopeCmt();
- }else {
- messageBox("처방을 먼저 선택하세요","E999");
- }
- ]]>
- </script>
- </button>
- <button id="btn_cancel1" class="btn4_letter2" style="left:584px; top:2px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|