SMRAA00200_감가상각비.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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. <tangibleassetlist/>
  12. </list>
  13. </main>
  14. <send>
  15. <condition>
  16. <instcd/>
  17. <ym/>
  18. <acntcd>12205001</acntcd>
  19. <repayflag/>
  20. <mainmngtdeptcd/>
  21. <mainmngtdeptnm/>
  22. <workflag/>
  23. </condition>
  24. </send>
  25. <init>
  26. </init>
  27. <temp/>
  28. </root>
  29. </instance>
  30. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  33. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  34. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  35. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. fOpenForm();
  40. ]]>
  41. </script>
  42. <script type="javascript">
  43. <![CDATA[
  44. //========================================================================================
  45. //화면 로드시 초기화 함수
  46. //========================================================================================
  47. function fOpenForm()
  48. {
  49. misfComboComCdList("Z0007", cmb_instcd, "N");
  50. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  51. cmb_instcd.refresh();
  52. model.removeNodeset(grid_tangibleassetlist.nodeset);
  53. grid_tangibleassetlist.refresh();
  54. // misfComboComCdListMulti("xxx", "cmb_acntcd");
  55. model.refresh();
  56. btn_search.dispatch("DOMActivate");
  57. }
  58. //========================================================================================
  59. //각종 코드 Help Open
  60. //========================================================================================
  61. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  62. {
  63. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  64. model.refresh();
  65. }
  66. //========================================================================================
  67. //코드 Validation Check
  68. //========================================================================================
  69. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName)
  70. {
  71. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  72. {
  73. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  74. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName);
  75. model.refresh();
  76. model.setFocus(pNextIndex);
  77. }
  78. }
  79. /*
  80. // 코멘트만 열어 주면 될 것 같음 - 테스트는 못 해 봄
  81. // 전송된 데이타를 자동분개하기 위한 프로시죠 콜
  82. // 감가상각을 마지막 일자에 전표가 생성되도록 하였으므로
  83. // 상각월의 마지막 날짜를 구하여 호출 한다.
  84. var strdate = model.getValue("/root/send/cndfrdprc/workmm");
  85. var stryer = strdate.substring(0,4) ;
  86. var strmon = strdate.substring(4,6) ;
  87. var lstday = new Date(stryer,strmon,'01');
  88. var chLeap = lstday.isLeapYear();
  89. switch (strmon) {
  90. case "01" : lstday = '31'; break;
  91. case "02" : if ( chLeap == true) {
  92. lstday = '29';
  93. } else
  94. {
  95. lstday = '28';
  96. }
  97. break;
  98. case "03" : lstday = '31'; break;
  99. case "04" : lstday = '30'; break;
  100. case "05" : lstday = '31'; break;
  101. case "06" : lstday = '30'; break;
  102. case "07" : lstday = '31'; break;
  103. case "08" : lstday = '31'; break;
  104. case "09" : lstday = '30'; break;
  105. case "10" : lstday = '31'; break;
  106. case "11" : lstday = '30'; break;
  107. case "12" : lstday = '31'; break;
  108. }
  109. dprcdate = strdate + lstday;
  110. model.resetInstanceNode ("/root/send/mksplip");
  111. var instcd = getUserInfo("dutplceinstcd");
  112. model.setValue("/root/send/mksplip/instcd" , instcd);
  113. model.setValue("/root/send/mksplip/slipflag", "8");
  114. model.setValue("/root/send/mksplip/genrdd" , dprcdate);
  115. model.setValue("/root/send/mksplip/alldate" , "N");
  116. model.refresh();
  117. submit("TXRAA00204");
  118. model.refresh();
  119. */
  120. ]]>
  121. </script>
  122. <submission id="TRRAA00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/list"/>
  123. <submission id="TXRAA00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/temp"/>
  124. <submission id="TXRAA00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cndfrdprc" resultref="/root/temp"/>
  125. <submission id="TXRAA00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/mksplip" resultref="/root/temp"/>
  126. <submission id="TXRAA00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/detailist" resultref="/root/temp"/>
  127. </model>
  128. </xhtml:head>
  129. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  130. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  131. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">감가상각비</caption>
  132. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  133. </group>
  134. <group id="group3" scroll="auto" style="left:0px; top:12px; width:1195px; height:685px; ">
  135. <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  136. <caption id="cap_tangibleassetlist" class="tit_2" style="left:5px; top:55px; width:144px; height:13px; ">감가상각 목록</caption>
  137. <datagrid id="grid_tangibleassetlist" nodeset="/root/main/list/tangibleassetlist" caption="기관코드^이전상각일^물품구분^물품구분명^고정자산코드^갯수^계정코드^계정명^귀속부서코드^귀속부서명^상각구분^취득일^내용연수^상각방법^상각률^취득금액^취득증감^고정자산금액^상각누적액^상각잔액" colwidth="0,80,80,120,100,30,60,100,0,100,60,80,60,80,60,100,100,100,100,100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" 상colsep="^" style="left:0px; top:75px; width:1193px; height:605px; ">
  138. <col ref="instcd" visibility="hidden"/>
  139. <col ref="prevrepayymdd" style="text-align:left; "/>
  140. <col ref="goodflag" visibility="hidden"/>
  141. <col ref="goodflaghngnm" style="text-align:left; "/>
  142. <col ref="fixasetcd" style="text-align:left; "/>
  143. <col ref="goodqty" style="text-align:center; "/>
  144. <col ref="acntcd" style="text-align:left; "/>
  145. <col ref="acntnm" style="text-align:left; "/>
  146. <col ref="cntrdeptcd" style="text-align:left; "/>
  147. <col ref="cntrdeptnm" style="text-align:left; "/>
  148. <col ref="repayflag" style="text-align:left; "/>
  149. <col ref="possndd" style="text-align:left; "/>
  150. <col ref="cntsyearno" format="#,###" style="text-align:center; "/>
  151. <col ref="repymthd" style="text-align:center; "/>
  152. <col ref="repayrate" format="#,###.##" style="text-align:right; "/>
  153. <col ref="baseamt" format="#,###" style="text-align:right; "/>
  154. <col ref="gainflucamt" format="#,###" style="text-align:right; "/>
  155. <col ref="fixasetamt" format="#,###" style="text-align:right; "/>
  156. <col ref="totrepayamt" format="#,###" style="text-align:right; "/>
  157. <col ref="repaybal" format="#,###" style="text-align:right; "/>
  158. </datagrid>
  159. <group id="group2" style="left:0px; top:1px; width:1195px; height:40px; vertical-align:top; ">
  160. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  161. <line id="line2" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:33px; "/>
  162. <caption id="cap_goodflag_search" class="search_name" style="left:340px; top:10px; width:125px; height:17px; ">유형자산구분 :</caption>
  163. <select1 id="cmb_acntcd" ref="/root/send/condition/acntcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:470px; top:10px; width:235px; height:19px; ">
  164. <choices>
  165. <item>
  166. <label>의료장비</label>
  167. <value>12205001</value>
  168. </item>
  169. </choices>
  170. </select1>
  171. <button id="btn_search" class="btn1_letter2" navindex="16" style="left:1128px; top:10px; width:56px; height:22px; ">
  172. <caption>조회</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. model.removeNodeset(grid_tangibleassetlist.nodeset);
  176. grid_tangibleassetlist.refresh();
  177. submit("TRRAA00201");
  178. // btn_search.dispatch("DOMActivate");
  179. ]]>
  180. </script>
  181. </button>
  182. <select1 id="cmb_instcd" ref="/root/send/condition/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:125px; top:9px; width:205px; height:19px; ">
  183. <choices>
  184. <itemset>
  185. <label/>
  186. <value/>
  187. </itemset>
  188. </choices>
  189. </select1>
  190. <caption id="caption3" class="search_name" style="left:16px; top:9px; width:104px; height:17px; text-align:right; ">기 관 :</caption>
  191. </group>
  192. <button id="btn_excel" class="btn2_letter4" navindex="10" style="left:1035px; top:48px; width:64px; height:19px; text-align:left; ">
  193. <caption>엑셀출력</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. misfSaveExcel(grid_tangibleassetlist);
  197. ]]>
  198. </script>
  199. </button>
  200. <button id="btn_save" class="btn4_letter2" disabled="false" visibility="hidden" style="left:975px; top:47px; width:56px; height:22px; ">
  201. <caption>저장</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. submit("TXRAA00201") ;
  205. btn_search.dispatch("DOMActivate");
  206. ]]>
  207. </script>
  208. </button>
  209. <button id="btn_depreciation" class="btn4_letter4" style="left:1103px; top:47px; width:80px; height:22px; ">
  210. <caption>감가상각</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. model.setValue("/root/send/condition/workflag", "I");
  214. // for(var i = 1 ; i < 156 ; i++)
  215. // {
  216. submit("TXRAA00202");
  217. // }
  218. btn_search.dispatch("DOMActivate");
  219. ]]>
  220. </script>
  221. </button>
  222. <button id="button5" class="btn4_letter4" visibility="hidden" style="left:120px; top:47px; width:80px; height:22px; ">
  223. <caption>자료전송</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. submit("TXRAA00203");
  227. ]]>
  228. </script>
  229. </button>
  230. <button id="button1" class="btn4_letter6" visibility="visible" style="left:205px; top:47px; width:80px; height:22px; ">
  231. <caption>감가상각취소</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. model.setValue("/root/send/condition/workflag", "D");
  235. submit("TXRAA00202");
  236. btn_search.dispatch("DOMActivate");
  237. ]]>
  238. </script>
  239. </button>
  240. </group>
  241. </xhtml:body>
  242. </xhtml:html>