SPMMR06502_제증명이력별서명.xrw 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <memo>
  11. <memo>
  12. <status/>
  13. <pid/>
  14. <memocnts/>
  15. <lastupdtrnm/>
  16. <profcertseq/>
  17. <certmemodt/>
  18. <certmemoid/>
  19. </memo>
  20. </memo>
  21. <cond>
  22. <status/>
  23. <pid/>
  24. <memocnts/>
  25. <lastupdtrnm/>
  26. <profcertseq/>
  27. <elctflag/>
  28. </cond>
  29. <rtninfo>
  30. <elctsignkey/>
  31. <elctsigncnts/>
  32. </rtninfo>
  33. </main>
  34. <send>
  35. <reqdata/>
  36. <savedata/>
  37. <stsflag/>
  38. <viewflag/>
  39. </send>
  40. <hidden/>
  41. <init/>
  42. </root>
  43. </instance>
  44. <submission id="TRMMR06502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/memo"/>
  45. <submission id="TXMMR06502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/memo"/>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  50. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  51. <script type="javascript">
  52. <![CDATA[
  53. var screenid = "";
  54. var stsflag = "";
  55. var pid = "";
  56. var profcertseq = "";
  57. /**
  58. * @desc 제증명 메모 조회
  59. */
  60. function fReqGetIssProfCertMemo(pid, profcertseq){
  61. model.removeNodeset("/root/send/reqdata");
  62. model.makeValue("/root/send/reqdata/pid" , pid );
  63. model.makeValue("/root/send/reqdata/profcertseq" , profcertseq );
  64. if(submit("TRMMR06502")){
  65. if(model.getValue("/root/main/memo/memo/elctsigndt") != ""){
  66. var elctsigndate = model.getValue("/root/main/memo/memo/elctsigndt").substr(0,4) + "-"
  67. + model.getValue("/root/main/memo/memo/elctsigndt").substr(4,2) + "-"
  68. + model.getValue("/root/main/memo/memo/elctsigndt").substr(6,2) + " "
  69. + model.getValue("/root/main/memo/memo/elctsigndt").substr(8,2) + ":"
  70. + model.getValue("/root/main/memo/memo/elctsigndt").substr(10,2) + ":"
  71. + model.getValue("/root/main/memo/memo/elctsigndt").substr(12,2);
  72. txt_lastddwrite.value = elctsigndate;
  73. txt_lastidwrite.value = model.getValue("/root/main/memo/memo/elctsignusernm");
  74. fsignpad_close();
  75. fsignpad_init();
  76. model.setValue("/root/main/rtninfo/elctsignkey" , model.getValue("/root/main/memo/memo/elctsignkey"));
  77. model.setValue("/root/main/rtninfo/elctsigncnts" , model.getValue("/root/main/memo/memo/elctsigncnts"));
  78. var key = model.getValue("/root/main/rtninfo/elctsignkey");
  79. if (key != "")
  80. {
  81. fsignpad_view(model.getValue("/root/main/rtninfo/elctsignkey"), model.getValue("/root/main/rtninfo/elctsigncnts"));
  82. }
  83. }
  84. }
  85. model.refresh();
  86. }
  87. /**
  88. * @desc 제증명 서명 저장
  89. */
  90. function fReqExeSaveIssProfCertMemo(){
  91. model.removeNodeset("/root/send/savedata");
  92. model.makeNode("/root/send/savedata");
  93. model.makeValue("/root/send/savedata/pid" , pid );
  94. model.makeValue("/root/send/savedata/profcertseq" , profcertseq );
  95. model.makeValue("/root/send/savedata/elctsignkey" , model.getValue("/root/main/rtninfo/elctsignkey"));
  96. model.makeValue("/root/send/savedata/elctsigncnts" , model.getValue("/root/main/rtninfo/elctsigncnts"));
  97. model.makeValue("/root/send/savedata/elctflag" , "sign");
  98. if( model.getValue("/root/main/cond/status") == "d"){
  99. model.setValue("/root/send/savedata/elctsignkey" , "" );
  100. model.setValue("/root/send/savedata/elctsigncnts" , "" );
  101. }
  102. if( model.getValue("/root/send/stsflag") == "20" || model.getValue("/root/send/stsflag") == "99" ){
  103. if(submit("TXMMR06502")){
  104. messageBox("정상적으로 처리 되었습니다.", "E999");
  105. window.close();
  106. }
  107. }
  108. model.refresh();
  109. }
  110. ]]>
  111. </script>
  112. <script type="javascript" ev:event="xforms-ready">
  113. <![CDATA[
  114. opener.javascript.model.removenode("/root/tmp/elctsignkey");
  115. opener.javascript.model.removenode("/root/tmp/elctsigncnts");
  116. //opener화면에서 등록번호를 조회
  117. if(checkOpener()){
  118. pid = opener.javascript.getParameter("SPMMR06502_pid");
  119. profcertseq = opener.javascript.getParameter("SPMMR06502_profcertseq");
  120. stsflag = opener.javascript.getParameter("SPMMR06502_status");
  121. screenid = opener.javascript.getParameter("SPMMR06502_screenid");
  122. model.setValue("/root/send/stsflag", stsflag);
  123. if(stsflag != ""){
  124. if( stsflag == "20" || stsflag == "30" || stsflag == "40"){
  125. //button1.visible = false;
  126. btn_del.disabled = true ;
  127. }
  128. fsignpad_init();
  129. model.setValue("/root/main/rtninfo/elctsignkey" , "");
  130. model.setValue("/root/main/rtninfo/elctsigncnts" , "");
  131. fsignpad_request(model.getValue("/root/main/rtninfo/rtnamt"));
  132. }else{
  133. fReqGetIssProfCertMemo(pid, profcertseq);
  134. }
  135. model.refresh();
  136. }
  137. ]]>
  138. </script>
  139. </model>
  140. </xhtml:head>
  141. <xhtml:body pagewidth="270" pageheight="210" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  142. <datagrid id="datagrid1" visibility="visible" caption="제 증 명 서 명" colsep="^" colwidth="240" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:240px; height:100px; ">
  143. <col/>
  144. </datagrid>
  145. <button id="btn_del" class="btn5_letter2" style="left:198px; top:149px; width:42px; height:19px; ">
  146. <caption>삭제</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. if( model.getValue("/root/send/stsflag") != "30" ){
  150. model.setValue("/root/main/cond/status", "d");
  151. fReqExeSaveIssProfCertMemo();
  152. fsignpad_close();
  153. window.close();
  154. }
  155. ]]>
  156. </script>
  157. </button>
  158. <caption id="caption7" class="tit_2" style="left:0px; top:154px; width:92px; height:13px; ">등록자 :</caption>
  159. <button id="button3" class="btn5_letter2" style="left:153px; top:149px; width:42px; height:19px; ">
  160. <caption>저장</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. var flag = model.getValue("/root/main/rtninfo/elctsigncnts");
  164. if(flag == "" || flag == "-"){
  165. fsignpad_save();
  166. model.setValue("/root/main/rtninfo/elctsignkey" , model.getValue("/root/send/elctsignkey"), true);
  167. model.setValue("/root/main/rtninfo/elctsigncnts" , model.getValue("/root/send/elctsigncnts") , true);
  168. }
  169. if((model.getValue("/root/main/rtninfo/elctsigncnts")).getTrim() == ""){
  170. messageBox("서명하십시오", "E999");
  171. return false;
  172. }
  173. opener.javascript.model.makeNode("/root/tmp/elctsignkey");
  174. opener.javascript.model.makeNode("/root/tmp/elctsigncnts");
  175. opener.javascript.model.setValue("/root/tmp/elctsignkey" , model.getValue("/root/main/rtninfo/elctsignkey"));
  176. opener.javascript.model.setValue("/root/tmp/elctsigncnts" , model.getValue("/root/main/rtninfo/elctsigncnts"));
  177. if( stsflag != "" && stsflag != "40" ){
  178. fReqExeSaveIssProfCertMemo();
  179. window.close();
  180. }else{
  181. window.close();
  182. }
  183. model.refresh();
  184. ]]>
  185. </script>
  186. </button>
  187. <caption id="txt_lastddwrite" style="left:80px; top:171px; width:155px; height:25px; font-weight:bold; color:#000080; "/>
  188. <caption id="txt_lastidwrite" style="left:70px; top:148px; width:80px; height:25px; font-weight:bold; color:#000080; "/>
  189. <import id="import1" src="./../../pam/pamcomnweb/xrw/SPPAO02102_전자서명입력_OCX.xrw" style="left:0px; top:25px; width:240px; height:120px; "/>
  190. <caption id="caption1" class="tit_2" style="left:0px; top:177px; width:92px; height:13px; ">등록일자 :</caption>
  191. <button id="button1" class="btn3_letter3" style="left:171px; top:2px; width:68px; height:22px; ">
  192. <caption>재서명</caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. fsignpad_init();
  196. model.setValue("/root/main/rtninfo/elctsignkey" , "");
  197. model.setValue("/root/main/rtninfo/elctsigncnts" , "");
  198. fsignpad_request(model.getValue("/root/main/rtninfo/rtnamt"));
  199. opener.javascript.fIssueElctSignPara();
  200. pid = opener.javascript.getParameter("SPMMR06502_pid");
  201. profcertseq = opener.javascript.getParameter("SPMMR06502_profcertseq");
  202. model.setValue("/root/send/stsflag", "99");
  203. stsflag = "99";
  204. model.refresh();
  205. ]]>
  206. </script>
  207. </button>
  208. </xhtml:body>
  209. </xhtml:html>