123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?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>
- <replinfo>
- <repluserinfo>
- <deptnm/>
- <deptcd/>
- <chkusernm/>
- </repluserinfo>
- </replinfo>
- <ret>
- <valid/>
- </ret>
- </main>
- <send>
- <srchinfo>
- <userid/>
- <pwd/>
- </srchinfo>
- </send>
- <hidden>
- <replinfo>
- <repluserid/>
- <replpwd/>
- <repldept/>
- </replinfo>
- <writinfo>
- <writnm/>
- <writid/>
- </writinfo>
- <repltype>
- <cnfmtype/>
- </repltype>
- <rgstinfo>
- <rgstuserid/>
- <rgstpwd/>
- </rgstinfo>
- </hidden>
- <temp>
- <popupdata>
- </popupdata>
- </temp>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- var repltype="";
- function fInit(){
- repltype = model.getValue("/root/temp/popupdata/repltype");
- submit("TRADC62303");
- var cnfmtype= model.getValue("/root/hidden/repltype/cnfmtype");
- if(cnfmtype == ""){
- messageBox("팝업유형이 정의되지 않았습니다.\n 관리자에게 문의","I008");
- btn_close.dispatch("DOMActivate");
- }else{
- if(cnfmtype == "cs"){
- model.toggle("case1");
- model.setValue("/root/hidden/writinfo/writnm",model.getValue("/root/temp/popupdata/writnm"));
- model.setValue("/root/hidden/writinfo/writid",model.getValue("/root/temp/popupdata/writid"));
- ipt_repluserid.dispatch("xforms-value-changed");
- }else if(cnfmtype == "c"){ //2010-01-08 TDM저장시 저장지내용 미리보기후 저장자ID 저장하기 - 메세지를 [회신]->[저장]으로 명칭변경처리함.
- caption1.attribute("text") = "저장자 확인";
- document.title ="저장자 확인";
- model.toggle("case3");
- model.setValue("/root/hidden/rgstinfo/rgstuserid",model.getValue("/root/temp/popupdata/rgstid"));
- ipt_repluserid3.dispatch("xforms-value-changed");
- }else{
- model.toggle("case2");
- ipt_repluserid2.dispatch("xforms-value-changed");
- }
- model.setValue("/root/hidden/replinfo/repluserid", getUserId());
- ipt_repluserid.dispatch("xforms-value-changed");
-
- }
- model.refresh();
-
- }
- function fCnfm(){
-
- // 입력사항 체크
- if (model.getValue("/root/hidden/repltype/cnfmtype") == "c" ) { //2010-01-08 TDM저장시 저장지내용 미리보기후 저장자ID 저장하기 - 메세지를 [회신]->[저장]으로 명칭변경처리함.
- var repluserid = model.getValue("/root/hidden/rgstinfo/rgstuserid");
- var replpwd = model.getValue("/root/hidden/rgstinfo/rgstpwd");
- var tmpIDnm = "저장자";
- }else{
- var repluserid = model.getValue("/root/hidden/replinfo/repluserid");
- var replpwd = model.getValue("/root/hidden/replinfo/replpwd");
- var tmpIDnm = "회신자";
- }
- if(repluserid == ""){
- messageBox(tmpIDnm + " ID를 ","C001");
- if(repltype == "drugid"){
- model.setFocus("ipt_repluserid");
- ipt_repluserid.refresh();
- }else if(repltype == "tmdS"){
- model.setFocus("ipt_repluserid3");
- ipt_repluserid3.refresh();
- }else{
- model.setFocus("ipt_repluserid2");
- ipt_repluserid2.refresh();
- }
- return;
- }else if(replpwd == ""){
- messageBox("Password를","C001");
- if(repltype == "drugid"){
- model.setFocus("sct_replpwd");
- sct_replpwd.refresh();
- }else if(repltype == "tmdS"){
- model.setFocus("sct_replpwd3");
- sct_replpwd3.refresh();
- }else{
- model.setFocus("sct_replpwd2");
- sct_replpwd2.refresh();
- }
- return;
- }else{
- if (model.getValue("/root/hidden/repltype/cnfmtype") == "c" ) { //2010-01-08 TDM저장시 저장지내용 미리보기후 저장자ID 저장하기 - 메세지를 [회신]->[저장]으로 명칭변경처리함.
- model.setValue("/root/send/srchinfo/pwd", model.getValue("/root/hidden/rgstinfo/rgstpwd"));
- }else{
- model.setValue("/root/send/srchinfo/pwd", model.getValue("/root/hidden/replinfo/replpwd"));
- }
- if(submit("TRADC62302")){ //pwd 맞는지 확인
- var valid = model.getValue("/root/main/ret/valid");
- if (valid != "Y") {
- messageBox("암호가","E004");
- if(repltype == "drugid"){
- model.setFocus("sct_replpwd");
- }else if(repltype == "tmdS"){
- model.setFocus("sct_replpwd3");
- }else{
- model.setFocus("sct_replpwd2");
- }
- } else {
- // 암호 확인 OK
- if ( checkOpener() ) {
- if (model.getValue("/root/hidden/repltype/cnfmtype") == "c" ) { //2010-01-12 TDM저장시 저장지내용 미리보기후 저장자ID 저장하기
- opener.model.setValue("/root/temp/popupdata/receivedatargst", model.getValue("/root/hidden/rgstinfo/rgstuserid"));
- }else{
- var receive = model.getValue("/root/temp/popupdata/receivedata");
- opener.model.setValue(receive, model.getValue("/root/hidden/replinfo/repluserid"));
- }
- opener.model.refresh();
- window.close();
- }else{
- messageBox("상위화면이 변경되어 데이터를 전달할 수 ","I004");
- }
- }
- }
- }
- }
- ]]>
- </script>
- <submission id="TRADC62301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/replinfo"/>
- <submission id="TRADC62302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/ret"/>
- <submission id="TRADC62303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/popupdata" replace="instance" resultref="/root/hidden/repltype"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
-
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="300" pageheight="250" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group2" style="left:0px; top:190px; width:280px; height:30px; ">
- <button id="btn_close" class="btn4_letter2" navindex="6" style="left:220px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cfm" class="btn4_letter2" navindex="5" style="left:160px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCnfm();
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" style="left:0px; top:0px; width:280px; height:190px; ">
- <caption id="caption1" class="tit_2" style="left:10px; top:10px; width:100px; height:13px; ">회신자 확인</caption>
- <switch id="switch1" class="sw_no_border" style="left:0px; top:40px; width:280px; height:150px; ">
- <case id="case1" selected="true">
- <caption id="caption2" class="cell_1" style="left:0px; top:20px; width:90px; height:20px; ">작성자</caption>
- <secret id="sct_replpwd" ref="/root/hidden/replinfo/replpwd" class="secret_essential" navindex="4" imemode="disabled" style="left:100px; top:121px; width:175px; height:19px; ">
- <script type="javascript" ev:event="xfomrs-value-changed">
- <![CDATA[
-
- btn_cfm.dispatch("DOMActivate");
- ]]>
- </script>
- </secret>
- <caption id="caption3" class="cell_1" style="left:0px; top:45px; width:90px; height:20px; ">작성자ID</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:96px; width:90px; height:20px; ">회신자ID</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:121px; width:90px; height:20px; ">password</caption>
- <input id="input1" ref="/root/hidden/writinfo/writnm" editable="false" style="left:100px; top:20px; width:175px; height:19px; "/>
- <input id="input2" ref="/root/hidden/writinfo/writid" editable="false" style="left:100px; top:45px; width:175px; height:19px; "/>
- <input id="ipt_repluserid" ref="/root/hidden/replinfo/repluserid" navindex="3" style="left:100px; top:95px; width:175px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/replinfo/repluserid") != ""){
- model.setValue("/root/send/srchinfo/userid", model.getValue("/root/hidden/replinfo/repluserid"));
- submit("TRADC62301");
- if(model.getValue("/root/main/replinfo/repluserinfo/chkusernm") == ""){
- messageBox("존재하지 않는 사용자입니다." , "E", "사용자ID를 다시 입력하십시오.");
- model.setFocus("ipt_repluserid");
- }
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <line id="line3" class="line_2" style="x1:0px; y1:80px; x2:280px; y2:80px; "/>
- </case>
- <case id="case2">
- <secret id="sct_replpwd2" ref="/root/hidden/replinfo/replpwd" class="secret_essential" navindex="2" imemode="disabled" style="left:100px; top:76px; width:175px; height:19px; ">
- <script type="javascript" ev:event="xfomrs-value-changed">
- <![CDATA[
-
- btn_cfm.dispatch("DOMActivate");
- ]]>
- </script>
- </secret>
- <caption id="caption4" class="cell_1" style="left:0px; top:51px; width:90px; height:20px; ">회신자 ID</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:76px; width:90px; height:20px; ">password</caption>
- <input id="ipt_repluserid2" ref="/root/hidden/replinfo/repluserid" navindex="1" style="left:100px; top:50px; width:175px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/replinfo/repluserid") != ""){
- model.setValue("/root/send/srchinfo/userid", model.getValue("/root/hidden/replinfo/repluserid"));
- submit("TRADC62301");
- if(model.getValue("/root/main/replinfo/repluserinfo/chkusernm") == ""){
- messageBox("존재하지 않는 사용자입니다." , "E", "사용자ID를 다시 입력하십시오.");
- model.setFocus("ipt_repluserid2");
- }
- model.refresh();
- }
- ]]>
- </script>
- </input>
- </case>
- <case id="case3">
- <secret id="sct_replpwd3" ref="/root/hidden/rgstinfo/rgstpwd" class="secret_essential" navindex="2" imemode="disabled" style="left:100px; top:76px; width:175px; height:19px; ">
- <script type="javascript" ev:event="xfomrs-value-changed">
- <![CDATA[
- btn_cfm.dispatch("DOMActivate");
- ]]>
- </script>
- </secret>
- <caption id="caption8" class="cell_1" style="left:0px; top:51px; width:90px; height:20px; ">저장자 ID</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:76px; width:90px; height:20px; ">password</caption>
- <input id="ipt_repluserid3" ref="/root/hidden/rgstinfo/rgstuserid" navindex="1" style="left:100px; top:50px; width:175px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/rgstinfo/rgstuserid") != ""){
- model.setValue("/root/send/srchinfo/userid", model.getValue("/root/hidden/rgstinfo/rgstuserid"));
- submit("TRADC62301");
- if(model.getValue("/root/main/replinfo/repluserinfo/chkusernm") == ""){
- messageBox("존재하지 않는 사용자입니다." , "E", "사용자ID를 다시 입력하십시오.");
- model.setFocus("ipt_repluserid3");
- }
- model.refresh();
- }
- ]]>
- </script>
- </input>
- </case>
- </switch>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:35px; x2:280px; y2:35px; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:190px; x2:280px; y2:190px; "/>
- </xhtml:body>
- </xhtml:html>
|