SPPMC02700_산재개별과거이력조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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. <inducsbeflist>
  11. <beflist>
  12. <pid/>
  13. <hngnm/>
  14. <rrgstno/>
  15. <insukind/>
  16. <suppkind/>
  17. <mngtno/>
  18. <acddd/>
  19. <inducsbrchcd/>
  20. <bizplcergstseqno/>
  21. <ordopendd/>
  22. <ordtodd/>
  23. <chrgnm/>
  24. <endflag/>
  25. <inducsrem/>
  26. <lastupdtdt/>
  27. <lastupdtrid/>
  28. <seqno/>
  29. <histstat/>
  30. <endcnts/>
  31. <bizplceseqno/>
  32. </beflist>
  33. </inducsbeflist>
  34. </main>
  35. <send>
  36. <search>
  37. <pid/>
  38. <mngtno/>
  39. <acddd/>
  40. <inducsbrchcd/>
  41. </search>
  42. </send>
  43. <init>
  44. <P0028list>
  45. <P0028>
  46. <cdnm/>
  47. <cdid/>
  48. </P0028>
  49. </P0028list>
  50. <hidden>
  51. <suppkind>
  52. <up/>
  53. <nm/>
  54. <cd/>
  55. <ios/>
  56. </suppkind>
  57. <chosresn>
  58. <nm/>
  59. <cd/>
  60. </chosresn>
  61. <endcnts>
  62. <nm/>
  63. <cd/>
  64. </endcnts>
  65. <mtrtamtflag>
  66. <nm/>
  67. <cd/>
  68. </mtrtamtflag>
  69. <orddeptcd>
  70. <cd/>
  71. <nm/>
  72. <deptengabbr/>
  73. <io/>
  74. </orddeptcd>
  75. <orddrid>
  76. <cd/>
  77. <nm/>
  78. <dp/>
  79. <sp/>
  80. </orddrid>
  81. <specordyn>
  82. <item>
  83. <cd>Y</cd>
  84. <nm>Y</nm>
  85. </item>
  86. <item>
  87. <cd>N</cd>
  88. <nm>N</nm>
  89. </item>
  90. </specordyn>
  91. <insukind>
  92. <items>
  93. <cd>41</cd>
  94. <nm>산재</nm>
  95. </items>
  96. <items>
  97. <cd>42</cd>
  98. <nm>공상</nm>
  99. </items>
  100. </insukind>
  101. <bizplce>
  102. <nm/>
  103. <cd/>
  104. </bizplce>
  105. <indulist>
  106. <nm/>
  107. <cd/>
  108. </indulist>
  109. <profcd>
  110. <nm/>
  111. <cd/>
  112. </profcd>
  113. </hidden>
  114. </init>
  115. <hidden>
  116. </hidden>
  117. <tmp>
  118. </tmp>
  119. </root>
  120. </instance>
  121. <script type="javascript" ev:event="xforms-ready">
  122. <![CDATA[
  123. zbcfGetCodeList(new Array("P0028"), new Array("/root/init/P0028list"));
  124. if (checkOpener()){
  125. model.resetInstanceNode("/root/main/inducsbeflist/beflist");
  126. }else{
  127. //초기화
  128. fInitialize();
  129. }
  130. // 산재관련 기본정보조회
  131. submit("TRPMC02708");
  132. model.refresh();
  133. ]]>
  134. </script>
  135. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  136. <submission id="TRPMC02708" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instcd" resultref="/root/init/hidden"/>
  137. <submission id="TRPMC02710" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/inducsbeflist"/>
  138. </model>
  139. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  140. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  141. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  142. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  143. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  144. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  145. <script type="javascript">
  146. <![CDATA[
  147. function fInitialize(){
  148. model.resetInstanceNode("/root/main/inducsbeflist/beflist");
  149. model.resetInstanceNode("/root/send/search/pid");
  150. model.resetInstanceNode("/root/send/search/mngtno");
  151. model.resetInstanceNode("/root/send/search/acddd");
  152. model.resetInstanceNode("/root/send/search/inducsbrchcd");
  153. var curDate = getCurrentDate();
  154. model.setValue("/root/send/search/acddd", curDate);
  155. }
  156. function fSearch(){
  157. submit("TRPMC02710");
  158. model.refresh();
  159. }
  160. function fCopylist(row){
  161. var pid = model.getValue("/root/main/inducsbeflist/beflist[" + row + " ]/pid"); // 환자번호
  162. var rrgstno = model.getValue("/root/main/inducsbeflist/beflist[" + row + " ]/rrgstno"); // 주민번호
  163. var insukind = model.getValue("/root/main/inducsbeflist/beflist[" + row + " ]/insukind"); // 보험유형
  164. var suppkind = model.getValue("/root/main/inducsbeflist/beflist[" + row + " ]/suppkind"); // 보조유형
  165. var mngtno = model.getValue("/root/main/inducsbeflist/beflist[" + row + " ]/mngtno"); // 관리번호
  166. var inducsbrchcd = model.getValue("/root/main/inducsbeflist/beflist[" + row + " ]/inducsbrchcd"); // 산재지사
  167. var bizplcergstseqno = model.getValue("/root/main/inducsbeflist/beflist[" + row + " ]/bizplcergstseqno"); // 사업장
  168. if ( checkOpener() ) {
  169. if( row > 0 ){
  170. if( getNodesetCount("/root/main/inducsbeflist/beflist") > 0 ){
  171. //copyNodesetType("/root/main/vippatbaseinfo/vippatbaseinfolist", "/root/main/vippatappinfo/vippatappinfolist["+row+"]", "replace", opener.model, model);
  172. //opener.javascript.BaseInfoSet();
  173. //opener.model.makeNode("/root/main/popupendflag");
  174. opener.model.setValue("/root/main/icpminfo/insukind", insukind);
  175. opener.model.setValue("/root/main/icpminfo/suppkind", suppkind);
  176. opener.model.setValue("/root/main/icpminfo/mngtno", mngtno);
  177. opener.model.setValue("/root/main/icpminfo/inducsbrchcd", inducsbrchcd);
  178. opener.model.setValue("/root/main/icpminfo/bizplcergstseqno",bizplcergstseqno );
  179. var curDate = getCurrentDate();
  180. opener.model.setValue("/root/main/icpminfo/acddd", curDate);
  181. opener.model.refresh();
  182. }
  183. }
  184. } else {
  185. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  186. }
  187. }
  188. ]]>
  189. </script>
  190. </xhtml:head>
  191. <xhtml:body pagewidth="1030" pageheight="690" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  192. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1000px; height:645px; ">
  193. <group id="group2" style="left:0px; top:4px; width:1000px; height:39px; vertical-align:top; ">
  194. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1000px; height:37px; "/>
  195. <caption id="caption2" class="search_name" style="left:5px; top:10px; width:91px; height:17px; ">환자번호 :</caption>
  196. <line id="line13" class="line_4" style="x1:909px; y1:6px; x2:909px; y2:34px; "/>
  197. <button id="btn_patSearch" class="btn1_letter2" navindex="6" style="left:925px; top:8px; width:56px; height:22px; ">
  198. <caption>조회</caption>
  199. <script type="javascript" ev:event="DOMActivate">
  200. <![CDATA[
  201. var pid = model.getValue("/root/send/search/pid");
  202. var mngtno = model.getValue("/root/send/search/mngtno");
  203. var acddd = model.getValue("/root/send/search/acddd");
  204. var inducsbrchcd = model.getValue("/root/send/search/inducsbrchcd");
  205. if(pid == "" && mngtno == ""){
  206. messageBox("환자번호와 관리번호가 입력되지 않았습니다. \n\n조회시간이 길어질수있습니다. ","");
  207. }
  208. fSearch();
  209. ]]>
  210. </script>
  211. </button>
  212. <caption id="caption3" class="search_name" style="left:220px; top:10px; width:91px; height:17px; ">관리번호 :</caption>
  213. <caption id="caption4" class="search_name" style="left:430px; top:10px; width:91px; height:17px; ">사고일자 :</caption>
  214. <caption id="caption5" class="search_name" style="left:640px; top:10px; width:91px; height:17px; ">산재지사 :</caption>
  215. <input id="ipt_pid" ref="/root/send/search/pid" class="input_s_essential" maxlength="10" style="left:96px; top:9px; width:116px; height:19px; ">
  216. <script type="javascript" ev:event="onkeypress">
  217. <![CDATA[
  218. if(event.keyCode == "13") {
  219. setInputNodeCurText();
  220. model.refresh();
  221. }
  222. ]]>
  223. </script>
  224. </input>
  225. <input id="input9" ref="/root/send/search/mngtno" class="input_essential" format="999-99-99999-9" style="left:309px; top:9px; width:116px; height:19px; "/>
  226. <input id="input37" ref="/root/send/search/acddd" class="input_default" inputtype="date" style="left:519px; top:9px; width:116px; height:19px; "/>
  227. <select1 id="cmb_inducsbrchcd" ref="/root/send/search/inducsbrchcd" class="combo_default" appearance="minimal" editmode="search" itemcount="30" style="left:729px; top:8px; width:116px; height:19px; ">
  228. <choices>
  229. <itemset nodeset="/root/init/hidden/indulist">
  230. <label ref="nm"/>
  231. <value ref="cd"/>
  232. </itemset>
  233. </choices>
  234. </select1>
  235. </group>
  236. <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:133px; height:14px; ">과거이력리스트</caption>
  237. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1000px; y2:65px; "/>
  238. <datagrid id="grd_icpminfo" nodeset="/root/main/inducsbeflist/beflist" class="datagrid2" caption="환자번호^성명^주민번호^보험&#xA;유형^보조유형^관리번호^사고일자^산재지사^일련&#xA;번호^이력&#xA;상태^시업장^사업장&#xA;이력번호^사업장명^진료개시일자^진료종료일자^담당자명^종결&#xA;구분^종결사유^참고사항^최종수정일^최종수정자&#xA;번호^외래예약일^입원예약일" colsep="^" colwidth="67, 75, 93, 36, 63, 96, 87, 92, 41, 42, 135, 54, 55, 95, 102, 60, 34, 69, 302, 92, 81, 98, 100" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="byrowrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1000px; height:572px; ">
  239. <col disabled="true" ref="pid"/>
  240. <col disabled="true" ref="hngnm"/>
  241. <col disabled="true" ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  242. <col disabled="true" ref="insukind" type="combo" style="text-align:center; ">
  243. <choices>
  244. <item>
  245. <label>산재</label>
  246. <value>41</value>
  247. </item>
  248. </choices>
  249. </col>
  250. <col disabled="true" ref="suppkind" type="combo">
  251. <choices>
  252. <itemset nodeset="/root/init/hidden/suppkind">
  253. <label ref="nm"/>
  254. <value ref="cd"/>
  255. </itemset>
  256. </choices>
  257. </col>
  258. <col disabled="true" ref="mngtno" format="999-99-99999-9"/>
  259. <col disabled="true" ref="acddd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  260. <col disabled="true" ref="inducsbrchcd" type="combo">
  261. <choices>
  262. <itemset nodeset="/root/init/hidden/indulist">
  263. <label ref="nm"/>
  264. <value ref="cd"/>
  265. </itemset>
  266. </choices>
  267. </col>
  268. <col disabled="true" ref="seqno"/>
  269. <col disabled="true" ref="histstat" type="combo">
  270. <choices>
  271. <item>
  272. <label>취소</label>
  273. <value>C</value>
  274. </item>
  275. <item>
  276. <label>정상</label>
  277. <value>Y</value>
  278. </item>
  279. </choices>
  280. </col>
  281. <col disabled="true" ref="bizplcergstseqno" type="combo">
  282. <choices>
  283. <itemset nodeset="/root/init/hidden/bizplce">
  284. <label ref="nm"/>
  285. <value ref="cd"/>
  286. </itemset>
  287. </choices>
  288. </col>
  289. <col disabled="true" ref="bizplceseqno" visibility="hidden"/>
  290. <col disabled="true" ref="bizplcenm" visibility="hidden"/>
  291. <col disabled="true" ref="ordopendd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  292. <col disabled="true" ref="ordtodd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  293. <col disabled="true" ref="chrgnm"/>
  294. <col disabled="true" ref="endflag"/>
  295. <col disabled="true" ref="endcnts"/>
  296. <col disabled="true" ref="inducsrem" style="text-align:left; "/>
  297. <col disabled="true" ref="lastupdtdt" type="inputdate" style="text-align:center; "/>
  298. <col disabled="true" ref="lastupdtrid"/>
  299. <col disabled="true" ref="outorddd" type="inputdate"/>
  300. <col disabled="true" ref="inadrvdd" type="inputdate"/>
  301. <script type="javascript" ev:event="onaftersort">
  302. <![CDATA[
  303. //sorting 시 인스턴스 구조를 재구성
  304. grd_icpminfo.gridToInstance();
  305. ]]>
  306. </script>
  307. </datagrid>
  308. <button id="button19" class="btn2_letter4" style="left:934px; top:45px; width:64px; height:19px; ">
  309. <caption>복사사용</caption>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. var row = grd_icpminfo.row;
  313. if(row <= 0){
  314. messageBox("복사사용할 과거이력리스트를 선택하십시오.","");
  315. }else{
  316. fCopylist(row);
  317. }
  318. ]]>
  319. </script>
  320. </button>
  321. </group>
  322. <group id="group1" scroll="auto" style="left:0px; top:647px; width:1000px; height:24px; ">
  323. <button id="btn_confirm" class="btn4_letter2" navindex="7" style="left:881px; top:2px; width:56px; height:22px; ">
  324. <caption>확인</caption>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. if ( checkOpener() ) {
  328. row = grd_vippatappinfo.row;
  329. opener.model.makeNode("/root/main/popupendflag");
  330. opener.model.setValue("/root/main/popupendflag", "cancel");
  331. if( row > 0 ){
  332. if( getNodesetCount("/root/main/vippatbaseinfo/vippatbaseinfolist") > 0 ){
  333. /*
  334. //합번된 등록번호 메세지 처리
  335. var sPid = model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist[" + row + "]/pid");
  336. var sHngnm = model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist[" + row + "]/hngnm");
  337. var sBindPid = model.getValue("/root/main/vippatbaseinfo/vippatbaseinfolist[" + row + "]/bindpid");
  338. if( sBindPid != '' && sBindPid != '-' ){
  339. alert(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다.");
  340. return false;
  341. }
  342. */
  343. opener.model.copyNode("/root/main/vippatbaseinfo/vippatbaseinfolist", grd_vippatappinfo.getNode( row ));
  344. opener.model.makeNode("/root/main/popupendflag");
  345. opener.model.setValue("/root/main/popupendflag", "ok");
  346. }
  347. }else {
  348. messageBox("행이 정확히 선택되지", "E007");
  349. }
  350. } else {
  351. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  352. }
  353. opener.model.refresh();
  354. window.close();
  355. ]]>
  356. </script>
  357. </button>
  358. <button id="btn_cancel" class="btn4_letter2" navindex="8" style="left:938px; top:2px; width:56px; height:22px; ">
  359. <caption>취소</caption>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. opener.model.makeNode("/root/main/popupendflag");
  363. opener.model.setValue("/root/main/popupendflag", "cancel");
  364. window.close();
  365. ]]>
  366. </script>
  367. </button>
  368. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:999px; y2:0px; "/>
  369. <button id="button1" class="btn4_letter3" navindex="7" style="left:812px; top:2px; width:68px; height:22px; ">
  370. <caption>초기화</caption>
  371. <script type="javascript" ev:event="DOMActivate">
  372. <![CDATA[
  373. fInitialize();
  374. ]]>
  375. </script>
  376. </button>
  377. </group>
  378. </xhtml:body>
  379. </xhtml:html>