SPAAA02600_탈단처리.xrw 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. <send>
  10. <savedata/>
  11. </send>
  12. <main>
  13. <quitorginfo>
  14. <quitorgdd/>
  15. <quitorgresn/>
  16. <voluntrid/>
  17. <actstatflag/>
  18. <joinorgseqno/>
  19. </quitorginfo>
  20. <returnsts>
  21. <statusinfo>
  22. <restatus/>
  23. <voluntrid/>
  24. <actstatflag/>
  25. </statusinfo>
  26. </returnsts>
  27. </main>
  28. <init/>
  29. <hidden/>
  30. </root>
  31. </instance>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. fInit();
  35. ]]>
  36. </script>
  37. <submission id="TXAAA02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/returnsts"/>
  38. </model>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  44. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  45. </xhtml:head>
  46. <script type="javascript">
  47. <![CDATA[
  48. // 초기값
  49. function fInit()
  50. {
  51. opener.model.removeNodeset("/root/quitsource/reflag");
  52. opener.model.refresh();
  53. }
  54. //확인
  55. function fSendParam()
  56. {
  57. if(model.getValue("/root/main/quitorginfo/quitorgdd")=="") //탈단일이 공백이면
  58. {
  59. messageBox("활동정지일은","I003");
  60. return;
  61. }
  62. model.removeNodeset("/root/send/savedata");
  63. model.makeNode("/root/send/savedata");
  64. //var joinorgdd=model.getValue("/root/main/quitorginfo/joinorgdd"); // 입단일
  65. //var rejoinorgdd=model.getValue("/root/main/quitorginfo/rejoinorgdd"); // 재입단일
  66. //var quitorgdd=model.getValue("/root/main/quitorginfo/quitorgdd"); // 탈단일
  67. model.copyNode("/root/send/savedata","/root/main/quitorginfo");
  68. if(submit("TXAAA02601")==true)
  69. {
  70. var restatus=model.getValue("/root/main/returnsts/statusinfo/restatus");
  71. if(restatus=='N')
  72. {
  73. messageBox("재입단일이나 입단일 보다 큰 활동정지일자를 입력하십시요.","I");
  74. model.setFocus("ipt_benfdd");
  75. return;
  76. }
  77. else
  78. {
  79. //opener.model.makeValue("/root/quitorginfo/status","y"); // 저장이 되었음을 알리는 플래그 S 셋팅
  80. opener.model.makeValue("/root/quitsource/reflag","c"); //처리 완료되었음을 알리는 의미의 플래그 C반환
  81. opener.model.refresh();
  82. messageBox("활동중지가 ","I002");
  83. }
  84. }
  85. window.close();
  86. }
  87. ]]>
  88. </script>
  89. <xhtml:body pagewidth="465" pageheight="132" guideline="1,500;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  90. <group id="grp_btn" scroll="auto" style="left:0px; top:105px; width:449px; height:27px; ">
  91. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:448px; y2:0px; "/>
  92. <button id="btn_confirm" class="btn4_letter2" style="left:333px; top:5px; width:56px; height:22px; ">
  93. <caption>저장</caption>
  94. <script type="javascript" ev:event="DOMActivate">
  95. <![CDATA[
  96. fSendParam();
  97. //model.close();
  98. ]]>
  99. </script>
  100. </button>
  101. <button id="btn_cancel" class="btn4_letter2" style="left:392px; top:5px; width:56px; height:22px; ">
  102. <caption>취소</caption>
  103. <script type="javascript" ev:event="DOMActivate">
  104. <![CDATA[
  105. //opener.model.makeValue("/root/quitorginfo/status",""); //취소를 뜻하는 r 플래그 저장
  106. model.close();
  107. ]]>
  108. </script>
  109. </button>
  110. </group>
  111. <group id="group1" scroll="auto" style="left:0px; top:0px; width:449px; height:105px; ">
  112. <line id="line8" class="line_2" style="x1:0px; y1:22px; x2:448px; y2:22px; "/>
  113. <caption id="caption5" class="cell_1" style="left:0px; top:0px; width:85px; height:23px; vertical-align:middle; ">활동정지일</caption>
  114. <caption id="caption7" class="cell_1" style="left:0px; top:26px; width:85px; height:53px; vertical-align:middle; ">활동정지사유</caption>
  115. <input id="ipt_benfdd" ref="/root/main/quitorginfo/quitorgdd" class="input_default" disabled="false" inputtype="date" style="left:88px; top:2px; width:120px; height:19px; "/>
  116. <textarea id="tar_rem" ref="/root/main/quitorginfo/quitorgresn" maxlength="100" style="left:88px; top:26px; width:360px; height:53px; "/>
  117. </group>
  118. </xhtml:body>
  119. </xhtml:html>