SPZUM01900_부서선택.xrw 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <dutplcecd/>
  11. <sessionstr/>
  12. <dutplceinstcd/>
  13. <userid/>
  14. <deptnm/>
  15. <deptcd/>
  16. </send>
  17. <init/>
  18. <hidden/>
  19. </root>
  20. </instance>
  21. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  22. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  23. <script type="javascript" ev:event="xforms-ready">
  24. <![CDATA[
  25. if(checkOpener()){
  26. //setCSVToNode("/root/init", opener.javascript.getParameter("SPZUM01900_PARM_deptlist"), "deptlist");
  27. var dutplcecd = getUserInfo( "dutplcecd" );
  28. var dutplceinstcd = getUserInfo( "dutplceinstcd" );
  29. model.setValue("/root/send/deptcd", dutplceinstcd+":"+dutplcecd);
  30. model.setValue("/root/send/userid", getUserId());
  31. submit("TRZUM01901",false);
  32. model.refresh();
  33. }
  34. ]]>
  35. </script>
  36. <submission id="TRZUM01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  37. <submission id="TXZUM01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  38. <submission id="TXZUM01902" mediatype="application/x-www-form-urlencoded" method="post"/>
  39. </model>
  40. </xhtml:head>
  41. <xhtml:body pagewidth="245" pageheight="50">
  42. <select1 id="cmb_dept" ref="/root/send/deptcd" appearance="minimal" style="left:20px; top:25px; width:210px; height:19px; ">
  43. <choices>
  44. <itemset nodeset="/root/init/deptlist">
  45. <label ref="deptnm"/>
  46. <value ref="deptcd"/>
  47. </itemset>
  48. </choices>
  49. <script type="javascript" ev:event="xforms-value-changed">
  50. <![CDATA[
  51. if(checkOpener()){
  52. var rtn = messageBox("부서변경 시 모든 열린 창이 닫힙니다.\n", "Q003");
  53. if(rtn != 6){
  54. opener.javascript.clearParameter("SPZUM01900_RETN_selected");
  55. window.close();
  56. return;
  57. }
  58. opener.javascript.setParameter("SPZUM01900_RETN_selected","true");
  59. /*
  60. var dutplceinstcd = "031";
  61. var dutplcecd = model.getValue("/root/send/dutplcecd");
  62. var userid = getUserId();
  63. opener.javascript.setParameter("SPZUM01900_RETN_dutplceinstcd","031");
  64. opener.javascript.setParameter("SPZUM01900_RETN_dutplcecd",dutplcecd);
  65. opener.javascript.setParameter("SPZUM01900_RETN_userid",userid);
  66. */
  67. var deptnm = cmb_dept.label;
  68. model.setValue("/root/send/sessionstr",getGlobalVariable("userinfos"));
  69. model.setValue("/root/send/dutplceinstcd",model.getValue("/root/init/deptlist[deptnm='"+deptnm+"']/dutplceinstcd"));
  70. model.setValue("/root/send/dutplcecd",model.getValue("/root/init/deptlist[deptnm='"+deptnm+"']/dutplcecd"));
  71. submit("TXZUM01901",false);
  72. opener.javascript.setParameter("SPZUM01900_RETN_newsessionstr",model.getValue("/root/hidden/retlist/newsessionstr"));
  73. opener.javascript.setParameter("SPZUM01900_RETN_menugroupstr",model.getValue("/root/hidden/retlist/menugroupstr"));
  74. var submitID = "TXZUM01902";
  75. var sid = document.all(submitID);
  76. sid.attribute("action") = getDomain()+"/himed2/chngsess.live?sessstr="+model.getValue("/root/hidden/retlist/newsessionstr");
  77. model.send(submitID,false,false,true);
  78. model.refresh();
  79. window.close();
  80. }
  81. ]]>
  82. </script>
  83. </select1>
  84. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:144px; height:15px; ">부서변경</caption>
  85. <button id="button1" class="btn2_letter2" style="left:105px; top:55px; width:42px; height:19px; ">
  86. <caption>취소</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. if(checkOpener()){
  90. opener.javascript.clearParameter("SPZUM01900_RETN_selected");
  91. window.close();
  92. }
  93. ]]>
  94. </script>
  95. </button>
  96. </xhtml:body>
  97. </xhtml:html>