SMRAT01312_부가가치세전자신고항목관리.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  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. <list>
  11. <reptlist/>
  12. <reptspeclist/>
  13. </list>
  14. <item>
  15. <reptid/>
  16. </item>
  17. <rex>
  18. <rexrow>
  19. <dspdt/>
  20. </rexrow>
  21. </rex>
  22. </main>
  23. <hide/>
  24. <send>
  25. <reptid/>
  26. <instcd/>
  27. <addtaxpnt/>
  28. <addtaxyy/>
  29. <frdate/>
  30. <todate/>
  31. <speccd/>
  32. <reptitem/>
  33. <seqno/>
  34. <save>
  35. <reptlist/>
  36. </save>
  37. <etcparam/>
  38. <reptspectype/>
  39. </send>
  40. <temp>
  41. <seqno/>
  42. <row/>
  43. <inptdata/>
  44. <flag/>
  45. </temp>
  46. <init>
  47. <init_reptkind>
  48. <item>
  49. <label>1기 예정</label>
  50. <value>1</value>
  51. <label>1기 확정</label>
  52. <value>2</value>
  53. <label>2기 예정</label>
  54. <value>3</value>
  55. <label>2기 확정</label>
  56. <value>4</value>
  57. </item>
  58. </init_reptkind>
  59. <chktype>
  60. <label>첫번째 형태</label>
  61. <value>A</value>
  62. <label>두번째 형태</label>
  63. <value>B</value>
  64. <label>세번째 형태</label>
  65. <value>C</value>
  66. <label>네번째 형태</label>
  67. <value>D</value>
  68. <label>다섯번째 형태</label>
  69. <value>E</value>
  70. </chktype>
  71. </init>
  72. </root>
  73. </instance>
  74. <script type="javascript" ev:event="xforms-ready">
  75. <![CDATA[
  76. fInitialize();
  77. ]]>
  78. </script>
  79. <script type="javascript" ev:event="xforms-model-construct">
  80. <![CDATA[
  81. ]]>
  82. </script>
  83. <submission id="TRRAT01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/reptspeclist"/>
  84. <submission id="TRRAT01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/reptlist" resultref="/root/main/list/reptlist"/>
  85. <submission id="TRRAT01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/reptspeclist"/>
  86. <submission id="TXRAT01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/reptlist" resultref="/root/temp"/>
  87. <submission id="TRRAT01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rex"/>
  88. </model>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/MIS.js"/>
  91. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  93. <script type="javascript">
  94. <![CDATA[
  95. /*
  96. 초기화 작업
  97. */
  98. function fInitialize()
  99. {
  100. model.removeNodeset("/root/main/list/reptlist");
  101. model.removeNodeset("/root/main/list/reptspeclist");
  102. model.setValue("/root/send/addtaxyy", getCurrentDate().substr(0, 4));
  103. rdo_chktype.value = "A";
  104. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  105. submit("TRRAT01501");
  106. fSetReptKind();
  107. fSetDate();
  108. model.refresh();
  109. }
  110. /*
  111. 신고서 항목 조회
  112. */
  113. function fSearch()
  114. {
  115. model.removeNodeset("/root/main/list/reptspeclist");
  116. fSetDate();
  117. model.setValue("/root/send/reptid", grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("reptid")));
  118. model.setValue("/root/send/speccd", rdo_chktype.value);
  119. model.setValue("/root/send/reptitem", grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("reptitem")));
  120. model.setValue("/root/send/addtaxyy", ipt_yyyy.value);
  121. model.setValue("/root/send/addtaxpnt", rdo_reptkind.value);
  122. submit("TRRAT01502");
  123. fSetRowStatus();
  124. model.refresh();
  125. }
  126. function fSearchPrev()
  127. {
  128. model.removeNodeset("/root/main/list/reptspeclist");
  129. fSetDate();
  130. model.setValue("/root/send/reptid", grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("reptid")));
  131. model.setValue("/root/send/speccd", rdo_chktype.value);
  132. model.setValue("/root/send/reptitem", grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("reptitem")));
  133. model.setValue("/root/send/addtaxyy", ipt_yyyy.value);
  134. model.setValue("/root/send/addtaxpnt", rdo_reptkind.value);
  135. submit("TRRAT01503");
  136. fSetRowStatus();
  137. model.refresh();
  138. }
  139. /*
  140. 신고서항목 저장
  141. */
  142. function fSave(param)
  143. {
  144. if (param=="rept")
  145. {
  146. model.reset("/root/send/save/reptlist");
  147. model.setValue("/root/send/save/reptlist", grd_reptlist.getUpdateData());
  148. model.refresh();
  149. misfSave("TTRAT01312");
  150. }
  151. else
  152. {
  153. model.reset("/root/send/save/reptlist");
  154. model.setValue("/root/send/save/reptlist", grd_reptspeclist.getUpdateData());
  155. model.refresh();
  156. misfSave("TTRAT01314");
  157. }
  158. }
  159. /* 행추가, 삭제*/
  160. function fAddDelRow(sStatus)
  161. {
  162. if(sStatus == "A")
  163. {
  164. misfGridIUD(grd_reptlist, sStatus);
  165. grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  166. grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("flagcd")) = "1";
  167. grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("genrdd")) = getCurrentDate();
  168. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isskind")) = "01";
  169. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxkind")) = "01";
  170. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) = "01";
  171. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("deduyn")) = "00";
  172. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("remintax")) = "00";
  173. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("closyn")) = "N";
  174. fSetAddtaxterm(grd_taxbilllist.row);
  175. }
  176. else
  177. {
  178. misfGridIUD(grd_taxbilllist, sStatus);
  179. }
  180. }
  181. function fGetReptList(pRow, reptid)
  182. {
  183. model.resetInstanceNode("/root/main/list/reptlist");
  184. model.resetInstanceNode("/root/send/save/reptlist");
  185. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  186. model.setValue("/root/send/reptid", reptid);
  187. model.removenode("/root/main/list/reptlist");
  188. submit("TTRAT01313");
  189. model.refresh();
  190. }
  191. /*
  192. model.getValue(); 를 함수로 만들었습니다.
  193. param1 : node는 grid의 xPath입니다.
  194. param2 : row는 grid에서 선택한 row값입니다.
  195. param3 : element는 getvalue할 해당 element 명입니다.
  196. 해당 getvalue값을 return 해줍니다.
  197. return 하지 않으면 해당값을 가져올 수 없습니다.
  198. */
  199. function fGetValue(node, row, element) {
  200. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  201. return rtnValue;
  202. }
  203. /*
  204. model.setValue();를 함수로 만들었습니다.
  205. param1 : node는 setvalue할 컨트롤의 xPath입니다.
  206. param2 : destinationelement는 setvalue할 element명 입니다.
  207. param3 : sourceelement는 setvalue할 값입니다.
  208. */
  209. function fSetValue(node, destinationelement, sourceelement) {
  210. model.setValue(node + "/" + destinationelement, sourceelement);
  211. }
  212. function fSetRowValue(node, destinationelement, sourceelement, row) {
  213. model.setValue(node + "[" + row + "]/" + destinationelement, sourceelement);
  214. }
  215. function fSetReptKind()
  216. {
  217. var sMonth = getCurrentDate().substr(4, 2);
  218. if(sMonth == "01" || sMonth == "02" || sMonth == "03")
  219. {
  220. model.setValue("/root/send/addtaxpnt", "1");
  221. }
  222. else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
  223. {
  224. model.setValue("/root/send/addtqaxpnt", "2");
  225. }
  226. else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
  227. {
  228. model.setValue("/root/send/addtqaxpnt", "3");
  229. }
  230. else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
  231. {
  232. model.setValue("/root/send/addtqaxpnt", "4");
  233. }
  234. model.refresh();
  235. }
  236. function fGetReptSpecList(pRow, reptid)
  237. {
  238. model.resetInstanceNode("/root/send/save/reptlist");
  239. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  240. model.setValue("/root/send/reptid", reptid);
  241. submit("TRRAT01503");
  242. model.refresh();
  243. }
  244. function fSetDate()
  245. {
  246. if(model.getValue("/root/send/addtaxyy").length != 4)
  247. {
  248. messageBox("년도가 잘못되었습니다.", "I999");
  249. return;
  250. }
  251. var sReptKind = model.getValue("/root/send/addtaxpnt");
  252. if(sReptKind == "1")
  253. {
  254. model.setValue("/root/send/frdate", model.getValue("/root/send/addtaxyy") + "0101");
  255. model.setValue("/root/send/todate", model.getValue("/root/send/addtaxyy") + "0331");
  256. }
  257. else if(sReptKind == "2")
  258. {
  259. model.setValue("/root/send/frdate", model.getValue("/root/send/addtaxyy") + "0101");
  260. model.setValue("/root/send/todate", model.getValue("/root/send/addtaxyy") + "0630");
  261. }
  262. else if(sReptKind == "3")
  263. {
  264. model.setValue("/root/send/frdate", model.getValue("/root/send/addtaxyy") + "0701");
  265. model.setValue("/root/send/todate", model.getValue("/root/send/addtaxyy") + "0930");
  266. }
  267. else if(sReptKind == "4")
  268. {
  269. model.setValue("/root/send/frdate", model.getValue("/root/send/addtaxyy") + "0701");
  270. model.setValue("/root/send/todate", model.getValue("/root/send/addtaxyy") + "1231");
  271. }
  272. model.refresh();
  273. }
  274. function fSetRowStatus()
  275. {
  276. var chk = grd_reptspeclist.valueMatrix(1, grd_reptspeclist.colRef("chk"));
  277. if (chk == "I")
  278. {
  279. for (var i = 1; i <= grd_reptspeclist.rows; i++)
  280. {
  281. grd_reptspeclist.rowStatus(i) = 1;
  282. }
  283. }
  284. // else
  285. // {
  286. // for (var i = 1; i <= grd_reptspeclist.rows; i++)
  287. // {
  288. // grd_reptspeclist.rowStatus(i) = 2;
  289. // }
  290. // }
  291. }
  292. function fSetGrid()
  293. {
  294. for (var i = 1; i <= grd_reptspeclist.rows; i++)
  295. {
  296. grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  297. grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("fstrgstrid")) = getUserInfo("userid");
  298. grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("lastupdtrid")) = getUserInfo("userid");
  299. grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("addtaxyy")) = model.getValue("/root/send/addtaxyy");
  300. grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("addtaxpnt")) = model.getValue("/root/send/addtaxpnt");
  301. }
  302. }
  303. function fCellFormat()
  304. {
  305. for (var i = 1; i <= grd_reptspeclist.rows; i++)
  306. {
  307. var row = i;
  308. var col = grd_reptspeclist.colRef("inptdata");
  309. var type = grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("reptspectype"));
  310. var lgth = grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("reptspeclgth"));
  311. var char = "";
  312. if (type == 'NUM')
  313. {
  314. char = '#';
  315. grd_reptspeclist.cellFormat(row, col) = char;
  316. grd_reptspeclist.cellattribute("maxlength",row, col, row, col) = "(-)"+lgth;
  317. }
  318. else
  319. {
  320. grd_reptspeclist.cellattribute("maxlength",row, col, row, col) = lgth;
  321. }
  322. }
  323. }
  324. function fCheckType(pRow, pReptID, pReptitem, pReptSpecType)
  325. {
  326. model.setValue("/root/temp/row", pRow);
  327. model.setValue("/root/send/reptid", pReptID);
  328. model.setValue("/root/send/reptitem", pReptitem);
  329. model.setValue("/root/send/reptspectype", pReptSpecType);
  330. var sRow = model.getValue("/root/temp/row");
  331. /* Head 레코드일 경우*/
  332. if (pReptID == '001')
  333. {
  334. /* 신고차수*/
  335. if (pReptitem == '008')
  336. {
  337. modal("SPRAT01301","","","","","/root/send", "/root/target", "1200" );
  338. var flag = model.getValue("/root/temp/flag")
  339. if (flag == '2')
  340. {
  341. grd_reptspeclist.valueMatrix(sRow, grd_reptspeclist.colRef("inptdata")) = model.getValue("/root/temp/inptdata");
  342. var rowstatus = grd_reptspeclist.rowStatus(sRow);
  343. if (rowstatus != '1')
  344. {
  345. grd_reptspeclist.rowStatus(sRow) = 2;
  346. }
  347. }
  348. }
  349. }
  350. /* 은행코드일 경우 팝업 */
  351. if (pReptSpecType == 'BNK')
  352. {
  353. modal("SPRAT01301","","","","","/root/send", "/root/target", "" );
  354. var flag = model.getValue("/root/temp/flag")
  355. if (flag == '2')
  356. {
  357. grd_reptspeclist.valueMatrix(sRow, grd_reptspeclist.colRef("inptdata")) = model.getValue("/root/temp/inptdata");
  358. var rowstatus = grd_reptspeclist.rowStatus(sRow);
  359. if (rowstatus != '1')
  360. {
  361. grd_reptspeclist.rowStatus(sRow) = 2;
  362. }
  363. }
  364. }
  365. /* 일반과세자 신고서일 경우 */
  366. if (pReptID == '002')
  367. {
  368. if (pReptitem == '053')
  369. {
  370. modal("SPRAT01301","","","","","/root/send", "/root/target", "" );
  371. var flag = model.getValue("/root/temp/flag")
  372. if (flag == '2')
  373. {
  374. grd_reptspeclist.valueMatrix(sRow, grd_reptspeclist.colRef("inptdata")) = model.getValue("/root/temp/inptdata");
  375. var rowstatus = grd_reptspeclist.rowStatus(sRow);
  376. if (rowstatus != '1')
  377. {
  378. grd_reptspeclist.rowStatus(sRow) = 2;
  379. }
  380. }
  381. }
  382. }
  383. }
  384. ]]>
  385. </script>
  386. </xhtml:head>
  387. <xhtml:body guideline="1,1239;1,1330;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  388. <group id="grp_tle" style="left:0px; top:0px; width:1194px; height:13px; ">
  389. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">신고서 세부항목관리</caption>
  390. </group>
  391. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  392. <group id="grp_sea" style="left:5px; top:25px; width:1182px; height:50px; vertical-align:top; ">
  393. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:50px; background-color:#fffbf2; border-color:#ffd799; "/>
  394. <caption id="caption2" class="search_name" style="left:5px; top:16px; width:95px; height:17px; ">년 도 :</caption>
  395. <input id="ipt_yyyy" ref="/root/send/addtaxyy" class="input_s_essential" navindex="1" maxlength="4" style="left:95px; top:15px; width:75px; height:19px; text-align:center; ">
  396. <script type="javascript" ev:event="xforms-value-changed">
  397. <![CDATA[
  398. var yyyy = ipt_yyyy.value;
  399. // if (yyyy.size() == 4)
  400. // {
  401. // model.setValue("/root/main/send/yyyy", ipt_yyyy.value);
  402. // }
  403. // else
  404. // {
  405. // alert("년도가 잘못 입력되었습니다.");
  406. // }
  407. ]]>
  408. </script>
  409. </input>
  410. <caption id="caption9" class="search_name" style="left:195px; top:15px; width:106px; height:17px; ">신고 유형 :</caption>
  411. <select1 id="rdo_reptkind" ref="/root/send/addtaxpnt" class="radio_search" navindex="2" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:305px; top:15px; width:320px; height:20px; vertical-align:middle; border-style:none; ">
  412. <choices>
  413. <itemset nodeset="/root/init/init_reptkind/item">
  414. <label ref="label"/>
  415. <value ref="value"/>
  416. </itemset>
  417. </choices>
  418. <script type="javascript" ev:event="xforms-value-changed">
  419. <![CDATA[
  420. fSetDate();
  421. model.setValue("/root/send/seqno", "000");
  422. fSearch();
  423. ]]>
  424. </script>
  425. </select1>
  426. <caption id="caption10" class="search_name" style="left:645px; top:15px; width:86px; height:17px; ">거래기간 :</caption>
  427. <input id="ipt_frdate" ref="/root/send/frdate" class="input_s_essential" navindex="3" editable="false" inputtype="date" style="left:745px; top:15px; width:95px; height:19px; ">
  428. <script type="javascript" ev:event="xforms-value-changed">
  429. <![CDATA[
  430. ]]>
  431. </script>
  432. </input>
  433. <caption id="caption1" style="left:845px; top:14px; width:15px; height:25px; ">~</caption>
  434. <input id="ipt_todate" ref="/root/send/todate" class="input_s_essential" navindex="4" editable="false" inputtype="date" style="left:860px; top:15px; width:95px; height:19px; "/>
  435. <button id="button1" class="btn6_letter2" navindex="12" visibility="visible" style="left:1040px; top:14px; width:56px; height:22px; ">
  436. <caption>파일</caption>
  437. <script type="javascript" ev:event="DOMActivate">
  438. <![CDATA[
  439. var strInstcd = getUserInfo("dutplceinstcd") ;
  440. var addtaxyy = ipt_yyyy.value;
  441. var etcparam = 3; // 전자신고서 파일생성으로 셋팅
  442. var currDD = getCurrentDate().substr(4, 8);
  443. var strFilNm = addtaxyy+currDD;
  444. model.setValue("/root/send/instcd", strInstcd);
  445. model.setValue("/root/send/etcparam", etcparam);
  446. model.removeNodeset("/root/main/rex");
  447. model.reset("/root/main/rex/rexrow");
  448. model.refresh();
  449. var tmpflnm ;
  450. var flsize;
  451. submit("TRRAT01504");
  452. var tmpstr,tmpstr2;
  453. var rowcnt;
  454. var i;
  455. rowcnt = filegrid.rows;
  456. var fso, tf;
  457. strFilNm = "c:\\ersdata\\" + strFilNm + ".101";
  458. fso = new ActiveXObject("Scripting.FileSystemObject");
  459. tf = fso.CreateTextFile(strFilNm, true);
  460. for (i = 1; i <= rowcnt ; i++)
  461. {
  462. tmpstr = filegrid.valueMatrix(i, filegrid.colRef("dspdt")) ;
  463. tmpstr2 = tmpstr.split("*");
  464. //tmpstr2 = tmpstr;
  465. //tmpstr2 = tmpstr.substring(0,flsize);
  466. filegrid.valueMatrix(i, filegrid.colRef("dspdt")) = tmpstr2[0];
  467. tf.Write (tmpstr2[0]);
  468. //filegrid.valueMatrix(i, filegrid.colRef("filedata")) = tmpstr;
  469. }
  470. tf.Close();
  471. model.refresh();
  472. // var fileName = window.fileDialog("save", "," , false, strFilNm, "101", "*.*");
  473. // filegrid.saveText(fileName);
  474. ]]>
  475. </script>
  476. </button>
  477. <line id="line1" style="x1:1105px; y1:5px; x2:1105px; y2:45px; border-color:#ffe4bb; border-left-style:solid; "/>
  478. <button id="btn_search" class="btn1_letter2" style="left:1120px; top:14px; width:56px; height:22px; ">
  479. <caption>조회</caption>
  480. <script type="javascript" ev:event="DOMActivate">
  481. <![CDATA[
  482. fSearch();
  483. ]]>
  484. </script>
  485. </button>
  486. </group>
  487. <select1 id="rdo_chktype" ref="/root/init/chktype" class="combo_essential" appearance="minimal" style="left:495px; top:85px; width:140px; height:19px; vertical-align:middle; background-color:#fffbf2; border-color:#ffd799; border-style:none; ">
  488. <choices>
  489. <itemset nodeset="/root/init/chktype">
  490. <label ref="label"/>
  491. <value ref="value"/>
  492. </itemset>
  493. </choices>
  494. <script type="javascript" ev:event="xforms-value-changed">
  495. <![CDATA[
  496. fSearch();
  497. ]]>
  498. </script>
  499. </select1>
  500. <datagrid id="filegrid" nodeset="/root/main/rex/rexrow" visibility="hidden" caption="데이터" colsep="^" colwidth="730" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="30" rowsep="|" style="left:630px; top:105px; width:350px; height:10px; ">
  501. <col ref="dspdt" type="input" style="text-align:right; "/>
  502. </datagrid>
  503. <button id="btn_prev" class="btn2_letter2" style="left:1010px; top:85px; width:42px; height:19px; ">
  504. <caption>이전</caption>
  505. <script type="javascript" ev:event="DOMActivate">
  506. <![CDATA[
  507. // grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("reptid")) = ipt_reptid.value;
  508. // grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  509. // grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("speccd")) = model.getValue("/root/init/chktype");
  510. var seqno = grd_reptspeclist.valueMatrix(1, grd_reptspeclist.colRef("seqno"));
  511. model.setValue("/root/send/seqno", seqno);
  512. fSearchPrev();
  513. ]]>
  514. </script>
  515. </button>
  516. <button id="btn_next" class="btn2_letter2" style="left:1055px; top:85px; width:42px; height:19px; ">
  517. <caption>다음</caption>
  518. <script type="javascript" ev:event="DOMActivate">
  519. <![CDATA[
  520. // grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("reptid")) = ipt_reptid.value;
  521. // grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  522. // grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("speccd")) = model.getValue("/root/init/chktype");
  523. var seqno = grd_reptspeclist.valueMatrix(1, grd_reptspeclist.colRef("seqno"));
  524. model.setValue("/root/send/seqno", seqno);
  525. fSearch();
  526. ]]>
  527. </script>
  528. </button>
  529. <datagrid id="grd_reptlist" nodeset="/root/main/list/reptlist" class="datagrid2" caption="신고서ID^신고서명^항목구분^신고항목" colwidth="53, 269, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:6px; top:113px; width:345px; height:601px; ">
  530. <col ref="reptid" style="text-align:center; "/>
  531. <col ref="reptflagnm"/>
  532. <col ref="speccd"/>
  533. <col ref="reptitem" visibility="hidden"/>
  534. <script type="javascript" ev:event="onrowchanged">
  535. <![CDATA[
  536. model.dispatch("onmouseup");
  537. model.setValue("/root/send/seqno", "000");
  538. fSearch();
  539. fCellFormat();
  540. ]]>
  541. </script>
  542. </datagrid>
  543. <datagrid id="grd_reptspeclist" nodeset="/root/main/list/reptspeclist" class="datagrid2" caption="기관코드^신고서ID^신고서명^항목구분^신고항목^항목명^일련번호^신고년도^신고회차^Type^분류^길이^입력 데이터^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^Check^메뉴설명" colwidth="71, 73, 100, 64, 67, 289, 67, 76, 76, 61, 62, 55, 129, 97, 100, 100, 100, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" selectionmode="free" style="left:358px; top:113px; width:830px; height:600px; ">
  544. <col ref="instcd" visibility="hidden"/>
  545. <col ref="reptid" visibility="hidden" diabled="true"/>
  546. <col disabled="true" ref="reptflagnm" visibility="hidden"/>
  547. <col disabled="true" ref="speccd" visibility="hidden"/>
  548. <col disabled="true" ref="reptitem"/>
  549. <col disabled="true" ref="reptspecitem"/>
  550. <col ref="seqno" style="text-align:center; "/>
  551. <col ref="addtaxyy" visibility="hidden"/>
  552. <col ref="addtaxpnt" visibility="hidden"/>
  553. <col ref="reptspectype" visibility="hidden"/>
  554. <col disabled="true" ref="reptspeccls" style="text-align:center; "/>
  555. <col disabled="true" ref="reptspeclgth" style="text-align:center; "/>
  556. <col ref="inptdata" type="input"/>
  557. <col ref="fstrgstrid" visibility="hidden"/>
  558. <col ref="fstrgstdt" visibility="hidden"/>
  559. <col ref="lastupdtrid" visibility="hidden"/>
  560. <col ref="lastupdtdt" visibility="hidden"/>
  561. <col ref="chk" visibility="hidden"/>
  562. <script type="javascript" ev:event="onclick">
  563. <![CDATA[
  564. var pRow = grd_reptspeclist.row;
  565. var pReptID = grd_reptspeclist.valueMatrix(pRow, grd_reptspeclist.colRef("reptid"));
  566. var pReptitem = grd_reptspeclist.valueMatrix(pRow, grd_reptspeclist.colRef("reptitem"));
  567. var pReptSpecType = grd_reptspeclist.valueMatrix(pRow, grd_reptspeclist.colRef("reptspectype"));
  568. fCheckType(pRow, pReptID, pReptitem, pReptSpecType);
  569. ]]>
  570. </script>
  571. </datagrid>
  572. <caption id="caption3" class="tit_2" style="left:6px; top:90px; width:111px; height:14px; ">신고서 LIST</caption>
  573. <button id="btn_save_menuitem" class="btn5_letter2" style="left:1145px; top:85px; width:42px; height:19px; ">
  574. <caption>저장</caption>
  575. <script type="javascript" ev:event="DOMActivate">
  576. <![CDATA[
  577. fSetGrid();
  578. model.reset("/root/send/save/reptlist");
  579. model.setValue("/root/send/save/reptlist", grd_reptspeclist.getUpdateData());
  580. model.refresh();
  581. misfSave("TXRAT01501");
  582. model.makeNode("/root/temp/row");
  583. model.makeNode("/root/temp/inptdata");
  584. model.makeNode("/root/temp/flag");
  585. fSearch();
  586. ]]>
  587. </script>
  588. </button>
  589. <line id="line3" class="line_6" style="x1:0px; y1:19px; x2:1194px; y2:19px; "/>
  590. <line id="line2" class="line_1" style="x1:6px; y1:105px; x2:351px; y2:105px; "/>
  591. <line id="line4" class="line_1" style="x1:358px; y1:105px; x2:1187px; y2:105px; "/>
  592. <caption id="caption4" class="tit_2" style="left:358px; top:90px; width:118px; height:14px; ">신고서 내역 입력</caption>
  593. <button id="button2" class="btn2_letter2" style="left:1100px; top:85px; width:42px; height:19px; ">
  594. <caption>삭제</caption>
  595. <script type="javascript" ev:event="DOMActivate">
  596. <![CDATA[
  597. for (var i = 1; i <= grd_reptspeclist.rows; i++)
  598. {
  599. grd_reptspeclist.rowStatus(i) = 4;
  600. }
  601. ]]>
  602. </script>
  603. </button>
  604. </group>
  605. </xhtml:body>
  606. </xhtml:html>