SPMMD01900_항생제Targeted therapy.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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. <![CDATA[]]>
  6. <xhtml:title>Outline View</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <ordlist1>
  12. </ordlist1>
  13. <paminfo/>
  14. <subordlist1>
  15. </subordlist1>
  16. <getdata/>
  17. <baclist/>
  18. </main>
  19. <hidden>
  20. <resnflagno>12</resnflagno>
  21. <srchpid/>
  22. </hidden>
  23. <send>
  24. <data>
  25. <singdata/>
  26. </data>
  27. <maindata/>
  28. </send>
  29. <init>
  30. <baseinfo>
  31. <initprcpgenrflagcd/>
  32. <statnm/>
  33. </baseinfo>
  34. </init>
  35. </root>
  36. </instance>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. opener.javascript.fInit();
  40. zbcfGetCodeList( new Array("M0010"), new Array("/root/init/baseinfo/initprcpgenrflagcd") );
  41. zbcfGetCodeList( new Array("L0068"), new Array("/root/init/baseinfo/statnm") );
  42. submit("TRZBC00101");
  43. // Grid MultiCheck
  44. //grd_maindaily.fixedcellcheckbox(0,0)=true;
  45. // 조회기간, Combo Box 초기화
  46. var vRsrvdd = getCurrentDate() ;
  47. vRsrvdd = vRsrvdd.toDate("YYYYMMDD");
  48. //2008.10.11 개월수 3개월에서 6개월로 수정
  49. vRsrvdd = vRsrvdd.getAddDate(-180);
  50. model.makeValue("/root/send/data/singdata/srchdate1", vRsrvdd.getDateFormat()) ;
  51. model.makeValue("/root/send/data/singdata/srchdate2", getCurrentDate()) ;
  52. model.makeValue("/root/send/data/singdata/chkcheck2", "B");
  53. model.makeValue("/root/send/data/singdata/chkcheck", "");
  54. model.makeValue("/root/send/data/singdata/chkcheck1", "");
  55. model.makeValue("/root/send/data/singdata/chkcheck3", "");
  56. model.makeValue("/root/send/data/singdata/chkcheck4", "");
  57. model.makeValue("/root/send/data/singdata/chkcheck5", "");
  58. model.makeValue("/root/send/data/singdata/chkcheck6", "");
  59. model.makeValue("/root/send/data/singdata/chkcheck7", "");
  60. model.makeValue("/root/send/data/singdata/chkcheck8", "");
  61. model.makeValue("/root/send/data/singdata/listflag", "P");//처방일, 검사일:J , 보고일:Z
  62. model.makeValue("/root/send/globalinstance/instance2", getUserInfo("dutplceinstcd") );
  63. // var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색(환자등록번호)
  64. pid = getPatientId();
  65. model.makeValue("/root/send/data/singdata/srchpid", pid );
  66. // model.makeValue("/root/send/data/singdata/srchpid", "22536" ); //khj
  67. model.refresh();
  68. //alert(pid);
  69. if ( model.getValue("/root/send/data/singdata/srchpid") != "" ) {
  70. fGetMainDailyList();
  71. if( !isNull(model.getValue("/root/main/getdata/maindailylist/prcpdd")) ){
  72. grd_maindaily.select(1,1) = true;
  73. fClickResultList(1);
  74. grd_smlno.select(1,1) = true;
  75. fGetRecommNo(1);
  76. }
  77. }
  78. ]]>
  79. </script>
  80. <submission id="TRZBC00101"/>
  81. <submission id="TRAER00806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/singdata" replace="instance" resultref="/root/main/ordlist1"/>
  82. <submission id="TRAER00850" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/maindata" replace="instance" resultref="/root/main/subresultdetail1"/>
  83. <submission id="TRMMD01606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/singdata" replace="instance" resultref="/root/main/getdata"/>
  84. </model>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  89. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  90. <script type="javascript">
  91. <![CDATA[
  92. /* @group : 결과조회
  93. * @ver : 2007.06.14
  94. * @by : 장준원
  95. * @-----------------------------------
  96. * @type : function
  97. * @access : public
  98. * @desc : 조건 메인 일자별조회 Function
  99. TRMMD01606에 srchgb=1)
  100. */
  101. function fGetMainDailyList() {
  102. // Grid 초기화
  103. model.resetInstanceNode("/root/main/ordlist1/maindailylist");
  104. model.makeValue("/root/send/data/singdata/tabflag","daily");
  105. model.makeValue("/root/send/data/singdata/srchgb","1");
  106. model.removeNodeset("/root/main/getdata");
  107. submit("TRMMD01606");
  108. if( !isNull(model.getValue("/root/main/getdata/maindailylist/prcpdd")) ){
  109. model.copyNode("/root/main/ordlist1", "/root/main/getdata");
  110. }
  111. grd_maindaily.rebuild();
  112. }
  113. /* @group : 결과조회
  114. * @ver : 2007.06.14
  115. * @by : 장준원
  116. * @----------------------------------
  117. * @type : function
  118. * @access : public
  119. * @desc : Daily 결과 상세조회 Function
  120. */
  121. function fClickResultList(row) {
  122. if ( row == 0 ) return;
  123. // if ( row > grd_maindaily.fixedRows ) {
  124. fInitial_subordlist(); // /root/main/subordlist1/subresultdetail1
  125. var loop = grd_maindaily.rows - grd_maindaily.fixedRows;
  126. for( var i = 1 ; i <= loop ; i++ ) {
  127. model.makeValue("/root/main/ordlist1/maindailylist[" + i + "]/level","3");
  128. }
  129. model.makeValue("/root/main/ordlist1/maindailylist[" + row + "]/check","Y");
  130. model.makeValue("/root/main/ordlist1/maindailylist[" + row + "]/srchpid", getPatientId());
  131. model.makeValue("/root/main/ordlist1/maindailylist[" + row + "]/dutplceinstcd", model.getValue("/root/send/globalinstance/instance2"));
  132. var nodeList = instance1.selectNodes("/root/main/ordlist1/maindailylist["+row+"]");
  133. var rCSV = getNodeListCSV(nodeList);
  134. //alert('rCSV하기전->'+rCSV);
  135. model.setValue("/root/send/maindata", rCSV);
  136. //alert(rCSV);
  137. submit("TRAER00850");
  138. // }
  139. }
  140. function fGetRecommNo(grdRow){
  141. if(grd_maindaily.rows - grd_maindaily.fixedRows >= 1 ){
  142. //opener.javascript.fRecommendedList(model.getValue("/root/hidden/resnflagno"),model.getValue("/root/main/subordlist1/subresultdetail1[" + grdRow + "]/infcrefantbiocd"));
  143. //검사결과에서 키코드조회해온값 전달해서 소분류를 조회하고 소분류 여러건 조회되어온 값을 in 으로 조회함(TRMMD01606에 srchgb=2)
  144. model.removeNodeset("root/send/data/singdata");
  145. model.makeValue("/root/send/data/singdata/srchgb","2");
  146. model.makeValue("/root/send/data/singdata/bcno" ,model.getValue("/root/main/ordlist1/maindailylist[" + grdRow + "]/bcno"));
  147. model.makeValue("/root/send/data/singdata/tclscd",model.getValue("/root/main/ordlist1/maindailylist[" + grdRow + "]/tclscd"));
  148. model.makeValue("/root/send/data/singdata/spccd",model.getValue("/root/main/ordlist1/maindailylist[" + grdRow + "]/spccd"));
  149. model.makeValue("/root/send/data/singdata/testcd",model.getValue("/root/main/ordlist1/maindailylist[" + grdRow + "]/testcd"));
  150. model.makeValue("/root/send/data/singdata/srchpid",model.getValue("/root/main/ordlist1/maindailylist[" + grdRow + "]/pid"));
  151. model.removeNodeset("/root/main/getdata");
  152. submit("TRMMD01606");
  153. model.copyNode("/root/main/baclist", "/root/main/getdata");
  154. grd_baccd.refresh();
  155. //이후 작업 불필요
  156. return;
  157. opener.model.makeNode("/root/main/antibiorecommlist");
  158. if( !isNull(model.getValue("/root/main/getdata/info/comcd")) ){
  159. copyNodesetType("/root/main/antibiorecommlist","/root/main/getdata","replace",opener.model,model);
  160. }
  161. //copyNodesetType("/root/main/antibiorecommlist","/root/main/getdata","replace",opener.model,model);
  162. opener.grd_antibiorecommlist.rebuild();
  163. opener.grd_antibiorecommlist.select(1,1) = true;
  164. opener.javascript.fDetailList(1);
  165. opener.grd_antibiorecommlist.mergeCellsFixedCols="bycol";
  166. opener.grd_antibiorecommlist.colhidden(0) = false;
  167. return;
  168. }
  169. }
  170. function fInitial_subordlist() {
  171. model.removeNodeset("/root/main/subordlist1/subresultdetail1");
  172. model.removeNodeset("/root/send/maindata"); // 일자별 그리드
  173. model.makeNode("/root/send/maindata");
  174. }
  175. function goDetail(){
  176. var curRow = grd_maindaily.mouseRow;
  177. var lastRow = grd_maindaily.rows - grd_maindaily.fixedRows;
  178. if( curRow > 0 && curRow <= lastRow ){
  179. //if ( grd_maindaily.selectedRow(0) >= grd_maindaily.fixedRows ) {
  180. opener.javascript.fInit();
  181. fClickResultList(curRow);
  182. grd_smlno.select(1,1) = true;
  183. fGetRecommNo(curRow);
  184. //}
  185. }
  186. }
  187. ]]>
  188. </script>
  189. </xhtml:head>
  190. <xhtml:body scroll="none" pagewidth="930" pageheight="710" style="margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  191. <group id="grp_targeted" scroll="auto" style="left:0px; top:0px; width:915px; height:710px; margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  192. <datagrid id="grd_maindaily" nodeset="/root/main/ordlist1/maindailylist" autoresize="true" caption="처방일자^검체명^검사명^상태^입/외^주치의^구분^최종보고일자^바코드번호^검사중분류코드^검사코드^유일번호" colsep="^" colwidth="68, 100, 117, 58, 39, 47, 54, 100, 76, 92, 67, 61" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:30px; width:900px; height:285px; ">
  193. <col ref="prcpdd" format="yyyy-mm-dd"/>
  194. <col ref="spcnm"/>
  195. <col ref="examnm"/>
  196. <col disabled="true" ref="statnm" type="combo">
  197. <choices>
  198. <itemset nodeset="/root/init/baseinfo/statnm/L0068">
  199. <label ref="cdnm"/>
  200. <value ref="cdid"/>
  201. </itemset>
  202. </choices>
  203. </col>
  204. <col ref="prcpgenrflag" type="combo">
  205. <choices>
  206. <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
  207. <label ref="cdnm"/>
  208. <value ref="cdid"/>
  209. </itemset>
  210. </choices>
  211. </col>
  212. <col ref="drnm"/>
  213. <col ref="examgubun"/>
  214. <col ref="lastreptdd"/>
  215. <col ref="bcno"/>
  216. <col ref="testmdlcd"/>
  217. <col ref="testcd"/>
  218. <col ref="execprcpuniqno"/>
  219. <script type="javascript" ev:event="onclick">
  220. <![CDATA[
  221. goDetail();
  222. ]]>
  223. </script>
  224. </datagrid>
  225. <line id="line5" class="line_1" style="x1:0px; y1:320px; x2:350px; y2:320px; "/>
  226. <datagrid id="grd_smlno" nodeset="/root/main/subordlist1/subresultdetail1" autoresize="true" caption="^결과내역" colsep="^" colwidth="20, 860, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:325px; width:350px; height:235px; text-align:left; ">
  227. <col ref="chk"/>
  228. <col ref="reptrslt" style="font-family:굴림체; text-align:left; "/>
  229. <col ref="infcrefantbiocd" visibility="hidden"/>
  230. <script type="javascript" ev:event="onclick">
  231. <![CDATA[
  232. // var curRow = grd_smlno.mouseRow;
  233. // var lastRow = grd_smlno.rows - grd_smlno.fixedRows;
  234. // if( curRow > 0 && curRow <= lastRow ){
  235. //
  236. // opener.javascript.fInit();
  237. // fGetRecommNo(grd_smlno.row);
  238. // }
  239. ]]>
  240. </script>
  241. </datagrid>
  242. <caption id="caption8" class="tit_2" style="left:5px; top:10px; width:107px; height:13px; ">Classification</caption>
  243. <line id="line7" class="line_1" style="x1:0px; y1:25px; x2:350px; y2:25px; "/>
  244. <button id="btn_controlsize" class="icon_right" style="left:320px; top:5px; width:26px; height:19px; ">
  245. <caption/>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. if(btn_controlsize.attribute("class") == "icon_right"){
  249. btn_controlsize.attribute("class") = "icon_left"
  250. btn_controlsize.attribute("left") = 875;
  251. opener.ivw_prophylaxis.attribute("width") = 920;
  252. grd_maindaily.attribute("width") = 900;
  253. grd_smlno.attribute("width") = 900;
  254. //grd_maindaily.colWidth(1) =grd_maindaily.colWidth(1) + 80;
  255. //grd_smlno.colWidth(1) =grd_smlno.colWidth(1) + 80;
  256. line5.attribute("x2") = 900;
  257. line7.attribute("x2") = 900;
  258. }else{
  259. btn_controlsize.attribute("class") = "icon_right"
  260. btn_controlsize.attribute("left") = 320;
  261. opener.ivw_prophylaxis.attribute("width") = 350;
  262. grd_maindaily.attribute("width") = 350;
  263. grd_smlno.attribute("width") = 355;
  264. //grd_maindaily.colWidth(1) =grd_maindaily.colWidth(1) + 80;
  265. //grd_smlno.colWidth(1) =grd_smlno.colWidth(1) + 80;
  266. line5.attribute("x2") = 350;
  267. line7.attribute("x2") = 350;
  268. }
  269. ]]>
  270. </script>
  271. </button>
  272. <caption id="caption1" class="tit_2" style="left:5px; top:580px; width:237px; height:14px; ">균명 선택시 해당 정보가 보여집니다.</caption>
  273. <datagrid id="grd_baccd" nodeset="/root/main/baclist/list" scroll="autovscroll" autoresize="true" caption="균명^균코드" colsep="^" colwidth="248, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:600px; width:350px; height:105px; ">
  274. <col ref="bacnm"/>
  275. <col ref="baccd" visibility="hidden"/>
  276. <script type="javascript" ev:event="onclick">
  277. <![CDATA[
  278. var curRow = grd_baccd.mouseRow;
  279. var lastRow = grd_baccd.rows - grd_baccd.fixedRows;
  280. if( curRow > 0 && curRow <= lastRow ){
  281. if(grd_baccd.rows - grd_baccd.fixedRows >= 1 ){
  282. //opener.javascript.fRecommendedList(model.getValue("/root/hidden/resnflagno"),model.getValue("/root/main/subordlist1/subresultdetail1[" + grdRow + "]/infcrefantbiocd"));
  283. //검사결과에서 키코드조회해온값 전달해서 소분류를 조회하고 소분류 여러건 조회되어온 값을 in 으로 조회함(TRMMD01606에 srchgb=2)
  284. model.removeNodeset("root/send/data/singdata");
  285. model.makeValue("/root/send/data/singdata/srchgb","3");
  286. model.makeValue("/root/send/data/singdata/baccd" ,model.getValue("/root/main/baclist/list[" + curRow + "]/baccd"));
  287. model.makeValue("/root/send/data/singdata/srchpid",model.getValue("/root/main/ordlist1/maindailylist[" + curRow + "]/pid"));
  288. model.makeValue("/root/send/data/singdata/resnflag","12");
  289. model.removeNodeset("/root/main/getdata");
  290. submit("TRMMD01606");
  291. opener.model.makeNode("/root/main/antibiorecommlist");
  292. if( !isNull(model.getValue("/root/main/getdata/info/comcd")) ){
  293. copyNodesetType("/root/main/antibiorecommlist","/root/main/getdata","replace",opener.model,model);
  294. }
  295. //copyNodesetType("/root/main/antibiorecommlist","/root/main/getdata","replace",opener.model,model);
  296. opener.grd_antibiorecommlist.rebuild();
  297. opener.grd_antibiorecommlist.select(1,1) = true;
  298. opener.javascript.fDetailList(1);
  299. opener.grd_antibiorecommlist.mergeCellsFixedCols="bycol";
  300. opener.grd_antibiorecommlist.colhidden(0) = false;
  301. return;
  302. }
  303. }
  304. ]]>
  305. </script>
  306. </datagrid>
  307. <line id="line1" class="line_1" style="x1:0px; y1:595px; x2:350px; y2:595px; "/>
  308. </group>
  309. </xhtml:body>
  310. </xhtml:html>