123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <?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>면회정보/출생일 기록등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <cond>
- <dayinfo/>
- <recflag/>
- <pid/>
- <indd/>
- <cretno/>
- <ioflag/>
- </cond>
- <main>
- <patdetlinfo>
- <patdetllist>
- <ammemo/>
- <pmmemo/>
- <brthdd/>
- </patdetllist>
- </patdetlinfo>
- </main>
- <send/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- ]]>
- </script>
- <submission id="TRMNR10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patdetlinfo"/>
- <submission id="TXMNR10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
- </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="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript">
- <![CDATA[
- function finit(){
- var sParamMsgInfo = "";
- sParamMsgInfo = opener.javascript.getParameter("SPMNR10300_Param");
- model.setValue("/root/cond/dayinfo", getArrayData(sParamMsgInfo, 0 ,0) );
- model.setValue("/root/cond/recflag", getArrayData(sParamMsgInfo, 0 ,1) );
- model.setValue("/root/cond/pid", getArrayData(sParamMsgInfo, 0 ,2) );
- model.setValue("/root/cond/indd", getArrayData(sParamMsgInfo, 0 ,3) );
- model.setValue("/root/cond/cretno", getArrayData(sParamMsgInfo, 0 ,4) );
- model.setValue("/root/cond/ioflag", getArrayData(sParamMsgInfo, 0 ,5) );
- if(getArrayData(sParamMsgInfo, 0 ,1) == "01"){
- group1.visible = false;
- group2.visible = true;
- document.title = "환자 면회 정보 등록";
- }else{
- group1.visible = true;
- group2.visible = false;
- document.title = "환자 출생일 정보 등록";
- }
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.copyNode("/root/send", "/root/cond");
- submit("TRMNR10102");
- }
-
- function fSave(){
- var sHeaderInfo = "stat▦pid▦applydd▦recflag▦apflag▦memocnts▩";
- var sSaveInfo = "";
- var sRecFlag = model.getValue("/root/cond/recflag") ;
-
- if(sRecFlag == "01"){
- if(model.getValue("/root/cond/dayinfo").length < 8 ){
- messageBox("면회일자를 정확하게 입력하시기 바랍니다.", "E");
- return;
- }
-
- if( model.getValue(ipt_ammemo.attribute("ref")) == ""){
- sSaveInfo += "D" + "▦"
- + model.getValue("/root/cond/pid") + "▦"
- + model.getValue("/root/cond/dayinfo") + "▦"
- + sRecFlag + "▦"
- + "A" + "▦"
- + model.getValue(ipt_ammemo.attribute("ref")) + "▩";
- }else{
- sSaveInfo += "U" + "▦"
- + model.getValue("/root/cond/pid") + "▦"
- + model.getValue("/root/cond/dayinfo") + "▦"
- + sRecFlag + "▦"
- + "A" + "▦"
- + model.getValue(ipt_ammemo.attribute("ref")) + "▩";
- }
-
- if(model.getValue(ipt_pmmemo.attribute("ref")) == ""){
- sSaveInfo += "D" + "▦"
- + model.getValue("/root/cond/pid") + "▦"
- + model.getValue("/root/cond/dayinfo") + "▦"
- + sRecFlag + "▦"
- + "P" + "▦"
- + model.getValue(ipt_pmmemo.attribute("ref")) + "▩";
- }else{
- sSaveInfo += "U" + "▦"
- + model.getValue("/root/cond/pid") + "▦"
- + model.getValue("/root/cond/dayinfo") + "▦"
- + sRecFlag + "▦"
- + "P" + "▦"
- + model.getValue(ipt_pmmemo.attribute("ref")) + "▩";
- }
- }else{
- if(model.getValue(ipt_brthdd.attribute("ref")) == ""){
- sSaveInfo += "D" + "▦"
- + model.getValue("/root/cond/pid") + "▦"
- + model.getValue("/root/cond/dayinfo") + "▦"
- + sRecFlag + "▦"
- + "-" + "▦"
- + model.getValue(ipt_brthdd.attribute("ref")) + "▩";
- }else{
- sSaveInfo += "U" + "▦"
- + model.getValue("/root/cond/pid") + "▦"
- + model.getValue("/root/cond/dayinfo") + "▦"
- + sRecFlag + "▦"
- + "-" + "▦"
- + model.getValue(ipt_brthdd.attribute("ref")) + "▩";
- }
- }
-
- model.removenode("/root/send");
- model.makeValue("/root/send/saveinfo", sHeaderInfo + sSaveInfo);
- submit("TXMNR10301", false);
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="230" pageheight="150" guideline="1,1190;1,240;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group2" style="left:0px; top:0px; width:213px; height:108px; ">
- <caption id="caption4" class="tit_2" style="left:5px; top:9px; width:136px; height:14px; ">환자 면회 정보</caption>
- <input id="ipt_dayinfo" ref="/root/cond/dayinfo" inputtype="date" style="left:83px; top:35px; width:130px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/cond/dayinfo").length == 8){
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.copyNode("/root/send", "/root/cond");
- submit("TRMNR10102");
- }
- ]]>
- </script>
- </input>
- <caption id="caption5" class="cell_1" style="left:0px; top:34px; width:81px; height:21px; ">면회일자</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:30px; x2:213px; y2:30px; "/>
- <caption id="caption6" class="cell_1" style="left:0px; top:58px; width:81px; height:21px; ">오전</caption>
- <line id="line4" class="line_3" style="x1:0px; y1:56px; x2:213px; y2:56px; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:80px; x2:213px; y2:80px; "/>
- <caption id="caption1" class="cell_1" style="left:0px; top:82px; width:81px; height:21px; ">오후</caption>
- <input id="ipt_ammemo" ref="/root/main/patdetlinfo/patdetllist/ammemo" style="left:83px; top:59px; width:130px; height:41px; "/>
- <input id="ipt_pmmemo" ref="/root/main/patdetlinfo/patdetllist/pmmemo" style="left:83px; top:83px; width:130px; height:19px; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:104px; x2:213px; y2:104px; "/>
- </group>
- <button id="btn_close" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:157px; top:110px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:100px; top:110px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <group id="group1" style="left:0px; top:0px; width:213px; height:108px; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:9px; width:136px; height:14px; ">출생일 정보</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:30px; x2:213px; y2:30px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:34px; width:81px; height:21px; ">출생일자</caption>
- <input id="ipt_brthdd" ref="/root/main/patdetlinfo/patdetllist/brthdd" inputtype="date" style="left:83px; top:35px; width:130px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|