SMMND01200_유지환자관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  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. <cond>
  11. <matnflag/>
  12. <dialflag/>
  13. <hngnm/>
  14. <pid/>
  15. <maintepatrgstdd1/>
  16. <maintepatrgstdd2/>
  17. <allsearchyn/>
  18. </cond>
  19. <dialhdmpglist>
  20. <dialhdmpginfo>
  21. <status/>
  22. <pid/>
  23. <hngnm/>
  24. <sexage/>
  25. <dialflag/>
  26. <memo/>
  27. <matnflag/>
  28. <maintepatrgstdd/>
  29. <fstdialdd/>
  30. <roomhospdialdd/>
  31. <rectdialdd/>
  32. <chhos/>
  33. <chnghospdd/>
  34. <chnghosphosp/>
  35. <endresnflag/>
  36. <fstrgstrid/>
  37. <fstrgstdt/>
  38. <viralmarker/>
  39. <histstat/>
  40. <olddialflag/>
  41. <indd/>
  42. <newElement/>
  43. <cassickkind/>
  44. <cassick/>
  45. </dialhdmpginfo>
  46. </dialhdmpglist>
  47. <paminfo/>
  48. <chklist>
  49. <chkinfo>
  50. <rsrvexistyn/>
  51. <dialflag/>
  52. </chkinfo>
  53. </chklist>
  54. </main>
  55. <send>
  56. <matnflag/>
  57. <dialflag/>
  58. <hngnm/>
  59. <pid/>
  60. <maintepatrgstdd1/>
  61. <maintepatrgstdd2/>
  62. <savedata/>
  63. <reqdata/>
  64. </send>
  65. <init>
  66. <mlist>
  67. <M0079>
  68. <cdid/>
  69. <cdnm/>
  70. </M0079>
  71. </mlist>
  72. </init>
  73. <hidden/>
  74. <temp>
  75. <gettoplist>
  76. <gettopinfo>
  77. <pid/>
  78. <cretno/>
  79. <seqno/>
  80. <instcd/>
  81. <indd/>
  82. <orddd/>
  83. <acptseqno/>
  84. <orgorddd/>
  85. </gettopinfo>
  86. </gettoplist>
  87. <paminfo/>
  88. </temp>
  89. </root>
  90. </instance>
  91. <submission id="TRMND01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dialhdmpglist"/>
  92. <submission id="TXMND01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  93. <submission id="TRMND00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/gettopinfo"/>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. //그래드 초기화
  97. model.removeNodeset("/root/main/dialhdmpglist/dialhdmpginfo");
  98. setHelp(); // 온라인 도움말 화면이 있는 경우 ready 에서 실행.
  99. fDone();
  100. //20141215 kya 원인질환
  101. zbcfGetCodeList( new Array("M0079"), new Array("/root/init/mlist") ); //원인질환
  102. fSelect_dialhdmpglist();
  103. model.refresh();
  104. ]]>
  105. </script>
  106. <submission id="TRMND01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/chkinfo"/>
  107. </model>
  108. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  111. <script type="javascript" src="../../../emr/dialroomweb/js/SMMND01200.js"/>
  112. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  113. </xhtml:head>
  114. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  115. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  116. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">투석유지환자관리</caption>
  117. </group>
  118. <group id="grp_biz" scroll="l" style="left:0px; top:13px; width:1195px; height:744px; ">
  119. <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
  120. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  121. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">유지구분 :</caption>
  122. <button id="btn_srchpatlist" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  123. <caption>조회</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. fSelect_dialhdmpglist(); // 투석유지환자 리스트 조회
  127. ]]>
  128. </script>
  129. </button>
  130. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  131. <select1 id="cmb_matnFlag" ref="/root/main/cond/matnflag" class="combo_search" appearance="minimal" style="left:107px; top:7px; width:80px; height:19px; ">
  132. <choices>
  133. <item>
  134. <label>전체</label>
  135. <value/>
  136. </item>
  137. <item>
  138. <label>유지</label>
  139. <value>1</value>
  140. </item>
  141. <item>
  142. <label>전원</label>
  143. <value>2</value>
  144. </item>
  145. <item>
  146. <label>사망</label>
  147. <value>3</value>
  148. </item>
  149. <item>
  150. <label>신장이식</label>
  151. <value>4</value>
  152. </item>
  153. <item>
  154. <label>전환</label>
  155. <value>5</value>
  156. </item>
  157. <item>
  158. <label>중단</label>
  159. <value>6</value>
  160. </item>
  161. </choices>
  162. <script type="javascript" ev:event="xforms-value-changed">
  163. <![CDATA[
  164. //20100401-kys-유지구분이 유지일 경우 전체조회 체크 박스 활성화
  165. if(model.getValue("/root/main/cond/matnflag") == "1"){
  166. bol_allsearch.disabled = false;
  167. }else{
  168. bol_allsearch.disabled = true;
  169. ipt_maintepatrgstdd1.disabled = false;
  170. ipt_maintepatrgstdd2.disabled = false;
  171. model.makeValue("/root/main/cond/allsearchyn", "N");
  172. }
  173. fSelect_dialhdmpglist(); // 투석유지환자 리스트 조회
  174. ]]>
  175. </script>
  176. </select1>
  177. <select1 id="cmb_dialFlag" ref="/root/main/cond/dialflag" class="combo_search" appearance="minimal" style="left:297px; top:8px; width:60px; height:19px; ">
  178. <choices>
  179. <item>
  180. <label>전체</label>
  181. <value/>
  182. </item>
  183. <item>
  184. <label>HD</label>
  185. <value>H</value>
  186. </item>
  187. <item>
  188. <label>PD</label>
  189. <value>P</value>
  190. </item>
  191. </choices>
  192. <script type="javascript" ev:event="xforms-value-changed">
  193. <![CDATA[
  194. fSelect_dialhdmpglist(); // 투석유지환자 리스트 조회
  195. ]]>
  196. </script>
  197. </select1>
  198. <caption id="caption1" class="search_name" style="left:205px; top:9px; width:87px; height:17px; ">투석구분 :</caption>
  199. <caption id="caption3" class="search_name" style="left:557px; top:10px; width:84px; height:17px; ">환 자 명 :</caption>
  200. <caption id="caption4" class="search_name" style="left:379px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  201. <caption id="caption7" class="search_name" style="left:735px; top:10px; width:86px; height:17px; ">등록일자 :</caption>
  202. <caption id="caption8" style="left:914px; top:12px; width:17px; height:14px; font-weight:bold; ">~</caption>
  203. <input id="ipt_hngNm" ref="/root/main/cond/hngnm" class="input_search" style="left:644px; top:8px; width:70px; height:19px; ">
  204. <script type="javascript" ev:event="onkeyup">
  205. <![CDATA[
  206. inputEnterKey("btn_srchpatlist", "DOMActivate");
  207. ]]>
  208. </script>
  209. </input>
  210. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" maxlength="10" style="left:468px; top:8px; width:75px; height:19px; ">
  211. <script type="javascript" ev:event="onkeyup">
  212. <![CDATA[
  213. inputEnterKey("btn_srchpatlist", "DOMActivate");
  214. ]]>
  215. </script>
  216. </input>
  217. <input id="ipt_maintepatrgstdd1" ref="/root/main/cond/maintepatrgstdd1" class="input_search" inputtype="date" style="left:825px; top:8px; width:85px; height:19px; text-align:center; ">
  218. <script type="javascript" ev:event="xforms-value-changed">
  219. <![CDATA[
  220. // fSelect_dialhdmpglist(); // 투석유지환자 리스트 조회
  221. ]]>
  222. </script>
  223. </input>
  224. <input id="ipt_maintepatrgstdd2" ref="/root/main/cond/maintepatrgstdd2" class="input_search" inputtype="date" style="left:930px; top:8px; width:85px; height:19px; text-align:center; ">
  225. <script type="javascript" ev:event="xforms-value-changed">
  226. <![CDATA[
  227. // fSelect_dialhdmpglist(); // 투석유지환자 리스트 조회
  228. ]]>
  229. </script>
  230. </input>
  231. <bool id="bol_allsearch" checkvalue="Y,N" ref="/root/main/cond/allsearchyn" style="left:1030px; top:10px; width:25px; height:15px; ">
  232. <script type="javascript" ev:event="xforms-value-changed">
  233. <![CDATA[
  234. if(model.getValue("/root/main/cond/allsearchyn") == "Y"){
  235. ipt_maintepatrgstdd1.disabled = true;
  236. ipt_maintepatrgstdd2.disabled = true;
  237. }else{
  238. ipt_maintepatrgstdd1.disabled = false;
  239. ipt_maintepatrgstdd2.disabled = false;
  240. }
  241. ]]>
  242. </script>
  243. </bool>
  244. <caption id="cap_allsearch" style="left:1055px; top:10px; width:30px; height:15px; ">전체</caption>
  245. </group>
  246. <line id="line1" class="line_1" style="x1:1px; y1:65px; x2:1195px; y2:65px; "/>
  247. <button id="btn_delLine" class="btn2_letter3" style="left:1028px; top:43px; width:53px; height:19px; ">
  248. <caption>행삭제</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. if (grd_dialhdmpglist.row > 0) {
  252. fSetstatusDel();
  253. }
  254. ]]>
  255. </script>
  256. </button>
  257. <caption id="caption5" class="tit_2" style="left:5px; top:50px; width:135px; height:13px; vertical-align:middle; ">투석유지환자리스트</caption>
  258. <button id="button3" class="btn2_letter4" style="left:1084px; top:43px; width:64px; height:19px; ">
  259. <caption>엑셀저장</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. fSaveToExcel();
  263. ]]>
  264. </script>
  265. </button>
  266. <button id="button5" class="btn2_letter4" style="left:961px; top:43px; width:64px; height:19px; ">
  267. <caption>도관기록</caption>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. if(grd_dialhdmpglist.row > 0) {
  271. fPopup();
  272. }
  273. ]]>
  274. </script>
  275. </button>
  276. <button id="button4" class="btn5_letter2" style="left:1151px; top:43px; width:42px; height:19px; ">
  277. <caption>저장</caption>
  278. <script type="javascript" ev:event="DOMActivate">
  279. <![CDATA[
  280. fSavelist();
  281. ]]>
  282. </script>
  283. </button>
  284. <datagrid id="grd_dialhdmpglist" nodeset="/root/main/dialhdmpglist/dialhdmpginfo" class="datagrid2" autoresize="false" caption="status^등록번호^환자명^S/A^투석&#xA;구분^비고^유지구분^유지환자&#xA;등록일자^최초투석일^본원투석&#xA;시작일^최종투석일^원인질환^원인질환^의뢰병원^Out일^전원병원^종료사유^최초등록자^최초등록일시^감염구분^최종입원일자^hisstat^olddialflag" colsep="^" colwidth="0, 66, 62, 53, 41, 72, 60, 75, 75, 76, 75, 67, 101, 110, 85, 100, 94, 0, 0, 101, 80, 0, 0" ellipsis="true" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:70px; width:1194px; height:674px; ">
  285. <col ref="status" style="text-align:right; "/>
  286. <col ref="pid"/>
  287. <col ref="hngnm" style="left:180px; top:32px; width:80px; height:20px; "/>
  288. <col ref="sexage" style="left:260px; top:32px; width:40px; height:20px; "/>
  289. <col disabled="true" ref="dialflag" type="combo">
  290. <choices>
  291. <item>
  292. <label>HD</label>
  293. <value>H</value>
  294. </item>
  295. <item>
  296. <label>PD</label>
  297. <value>P</value>
  298. </item>
  299. </choices>
  300. </col>
  301. <col ref="memo" type="input"/>
  302. <col ref="matnflag" type="combo" style="left:337px; top:23px; width:60px; height:23px; ">
  303. <choices>
  304. <item>
  305. <label>유지</label>
  306. <value>1</value>
  307. </item>
  308. <item>
  309. <label>전원</label>
  310. <value>2</value>
  311. </item>
  312. <item>
  313. <label>사망</label>
  314. <value>3</value>
  315. </item>
  316. <item>
  317. <label>신장이식</label>
  318. <value>4</value>
  319. </item>
  320. <item>
  321. <label>전환</label>
  322. <value>5</value>
  323. </item>
  324. <item>
  325. <label>중단</label>
  326. <value>6</value>
  327. </item>
  328. </choices>
  329. </col>
  330. <col ref="maintepatrgstdd" format="yyyy-mm-dd"/>
  331. <col ref="fstdialdd" format="yyyy-mm-dd"/>
  332. <col ref="roomhospdialdd" format="yyyy-mm-dd"/>
  333. <col ref="rectdialdd" format="yyyy-mm-dd"/>
  334. <col disabled="true" ref="cassickkind" type="combo">
  335. <choices>
  336. <itemset nodeset="/root/init/mlist/M0079">
  337. <label ref="cdnm"/>
  338. <value ref="cdid"/>
  339. </itemset>
  340. </choices>
  341. </col>
  342. <col ref="cassick"/>
  343. <col ref="chhos" type="input"/>
  344. <col ref="chnghospdd" type="inputdate"/>
  345. <col ref="chnghosphosp" type="input"/>
  346. <col ref="endresnflag" type="input" maxlength="30"/>
  347. <col ref="fstrgstrid"/>
  348. <col ref="fstrgstdt" type="combo">
  349. <choices>
  350. <item>
  351. <label/>
  352. <value>1</value>
  353. </item>
  354. <item>
  355. <label>HBsAg</label>
  356. <value>2</value>
  357. </item>
  358. <item>
  359. <label>HBeAg</label>
  360. <value>3</value>
  361. </item>
  362. <item>
  363. <label>HCVAb</label>
  364. <value>4</value>
  365. </item>
  366. <item>
  367. <label>HIV</label>
  368. <value>5</value>
  369. </item>
  370. <item>
  371. <label>VDRL</label>
  372. <value>6</value>
  373. </item>
  374. <item>
  375. <label>기타</label>
  376. <value>7</value>
  377. </item>
  378. </choices>
  379. </col>
  380. <col disabled="true" ref="viralmarker"/>
  381. <col ref="indd"/>
  382. <col ref="histstat"/>
  383. <col ref="olddialflag"/>
  384. <script type="javascript" ev:event="xforms-value-changed">
  385. <![CDATA[
  386. var iRow = grd_dialhdmpglist.row;
  387. var iCol = grd_dialhdmpglist.col;
  388. var sMatnFlag = model.getValue("/root/main/dialhdmpglist/dialhdmpginfo[" +iRow+ "]/matnflag");
  389. var sDialFalgYN = "N"; // HD=>PD,PD=>HD로 투석구분 변경 시("Y")
  390. //** 투석구분, 유지구분 변경시 **//
  391. // if (iCol==5 || iCol==7) {
  392. // fChkRsrvExistYN(iRow, iCol); // 미래예약정보 존재여부 확인
  393. // }
  394. //** 투석구분 변경시 (전환) **//
  395. //if (iCol==5){
  396. // fChkRsrvExistYN(iRow, iCol); // 미래예약정보 존재여부 확인
  397. // sDialFalgYN = "Y"; // HD=>PD,PD=>HD로 투석구분 변경 시("Y")
  398. //}
  399. //** 유지구분 변경시 20090223-kys**//
  400. if (iCol==7){
  401. if(sMatnFlag != "1"){
  402. fChkRsrvExistYN(iRow, iCol); // 미래예약정보 존재여부 확인
  403. }
  404. if(sMatnFlag == "5"){
  405. messageBox("전환을 계속 진행하시려면 상단의 [저장]버튼을 누르십시오.", "I");
  406. sDialFalgYN = "Y"; // HD=>PD,PD=>HD로 투석구분 변경 시("Y")
  407. }
  408. }
  409. fSetstatusUp(iRow, iCol, sMatnFlag, sDialFalgYN); // dialhdmpglist 입력시 상태값 지정
  410. ]]>
  411. </script>
  412. <script type="javascript" ev:event="ondblclick">
  413. <![CDATA[
  414. var iRow = grd_dialhdmpglist.row;
  415. var iCol = grd_dialhdmpglist.col;
  416. if( iRow> 0) {
  417. if(iCol!=5 && iCol!=6 && iCol!=7 && iCol!=12 && iCol!=13 && iCol!=14 && iCol!=15){
  418. var iRow = grd_dialhdmpglist.row;
  419. fsetHngBaseInfo(); // 상단정보 설정
  420. }
  421. }
  422. ]]>
  423. </script>
  424. </datagrid>
  425. <button id="button1" class="btn2_letter8" style="left:850px; top:43px; width:108px; height:19px; ">
  426. <caption>투석간호정보조사</caption>
  427. <script type="javascript" ev:event="DOMActivate">
  428. <![CDATA[
  429. var xpos = event.screenX - 620;
  430. var ypos = event.screenY ;
  431. modal("SMMND00300", 1, xpos, ypos, "SMMND00300", "", "");
  432. ]]>
  433. </script>
  434. </button>
  435. </group>
  436. </xhtml:body>
  437. </xhtml:html>