SMRAD00900_현금출납장.xrw 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <list>
  11. <acntinoutlist/>
  12. </list>
  13. </main>
  14. <send>
  15. <retrparam>
  16. <instcd/>
  17. <frdate/>
  18. <todate/>
  19. <frcadldt/>
  20. <framt/>
  21. <toamt/>
  22. <cashflag/>
  23. </retrparam>
  24. <date/>
  25. <prntparam>
  26. <instnm/>
  27. <fromdd/>
  28. <todd/>
  29. </prntparam>
  30. </send>
  31. <init/>
  32. <temp/>
  33. <hidden/>
  34. </root>
  35. </instance>
  36. <submission id="TRRAD00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/list"/>
  37. </model>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  41. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  42. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  43. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. fResetForm();
  47. ]]>
  48. </script>
  49. <script type="javascript">
  50. <![CDATA[
  51. function fResetForm()
  52. {
  53. model.removeNodeset("/root/main/list/acntinoutlist");
  54. if(getUserInfo("dutplceinstcd") == '103')
  55. {
  56. rdo_cashflag.value = 'cashacntcd';
  57. }
  58. else
  59. {
  60. rdo_cashflag.value = 'cashcd';
  61. }
  62. rdo_cashflag.refresh();
  63. misfMsterDetailSet(grd_acntinoutlist, null, "TRRAD00901", "N");
  64. // 기관코드 콤보박스 세팅
  65. misfComboComCdList("Z0007", cmb_instcd, "N");
  66. // 회계년도 및 시작, 종료일자 조회 및 세팅
  67. model.setValue("/root/send/date", getCurrentDate());
  68. racfGetCadlYmd("/root/send/date", "/root/temp");
  69. model.setValue("/root/send/retrparam/frcadldt", model.getValue("/root/temp/fromdd"));
  70. // 해당 근무 기관 세팅
  71. model.setValue("/root/send/retrparam/instcd", getUserInfo("dutplceinstcd"));
  72. // 현재일자 세팅
  73. model.setValue("/root/send/retrparam/frdate", getCurrentDate());
  74. model.setValue("/root/send/retrparam/todate", getCurrentDate());
  75. radfCheckInstSearchAuth(getUserInfo("dutplceinstcd"), cmb_instcd);
  76. model.refresh();
  77. }
  78. function fRetrieve()
  79. {
  80. misfMsterDetailRetrieve();
  81. }
  82. function fSetCadlDt()
  83. {
  84. model.setValue("/root/send/date", ipt_frdate.value);
  85. racfGetCadlYmd("/root/send/date", "/root/temp");
  86. model.setValue("/root/send/retrparam/frcadldt", model.getValue("/root/temp/fromdd"));
  87. model.refresh();
  88. }
  89. ]]>
  90. </script>
  91. </xhtml:head>
  92. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  93. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  94. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">현금출납장</caption>
  95. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  96. </group>
  97. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  98. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  99. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  100. <caption id="caption7" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  101. <caption id="caption1" class="search_name" style="left:255px; top:9px; width:86px; height:17px; ">기 간 :</caption>
  102. <caption id="caption3" style="left:436px; top:10px; width:15px; height:20px; ">~</caption>
  103. <line id="line30" class="line_4" style="x1:1109px; y1:3px; x2:1109px; y2:31px; "/>
  104. <button id="btn_search" class="btn1_letter2" style="left:1126px; top:7px; width:56px; height:22px; ">
  105. <caption>조회</caption>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. fRetrieve();
  109. ]]>
  110. </script>
  111. </button>
  112. <select1 id="cmb_instcd" ref="/root/send/retrparam/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:110px; top:8px; width:130px; height:19px; ">
  113. <choices>
  114. <itemset>
  115. <label/>
  116. <value/>
  117. </itemset>
  118. </choices>
  119. </select1>
  120. <input id="ipt_frdate" ref="/root/send/retrparam/frdate" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:345px; top:8px; width:90px; height:19px; ">
  121. <script type="javascript" ev:event="xforms-value-changed">
  122. <![CDATA[
  123. fSetCadlDt();
  124. ]]>
  125. </script>
  126. </input>
  127. <input id="ipt_todate" ref="/root/send/retrparam/todate" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:447px; top:8px; width:90px; height:19px; "/>
  128. <output id="opt_cadldt" ref="/root/send/retrparam/frcadldt" visibility="hidden" style="left:1100px; top:10px; width:25px; height:19px; "/>
  129. <caption id="caption2" class="search_name" style="left:550px; top:9px; width:85px; height:17px; ">금 액 :</caption>
  130. <caption id="caption8" style="left:724px; top:10px; width:15px; height:20px; ">~</caption>
  131. <input id="ipt_framt" ref="/root/send/retrparam/framt" class="input_essential" navindex="6" format="(-)#,###" style="left:634px; top:8px; width:90px; height:19px; text-align:right; "/>
  132. <input id="ipt_toamt" ref="/root/send/retrparam/toamt" class="input_essential" navindex="6" format="(-)#,###" style="left:734px; top:8px; width:90px; height:19px; text-align:right; "/>
  133. <select1 id="rdo_cashflag" ref="/root/send/retrparam/cashflag" class="radio_search" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:920px; top:10px; width:211px; height:20px; vertical-align:middle; border-style:none; ">
  134. <choices>
  135. <item>
  136. <label>현 금</label>
  137. <value>cashcd</value>
  138. </item>
  139. <item>
  140. <label>현금성등가물</label>
  141. <value>cashacntcd</value>
  142. </item>
  143. </choices>
  144. </select1>
  145. <caption id="caption9" class="search_name" visibility="hidden" style="left:846px; top:10px; width:91px; height:17px; ">구분 :</caption>
  146. </group>
  147. <case id="case2" selected="true">
  148. <caption id="caption2" style="left:130px; top:95px; width:100px; height:20px; vertical-align:middle; ">caption2</caption>
  149. </case>
  150. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  151. <caption id="caption5" class="tit_2" style="left:5px; top:80px; width:131px; height:13px; ">전체</caption>
  152. <datagrid id="grd_acntinoutlist" nodeset="/root/main/list/acntinoutlist" caption="날짜^적요^거래처^입금^출금^잔액^전표일자^전표번호" colsep="^" colwidth="100, 416, 190, 150, 150, 150, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:75px; width:1195px; height:663px; ">
  153. <col ref="apsldt" format="yyyy-mm-dd" style="text-align:center; "/>
  154. <col ref="kije00"/>
  155. <col ref="custnm"/>
  156. <col ref="dramnt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  157. <col ref="cramnt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  158. <col ref="janamtsum" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  159. <col ref="unsldd"/>
  160. <col ref="unslno"/>
  161. <script type="javascript" ev:event="ondblclick">
  162. <![CDATA[
  163. if (grd_acntinoutlist.row > 0) {
  164. model.makeValue("/root/source/slipinfo/instcd", cmb_instcd.value);
  165. model.makeValue("/root/source/slipinfo/slipdt", model.getValue("/root/main/list/acntinoutlist[" + grd_acntinoutlist.row + "]/unsldd"));
  166. model.makeValue("/root/source/slipinfo/slipno", model.getValue("/root/main/list/acntinoutlist[" + grd_acntinoutlist.row + "]/unslno").substr(0, 4));
  167. model.refresh();
  168. modal("SMRAD00100","","","","","/root/source", "/root/target" );
  169. }
  170. ]]>
  171. </script>
  172. </datagrid>
  173. <button id="btn_excel" class="btn2_letter4" style="left:1129px; top:49px; width:64px; height:19px; text-align:left; ">
  174. <caption>엑셀출력</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. //misfSaveExcel(grd_acntinoutlist);
  178. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  179. grd_acntinoutlist.saveExcel(fileName,"SheetName:sheet1");
  180. ]]>
  181. </script>
  182. </button>
  183. </group>
  184. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  185. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  186. <button id="button8" class="btn6_letter2" visibility="visible" style="left:0px; top:3px; width:56px; height:22px; ">
  187. <caption>출력</caption>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. if(grd_acntinoutlist.rows == grd_acntinoutlist.fixedRows)
  191. {
  192. messageBox("출력할 내용이" ,"I004");
  193. return false;
  194. }
  195. model.setValue("/root/send/prntparam/instnm", cmb_instcd.label);
  196. model.setValue("/root/send/prntparam/fromdd", model.getValue(ipt_frdate.attribute("ref")));
  197. model.setValue("/root/send/prntparam/todd", model.getValue(ipt_todate.attribute("ref")));
  198. exeReportPreview("RPRAD00901", "XMLSTR", "/root/send/prntparam");
  199. ]]>
  200. </script>
  201. </button>
  202. </group>
  203. </xhtml:body>
  204. </xhtml:html>