SPADC62300_회신자확인.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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. <replinfo>
  11. <repluserinfo>
  12. <deptnm/>
  13. <deptcd/>
  14. <chkusernm/>
  15. </repluserinfo>
  16. </replinfo>
  17. <ret>
  18. <valid/>
  19. </ret>
  20. </main>
  21. <send>
  22. <srchinfo>
  23. <userid/>
  24. <pwd/>
  25. </srchinfo>
  26. </send>
  27. <hidden>
  28. <replinfo>
  29. <repluserid/>
  30. <replpwd/>
  31. <repldept/>
  32. </replinfo>
  33. <writinfo>
  34. <writnm/>
  35. <writid/>
  36. </writinfo>
  37. <repltype>
  38. <cnfmtype/>
  39. </repltype>
  40. <rgstinfo>
  41. <rgstuserid/>
  42. <rgstpwd/>
  43. </rgstinfo>
  44. </hidden>
  45. <temp>
  46. <popupdata>
  47. </popupdata>
  48. </temp>
  49. </root>
  50. </instance>
  51. <script type="javascript">
  52. <![CDATA[
  53. var repltype="";
  54. function fInit(){
  55. repltype = model.getValue("/root/temp/popupdata/repltype");
  56. submit("TRADC62303");
  57. var cnfmtype= model.getValue("/root/hidden/repltype/cnfmtype");
  58. if(cnfmtype == ""){
  59. messageBox("팝업유형이 정의되지 않았습니다.\n 관리자에게 문의","I008");
  60. btn_close.dispatch("DOMActivate");
  61. }else{
  62. if(cnfmtype == "cs"){
  63. model.toggle("case1");
  64. model.setValue("/root/hidden/writinfo/writnm",model.getValue("/root/temp/popupdata/writnm"));
  65. model.setValue("/root/hidden/writinfo/writid",model.getValue("/root/temp/popupdata/writid"));
  66. ipt_repluserid.dispatch("xforms-value-changed");
  67. }else if(cnfmtype == "c"){ //2010-01-08 TDM저장시 저장지내용 미리보기후 저장자ID 저장하기 - 메세지를 [회신]->[저장]으로 명칭변경처리함.
  68. caption1.attribute("text") = "저장자 확인";
  69. document.title ="저장자 확인";
  70. model.toggle("case3");
  71. model.setValue("/root/hidden/rgstinfo/rgstuserid",model.getValue("/root/temp/popupdata/rgstid"));
  72. ipt_repluserid3.dispatch("xforms-value-changed");
  73. }else{
  74. model.toggle("case2");
  75. ipt_repluserid2.dispatch("xforms-value-changed");
  76. }
  77. model.setValue("/root/hidden/replinfo/repluserid", getUserId());
  78. ipt_repluserid.dispatch("xforms-value-changed");
  79. }
  80. model.refresh();
  81. }
  82. function fCnfm(){
  83. // 입력사항 체크
  84. if (model.getValue("/root/hidden/repltype/cnfmtype") == "c" ) { //2010-01-08 TDM저장시 저장지내용 미리보기후 저장자ID 저장하기 - 메세지를 [회신]->[저장]으로 명칭변경처리함.
  85. var repluserid = model.getValue("/root/hidden/rgstinfo/rgstuserid");
  86. var replpwd = model.getValue("/root/hidden/rgstinfo/rgstpwd");
  87. var tmpIDnm = "저장자";
  88. }else{
  89. var repluserid = model.getValue("/root/hidden/replinfo/repluserid");
  90. var replpwd = model.getValue("/root/hidden/replinfo/replpwd");
  91. var tmpIDnm = "회신자";
  92. }
  93. if(repluserid == ""){
  94. messageBox(tmpIDnm + " ID를 ","C001");
  95. if(repltype == "drugid"){
  96. model.setFocus("ipt_repluserid");
  97. ipt_repluserid.refresh();
  98. }else if(repltype == "tmdS"){
  99. model.setFocus("ipt_repluserid3");
  100. ipt_repluserid3.refresh();
  101. }else{
  102. model.setFocus("ipt_repluserid2");
  103. ipt_repluserid2.refresh();
  104. }
  105. return;
  106. }else if(replpwd == ""){
  107. messageBox("Password를","C001");
  108. if(repltype == "drugid"){
  109. model.setFocus("sct_replpwd");
  110. sct_replpwd.refresh();
  111. }else if(repltype == "tmdS"){
  112. model.setFocus("sct_replpwd3");
  113. sct_replpwd3.refresh();
  114. }else{
  115. model.setFocus("sct_replpwd2");
  116. sct_replpwd2.refresh();
  117. }
  118. return;
  119. }else{
  120. if (model.getValue("/root/hidden/repltype/cnfmtype") == "c" ) { //2010-01-08 TDM저장시 저장지내용 미리보기후 저장자ID 저장하기 - 메세지를 [회신]->[저장]으로 명칭변경처리함.
  121. model.setValue("/root/send/srchinfo/pwd", model.getValue("/root/hidden/rgstinfo/rgstpwd"));
  122. }else{
  123. model.setValue("/root/send/srchinfo/pwd", model.getValue("/root/hidden/replinfo/replpwd"));
  124. }
  125. if(submit("TRADC62302")){ //pwd 맞는지 확인
  126. var valid = model.getValue("/root/main/ret/valid");
  127. if (valid != "Y") {
  128. messageBox("암호가","E004");
  129. if(repltype == "drugid"){
  130. model.setFocus("sct_replpwd");
  131. }else if(repltype == "tmdS"){
  132. model.setFocus("sct_replpwd3");
  133. }else{
  134. model.setFocus("sct_replpwd2");
  135. }
  136. } else {
  137. // 암호 확인 OK
  138. if ( checkOpener() ) {
  139. if (model.getValue("/root/hidden/repltype/cnfmtype") == "c" ) { //2010-01-12 TDM저장시 저장지내용 미리보기후 저장자ID 저장하기
  140. opener.model.setValue("/root/temp/popupdata/receivedatargst", model.getValue("/root/hidden/rgstinfo/rgstuserid"));
  141. }else{
  142. var receive = model.getValue("/root/temp/popupdata/receivedata");
  143. opener.model.setValue(receive, model.getValue("/root/hidden/replinfo/repluserid"));
  144. }
  145. opener.model.refresh();
  146. window.close();
  147. }else{
  148. messageBox("상위화면이 변경되어 데이터를 전달할 수 ","I004");
  149. }
  150. }
  151. }
  152. }
  153. }
  154. ]]>
  155. </script>
  156. <submission id="TRADC62301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/replinfo"/>
  157. <submission id="TRADC62302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/ret"/>
  158. <submission id="TRADC62303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/popupdata" replace="instance" resultref="/root/hidden/repltype"/>
  159. <script type="javascript" ev:event="xforms-ready">
  160. <![CDATA[
  161. fInit();
  162. ]]>
  163. </script>
  164. </model>
  165. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  166. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  167. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  169. </xhtml:head>
  170. <xhtml:body pagewidth="300" pageheight="250" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  171. <group id="group2" style="left:0px; top:190px; width:280px; height:30px; ">
  172. <button id="btn_close" class="btn4_letter2" navindex="6" style="left:220px; top:5px; width:56px; height:22px; ">
  173. <caption>닫기</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. window.close();
  177. ]]>
  178. </script>
  179. </button>
  180. <button id="btn_cfm" class="btn4_letter2" navindex="5" style="left:160px; top:5px; width:56px; height:22px; ">
  181. <caption>확인</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. fCnfm();
  185. ]]>
  186. </script>
  187. </button>
  188. </group>
  189. <group id="group1" style="left:0px; top:0px; width:280px; height:190px; ">
  190. <caption id="caption1" class="tit_2" style="left:10px; top:10px; width:100px; height:13px; ">회신자 확인</caption>
  191. <switch id="switch1" class="sw_no_border" style="left:0px; top:40px; width:280px; height:150px; ">
  192. <case id="case1" selected="true">
  193. <caption id="caption2" class="cell_1" style="left:0px; top:20px; width:90px; height:20px; ">작성자</caption>
  194. <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; ">
  195. <script type="javascript" ev:event="xfomrs-value-changed">
  196. <![CDATA[
  197. btn_cfm.dispatch("DOMActivate");
  198. ]]>
  199. </script>
  200. </secret>
  201. <caption id="caption3" class="cell_1" style="left:0px; top:45px; width:90px; height:20px; ">작성자ID</caption>
  202. <caption id="caption5" class="cell_1" style="left:0px; top:96px; width:90px; height:20px; ">회신자ID</caption>
  203. <caption id="caption6" class="cell_1" style="left:0px; top:121px; width:90px; height:20px; ">password</caption>
  204. <input id="input1" ref="/root/hidden/writinfo/writnm" editable="false" style="left:100px; top:20px; width:175px; height:19px; "/>
  205. <input id="input2" ref="/root/hidden/writinfo/writid" editable="false" style="left:100px; top:45px; width:175px; height:19px; "/>
  206. <input id="ipt_repluserid" ref="/root/hidden/replinfo/repluserid" navindex="3" style="left:100px; top:95px; width:175px; height:19px; ">
  207. <script type="javascript" ev:event="xforms-value-changed">
  208. <![CDATA[
  209. if(model.getValue("/root/hidden/replinfo/repluserid") != ""){
  210. model.setValue("/root/send/srchinfo/userid", model.getValue("/root/hidden/replinfo/repluserid"));
  211. submit("TRADC62301");
  212. if(model.getValue("/root/main/replinfo/repluserinfo/chkusernm") == ""){
  213. messageBox("존재하지 않는 사용자입니다." , "E", "사용자ID를 다시 입력하십시오.");
  214. model.setFocus("ipt_repluserid");
  215. }
  216. model.refresh();
  217. }
  218. ]]>
  219. </script>
  220. </input>
  221. <line id="line3" class="line_2" style="x1:0px; y1:80px; x2:280px; y2:80px; "/>
  222. </case>
  223. <case id="case2">
  224. <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; ">
  225. <script type="javascript" ev:event="xfomrs-value-changed">
  226. <![CDATA[
  227. btn_cfm.dispatch("DOMActivate");
  228. ]]>
  229. </script>
  230. </secret>
  231. <caption id="caption4" class="cell_1" style="left:0px; top:51px; width:90px; height:20px; ">회신자 ID</caption>
  232. <caption id="caption7" class="cell_1" style="left:0px; top:76px; width:90px; height:20px; ">password</caption>
  233. <input id="ipt_repluserid2" ref="/root/hidden/replinfo/repluserid" navindex="1" style="left:100px; top:50px; width:175px; height:19px; ">
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. if(model.getValue("/root/hidden/replinfo/repluserid") != ""){
  237. model.setValue("/root/send/srchinfo/userid", model.getValue("/root/hidden/replinfo/repluserid"));
  238. submit("TRADC62301");
  239. if(model.getValue("/root/main/replinfo/repluserinfo/chkusernm") == ""){
  240. messageBox("존재하지 않는 사용자입니다." , "E", "사용자ID를 다시 입력하십시오.");
  241. model.setFocus("ipt_repluserid2");
  242. }
  243. model.refresh();
  244. }
  245. ]]>
  246. </script>
  247. </input>
  248. </case>
  249. <case id="case3">
  250. <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; ">
  251. <script type="javascript" ev:event="xfomrs-value-changed">
  252. <![CDATA[
  253. btn_cfm.dispatch("DOMActivate");
  254. ]]>
  255. </script>
  256. </secret>
  257. <caption id="caption8" class="cell_1" style="left:0px; top:51px; width:90px; height:20px; ">저장자 ID</caption>
  258. <caption id="caption9" class="cell_1" style="left:0px; top:76px; width:90px; height:20px; ">password</caption>
  259. <input id="ipt_repluserid3" ref="/root/hidden/rgstinfo/rgstuserid" navindex="1" style="left:100px; top:50px; width:175px; height:19px; ">
  260. <script type="javascript" ev:event="xforms-value-changed">
  261. <![CDATA[
  262. if(model.getValue("/root/hidden/rgstinfo/rgstuserid") != ""){
  263. model.setValue("/root/send/srchinfo/userid", model.getValue("/root/hidden/rgstinfo/rgstuserid"));
  264. submit("TRADC62301");
  265. if(model.getValue("/root/main/replinfo/repluserinfo/chkusernm") == ""){
  266. messageBox("존재하지 않는 사용자입니다." , "E", "사용자ID를 다시 입력하십시오.");
  267. model.setFocus("ipt_repluserid3");
  268. }
  269. model.refresh();
  270. }
  271. ]]>
  272. </script>
  273. </input>
  274. </case>
  275. </switch>
  276. </group>
  277. <line id="line1" class="line_1" style="x1:0px; y1:35px; x2:280px; y2:35px; "/>
  278. <line id="line2" class="line_3" style="x1:0px; y1:190px; x2:280px; y2:190px; "/>
  279. </xhtml:body>
  280. </xhtml:html>