SPRAD00134_근로소득자료관리.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  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. <orchlist>
  12. <instcd/>
  13. <seqno/>
  14. <detlseqno/>
  15. <chrgflag/>
  16. <emplno/>
  17. <name/>
  18. <entrregno/>
  19. <rrgstno/>
  20. <custnm/>
  21. <zipcd/>
  22. <zipcd1/>
  23. <zipcd2/>
  24. <zipcdseqno/>
  25. <supaddr/>
  26. <infaddr/>
  27. <induflag/>
  28. <incmflag/>
  29. <dayno/>
  30. <dypay/>
  31. <paytotamt/>
  32. <taxrate/>
  33. <incmtax/>
  34. <resdntax/>
  35. <cmt/>
  36. </orchlist>
  37. <orch>
  38. <instcd/>
  39. <seqno/>
  40. <chrgflag/>
  41. <unsldd/>
  42. <unslno/>
  43. <undeciseqno/>
  44. <paydd/>
  45. <status/>
  46. </orch>
  47. </list>
  48. <orch_one>
  49. <instcd/>
  50. <seqno/>
  51. <detlseqno/>
  52. <chrgflag/>
  53. <emplno/>
  54. <name/>
  55. <entrregno/>
  56. <rrgstno/>
  57. <custnm/>
  58. <zipcd/>
  59. <zipcd1/>
  60. <zipcd2/>
  61. <zipcdseqno/>
  62. <supaddr/>
  63. <infaddr/>
  64. <induflag/>
  65. <incmflag/>
  66. <dayno/>
  67. <dypay/>
  68. <paytotamt/>
  69. <taxrate/>
  70. <incmtax/>
  71. <resdntax/>
  72. <cmt/>
  73. </orch_one>
  74. </main>
  75. <send>
  76. <retrparams>
  77. <instcd/>
  78. <seqno/>
  79. <chrgflag/>
  80. <detlseqno/>
  81. </retrparams>
  82. <list>
  83. <orchlist/>
  84. <orch/>
  85. </list>
  86. </send>
  87. <hidden>
  88. <incmpsn/>
  89. <totamt/>
  90. <maxdetlseqno>0000</maxdetlseqno>
  91. <orch_one>
  92. <instcd/>
  93. <seqno/>
  94. <detlseqno/>
  95. <chrgflag/>
  96. <emplno/>
  97. <name/>
  98. <entrregno/>
  99. <rrgstno/>
  100. <custnm/>
  101. <zipcd/>
  102. <zipcd1/>
  103. <zipcd2/>
  104. <zipcdseqno/>
  105. <supaddr/>
  106. <infaddr/>
  107. <induflag/>
  108. <incmflag/>
  109. <dayno/>
  110. <dypay/>
  111. <paytotamt/>
  112. <taxrate/>
  113. <incmtax/>
  114. <resdntax/>
  115. <cmt/>
  116. </orch_one>
  117. <orchreturn>
  118. <amt/>
  119. <etcnotefact/>
  120. <incmtax/>
  121. <resdntax/>
  122. </orchreturn>
  123. </hidden>
  124. <init>
  125. </init>
  126. <temp>
  127. <seqno>
  128. <seqno/>
  129. </seqno>
  130. </temp>
  131. <target/>
  132. </root>
  133. </instance>
  134. <submission id="TRRAD00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  135. <script type="javascript" ev:event="xforms-ready">
  136. <![CDATA[
  137. fInitialize();
  138. ]]>
  139. </script>
  140. <submission id="TXRAD00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list" resultref="/root/temp"/>
  141. <bind id="bind_amt" ref="/root/hidden/orchreturn/amt" calculate="sum(/root/main/list/orchlist/paytotamt)"/>
  142. </model>
  143. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  144. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  145. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  146. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  147. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  148. <script type="javascript">
  149. <![CDATA[
  150. function fInitialize()
  151. {
  152. model.removenode("/root/main/list/orchlist");
  153. var instcd = getUserInfo("dutplceinstcd");
  154. if (model.getValue("/root/target/slipinfo/profflag") == "8")
  155. {
  156. document.title = "비과세 근로소득자료관리";
  157. cpt_title.text = "비과세 근로소득자료관리";
  158. }
  159. if (model.getValue("/root/target/slipinfo/seqno") != "")
  160. {
  161. model.setValue("/root/send/retrparams/instcd", model.getValue("/root/target/slipinfo/instcd"));
  162. model.setValue("/root/send/retrparams/seqno", model.getValue("/root/target/slipinfo/seqno"));
  163. model.setValue("/root/send/retrparams/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
  164. model.refresh();
  165. fSearch();
  166. if(grd_orchlist.rows > 1)
  167. {
  168. grd_orchlist.row = grd_orchlist.rows -1;
  169. fGridRowClick();
  170. }
  171. }
  172. else
  173. {
  174. model.setValue("/root/main/list/orch/instcd", model.getValue("/root/target/slipinfo/instcd"));
  175. model.setValue("/root/main/list/orch/instcd", model.getValue("/root/target/slipinfo/instcd"));
  176. model.setValue("/root/main/list/orch/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
  177. model.setValue("/root/main/list/orch/unslno", model.getValue("/root/target/slipinfo/unslno"));
  178. model.setValue("/root/main/list/orch/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
  179. model.setValue("/root/main/list/orch/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
  180. model.setValue("/root/main/orch_one/instcd", model.getValue("/root/target/slipinfo/instcd"));
  181. model.setValue("/root/main/orch_one/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
  182. model.setValue("/root/main/orch_one/detlseqno", "0001");
  183. model.setValue("/root/hidden/maxdetlseqno", "0000");
  184. model.setValue("/root/main/list/orch/status", "i");
  185. model.setValue("/root/main/orch_one/emplno", model.getValue("/root/target/slipinfo/emplno"));
  186. ipt_emplno.refresh();
  187. ipt_emplno.dispatch("xforms-value-changed");
  188. model.makeValue("/root/main/orch_one/cmt", model.getValue("/root/target/slipinfo/cmt"));
  189. }
  190. model.refresh();
  191. if (model.getValue("/root/target/slipinfo/readonly") == "Y")
  192. {
  193. btn_grdadd.disabled = true;
  194. btn_save.disabled = true;
  195. btn_delete.disabled = true;
  196. }
  197. model.setFocus("ipt_name");
  198. }
  199. function fSearch() {
  200. submit("TRRAD00105");
  201. if(instance1.selectNodes("/root/main/list/orchlist").length == 0)
  202. {
  203. model.makeValue("/root/main/list/orch/instcd", model.getValue("/root/target/slipinfo/instcd"));
  204. model.makeValue("/root/main/list/orch/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
  205. model.makeValue("/root/main/list/orch/unslno", model.getValue("/root/target/slipinfo/unslno"));
  206. model.makeValue("/root/main/list/orch/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
  207. model.makeValue("/root/main/list/orch/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
  208. model.makeValue("/root/main/list/orch/status", "i");
  209. model.setValue("/root/main/orch_one/instcd", model.getValue("/root/target/slipinfo/instcd"));
  210. model.setValue("/root/main/orch_one/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
  211. model.setValue("/root/main/orch_one/detlseqno", "0001");
  212. model.setValue("/root/hidden/maxdetlseqno", "0000");
  213. }
  214. else
  215. {
  216. var rowCnt = grd_orchlist.rows - 1;
  217. model.setValue("/root/hidden/maxdetlseqno",model.getValue("/root/main/list/orchlist["+ rowCnt +"]/detlseqno"));
  218. model.setValue("/root/main/list/orch/status", "u");
  219. fIncreSeqno("/root/main/orch_one/detlseqno");
  220. model.setValue("/root/main/orch_one/instcd", model.getValue("/root/main/list/orch/instcd"));
  221. model.setValue("/root/main/orch_one/seqno", model.getValue("/root/main/list/orch/seqno"));
  222. model.setValue("/root/main/orch_one/chrgflag", model.getValue("/root/main/list/orch/chrgflag"));
  223. }
  224. model.refresh();
  225. }
  226. function fSave()
  227. {
  228. var updtdata = getGridUpdateData(grd_orchlist);
  229. if (updtdata == "")
  230. {
  231. messageBox("변경된 데이터가","I004");
  232. return;
  233. }
  234. model.setValue("/root/send/list/orchlist", grd_orchlist.getUpdateData());
  235. model.copyNode("/root/send/list/orch", "/root/main/list/orch");
  236. if (submit("TXRAD00105"))
  237. {
  238. model.setValue("/root/send/list/orchlist","");
  239. if (model.getValue("/root/temp/seqno/seqno") != "")
  240. {
  241. model.setValue("/root/send/retrparams/instcd", model.getValue("/root/main/list/orch/instcd"));
  242. model.setValue("/root/send/retrparams/seqno", model.getValue("/root/temp/seqno/seqno"));
  243. model.setValue("/root/send/retrparams/chrgflag", model.getValue("/root/main/list/orch/chrgflag"));
  244. model.refresh();
  245. fSearch();
  246. }
  247. else
  248. {
  249. model.removeNodeset("/root/main/list/orchlist");
  250. model.setValue("/root/main/list/orch/instcd", model.getValue("/root/target/slipinfo/instcd"));
  251. model.setValue("/root/main/list/orch/seqno", "");
  252. model.setValue("/root/main/list/orch/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
  253. model.setValue("/root/main/list/orch/unslno", model.getValue("/root/target/slipinfo/unslno"));
  254. model.setValue("/root/main/list/orch/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
  255. model.setValue("/root/main/list/orch/chrgflag", model.getValue("/root/target/slipinfo/profflag"));
  256. model.setValue("/root/main/list/orch/status", "i");
  257. model.setValue("/root/hidden/maxdetlseqno", "0000");
  258. fRowClearClick();
  259. }
  260. var rowcnt = grd_orchlist.rows - 1;
  261. if (rowcnt > 0) {
  262. if (rowcnt > 1) {
  263. var cmt = model.getValue("/root/main/list/orchlist[1]/cmt") + " (" + model.getValue("/root/main/list/orchlist[1]/name") + " 외 " + (rowcnt - 1) + "명)";
  264. model.setValue("/root/hidden/orchreturn/etcnotefact", cmt);
  265. } else {
  266. model.setValue("/root/hidden/orchreturn/etcnotefact", model.getValue("/root/main/list/orchlist[1]/cmt"));
  267. }
  268. } else {
  269. model.setValue("/root/hidden/orchreturn/etcnotefact", "");
  270. }
  271. model.refresh();
  272. var receiveref = model.getValue("/root/target/receiveref");
  273. if (checkOpener())
  274. {
  275. opener.model.setValue(receiveref + "/seqno", model.getValue("/root/temp/seqno/seqno"));
  276. opener.model.setValue(receiveref + "/amt", model.getValue("/root/hidden/orchreturn/amt"));
  277. opener.model.setValue(receiveref + "/etcnotefact", model.getValue("/root/hidden/orchreturn/etcnotefact"));
  278. opener.model.setValue(receiveref + "/incmtax", model.getValue("/root/hidden/orchreturn/incmtax"));
  279. opener.model.setValue(receiveref + "/resdntax", model.getValue("/root/hidden/orchreturn/resdntax"));
  280. messageBox("저장이 " ,"I002");
  281. }
  282. else
  283. {
  284. messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  285. }
  286. }
  287. model.setFocus("ipt_name");
  288. btn_close.dispatch("DOMActivate");
  289. }
  290. function fDelete()
  291. {
  292. if (messageBox("내역을","Q001") == "6")
  293. {
  294. var rowCnt = grd_orchlist.rows;
  295. for (i=1; i<rowCnt; i++)
  296. {
  297. grd_orchlist.addStatus(i,"delete");
  298. }
  299. model.setValue("/root/main/list/orch/status","d");
  300. model.refresh();
  301. fSave();
  302. }
  303. }
  304. //========================================================================================
  305. //not null check
  306. //========================================================================================
  307. function fNotNullCheck() {
  308. if(model.getValue("/root/main/orch_one/emplno").length== 0)
  309. {
  310. messageBox("사원번호는" ,"I003");
  311. model.setFocus("ipt_emplno");
  312. return false;
  313. }
  314. if(model.getValue("/root/main/orch_one/name").length== 0 )
  315. {
  316. messageBox("성명은" ,"I003");
  317. model.setFocus("ipt_name");
  318. return false;
  319. }
  320. if(model.getValue("/root/main/orch_one/paytotamt").length== 0 )
  321. {
  322. messageBox("지급액은" ,"I003");
  323. model.setFocus("ipt_paytotamt");
  324. return false;
  325. }
  326. }
  327. function fGridRowAddClick() {
  328. var detlseq = model.getValue("/root/main/orch_one/detlseqno");
  329. var detlseqno = model.getValue("/root/main/list/orchlist[detlseqno='"+ detlseq +"']/detlseqno");
  330. var cur_row = grd_orchlist.row;
  331. if(fNotNullCheck() == false) {
  332. return;
  333. }
  334. if (detlseqno == "") {
  335. grd_orchlist.addRow(false);
  336. } else {
  337. grd_orchlist.addStatus(cur_row,"update");
  338. }
  339. model.copyNode("/root/main/list/orchlist["+grd_orchlist.row+"]","/root/main/orch_one");
  340. var maxdetlseqno = model.getValue("/root/hidden/maxdetlseqno");
  341. if (parseInt(maxdetlseqno,10) < parseInt(detlseq,10)) {
  342. model.setValue("/root/hidden/maxdetlseqno", detlseq);
  343. }
  344. fRowClearClick(); //행정리
  345. }
  346. function fGridRowDelClick()
  347. {
  348. grd_orchlist.row = grd_orchlist.rows - 1;
  349. var rowstat;
  350. var i, j=0;
  351. grd_orchlist.addStatus(grd_orchlist.row, "delete");
  352. for (i=1; i<grd_orchlist.rows; i++)
  353. {
  354. rowstat = parseInt(grd_orchlist.rowStatus(i),10);
  355. if (rowstat >= 4)
  356. {
  357. j++;
  358. }
  359. }
  360. if (j == grd_orchlist.rows - 1)
  361. {
  362. model.setValue("/root/main/list/orch/status","d");
  363. }
  364. else
  365. {
  366. model.setValue("/root/main/list/orch/status","u");
  367. }
  368. model.refresh();
  369. fRowClearClick();
  370. }
  371. function fGridRowClick()
  372. {
  373. var cur_row = grd_orchlist.row;
  374. model.removenode("/root/main/orch_one");
  375. model.makeNode("/root/main/orch_one");
  376. model.copyNode("/root/main/orch_one","/root/main/list/orchlist["+cur_row+"]");
  377. model.recalculate();
  378. model.refresh();
  379. btn_grddel.disabled = false;
  380. model.setFocus("ipt_paytotamt");
  381. }
  382. function fRowClearClick() {
  383. var cmt = model.getValue("/root/main/orch_one/cmt");
  384. model.removenode("/root/main/orch_one");
  385. model.makeNode("/root/main/orch_one");
  386. model.copyNode("/root/main/orch_one","/root/hidden/orch_one");
  387. fIncreSeqno("/root/main/orch_one/detlseqno");
  388. model.setValue("/root/main/orch_one/instcd", model.getValue("/root/main/list/orch/instcd"));
  389. model.setValue("/root/main/orch_one/seqno", model.getValue("/root/main/list/orch/seqno"));
  390. model.setValue("/root/main/orch_one/chrgflag", model.getValue("/root/main/list/orch/chrgflag"));
  391. model.setValue("/root/main/orch_one/cmt", cmt);
  392. model.recalculate();
  393. model.refresh();
  394. btn_grddel.disabled = true;
  395. model.setFocus("ipt_name");
  396. }
  397. //========================================================================================
  398. //행번 증가
  399. //========================================================================================
  400. function fIncreSeqno(pRef) {
  401. var detlseqno = model.getValue("/root/hidden/maxdetlseqno");
  402. var seqno = parseInt(detlseqno, 10);
  403. seqno++;
  404. model.setValue(pRef, seqno.toString().getLeftPad(4,"0"));
  405. }
  406. ]]>
  407. </script>
  408. </xhtml:head>
  409. <xhtml:body pagewidth="470" pageheight="170" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  410. <group id="group1" style="left:0px; top:0px; width:455px; height:13px; ">
  411. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">근로소득자료관리</caption>
  412. </group>
  413. <group id="group2" scroll="auto" style="left:0px; top:12px; width:455px; height:117px; ">
  414. <line id="line3" class="line_2" style="x1:0px; y1:38px; x2:455px; y2:38px; "/>
  415. <line id="line9" class="line_3" style="x1:0px; y1:112px; x2:455px; y2:112px; "/>
  416. <caption id="caption47" class="cell_1" style="left:0px; top:14px; width:100px; height:23px; vertical-align:middle; ">사원번호</caption>
  417. <line id="line2" class="line_1" style="x1:0px; y1:9px; x2:455px; y2:9px; "/>
  418. <caption id="caption7" class="cell_1" style="left:0px; top:89px; width:100px; height:23px; vertical-align:middle; ">비고</caption>
  419. <caption id="caption10" class="cell_1" style="left:0px; top:64px; width:100px; height:23px; vertical-align:middle; ">지급액</caption>
  420. <caption id="caption13" class="cell_1" visibility="hidden" style="left:0px; top:39px; width:100px; height:23px; vertical-align:middle; ">지급일자</caption>
  421. <input id="ipt_paytotamt" ref="/root/main/orch_one/paytotamt" class="input_s_essential" navindex="2" format="(-)#,###" style="left:103px; top:67px; width:150px; height:19px; text-align:right; ">
  422. <script type="javascript" ev:event="onkeypress">
  423. <![CDATA[
  424. if (event.keyCode == "13") {
  425. model.setFocus("ipt_cmt");
  426. }
  427. ]]>
  428. </script>
  429. </input>
  430. <input id="ipt_cmt" ref="/root/main/orch_one/cmt" class="input_default" navindex="3" style="left:103px; top:91px; width:347px; height:19px; ">
  431. <script type="javascript" ev:event="onkeypress">
  432. <![CDATA[
  433. if (event.keyCode == "13") {
  434. model.setFocus("btn_grdadd");
  435. }
  436. ]]>
  437. </script>
  438. </input>
  439. <line id="line10" class="line_2" style="x1:0px; y1:63px; x2:455px; y2:63px; "/>
  440. <input id="ipt_paydd" ref="/root/main/list/orch/paydd" class="input_default" disabled="true" navindex="-1" visibility="hidden" style="left:103px; top:42px; width:171px; height:19px; text-align:center; "/>
  441. <datagrid id="grd_orchlist" nodeset="/root/main/list/orchlist" visibility="hidden" caption="기관코드^일련번호^세부일련번호^징수구분^사원번호^주민등록번호^성명^사업자등록번호^상호^일용근로일수^일용근로일급^지급액^세율^소득세^주민세^비고^우편번호^우편번호1^우편번호2^우편번호일련번호^주소^상세주소^업종구분^소득구분" colwidth="0, 0, 0, 0, 97, 0, 91, 0, 0, 0, 0, 106, 0, 0, 0, 449, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" extendlastcol="scroll" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:400px; top:60px; width:30px; height:30px; ">
  442. <col ref="instcd" visibility="hidden"/>
  443. <col ref="seqno" visibility="hidden"/>
  444. <col ref="detlseqno" visibility="hidden"/>
  445. <col ref="chrgflag" visibility="hidden"/>
  446. <col ref="emplno"/>
  447. <col ref="rrgstno" visibility="hidden" format="999999-9999999"/>
  448. <col ref="name"/>
  449. <col ref="entrregno" visibility="hidden" format="999-99-99999"/>
  450. <col ref="custnm" visibility="hidden"/>
  451. <col ref="dayno" visibility="hidden"/>
  452. <col ref="dypay" visibility="hidden"/>
  453. <col ref="paytotamt" format="(-)#,###" style="text-align:right; "/>
  454. <col ref="taxrate" visibility="hidden"/>
  455. <col ref="incmtax" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  456. <col ref="resdntax" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  457. <col ref="cmt"/>
  458. <col ref="zipcd" visibility="hidden"/>
  459. <col ref="zipcd1" visibility="hidden"/>
  460. <col ref="zipcd2" visibility="hidden"/>
  461. <col ref="zipcdseqno" visibility="hidden"/>
  462. <col ref="supaddr" visibility="hidden"/>
  463. <col ref="infaddr" visibility="hidden"/>
  464. <col disabled="true" ref="induflag" type="combo" visibility="hidden">
  465. <choices>
  466. <itemset nodeset="/root/init/R0278list/R0278">
  467. <label ref="cdnm"/>
  468. <value ref="cdid"/>
  469. </itemset>
  470. </choices>
  471. </col>
  472. <col ref="incmflag" type="combo" visibility="hidden">
  473. <choices>
  474. <itemset nodeset="/root/init/R0279list/R0279">
  475. <label ref="cdnm"/>
  476. <value ref="cdid"/>
  477. </itemset>
  478. </choices>
  479. </col>
  480. <script type="javascript" ev:event="onclick">
  481. <![CDATA[
  482. if(grd_orchlist.isCell(event.target) && grd_orchlist.row >= grd_orchlist.fixedRows)
  483. {
  484. fGridRowClick();
  485. }
  486. ]]>
  487. </script>
  488. <script type="javascript" ev:event="onrowchanged">
  489. <![CDATA[
  490. fGridRowClick();
  491. ]]>
  492. </script>
  493. </datagrid>
  494. <input id="input1" ref="/root/main/list/orch/instcd" class="input_s_essential" visibility="hidden" style="left:263px; top:65px; width:20px; height:19px; "/>
  495. <input id="input2" ref="/root/main/list/orch/seqno" class="input_s_essential" visibility="hidden" style="left:282px; top:65px; width:20px; height:19px; "/>
  496. <input id="input3" ref="/root/main/list/orch/chrgflag" class="input_s_essential" visibility="hidden" style="left:301px; top:65px; width:20px; height:19px; "/>
  497. <input id="input4" ref="/root/main/list/orch/unsldd" class="input_s_essential" visibility="hidden" style="left:320px; top:65px; width:20px; height:19px; "/>
  498. <input id="input5" ref="/root/main/list/orch/unslno" class="input_s_essential" visibility="hidden" style="left:339px; top:65px; width:20px; height:19px; "/>
  499. <input id="input6" ref="/root/main/list/orch/undeciseqno" class="input_s_essential" visibility="hidden" style="left:358px; top:65px; width:20px; height:19px; "/>
  500. <input id="ipt_taxrate" ref="/root/main/orch_one/taxrate" class="input_default" navindex="-1" visibility="hidden" maxlength="10" format="(-)#,###%" style="left:377px; top:65px; width:19px; height:19px; text-align:right; "/>
  501. <button id="btn_grddel" class="btn2_letter3" disabled="true" navindex="-1" visibility="hidden" style="left:340px; top:40px; width:53px; height:19px; ">
  502. <caption>행삭제</caption>
  503. <script type="javascript" ev:event="DOMActivate">
  504. <![CDATA[
  505. fGridRowDelClick();
  506. ]]>
  507. </script>
  508. </button>
  509. <button id="btn_grdadd" class="btn2_letter3" visibility="hidden" style="left:285px; top:40px; width:53px; height:19px; ">
  510. <caption>행추가</caption>
  511. <script type="javascript" ev:event="DOMActivate">
  512. <![CDATA[
  513. fGridRowAddClick();
  514. ]]>
  515. </script>
  516. </button>
  517. <output id="output1" ref="/root/hidden/orchreturn/amt" navindex="-1" visibility="hidden" format="(-)#,###" style="left:435px; top:65px; width:9px; height:19px; text-align:right; "/>
  518. <input id="ipt_name" ref="/root/main/orch_one/name" class="input_essential" navindex="1" style="left:225px; top:16px; width:225px; height:19px; ">
  519. <script type="javascript" ev:event="onkeypress">
  520. <![CDATA[
  521. if(event.keyCode == 13)
  522. {
  523. model.setFocus("ipt_paytotamt");
  524. }
  525. ]]>
  526. </script>
  527. <script type="javascript" ev:event="xforms-value-changed">
  528. <![CDATA[
  529. misfValidationCheck("49", "", "emplno,name","","","name","");
  530. model.refresh();
  531. ]]>
  532. </script>
  533. </input>
  534. <button id="btn_userhelp" class="icon_search" navindex="-1" style="left:205px; top:17px; width:16px; height:16px; ">
  535. <caption/>
  536. <script type="javascript" ev:event="DOMActivate">
  537. <![CDATA[
  538. misfOpenPopUpList("49", ipt_paytotamt, "", "emplno,name");
  539. model.refresh();
  540. ]]>
  541. </script>
  542. </button>
  543. <input id="ipt_emplno" ref="/root/main/orch_one/emplno" class="input_essential" style="left:103px; top:16px; width:97px; height:19px; ">
  544. <script type="javascript" ev:event="onkeypress">
  545. <![CDATA[
  546. if(event.keyCode == 13)
  547. {
  548. model.setFocus("ipt_paytotamt");
  549. }
  550. ]]>
  551. </script>
  552. <script type="javascript" ev:event="xforms-value-changed">
  553. <![CDATA[
  554. misfValidationCheck("49", "", "emplno,name", "", "", "code","");
  555. model.refresh();
  556. ]]>
  557. </script>
  558. </input>
  559. <line id="line4" class="line_2" style="x1:0px; y1:88px; x2:455px; y2:88px; "/>
  560. </group>
  561. <group id="grp_btn" scroll="auto" style="left:0px; top:130px; width:455px; height:27px; ">
  562. <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:455px; y2:0px; "/>
  563. <button id="btn_save" class="btn4_letter2" style="left:282px; top:3px; width:56px; height:22px; ">
  564. <caption>저장</caption>
  565. <script type="javascript" ev:event="onkeypress">
  566. <![CDATA[
  567. if (event.keyCode == "13")
  568. {
  569. fGridRowAddClick();
  570. fSave();
  571. model.setFocus("btn_close");
  572. }
  573. ]]>
  574. </script>
  575. <script type="javascript" ev:event="onclick">
  576. <![CDATA[
  577. fGridRowAddClick();
  578. fSave();
  579. ]]>
  580. </script>
  581. </button>
  582. <button id="btn_delete" class="btn4_letter2" navindex="-1" style="left:340px; top:3px; width:56px; height:22px; ">
  583. <caption>삭제</caption>
  584. <script type="javascript" ev:event="DOMActivate">
  585. <![CDATA[
  586. fDelete();
  587. ]]>
  588. </script>
  589. </button>
  590. <button id="btn_close" class="btn4_letter2" navindex="4" style="left:398px; top:3px; width:56px; height:22px; ">
  591. <caption>닫기</caption>
  592. <script type="javascript" ev:event="DOMActivate">
  593. <![CDATA[
  594. // var receiveref = model.getValue("/root/target/receiveref");
  595. // if (checkOpener())
  596. // {
  597. // opener.model.setValue(receiveref + "/seqno", model.getValue("/root/main/list/orch/seqno"));
  598. // opener.model.setValue(receiveref + "/amt", model.getValue("/root/hidden/orchreturn/amt"));
  599. // }
  600. // else
  601. // {
  602. // messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  603. // }
  604. window.close();
  605. ]]>
  606. </script>
  607. </button>
  608. </group>
  609. </xhtml:body>
  610. </xhtml:html>