SMAEA04302_통합기록서식검증.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <rsrvprescond>
  11. <rsrvlist>
  12. <srchpid/>
  13. <hngnm/>
  14. <rsrvdt/>
  15. <prcpcd/>
  16. <prcpnm/>
  17. <prcpstatcd/>
  18. <prcpdd/>
  19. <orddeptnm/>
  20. <orddrnm/>
  21. <excuroomnm/>
  22. <execrid/>
  23. <usernm/>
  24. </rsrvlist>
  25. </rsrvprescond>
  26. <ordprescond>
  27. <ordlist>
  28. <ordno/>
  29. <actorddd/>
  30. <orddeptnm/>
  31. <orddrnm/>
  32. </ordlist>
  33. </ordprescond>
  34. <popupendflag/>
  35. <patinfo>
  36. <patinfolist/>
  37. </patinfo>
  38. <gbstat>
  39. </gbstat>
  40. <wardpatinfo>
  41. <wardpatlist>
  42. <roomcd/>
  43. <patnm/>
  44. <sexage/>
  45. <pid/>
  46. <indd/>
  47. <cretno/>
  48. <seqno/>
  49. <instcd/>
  50. <wardcd/>
  51. </wardpatlist>
  52. <settingrn>
  53. <settingrnid/>
  54. <settingrnnm/>
  55. </settingrn>
  56. </wardpatinfo>
  57. <paminfo>
  58. <pamlist>
  59. <checked/>
  60. <class/>
  61. <pid/>
  62. <outdate/>
  63. <indate/>
  64. <clincode/>
  65. <depthngnm/>
  66. <doccode/>
  67. <usernm/>
  68. <cretno/>
  69. <cmc_cretno/>
  70. <treatno/>
  71. <initflag/>
  72. <upflag/>
  73. </pamlist>
  74. </paminfo>
  75. <excuinfo>
  76. <exculist>
  77. <prcpdd/>
  78. <excucd/>
  79. <excucdnm/>
  80. <excuexectodt/>
  81. <cnfmdt/>
  82. </exculist>
  83. </excuinfo>
  84. </main>
  85. <send>
  86. <srchpid/>
  87. <frdt/>
  88. <todt/>
  89. <req>
  90. <data/>
  91. </req>
  92. <globalinstance>
  93. <instance1/>
  94. </globalinstance>
  95. <srchflag/>
  96. <srchindate/>
  97. <srchindate2/>
  98. <srchdschdd/>
  99. <pamlist/>
  100. </send>
  101. <init>
  102. <baseinfo>
  103. <initexecprcpstatcd/>
  104. </baseinfo>
  105. <wardinfo>
  106. <ward>
  107. <deptcd/>
  108. <deptnm/>
  109. </ward>
  110. </wardinfo>
  111. <pidinfo>
  112. <pidlist>
  113. <pidlistno/>
  114. <pidlistnm/>
  115. </pidlist>
  116. </pidinfo>
  117. </init>
  118. <hidden>
  119. <source>
  120. <pathngnm/>
  121. <rbogb>1</rbogb>
  122. <hsrchpid/>
  123. <hwardcd/>
  124. </source>
  125. </hidden>
  126. <temp>
  127. <ward>
  128. <wardcd/>
  129. <wardnm/>
  130. </ward>
  131. <message>
  132. <optmessage/>
  133. </message>
  134. </temp>
  135. </root>
  136. </instance>
  137. <script type="javascript">
  138. <![CDATA[
  139. function fGetPatList(){
  140. submit("TRAEA00306");
  141. model.resetInstanceNode("/root/main/prcpinfo/prcplist");
  142. model.resetInstanceNode("/root/main/patlistflag");
  143. model.refresh();
  144. }
  145. function fPatlistVisible(){
  146. // 재원환자목록 보여주기
  147. cap_rsrvprescondtitle.attribute("left") = "274";
  148. lin_rsrvprescond.attribute("x1") = "274";
  149. grd_rsrvprescond.attribute("left") = "274";
  150. grd_rsrvprescond.attribute("width") = "661";
  151. cap_patlisttitle.visible = true;
  152. lin_patlist.visible = true;
  153. grd_patlist.visible = true;
  154. }
  155. function fPatlisthidden(){
  156. // 재원환자목록 보이지 않게하기
  157. cap_rsrvprescondtitle.attribute("left") = "5";
  158. lin_rsrvprescond.attribute("x1") = "5";
  159. grd_rsrvprescond.attribute("left") = "5";
  160. grd_rsrvprescond.attribute("width") = "930";
  161. cap_patlisttitle.visible = false;
  162. lin_patlist.visible = false;
  163. grd_patlist.visible = false;
  164. }
  165. ]]>
  166. </script>
  167. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  171. <!-- 사용자의 기본부서코드를 가져오기 위한 script (검사실에 한정)-->
  172. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  173. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  174. <submission id="TRAEA00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patinfo"/>
  175. <bind id="bind_prcpstatcd" ref="/root/main/rsrvprescond/rsrvlist/prcpstatcd" readonly="../prcpstatcd!=''"/>
  176. <script type="javascript" ev:event="xforms-ready">
  177. <![CDATA[
  178. // 콤보에 전체선택 추가
  179. //addComboItem("combo1", "-전체-", "-", "above");
  180. //combo1.select(0);
  181. //combo2.select(0);
  182. // 세션에서 부서 코드를 받아온다.
  183. var dutplcecd = getUserInfo("dutplcecd") ;
  184. aezfSetSuppDeptcd();
  185. model.setValue("/root/send/srchindate","20070101");
  186. model.setValue("/root/send/srchdschdd",getCurrentDate());
  187. model.removeNodeset("/root/main/paminfo/pamlist");//수진내역
  188. model.removeNodeset("/root/main/excuinfo/exculist"); // 수진 처방내역
  189. model.refresh();
  190. model.setFocus("ipt_pid");
  191. ]]>
  192. </script>
  193. <submission id="TRAEA04308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/paminfo"/>
  194. <submission id="TRAEA04309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/excuinfo"/>
  195. <submission id="TXAEA04306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  196. </model>
  197. </xhtml:head>
  198. <xhtml:body guideline="1,1193;2,769;2,783;2,91;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  199. <group id="group1" style="left:0px; top:0px; width:1174px; height:13px; ">
  200. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">개인별 통합기록서식 검증</caption>
  201. </group>
  202. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1175px; height:729px; ">
  203. <datagrid id="grd_patlist" nodeset="/root/main/wardpatinfo/wardpatlist" visibility="hidden" backcoloralternate="#ffffff" caption="병실^환자번호^환자명^S/A" colsep="^" colwidth="50, 66, 66, 53" defaultrows="0" frozencols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:271px; height:649px; ">
  204. <col ref="roomcd" style="text-align:center; "/>
  205. <col ref="pid" style="text-align:center; "/>
  206. <col ref="patnm" style="text-align:left; "/>
  207. <col ref="sexage" style="text-align:center; "/>
  208. <script type="javascript" ev:event="onclick">
  209. <![CDATA[
  210. model.setValue("root/send/srchpid",model.getValue("/root/main/wardpatinfo/wardpatlist[" + grd_patlist.row + "]/pid"));
  211. btn_sea.dispatch("DOMActivate");
  212. ]]>
  213. </script>
  214. </datagrid>
  215. <caption id="cap_rsrvprescondtitle" class="tit_2" style="left:5px; top:54px; width:155px; height:13px; ">수진내역별 판독현황</caption>
  216. <group id="grp_sea" style="left:0px; top:10px; width:1174px; height:35px; vertical-align:top; ">
  217. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1174px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  218. <script type="javascript" ev:event="onkeyup">
  219. <![CDATA[
  220. /*
  221. var _str = ipt_pid.currentText;
  222. if ( _str.isNumber() == false ) {
  223. messageBox("등록번호는 숫자만 입력이 가능합니다.", "I999");
  224. ipt_pid.value = "";
  225. }
  226. inputEnterKey("btn_sea", "DOMActivate");
  227. */
  228. ]]>
  229. </script>
  230. <script type="javascript" ev:event="DOMFocusIn">
  231. <![CDATA[
  232. opt_pathngnm.value = "";
  233. ]]>
  234. </script>
  235. <line id="line13" class="line_4" style="x1:1108px; y1:9px; x2:1108px; y2:31px; "/>
  236. <button id="btn_sea" class="btn1_letter2" navindex="8" style="left:1113px; top:7px; width:56px; height:22px; ">
  237. <caption>조회</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. model.removeNodeset("/root/main/excuinfo/exculist"); // 수진 처방내역
  241. model.makeValue("/root/send/pid", model.getValue("root/send/srchpid"));
  242. model.setValue("/root/send/srchflag","S");
  243. submit("TRAEA00204");
  244. submit("TRAEA04308");
  245. model.refresh();
  246. ]]>
  247. </script>
  248. </button>
  249. <input id="ipt_pid" ref="/root/send/srchpid" class="input_search" navindex="3" maxlength="10" style="left:106px; top:8px; width:95px; height:19px; ">
  250. <script type="javascript" ev:event="onkeyup">
  251. <![CDATA[
  252. if(event.keyCode == "13") {
  253. inputEnterKey("btn_sea","DOMActivate");
  254. }
  255. ]]>
  256. </script>
  257. </input>
  258. <output id="opt_pathngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:232px; top:8px; width:95px; height:19px; text-align:center; "/>
  259. <caption id="cap_pidtext" class="search_name" visibility="visible" style="left:14px; top:9px; width:86px; height:17px; ">환자번호:</caption>
  260. <button id="btn_pidsearch" class="icon_search" navindex="4" style="left:208px; top:9px; width:16px; height:16px; ">
  261. <caption/>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. /* @group : 개인별 예약현황조회
  265. * @ver : 2007.7.25
  266. * @by : 조원영
  267. * @-----------------------------------
  268. * @type : function
  269. * @access : public
  270. * @desc : 등록번호를 통한 환자 이름 조회
  271. */
  272. model.makeNode("/root/main/patinfo/patinfolist");
  273. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/srchpid", "/root/send");
  274. model.setValue( "/root/send/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid") ); // 등록번호 설정
  275. model.setValue( "/root/main/patinfo/patinfolist/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm") ); // 환자 이름
  276. model.refresh();
  277. ]]>
  278. </script>
  279. </button>
  280. <caption id="caption7" class="search_name" style="left:400px; top:9px; width:117px; height:17px; ">수진일자 :</caption>
  281. <input id="input3" ref="/root/send/srchindate" class="input_s_essential" inputtype="date" style="left:494px; top:8px; width:102px; height:19px; "/>
  282. <input id="input1" ref="/root/send/srchdschdd" class="input_s_essential" inputtype="date" style="left:630px; top:8px; width:102px; height:19px; "/>
  283. <caption id="caption1" style="left:605px; top:10px; width:20px; height:20px; ">~</caption>
  284. </group>
  285. <datagrid id="grd_ordprescond" nodeset="/root/main/excuinfo/exculist" caption="처방일^처방코드^처방명^촬영일시^판독일시^진료의" colsep="^" colwidth="70, 83, 207, 120, 120" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:535px; top:74px; width:628px; height:651px; ">
  286. <col ref="prcpdd" format="yyyy-mm-dd"/>
  287. <col ref="excucd"/>
  288. <col ref="excucdnm"/>
  289. <col ref="excuexectodt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  290. <col ref="cnfmdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  291. </datagrid>
  292. <line id="line2" class="line_1" style="x1:535px; y1:72px; x2:1162px; y2:71px; "/>
  293. <caption id="caption3" class="tit_2" style="left:532px; top:53px; width:170px; height:14px; ">수진내역별 판독 상세내역</caption>
  294. <line id="lin_rsrvprescond" class="line_1" style="x1:0px; y1:70px; x2:529px; y2:71px; "/>
  295. <datagrid id="grd_pamlist" nodeset="/root/main/paminfo/pamlist" caption="선택^구분^등록번호^퇴(내)원일^입원일^진료과코드^진료과^진료의^진료의^cretno^cmc_creatno^treatno^initflag^upflag^등록번호^환자명^검사/치료실^검사/실시자^예약자^치료사^병동" colsep="^" colwidth="32, 30, 61, 70, 70, 46, 66, 52, 45, 65, 78, 51, 42, 39" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:74px; width:530px; height:651px; ">
  296. <col checkvalue="Y,N" ref="checked" type="checkbox"/>
  297. <col ref="class"/>
  298. <col ref="pid"/>
  299. <col ref="outdate" format="yyyy-mm-dd"/>
  300. <col ref="indate" format="yyyy-mm-dd"/>
  301. <col ref="clincode" visibility="hidden"/>
  302. <col ref="depthngnm"/>
  303. <col ref="doccode" visibility="hidden"/>
  304. <col ref="usernm"/>
  305. <col ref="cretno"/>
  306. <col ref="cmc_cretno" type="input"/>
  307. <col ref="treatno" visibility="hidden"/>
  308. <col ref="initflag" type="input"/>
  309. <col ref="upflag" visibility="hidden"/>
  310. <script type="javascript" ev:event="onaftersort">
  311. <![CDATA[
  312. grd_pamlist.gridToInstance();
  313. ]]>
  314. </script>
  315. <script type="javascript" ev:event="onclick">
  316. <![CDATA[
  317. var colidx = grd_pamlist.col;
  318. if ( grd_pamlist.isCell(event.target) && grd_pamlist.row >= grd_pamlist.fixedRows ){
  319. if(grd_pamlist.colAttribute(colidx, "ref") != "checked" && grd_pamlist.colAttribute(colidx, "ref") != "cmc_cretno"
  320. &&grd_pamlist.colAttribute(colidx, "ref") != "initflag"){
  321. model.setValue("/root/send/srchflag","H");
  322. if(model.getValue("/root/main/paminfo/pamlist["+grd_pamlist.row+"]/class") == "외래"){
  323. model.setValue("/root/send/srchindate2",model.getValue("/root/main/paminfo/pamlist["+grd_pamlist.row+"]/outdate"));
  324. }else{
  325. model.setValue("/root/send/srchindate2",model.getValue("/root/main/paminfo/pamlist["+grd_pamlist.row+"]/indate"));
  326. }
  327. submit("TRAEA04309");
  328. }
  329. }
  330. ]]>
  331. </script>
  332. </datagrid>
  333. </group>
  334. <group id="grp_btn" style="left:0px; top:741px; width:1175px; height:27px; ">
  335. <button id="btn_cls" class="btn4_letter2" navindex="9" style="left:1109px; top:3px; width:56px; height:22px; ">
  336. <caption>저장</caption>
  337. <script type="javascript" ev:event="onclick">
  338. <![CDATA[
  339. for (var i = 1; i < grd_pamlist.rows; i ++){
  340. if(model.getValue("/root/main/paminfo/pamlist["+i+"]/checked") == "Y") {
  341. model.setValue("/root/main/paminfo/pamlist["+i+"]/upflag","U");
  342. }
  343. }
  344. var nodeList = instance1.selectNodes("/root/main/paminfo/pamlist[checked='Y']");
  345. var rCSV = getNodeListCSV(nodeList);
  346. if ( rCSV == null ) {
  347. messageBox("수진내역을 ","C002");
  348. return "0";
  349. }
  350. model.setValue("/root/send/pamlist", rCSV);
  351. if (submit("TXAEA04306")){
  352. model.removeNodeset("/root/main/excuinfo/exculist"); // 수진 처방내역
  353. model.makeValue("/root/send/pid", model.getValue("root/send/srchpid"));
  354. model.setValue("/root/send/srchflag","S");
  355. submit("TRAEA04308");
  356. model.refresh();
  357. }
  358. ]]>
  359. </script>
  360. </button>
  361. <output id="opt_message" ref="/root/temp/message/optmessage" class="input_search" style="left:0px; top:4px; width:1105px; height:19px; "/>
  362. <button id="button1" class="btn4_letter2" navindex="9" style="left:1050px; top:3px; width:56px; height:22px; ">
  363. <caption>취소</caption>
  364. <script type="javascript" ev:event="onclick">
  365. <![CDATA[
  366. for (var i = 1; i < grd_pamlist.rows; i ++){
  367. if(model.getValue("/root/main/paminfo/pamlist["+i+"]/checked") == "Y") {
  368. model.setValue("/root/main/paminfo/pamlist["+i+"]/upflag","D");
  369. }
  370. }
  371. var nodeList = instance1.selectNodes("/root/main/paminfo/pamlist[checked='Y']");
  372. var rCSV = getNodeListCSV(nodeList);
  373. if ( rCSV == null ) {
  374. messageBox("수진내역을 ","C002");
  375. return "0";
  376. }
  377. model.setValue("/root/send/pamlist", rCSV);
  378. if (submit("TXAEA04306")){
  379. model.removeNodeset("/root/main/excuinfo/exculist"); // 수진 처방내역
  380. model.makeValue("/root/send/pid", model.getValue("root/send/srchpid"));
  381. model.setValue("/root/send/srchflag","S");
  382. submit("TRAEA04308");
  383. model.refresh();
  384. }
  385. ]]>
  386. </script>
  387. </button>
  388. </group>
  389. </xhtml:body>
  390. </xhtml:html>