SPRAD00160_전표복사이동.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. <returnlist>
  11. <newunslno/>
  12. </returnlist>
  13. </main>
  14. <send>
  15. <instcd/>
  16. <oldunsldd/>
  17. <oldunslno/>
  18. <newunsldd/>
  19. </send>
  20. <hidden>
  21. </hidden>
  22. <init>
  23. </init>
  24. <temp>
  25. </temp>
  26. <target/>
  27. </root>
  28. </instance>
  29. <submission id="TXRAD00161" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/returnlist"/>
  30. <submission id="TXRAD00162" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/returnlist"/>
  31. </model>
  32. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  34. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  35. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. fInitialize();
  39. ]]>
  40. </script>
  41. <script type="javascript">
  42. <![CDATA[
  43. //========================================================================================
  44. //초기화
  45. //========================================================================================
  46. function fInitialize()
  47. {
  48. var instcd = model.getValue("/root/target/copyshiftslipinfo/instcd");
  49. var oldunsldd = model.getValue("/root/target/copyshiftslipinfo/oldunsldd");
  50. var oldunslno = model.getValue("/root/target/copyshiftslipinfo/oldunslno");
  51. var jobflag = model.getValue("/root/target/copyshiftslipinfo/jobflag");
  52. //alert("instcd : " + instcd + " oldunsldd : " + oldunsldd + " oldunslno : " + oldunslno + " jobflag : " + jobflag);
  53. if(instcd == "" || oldunsldd == "" || oldunslno == "" || jobflag == "")
  54. {
  55. messageBox("잘못된 정보입니다.\n시스템 담당자에게 문의하세요","I000");
  56. btn_close.dispatch("DOMActivate");
  57. }
  58. if(jobflag == 'copy')
  59. {
  60. btn_copyslip.visible = true;
  61. btn_shiftslip.visible = false;
  62. cap_title.value = "전표 복사";
  63. cap_title.refresh();
  64. cap_slipcopy_1.visible = true;
  65. cap_slipcopy_2.visible = true;
  66. cap_slipcopy_3.visible = true;
  67. cap_slipcopy_4.visible = true;
  68. cap_slipshift_1.visible = false;
  69. cap_slipshift_2.visible = false;
  70. cap_slipshift_3.visible = false;
  71. cap_slipshift_4.visible = false;
  72. }
  73. else if(jobflag == 'shift')
  74. {
  75. btn_copyslip.visible = false;
  76. btn_shiftslip.visible = true;
  77. cap_title.value = "전표 날짜 변겅";
  78. cap_title.refresh();
  79. cap_slipcopy_1.visible = false;
  80. cap_slipcopy_2.visible = false;
  81. cap_slipcopy_3.visible = false;
  82. cap_slipcopy_4.visible = false;
  83. cap_slipshift_1.visible = true;
  84. cap_slipshift_2.visible = true;
  85. cap_slipshift_3.visible = true;
  86. cap_slipshift_4.visible = true;
  87. }
  88. model.setValue("/root/send/instcd", instcd);
  89. model.setValue("/root/send/oldunsldd", oldunsldd);
  90. model.setValue("/root/send/oldunslno", oldunslno);
  91. model.setValue("/root/send/newunsldd", oldunsldd);
  92. ipt_newunsldd.refresh();
  93. var receiveref = model.getValue("/root/target/receiveref");
  94. if(checkOpener()) opener.model.setValue(receiveref + "/newunslno", "0000");
  95. }
  96. ]]>
  97. </script>
  98. </xhtml:head>
  99. <xhtml:body pagewidth="565" pageheight="300" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  100. <group id="group1" style="left:0px; top:0px; width:544; height:13px; ">
  101. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">전표 복사 / 전표 날짜 변경</caption>
  102. </group>
  103. <group id="group2" style="left:0px; top:12px; width:543px; height:250px; "/>
  104. <group id="grp_btn" scroll="auto" style="left:0px; top:266px; width:544px; height:27px; ">
  105. <button id="btn_shiftslip" class="btn4_letter10" visibility="hidden" style="left:332px; top:2px; width:152px; height:22px; color:#ff0000; ">
  106. <caption>전표 날짜 변경 실행</caption>
  107. <script type="javascript" ev:event="DOMActivate">
  108. <![CDATA[
  109. if(ipt_newunsldd.value.length != 8) //수정 필요
  110. {
  111. messageBox("날짜가 정확하지 ","E007");
  112. return;
  113. }
  114. ret = messageBox("날짜를 변경 하시겠습니까?","Q999");
  115. if (ret == "6")
  116. {
  117. if (submit("TXRAD00162"))
  118. {
  119. messageBox("날짜 변경이 완료되었습니다. \n 날짜 변경된 전표를 확인해 보시기 바랍니다.","I000");
  120. var receiveref = model.getValue("/root/target/receiveref");
  121. if(checkOpener())
  122. {
  123. opener.model.setValue(receiveref + "/newunslno", model.getValue("/root/main/returnlist/newunslno"));
  124. opener.model.setValue(receiveref + "/newunsldd", model.getValue("/root/send/newunsldd"));
  125. }
  126. }
  127. window.close();
  128. }
  129. ]]>
  130. </script>
  131. </button>
  132. <button id="btn_close" class="btn4_letter2" style="left:488px; top:2; width:56px; height:22px; ">
  133. <caption>취소</caption>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. window.close();
  137. ]]>
  138. </script>
  139. </button>
  140. <line id="line1" class="line_6" visibility="hidden" style="x1:0px; y1:0px; x2:543px; y2:0px; "/>
  141. <button id="btn_copyslip" class="btn4_letter7" visibility="hidden" style="left:368px; top:2px; width:116px; height:22px; color:#ff0000; ">
  142. <caption>전표 복사 실행</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. if(ipt_newunsldd.value.length != 8) //수정 필요
  146. {
  147. messageBox("날짜가 정확하지 ","E007");
  148. return;
  149. }
  150. ret = messageBox("전표를 복사 하시겠습니까?","Q999");
  151. if (ret == "6")
  152. {
  153. if (submit("TXRAD00161"))
  154. {
  155. messageBox("복사가 완료되었습니다. \n 복사된 전표를 확인해 보시기 바랍니다.","I000");
  156. var receiveref = model.getValue("/root/target/receiveref");
  157. if(checkOpener())
  158. {
  159. opener.model.setValue(receiveref + "/newunslno", model.getValue("/root/main/returnlist/newunslno"));
  160. opener.model.setValue(receiveref + "/newunsldd", model.getValue("/root/send/newunsldd"));
  161. }
  162. }
  163. window.close();
  164. }
  165. ]]>
  166. </script>
  167. </button>
  168. </group>
  169. <group id="group4" style="left:0px; top:12px; width:543px; height:250px; "/>
  170. <group id="group6" style="left:0px; top:12px; width:543px; height:250px; ">
  171. <input id="ipt_newunsldd" ref="/root/send/newunsldd" class="input_s_essential" inputtype="date" style="left:120px; top:47px; width:120px; height:19px; ">
  172. <script type="javascript" ev:event="xforms-value-changed">
  173. <![CDATA[
  174. ]]>
  175. </script>
  176. </input>
  177. <caption id="caption8" class="cell_1" style="left:5px; top:45px; width:110px; height:23px; ">적용 날짜</caption>
  178. </group>
  179. <caption id="cap_slipcopy_1" class="cell_1" visibility="hidden" style="left:5px; top:20px; width:530px; height:30px; font-size:12pt; font-weight:bold; text-align:center; vertical-align:middle; ">전 표 복 사</caption>
  180. <caption id="cap_slipcopy_2" class="cell_1" visibility="hidden" style="left:5px; top:85px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">
  181. <![CDATA[1. 전송, 승인요청, 승인 상태의 모든 전표는 복사가 가능합니다.
  182. 복사된 전표는 미전송 상태가 됩니다.]]>
  183. </caption>
  184. <caption id="cap_slipcopy_3" class="cell_1" visibility="hidden" style="left:5px; top:140px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">2. 각종 증빙과 접대비 내역, 이체계좌등록 내역 등의 모든 정보가 복사 됩니다.</caption>
  185. <caption id="cap_slipcopy_4" class="cell_1" visibility="hidden" style="left:5px; top:195px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">3. 전표 번호는 적용 날짜에서 가장 높은 번호로 만들어집니다.</caption>
  186. <caption id="cap_slipshift_1" class="cell_1" visibility="hidden" style="left:5px; top:20px; width:530px; height:30px; font-size:12pt; font-weight:bold; text-align:center; vertical-align:middle; ">전 표 날 짜 변 경</caption>
  187. <caption id="cap_slipshift_2" class="cell_1" visibility="hidden" style="left:5px; top:85px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">1. 전송된 전표는 날짜를 변경 할 수 없습니다.</caption>
  188. <caption id="cap_slipshift_3" class="cell_1" visibility="hidden" style="left:5px; top:140px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">2. 각종 증빙과 접대비 내역, 이체계좌등록 내역 등의 모든 정보가 유지 됩니다.</caption>
  189. <caption id="cap_slipshift_4" class="cell_1" visibility="hidden" style="left:5px; top:195px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">3. 전표 번호는 적용 날짜에서 가장 높은 번호로 만들어집니다.</caption>
  190. </xhtml:body>
  191. </xhtml:html>