SMRAA00100_고정자산내역.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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. <fixaset>
  11. <fixasetlist/>
  12. </fixaset>
  13. <repay>
  14. <repaylist/>
  15. </repay>
  16. <fixasetupdt>
  17. <fixasetupdtlist/>
  18. </fixasetupdt>
  19. </main>
  20. <send>
  21. <condition1>
  22. <instcd/>
  23. <fixasetcd/>
  24. <acntcd/>
  25. <fromdd/>
  26. <todd/>
  27. <dsplflag/>
  28. <mainmngtdeptcd/>
  29. <mainmngtdeptnm/>
  30. </condition1>
  31. <condition2>
  32. <instcd/>
  33. <fixasetcd/>
  34. </condition2>
  35. </send>
  36. <init/>
  37. <temp>
  38. <bfdsplflag>A</bfdsplflag>
  39. </temp>
  40. </root>
  41. </instance>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  46. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  47. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  49. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. fOpenForm();
  53. //sCdGrupid = model.getValue("/root/init/comcode/cdgrupid");
  54. ]]>
  55. </script>
  56. <script type="javascript">
  57. <![CDATA[
  58. //========================================================================================
  59. //화면 로드시 초기화 함수
  60. //========================================================================================
  61. function fOpenForm()
  62. {
  63. misfComboComCdList("R0366", cmb_acntcd, "Y");
  64. misfComboComCdListMulti("Z0007,R0044","cmb_instcd,chk_dsplflag");
  65. addComboItem( "chk_dsplflag", "전체", "A", "below" );
  66. chk_dsplflag.value = "A";
  67. model.removeNodeset(grd_fixasetlist.nodeset);
  68. model.removeNodeset(grd_repaylist.nodeset);
  69. model.removeNodeset(grd_fixasetupdtlist.nodeset);
  70. model.setValue(ipt_frdate.attribute("ref"), getCurrentDate());
  71. model.setValue(ipt_todate.attribute("ref"), getCurrentDate());
  72. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  73. model.refresh();
  74. model.setFocus("btn_search");
  75. }
  76. ]]>
  77. </script>
  78. <submission id="TRRAA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition1" resultref="/root/main/fixaset"/>
  79. <submission id="TRRAA00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition2" resultref="/root/main/repay"/>
  80. <submission id="TRRAA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition2" resultref="/root/main/fixasetupdt"/>
  81. </model>
  82. </xhtml:head>
  83. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  84. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  85. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">고정자산 내역</caption>
  86. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  87. </group>
  88. <group id="group3" scroll="auto" style="left:0px; top:20px; width:1195px; height:730px; ">
  89. <line id="line3" class="line_1" style="x1:2px; y1:90px; x2:410px; y2:90px; "/>
  90. <caption id="caption21" class="tit_2" style="left:5px; top:75px; width:131px; height:13px; ">고정자산목록</caption>
  91. <upload id="upload1" style="left:735px; top:415px; width:100px; height:20px; "/>
  92. <group id="group4" style="left:0px; top:10px; width:1195; height:60px; vertical-align:top; ">
  93. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  94. <button id="btn_search" class="btn1_letter2" navindex="16" style="left:1124; top:19px; width:56px; height:22px; ">
  95. <caption>조회</caption>
  96. <script type="javascript" ev:event="DOMActivate">
  97. <![CDATA[
  98. model.removeNodeset(grd_fixasetlist.nodeset);
  99. model.removeNodeset(grd_repaylist.nodeset);
  100. model.removeNodeset(grd_fixasetupdtlist.nodeset);
  101. submit("TRRAA00101");
  102. ]]>
  103. </script>
  104. </button>
  105. <line id="line30" class="line_4" style="x1:1109; y1:8px; x2:1109; y2:51px; "/>
  106. <select1 id="cmb_instcd" ref="/root/send/condition1/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:125px; top:9px; width:210px; height:19px; ">
  107. <choices>
  108. <itemset>
  109. <label/>
  110. <value/>
  111. </itemset>
  112. </choices>
  113. </select1>
  114. <caption id="caption3" class="search_name" style="left:16px; top:9px; width:104px; height:17px; text-align:left; ">기 관 :</caption>
  115. <input id="ipt_todate" ref="/root/send/condition1/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:1004px; top:9px; width:91px; height:19px; "/>
  116. <input id="ipt_frdate" ref="/root/send/condition1/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:894px; top:9px; width:91px; height:19px; "/>
  117. <caption id="caption2" class="search_name" style="left:805px; top:10px; width:86px; height:17px; ">취득일자 :</caption>
  118. <caption id="caption5" visibility="visible" style="left:987px; top:11px; width:15px; height:20px; ">~</caption>
  119. <caption id="cap_goodflag_search" class="search_name" style="left:16px; top:35px; width:125px; height:17px; ">유형자산구분 :</caption>
  120. <select1 id="cmb_acntcd" ref="/root/send/condition1/acntcd" class="combo_default" navindex="1" appearance="minimal" style="left:145px; top:35px; width:190px; height:19px; ">
  121. <choices>
  122. <itemset>
  123. <label/>
  124. <value/>
  125. </itemset>
  126. </choices>
  127. </select1>
  128. <select id="chk_dsplflag" ref="/root/send/condition1/dsplflag" disabled="false" overflow="visible" appearance="full" cellspacing="7" cols="7" sep="," style="left:444px; top:10px; width:350px; height:20px; text-align:center; border-style:hidden; ">
  129. <choices>
  130. <itemset>
  131. <label/>
  132. <value/>
  133. </itemset>
  134. </choices>
  135. <script type="javascript" ev:event="xforms-value-changed">
  136. <![CDATA[
  137. var bfdsplflag = model.getValue("/root/temp/bfdsplflag");
  138. var dsplflag = model.getValue(chk_dsplflag.attribute("ref"));
  139. if (isSearchString(bfdsplflag, 'A'))
  140. {
  141. model.setValue(chk_dsplflag.attribute("ref"), dsplflag.replace("A", ""));
  142. }
  143. else
  144. {
  145. dsplflagArr = dsplflag.split(",");
  146. for (var i=0; i< dsplflagArr.length; i++)
  147. {
  148. if (dsplflagArr[i] == "A")
  149. {
  150. model.setValue(chk_dsplflag.attribute("ref"), "A");
  151. break;
  152. }
  153. }
  154. }
  155. model.setValue("/root/temp/bfdsplflag", model.getValue(chk_dsplflag.attribute("ref")));
  156. chk_dsplflag.refresh();
  157. alert(chk_dsplflag.value);
  158. ]]>
  159. </script>
  160. <script type="javascript" ev:event="onclick">
  161. <![CDATA[
  162. ]]>
  163. </script>
  164. </select>
  165. <caption id="cap_dsplflag_search" class="search_name" style="left:345px; top:10px; width:99px; height:17px; ">처분 구분 :</caption>
  166. <caption id="caption8" class="search_name" style="left:805px; top:35px; width:93px; height:17px; ">자산코드 :</caption>
  167. <input id="ipt_fixasetcd" ref="/root/send/condition1/fixasetcd" class="input_search" appearance="input" style="left:894px; top:35px; width:201px; height:19px; "/>
  168. <caption id="cap_mainmngtdeptcd" class="search_name" style="left:345px; top:35px; width:117px; height:17px; ">입력 부서 :</caption>
  169. <button id="btn_mainmngtdeptcd" class="icon_search" disabled="false" style="left:535px; top:35px; width:16px; height:16px; ">
  170. <caption/>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. misfOpenPopUpList("02", ipt_mainmngtdeptcd,"","mainmngtdeptcd,mainmngtdeptnm");
  174. model.refresh();
  175. ]]>
  176. </script>
  177. </button>
  178. <input id="ipt_mainmngtdeptnm" ref="/root/send/condition1/mainmngtdeptnm" class="input_fix" disabled="false" appearance="input" style="left:555px; top:35px; width:180px; height:19px; ">
  179. <script type="javascript" ev:event="xforms-value-changed">
  180. <![CDATA[
  181. if(ipt_mainmngtdeptnm.value.length == 0)
  182. ipt_mainmngtdeptnm.value = "";
  183. else
  184. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  185. "deptnm," + ipt_mainmngtdeptnm.value, "", "mainmngtdeptcd,mainmngtdeptnm",
  186. ipt_mainmngtdeptnm, "SPRPZ00200", "","");
  187. model.refresh();
  188. ]]>
  189. </script>
  190. </input>
  191. <input id="ipt_mainmngtdeptcd" ref="/root/send/condition1/mainmngtdeptcd" class="input_default" disabled="false" style="left:445px; top:35px; width:85px; height:19px; ">
  192. <script type="javascript" ev:event="xforms-value-changed">
  193. <![CDATA[
  194. if(ipt_mainmngtdeptcd.value.length == 0)
  195. ipt_mainmngtdeptcd.value = "";
  196. else
  197. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  198. "deptcd," + ipt_mainmngtdeptcd.value, "", "mainmngtdeptcd,mainmngtdeptnm",
  199. ipt_mainmngtdeptcd, "SPRPZ00200", "","");
  200. model.refresh();
  201. ]]>
  202. </script>
  203. </input>
  204. </group>
  205. <datagrid id="grd_fixasetlist" nodeset="/root/main/fixaset/fixasetlist" caption="기관코드^취득일자^자산코드^물품명^처분구분^계정코드^부대비용^취득가액^상각구분^상각방법^내용년수^상각률^상각종료일^상각후잔액^주관리부서코드^주관리부서명" colsep="^" colwidth="0, 100, 80, 206, 80, 0, 100, 100, 80, 80, 80, 80, 80, 100, 0, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" selectionmode="free" style="left:2px; top:95px; width:408px; height:630px; ">
  206. <col ref="instcd" style="text-align:left; "/>
  207. <col ref="possndd" format="yyyy-mm-dd" style="text-align:left; "/>
  208. <col ref="fixasetcd" style="text-align:left; "/>
  209. <col ref="goodflaghngnm" style="text-align:left; "/>
  210. <col ref="dsplflag" style="text-align:left; "/>
  211. <col ref="acntcd" style="text-align:left; "/>
  212. <col ref="etcaddamt" format="(-)#,###" style="text-align:right; "/>
  213. <col ref="possnamt" format="(-)#,###" style="text-align:right; "/>
  214. <col ref="repayflag" style="text-align:left; "/>
  215. <col ref="repaymthd" style="text-align:left; "/>
  216. <col ref="cntsyearno" format="(-)#,###" style="text-align:right; "/>
  217. <col ref="repayrate" format="(-)#.###" style="text-align:right; "/>
  218. <col ref="repayenddd" format="yyyy-mm-dd" style="text-align:left; "/>
  219. <col ref="repaybal" format="(-)#,###" style="text-align:right; "/>
  220. <col ref="mainmngtdeptcd" style="text-align:left; "/>
  221. <col ref="mainmngtdeptnm" style="text-align:left; "/>
  222. <script type="javascript" ev:event="onrowchanged">
  223. <![CDATA[
  224. if(grd_fixasetlist.row >= grd_fixasetlist.fixedRows)
  225. {
  226. model.setValue("/root/send/condition2/instcd", grd_fixasetlist.valueMatrix(grd_fixasetlist.row, grd_fixasetlist.colRef("instcd")));
  227. model.setValue("/root/send/condition2/fixasetcd", grd_fixasetlist.valueMatrix(grd_fixasetlist.row, grd_fixasetlist.colRef("fixasetcd")));
  228. submit("TRRAA00102");
  229. submit("TRRAA00103");
  230. }
  231. grd_fixasetlist.dispatch("onmouseup")
  232. ]]>
  233. </script>
  234. </datagrid>
  235. <datagrid id="grd_repaylist" nodeset="/root/main/repay/repaylist" caption="기관코드^년월구분^자산코드^상각년월^취득증감^자산액^상각전잔액^상각액^잔액^상각구분^상각방법^내용년수^상각율" colsep="^" colwidth="0,0,0,100,100,100,100,100,100,80,100,80,80" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:415px; top:224px; width:780px; height:295px; ">
  236. <col ref="instcd" style="text-align:left; "/>
  237. <col ref="ymflag" style="text-align:left; "/>
  238. <col ref="fixasetcd" style="text-align:left; "/>
  239. <col ref="ymdd" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
  240. <col ref="gainflucamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  241. <col ref="fixasetamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  242. <col ref="prevbalamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  243. <col ref="redurepayamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  244. <col ref="balamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  245. <col ref="repayflag" style="text-align:left; vertical-align:middle; "/>
  246. <col ref="repaymthd" style="text-align:left; vertical-align:middle; "/>
  247. <col ref="cntsyearno" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  248. <col ref="repayrate" format="(-)#.###" style="text-align:right; vertical-align:middle; "/>
  249. </datagrid>
  250. <line id="line1" class="line_1" style="x1:415px; y1:219px; x2:1195px; y2:219px; "/>
  251. <caption id="cap_repaylist" class="tit_2" style="left:415px; top:205px; width:131px; height:13px; ">감가상각내역</caption>
  252. <datagrid id="grd_fixasetupdtlist" nodeset="/root/main/fixasetupdt/fixasetupdtlist" caption="기관코드^고정자산코드^변동일자^일련번호^변동구분^변동부서코드^변동부서명^설치장소코드^설치장소명^거래처코드^거래처명^취득구분코드^외화액^화폐단위^고정자산금액^변동금액^적요^요청부서코드^요청부서명^반납일자^반납순번" colsep="^" colwidth="0, 0, 80, 60, 100, 100, 120, 0, 0, 0, 0, 0, 0, 0, 100, 100, 200, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:415px; top:540px; width:780px; height:185px; ">
  253. <col ref="instcd" style="text-align:left; "/>
  254. <col ref="fixasetcd" style="text-align:left; "/>
  255. <col ref="updtdd" format="yyyy-mm-dd" style="text-align:center; "/>
  256. <col ref="updtseq" style="text-align:center; "/>
  257. <col ref="updtflag" style="text-align:left; "/>
  258. <col ref="upddeptcd" style="text-align:left; "/>
  259. <col ref="upddeptnm" style="text-align:left; "/>
  260. <col ref="installplcecd" style="text-align:left; "/>
  261. <col ref="installplcenm" style="text-align:left; "/>
  262. <col ref="custcd" style="text-align:left; "/>
  263. <col ref="custnm" style="text-align:left; "/>
  264. <col ref="possnflagcd" style="text-align:left; "/>
  265. <col ref="forgncurncyamt" format="#,###" style="text-align:right; "/>
  266. <col ref="curncyunit" style="text-align:left; "/>
  267. <col ref="fixasetamt" format="#,###" style="text-align:right; "/>
  268. <col ref="updtamt" format="#,###" style="text-align:right; "/>
  269. <col ref="mainrec" style="text-align:left; "/>
  270. <col ref="rtnreqdeptcd" style="text-align:left; "/>
  271. <col ref="rtnreqdeptnm" style="text-align:left; "/>
  272. <col ref="rtnreqdd" format="yyyy-mm-dd" style="text-align:left; "/>
  273. <col ref="rtnreqseq" style="text-align:left; "/>
  274. </datagrid>
  275. <caption id="cap_fixasetupdtlist" class="tit_2" style="left:415px; top:520px; width:131px; height:13px; ">변동내역</caption>
  276. <line id="line2" class="line_1" style="x1:415px; y1:535px; x2:1195px; y2:535px; "/>
  277. </group>
  278. </xhtml:body>
  279. </xhtml:html>