SMRAT01290_부동산임대공급가액명세서.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  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>SMRAT01290_부동산임대공급가액명세서</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <texlist>
  12. </texlist>
  13. </list>
  14. </main>
  15. <send>
  16. <retrparam>
  17. <addtaxpnt/>
  18. <addtaxyy/>
  19. <instcd/>
  20. <todate/>
  21. <frdate/>
  22. <entrregno/>
  23. <loanuser/>
  24. </retrparam>
  25. <save>
  26. <texlist/>
  27. </save>
  28. <prtparam>
  29. <todate/>
  30. <frdate/>
  31. <addtaxpnt/>
  32. <addr/>
  33. <entrregno/>
  34. <instcdnm/>
  35. </prtparam>
  36. </send>
  37. <init>
  38. <init_reptkind>
  39. <item>
  40. <label>1기예정</label>
  41. <value>1</value>
  42. </item>
  43. <item>
  44. <label>1기확정</label>
  45. <value>2</value>
  46. </item>
  47. <item>
  48. <label>2기예정</label>
  49. <value>3</value>
  50. </item>
  51. <item>
  52. <label>2기확정</label>
  53. <value>4</value>
  54. </item>
  55. </init_reptkind>
  56. <tempyyyy/>
  57. </init>
  58. <temp/>
  59. <hidden>
  60. </hidden>
  61. <target/>
  62. </root>
  63. </instance>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  70. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  71. <script type="javascript" src="../../../mis/miscommonweb/js/RAM001.js"/>
  72. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  73. <script type="javascript" ev:event="xforms-ready">
  74. <![CDATA[
  75. fInitialize();
  76. ]]>
  77. </script>
  78. <script type="javascript">
  79. <![CDATA[
  80. function fInitialize()
  81. {
  82. model.removenode("/root/main/list/texlist");
  83. misfMsterDetailSet(grd_texlist, null, "TRRAT01291", "Y");
  84. // 7월 25일 이정훈 수정
  85. model.setValue("/root/send/retrparam/addtaxyy", getCurrentDate().substr(0, 4)) - 1;
  86. model.setValue("/root/init/tempyyyy", getCurrentDate().substr(0, 4));
  87. //model.setValue("/root/send/retrparam/addtaxyy", model.getValue("/root/target/yyyy"));
  88. //model.setValue("/root/init/tempyyyy", model.getValue("/root/target/yyyy"));
  89. // 기간 세팅
  90. model.setValue("/root/send/retrparam/frdate", getCurrentDate());
  91. model.setValue("/root/send/retrparam/todate", getCurrentDate());
  92. // 기관코드 세팅
  93. misfComboComCdListMulti("Z0007","cmb_instcd");
  94. model.setValue("/root/send/retrparam/instcd", getUserInfo("dutplceinstcd"));
  95. //grd_texlist.rowheight(0) = 35;
  96. fSetReptKind();
  97. fSetDate();
  98. fSearch();
  99. model.refresh();
  100. }
  101. function fSetReptKind()
  102. {
  103. /* 07.25 이정훈 수정*/
  104. var sMonth = getCurrentDate().substr(4, 2);
  105. if(sMonth == "01" || sMonth == "02" || sMonth == "03")
  106. {
  107. model.setValue("/root/send/retrparam/addtaxpnt", "1");
  108. }
  109. else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
  110. {
  111. model.setValue("/root/send/retrparam/addtaxpnt", "2");
  112. }
  113. else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
  114. {
  115. model.setValue("/root/send/retrparam/addtaxpnt", "3");
  116. }
  117. else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
  118. {
  119. model.setValue("/root/send/retrparam/addtaxpnt", "4");
  120. }
  121. //model.setValue("/root/send/retrparam/addtaxpnt", model.getValue("/root/target/reptkind"));
  122. //model.refresh();
  123. }
  124. function fSetDate()
  125. {
  126. if(model.getValue("/root/send/retrparam/addtaxyy").length != 4)
  127. {
  128. messageBox("년도가 잘못되었습니다.", "I999");
  129. model.setFocus("ipt_yyyy");
  130. return;
  131. }
  132. var sReptKind = model.getValue("/root/send/retrparam/addtaxpnt");
  133. if(sReptKind == "1")
  134. {
  135. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/addtaxyy") + "0101");
  136. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/addtaxyy") + "0331");
  137. }
  138. else if(sReptKind == "2")
  139. {
  140. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/addtaxyy") + "0101");
  141. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/addtaxyy") + "0630");
  142. }
  143. else if(sReptKind == "3")
  144. {
  145. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/addtaxyy") + "0701");
  146. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/addtaxyy") + "0930");
  147. }
  148. else if(sReptKind == "4")
  149. {
  150. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/addtaxyy") + "0701");
  151. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/addtaxyy") + "1231");
  152. }
  153. model.refresh();
  154. }
  155. function fSearch() {
  156. if(ipt_yyyy.value == "") {
  157. messageBox("년도를","C001");
  158. model.setFocus("ipt_yyyy");
  159. }else if(ipt_yyyy.value > tempyyyy.value) {
  160. messageBox(tempyyyy.value+"년도","E011");
  161. model.setFocus("ipt_yyyy");
  162. }else{
  163. submit("TRRAT01291");
  164. }
  165. }
  166. function fPrint() {
  167. if(ipt_yyyy.value == "") {
  168. messageBox("년도를","C001");
  169. model.setFocus("ipt_yyyy");
  170. }else if(grd_texlist.rows == grd_texlist.fixedRows) {
  171. messageBox("출력할 내용이","I004");
  172. }else{
  173. if(rdo_reptkind.value == "1") {
  174. model.setValue("/root/send/prtparam/addtaxpnt","1기 예정");
  175. }else if (rdo_reptkind.value == "2") {
  176. model.setValue("/root/send/prtparam/addtaxpnt","1기 확정");
  177. }else if(rdo_reptkind.value == "3") {
  178. model.setValue("/root/send/prtparam/addtaxpnt","2기 예정");
  179. }else {
  180. model.setValue("/root/send/prtparam/addtaxpnt","2기 확정");
  181. }
  182. model.setValue("/root/send/prtparam/instcdnm", cmb_instcd.label);
  183. model.setValue("/root/send/prtparam/frdate",ipt_frdate.value.substr(4,2) );
  184. model.setValue("/root/send/prtparam/todate",ipt_todate.value.substr(4,2) );
  185. exeReportPreview("RPRAT01290","XMLSTR","/root/send/prtparam");
  186. }
  187. }
  188. function fSave() {
  189. if(grd_texlist.row == "-1") {
  190. messageBox("저장할 내용이","I004");
  191. }else if(ipt_yyyy.value != "" && ipt_yyyy.value != tempyyyy.value ) {
  192. messageBox(tempyyyy.value+"년도의 내용만 저장이","I006");
  193. }else{
  194. model.setValue( "/root/send/save/texlist", grd_texlist.getUpdateData());
  195. submit("TXRAT01291"); // 저장
  196. }
  197. }
  198. ]]>
  199. </script>
  200. <submission id="TRRAT01291" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/list"/>
  201. <submission id="TXRAT01291" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  202. </model>
  203. </xhtml:head>
  204. <xhtml:body guideline="1,1195;" style="color:#4d4d4d; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  205. <group id="grp_1" style="left:0px; top:0px; width:1195px; height:30px; ">
  206. <caption id="cap_6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">부동산 임대공급가액 명세서</caption>
  207. <caption id="cap_4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  208. </group>
  209. <group id="grp_3" scroll="auto" style="left:0px; top:55px; width:1195px; height:725px; ">
  210. <case id="case2" selected="true">
  211. <caption id="cap_2" style="left:130px; top:95px; width:100px; height:20px; vertical-align:middle; ">caption2</caption>
  212. </case>
  213. <switch id="swt_1" class="sw_box" style="left:0px; top:80px; width:1195px; height:615px; border-style:solid; ">
  214. <case id="case2" style="left:0px; top:0px; width:1193px; height:638px; ">
  215. <caption id="cap_5" class="tit_2" style="left:5px; top:10px; width:195px; height:18px; ">부동산 임대공급가액 명세서</caption>
  216. <datagrid id="grd_texlist" nodeset="/root/main/list/texlist" caption="년도^신고유형^기관코드^seq^층·호수^면적(㎡)^상호(성명)^사업자등록번호^입주일^퇴거일^보증금^월세^합계^보증금이자^월세(계)" colwidth="35, 35, 35, 35, 60, 90, 200, 115, 100, 100, 100, 100, 105, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:585px; ">
  217. <col ref="addtaxyy" visibility="hidden"/>
  218. <col ref="addtaxpnt" visibility="hidden"/>
  219. <col ref="instcd" visibility="hidden"/>
  220. <col ref="seq" visibility="hidden"/>
  221. <col ref="layer" type="input" style="text-align:center; "/>
  222. <col ref="vol" type="input" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  223. <col ref="loanuser" type="input" style="text-align:left; padding-right:1; "/>
  224. <col ref="entrregno" type="input" format="999-99-99999" style="text-align:center; "/>
  225. <col ref="loanindt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  226. <col ref="loanoutdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  227. <col ref="grntamt" type="input" format="(-)#,###" savetype="digit" maxlength="15" style="text-align:right; padding-right:1; "/>
  228. <col ref="mmamt" type="input" format="(-)#,###" savetype="digit" maxlength="15" style="text-align:right; padding-right:1; "/>
  229. <col ref="amt" type="input" format="(-)#,###" savetype="digit" maxlength="15" style="text-align:right; padding-right:1; "/>
  230. <col ref="grntrest" type="input" format="(-)#,###" savetype="digit" maxlength="15" style="text-align:right; padding-right:1; "/>
  231. <col ref="loaninamt" type="input" format="(-)#,###" savetype="digit" maxlength="15" style="text-align:right; padding-right:1; "/>
  232. <col ref="deployeeentrregno" visibility="hidden"/>
  233. <col ref="deployeecustnm" visibility="hidden"/>
  234. <col ref="deployeesupaddr" visibility="hidden"/>
  235. <col ref="deployeeinfaddr" visibility="hidden"/>
  236. <script type="javascript" ev:event="onaftersort">
  237. <![CDATA[
  238. grd_texlist.gridToInstance;
  239. ]]>
  240. </script>
  241. </datagrid>
  242. <line id="lin_1" class="line_1" style="x1:0px; y1:30px; x2:1193px; y2:30px; "/>
  243. <button id="btn_7" class="btn2_letter2" style="left:1143px; top:5px; width:42px; height:19px; ">
  244. <caption>엑셀</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. //misfSaveExcel(grd_texlist);
  248. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  249. grd_texlist.saveExcel(fileName,"SheetName:sheet1");
  250. ]]>
  251. </script>
  252. </button>
  253. <button id="button1" class="btn2_letter3" style="left:1030px; top:5px; width:53px; height:19px; ">
  254. <caption>행추가</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. if(ipt_yyyy.value == "") {
  258. messageBox("년도를","C001");
  259. model.setFocus("ipt_yyyy");
  260. }else if(ipt_yyyy.value < tempyyyy.value) {
  261. messageBox(tempyyyy.value+"년도만","I006");
  262. model.setFocus("ipt_yyyy");
  263. }else{
  264. grd_texlist.addRow();
  265. grd_texlist.valueMatrix(grd_texlist.row, grd_texlist.colRef("addtaxyy")) = ipt_yyyy.value;
  266. grd_texlist.valueMatrix(grd_texlist.row, grd_texlist.colRef("instcd")) = cmb_instcd.value;
  267. grd_texlist.valueMatrix(grd_texlist.row, grd_texlist.colRef("addtaxpnt")) = rdo_reptkind.value;
  268. if(ipt_regno.value != "") {
  269. grd_texlist.valueMatrix(grd_texlist.row, grd_texlist.colRef("loanuser")) = ipt_loanuser.value;
  270. grd_texlist.valueMatrix(grd_texlist.row, grd_texlist.colRef("entrregno")) = ipt_regno.value;
  271. }
  272. else {
  273. }
  274. }
  275. ]]>
  276. </script>
  277. </button>
  278. <button id="button18" class="btn2_letter3" style="left:1087px; top:5px; width:53px; height:19px; ">
  279. <caption>행삭제</caption>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. misfGridIUD(grd_texlist, "D");
  283. ]]>
  284. </script>
  285. </button>
  286. </case>
  287. </switch>
  288. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  289. <input id="ipt_todate" ref="/root/send/retrparam/todate" class="input_s_essential" navindex="-1" editable="false" inputtype="date" style="left:912px; top:12px; width:100px; height:19px; "/>
  290. <input id="ipt_frdate" ref="/root/send/retrparam/frdate" class="input_s_essential" navindex="-1" editable="false" inputtype="date" style="left:785px; top:12px; width:100px; height:19px; "/>
  291. <line id="line10" class="line_4" style="x1:1105px; y1:8px; x2:1105px; y2:62px; "/>
  292. <caption id="caption10" class="search_name" style="left:686px; top:12px; width:100px; height:17px; ">기 간 :</caption>
  293. <caption id="caption1" class="search_name" style="left:686px; top:40px; width:99px; height:17px; ">사업자번호 :</caption>
  294. <select1 id="rdo_reptkind" ref="/root/send/retrparam/addtaxpnt" class="radio_search" navindex="-1" overflow="visible" appearance="full" cellspacing="10" cols="4" style="left:365px; top:40px; width:305px; height:20px; vertical-align:middle; border-style:none; ">
  295. <choices>
  296. <itemset nodeset="/root/init/init_reptkind/item">
  297. <label ref="label"/>
  298. <value ref="value"/>
  299. </itemset>
  300. </choices>
  301. <script type="javascript" ev:event="xforms-value-changed">
  302. <![CDATA[
  303. fSetDate();
  304. fSearch();
  305. ]]>
  306. </script>
  307. </select1>
  308. <caption id="caption2" class="search_name" style="left:280px; top:12px; width:85px; height:17px; ">년 도 :</caption>
  309. <input id="ipt_loanuser" ref="/root/send/retrparam/loanuser" navindex="-1" imemode="hangul" style="left:912px; top:40px; width:160px; height:19px; "/>
  310. <button id="btn_entregnohelp" class="icon_search" style="left:891px; top:40px; width:16px; height:16px; ">
  311. <caption/>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. misfOpenPopUpList("14", ipt_regno, "", "entrregno,loanuser,temp,temp1,addr");
  315. model.refresh();
  316. ]]>
  317. </script>
  318. </button>
  319. <input id="ipt_regno" ref="/root/send/retrparam/entrregno" navindex="-1" format="999-99-99999" style="left:785px; top:40px; width:100px; height:19px; text-align:center; "/>
  320. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1125px; top:23px; width:56px; height:22px; text-align:left; ">
  321. <caption>조회</caption>
  322. <script type="javascript" ev:event="DOMActivate">
  323. <![CDATA[
  324. fSearch();
  325. ]]>
  326. </script>
  327. </button>
  328. <caption id="caption9" class="search_name" style="left:280px; top:40px; width:90px; height:17px; ">신고유형 :</caption>
  329. <input id="ipt_yyyy" ref="/root/send/retrparam/addtaxyy" class="input_s_essential" navindex="-1" maxlength="4" style="left:365px; top:12px; width:70px; height:19px; text-align:center; ">
  330. <script type="javascript" ev:event="xforms-value-changed">
  331. <![CDATA[
  332. fSetDate();
  333. fSearch();
  334. ]]>
  335. </script>
  336. </input>
  337. <caption id="caption3" class="search_name" style="left:5px; top:12px; width:101px; height:17px; ">기 관 :</caption>
  338. <select1 id="cmb_instcd" ref="/root/send/retrparam/instcd" class="combo_s_essential" disabled="true" navindex="-1" appearance="minimal" style="left:85px; top:12px; width:165px; height:19px; ">
  339. <choices>
  340. <itemset>
  341. <label/>
  342. <value/>
  343. </itemset>
  344. </choices>
  345. <script type="javascript" ev:event="xforms-select">
  346. <![CDATA[
  347. misfMsterDetailRetrieve();
  348. ]]>
  349. </script>
  350. </select1>
  351. <caption id="caption4" style="left:892px; top:14px; width:16px; height:16px; ">~</caption>
  352. <output id="tempyyyy" ref="/root/init/tempyyyy" navindex="-1" visibility="hidden" maxlength="4" style="left:460px; top:12px; width:70px; height:19px; text-align:center; "/>
  353. </group>
  354. <group id="grp_4" scroll="auto" style="left:0px; top:25px; width:1195px; height:30px; ">
  355. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1185px; y2:25px; "/>
  356. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  357. <caption>출력</caption>
  358. <script type="javascript" ev:event="DOMActivate">
  359. <![CDATA[
  360. fPrint() ;
  361. ]]>
  362. </script>
  363. </button>
  364. <button id="button39" class="btn4_letter2" style="left:1132px; top:3px; width:56px; height:22px; ">
  365. <caption>저장</caption>
  366. <script type="javascript" ev:event="DOMActivate">
  367. <![CDATA[
  368. fSave();
  369. fSearch();
  370. ]]>
  371. </script>
  372. </button>
  373. </group>
  374. </xhtml:body>
  375. </xhtml:html>