SMRWP21400_계정분개표.xrw 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. <grnt>
  11. <grntlist1>
  12. <count1/>
  13. <count2/>
  14. </grntlist1>
  15. </grnt>
  16. <grnt1>
  17. <grntlist1/>
  18. </grnt1>
  19. </main>
  20. <send>
  21. <paymonth>
  22. <saldfrayflag/>
  23. <paydd/>
  24. <instcd/>
  25. </paymonth>
  26. </send>
  27. <init/>
  28. <hidden/>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. var curdate = getCurrentDate();
  34. //model.setValue(ipt_payym.attribute("ref") , curdate.substr(0,6));
  35. //model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  36. //model.setValue(ipt_paydd.attribute("ref") , curdate.substr(0,6) + "25" );
  37. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  38. addComboItem("cmb_instcd","--전체--","","above");
  39. //misfComboComCdListMulti("R0112","cmb_saldfrayflag");
  40. //opt_message.text = "작업 왕료여부는 결과보기를 클릭해서 조회 하십시요.";
  41. cmb_saldfrayflag.value = "1";
  42. model.refresh();
  43. model.setFocus("ipt_payym");
  44. ]]>
  45. </script>
  46. <submission id="TRRWP21401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paymonth" resultref="/root/main/grnt"/>
  47. <submission id="TRRWP21402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paymonth" resultref="/root/main/grnt1"/>
  48. <submission id="TXRWP21401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paymonth" resultref="/root/hidden/temp"/>
  49. </model>
  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/dateHelper.js"/>
  53. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  54. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  55. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  56. </xhtml:head>
  57. <xhtml:body guideline="2,10;">
  58. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  59. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">계정분개표</caption>
  60. </group>
  61. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:694px; ">
  62. <select1 id="cmb_instcd" ref="/root/send/paymonth/instcd" class="combo_default" appearance="minimal" style="left:89px; top:31px; width:175px; height:19px; ">
  63. <choices>
  64. <itemset>
  65. <label/>
  66. <value/>
  67. </itemset>
  68. </choices>
  69. </select1>
  70. <caption id="caption12" class="cell_1" style="left:0px; top:30px; width:87px; height:21px; vertical-align:middle; ">기관</caption>
  71. <caption id="caption13" class="cell_1" style="left:0px; top:118px; width:87px; height:21px; vertical-align:middle; ">작업일자</caption>
  72. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:264px; y2:25px; "/>
  73. <select1 id="cmb_saldfrayflag" ref="/root/send/paymonth/saldfrayflag" class="combo_default" appearance="minimal" style="left:89px; top:74px; width:175px; height:19px; ">
  74. <choices>
  75. <item>
  76. <label>급여/상여</label>
  77. <value>1</value>
  78. </item>
  79. <item>
  80. <label>상여금</label>
  81. <value>2</value>
  82. </item>
  83. <item>
  84. <label>소급분</label>
  85. <value>3</value>
  86. </item>
  87. <item>
  88. <label>추가지급</label>
  89. <value>A</value>
  90. </item>
  91. </choices>
  92. <script type="javascript" ev:event="xforms-value-changed">
  93. <![CDATA[
  94. /*
  95. if (DUTY_PAY_YN == "Y" || cmb_saldfrayflag1.value == "2") {
  96. cmb_instcd1.disabled = false;
  97. }
  98. else {
  99. cmb_instcd1.disabled = true;
  100. }
  101. if ( cmb_saldfrayflag1.value == "5" ) {
  102. caption9.visible = true;
  103. ipt_paydd1.visible = true;
  104. }
  105. else {
  106. caption9.visible = false;
  107. ipt_paydd1.visible = false;
  108. }
  109. */
  110. /*
  111. if (cmb_saldfrayflag1.value == "2") {
  112. misfComboComCdListMulti("R0112,Z0007,R0112,Z0007","cmb_saldfrayflag1,cmb_instcd1,cmb_saldfrayflag2,cmb_instcd2");
  113. addComboItem( "cmb_instcd1", "[-- 전체 --]", "%", "above");
  114. model.setValue(cmb_instcd1.attribute("ref"), "%");
  115. }
  116. else {
  117. */
  118. //misfComboInstCdListMulti("cmb_instcd,cmb_instcd1,cmb_instcd2,cmb_instcd3",getCurrentDate(),"","N");
  119. //misfComboComCdListMulti("R0112,R0112,R0112,R0112","cmb_saldfrayflag,cmb_saldfrayflag1,cmb_saldfrayflag2,cmb_saldfrayflag3");
  120. // misfComboComCdListMulti("R0112,Z0007,R0112,Z0007","cmb_saldfrayflag1,cmb_instcd1,cmb_saldfrayflag2,cmb_instcd2");
  121. // misfComboCopyItemSet(grd_paytrgtlist, "amtratedaynoflag", grd_paytrgtlist, "bnuspayflag");
  122. // misfComboCopyItemSet(grd_paytrgtlist, "amtratedaynoflag", grd_paytrgtlist, "divcalcflag");
  123. // var curdate = getCurrentDate();
  124. // model.setValue(ipt_payym.attribute("ref") , curdate.substr(0,6));
  125. //model.setValue(cmb_instcd1.attribute("ref") , getUserInfo("dutplceinstcd"));
  126. // model.setValue(cmb_SalDfrayFlag.attribute("ref"), "1");
  127. //}
  128. //model.setValue("/root/send/paycalc/saldfrayflag", model.getValue("/root/send/paymonth/saldfrayflag"));
  129. //model.refresh();
  130. ]]>
  131. </script>
  132. </select1>
  133. <caption id="caption5" class="cell_1" style="left:0px; top:73px; width:87px; height:21px; vertical-align:middle; ">지급구분</caption>
  134. <input id="ipt_payym" ref="/root/send/paymonth/paydd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:89px; top:119px; width:175px; height:19px; text-align:center; ">
  135. <script type="javascript" ev:event="xforms-value-changed">
  136. <![CDATA[
  137. submit("TRRWP21401");
  138. model.refresh();
  139. ]]>
  140. </script>
  141. </input>
  142. <button id="btn_save1" class="btn4_letter4" style="left:185px; top:170px; width:80px; height:22px; ">
  143. <caption>미리보기</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. var lsflag = "Y";
  147. var lcnt1 = parseInt(model.getValue("/root/main/grnt/grntlist1/count1"));
  148. var lcnt2 = parseInt(model.getValue("/root/main/grnt/grntlist1/count2"));
  149. if (lcnt1 > 0){
  150. if (lcnt2 > 0){
  151. messageBox("경리 데이타에서 확인 작업이 되었습니다. 생성된 데이타 조회만 됩니다", "E999", "");
  152. lsflag = "N";
  153. }else{
  154. if( messageBox("해당월 데이타가 만들어져 있습니다!! 다시 생성하시겠습니까?" , "Q99" ) == 6 ){
  155. lsflag = "Y";
  156. }else{
  157. lsflag = "N";
  158. }
  159. }
  160. }
  161. if (lsflag == "Y"){
  162. submit("TXRWP21401");
  163. }else{
  164. submit("TRRWP21402");
  165. // exeReportPreview("RPRWP21401", "XMLSTR" , "" , "" , "false" , "", "", "", "", "true","","","","","","","","false");
  166. exeReportPreview("RPRWP21401", "XMLSTR");
  167. }
  168. submit("TRRWP21401");
  169. ]]>
  170. </script>
  171. </button>
  172. </group>
  173. </xhtml:body>
  174. </xhtml:html>