SMADC00101_구분별의뢰관리.xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  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. <reqlist>
  11. <reqlist>
  12. <cnstseqno/>
  13. <stat/>
  14. <pid/>
  15. <hngnm/>
  16. <cretno/>
  17. <orddeptcd/>
  18. <prcpgenrflag/>
  19. <reqdd/>
  20. <repldd/>
  21. <replpharmst/>
  22. <formcd/>
  23. <formcdnm/>
  24. <wardnm/>
  25. <agesex/>
  26. <rrgstno/>
  27. <patstat/>
  28. <diagcd/>
  29. <orddd/>
  30. <inhospday/>
  31. <reqdrug/>
  32. <result/>
  33. <reqdeptnm/>
  34. <requsernm/>
  35. <reqresn/>
  36. <reqcomment/>
  37. <bcolldt/>
  38. <spcacptdt/>
  39. <formrecseq/>
  40. <reqdeptcd/>
  41. <requserid/>
  42. <cnstcnts1/>
  43. <prcpno/>
  44. <prcpcd/>
  45. <rgstseqno/>
  46. <sugastat/>
  47. <jamonstat/>
  48. <reqhm/>
  49. <replhm/>
  50. <sexnew/>
  51. </reqlist>
  52. </reqlist>
  53. <patinfo>
  54. <patinfolist/>
  55. </patinfo>
  56. <listreqlistinfo>
  57. <reqlist>
  58. <cnstseqno/>
  59. <formcd/>
  60. <formcdnm/>
  61. <stat/>
  62. <reqdd/>
  63. <spcacptdt/>
  64. <bcolldt/>
  65. <prcpgenrflag/>
  66. <reqdrug/>
  67. <result/>
  68. <pid/>
  69. <hngnm/>
  70. <cretno/>
  71. <wardnm/>
  72. <agesex/>
  73. <diagcd/>
  74. <rrgstno/>
  75. <reqdeptnm/>
  76. <requsernm/>
  77. <orddd/>
  78. <inhospday/>
  79. <patstat/>
  80. <repldd/>
  81. <replpharmst/>
  82. <replpharmst2/>
  83. <reqresn/>
  84. <reqcomment/>
  85. <sugastat/>
  86. <jamonstat/>
  87. <formrecseq/>
  88. <reqdeptcd/>
  89. <requserid/>
  90. <cnstcnts1/>
  91. <prcpno/>
  92. <prcpcd/>
  93. <rgstseqno/>
  94. <orddeptcd/>
  95. <reqhm/>
  96. <replhm/>
  97. <sexnew/>
  98. </reqlist>
  99. </listreqlistinfo>
  100. </main>
  101. <send>
  102. <srchinfo/>
  103. <deptinfo>
  104. <deptflag/>
  105. </deptinfo>
  106. <chkpid/>
  107. </send>
  108. <init>
  109. <patinfo>
  110. <pid/>
  111. <hngnm/>
  112. <srchcond/>
  113. </patinfo>
  114. <srchinfo>
  115. <tdmreqnochk>A</tdmreqnochk>
  116. <startreqtm>0000</startreqtm>
  117. <endreqtm>2359</endreqtm>
  118. </srchinfo>
  119. </init>
  120. <hidden>
  121. <srchinfo>
  122. <startreqdd/>
  123. <endreqdd/>
  124. <startrepldd/>
  125. <endrepldd/>
  126. <formcd>-</formcd>
  127. <recvyn/>
  128. <ioflag>-</ioflag>
  129. <reqdeptcd/>
  130. <reqdeptcdnm/>
  131. <reqwardcd/>
  132. <reqpid/>
  133. <srchflag>1</srchflag>
  134. <pidonly/>
  135. <tdmreqnochk/>
  136. <lisddchk>R</lisddchk>
  137. <startreqtm>0000</startreqtm>
  138. <endreqtm>2359</endreqtm>
  139. <startrepltm>0000</startrepltm>
  140. <endrepltm>2359</endrepltm>
  141. <tdmdrugcd/>
  142. <tdmdrugnm/>
  143. <adrfstvaluyn/>
  144. </srchinfo>
  145. <deptlist>
  146. <dept>
  147. <deptcd/>
  148. <deptnm/>
  149. </dept>
  150. <ward>
  151. <wardcd/>
  152. <wardnm/>
  153. </ward>
  154. </deptlist>
  155. <cnststatinfo>
  156. <cnststat/>
  157. </cnststatinfo>
  158. <chkpid>
  159. <pharm>
  160. <pharmflag/>
  161. </pharm>
  162. </chkpid>
  163. <tdmdruginfo>
  164. <testlist>
  165. <drugcd/>
  166. <drugnm/>
  167. </testlist>
  168. </tdmdruginfo>
  169. </hidden>
  170. <temp>
  171. <cnstinfo>
  172. <cnstseqno/>
  173. <formrecseq/>
  174. <pid/>
  175. <rgstseqno/>
  176. <cnstdd/>
  177. <prcpgenrflag/>
  178. <orddd/>
  179. <cretno/>
  180. <cnsttype/>
  181. <formcd/>
  182. <btnreplflag/>
  183. <pidchkflag/>
  184. </cnstinfo>
  185. <srchinfo>
  186. <dept/>
  187. <tdmdrug/>
  188. </srchinfo>
  189. </temp>
  190. </root>
  191. </instance>
  192. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  193. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  194. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  195. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  196. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  197. <script type="javascript" src="../../../ast/pharmacyconsultweb/js/SMADC00101.js"/>
  198. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  199. <script type="javascript" ev:event="xforms-ready">
  200. <![CDATA[
  201. fInit();
  202. ]]>
  203. </script>
  204. <script type="javascript">
  205. <![CDATA[
  206. //의뢰이유를 코드명으로 나열하기
  207. function fCnstResn() {
  208. var rowcount = getNodesetCount("/root/main/listreqlistinfo/reqlist");
  209. for ( var k = 1 ; k < rowcount; k++) {
  210. var cnstresn = model.getValue("/root/main/listreqlistinfo/reqlist[" + k +"]/reqresn");
  211. var temp = "";
  212. if ( cnstresn != "" ) {
  213. for ( i = 0; i < cnstresn.length; i+=2 ) {
  214. if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="1") {
  215. temp = temp + "적정용량 확인, "
  216. } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="2") {
  217. temp = temp + "독성의심, "
  218. } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="3") {
  219. temp = temp + "기대이하의 약효, "
  220. } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="4") {
  221. temp = temp + "상호작용약물 추가/중단, "
  222. } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="5") {
  223. temp = temp + "입원시 초기 농도 확인, "
  224. } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="6") {
  225. temp = temp + "중단 후 감소된 농도확인, "
  226. }
  227. }
  228. model.setValue("/root/main/listreqlistinfo/reqlist[" + k +"]/reqresn", temp.substr(0, temp.length-2));
  229. }
  230. }
  231. }
  232. ]]>
  233. </script>
  234. <submission id="TRADC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
  235. <submission id="TRADC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/reqlist"/>
  236. <submission id="TXADC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/cnstinfo" replace="instance" resultref="/root/hidden/cnststatinfo"/>
  237. <submission id="TRADC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chkpid" replace="instance" resultref="/root/hidden/chkpid"/>
  238. <submission id="TRADB62202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/srchinfo" replace="instance" resultref="/root/hidden/tdmdruginfo/testlist"/>
  239. </model>
  240. </xhtml:head>
  241. <xhtml:body print-leftmargin="&quot;" guideline="2,13;1,1200;2,784;2,743;1,1190;1,1194;1,1195;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  242. <group id="group4" scroll="auto" style="left:0px; top:740px; width:1195px; height:44px; ">
  243. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
  244. <caption>출력</caption>
  245. </button>
  246. </group>
  247. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">의뢰관리</caption>
  248. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1194px; height:742px; ">
  249. <group id="group2" style="left:0px; top:0px; width:1194px; height:60px; vertical-align:top; ">
  250. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  251. <caption id="caption3" class="search_name" style="left:665px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  252. <input id="input3" ref="/root/hidden/srchinfo/reqpid" class="input_search" style="left:975px; top:35px; width:98px; height:19px; ">
  253. <script type="javascript" ev:event="onkeydown">
  254. <![CDATA[
  255. inputEnterKey("btn_sea","DOMActivate");
  256. ]]>
  257. </script>
  258. </input>
  259. <button id="button11" class="icon_search" style="left:1078px; top:35px; width:16px; height:16px; ">
  260. <caption/>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "", "");
  264. if(model.getValue("/root/main/patinfo/patinfolist/pid") != ""){
  265. model.setValue("/root/hidden/srchinfo/reqpid" ,model.getValue("/root/main/patinfo/patinfolist/pid"));
  266. //model.setValue("/root/send/srchinfo/srchhngnm",model.getValue("/root/init/patinfo/hngnm"));
  267. model.refresh();
  268. }
  269. ]]>
  270. </script>
  271. </button>
  272. <caption id="caption1" class="search_name" style="left:496px; top:9px; width:65px; height:17px; ">선택 :</caption>
  273. <select id="checkbox3" ref="/root/hidden/srchinfo/recvyn" class="checkbox_search" overflow="visible" appearance="full" style="left:560px; top:10px; width:104px; height:15px; border-style:none; ">
  274. <choices>
  275. <item>
  276. <label>회신 환자 제외</label>
  277. <value>Y</value>
  278. </item>
  279. </choices>
  280. </select>
  281. <caption id="caption2" class="search_name" style="left:880px; top:9px; width:73px; height:17px; ">병동 :</caption>
  282. <select1 id="rdo_ioflag" ref="/root/hidden/srchinfo/ioflag" class="radio_search" appearance="full" cols="4" rows="1" overflow="visible" style="left:490px; top:35px; width:175px; height:15px; border-style:none; ">
  283. <choices>
  284. <item>
  285. <label>외래</label>
  286. <value>O</value>
  287. </item>
  288. <item>
  289. <label>입원</label>
  290. <value>I</value>
  291. </item>
  292. <item>
  293. <label>응급</label>
  294. <value>E</value>
  295. </item>
  296. <item>
  297. <label>전체</label>
  298. <value>-</value>
  299. </item>
  300. </choices>
  301. <script type="javascript" ev:event="xforms-value-changed">
  302. <![CDATA[
  303. fChgIOFlag();
  304. ]]>
  305. </script>
  306. </select1>
  307. <caption id="caption4" class="search_name" style="left:880px; top:35px; width:86px; height:17px; ">등록번호 :</caption>
  308. <caption id="caption5" class="search_name" style="left:5px; top:6px; width:86px; height:17px; ">의뢰일자 :</caption>
  309. <input id="ipt_startreqdd" ref="/root/hidden/srchinfo/startreqdd" class="input_search" inputtype="date" style="left:101px; top:5px; width:85px; height:19px; "/>
  310. <input id="ipt_endreqdd" ref="/root/hidden/srchinfo/endreqdd" class="input_search" inputtype="date" style="left:226px; top:5px; width:85px; height:19px; "/>
  311. <select1 id="combo1" ref="/root/hidden/srchinfo/reqwardcd" class="combo_search" appearance="minimal" cols="2" style="left:975px; top:8px; width:100px; height:19px; ">
  312. <choices>
  313. <itemset nodeset="/root/hidden/deptlist/ward">
  314. <label ref="wardnm"/>
  315. <value ref="wardcd"/>
  316. </itemset>
  317. </choices>
  318. <script type="javascript" ev:event="xforms-value-changed">
  319. <![CDATA[
  320. if(model.getValue("/root/hidden/srchinfo/reqwardcd") != ""){
  321. rdo_ioflag.value = "I";
  322. } else rdo_ioflag.value = "-";
  323. model.refresh();
  324. ]]>
  325. </script>
  326. </select1>
  327. <line id="line13" style="x1:1115px; y1:5px; x2:1115px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  328. <line id="line2" class="line_2" style="x1:15px; y1:30px; x2:1110px; y2:30px; "/>
  329. <button id="button1" class="icon_search" style="left:860px; top:35px; width:16px; height:16px; ">
  330. <caption/>
  331. <script type="javascript" ev:event="DOMActivate">
  332. <![CDATA[
  333. if(chk_tdmdrug.visible){
  334. chk_tdmdrug.visible = false;
  335. }else {
  336. submit("TRADB62202"); //TDM 기준정보 데이타 가져오기 (ast.adbmtdmbase)
  337. astfAddCombo("/root/hidden/tdmdruginfo/testlist", "item", "testcd,testnm", "A,전체선택"); //2010-01-25 진료과 멀티선택 가능하도록 추가처리
  338. chk_tdmdrug.visible = true;
  339. }
  340. model.refresh();
  341. ]]>
  342. </script>
  343. </button>
  344. <caption id="caption7" class="search_name" style="left:5px; top:36px; width:86px; height:17px; ">회신일자 :</caption>
  345. <input id="ipt_endrepldd" ref="/root/hidden/srchinfo/endrepldd" class="input_search" inputtype="date" style="left:226px; top:35px; width:85px; height:19px; "/>
  346. <input id="ipt_startrepldd" ref="/root/hidden/srchinfo/startrepldd" class="input_search" inputtype="date" style="left:101px; top:35px; width:85px; height:19px; "/>
  347. <caption id="caption8" class="search_name" style="left:355px; top:8px; width:80px; height:17px; ">의뢰구분:</caption>
  348. <select1 id="combo2" ref="/root/hidden/srchinfo/formcd" class="combo_search" appearance="minimal" style="left:355px; top:35px; width:125px; height:19px; ">
  349. <choices>
  350. <item>
  351. <label>ADR보고</label>
  352. <value>0000000693</value>
  353. </item>
  354. </choices>
  355. <script type="javascript" ev:event="xforms-value-changed">
  356. <![CDATA[
  357. //2008-10-30 TDM 선택시에만 [의뢰일자/임병접수일자]comboboax 활성화 && [임병접수일자]-[미의뢰만] checkbox 활성화되도록 처리
  358. // grd_reqlist.colhidden(19) = true; //검사결과
  359. // grd_reqlist.colhidden(25) = true; //채혈일시
  360. // grd_reqlist.colhidden(26) = true; //임병접수일시
  361. model.setValue("/root/hidden/srchinfo/lisddchk","R"); // 의뢰일자/임병접수일자 구분 (의뢰일자기본)
  362. model.setValue("/root/hidden/srchinfo/tdmreqnochk",""); // 미의뢰만 Check (미Check기본)
  363. // if ((model.getValue("/root/hidden/srchinfo/formcd") == "0000000769" ) && (model.getValue("/root/hidden/srchinfo/srchflag") == "1" )) {
  364. // cmb_lisddchk.visible = true; //의뢰일자/임병일자 구분 - 활성화
  365. // if (model.getValue("/root/hidden/srchinfo/lisddchk") == "L") { // 임병접수일자 일경우만 [미의뢰만] - 활성화
  366. // group1.attribute("visibility") = "visible"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  367. // }else{
  368. // group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  369. // }
  370. // }else{
  371. // cmb_lisddchk.visible = false; //의뢰일자/임병일자 구분 - 비활성화
  372. // group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  373. // }
  374. if(model.getValue("/root/hidden/srchinfo/formcd") == "0000000693" ) {
  375. fChoiADRRept("1");
  376. } else {
  377. fChoiADRRept("2");
  378. }
  379. ]]>
  380. </script>
  381. </select1>
  382. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; ">
  383. <caption>조회</caption>
  384. <script type="javascript" ev:event="DOMActivate">
  385. <![CDATA[
  386. fReqMngtData(); //의뢰 조회
  387. //2008-10-30 TDM 선택시에만 [임병접수일자]조회시 검사결과/채혈일시/임병접수일시 보여지도록
  388. if (model.getValue("/root/hidden/srchinfo/lisddchk") == "L"){
  389. //grd_reqlist.colhidden(19) = false; //검사결과
  390. //grd_reqlist.colhidden(25) = false; //채혈일시
  391. //grd_reqlist.colhidden(26) = false; //임병접수일시
  392. // 2010-01-19 [검체접수일자]변경시 Group2 활성화 시킴. Copy Node
  393. model.copyNode("/root/main/listreqlistinfo" , "/root/main/reqlist");
  394. model.resetInstanceNode( "/root/main/reqlist" );
  395. fCnstResn(); //의뢰이유를 코드명으로 나열하기
  396. model.refresh();
  397. }
  398. // 20110907_laboru_약제부가 아니면 회신약사 컬럼을 회신자로 변경
  399. grd_reqlist.valueMatrix(0, grd_reqlist.colRef("replpharmst")) = "회신자";
  400. ]]>
  401. </script>
  402. </button>
  403. <select1 id="rdo_srch" ref="/root/hidden/srchinfo/srchflag" class="radio_search" appearance="full" vcellspacing="12" overflow="visible" style="left:5px; top:2px; width:15px; height:56px; border-style:none; ">
  404. <choices>
  405. <item>
  406. <label/>
  407. <value>1</value>
  408. </item>
  409. <item>
  410. <label/>
  411. <value>2</value>
  412. </item>
  413. </choices>
  414. <script type="javascript" ev:event="xforms-value-changed">
  415. <![CDATA[
  416. //2008-10-30 TDM 선택시에만 [의뢰일자/임병접수일자]comboboax 활성화 && [임병접수일자]-[미의뢰만] checkbox 활성화되도록 처리
  417. grd_reqlist.colhidden(19) = true; //검사결과
  418. grd_reqlist.colhidden(24) = true; //채혈일시
  419. grd_reqlist.colhidden(25) = true; //임병접수일시
  420. model.setValue("/root/hidden/srchinfo/lisddchk","R"); // 의뢰일자/임병접수일자 구분 (의뢰일자기본)
  421. model.setValue("/root/hidden/srchinfo/tdmreqnochk",""); // 미의뢰만 Check (미Check기본)
  422. if ((model.getValue("/root/hidden/srchinfo/formcd") == "0000000769" ) && (model.getValue("/root/hidden/srchinfo/srchflag") == "1" )) {
  423. cmb_lisddchk.visible = true; //의뢰일자/임병일자 구분 - 활성화
  424. if (model.getValue("/root/hidden/srchinfo/lisddchk") == "L") { // 임병접수일자 일경우만 [미의뢰만] - 활성화
  425. //chk_tdmreqnochk.visible = true; //2010-01-19 group1 로 대체됨
  426. group1.attribute("visibility") = "visible"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  427. }else{
  428. //chk_tdmreqnochk.visible = false; //2010-01-19 group1 로 대체됨
  429. group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  430. }
  431. }else{
  432. cmb_lisddchk.visible = false; //의뢰일자/임병일자 구분
  433. //chk_tdmreqnochk.visible = false; // 미의뢰만 구분 //2010-01-19 group1 로 대체됨
  434. group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  435. }
  436. ]]>
  437. </script>
  438. </select1>
  439. <select id="chk_pidonly" ref="/root/hidden/srchinfo/pidonly" overflow="visible" appearance="full" style="left:1097px; top:35px; width:15px; height:20px; border-style:none; ">
  440. <choices>
  441. <item>
  442. <label/>
  443. <value>Y</value>
  444. </item>
  445. </choices>
  446. <script type="javascript" ev:event="xforms-select">
  447. <![CDATA[
  448. ipt_startreqdd.disabled = true;
  449. ipt_endreqdd.disabled = true;
  450. ipt_startrepldd.disabled = true;
  451. ipt_endrepldd.disabled = true;
  452. model.refresh();
  453. ]]>
  454. </script>
  455. <script type="javascript" ev:event="xforms-deselect">
  456. <![CDATA[
  457. ipt_startreqdd.disabled = false;
  458. ipt_endreqdd.disabled = false;
  459. ipt_startrepldd.disabled = false;
  460. ipt_endrepldd.disabled = false;
  461. model.refresh();
  462. ]]>
  463. </script>
  464. </select>
  465. <input id="input1" ref="/root/hidden/srchinfo/startreqtm" class="input_search" format="hh:nn" style="left:186px; top:5px; width:35px; height:19px; "/>
  466. <input id="input4" ref="/root/hidden/srchinfo/endreqtm" class="input_search" format="hh:nn" style="left:311px; top:5px; width:35px; height:19px; "/>
  467. <input id="input5" ref="/root/hidden/srchinfo/startrepltm" class="input_search" format="hh:nn" style="left:186px; top:35px; width:35px; height:19px; "/>
  468. <input id="input6" ref="/root/hidden/srchinfo/endrepltm" class="input_search" format="hh:nn" style="left:311px; top:35px; width:35px; height:19px; "/>
  469. <input id="ipt_deptnm" ref="/root/hidden/srchinfo/reqdeptcdnm" class="input_search" disabled="true" style="left:745px; top:7px; width:110px; height:19px; "/>
  470. <button id="button4" class="icon_search" style="left:860px; top:10px; width:16px; height:16px; ">
  471. <caption/>
  472. <script type="javascript" ev:event="DOMActivate">
  473. <![CDATA[
  474. if(chk_dept.visible){
  475. chk_dept.visible = false;
  476. }else {
  477. chk_dept.visible = true;
  478. }
  479. model.refresh();
  480. ]]>
  481. </script>
  482. </button>
  483. <input id="ipt_deptcd" ref="/root/hidden/srchinfo/reqdeptcd" class="input_search" disabled="true" visibility="hidden" style="left:730px; top:10px; width:15px; height:19px; "/>
  484. </group>
  485. <button id="button7" class="btn2_letter2" style="left:1145px; top:70px; width:42px; height:19px; ">
  486. <caption>엑셀</caption>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  490. grd_reqlist.saveExcel(file);
  491. ]]>
  492. </script>
  493. </button>
  494. <datagrid id="grd_reqlist" nodeset="/root/main/reqlist/reqlist" scroll="both" allowselection="true" allowuserresize="true" autoresize="false" backcoloralternate="#f0f0f0" caption="cnstseqno^상태^환자번호^성명^cretno^orddeptcd^prcpgenrflag^의뢰일자^회신일자^회신약사^의뢰구분^의뢰구분^병실^Age^Sex^rrgstno^환자상태^주상병^내원/입원일^재원일수^의뢰약물^결과^의뢰과^의뢰자^의뢰이유^전달사항^채혈일시^임병접수일시^의뢰번호^reqdeptcd^requserid^cnstcnts1^prcpno^prcpcd^rgstseqno^sugastat^jamonstat^의뢰시간^회신시간^1차평가 일자^1차평가 일시^1차평가자^처방코드^약품명^유해증상^인과관계^심각도^발현정도^사례내용^기타의견^반응내용^문헌내용" colsep="^" colwidth="100, 60, 86, 61, 100, 100, 100, 84, 84, 63, 95, 139, 59, 30, 30, 100, 58, 100, 86, 57, 161, 82, 103, 58, 100, 119, 116, 121, 110, 100, 100, 100, 100, 100, 100, 100, 100, 67, 70, 80, 80, 75, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:95px; width:1194px; height:640px; ">
  495. <col ref="cnstseqno" visibility="hidden"/>
  496. <col ref="stat" style="text-align:center; "/>
  497. <col ref="pid" style="left:180px; top:23px; width:86px; height:23px; "/>
  498. <col ref="hngnm"/>
  499. <col ref="cretno" visibility="hidden"/>
  500. <col ref="orddeptcd" visibility="hidden"/>
  501. <col ref="prcpgenrflag" visibility="hidden"/>
  502. <col ref="reqdd" format="yyyy-mm-dd" style="left:118px; top:20px; width:100px; height:20px; "/>
  503. <col ref="repldd" format="yyyy-mm-dd"/>
  504. <col ref="replpharmst"/>
  505. <col disabled="true" ref="formcd" type="combo" visibility="hidden">
  506. <choices>
  507. <item>
  508. <label>전체</label>
  509. <value>-</value>
  510. </item>
  511. <item>
  512. <label>ACS자문의뢰</label>
  513. <value>0000000964</value>
  514. </item>
  515. <item>
  516. <label>TDM자문의뢰</label>
  517. <value>0000000769</value>
  518. </item>
  519. <item>
  520. <label>약품식별의뢰</label>
  521. <value>0000000768</value>
  522. </item>
  523. <item>
  524. <label>NST의뢰(PN)</label>
  525. <value>0000000770</value>
  526. </item>
  527. <item>
  528. <label>ADR보고</label>
  529. <value>0000000693</value>
  530. </item>
  531. <item>
  532. <label>복약지도의뢰</label>
  533. <value>0000000771</value>
  534. </item>
  535. </choices>
  536. </col>
  537. <col disabled="true" ref="formcdnm" type="combo">
  538. <choices>
  539. <item>
  540. <label>전체</label>
  541. <value>-</value>
  542. </item>
  543. <item>
  544. <label>ACS자문의뢰</label>
  545. <value>0000000964</value>
  546. </item>
  547. <item>
  548. <label>TDM자문의뢰</label>
  549. <value>0000000769</value>
  550. </item>
  551. <item>
  552. <label>약품식별의뢰</label>
  553. <value>0000000768</value>
  554. </item>
  555. <item>
  556. <label>NST의뢰(PN)</label>
  557. <value>0000000770</value>
  558. </item>
  559. <item>
  560. <label>ADR보고</label>
  561. <value>0000000693</value>
  562. </item>
  563. <item>
  564. <label>복약지도의뢰(항암)</label>
  565. <value>0000000771001</value>
  566. </item>
  567. <item>
  568. <label>복약지도의뢰(결핵)</label>
  569. <value>0000000771002</value>
  570. </item>
  571. <item>
  572. <label>복약지도의뢰(장기이식)</label>
  573. <value>0000000771003</value>
  574. </item>
  575. <item>
  576. <label>복약지도의뢰(흡입제)</label>
  577. <value>0000000771004</value>
  578. </item>
  579. <item>
  580. <label>복약지도의뢰(HIV)</label>
  581. <value>0000000771005</value>
  582. </item>
  583. <item>
  584. <label>복약지도의뢰(파킨슨)</label>
  585. <value>0000000771006</value>
  586. </item>
  587. <item>
  588. <label>복약지도의뢰(퇴원)</label>
  589. <value>0000000771007</value>
  590. </item>
  591. <item>
  592. <label>복약지도의뢰(기타)</label>
  593. <value>0000000771008</value>
  594. </item>
  595. <item>
  596. <label>복약지도의뢰(복막투석)</label>
  597. <value>0000000771009</value>
  598. </item>
  599. <item>
  600. <label>복약지도의뢰(항응고제)</label>
  601. <value>00000007710020</value>
  602. </item>
  603. </choices>
  604. </col>
  605. <col ref="wardnm"/>
  606. <col ref="agesex" style="left:1151px; top:23px; width:30px; height:23px; "/>
  607. <col ref="sexnew"/>
  608. <col ref="rrgstno" visibility="hidden"/>
  609. <col ref="patstat" style="text-align:center; "/>
  610. <col ref="diagcd"/>
  611. <col ref="orddd" format="yyyy-mm-dd"/>
  612. <col ref="inhospday"/>
  613. <col ref="reqdrug"/>
  614. <col ref="result" visibility="hidden"/>
  615. <col ref="reqdeptnm"/>
  616. <col ref="requsernm"/>
  617. <col ref="reqresn" style="left:951px; top:20px; width:100px; height:20px; "/>
  618. <col ref="reqcomment"/>
  619. <col ref="bcolldt" visibility="hidden" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  620. <col ref="spcacptdt" visibility="hidden" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  621. <col ref="formrecseq"/>
  622. <col ref="reqdeptcd" visibility="hidden"/>
  623. <col ref="requserid" visibility="hidden"/>
  624. <col ref="cnstcnts1" visibility="hidden"/>
  625. <col ref="prcpno" visibility="hidden"/>
  626. <col ref="prcpcd" visibility="hidden"/>
  627. <col ref="rgstseqno" visibility="hidden"/>
  628. <col ref="sugastat" visibility="hidden"/>
  629. <col ref="jamonstat" visibility="hidden"/>
  630. <col ref="reqhm" format="hh:nn" style="text-align:center; "/>
  631. <col ref="replhm" format="hh:nn" style="text-align:center; "/>
  632. <col ref="fstvaludd" format="yyyy-mm-dd" style="text-align:center; "/>
  633. <col ref="fstvalutm" format="hh:nn" style="text-align:center; "/>
  634. <col ref="fstvalunm" style="text-align:center; "/>
  635. <col ref="drugcd"/>
  636. <col ref="drugnm"/>
  637. <col ref="symp"/>
  638. <col ref="casrslt"/>
  639. <col ref="serigrde"/>
  640. <col ref="sympmnftgrde"/>
  641. <col ref="advscnts"/>
  642. <col ref="cmt"/>
  643. <col ref="adrcntssmm"/>
  644. <col ref="srchcnts"/>
  645. <script type="javascript" ev:event="ondblclick">
  646. <![CDATA[
  647. if ( grd_reqlist.isCell(event.target) && grd_reqlist.row >= grd_reqlist.fixedRows ) {
  648. //기록된 서식
  649. var cnstseqno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/cnstseqno" );
  650. var formrecseq = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/formrecseq" );
  651. var formcd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/formcd" );
  652. var pid = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/pid" );
  653. var cretno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/cretno" );
  654. var prcpgenrflag = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/prcpgenrflag" );
  655. var rgstseqno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/rgstseqno" );
  656. var reqdd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/reqdd" );
  657. var orddd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/orddd" );
  658. var btnflag = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/stat" ); // 20100114_laboru_회신버튼 비활성화 위해서.
  659. var repluseridcheck = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/repluseridcheck" ); // 20110907_laboru_회신자가 약사인지 확인
  660. setParameter("openmode", "reccnstform");
  661. setParameter("formrecseq", formrecseq); //서식기록테이블의 formrecseq(기록순번)
  662. setParameter("pid", pid);
  663. setParameter("rgstseqno", rgstseqno);
  664. model.setValue("/root/temp/cnstinfo/cnstseqno",cnstseqno);
  665. model.setValue("/root/temp/cnstinfo/formrecseq", formrecseq);
  666. model.setValue("/root/temp/cnstinfo/pid", pid);
  667. model.setValue("/root/temp/cnstinfo/cretno", cretno);
  668. model.setValue("/root/temp/cnstinfo/prcpgenrflag", prcpgenrflag);
  669. model.setValue("/root/temp/cnstinfo/rgstseqno", rgstseqno);
  670. model.setValue("/root/temp/cnstinfo/cnstdd", reqdd);
  671. model.setValue("/root/temp/cnstinfo/orddd", orddd);
  672. model.setValue("/root/temp/cnstinfo/formcd", formcd);
  673. model.setValue("/root/temp/cnstinfo/cnsttype","ast"); // 약품식별회신을 위한 변수 설정
  674. // 20110907_laboru_회신자가 약사인지 여부 추가
  675. model.makeValue("/root/temp/cnstinfo/repluseridcheck", repluseridcheck);
  676. //setParameter("userdeptcd", "3242100000");
  677. //setParameter("replcnts" , "");
  678. //setParameter("overwrite" , "false");
  679. if(btnflag == "회신확정") { // 20100114_laboru_회신버튼 비활성화 위해서.
  680. model.setValue("/root/temp/cnstinfo/btnreplflag", "Y");
  681. } else {
  682. model.setValue("/root/temp/cnstinfo/btnreplflag", "N");
  683. }
  684. //********************************* 해당 의뢰건을 의뢰확정 상태로 변경 *********************************
  685. if(model.getValue("/root/hidden/chkpid/pharm/pharmflag") == "Y") { // 20100119_laboru_약사확인
  686. if(formrecseq != ""){
  687. var success = submit("TXADC00101");
  688. if(success){
  689. if(model.getValue("/root/hidden/cnststatinfo/cnststat") == "04")
  690. messageBox("취소된 의뢰건","I009");
  691. }
  692. }
  693. }
  694. //***********************************************************************************************
  695. if ( formcd =="0000000964"){ //ACS
  696. modal("SMADC00200", 1, 0, 0 ,"SMADC00200","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  697. }
  698. if ( formcd =="0000000769"){ //TDM
  699. // 미의뢰 회신용 변수 설정
  700. /* 임시로 막음 2008-12-16
  701. if(formrecseq == ""){
  702. var prcpno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/prcpno" );
  703. var prcpcd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/prcpcd" );
  704. model.makeValue("/root/temp/cnstinfo/prcpno", prcpno);
  705. model.makeValue("/root/temp/cnstinfo/prcpcd", prcpcd);
  706. }
  707. */
  708. if(formrecseq != ""){
  709. modal("SMADC00900", 1, 0, 0 ,"SMADC00900","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  710. }
  711. }
  712. if ( formcd =="0000000768"){ //약품식별
  713. modal("SMADC01600", 1, 0, 0 ,"SMADC01600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  714. }
  715. if ( formcd =="0000000770"){ //NST
  716. model.setValue("/root/temp/cnstinfo/formcd",formcd); // EN, PN구분을 위한 formcd 설정
  717. modal("SMADC02600", 1, 0, 0 ,"SMADC02600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  718. }
  719. if ( formcd =="0000000693"){ //ADR
  720. //modal("SMADC00600", 1, 0, 0 ,"SMADC00600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  721. open("SMADC00600", 1, 0, 0 ,"SMADC00600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  722. }
  723. if ( formcd =="0000000771"){ //복약상담
  724. var cnstcnts1 = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/cnstcnts1" );
  725. var hcnt =0 ; // 복약상담 의뢰약물 항암제
  726. var bcnt =0 ; // 복약상담 의뢰약물 항암제
  727. for ( i = 0; i < cnstcnts1.length; i+=2 ) {
  728. if (cnstcnts1.substr(i,1) != "" && cnstcnts1.substr(i,1)=="1") {
  729. hcnt = hcnt + 1
  730. } else if (cnstcnts1.substr(i,1) != "" && cnstcnts1.substr(i,1)=="4") {
  731. bcnt = bcnt + 1
  732. }
  733. }
  734. // alert("cnstcnts1 : " + cnstcnts1);
  735. if (hcnt>0) { // 복약상담회신서(항암제)
  736. //alert ("복약상담회신서(항암제) 준비중입니다");
  737. modal("SMADC03000", 1, 0, 0 ,"SMADC03000","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  738. } else if (bcnt>0) { // 복약상담회신서(흡입제)
  739. modal("SMADC02700", 1, 0, 0 ,"SMADC02700","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  740. } else { // 복약상담회신서(일반)
  741. modal("SMADC02800", 1, 0, 0 ,"SMADC02800","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  742. }
  743. }
  744. // // 2009-02-05 복약상담(일반(-formcd)/흡입제(-formcd+002)/항암(formcd+003)) 구분
  745. // if ( formcdnm =="0000000771"){ //복약상담
  746. // modal("SMADC02800", 1, 0, 0 ,"SMADC02800","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  747. // }
  748. // if ( formcdnm =="0000000771002"){ //복약상담회신서(흡입제)
  749. // modal("SMADC02700", 1, 0, 0 ,"SMADC02700","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  750. // }
  751. // if ( formcdnm =="0000000771003"){ // 복약상담회신서(항암제)
  752. // modal("SMADC03000", 1, 0, 0 ,"SMADC03000","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  753. // }
  754. // modal("SSMMR01100", 1, 0, 0 ,"", "", "");
  755. //fOpenPopup();
  756. /*var formrecseq = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/formrecseq" );
  757. setParameter("openmode", "deptcnstform");
  758. setParameter("formrecseq", formrecseq);
  759. setParameter("overwrite", "false");
  760. setParameter("replcnts", "");
  761. modal("SSMMR01100", 1, 0, 0, "", "", "");*/
  762. btn_sea.dispatch("DOMActivate");
  763. }
  764. ]]>
  765. </script>
  766. <script type="javascript" ev:event="onaftersort">
  767. <![CDATA[
  768. // 소트 후 인스턴스 정리
  769. grd_reqlist.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  770. ]]>
  771. </script>
  772. </datagrid>
  773. </group>
  774. </xhtml:body>
  775. </xhtml:html>