SMADS02000_약품식별통계.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  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. <statslist/>
  11. </main>
  12. <send>
  13. <srchfromdd/>
  14. <srchtodd/>
  15. <globalinstance>
  16. <instance1/>
  17. </globalinstance>
  18. <suppdeptcd/>
  19. <formflag1>1</formflag1>
  20. <formflag2>2</formflag2>
  21. <formflag3/>
  22. <srchdeptcd/>
  23. <srchdrid/>
  24. <deptinfo>
  25. <deptflag/>
  26. </deptinfo>
  27. <baseinfo>
  28. <spcldrug/>
  29. <efcycd/>
  30. </baseinfo>
  31. <srchdata>
  32. <hngnm/>
  33. <drugcd/>
  34. </srchdata>
  35. <srchwardcd/>
  36. <chosflag/>
  37. <comnm/>
  38. <comcd/>
  39. <reportkind/>
  40. </send>
  41. <init>
  42. <ioflag/>
  43. <ioflagall/>
  44. </init>
  45. <hidden>
  46. <srchinfo>
  47. <wardnm/>
  48. <wardcd/>
  49. <sendwardcd/>
  50. <deptnm/>
  51. <deptcd/>
  52. <senddeptcd/>
  53. </srchinfo>
  54. <baseinfo>
  55. <spcldrug>
  56. <A0006/>
  57. </spcldrug>
  58. </baseinfo>
  59. <receivedrugcd>/root/send/srchdata/drugcd</receivedrugcd>
  60. <receivehngnm>/root/send/srchdata/hngnm</receivehngnm>
  61. <orddept>
  62. <dept/>
  63. </orddept>
  64. <receiveefcy>/root/send/baseinfo/efcycd</receiveefcy>
  65. </hidden>
  66. <temp>
  67. <srchinfo>
  68. <ward/>
  69. <dept/>
  70. </srchinfo>
  71. <receivedata>
  72. <srchflag/>
  73. <srchcnts/>
  74. <drugkind/>
  75. <srchtype/>
  76. <hngnm/>
  77. <drugcd/>
  78. </receivedata>
  79. <receivecom>
  80. <comcd/>
  81. <comnm/>
  82. <comexcd/>
  83. <srchtype/>
  84. </receivecom>
  85. </temp>
  86. </root>
  87. </instance>
  88. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  92. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  93. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  94. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  95. <script type="javascript" ev:event="xforms-ready">
  96. <![CDATA[
  97. var rdo_children = rdo_formcd.children;
  98. rdo_children.item(1).attribute("disable") = true;
  99. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  100. var pre_srchfromdd = new Date();
  101. var pre_srchtodd = new Date();
  102. model.setValue("/root/send/srchfromdd" ,pre_srchfromdd.getAddDate(-30).getDateFormat()); //시작일자 -30전
  103. model.setValue("/root/send/srchtodd" ,pre_srchtodd.getAddDate(-1).getDateFormat()); //종료일자 -1전
  104. model.setValue("/root/send/formflag1", "1");
  105. model.setValue("/root/send/formflag2", "2");
  106. //model.setValue("/root/send/formflag3", "1");
  107. model.setValue("/root/init/ioflag", "I O"); //2010-02-10 조회구분 입원/외래 추가
  108. model.setValue("/root/init/ioflagall", "전체"); //2010-02-10 조회구분 전체 추가
  109. makeReportPreview(0,150,1195,570);
  110. //병동 Combo 조회
  111. model.setValue("/root/send/deptinfo/deptflag", "W");
  112. submit("TRADT10203");
  113. astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", "T,전체");
  114. // 진료과세팅
  115. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/hidden/orddept"); //부서코드 콤보조회
  116. if ( model.instances(0).selectSingleNode("/root/hidden/orddept/dept") != null) {
  117. astfAddCombo("/root/hidden/orddept","dept","deptcd,depthngnm","T,전체");
  118. }
  119. model.refresh();
  120. ]]>
  121. </script>
  122. <submission id="TRZBC00101"/>
  123. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  124. <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
  125. <submission id="TRADS02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  126. <submission id="TRADS02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  127. <submission id="TRADS02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  128. <submission id="TRADS02004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  129. <submission id="TRADS02005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  130. <submission id="TRADS02006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  131. <submission id="TRADS02007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  132. </model>
  133. </xhtml:head>
  134. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  135. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  136. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">약품식별 통계</caption>
  137. </group>
  138. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  139. <line id="line1" class="line_1" style="x1:0px; y1:135px; x2:1195px; y2:135px; "/>
  140. <group id="group1" style="left:0px; top:10px; width:1195px; height:110px; vertical-align:top; ">
  141. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:110px; background-color:#fffbf2; border-color:#ffd799; "/>
  142. <line id="line2" class="line_4" style="x1:1110px; y1:15px; x2:1110px; y2:95px; "/>
  143. <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:24px; width:56px; height:22px; ">
  144. <caption>조회</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. model.setValue("/root/send/srchdeptcd", model.getValue("/root/hidden/srchinfo/senddeptcd")); // 진료과
  148. model.setValue("/root/send/srchwardcd", model.getValue("/root/hidden/srchinfo/sendwardcd")); // 병동
  149. model.setValue("/root/send/comnm", model.getValue("/root/send/comnm").setReplaceWord(",",",")); // 성분분류
  150. model.setValue("/root/send/srchdata/hngnm", model.getValue("/root/send/srchdata/hngnm").setReplaceWord(",",",")); // 약품명칭
  151. //조회구분 (입원/외래구분)
  152. var ioflag = model.getValue("/root/init/ioflag");
  153. var temp="";
  154. var ioflagData = ioflag.split(" ");
  155. for(var i = 0; i < ioflagData.length; ++i) {
  156. if (ioflagData[i] =="I") ioflagData[i] = "I','D','E"; //입원일경우는 D(DSC)/E(응급) 모두 포함시킨다.
  157. if (i == 0 ) temp = "'" + ioflagData[i] + "'";
  158. else temp += ",'" + ioflagData[i] + "'" ;
  159. }
  160. model.setValue("/root/send/chosflag", temp);
  161. model.refresh();
  162. //if ( model.getValue("/root/send/formflag1") == '1' && model.getValue("/root/send/formflag2") == '2' ) {
  163. // 에러!!!
  164. if( model.getValue("/root/send/formflag1") == "" && model.getValue("/root/send/formflag3") == "" ) {
  165. alert("병동별 / 과별 조건만 으로는 조회 할수 없습니다.");
  166. }
  167. // case1 - 일자별, 과별 약품식별 통계 조회
  168. else if ( model.getValue("/root/send/formflag2") == '2' && model.getValue("/root/send/formflag3") == "" ) {
  169. model.setValue("/root/send/reportkind", "1"); // 리포트종류 번호
  170. if(submit("TRADS02001")){
  171. exeReportPreview("RPADS02001", "XMLSTR", "/root/main/statslist/item");
  172. }
  173. }
  174. // case2 - 일자별, 병동별 약품식별 통계 조회
  175. else if ( model.getValue("/root/send/formflag2") == '1' && model.getValue("/root/send/formflag3") == "" ) {
  176. model.setValue("/root/send/reportkind", "2"); // 리포트종류 번호
  177. if(submit("TRADS02002")){
  178. exeReportPreview("RPADS02002", "XMLSTR", "/root/main/statslist/item");
  179. }
  180. }
  181. // case3 - 의뢰이유, 병동별 약품식별 통계 조회
  182. else if ( model.getValue("/root/send/formflag2") == '1' && model.getValue("/root/send/formflag3") == '2' ) {
  183. model.setValue("/root/send/reportkind", "3"); // 리포트종류 번호
  184. if(submit("TRADS02003")){
  185. exeReportPreview("RPADS02003", "XMLSTR", "/root/main/statslist/item");
  186. }
  187. }
  188. // case4 - 의뢰이유, 과별 약품식별 통계 조회
  189. else if ( model.getValue("/root/send/formflag2") == '2' && model.getValue("/root/send/formflag3") == '2' ) {
  190. model.setValue("/root/send/reportkind", "4"); // 리포트종류 번호
  191. if(submit("TRADS02004")){
  192. exeReportPreview("RPADS02004", "XMLSTR", "/root/main/statslist/item");
  193. }
  194. }
  195. // case5 - 소요시간대, 병동별 약품식별 통계 조회
  196. else if ( model.getValue("/root/send/formflag2") == '1' && model.getValue("/root/send/formflag3") == '1' ) {
  197. model.setValue("/root/send/reportkind", "case5-1"); // 리포트종류 번호
  198. if(submit("TRADS02005")){
  199. exeReportPreview("RPADS02005", "XMLSTR", "/root/main/statslist/item");
  200. }
  201. }
  202. // case6 - 소요시간대, 과별 약품식별 통계 조회
  203. else if ( model.getValue("/root/send/formflag2") == '2' && model.getValue("/root/send/formflag3") == '1' ) {
  204. model.setValue("/root/send/reportkind", "case6-1"); // 리포트종류 번호
  205. if(submit("TRADS02006")){
  206. exeReportPreview("RPADS02006", "XMLSTR", "/root/main/statslist/item");
  207. }
  208. }
  209. // case7 - 성분명, 상품명, 코드, 일자별 약품식별 통계 조회
  210. else if ( model.getValue("/root/send/formflag3") == '3' ) {
  211. model.setValue("/root/send/reportkind", "7"); // 리포트종류 번호
  212. if(submit("TRADS02007")){
  213. exeReportPreview("RPADS02007", "XMLSTR", "/root/main/statslist/item");
  214. }
  215. }
  216. model.setValue("/root/send/comnm", model.getValue("/root/send/comnm").setReplaceWord(",",",")); // 성분분류
  217. model.setValue("/root/send/srchdata/hngnm", model.getValue("/root/send/srchdata/hngnm").setReplaceWord(",",",")); // 약품명칭
  218. model.refresh();
  219. ]]>
  220. </script>
  221. </button>
  222. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:110px; top:15px; width:100px; height:19px; "/>
  223. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:228px; top:15px; width:100px; height:19px; "/>
  224. <caption id="caption5" class="search_no_b" style="left:213px; top:15px; width:12px; height:17px; ">~</caption>
  225. <caption id="caption3" class="search_name" style="left:15px; top:15px; width:86px; height:17px; ">일자 :</caption>
  226. <caption id="caption4" class="search_name" style="left:705px; top:15px; width:86px; height:17px; ">통계양식 :</caption>
  227. <select1 id="rdo_formcd" ref="/root/send/formflag1" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:800px; top:15px; width:195px; height:20px; border-style:none; ">
  228. <choices>
  229. <item>
  230. <label>일자별</label>
  231. <value>1</value>
  232. </item>
  233. <item>
  234. <label>월별</label>
  235. <value>2</value>
  236. </item>
  237. <item>
  238. <label>연별</label>
  239. <value>3</value>
  240. </item>
  241. </choices>
  242. <script type="javascript" ev:event="ondblclick">
  243. <![CDATA[
  244. rdo_formcd.value = "";
  245. model.refresh();
  246. ]]>
  247. </script>
  248. <script type="javascript" ev:event="onclick">
  249. <![CDATA[
  250. if(rdo_formcd3.value != "") {
  251. alert("통계양식 조건이 [소요시간대별 / 의뢰이유별 / 약품별] 일경우 선택 할수 없습니다.");
  252. rdo_formcd.value = "";
  253. model.refresh();
  254. }
  255. ]]>
  256. </script>
  257. </select1>
  258. <caption id="caption8" class="search_name" style="left:15px; top:65px; width:86px; height:17px; ">성분분류 :</caption>
  259. <caption id="caption9" class="search_name" style="left:365px; top:40px; width:86px; height:17px; ">병동 :</caption>
  260. <caption id="caption10" class="search_name" style="left:15px; top:40px; width:86px; height:17px; ">진료과 :</caption>
  261. <caption id="caption13" class="search_name" style="left:365px; top:65px; width:86px; height:17px; ">약품명칭 :</caption>
  262. <input id="ipt_comcls" ref="/root/send/comnm" class="input_search" disabled="true" style="left:109px; top:65px; width:196px; height:19px; "/>
  263. <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" style="left:460px; top:40px; width:196px; height:19px; "/>
  264. <input id="ipt_deptnm" ref="/root/hidden/srchinfo/deptnm" class="input_search" disabled="true" style="left:110px; top:40px; width:196px; height:19px; "/>
  265. <button id="button2" class="icon_search" style="left:310px; top:65px; width:16px; height:16px; ">
  266. <caption/>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. model.makeValue("/root/hidden/receivecom/srchtype","O");
  270. model.makeValue("/root/hidden/receivecom/comnm",model.getValue("/root/send/comnm"));
  271. model.makeValue("/root/hidden/receivecom/comcd",model.getValue("/root/send/comcd"));
  272. modal("SPADB61350",0,100,150,"SPADB61350","/root/hidden/receivecom","/root/hidden/receiveref");
  273. model.setValue("/root/send/comnm" ,getParameter("comnm"));
  274. model.setValue("/root/send/comcd" ,getParameter("comcd"));
  275. ipt_comcls.refresh();
  276. ]]>
  277. </script>
  278. </button>
  279. <button id="button3" class="icon_search" style="left:660px; top:40px; width:16px; height:16px; ">
  280. <caption/>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. if(chk_ward.visible==true){
  284. chk_ward.visible = false;
  285. }else {
  286. chk_ward.visible = true;
  287. }
  288. model.refresh();
  289. ]]>
  290. </script>
  291. </button>
  292. <button id="button4" class="icon_search" style="left:660px; top:65px; width:16px; height:16px; ">
  293. <caption/>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. // 부모창이 어떤 화면인지 확인할 구분값 세팅 'O'
  297. model.setValue("/root/temp/receivedata/srchtype", "O");
  298. model.setValue("/root/temp/receivedata/drugcd", model.getValue("/root/send/srchdata/drugcd"));
  299. model.setValue("/root/temp/receivedata/hngnm", model.getValue("/root/send/srchdata/hngnm"));
  300. model.setValue("/root/temp/receivedata/srchflag", "");
  301. model.setValue("/root/temp/receivedata/srchcnts", "");
  302. model.setValue("/root/temp/receivedata/drugkind","");
  303. // 약품코드 검색
  304. modal("SPADB60150",0,100,150,"SPADB60150","/root/temp/receivedata","/root/temp/receivedata");
  305. model.setValue("/root/send/srchdata/drugcd", getParameter("drugcd"));
  306. model.setValue("/root/send/srchdata/hngnm", getParameter("hngnm"));
  307. ipt_hngnm.refresh();
  308. ]]>
  309. </script>
  310. </button>
  311. <input id="ipt_hngnm" ref="/root/send/srchdata/hngnm" class="input_search" disabled="true" style="left:460px; top:65px; width:196px; height:19px; "/>
  312. <select1 id="radio1" ref="/root/send/formflag2" class="radio_search" appearance="full" cellspacing="45" cols="2" overflow="visible" style="left:800px; top:40px; width:235px; height:20px; border-style:none; ">
  313. <choices>
  314. <item>
  315. <label>병동별</label>
  316. <value>1</value>
  317. </item>
  318. <item>
  319. <label>과별</label>
  320. <value>2</value>
  321. </item>
  322. </choices>
  323. </select1>
  324. <select1 id="rdo_formcd3" ref="/root/send/formflag3" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:800px; top:65px; width:275px; height:20px; border-style:none; ">
  325. <choices>
  326. <item>
  327. <label>소요시간대별</label>
  328. <value>1</value>
  329. </item>
  330. <item>
  331. <label>의뢰이유별</label>
  332. <value>2</value>
  333. </item>
  334. <item>
  335. <label>약품별</label>
  336. <value>3</value>
  337. </item>
  338. </choices>
  339. <script type="javascript" ev:event="ondblclick">
  340. <![CDATA[
  341. rdo_formcd3.value = "";
  342. model.refresh();
  343. ]]>
  344. </script>
  345. <script type="javascript" ev:event="onclick">
  346. <![CDATA[
  347. rdo_formcd.value = "";
  348. model.refresh();
  349. ]]>
  350. </script>
  351. </select1>
  352. <select id="chk_ioflag" ref="/root/init/ioflag" overflow="visible" appearance="full" cols="2" style="left:454px; top:10px; width:96px; height:20px; border-style:none; ">
  353. <choices>
  354. <item>
  355. <label>입원</label>
  356. <value>I</value>
  357. </item>
  358. <item>
  359. <label>외래</label>
  360. <value>O</value>
  361. </item>
  362. </choices>
  363. <script type="javascript" ev:event="onclick">
  364. <![CDATA[
  365. if(model.getValue("/root/init/ioflag").length == "3")
  366. {
  367. chk_ioflagall.select(0);
  368. }
  369. else
  370. {
  371. chk_ioflagall.deselect(0);
  372. }
  373. ]]>
  374. </script>
  375. </select>
  376. <select id="chk_ioflagall" ref="/root/init/ioflagall" overflow="visible" appearance="full" cols="3" style="left:547px; top:10px; width:50px; height:20px; border-style:none; ">
  377. <choices>
  378. <item>
  379. <label>전체</label>
  380. <value>전체</value>
  381. </item>
  382. </choices>
  383. <script type="javascript" ev:event="onclick">
  384. <![CDATA[
  385. if(model.getValue("/root/init/ioflagall") == "전체")
  386. {
  387. chk_ioflag.select(0);
  388. chk_ioflag.select(1);
  389. }
  390. else
  391. {
  392. chk_ioflag.deselect(0);
  393. chk_ioflag.deselect(1);
  394. }
  395. ]]>
  396. </script>
  397. </select>
  398. <caption id="caption7" class="search_name" style="left:365px; top:10px; width:86px; height:17px; ">조회구분 :</caption>
  399. <button id="button5" class="icon_search" style="left:310px; top:40px; width:16px; height:16px; ">
  400. <caption/>
  401. <script type="javascript" ev:event="DOMActivate">
  402. <![CDATA[
  403. if(chk_dept.visible==true){
  404. chk_dept.visible = false;
  405. }else {
  406. chk_dept.visible = true;
  407. }
  408. model.refresh();
  409. ]]>
  410. </script>
  411. </button>
  412. </group>
  413. <input id="ipt_wardcd" ref="/root/hidden/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:620px; top:70px; width:140px; height:19px; "/>
  414. <select id="chk_ward" ref="/root/temp/srchinfo/ward" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="8" direction="downacross" sep="," style="left:410px; top:70px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
  415. <choices>
  416. <itemset nodeset="/root/hidden/deptlist/ward">
  417. <label ref="wardnm"/>
  418. <value ref="wardcd"/>
  419. </itemset>
  420. </choices>
  421. <script type="javascript" ev:event="onclick">
  422. <![CDATA[
  423. //if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  424. if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0 ){
  425. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  426. var tempWardList = ""; // 병동코드 임시 저장 변수
  427. for(var i = 0; i < chk_ward.length; ++i) {
  428. if(i == 0) {
  429. tempWardList += chk_ward.item(i).value;
  430. } else {
  431. tempWardList += "," + chk_ward.item(i).value; // 병동코드 구분을 ',' 사용
  432. }
  433. }
  434. model.setValue("/root/temp/srchinfo/ward", tempWardList);
  435. } else {
  436. //ipt_wardcd.value = "";
  437. //ipt_wardnm.value = "";
  438. model.setValue("/root/temp/srchinfo/ward", "");
  439. }
  440. model.refresh();
  441. }
  442. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  443. ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
  444. ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
  445. } else {
  446. ipt_wardcd.value = chk_ward.value;
  447. ipt_wardnm.value = chk_ward.label;
  448. }
  449. var tempWardList2 = ""; // 따옴표가 붙은 병동코드 임시 저장 변수( 데이터 조회시 쿼리에서 쓰일 형태로 만듬 )
  450. var isSelected = true;
  451. for(var i = 0; i < chk_ward.length; ++i) {
  452. // 선택된 항목 체크
  453. if(chk_ward.item(i).selected == '1') {
  454. if(isSelected) {
  455. tempWardList2 += "'" + chk_ward.item(i).value + "'";
  456. isSelected = false;
  457. } else {
  458. tempWardList2 += "," + "'" + chk_ward.item(i).value + "'"; // 병동코드 구분을 ',' 사용
  459. }
  460. }
  461. }
  462. // 전체 선택 'T' 제거 하기
  463. if(isSearchString(tempWardList2, "T")) {
  464. tempWardList2 = tempWardList2.substr(4,tempWardList2.length);
  465. }
  466. model.setValue("/root/hidden/srchinfo/sendwardcd", tempWardList2);
  467. //input3.refresh();
  468. //검사실 체크박스 감추기
  469. //chk_excuroom.visible = false;
  470. ]]>
  471. </script>
  472. </select>
  473. <input id="ipt_deptcd" ref="/root/hidden/srchinfo/deptcd" class="input_search" visibility="hidden" style="left:260px; top:70px; width:140px; height:19px; "/>
  474. <select id="chk_dept" ref="/root/temp/srchinfo/dept" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="7" direction="downacross" sep="," style="left:50px; top:70px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
  475. <choices>
  476. <itemset nodeset="/root/hidden/orddept/dept">
  477. <label ref="depthngnm"/>
  478. <value ref="deptcd"/>
  479. </itemset>
  480. </choices>
  481. <script type="javascript" ev:event="onclick">
  482. <![CDATA[
  483. //if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  484. if(chk_dept.mouseRow == 0 && chk_dept.mouseCol == 0 ){
  485. if(isSearchString(model.getValue("/root/temp/srchinfo/dept"),"T")){
  486. var tempDeptList = ""; // 병동코드 임시 저장 변수
  487. for(var i = 0; i < chk_dept.length; ++i) {
  488. if(i == 0) {
  489. tempDeptList += chk_dept.item(i).value;
  490. } else {
  491. tempDeptList += "," + chk_dept.item(i).value; // 병동코드 구분을 ',' 사용
  492. }
  493. }
  494. model.setValue("/root/temp/srchinfo/dept", tempDeptList);
  495. } else {
  496. //ipt_wardcd.value = "";
  497. //ipt_wardnm.value = "";
  498. model.setValue("/root/temp/srchinfo/dept", "");
  499. }
  500. model.refresh();
  501. }
  502. if(isSearchString(model.getValue("/root/temp/srchinfo/dept"),"T")){
  503. ipt_deptcd.value = chk_dept.value.substr(2,chk_dept.value.length);
  504. ipt_deptnm.value = chk_dept.label.substr(3,chk_dept.label.length);
  505. } else {
  506. ipt_deptcd.value = chk_dept.value;
  507. ipt_deptnm.value = chk_dept.label;
  508. }
  509. var tempDeptList2 = ""; // 따옴표가 붙은 병동코드 임시 저장 변수( 데이터 조회시 쿼리에서 쓰일 형태로 만듬 )
  510. var isSelected = true;
  511. for(var i = 0; i < chk_dept.length; ++i) {
  512. // 선택된 항목 체크
  513. if(chk_dept.item(i).selected == '1') {
  514. if(isSelected) {
  515. tempDeptList2 += "'" + chk_dept.item(i).value + "'";
  516. isSelected = false;
  517. } else {
  518. tempDeptList2 += "," + "'" + chk_dept.item(i).value + "'"; // 병동코드 구분을 ',' 사용
  519. }
  520. }
  521. }
  522. // 전체 선택 'T' 제거 하기
  523. if(isSearchString(tempDeptList2, "T")) {
  524. tempDeptList2 = tempDeptList2.substr(4, tempDeptList2.length);
  525. }
  526. model.setValue("/root/hidden/srchinfo/senddeptcd", tempDeptList2);
  527. //input3.refresh();
  528. //검사실 체크박스 감추기
  529. //chk_excuroom.visible = false;
  530. ]]>
  531. </script>
  532. </select>
  533. </group>
  534. </xhtml:body>
  535. </xhtml:html>