SMRFE02500_기관간자산이동.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>기관간 자산이동</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <endlist/>
  11. </main>
  12. <send>
  13. <search>
  14. <instcd_from/>
  15. <fixasetcd_from/>
  16. <fixasetnm_from/>
  17. <instcd_to/>
  18. <fixasetcd_to/>
  19. <movedate/>
  20. </search>
  21. <save>
  22. </save>
  23. </send>
  24. <init>
  25. </init>
  26. <temp>
  27. </temp>
  28. <hidden>
  29. </hidden>
  30. </root>
  31. </instance>
  32. <submission id="TXRFE02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
  33. </model>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. //화면 Control을 초기화한다
  37. misfComboInstCdListMulti("cmb_instcd_from",getCurrentDate(),"","N"); //기관
  38. misfComboInstCdListMulti("cmb_instcd_to",getCurrentDate(),"","N"); //기관
  39. var sInstcd = getUserInfo("dutplceinstcd");
  40. if (sInstcd == "031") {
  41. model.setValue("/root/send/search/instcd_from", "032"); //기관 설정
  42. } else if (sInstcd == "032") {
  43. model.setValue("/root/send/search/instcd_from", "031"); //기관 설정
  44. }
  45. model.setValue("/root/send/search/instcd_to", sInstcd); //기관 설정
  46. model.setValue("/root/send/search/movedate" , getCurrentDate().substr(0, 8) ); //이동기준일 설정
  47. model.refresh();
  48. ]]>
  49. </script>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  53. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  54. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  57. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  58. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  59. <script type="javascript">
  60. <![CDATA[]]>
  61. </script>
  62. </xhtml:head>
  63. <xhtml:body guideline="1,1368;" style="font-family:굴림; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  64. <group id="group1" style="left:0px; top:0px; width:945px; height:13px; ">
  65. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">기관간 자산이동</caption>
  66. </group>
  67. <group id="group3" scroll="auto" style="left:0px; top:40px; width:945px; height:705px; ">
  68. <line id="line1" class="line_1" style="x1:0px; y1:38px; x2:540px; y2:38px; "/>
  69. <caption id="caption1" class="tit_2" style="left:0px; top:19px; width:180px; height:14px; ">From</caption>
  70. <line id="line2" class="line_1" style="x1:0px; y1:95px; x2:540px; y2:95px; "/>
  71. <caption id="caption26" class="cell_1" style="left:0px; top:205px; width:110px; height:23px; text-align:center; vertical-align:middle; ">이동기준일</caption>
  72. <line id="line4" class="line_2" style="x1:0px; y1:203px; x2:540px; y2:203px; "/>
  73. <caption id="cap_purccondd" class="cell_1" style="left:0px; top:44px; width:110px; height:23px; text-align:center; vertical-align:middle; ">기관코드</caption>
  74. <caption id="caption5" class="cell_1" style="left:0px; top:70px; width:110px; height:23px; text-align:center; vertical-align:middle; ">기존 자산코드</caption>
  75. <line id="line10" class="line_2" style="x1:0px; y1:68px; x2:540px; y2:68px; "/>
  76. <select1 id="cmb_instcd_from" ref="/root/send/search/instcd_from" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:112px; top:46px; width:143px; height:19px; ">
  77. <choices>
  78. <itemset nodeset="/root/main/init">
  79. <label ref="cnstnm"/>
  80. <value ref="cnstcd"/>
  81. </itemset>
  82. </choices>
  83. </select1>
  84. <input id="ipt_movedate" ref="/root/send/search/movedate" navindex="5" inputtype="date" format="yyyy-mm-dd" style="left:112px; top:207px; width:95px; height:19px; "/>
  85. <caption id="caption4" style="left:0px; top:250px; width:560px; height:28px; ">※ 이동기준일을 기준으로 기존 기관의 자산코드는 불용처리되므로, 일자 설정에 유의 당부드립니다.</caption>
  86. <caption id="caption2" style="left:210px; top:206px; width:214px; height:23px; color:#ff0000; ">(금일 또는 이전 일자로만 등록 가능)</caption>
  87. <output id="ipt_fixasetnm_from" ref="/root/send/search/fixasetnm_from" class="output_fix" navindex="3" appearance="output" style="left:229px; top:72px; width:310px; height:19px; "/>
  88. <input id="ipt_fixasetcd_from" ref="/root/send/search/fixasetcd_from" visibility="visible" style="left:112px; top:72px; width:95px; height:19px; ">
  89. <script type="javascript" ev:event="xforms-value-changed">
  90. <![CDATA[
  91. if(ipt_fixasetcd_from.value != "")
  92. {
  93. //rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm",
  94. // cmb_instcd_from.value +",fixasetcd," + ipt_fixasetcd_from.value,
  95. // "", "fixasetcd_from,fixasetnm_from", ipt_fixasetcd_from, "SPRSD00240",
  96. // "instcd","cmb_instcd_from");
  97. // rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm",
  98. // cmb_instcd_from.value +",fixasetcd," + ipt_fixasetcd_from.value,
  99. // "", "fixasetcd_from,fixasetnm_from", ipt_fixasetcd_from, "SPRSD00240",
  100. // "instcd",cmb_instcd_from.value);
  101. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm",
  102. cmb_instcd_from.value + "," + "fixasetcd," + ipt_fixasetcd_from.value, "", "fixasetcd_from,fixasetnm_from",
  103. ipt_fixasetcd_from, "SPRSD00240_고정자산코드검색HELP", "instcd","cmb_instcd_from");
  104. }else{
  105. ipt_fixasetnm_from.value = '';
  106. }
  107. ipt_fixasetcd_from.refresh();
  108. ipt_fixasetnm_from.refresh();
  109. ]]>
  110. </script>
  111. </input>
  112. <button id="btn_fixasetcd" class="icon_search" style="left:210px; top:73px; width:16px; height:16px; ">
  113. <caption/>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. //rszfOpenPopUpListByWndName(ipt_fixasetcd_from, "", "fixasetcd_from,fixasetnm_from","SPRSD00240","instcd", "cmb_instcd_from");
  117. //rszfOpenPopUpListByWndName(ipt_fixasetcd_from, "", "fixasetcd_from,fixasetnm_from","SPRSD00240","instcd", cmb_instcd_from.value);
  118. rszfOpenPopUpListByWndName(ipt_fixasetcd_from, "", "fixasetcd_from,fixasetnm_from", "SPRSD00240","instcd","cmb_instcd_from");
  119. ipt_fixasetcd_from.refresh();
  120. ipt_fixasetnm_from.refresh();
  121. ]]>
  122. </script>
  123. </button>
  124. <line id="line5" class="line_2" style="x1:0px; y1:177px; x2:540px; y2:177px; "/>
  125. <select1 id="cmb_instcd_to" ref="/root/send/search/instcd_to" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:112px; top:155px; width:143px; height:19px; ">
  126. <choices>
  127. <itemset nodeset="/root/main/init">
  128. <label ref="cnstnm"/>
  129. <value ref="cnstcd"/>
  130. </itemset>
  131. </choices>
  132. </select1>
  133. <caption id="caption3" class="tit_2" style="left:0px; top:128px; width:180px; height:13px; ">To</caption>
  134. <input id="ipt_fixasetcd_to" ref="/root/send/search/fixasetcd_to" visibility="visible" style="left:112px; top:181px; width:95px; height:19px; "/>
  135. <caption id="caption7" class="cell_1" style="left:0px; top:179px; width:110px; height:23px; text-align:center; vertical-align:middle; ">신규 자산코드</caption>
  136. <line id="line6" class="line_1" style="x1:0px; y1:147px; x2:540px; y2:147px; "/>
  137. <line id="line8" class="line_1" style="x1:0px; y1:230px; x2:540px; y2:230px; "/>
  138. <caption id="caption9" class="cell_1" style="left:0px; top:153px; width:110px; height:23px; text-align:center; vertical-align:middle; ">기관코드</caption>
  139. <button id="btn_addrow" style="left:260px; top:105px; width:35px; height:19px; background-image:../../../com/commonweb/images/btn_send_bottom.gif; ">
  140. <caption/>
  141. </button>
  142. </group>
  143. <group id="group4" scroll="auto" style="left:0px; top:13px; width:945px; height:27px; ">
  144. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:540px; y2:25; "/>
  145. <button id="btn_exec" class="btn4_letter2" navindex="41" style="left:481px; top:3px; width:56px; height:22px; ">
  146. <caption>실행</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. if(ipt_fixasetnm_from.value == "") {
  150. messageBox("기존 자산코드가 올바로 입력되지 않았습니다. \n\n먼저 자산코드를 선택하십시요.", "E999", "");
  151. model.setFocus("ipt_fixasetcd_from");
  152. return;
  153. }
  154. if(ipt_fixasetcd_to.value == "") {
  155. messageBox("신규 자산코드가 올바로 입력되지 않았습니다. \n\n먼저 자산코드를 입력하십시요.", "E999", "");
  156. model.setFocus("ipt_fixasetcd_to");
  157. return;
  158. }
  159. //이동기준일에 입력된 값이 올바르지 않으면, 이동기준일을 선택하라고 alert함
  160. if(ipt_movedate.value.length < 8) {
  161. messageBox("이동기준일이 올바로 입력되지 않았습니다. \n\n먼저 이동기준일을 입력하십시요.", "E999", "");
  162. model.setFocus("ipt_movedate");
  163. return;
  164. }
  165. if(ipt_movedate.value > getCurrentDate().substr(0, 8)) {
  166. messageBox("이동기준일이 잘못 설정 되었습니다. \n\n금일 또는 이전 일자로만 설정 가능합니다. ", "E999", "");
  167. model.setFocus("ipt_movedate");
  168. return;
  169. }
  170. if (messageBox( "From : " + cmb_instcd_from.label + " " + ipt_fixasetcd_from.value + "\n" +
  171. "To : " + cmb_instcd_to.label + " " + ipt_fixasetcd_to.value + "\n\n" +
  172. "기관간 자산이동을 실행하시겠습니까? ", "Q999", "") != 6){
  173. return;
  174. }
  175. if(submit("TXRFE02501")) {
  176. messageBox("작업이 완료되었습니다.", "I999", "");
  177. }
  178. ]]>
  179. </script>
  180. </button>
  181. </group>
  182. </xhtml:body>
  183. </xhtml:html>