123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <memo>
- <memo>
- <status/>
- <pid/>
- <memocnts/>
- <lastupdtrnm/>
- <profcertseq/>
- <certmemodt/>
- <certmemoid/>
- </memo>
- </memo>
- <cond>
- <status/>
- <pid/>
- <memocnts/>
- <lastupdtrnm/>
- <profcertseq/>
- <elctflag/>
- </cond>
- <rtninfo>
- <elctsignkey/>
- <elctsigncnts/>
- </rtninfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- <stsflag/>
- <viewflag/>
- </send>
- <hidden/>
- <init/>
- </root>
- </instance>
- <submission id="TRMMR06502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/memo"/>
- <submission id="TXMMR06502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/memo"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
- <script type="javascript">
- <![CDATA[
- var screenid = "";
- var stsflag = "";
- var pid = "";
- var profcertseq = "";
-
- /**
- * @desc 제증명 메모 조회
- */
- function fReqGetIssProfCertMemo(pid, profcertseq){
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/pid" , pid );
- model.makeValue("/root/send/reqdata/profcertseq" , profcertseq );
-
- if(submit("TRMMR06502")){
- if(model.getValue("/root/main/memo/memo/elctsigndt") != ""){
- var elctsigndate = model.getValue("/root/main/memo/memo/elctsigndt").substr(0,4) + "-"
- + model.getValue("/root/main/memo/memo/elctsigndt").substr(4,2) + "-"
- + model.getValue("/root/main/memo/memo/elctsigndt").substr(6,2) + " "
- + model.getValue("/root/main/memo/memo/elctsigndt").substr(8,2) + ":"
- + model.getValue("/root/main/memo/memo/elctsigndt").substr(10,2) + ":"
- + model.getValue("/root/main/memo/memo/elctsigndt").substr(12,2);
- txt_lastddwrite.value = elctsigndate;
- txt_lastidwrite.value = model.getValue("/root/main/memo/memo/elctsignusernm");
-
- fsignpad_close();
- fsignpad_init();
-
- model.setValue("/root/main/rtninfo/elctsignkey" , model.getValue("/root/main/memo/memo/elctsignkey"));
- model.setValue("/root/main/rtninfo/elctsigncnts" , model.getValue("/root/main/memo/memo/elctsigncnts"));
-
- var key = model.getValue("/root/main/rtninfo/elctsignkey");
- if (key != "")
- {
- fsignpad_view(model.getValue("/root/main/rtninfo/elctsignkey"), model.getValue("/root/main/rtninfo/elctsigncnts"));
- }
- }
- }
- model.refresh();
- }
-
- /**
- * @desc 제증명 서명 저장
- */
- function fReqExeSaveIssProfCertMemo(){
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
-
- model.makeValue("/root/send/savedata/pid" , pid );
- model.makeValue("/root/send/savedata/profcertseq" , profcertseq );
- model.makeValue("/root/send/savedata/elctsignkey" , model.getValue("/root/main/rtninfo/elctsignkey"));
- model.makeValue("/root/send/savedata/elctsigncnts" , model.getValue("/root/main/rtninfo/elctsigncnts"));
- model.makeValue("/root/send/savedata/elctflag" , "sign");
-
-
- if( model.getValue("/root/main/cond/status") == "d"){
- model.setValue("/root/send/savedata/elctsignkey" , "" );
- model.setValue("/root/send/savedata/elctsigncnts" , "" );
- }
-
- if( model.getValue("/root/send/stsflag") == "20" || model.getValue("/root/send/stsflag") == "99" ){
- if(submit("TXMMR06502")){
- messageBox("정상적으로 처리 되었습니다.", "E999");
-
- window.close();
- }
- }
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- opener.javascript.model.removenode("/root/tmp/elctsignkey");
- opener.javascript.model.removenode("/root/tmp/elctsigncnts");
-
- //opener화면에서 등록번호를 조회
- if(checkOpener()){
-
- pid = opener.javascript.getParameter("SPMMR06502_pid");
- profcertseq = opener.javascript.getParameter("SPMMR06502_profcertseq");
- stsflag = opener.javascript.getParameter("SPMMR06502_status");
- screenid = opener.javascript.getParameter("SPMMR06502_screenid");
- model.setValue("/root/send/stsflag", stsflag);
- if(stsflag != ""){
- if( stsflag == "20" || stsflag == "30" || stsflag == "40"){
- //button1.visible = false;
- btn_del.disabled = true ;
- }
- fsignpad_init();
- model.setValue("/root/main/rtninfo/elctsignkey" , "");
- model.setValue("/root/main/rtninfo/elctsigncnts" , "");
-
- fsignpad_request(model.getValue("/root/main/rtninfo/rtnamt"));
- }else{
- fReqGetIssProfCertMemo(pid, profcertseq);
- }
-
-
- model.refresh();
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="270" pageheight="210" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <datagrid id="datagrid1" visibility="visible" caption="제 증 명 서 명" colsep="^" colwidth="240" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:240px; height:100px; ">
- <col/>
- </datagrid>
- <button id="btn_del" class="btn5_letter2" style="left:198px; top:149px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( model.getValue("/root/send/stsflag") != "30" ){
- model.setValue("/root/main/cond/status", "d");
- fReqExeSaveIssProfCertMemo();
- fsignpad_close();
- window.close();
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption7" class="tit_2" style="left:0px; top:154px; width:92px; height:13px; ">등록자 :</caption>
- <button id="button3" class="btn5_letter2" style="left:153px; top:149px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var flag = model.getValue("/root/main/rtninfo/elctsigncnts");
-
- if(flag == "" || flag == "-"){
- fsignpad_save();
- model.setValue("/root/main/rtninfo/elctsignkey" , model.getValue("/root/send/elctsignkey"), true);
- model.setValue("/root/main/rtninfo/elctsigncnts" , model.getValue("/root/send/elctsigncnts") , true);
- }
-
- if((model.getValue("/root/main/rtninfo/elctsigncnts")).getTrim() == ""){
- messageBox("서명하십시오", "E999");
- return false;
- }
- opener.javascript.model.makeNode("/root/tmp/elctsignkey");
- opener.javascript.model.makeNode("/root/tmp/elctsigncnts");
- opener.javascript.model.setValue("/root/tmp/elctsignkey" , model.getValue("/root/main/rtninfo/elctsignkey"));
- opener.javascript.model.setValue("/root/tmp/elctsigncnts" , model.getValue("/root/main/rtninfo/elctsigncnts"));
-
- if( stsflag != "" && stsflag != "40" ){
- fReqExeSaveIssProfCertMemo();
- window.close();
- }else{
- window.close();
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="txt_lastddwrite" style="left:80px; top:171px; width:155px; height:25px; font-weight:bold; color:#000080; "/>
- <caption id="txt_lastidwrite" style="left:70px; top:148px; width:80px; height:25px; font-weight:bold; color:#000080; "/>
- <import id="import1" src="./../../pam/pamcomnweb/xrw/SPPAO02102_전자서명입력_OCX.xrw" style="left:0px; top:25px; width:240px; height:120px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:177px; width:92px; height:13px; ">등록일자 :</caption>
- <button id="button1" class="btn3_letter3" style="left:171px; top:2px; width:68px; height:22px; ">
- <caption>재서명</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fsignpad_init();
- model.setValue("/root/main/rtninfo/elctsignkey" , "");
- model.setValue("/root/main/rtninfo/elctsigncnts" , "");
-
- fsignpad_request(model.getValue("/root/main/rtninfo/rtnamt"));
-
- opener.javascript.fIssueElctSignPara();
-
- pid = opener.javascript.getParameter("SPMMR06502_pid");
- profcertseq = opener.javascript.getParameter("SPMMR06502_profcertseq");
- model.setValue("/root/send/stsflag", "99");
- stsflag = "99";
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|