SMPMC01700_장애인환자관리.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  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. <result/>
  11. <handcappat>
  12. <handcappatlist/>
  13. </handcappat>
  14. </main>
  15. <send>
  16. <pid/>
  17. <update>
  18. <datalist/>
  19. </update>
  20. </send>
  21. <init>
  22. <P0307list>
  23. <P0307>
  24. <cdnm/>
  25. <cdid/>
  26. </P0307>
  27. </P0307list>
  28. <P0308list>
  29. <P0308>
  30. <cdnm/>
  31. <cdid/>
  32. </P0308>
  33. </P0308list>
  34. <P0016list>
  35. <P0016>
  36. <cdnm/>
  37. <cdid/>
  38. </P0016>
  39. </P0016list>
  40. <P6578list/>
  41. </init>
  42. <hidden/>
  43. </root>
  44. </instance>
  45. <submission id="TRPMC01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/handcappat"/>
  46. <submission id="TXPMC01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/update" resultref="/root/main/result"/>
  47. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  48. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. zbcfGetCodeList(
  52. new Array("P0307","P0308","P0016"),
  53. new Array("/root/init/P0307list","/root/init/P0308list","/root/init/P0016list")
  54. );
  55. // //2007.7.23 - 이동식 추가
  56. // //다른곳에서 화면 호출 조회
  57. // var pid = model.getValue("/root/source/pid");
  58. // if( pid != ""){
  59. // ipt_pid.currentText = pid;
  60. // fSearchPatInfo();
  61. // }
  62. //2015/09/14 이정택(과코드 체크하여 행추가, 행삭제, 장애인내역저장 버튼 히든 처리)
  63. pamfGetCodeList(new Array("P6578"), new Array("/root/init/P6578list"));
  64. var user_deptcd = getUserInfo("dutplcecd");
  65. var cnt = getNodesetCount("/root/init/P6578list/P6578[cdid='"+user_deptcd+"' and cdnm='Y']");
  66. if(cnt>0){
  67. button8.visible=true; //행추가
  68. button14.visible=true; //행삭제
  69. button16.visible=true; //장애인내역저장
  70. }else{
  71. button8.visible=false; //행추가
  72. button14.visible=false; //행삭제
  73. button16.visible=false; //장애인내역저장
  74. }
  75. //2015/09/14 이정택
  76. ]]>
  77. </script>
  78. </model>
  79. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  82. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  83. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  84. <script type="javascript">
  85. <![CDATA[
  86. //장애인환자내역 리스트 submission
  87. function fSearch(){
  88. // if( model.getValue("/root/main/popupendflag") == "ok" ){
  89. // model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  90. // submit("TRPMC01701");
  91. // var rowCnt = grd_handcappat.rows - grd_handcappat.fixedRows + 1;
  92. // var rowCnt=grd_handcappat.rows
  93. // alert(rowCnt);
  94. // if (rowCnt<3){
  95. // grd_handcappat.deleteItem(rowCnt-1)
  96. // model.removenode("/root/handcappat/handcappatlist");
  97. // }
  98. // }else model.refresh();
  99. if( model.getValue("/root/main/popupendflag") == "ok" ){
  100. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  101. /*
  102. if( pid.length < 6 ){
  103. messageBox("환자번호가 정확이 입력되지", "E007");
  104. return false;
  105. }
  106. */
  107. model.setValue("/root/send/pid", pid);
  108. submit("TRPMC01701");
  109. // var rowCnt = grd_handcappat.rows - grd_handcappat.fixedRows + 1;
  110. // if(rowCnt < 2){
  111. // fAddRow();
  112. // }
  113. // 차상위2종 장애인정보는 수정불가능하도록 제어 추가
  114. var cnt = getNodesetCount("/root/main/handcappat/handcappatlist");
  115. for (var i = 1; i <= cnt; i++) {
  116. if (model.getValue("/root/main/handcappat/handcappatlist[" + i + "]/gubun") == "1") {
  117. grd_handcappat.isReadOnly(i, 0, i, 17) = true;
  118. }
  119. }
  120. }
  121. model.refresh();
  122. }
  123. //장애인화자내역 그리드에 한 행을 추가하고 숨긴 컬럼 값을 세팅한다.
  124. function fAddRow(){
  125. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  126. var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  127. grd_handcappat.addRow();
  128. var bottom = grd_handcappat.bottomRow;
  129. model.setValue("/root/main/handcappat/handcappatlist[" + bottom + "]/pid" , pid);
  130. model.setValue("/root/main/handcappat/handcappatlist[" + bottom + "]/fromdd" , getCurrentDate());
  131. // 2015/07/15 행추가시 종료일자가 자동으로 2년이 설정되도록 수정
  132. // model.setValue("/root/main/handcappat/handcappatlist[" + bottom + "]/todd" , "99991231");
  133. model.setValue("/root/main/handcappat/handcappatlist[" + bottom + "]/todd" , getDateTime(getCurrentDate().toDate().getAddDate(-1, "D").getAddDate(2, "Y"), "D"));
  134. // 2015/07/15 행추가시 종료일자가 자동으로 2년이 설정되도록 수정
  135. model.setValue("/root/main/handcappat/handcappatlist[" + bottom + "]/apppsnnm" , hngnm);
  136. model.setValue("/root/main/handcappat/handcappatlist[" + bottom + "]/rela" , '1');
  137. model.setValue("/root/main/handcappat/handcappatlist[" + bottom + "]/bslvflag", 'N');
  138. return true;
  139. /*
  140. if( pid.length >= 5 ){
  141. grd_handcappat.addRow();
  142. var bottom = grd_handcappat.bottomRow;
  143. model.setValue("/root/main/handcappat/handcappatlist[" + bottom + "]/pid" , pid);
  144. return true;
  145. }
  146. else{
  147. messageBox("환자번호가 정확이 입력되지", "E007");
  148. return false;
  149. }
  150. */
  151. }
  152. ]]>
  153. </script>
  154. </xhtml:head>
  155. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  156. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  157. <caption id="caption6" class="tit_1" style="left:5px; top:0px; width:189px; height:13px; ">장애인환자관리</caption>
  158. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  159. </group>
  160. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  161. <line id="line5" class="line_2" style="x1:0px; y1:200px; x2:1194px; y2:200px; "/>
  162. <line id="line4" class="line_2" style="x1:0px; y1:176px; x2:1194px; y2:176px; "/>
  163. <line id="line3" class="line_2" style="x1:0px; y1:152px; x2:1194px; y2:152px; "/>
  164. <line id="line2" class="line_2" style="x1:0px; y1:128px; x2:1194px; y2:128px; "/>
  165. <line id="line6" class="line_2" style="x1:0px; y1:104px; x2:1194px; y2:104px; "/>
  166. <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:95px; height:13px; ">전표등록</caption>
  167. <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
  168. <caption id="caption7" class="cell_1" style="left:0px; top:76px; width:100px; height:23px; vertical-align:middle; ">약품코드</caption>
  169. <caption id="caption8" class="cell_1" style="left:428px; top:76px; width:100px; height:23px; vertical-align:middle; ">전표종류</caption>
  170. <button id="button12" class="btn2_letter4" style="left:1085px; top:50px; width:64px; height:19px; ">
  171. <caption>임시저장</caption>
  172. </button>
  173. <button id="button13" class="btn2_letter2" style="left:1152px; top:50px; width:42px; height:19px; ">
  174. <caption>삭제</caption>
  175. </button>
  176. <select1 id="radio1" appearance="full" overflow="visible" style="left:103px; top:79px; width:44px; height:16px; border-style:none; ">
  177. <choices>
  178. <item>
  179. <label>대체</label>
  180. <value>radio1</value>
  181. </item>
  182. </choices>
  183. </select1>
  184. <select1 id="radio2" appearance="full" overflow="visible" style="left:203px; top:79px; width:44px; height:16px; border-style:none; ">
  185. <choices>
  186. <item>
  187. <label>입금</label>
  188. <value>radio1</value>
  189. </item>
  190. </choices>
  191. </select1>
  192. <select1 id="radio3" appearance="full" overflow="visible" style="left:303px; top:79px; width:44px; height:16px; border-style:none; ">
  193. <choices>
  194. <item>
  195. <label>출금</label>
  196. <value>radio1</value>
  197. </item>
  198. </choices>
  199. </select1>
  200. <select1 id="combo1" class="combo_default" appearance="minimal" style="left:531px; top:77px; width:322px; height:19px; ">
  201. <choices>
  202. <item>
  203. <label>combo1</label>
  204. <value>combo1</value>
  205. </item>
  206. </choices>
  207. </select1>
  208. <caption id="caption3" class="cell_1" style="left:0px; top:100px; width:100px; height:23px; vertical-align:middle; ">사용부서</caption>
  209. <caption id="caption5" class="cell_1" style="left:428px; top:100px; width:100px; height:23px; vertical-align:middle; ">작성자</caption>
  210. <input id="input1" class="input_essential" style="left:103px; top:101px; width:100px; height:19px; "/>
  211. <button id="button2" class="icon_search" style="left:206px; top:102px; width:16px; height:16px; ">
  212. <caption/>
  213. </button>
  214. <input id="input2" class="input_default" appearance="input" style="left:225px; top:101px; width:200px; height:19px; "/>
  215. <button id="button3" class="icon_search" style="left:634px; top:102px; width:16px; height:16px; ">
  216. <caption/>
  217. </button>
  218. <input id="input3" class="input_essential" style="left:531px; top:101px; width:100px; height:19px; "/>
  219. <input id="input4" class="input_default" appearance="input" style="left:653px; top:101px; width:200px; height:19px; "/>
  220. <select1 id="radio4" appearance="full" overflow="visible" style="left:103px; top:127px; width:44px; height:16px; border-style:none; ">
  221. <choices>
  222. <item>
  223. <label>차변</label>
  224. <value>radio1</value>
  225. </item>
  226. </choices>
  227. </select1>
  228. <select1 id="radio5" appearance="full" overflow="visible" style="left:203px; top:127px; width:44px; height:16px; border-style:none; ">
  229. <choices>
  230. <item>
  231. <label>대변</label>
  232. <value>radio1</value>
  233. </item>
  234. </choices>
  235. </select1>
  236. <caption id="caption9" class="cell_1" style="left:0px; top:124px; width:100px; height:23px; vertical-align:middle; ">차대구분</caption>
  237. <caption id="caption10" class="cell_1" style="left:428px; top:124px; width:100px; height:23px; vertical-align:middle; ">계정코드</caption>
  238. <button id="button6" class="icon_search" style="left:634px; top:126px; width:16px; height:16px; ">
  239. <caption/>
  240. </button>
  241. <input id="input5" class="input_essential" style="left:531px; top:125px; width:100px; height:19px; "/>
  242. <input id="input6" class="input_default" appearance="input" style="left:653px; top:125px; width:200px; height:19px; "/>
  243. <button id="button7" class="icon_search" style="left:408px; top:150px; width:16px; height:16px; ">
  244. <caption/>
  245. </button>
  246. <caption id="caption11" class="cell_1" style="left:0px; top:148px; width:100px; height:23px; vertical-align:middle; ">상대처구분</caption>
  247. <input id="input7" class="input_essential" style="left:256px; top:149px; width:149px; height:19px; "/>
  248. <input id="input8" class="input_default" appearance="input" style="left:427px; top:149px; width:426px; height:19px; "/>
  249. <caption id="caption12" class="cell_1" style="left:856px; top:124px; width:100px; height:23px; vertical-align:middle; "/>
  250. <caption id="caption13" class="cell_1" style="left:856px; top:100px; width:100px; height:23px; vertical-align:middle; "/>
  251. <caption id="caption14" class="cell_1" style="left:856px; top:76px; width:100px; height:23px; vertical-align:middle; ">금액</caption>
  252. <input id="input9" class="input_default" appearance="input" style="left:959px; top:101px; width:235px; height:19px; "/>
  253. <input id="input10" class="input_default" appearance="input" style="left:959px; top:77px; width:235px; height:19px; "/>
  254. <input id="input11" class="input_default" appearance="input" style="left:959px; top:125px; width:235px; height:19px; "/>
  255. <select1 id="combo2" class="combo_essential" appearance="minimal" style="left:103px; top:149px; width:150px; height:19px; ">
  256. <choices>
  257. <item>
  258. <label>combo1</label>
  259. <value>combo1</value>
  260. </item>
  261. </choices>
  262. </select1>
  263. <caption id="caption15" class="cell_1" style="left:856px; top:148px; width:100px; height:23px; vertical-align:middle; "/>
  264. <input id="input12" class="input_default" appearance="input" style="left:103px; top:173px; width:321px; height:19px; "/>
  265. <caption id="caption16" class="cell_1" style="left:0px; top:172px; width:100px; height:23px; vertical-align:middle; ">적요</caption>
  266. <caption id="caption17" class="cell_1" style="left:856px; top:172px; width:100px; height:23px; vertical-align:middle; ">증빙구분</caption>
  267. <input id="input13" class="input_default" appearance="input" style="left:959px; top:149px; width:235px; height:19px; "/>
  268. <button id="button15" class="icon_search" style="left:634px; top:174px; width:16px; height:16px; ">
  269. <caption/>
  270. </button>
  271. <caption id="caption18" class="cell_1" style="left:428px; top:172px; width:100px; height:23px; vertical-align:middle; ">계좌번호</caption>
  272. <input id="input15" class="input_default" style="left:531px; top:173px; width:100px; height:19px; "/>
  273. <input id="input16" class="input_default" appearance="input" style="left:653px; top:173px; width:200px; height:19px; "/>
  274. <caption id="caption19" class="cell_1" style="left:0px; top:196px; width:100px; height:47px; vertical-align:middle; ">기재사항</caption>
  275. <textarea id="textarea1" style="left:103px; top:197px; width:750px; height:43px; "/>
  276. <caption id="caption20" class="tit_2" style="left:5px; top:254px; width:100px; height:13px; ">전표 등록내역</caption>
  277. <line id="line8" class="line_1" style="x1:0px; y1:269px; x2:1194px; y2:269px; "/>
  278. <input id="output3" class="input_default" inputtype="date" appearance="input" style="left:959px; top:221px; width:235px; height:19px; "/>
  279. <datagrid id="datagrid1" caption="연번^계정명^상대처^기재사항1^기재사항2^기재사항3^기재사항4^적요^증빙^차변금액^대변금액" colsep="^" colwidth="48, 100, 100, 100, 100, 100, 100, 100, 100, 100, 154" dataheight="25" defaultrows="17" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:274px; width:1194px; height:425px; ">
  280. <col/>
  281. <col/>
  282. <col/>
  283. <col/>
  284. <col/>
  285. <col/>
  286. <col/>
  287. <col/>
  288. <col/>
  289. <col/>
  290. <col/>
  291. </datagrid>
  292. <select1 id="combo3" class="combo_default" appearance="minimal" style="left:959px; top:173px; width:235px; height:19px; ">
  293. <choices>
  294. <item>
  295. <label>combo1</label>
  296. <value>combo1</value>
  297. </item>
  298. </choices>
  299. </select1>
  300. <input id="input14" class="input_default" appearance="input" style="left:958px; top:705px; width:116px; height:19px; "/>
  301. <caption id="caption24" class="cell_1" style="left:855px; top:704px; width:100px; height:23px; vertical-align:middle; ">금액합계</caption>
  302. <line id="line9" class="line_3" style="x1:855px; y1:726px; x2:1194px; y2:726px; "/>
  303. <line id="line10" class="line_3" style="x1:855px; y1:702px; x2:1194px; y2:702px; "/>
  304. <output id="input17" class="output_fix" appearance="output" style="left:1077px; top:705px; width:117px; height:19px; "/>
  305. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:702px; width:305px; height:30px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
  306. <caption id="caption25" class="cell_2" style="left:5px; top:707px; width:70px; height:20px; vertical-align:middle; ">범 례</caption>
  307. <caption id="caption26" class="color_1" style="left:95px; top:709px; width:15px; height:15px; vertical-align:middle; "/>
  308. <caption id="caption27" style="left:113px; top:710px; width:50px; height:14px; vertical-align:middle; ">차대구분</caption>
  309. <caption id="caption30" class="color_3" style="left:180px; top:708px; width:15px; height:15px; vertical-align:middle; "/>
  310. <caption id="caption31" style="left:198px; top:709px; width:26px; height:14px; vertical-align:middle; ">차변</caption>
  311. <caption id="caption32" class="color_4" style="left:245px; top:708px; width:15px; height:15px; vertical-align:middle; "/>
  312. <caption id="caption33" style="left:263px; top:709px; width:26px; height:14px; vertical-align:middle; ">대변</caption>
  313. <line id="line11" class="line_2" style="x1:856px; y1:224px; x2:1194px; y2:224px; "/>
  314. <caption id="caption29" class="cell_1" style="left:856px; top:220px; width:100px; height:23px; vertical-align:middle; ">전표승인일자</caption>
  315. <line id="line7" class="line_3" style="x1:0px; y1:242px; x2:1194px; y2:242px; "/>
  316. <caption id="caption28" class="cell_1" style="left:856px; top:196px; width:100px; height:23px; vertical-align:middle; ">승인정보</caption>
  317. <output id="output4" class="output_fix" style="left:959px; top:197px; width:235px; height:19px; "/>
  318. </group>
  319. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  320. <group id="group6" style="left:0px; top:200px; width:1195px; height:544px; ">
  321. <datagrid id="grd_handcappat" nodeset="/root/main/handcappat/handcappatlist" visibility="visible" autoresize="true" caption="구분^취득일자^종료일자^장애구분^장애급수^관계^신청자명^장애인카드번호^참고사항^최초등록정보^최초등록정보^최종수정일시^최종수정일시^기초생활수급^순번^환자등록번호^old장애구분^old종료일자^신청자명^관계" colsep="^" colwidth="83, 90, 90, 80, 80, 60, 70, 120, 220, 120, 60, 120, 60, 80, 46, 100, 100, 100" dataheight="25" defaultrows="2" mergecellsfixedrows="byrowrec" rowheader="update" rowheight="25" rowsep="|" style="left:1px; top:30px; width:1194px; height:508px; ">
  322. <col disabled="true" ref="gubun" type="combo" visibility="hidden" style="text-align:center; ">
  323. <choices>
  324. <item>
  325. <label>차상위</label>
  326. <value>1</value>
  327. </item>
  328. <item>
  329. <label>급여</label>
  330. <value>2</value>
  331. </item>
  332. <item>
  333. <label>기타</label>
  334. <value>3</value>
  335. </item>
  336. </choices>
  337. </col>
  338. <col ref="fromdd" type="inputdate" style="text-align:center; "/>
  339. <col ref="todd" type="inputdate" style="text-align:center; "/>
  340. <col ref="handcapflag" type="combo" style="text-align:center; ">
  341. <choices>
  342. <itemset nodeset="/root/init/P0307list/P0307">
  343. <label ref="cdnm"/>
  344. <value ref="cdid"/>
  345. </itemset>
  346. </choices>
  347. </col>
  348. <col ref="handcapgrde" type="combo" style="text-align:center; ">
  349. <choices>
  350. <itemset nodeset="/root/init/P0308list/P0308">
  351. <label ref="cdnm"/>
  352. <value ref="cdid"/>
  353. </itemset>
  354. </choices>
  355. </col>
  356. <col ref="rela" type="combo" style="text-align:center; ">
  357. <choices>
  358. <itemset nodeset="/root/init/P0016list/P0016">
  359. <label ref="cdnm"/>
  360. <value ref="cdid"/>
  361. </itemset>
  362. </choices>
  363. </col>
  364. <col ref="apppsnnm" type="input" style="text-align:center; "/>
  365. <col ref="handcapcardno" type="input"/>
  366. <col imemode="hangul" ref="remfact" type="input"/>
  367. <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  368. <col ref="fstrgstrnm" visibility="hidden" style="text-align:center; "/>
  369. <col ref="lastupdtdt" format="yyyy-mm-dd-hh:nn:ss" style="left:941px; top:23px; width:150px; height:23px; text-align:center; "/>
  370. <col ref="lastupdtrnm" style="left:1091px; top:23px; width:100px; height:23px; text-align:center; "/>
  371. <col ref="bslvflag" type="combo" style="text-align:center; ">
  372. <choices>
  373. <item>
  374. <label>예</label>
  375. <value>Y</value>
  376. </item>
  377. <item>
  378. <label>아니오</label>
  379. <value>N</value>
  380. </item>
  381. </choices>
  382. </col>
  383. <col ref="seqno" visibility="hidden"/>
  384. <col ref="pid" visibility="hidden"/>
  385. <col ref="oldhandcapflag" visibility="hidden"/>
  386. <col ref="oldtodd" visibility="hidden"/>
  387. <script type="javascript" ev:event="xforms-select">
  388. <![CDATA[
  389. var curRow=grd_handcappat.row;
  390. var curCol=grd_handcappat.col;
  391. if( curCol == grd_handcappat.colRef("rela") ){
  392. var strValue=grd_handcappat.textmatrix(curRow,curCol);
  393. if (strValue=="1" )
  394. {
  395. var varhngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  396. grd_handcappat.textmatrix(curRow,curCol+1)=varhngnm;
  397. }else
  398. {
  399. grd_handcappat.textmatrix(curRow,curCol+1)="";
  400. }
  401. }
  402. ]]>
  403. </script>
  404. <script type="javascript" ev:event="onentercell">
  405. <![CDATA[
  406. // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
  407. if (grd_handcappat.colType(grd_handcappat.col) == "input") {
  408. grd_handcappat.editCell();
  409. }
  410. ]]>
  411. </script>
  412. </datagrid>
  413. <caption id="caption46" class="tit_2" style="left:5px; top:10px; width:152px; height:14px; ">장애인환자내역 리스트</caption>
  414. <line id="line18" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  415. <button id="button8" class="btn2_letter3" style="left:984px; top:5px; width:53px; height:19px; ">
  416. <caption>행추가</caption>
  417. <script type="javascript" ev:event="DOMActivate">
  418. <![CDATA[
  419. fAddRow();
  420. ]]>
  421. </script>
  422. </button>
  423. <button id="button14" class="btn5_letter3" style="left:1040px; top:5px; width:53px; height:19px; ">
  424. <caption>행삭제</caption>
  425. <script type="javascript" ev:event="DOMActivate">
  426. <![CDATA[
  427. if(messageBox("선택한 장애인 내역을", "Q001") != 6) return;
  428. var cur_row = grd_handcappat.row;
  429. if( cur_row > 0 ){
  430. //디비에 저장되지 않은 데이타는 그냥 삭제한다.
  431. if (grd_handcappat.rowStatus(cur_row) == "1" || grd_handcappat.rowStatus(cur_row) == "3" ){
  432. grd_handcappat.deleteItem(cur_row);
  433. model.refresh();
  434. return;
  435. }
  436. // 차상위2종 장애인의 경우 삭제불가
  437. if (model.getValue("/root/main/handcappat/handcappatlist[" + cur_row + "]/gubun") == "1") {
  438. messageBox("차상위2종 장애인정보는 삭제할 수 없습니다.", "E999");
  439. return;
  440. }
  441. grd_handcappat.addStatus( cur_row, "delete");
  442. model.setValue("/root/send/update/datalist", grd_handcappat.getUpdateData("delete"));
  443. if ( submit("TXPMC01702") ) {
  444. grd_handcappat.deleteItem( cur_row );
  445. grd_handcappat.rebuild();
  446. }else grd_handcappat.removeStatus( cur_row, "delete");
  447. model.refresh();
  448. }
  449. ]]>
  450. </script>
  451. </button>
  452. <button id="button16" class="btn5_letter7" style="left:1095px; top:5px; width:97px; height:19px; ">
  453. <caption>장애인내역저장</caption>
  454. <script type="javascript" ev:event="DOMActivate">
  455. <![CDATA[
  456. model.setValue("/root/send/update/datalist",grd_handcappat.getUpdateData());
  457. if ( submit("TXPMC01702") ) {
  458. // grd_handcappat.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  459. // model.refresh();
  460. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  461. model.setValue("/root/send/pid", pid);
  462. submit("TRPMC01701");
  463. }
  464. ]]>
  465. </script>
  466. </button>
  467. <caption id="caption2" style="left:180px; top:9px; width:760px; height:20px; color:#ff0000; ">* 2015년 10월 1일자로 차상위2종 / 의료급여2종에 대한 장애인여부만 자격조회를 통해 조회가능합니다. 세부내용 장애인 등록증 확인 필요!!!</caption>
  468. </group>
  469. <import id="import1" src="../../../pam/patinfomngtweb/xrw/SSPMC00100_인적사항.xrw" style="left:0px; top:0px; width:1195px; height:199px; "/>
  470. </group>
  471. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  472. <button id="button10" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  473. <caption>초기화</caption>
  474. <script type="javascript" ev:event="DOMActivate">
  475. <![CDATA[
  476. model.resetInstanceNode("/root/main/handcappat/handcappatlist");
  477. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  478. model.setFocus("ipt_pid");
  479. model.refresh();
  480. ]]>
  481. </script>
  482. </button>
  483. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  484. </group>
  485. </xhtml:body>
  486. </xhtml:html>