SMADC00101_ADR의뢰관리.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  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. <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>0000000693</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 guideline="1,1209;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  242. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">의뢰관리</caption>
  243. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1187px; height:747px; ">
  244. <group id="group2" style="left:0px; top:0px; width:1183px; height:63px; vertical-align:top; ">
  245. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:1169px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  246. <caption id="caption3" class="search_name" style="left:650px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  247. <input id="input3" ref="/root/hidden/srchinfo/reqpid" class="input_search" style="left:960px; top:35px; width:98px; height:19px; ">
  248. <script type="javascript" ev:event="onkeydown">
  249. <![CDATA[
  250. inputEnterKey("btn_sea","DOMActivate");
  251. ]]>
  252. </script>
  253. </input>
  254. <button id="button11" class="icon_search" style="left:1063px; top:35px; width:16px; height:16px; ">
  255. <caption/>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "", "");
  259. if(model.getValue("/root/main/patinfo/patinfolist/pid") != ""){
  260. model.setValue("/root/hidden/srchinfo/reqpid" ,model.getValue("/root/main/patinfo/patinfolist/pid"));
  261. //model.setValue("/root/send/srchinfo/srchhngnm",model.getValue("/root/init/patinfo/hngnm"));
  262. model.refresh();
  263. }
  264. ]]>
  265. </script>
  266. </button>
  267. <caption id="caption1" class="search_name" style="left:481px; top:9px; width:65px; height:17px; ">선택 :</caption>
  268. <select id="checkbox3" ref="/root/hidden/srchinfo/recvyn" class="checkbox_search" overflow="visible" appearance="full" style="left:545px; top:10px; width:104px; height:15px; border-style:none; ">
  269. <choices>
  270. <item>
  271. <label>회신 환자 제외</label>
  272. <value>Y</value>
  273. </item>
  274. </choices>
  275. </select>
  276. <caption id="caption2" class="search_name" style="left:865px; top:9px; width:73px; height:17px; ">병동 :</caption>
  277. <select1 id="rdo_ioflag" ref="/root/hidden/srchinfo/ioflag" class="radio_search" appearance="full" cols="4" rows="1" overflow="visible" style="left:475px; top:35px; width:175px; height:15px; border-style:none; ">
  278. <choices>
  279. <item>
  280. <label>외래</label>
  281. <value>O</value>
  282. </item>
  283. <item>
  284. <label>입원</label>
  285. <value>I</value>
  286. </item>
  287. <item>
  288. <label>응급</label>
  289. <value>E</value>
  290. </item>
  291. <item>
  292. <label>전체</label>
  293. <value>-</value>
  294. </item>
  295. </choices>
  296. <script type="javascript" ev:event="xforms-value-changed">
  297. <![CDATA[
  298. fChgIOFlag();
  299. ]]>
  300. </script>
  301. </select1>
  302. <caption id="caption4" class="search_name" style="left:865px; top:35px; width:86px; height:17px; ">등록번호 :</caption>
  303. <caption id="caption5" class="search_name" style="left:5px; top:6px; width:86px; height:17px; ">의뢰일자 :</caption>
  304. <input id="ipt_startreqdd" ref="/root/hidden/srchinfo/startreqdd" class="input_search" inputtype="date" style="left:101px; top:5px; width:85px; height:19px; "/>
  305. <input id="ipt_endreqdd" ref="/root/hidden/srchinfo/endreqdd" class="input_search" inputtype="date" style="left:226px; top:5px; width:85px; height:19px; "/>
  306. <select1 id="combo1" ref="/root/hidden/srchinfo/reqwardcd" class="combo_search" appearance="minimal" cols="2" style="left:960px; top:8px; width:100px; height:19px; ">
  307. <choices>
  308. <itemset nodeset="/root/hidden/deptlist/ward">
  309. <label ref="wardnm"/>
  310. <value ref="wardcd"/>
  311. </itemset>
  312. </choices>
  313. <script type="javascript" ev:event="xforms-value-changed">
  314. <![CDATA[
  315. if(model.getValue("/root/hidden/srchinfo/reqwardcd") != ""){
  316. rdo_ioflag.value = "I";
  317. } else rdo_ioflag.value = "-";
  318. model.refresh();
  319. ]]>
  320. </script>
  321. </select1>
  322. <line id="line13" style="x1:1100px; y1:5px; x2:1100px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  323. <line id="line2" class="line_2" style="x1:15px; y1:30px; x2:1098px; y2:30px; "/>
  324. <button id="button1" class="icon_search" style="left:845px; top:35px; width:16px; height:16px; ">
  325. <caption/>
  326. <script type="javascript" ev:event="DOMActivate">
  327. <![CDATA[
  328. if(chk_tdmdrug.visible){
  329. chk_tdmdrug.visible = false;
  330. }else {
  331. submit("TRADB62202"); //TDM 기준정보 데이타 가져오기 (ast.adbmtdmbase)
  332. astfAddCombo("/root/hidden/tdmdruginfo/testlist", "item", "testcd,testnm", "A,전체선택"); //2010-01-25 진료과 멀티선택 가능하도록 추가처리
  333. chk_tdmdrug.visible = true;
  334. }
  335. model.refresh();
  336. ]]>
  337. </script>
  338. </button>
  339. <caption id="caption7" class="search_name" style="left:5px; top:36px; width:86px; height:17px; ">회신일자 :</caption>
  340. <input id="ipt_endrepldd" ref="/root/hidden/srchinfo/endrepldd" class="input_search" inputtype="date" style="left:226px; top:35px; width:85px; height:19px; "/>
  341. <input id="ipt_startrepldd" ref="/root/hidden/srchinfo/startrepldd" class="input_search" inputtype="date" style="left:101px; top:35px; width:85px; height:19px; "/>
  342. <caption id="caption8" class="search_name" style="left:355px; top:8px; width:80px; height:17px; ">의뢰구분:</caption>
  343. <select1 id="combo2" ref="/root/hidden/srchinfo/formcd" class="combo_search" disabled="true" appearance="minimal" style="left:355px; top:35px; width:105px; height:19px; ">
  344. <choices>
  345. <item>
  346. <label>ADR보고</label>
  347. <value>0000000693</value>
  348. </item>
  349. </choices>
  350. <script type="javascript" ev:event="xforms-value-changed">
  351. <![CDATA[
  352. //2008-10-30 TDM 선택시에만 [의뢰일자/임병접수일자]comboboax 활성화 && [임병접수일자]-[미의뢰만] checkbox 활성화되도록 처리
  353. // grd_reqlist.colhidden(19) = true; //검사결과
  354. // grd_reqlist.colhidden(25) = true; //채혈일시
  355. // grd_reqlist.colhidden(26) = true; //임병접수일시
  356. model.setValue("/root/hidden/srchinfo/lisddchk","R"); // 의뢰일자/임병접수일자 구분 (의뢰일자기본)
  357. model.setValue("/root/hidden/srchinfo/tdmreqnochk",""); // 미의뢰만 Check (미Check기본)
  358. // if ((model.getValue("/root/hidden/srchinfo/formcd") == "0000000769" ) && (model.getValue("/root/hidden/srchinfo/srchflag") == "1" )) {
  359. // cmb_lisddchk.visible = true; //의뢰일자/임병일자 구분 - 활성화
  360. // if (model.getValue("/root/hidden/srchinfo/lisddchk") == "L") { // 임병접수일자 일경우만 [미의뢰만] - 활성화
  361. // group1.attribute("visibility") = "visible"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  362. // }else{
  363. // group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  364. // }
  365. // }else{
  366. // cmb_lisddchk.visible = false; //의뢰일자/임병일자 구분 - 비활성화
  367. // group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  368. // }
  369. if(model.getValue("/root/hidden/srchinfo/formcd") == "0000000693" ) {
  370. fChoiADRRept("1");
  371. } else {
  372. fChoiADRRept("2");
  373. }
  374. ]]>
  375. </script>
  376. </select1>
  377. <button id="btn_sea" class="btn1_letter2" style="left:1110px; top:20px; width:56px; height:22px; ">
  378. <caption>조회</caption>
  379. <script type="javascript" ev:event="DOMActivate">
  380. <![CDATA[
  381. fReqMngtData(); //의뢰 조회
  382. //2008-10-30 TDM 선택시에만 [임병접수일자]조회시 검사결과/채혈일시/임병접수일시 보여지도록
  383. if (model.getValue("/root/hidden/srchinfo/lisddchk") == "L"){
  384. //grd_reqlist.colhidden(19) = false; //검사결과
  385. //grd_reqlist.colhidden(25) = false; //채혈일시
  386. //grd_reqlist.colhidden(26) = false; //임병접수일시
  387. // 2010-01-19 [검체접수일자]변경시 Group2 활성화 시킴. Copy Node
  388. model.copyNode("/root/main/listreqlistinfo" , "/root/main/reqlist");
  389. model.resetInstanceNode( "/root/main/reqlist" );
  390. fCnstResn(); //의뢰이유를 코드명으로 나열하기
  391. model.refresh();
  392. }
  393. // 20110907_laboru_약제부가 아니면 회신약사 컬럼을 회신자로 변경
  394. grd_reqlist.valueMatrix(0, grd_reqlist.colRef("replpharmst")) = "회신자";
  395. ]]>
  396. </script>
  397. </button>
  398. <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; ">
  399. <choices>
  400. <item>
  401. <label/>
  402. <value>1</value>
  403. </item>
  404. <item>
  405. <label/>
  406. <value>2</value>
  407. </item>
  408. </choices>
  409. <script type="javascript" ev:event="xforms-value-changed">
  410. <![CDATA[
  411. //2008-10-30 TDM 선택시에만 [의뢰일자/임병접수일자]comboboax 활성화 && [임병접수일자]-[미의뢰만] checkbox 활성화되도록 처리
  412. grd_reqlist.colhidden(19) = true; //검사결과
  413. grd_reqlist.colhidden(24) = true; //채혈일시
  414. grd_reqlist.colhidden(25) = true; //임병접수일시
  415. model.setValue("/root/hidden/srchinfo/lisddchk","R"); // 의뢰일자/임병접수일자 구분 (의뢰일자기본)
  416. model.setValue("/root/hidden/srchinfo/tdmreqnochk",""); // 미의뢰만 Check (미Check기본)
  417. if ((model.getValue("/root/hidden/srchinfo/formcd") == "0000000769" ) && (model.getValue("/root/hidden/srchinfo/srchflag") == "1" )) {
  418. cmb_lisddchk.visible = true; //의뢰일자/임병일자 구분 - 활성화
  419. if (model.getValue("/root/hidden/srchinfo/lisddchk") == "L") { // 임병접수일자 일경우만 [미의뢰만] - 활성화
  420. //chk_tdmreqnochk.visible = true; //2010-01-19 group1 로 대체됨
  421. group1.attribute("visibility") = "visible"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  422. }else{
  423. //chk_tdmreqnochk.visible = false; //2010-01-19 group1 로 대체됨
  424. group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  425. }
  426. }else{
  427. cmb_lisddchk.visible = false; //의뢰일자/임병일자 구분
  428. //chk_tdmreqnochk.visible = false; // 미의뢰만 구분 //2010-01-19 group1 로 대체됨
  429. group1.attribute("visibility") = "hidden"; //2010-01-19 검체접수일자 From시간/To시간/의뢰-미의뢰 추가
  430. }
  431. ]]>
  432. </script>
  433. </select1>
  434. <select id="chk_pidonly" ref="/root/hidden/srchinfo/pidonly" overflow="visible" appearance="full" style="left:1082px; top:35px; width:15px; height:20px; border-style:none; ">
  435. <choices>
  436. <item>
  437. <label/>
  438. <value>Y</value>
  439. </item>
  440. </choices>
  441. <script type="javascript" ev:event="xforms-select">
  442. <![CDATA[
  443. ipt_startreqdd.disabled = true;
  444. ipt_endreqdd.disabled = true;
  445. ipt_startrepldd.disabled = true;
  446. ipt_endrepldd.disabled = true;
  447. model.refresh();
  448. ]]>
  449. </script>
  450. <script type="javascript" ev:event="xforms-deselect">
  451. <![CDATA[
  452. ipt_startreqdd.disabled = false;
  453. ipt_endreqdd.disabled = false;
  454. ipt_startrepldd.disabled = false;
  455. ipt_endrepldd.disabled = false;
  456. model.refresh();
  457. ]]>
  458. </script>
  459. </select>
  460. <input id="input1" ref="/root/hidden/srchinfo/startreqtm" class="input_search" format="hh:nn" style="left:186px; top:5px; width:35px; height:19px; "/>
  461. <input id="input4" ref="/root/hidden/srchinfo/endreqtm" class="input_search" format="hh:nn" style="left:311px; top:5px; width:35px; height:19px; "/>
  462. <input id="input5" ref="/root/hidden/srchinfo/startrepltm" class="input_search" format="hh:nn" style="left:186px; top:35px; width:35px; height:19px; "/>
  463. <input id="input6" ref="/root/hidden/srchinfo/endrepltm" class="input_search" format="hh:nn" style="left:311px; top:35px; width:35px; height:19px; "/>
  464. <input id="ipt_deptnm" ref="/root/hidden/srchinfo/reqdeptcdnm" class="input_search" disabled="true" style="left:730px; top:7px; width:110px; height:19px; "/>
  465. <button id="button4" class="icon_search" style="left:845px; top:10px; width:16px; height:16px; ">
  466. <caption/>
  467. <script type="javascript" ev:event="DOMActivate">
  468. <![CDATA[
  469. if(chk_dept.visible){
  470. chk_dept.visible = false;
  471. }else {
  472. chk_dept.visible = true;
  473. }
  474. model.refresh();
  475. ]]>
  476. </script>
  477. </button>
  478. <input id="ipt_deptcd" ref="/root/hidden/srchinfo/reqdeptcd" class="input_search" disabled="true" visibility="hidden" style="left:715px; top:10px; width:15px; height:19px; "/>
  479. </group>
  480. <button id="button7" class="btn2_letter2" style="left:1110px; top:70px; width:42px; height:19px; ">
  481. <caption>엑셀</caption>
  482. <script type="javascript" ev:event="DOMActivate">
  483. <![CDATA[
  484. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  485. grd_reqlist.saveExcel(file);
  486. ]]>
  487. </script>
  488. </button>
  489. <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:5px; top:92px; width:1177px; height:648px; ">
  490. <col ref="cnstseqno" visibility="hidden"/>
  491. <col ref="stat" style="text-align:center; "/>
  492. <col ref="pid" style="left:180px; top:23px; width:86px; height:23px; "/>
  493. <col ref="hngnm"/>
  494. <col ref="cretno" visibility="hidden"/>
  495. <col ref="orddeptcd" visibility="hidden"/>
  496. <col ref="prcpgenrflag" visibility="hidden"/>
  497. <col ref="reqdd" format="yyyy-mm-dd" style="left:118px; top:20px; width:100px; height:20px; "/>
  498. <col ref="repldd" format="yyyy-mm-dd"/>
  499. <col ref="replpharmst"/>
  500. <col disabled="true" ref="formcd" type="combo" visibility="hidden">
  501. <choices>
  502. <item>
  503. <label>전체</label>
  504. <value>-</value>
  505. </item>
  506. <item>
  507. <label>ACS자문의뢰</label>
  508. <value>0000000964</value>
  509. </item>
  510. <item>
  511. <label>TDM자문의뢰</label>
  512. <value>0000000769</value>
  513. </item>
  514. <item>
  515. <label>약품식별의뢰</label>
  516. <value>0000000768</value>
  517. </item>
  518. <item>
  519. <label>NST의뢰(PN)</label>
  520. <value>0000000770</value>
  521. </item>
  522. <item>
  523. <label>ADR보고</label>
  524. <value>0000000693</value>
  525. </item>
  526. <item>
  527. <label>복약지도의뢰</label>
  528. <value>0000000771</value>
  529. </item>
  530. </choices>
  531. </col>
  532. <col disabled="true" ref="formcdnm" type="combo">
  533. <choices>
  534. <item>
  535. <label>전체</label>
  536. <value>-</value>
  537. </item>
  538. <item>
  539. <label>ACS자문의뢰</label>
  540. <value>0000000964</value>
  541. </item>
  542. <item>
  543. <label>TDM자문의뢰</label>
  544. <value>0000000769</value>
  545. </item>
  546. <item>
  547. <label>약품식별의뢰</label>
  548. <value>0000000768</value>
  549. </item>
  550. <item>
  551. <label>NST의뢰(PN)</label>
  552. <value>0000000770</value>
  553. </item>
  554. <item>
  555. <label>ADR보고</label>
  556. <value>0000000693</value>
  557. </item>
  558. <item>
  559. <label>복약지도의뢰(항암)</label>
  560. <value>0000000771001</value>
  561. </item>
  562. <item>
  563. <label>복약지도의뢰(결핵)</label>
  564. <value>0000000771002</value>
  565. </item>
  566. <item>
  567. <label>복약지도의뢰(장기이식)</label>
  568. <value>0000000771003</value>
  569. </item>
  570. <item>
  571. <label>복약지도의뢰(흡입제)</label>
  572. <value>0000000771004</value>
  573. </item>
  574. <item>
  575. <label>복약지도의뢰(HIV)</label>
  576. <value>0000000771005</value>
  577. </item>
  578. <item>
  579. <label>복약지도의뢰(파킨슨)</label>
  580. <value>0000000771006</value>
  581. </item>
  582. <item>
  583. <label>복약지도의뢰(퇴원)</label>
  584. <value>0000000771007</value>
  585. </item>
  586. <item>
  587. <label>복약지도의뢰(기타)</label>
  588. <value>0000000771008</value>
  589. </item>
  590. <item>
  591. <label>복약지도의뢰(복막투석)</label>
  592. <value>0000000771009</value>
  593. </item>
  594. <item>
  595. <label>복약지도의뢰(항응고제)</label>
  596. <value>00000007710020</value>
  597. </item>
  598. </choices>
  599. </col>
  600. <col ref="wardnm"/>
  601. <col ref="agesex" style="left:1151px; top:23px; width:30px; height:23px; "/>
  602. <col ref="sexnew"/>
  603. <col ref="rrgstno" visibility="hidden"/>
  604. <col ref="patstat" style="text-align:center; "/>
  605. <col ref="diagcd"/>
  606. <col ref="orddd" format="yyyy-mm-dd"/>
  607. <col ref="inhospday"/>
  608. <col ref="reqdrug"/>
  609. <col ref="result" visibility="hidden"/>
  610. <col ref="reqdeptnm"/>
  611. <col ref="requsernm"/>
  612. <col ref="reqresn" style="left:951px; top:20px; width:100px; height:20px; "/>
  613. <col ref="reqcomment"/>
  614. <col ref="bcolldt" visibility="hidden" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  615. <col ref="spcacptdt" visibility="hidden" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  616. <col ref="formrecseq"/>
  617. <col ref="reqdeptcd" visibility="hidden"/>
  618. <col ref="requserid" visibility="hidden"/>
  619. <col ref="cnstcnts1" visibility="hidden"/>
  620. <col ref="prcpno" visibility="hidden"/>
  621. <col ref="prcpcd" visibility="hidden"/>
  622. <col ref="rgstseqno" visibility="hidden"/>
  623. <col ref="sugastat" visibility="hidden"/>
  624. <col ref="jamonstat" visibility="hidden"/>
  625. <col ref="reqhm" format="hh:nn" style="text-align:center; "/>
  626. <col ref="replhm" format="hh:nn" style="text-align:center; "/>
  627. <col ref="fstvaludd" format="yyyy-mm-dd" style="text-align:center; "/>
  628. <col ref="fstvalutm" format="hh:nn" style="text-align:center; "/>
  629. <col ref="fstvalunm" style="text-align:center; "/>
  630. <col ref="drugcd"/>
  631. <col ref="drugnm"/>
  632. <col ref="symp"/>
  633. <col ref="casrslt"/>
  634. <col ref="serigrde"/>
  635. <col ref="sympmnftgrde"/>
  636. <col ref="advscnts"/>
  637. <col ref="cmt"/>
  638. <col ref="adrcntssmm"/>
  639. <col ref="srchcnts"/>
  640. <script type="javascript" ev:event="ondblclick">
  641. <![CDATA[
  642. if ( grd_reqlist.isCell(event.target) && grd_reqlist.row >= grd_reqlist.fixedRows ) {
  643. //기록된 서식
  644. var cnstseqno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/cnstseqno" );
  645. var formrecseq = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/formrecseq" );
  646. var formcd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/formcd" );
  647. var pid = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/pid" );
  648. var cretno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/cretno" );
  649. var prcpgenrflag = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/prcpgenrflag" );
  650. var rgstseqno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/rgstseqno" );
  651. var reqdd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/reqdd" );
  652. var orddd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/orddd" );
  653. var btnflag = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/stat" ); // 20100114_laboru_회신버튼 비활성화 위해서.
  654. var repluseridcheck = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/repluseridcheck" ); // 20110907_laboru_회신자가 약사인지 확인
  655. setParameter("openmode", "reccnstform");
  656. setParameter("formrecseq", formrecseq); //서식기록테이블의 formrecseq(기록순번)
  657. setParameter("pid", pid);
  658. setParameter("rgstseqno", rgstseqno);
  659. model.setValue("/root/temp/cnstinfo/cnstseqno",cnstseqno);
  660. model.setValue("/root/temp/cnstinfo/formrecseq", formrecseq);
  661. model.setValue("/root/temp/cnstinfo/pid", pid);
  662. model.setValue("/root/temp/cnstinfo/cretno", cretno);
  663. model.setValue("/root/temp/cnstinfo/prcpgenrflag", prcpgenrflag);
  664. model.setValue("/root/temp/cnstinfo/rgstseqno", rgstseqno);
  665. model.setValue("/root/temp/cnstinfo/cnstdd", reqdd);
  666. model.setValue("/root/temp/cnstinfo/orddd", orddd);
  667. model.setValue("/root/temp/cnstinfo/formcd", formcd);
  668. model.setValue("/root/temp/cnstinfo/cnsttype","ast"); // 약품식별회신을 위한 변수 설정
  669. // 20110907_laboru_회신자가 약사인지 여부 추가
  670. model.makeValue("/root/temp/cnstinfo/repluseridcheck", repluseridcheck);
  671. //setParameter("userdeptcd", "3242100000");
  672. //setParameter("replcnts" , "");
  673. //setParameter("overwrite" , "false");
  674. if(btnflag == "회신확정") { // 20100114_laboru_회신버튼 비활성화 위해서.
  675. model.setValue("/root/temp/cnstinfo/btnreplflag", "Y");
  676. } else {
  677. model.setValue("/root/temp/cnstinfo/btnreplflag", "N");
  678. }
  679. //********************************* 해당 의뢰건을 의뢰확정 상태로 변경 *********************************
  680. if(model.getValue("/root/hidden/chkpid/pharm/pharmflag") == "Y") { // 20100119_laboru_약사확인
  681. if(formrecseq != ""){
  682. var success = submit("TXADC00101");
  683. if(success){
  684. if(model.getValue("/root/hidden/cnststatinfo/cnststat") == "04")
  685. messageBox("취소된 의뢰건","I009");
  686. }
  687. }
  688. }
  689. //***********************************************************************************************
  690. if ( formcd =="0000000964"){ //ACS
  691. modal("SMADC00200", 1, 0, 0 ,"SMADC00200","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  692. }
  693. if ( formcd =="0000000769"){ //TDM
  694. // 미의뢰 회신용 변수 설정
  695. /* 임시로 막음 2008-12-16
  696. if(formrecseq == ""){
  697. var prcpno = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/prcpno" );
  698. var prcpcd = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/prcpcd" );
  699. model.makeValue("/root/temp/cnstinfo/prcpno", prcpno);
  700. model.makeValue("/root/temp/cnstinfo/prcpcd", prcpcd);
  701. }
  702. */
  703. if(formrecseq != ""){
  704. modal("SMADC00900", 1, 0, 0 ,"SMADC00900","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  705. }
  706. }
  707. if ( formcd =="0000000768"){ //약품식별
  708. modal("SMADC01600", 1, 0, 0 ,"SMADC01600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  709. }
  710. if ( formcd =="0000000770"){ //NST
  711. model.setValue("/root/temp/cnstinfo/formcd",formcd); // EN, PN구분을 위한 formcd 설정
  712. modal("SMADC02600", 1, 0, 0 ,"SMADC02600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  713. }
  714. if ( formcd =="0000000693"){ //ADR
  715. //modal("SMADC00600", 1, 0, 0 ,"SMADC00600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  716. open("SMADC00600", 1, 0, 0 ,"SMADC00600","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  717. }
  718. if ( formcd =="0000000771"){ //복약상담
  719. var cnstcnts1 = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/cnstcnts1" );
  720. var hcnt =0 ; // 복약상담 의뢰약물 항암제
  721. var bcnt =0 ; // 복약상담 의뢰약물 항암제
  722. for ( i = 0; i < cnstcnts1.length; i+=2 ) {
  723. if (cnstcnts1.substr(i,1) != "" && cnstcnts1.substr(i,1)=="1") {
  724. hcnt = hcnt + 1
  725. } else if (cnstcnts1.substr(i,1) != "" && cnstcnts1.substr(i,1)=="4") {
  726. bcnt = bcnt + 1
  727. }
  728. }
  729. // alert("cnstcnts1 : " + cnstcnts1);
  730. if (hcnt>0) { // 복약상담회신서(항암제)
  731. //alert ("복약상담회신서(항암제) 준비중입니다");
  732. modal("SMADC03000", 1, 0, 0 ,"SMADC03000","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  733. } else if (bcnt>0) { // 복약상담회신서(흡입제)
  734. modal("SMADC02700", 1, 0, 0 ,"SMADC02700","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  735. } else { // 복약상담회신서(일반)
  736. modal("SMADC02800", 1, 0, 0 ,"SMADC02800","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  737. }
  738. }
  739. // // 2009-02-05 복약상담(일반(-formcd)/흡입제(-formcd+002)/항암(formcd+003)) 구분
  740. // if ( formcdnm =="0000000771"){ //복약상담
  741. // modal("SMADC02800", 1, 0, 0 ,"SMADC02800","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  742. // }
  743. // if ( formcdnm =="0000000771002"){ //복약상담회신서(흡입제)
  744. // modal("SMADC02700", 1, 0, 0 ,"SMADC02700","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  745. // }
  746. // if ( formcdnm =="0000000771003"){ // 복약상담회신서(항암제)
  747. // modal("SMADC03000", 1, 0, 0 ,"SMADC03000","/root/temp/cnstinfo", "/root/temp/cnstinfo");
  748. // }
  749. // modal("SSMMR01100", 1, 0, 0 ,"", "", "");
  750. //fOpenPopup();
  751. /*var formrecseq = model.getValue("/root/main/reqlist/reqlist["+grd_reqlist.row+"]/formrecseq" );
  752. setParameter("openmode", "deptcnstform");
  753. setParameter("formrecseq", formrecseq);
  754. setParameter("overwrite", "false");
  755. setParameter("replcnts", "");
  756. modal("SSMMR01100", 1, 0, 0, "", "", "");*/
  757. btn_sea.dispatch("DOMActivate");
  758. }
  759. ]]>
  760. </script>
  761. <script type="javascript" ev:event="onaftersort">
  762. <![CDATA[
  763. // 소트 후 인스턴스 정리
  764. grd_reqlist.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  765. ]]>
  766. </script>
  767. </datagrid>
  768. </group>
  769. </xhtml:body>
  770. </xhtml:html>