123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <?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>
- <espiloglists>
- <espiloglist>
- <status/>
- <instcd/>
- <eventflag/>
- <signno/>
- <rgstdd/>
- <olddt/>
- <newdt/>
- <macaddr/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- </espiloglist>
- </espiloglists>
- </main>
- <hidden>
- <temp>
- <upnewdd/>
- <upnewtm/>
- </temp>
- </hidden>
- <init>
- <condition>
- <workflag>02</workflag>
- </condition>
- </init>
- <send>
- </send>
- <temp>
- <signno/>
- <formrecdd/>
- <formrechm/>
- <formnminfo/>
- <formrecdeptnm/>
- <formrecusernm/>
- <fstrgstdd/>
- <fstrgsttm/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRMRJ08001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXMRJ08001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- </xhtml:head>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- var signno = parent.javascript.getParameter("SPMRJ08000_signno"); //인증번호
- var formrecdd = parent.javascript.getParameter("SPMRJ08000_formrecdd"); //기록일자
- var formrechm = parent.javascript.getParameter("SPMRJ08000_formrechm"); //기록시간
- var formnminfo = parent.javascript.getParameter("SPMRJ08000_formnminfo"); //서식명
- var formrecdeptnm = parent.javascript.getParameter("SPMRJ08000_formrecdeptnm"); //작성과
- var formrecusernm = parent.javascript.getParameter("SPMRJ08000_formrecusernm"); //작성자
- //var fstrgstdt = parent.javascript.getParameter("fstrgstdt"); //최초작성일시
-
- if(signno == "0"){
- messageBox("임시저장이라 조회대상이 아닙니다.", "I");
- model.close();
- }
- //var signno = "1000000035679900";
- model.makeValue("/root/temp/formrecdd", formrecdd);
- model.makeValue("/root/temp/formrechm", formrechm);
- model.makeValue("/root/temp/formnminfo", formnminfo);
- model.makeValue("/root/temp/formrecdeptnm", formrecdeptnm);
- model.makeValue("/root/temp/formrecusernm", formrecusernm);
-
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/signno", signno);
- if(submit("TRMRJ08001")){
- var fstrgstdt = model.getValue("/root/main/espiloglists/espiloglist/olddt");
- model.makeValue("/root/temp/fstrgstdd", fstrgstdt.substr(0,8));
- model.makeValue("/root/temp/fstrgsttm", fstrgstdt.substr(8,4));
-
-
- var newdt = model.getValue("/root/main/espiloglists/espiloglist/newdt");
- model.makeValue("/root/hidden/temp/upnewdd", newdt.substr(0,8));
- model.makeValue("/root/hidden/temp/upnewtm", newdt.substr(8,4));
-
- model.refresh();
- }else{
-
- model.close();
-
- }
- model.refresh();
- }
-
- function fEspiLogSave(){
- var newdt = model.getValue("/root/hidden/temp/upnewdd") + model.getValue("/root/hidden/temp/upnewtm");
- var ipaddr = app.clientIp;
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/status", model.getValue("/root/main/espiloglists/espiloglist/status")); //상태값(I : 입력, U : 수정)
- model.makeValue("/root/send/eventflag", model.getValue("/root/main/espiloglists/espiloglist/eventflag")); //이벤트플레그(JCI01)
- model.makeValue("/root/send/signno", model.getValue("/root/main/espiloglists/espiloglist/signno")); //인증번호
- model.makeValue("/root/send/newdt", newdt); //최초작성일시(수정)
- model.makeValue("/root/send/macaddr_str", getUserInfo("macaddr") + "|" + ipaddr); //macaddr
-
- if(submit("TXMRJ08001")){
- }
- model.close();
- }
- ]]>
- </script>
- <xhtml:body pagewidth="350" pageheight="300" guideline="1,1100;2,650;1,701;">
- <line id="line7" class="line_1" style="x1:5px; y1:44px; x2:340px; y2:43px; "/>
- <caption id="caption1" class="cell_1" style="left:10px; top:50px; width:60px; height:20px; ">기록일자</caption>
- <input id="input1" ref="/root/temp/formrecdd" class="output_fix" disabled="true" style="left:75px; top:50px; width:90px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:170px; top:50px; width:60px; height:20px; ">기록시간</caption>
- <input id="input2" ref="/root/temp/formrechm" class="output_fix" disabled="true" style="left:235px; top:50px; width:70px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:10px; top:73px; width:60px; height:20px; ">서식명</caption>
- <input id="input3" ref="/root/temp/formnminfo" class="output_fix" disabled="true" style="left:76px; top:73px; width:229px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:10px; top:97px; width:60px; height:20px; ">작성과</caption>
- <input id="input4" ref="/root/temp/formrecdeptnm" class="output_fix" disabled="true" style="left:76px; top:98px; width:110px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:10px; top:122px; width:60px; height:20px; ">작성자</caption>
- <input id="input5" ref="/root/temp/formrecusernm" class="output_fix" disabled="true" style="left:76px; top:123px; width:110px; height:19px; "/>
- <line id="line2" class="line_1" style="x1:5px; y1:262px; x2:340px; y2:261px; "/>
- <caption id="caption6" style="left:150px; top:169px; width:25px; height:20px; text-align:center; ">
- <![CDATA[>>]]>
- </caption>
- <caption id="caption7" class="cell_1" style="left:10px; top:155px; width:140px; height:20px; ">최초작성일(원본)</caption>
- <caption id="caption8" class="cell_1" style="left:170px; top:155px; width:170px; height:20px; ">최초작성일(수정본)</caption>
- <input id="input6" ref="/root/temp/fstrgsttm" class="output_fix" disabled="true" format="hh:nn" style="left:105px; top:180px; width:45px; height:19px; "/>
- <line id="line1" class="line_1" style="x1:5px; y1:147px; x2:340px; y2:146px; "/>
- <input id="input8" ref="/root/temp/fstrgstdd" class="output_fix" disabled="true" inputtype="date" appearance="input" style="left:10px; top:180px; width:90px; height:19px; "/>
- <button id="btn_clock" class="icon_clock" style="left:270px; top:181px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/hidden/temp/upnewtm", getCurrentTime().substr(0,4));
- ipt_rectm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_rectm" ref="/root/hidden/temp/upnewtm" class="input_default" navindex="2" maxlength="4" format="hh:nn" style="left:290px; top:180px; width:50px; height:19px; "/>
- <input id="ipt_recdd" ref="/root/hidden/temp/upnewdd" class="input_default" navindex="1" inputtype="date" maxlength="8" format="yyyy-mm-dd" style="left:170px; top:180px; width:95px; height:19px; "/>
- <button id="btn_save" class="btn1_letter2" navindex="3" style="left:280px; top:270px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fEspiLogSave();
- ]]>
- </script>
- </button>
- <caption id="caption9" class="tit_2" style="left:5px; top:20px; width:220px; height:15px; ">인증저장최초일자수정</caption>
- <caption id="caption10" class="cell_1" style="left:10px; top:205px; width:90px; height:20px; ">최초수정자</caption>
- <caption id="caption11" class="cell_1" style="left:10px; top:230px; width:90px; height:20px; ">최초수정일시</caption>
- <input id="input7" ref="/root/main/espiloglists/espiloglist/fstrgstrid" class="output_fix" disabled="true" style="left:105px; top:205px; width:100px; height:15px; "/>
- <input id="input9" ref="/root/main/espiloglists/espiloglist/fstrgstdt" class="output_fix" disabled="true" format="yyyy-mm-dd hh:nn:ss" style="left:105px; top:230px; width:150px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|