SPRAC00901_소득자HELP.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  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. <incmpsnlist/>
  12. </list>
  13. <staffinfo>
  14. <staffinfolist>
  15. <name/>
  16. <staffgb/>
  17. <staffdd/>
  18. </staffinfolist>
  19. </staffinfo>
  20. </main>
  21. <init>
  22. <refcond>
  23. <label>소득자명</label>
  24. <value>name</value>
  25. <label>주민등록번호</label>
  26. <value>code</value>
  27. </refcond>
  28. <R0282list>
  29. <R0282>
  30. <cdnm/>
  31. <cdid/>
  32. </R0282>
  33. </R0282list>
  34. <R0278list>
  35. <R0278>
  36. <cdnm/>
  37. <cdid/>
  38. </R0278>
  39. </R0278list>
  40. <R0279list>
  41. <R0279>
  42. <cdnm/>
  43. <cdid/>
  44. </R0279>
  45. </R0279list>
  46. <R0001list>
  47. <R0001>
  48. <cdnm/>
  49. <cdid/>
  50. </R0001>
  51. </R0001list>
  52. </init>
  53. <send>
  54. <retrnm/>
  55. <refcond/>
  56. <groupid/>
  57. <rrgstno/>
  58. </send>
  59. <target/>
  60. </root>
  61. </instance>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. fInit();
  65. ]]>
  66. </script>
  67. <script type="javascript">
  68. <![CDATA[
  69. function fInit()
  70. {
  71. // 2011.09.26 cyw 해당실무자만이 메뉴접근 가능하도록 수정.
  72. misfComboComCdList("030R0018",cmb_gruptype);
  73. var cnt = getNodesetCount("/root/init/cmb_gruptype/comcodelist");
  74. var chk = 0;
  75. for(var i = 1; i <= cnt; i++ ){
  76. if( model.getValue("/root/init/cmb_gruptype/comcodelist[" + i + "]/cdid") == getUserId() ){
  77. chk++;
  78. }
  79. }
  80. if( chk > 0 ){
  81. group3.disabled = false;
  82. }else{
  83. group3.disabled = true;
  84. messageBox("해당 화면에 권한이 없습니다.", "C000");
  85. }
  86. zbcfGetCodeList(new Array("R0282","R0278","R0279","R0001"), new Array("/root/init/R0282list","/root/init/R0278list","/root/init/R0279list","/root/init/R0001list"));
  87. rdo_refcond.select(0);
  88. model.removeNode("/root/main/list/incmpsnlist");
  89. misfMsterDetailSet(grd_incmpsnlist, null, "TRRAC90901", "N");
  90. if(model.getValue("/root/target/defaultvalue/name") != "" && model.getValue("/root/target/defaultvalue/name") != null)
  91. {
  92. model.setValue("/root/send/retrnm", model.getValue("/root/target/defaultvalue/name"));
  93. model.setValue("/root/send/refcond", "name");
  94. misfMsterDetailRetrieve();
  95. }
  96. else if(model.getValue("/root/target/defaultvalue/code") != "" && model.getValue("/root/target/defaultvalue/code") != null)
  97. {
  98. model.setValue("/root/send/retrnm", model.getValue("/root/target/defaultvalue/code"));
  99. model.setValue("/root/send/refcond", "code");
  100. misfMsterDetailRetrieve();
  101. }
  102. else
  103. {
  104. model.copyNode("/root/main/list","/root/target/validation");
  105. model.refresh();
  106. }
  107. model.setFocus("ipt_refcond");
  108. model.refresh();
  109. }
  110. function fOpenPopupZipHelp(pControl, pInstance)
  111. {
  112. //04 우편번호 Helper
  113. misfOpenPopUpList("04", pControl, "", pInstance);
  114. var sZipcd = model.getValue("/root/main/list/incmpsnlist [" + grd_incmpsnlist.row + "]/zipcd1") + '-' + model.getValue("/root/main/list/incmpsnlist [" + grd_incmpsnlist.row + "]/zipcd2");
  115. model.setValue("/root/main/list/incmpsnlist [" + grd_incmpsnlist.row + "]/zipcd", sZipcd);
  116. model.refresh();
  117. }
  118. ]]>
  119. </script>
  120. <submission id="TRRAC90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  121. <submission id="TRRAC90902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/staffinfo"/>
  122. <submission id="TXRAC90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/incmpsnlist" resultref="/root/hidden"/>
  123. </model>
  124. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  125. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  127. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  128. </xhtml:head>
  129. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  130. <group id="group3" scroll="auto" style="left:8px; top:0px; width:1185px; height:670px; ">
  131. <group id="group2" style="left:0px; top:5px; width:1185px; height:35px; ">
  132. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1185px; height:35px; "/>
  133. <input id="ipt_refcond" ref="/root/send/retrnm" class="input_s_essential" style="left:360px; top:8px; width:148px; height:19px; ">
  134. <script type="javascript" ev:event="onkeypress">
  135. <![CDATA[
  136. if(event.keyCode == 13)
  137. {
  138. ipt_refcond.value = ipt_refcond.currentText;
  139. btn_search.dispatch("DOMActivate");
  140. }
  141. ]]>
  142. </script>
  143. <script type="javascript" ev:event="xforms-value-changed">
  144. <![CDATA[
  145. if(ipt_refcond.value != "")
  146. {
  147. btn_search.dispatch("DOMActivate");
  148. }
  149. ]]>
  150. </script>
  151. </input>
  152. <button id="btn_search" class="btn1_letter2" style="left:1114px; top:7px; width:56px; height:22px; ">
  153. <caption>조회</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. misfMsterDetailRetrieve();
  157. if(instance1.selectNodes("/root/main/list/incmpsnlist").length == 0)
  158. {
  159. messageBox("조회된 내용이", "I004");
  160. }
  161. ]]>
  162. </script>
  163. </button>
  164. <line id="line13" class="line_4" style="x1:1029px; y1:5px; x2:1029px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  165. <caption id="caption2" class="search_name" style="left:274px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
  166. <caption id="caption3" class="search_name" style="left:15; top:9px; width:86px; height:17px; ">조회조건 :</caption>
  167. <select1 id="rdo_refcond" ref="/root/send/refcond" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:100px; top:8px; width:148px; height:20px; border-style:solid; ">
  168. <choices>
  169. <itemset nodeset="/root/init/refcond">
  170. <label ref="label"/>
  171. <value ref="value"/>
  172. </itemset>
  173. </choices>
  174. <script type="javascript" ev:event="xforms-select">
  175. <![CDATA[
  176. model.setFocus("ipt_refcond");
  177. ]]>
  178. </script>
  179. </select1>
  180. <button id="btn_save" class="btn4_letter2" style="left:1047px; top:7px; width:56px; height:22px; ">
  181. <caption>저장</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. var updtdata = getGridUpdateData(grd_incmpsnlist);
  185. model.makeValue("/root/send/savedata/incmpsnlist", updtdata);
  186. submit("TXRAC90901");
  187. misfMsterDetailRetrieve();
  188. ]]>
  189. </script>
  190. </button>
  191. </group>
  192. <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:145px; height:14px; ">소득자리스트</caption>
  193. <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:1184; y2:64px; "/>
  194. <datagrid id="grd_incmpsnlist" nodeset="/root/main/list/incmpsnlist" caption="주민등록번호^성명^직원여부^일자^내외국인구분^거주자구분^거주지국^소득자구분^업종구분^소득구분^사업자등록번호^상호^우편번호^^^^주소^상세주소^전화번호^이메일주소^여권번호^계좌번호^은행코드^예금주^비고" colsep="^" colwidth="110, 70, 55, 76, 70, 70, 90, 70, 90, 71, 106, 112, 75, 0, 0, 0, 170, 120, 90, 120, 110, 151, 120, 106, 180" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:69px; width:1185px; height:576px; ">
  195. <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
  196. <col ref="name" type="input" style="text-align:center; "/>
  197. <col ref="staffgb" style="text-align:center; "/>
  198. <col ref="staffdd" format="yyyy-mm-dd" style="text-align:center; "/>
  199. <col ref="ionatiflag" type="combo" style="text-align:center; ">
  200. <choices>
  201. <item>
  202. <label>내국인</label>
  203. <value>1</value>
  204. </item>
  205. <item>
  206. <label>외국인</label>
  207. <value>9</value>
  208. </item>
  209. </choices>
  210. </col>
  211. <col ref="residentflag" type="combo" style="text-align:center; ">
  212. <choices>
  213. <item>
  214. <label>거주자</label>
  215. <value>1</value>
  216. </item>
  217. <item>
  218. <label>비거주자</label>
  219. <value>2</value>
  220. </item>
  221. </choices>
  222. </col>
  223. <col ref="residncnati" type="combo" style="text-align:center; ">
  224. <choices>
  225. <itemset nodeset="/root/init/R0282list/R0282">
  226. <label ref="cdnm"/>
  227. <value ref="cdid"/>
  228. </itemset>
  229. </choices>
  230. </col>
  231. <col ref="incmpsnflag" type="combo" style="text-align:center; ">
  232. <choices>
  233. <item>
  234. <label>사업자</label>
  235. <value>1</value>
  236. </item>
  237. <item>
  238. <label>개인</label>
  239. <value>2</value>
  240. </item>
  241. </choices>
  242. </col>
  243. <col ref="induflag" type="combo" style="text-align:center; ">
  244. <choices>
  245. <itemset nodeset="/root/init/R0278list/R0278">
  246. <label ref="cdnm"/>
  247. <value ref="cdid"/>
  248. </itemset>
  249. </choices>
  250. </col>
  251. <col ref="incmflag" type="combo" style="text-align:center; ">
  252. <choices>
  253. <itemset nodeset="/root/init/R0279list/R0279">
  254. <label ref="cdnm"/>
  255. <value ref="cdid"/>
  256. </itemset>
  257. </choices>
  258. </col>
  259. <col ref="entrregno" type="input" format="999-99-99999" style="text-align:center; "/>
  260. <col ref="custnm" type="input" style="text-align:center; "/>
  261. <col ref="zipcd" type="inputbutton" style="text-align:center; "/>
  262. <col ref="zipcd1" type="input" visibility="hidden"/>
  263. <col ref="zipcd2" type="input" visibility="hidden"/>
  264. <col ref="zipcdseqno" type="input" visibility="hidden"/>
  265. <col ref="supaddr" type="input" style="text-align:left; "/>
  266. <col ref="infaddr" type="input" style="text-align:left; "/>
  267. <col ref="cntctel" type="input" style="text-align:center; "/>
  268. <col ref="emailaddr" type="input" style="text-align:center; "/>
  269. <col ref="passportno" type="input" style="text-align:center; "/>
  270. <col ref="aactno" type="input" style="text-align:center; "/>
  271. <col ref="bankcd" type="combo" style="text-align:center; ">
  272. <choices>
  273. <itemset nodeset="/root/init/R0001list/R0001">
  274. <label ref="cdnm"/>
  275. <value ref="cdid"/>
  276. </itemset>
  277. </choices>
  278. </col>
  279. <col ref="depor" type="input" style="text-align:center; "/>
  280. <col ref="cmt" type="input" style="text-align:left; "/>
  281. <script type="javascript" ev:event="onbuttonclick">
  282. <![CDATA[
  283. if(grd_incmpsnlist.col == grd_incmpsnlist.colRef("zipcd")) {
  284. fOpenPopupZipHelp(grd_incmpsnlist,"zipcd1,zipcd2,supaddr,zipcdseqno");
  285. }
  286. ]]>
  287. </script>
  288. <script type="javascript" ev:event="xforms-value-changed">
  289. <![CDATA[
  290. if(grd_incmpsnlist.col == grd_incmpsnlist.colRef("rrgstno") ) {
  291. model.setValue("/root/send/rrgstno", model.getValue("/root/main/list/incmpsnlist[" + grd_incmpsnlist.row + "]/rrgstno"));
  292. if(submit("TRRAC90902")) {
  293. //입력한 주민번호가 재직자이면 팝업 show, 퇴직자이면 직원여부와 퇴직일자 put
  294. var staffgb = model.getValue("/root/main/staffinfo/staffinfolist/staffgb");
  295. if(staffgb == "재직") {
  296. grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("name")) = model.getValue("/root/main/staffinfo/staffinfolist/name");
  297. grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffgb")) = staffgb;
  298. grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffdd")) = model.getValue("/root/main/staffinfo/staffinfolist/staffdd");
  299. messageBox("병원직원 입니다. 총무팀에 확인하시기 바랍니다.", "C000");
  300. } else if(staffgb == "퇴직") {
  301. grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("name")) = model.getValue("/root/main/staffinfo/staffinfolist/name");
  302. grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffgb")) = staffgb;
  303. grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffdd")) = model.getValue("/root/main/staffinfo/staffinfolist/staffdd");
  304. } else { //if(staffgb == "")
  305. grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("name")) = "";
  306. grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffgb")) = "일반";
  307. grd_incmpsnlist.valueMatrix(grd_incmpsnlist.row, grd_incmpsnlist.colRef("staffdd")) = "";
  308. }
  309. }
  310. }
  311. ]]>
  312. </script>
  313. </datagrid>
  314. <button id="btn_openpsn" class="btn2_letter5" visibility="hidden" style="left:979px; top:44px; width:75px; height:19px; ">
  315. <caption>소득자등록</caption>
  316. <script type="javascript" ev:event="DOMActivate">
  317. <![CDATA[
  318. modal("SPRAC00611");
  319. ]]>
  320. </script>
  321. </button>
  322. <button id="btn_addrow" class="btn2_letter3" visibility="visible" style="left:1057px; top:44px; width:53px; height:19px; text-align:left; ">
  323. <caption>행추가</caption>
  324. <script type="javascript" ev:event="DOMActivate">
  325. <![CDATA[
  326. misfGridIUD(grd_incmpsnlist, "A");
  327. ]]>
  328. </script>
  329. </button>
  330. <button id="btn_delrow" class="btn2_letter3" visibility="visible" style="left:1114px; top:44px; width:53px; height:19px; text-align:left; ">
  331. <caption>행삭제</caption>
  332. <script type="javascript" ev:event="DOMActivate">
  333. <![CDATA[
  334. // var iLength = grd_etcproflist.selectedCells.length;
  335. var iLength = grd_incmpsnlist.selectedRows;
  336. for(var i=0; i<iLength; i++)
  337. {
  338. var iRowIdx = grd_incmpsnlist.selectedCells.item(i).row;
  339. if(grd_incmpsnlist.rowStatus(iRowIdx) == 4)
  340. {
  341. grd_incmpsnlist.rowStatus(iRowIdx) = 0;
  342. }
  343. else if(grd_incmpsnlist.rowStatus(iRowIdx) == 1 && grd_incmpsnlist.rowStatus(iRowIdx) == 3)
  344. {
  345. grd_incmpsnlist.deleteRow(iRowIdx, false);
  346. }
  347. else
  348. {
  349. grd_incmpsnlist.addStatus(iRowIdx, "delete");
  350. }
  351. }
  352. ]]>
  353. </script>
  354. </button>
  355. <select1 id="cmb_gruptype" ref="/root/send/groupid" class="combo_s_essential" navindex="-1" visibility="hidden" appearance="minimal" style="left:150px; top:45px; width:66px; height:19px; ">
  356. <choices>
  357. <itemset nodeset="/root/init/cmb_gruptype/comcodelist">
  358. <label ref="cdnm"/>
  359. <value ref="cdid"/>
  360. </itemset>
  361. </choices>
  362. </select1>
  363. <caption id="caption4" style="left:5px; top:650px; width:942px; height:20px; ">※ 직원여부(재직/퇴직/일반) 와 일자(임용일/퇴직일/등록일) 는 현재시점 시스템 상의 직원정보이며, 과거 특정시점의 정보로 사용하기에는 불충분합니다.</caption>
  364. </group>
  365. <group id="group1" scroll="auto" style="left:8px; top:679px; width:1185px; height:27px; ">
  366. <button id="btn_confirm" class="btn4_letter2" visibility="hidden" style="left:1062px; top:5px; width:56px; height:22px; ">
  367. <caption>확인</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. misfPopUpListReturn(grd_incmpsnlist);
  371. //SMRAT00500_기타소득소득자별연간집계표.xrw
  372. ]]>
  373. </script>
  374. </button>
  375. <button id="btn_cancel" class="btn4_letter2" visibility="hidden" style="left:1119px; top:5px; width:56px; height:22px; ">
  376. <caption>취소</caption>
  377. <script type="javascript" ev:event="DOMActivate">
  378. <![CDATA[
  379. window.close();
  380. ]]>
  381. </script>
  382. </button>
  383. <line id="line32" class="line_6" visibility="hidden" style="x1:0px; y1:0px; x2:950; y2:0px; "/>
  384. </group>
  385. </xhtml:body>
  386. </xhtml:html>