SPMRJ08000_인증저장최초일자조회.xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>최초작성일시수정</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <espiloglists>
  11. <espiloglist>
  12. <status/>
  13. <instcd/>
  14. <eventflag/>
  15. <signno/>
  16. <rgstdd/>
  17. <olddt/>
  18. <newdt/>
  19. <macaddr/>
  20. <fstrgstrid/>
  21. <fstrgstdt/>
  22. <lastupdtrid/>
  23. <lastupdtdt/>
  24. </espiloglist>
  25. </espiloglists>
  26. </main>
  27. <hidden>
  28. <temp>
  29. <upnewdd/>
  30. <upnewtm/>
  31. </temp>
  32. </hidden>
  33. <init>
  34. <condition>
  35. <workflag>02</workflag>
  36. </condition>
  37. </init>
  38. <send>
  39. </send>
  40. <temp>
  41. <signno/>
  42. <formrecdd/>
  43. <formrechm/>
  44. <formnminfo/>
  45. <formrecdeptnm/>
  46. <formrecusernm/>
  47. <fstrgstdd/>
  48. <fstrgsttm/>
  49. </temp>
  50. </root>
  51. </instance>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. fInit();
  55. ]]>
  56. </script>
  57. <submission id="TRMRJ08001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  58. <submission id="TXMRJ08001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  65. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  66. </xhtml:head>
  67. <script type="javascript">
  68. <![CDATA[
  69. function fInit(){
  70. var signno = parent.javascript.getParameter("SPMRJ08000_signno"); //인증번호
  71. var formrecdd = parent.javascript.getParameter("SPMRJ08000_formrecdd"); //기록일자
  72. var formrechm = parent.javascript.getParameter("SPMRJ08000_formrechm"); //기록시간
  73. var formnminfo = parent.javascript.getParameter("SPMRJ08000_formnminfo"); //서식명
  74. var formrecdeptnm = parent.javascript.getParameter("SPMRJ08000_formrecdeptnm"); //작성과
  75. var formrecusernm = parent.javascript.getParameter("SPMRJ08000_formrecusernm"); //작성자
  76. //var fstrgstdt = parent.javascript.getParameter("fstrgstdt"); //최초작성일시
  77. if(signno == "0"){
  78. messageBox("임시저장이라 조회대상이 아닙니다.", "I");
  79. model.close();
  80. }
  81. //var signno = "1000000035679900";
  82. model.makeValue("/root/temp/formrecdd", formrecdd);
  83. model.makeValue("/root/temp/formrechm", formrechm);
  84. model.makeValue("/root/temp/formnminfo", formnminfo);
  85. model.makeValue("/root/temp/formrecdeptnm", formrecdeptnm);
  86. model.makeValue("/root/temp/formrecusernm", formrecusernm);
  87. model.removeNodeset("/root/send");
  88. model.makeValue("/root/send/signno", signno);
  89. if(submit("TRMRJ08001")){
  90. var fstrgstdt = model.getValue("/root/main/espiloglists/espiloglist/olddt");
  91. model.makeValue("/root/temp/fstrgstdd", fstrgstdt.substr(0,8));
  92. model.makeValue("/root/temp/fstrgsttm", fstrgstdt.substr(8,4));
  93. var newdt = model.getValue("/root/main/espiloglists/espiloglist/newdt");
  94. model.makeValue("/root/hidden/temp/upnewdd", newdt.substr(0,8));
  95. model.makeValue("/root/hidden/temp/upnewtm", newdt.substr(8,4));
  96. model.refresh();
  97. }else{
  98. model.close();
  99. }
  100. model.refresh();
  101. }
  102. function fEspiLogSave(){
  103. var newdt = model.getValue("/root/hidden/temp/upnewdd") + model.getValue("/root/hidden/temp/upnewtm");
  104. var ipaddr = app.clientIp;
  105. model.removeNodeset("/root/send");
  106. model.makeValue("/root/send/status", model.getValue("/root/main/espiloglists/espiloglist/status")); //상태값(I : 입력, U : 수정)
  107. model.makeValue("/root/send/eventflag", model.getValue("/root/main/espiloglists/espiloglist/eventflag")); //이벤트플레그(JCI01)
  108. model.makeValue("/root/send/signno", model.getValue("/root/main/espiloglists/espiloglist/signno")); //인증번호
  109. model.makeValue("/root/send/newdt", newdt); //최초작성일시(수정)
  110. model.makeValue("/root/send/macaddr_str", getUserInfo("macaddr") + "|" + ipaddr); //macaddr
  111. if(submit("TXMRJ08001")){
  112. }
  113. model.close();
  114. }
  115. ]]>
  116. </script>
  117. <xhtml:body pagewidth="350" pageheight="300" guideline="1,1100;2,650;1,701;">
  118. <line id="line7" class="line_1" style="x1:5px; y1:44px; x2:340px; y2:43px; "/>
  119. <caption id="caption1" class="cell_1" style="left:10px; top:50px; width:60px; height:20px; ">기록일자</caption>
  120. <input id="input1" ref="/root/temp/formrecdd" class="output_fix" disabled="true" style="left:75px; top:50px; width:90px; height:19px; "/>
  121. <caption id="caption2" class="cell_1" style="left:170px; top:50px; width:60px; height:20px; ">기록시간</caption>
  122. <input id="input2" ref="/root/temp/formrechm" class="output_fix" disabled="true" style="left:235px; top:50px; width:70px; height:19px; "/>
  123. <caption id="caption3" class="cell_1" style="left:10px; top:73px; width:60px; height:20px; ">서식명</caption>
  124. <input id="input3" ref="/root/temp/formnminfo" class="output_fix" disabled="true" style="left:76px; top:73px; width:229px; height:19px; "/>
  125. <caption id="caption4" class="cell_1" style="left:10px; top:97px; width:60px; height:20px; ">작성과</caption>
  126. <input id="input4" ref="/root/temp/formrecdeptnm" class="output_fix" disabled="true" style="left:76px; top:98px; width:110px; height:19px; "/>
  127. <caption id="caption5" class="cell_1" style="left:10px; top:122px; width:60px; height:20px; ">작성자</caption>
  128. <input id="input5" ref="/root/temp/formrecusernm" class="output_fix" disabled="true" style="left:76px; top:123px; width:110px; height:19px; "/>
  129. <line id="line2" class="line_1" style="x1:5px; y1:262px; x2:340px; y2:261px; "/>
  130. <caption id="caption6" style="left:150px; top:169px; width:25px; height:20px; text-align:center; ">
  131. <![CDATA[>>]]>
  132. </caption>
  133. <caption id="caption7" class="cell_1" style="left:10px; top:155px; width:140px; height:20px; ">최초작성일(원본)</caption>
  134. <caption id="caption8" class="cell_1" style="left:170px; top:155px; width:170px; height:20px; ">최초작성일(수정본)</caption>
  135. <input id="input6" ref="/root/temp/fstrgsttm" class="output_fix" disabled="true" format="hh:nn" style="left:105px; top:180px; width:45px; height:19px; "/>
  136. <line id="line1" class="line_1" style="x1:5px; y1:147px; x2:340px; y2:146px; "/>
  137. <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; "/>
  138. <button id="btn_clock" class="icon_clock" style="left:270px; top:181px; width:16px; height:16px; ">
  139. <caption/>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. model.makeValue("/root/hidden/temp/upnewtm", getCurrentTime().substr(0,4));
  143. ipt_rectm.refresh();
  144. ]]>
  145. </script>
  146. </button>
  147. <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; "/>
  148. <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; "/>
  149. <button id="btn_save" class="btn1_letter2" navindex="3" style="left:280px; top:270px; width:56px; height:22px; ">
  150. <caption>저장</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. fEspiLogSave();
  154. ]]>
  155. </script>
  156. </button>
  157. <caption id="caption9" class="tit_2" style="left:5px; top:20px; width:220px; height:15px; ">인증저장최초일자수정</caption>
  158. <caption id="caption10" class="cell_1" style="left:10px; top:205px; width:90px; height:20px; ">최초수정자</caption>
  159. <caption id="caption11" class="cell_1" style="left:10px; top:230px; width:90px; height:20px; ">최초수정일시</caption>
  160. <input id="input7" ref="/root/main/espiloglists/espiloglist/fstrgstrid" class="output_fix" disabled="true" style="left:105px; top:205px; width:100px; height:15px; "/>
  161. <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; "/>
  162. </xhtml:body>
  163. </xhtml:html>