SMZCS00401_모니터링리스트조회.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>모니터링 검토결과</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <resultSummaryList>
  12. <lv>1</lv>
  13. <guid/>
  14. <moduleid/>
  15. <prcpgenrflag/>
  16. <prcpdd/>
  17. <orddeptcd/>
  18. <fstrgstid/>
  19. <pid/>
  20. <moduleid/>
  21. <alertny/>
  22. <procyn/>
  23. <resnyn/>
  24. <infoyn/>
  25. <sex/>
  26. <brthdd/>
  27. <orddrid/>
  28. </resultSummaryList>
  29. <resultSummaryCnt>
  30. <title/>
  31. <sum_kdcm/>
  32. <sum_kacm/>
  33. <sum_ldose/>
  34. <sum_sefty/>
  35. <sum_di/>
  36. <sum_hpreg/>
  37. <sum_ddim/>
  38. <sum_dt/>
  39. <sum_dam/>
  40. <sum_dose/>
  41. <sum_ddcm/>
  42. <sum_dura/>
  43. <sum_preg/>
  44. <sum_lact/>
  45. <sum_geri/>
  46. <sum_pedi/>
  47. <sum_crcl/>
  48. <sum_hemp/>
  49. <sum_dfim/>
  50. </resultSummaryCnt>
  51. </list>
  52. <codelist>
  53. </codelist>
  54. <baseinfo>
  55. <testeeinfo>
  56. <pid/>
  57. <patnm/>
  58. </testeeinfo>
  59. </baseinfo>
  60. <patinfo>
  61. <patinfolist>
  62. <pid/>
  63. </patinfolist>
  64. </patinfo>
  65. <cond>
  66. <fromdd/>
  67. <todd/>
  68. <code>P</code>
  69. <prcpcd/>
  70. </cond>
  71. </main>
  72. <send>
  73. <pInstCD/>
  74. <pArrModuleID/>
  75. <pArrPrcpgenrflag/>
  76. <pArrDeptcd/>
  77. <pArrPrcpcd/>
  78. <pGubn>M</pGubn>
  79. <pStDD/>
  80. <pEnDD/>
  81. <screen>
  82. <pGuID/>
  83. </screen>
  84. <pPID/>
  85. <srchdata>
  86. <deptflag/>
  87. <srchdeptcd/>
  88. <srchfromdd/>
  89. <srchtodd/>
  90. </srchdata>
  91. </send>
  92. <init>
  93. <radio>
  94. <radio1>all</radio1>
  95. </radio>
  96. <orddept>
  97. <dept>
  98. <depthngnm/>
  99. <deptcd/>
  100. </dept>
  101. </orddept>
  102. <baseinfo>
  103. <prcpgenrflag>
  104. <M0010>
  105. <cdid/>
  106. <cdnm/>
  107. </M0010>
  108. </prcpgenrflag>
  109. </baseinfo>
  110. <cond>
  111. <fromdd/>
  112. <todd/>
  113. <code>P</code>
  114. <prcpcd/>
  115. </cond>
  116. </init>
  117. <hidden>
  118. <srchinfo>
  119. <reqpid/>
  120. </srchinfo>
  121. </hidden>
  122. <temp/>
  123. <textresult/>
  124. </root>
  125. </instance>
  126. <script type="javascript" ev:event="xforms-ready">
  127. <![CDATA[
  128. /*
  129. 화면을 초기화 합니다.
  130. */
  131. fInitialize();
  132. /*
  133. 조회 메서드를 호출합니다
  134. */
  135. setTree(datagrid1, 1, 4, true);
  136. ]]>
  137. </script>
  138. <submission id="TRZCS00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  139. <submission id="TRZCS00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pGubn" resultref="/root/main/codelistmoduleList"/>
  140. <submission id="TRADT10321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
  141. <submission id="TRZBC00101"/>
  142. </model>
  143. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  144. <script type="javascript" src="../../../com/referenceweb/js/ZCR001.js"/>
  145. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  146. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  147. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO16300.js"/>
  148. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  149. <script type="javascript">
  150. <![CDATA[
  151. var gv_deptflag="";
  152. /*
  153. 초기화 작업을 합니다.
  154. */
  155. function fInitialize(){
  156. /*
  157. 날짜 기본값 세팅
  158. */
  159. model.removeNodeset("/root/main/list/resultSummaryList");
  160. model.removeNodeset("/root/main/list/resultSummaryCnt");
  161. submit("TRZCS00801");
  162. ipt_fromdd.value = getNewDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD").substr(0, 8);
  163. ipt_todd.value = getNewDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD").substr(0, 8);
  164. zbcfGetCodeList(new Array("M0010"), new Array("/root/init/baseinfo/prcpgenrflag"));
  165. model.removenode("/root/init/baseinfo/prcpgenrflag/M0010[1]");
  166. for(i=0;i<19;i++){
  167. checkbox1.select(i);
  168. }
  169. model.refresh();
  170. }
  171. function fInitialize1(){
  172. window.reload();
  173. /*model.removeNodeset("/root/main/list/resultSummaryList");
  174. model.removeNodeset("/root/main/list/resultSummaryCnt");
  175. model.removeNodeset("/root/init/code");
  176. model.removeNodeset("/root/main/patinfo/patinfolist");
  177. ipt_fromdd.value = getNewDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD").substr(0, 8);
  178. ipt_todd.value = getCurrentDate().substr(0, 8);
  179. for(i=0;i<19;i++){
  180. checkbox1.select(i);
  181. }
  182. model.refresh();*/
  183. }
  184. ]]>
  185. </script>
  186. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  187. </xhtml:head>
  188. <xhtml:body pagewidth="1280" pageheight="990" guideline="2,345;1,1202;2,779;1,1202;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  189. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:5px; top:25px; width:1192px; height:105px; background-color:#fffbf2; border-color:#ffd799; "/>
  190. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:13px; ">모니터링 검토결과</caption>
  191. <button id="button11" class="btn2_letter4" style="left:1135px; top:130px; width:64px; height:19px; ">
  192. <caption>엑셀저장</caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  196. if (fileName != ""){
  197. datagrid1.saveExcel(fileName);
  198. }
  199. ]]>
  200. </script>
  201. </button>
  202. <datagrid id="datagrid1" nodeset="/root/main/list/resultSummaryList" class="datagrid2" caption="lv^그룹번호^모듈코드^구분^처방일자^진료과^처방자^등록번호^환자명^모듈명^alert여부^처리결과^처방사유^정보제공^환자성별^생년월일^주치의" colsep="^" colwidth="0, 0, 0, 92, 75, 91, 69, 80, 79, 239, 56, 61, 62, 65, 61, 73, 91" ellipsis="true" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" selectionmode="free" style="left:0px; top:155px; width:1202px; height:470px; ">
  203. <col ref="lv" visibility="hidden"/>
  204. <col ref="guid" visibility="hidden"/>
  205. <col ref="moduleid" visibility="hidden"/>
  206. <col ref="prcpgenrflag"/>
  207. <col ref="prcpdd" style="text-align:center; "/>
  208. <col ref="orddeptcd" style="text-align:center; "/>
  209. <col ref="fstrgstid" style="text-align:center; "/>
  210. <col ref="pid" style="text-align:center; "/>
  211. <col ref="hngnm" style="text-align:center; "/>
  212. <col ref="moduleid"/>
  213. <col ref="alertny" style="text-align:center; "/>
  214. <col ref="procyn" style="text-align:center; "/>
  215. <col ref="resnyn" style="text-align:center; "/>
  216. <col ref="infoyn" style="text-align:center; "/>
  217. <col ref="sex" style="text-align:center; "/>
  218. <col ref="brthdd" style="text-align:center; "/>
  219. <col ref="orddrid" style="text-align:center; "/>
  220. <script type="javascript" ev:event="ondblclick">
  221. <![CDATA[
  222. var selectedrow = (datagrid1.row );
  223. if(0 == selectedrow){return;}
  224. var param1 = model.getValue("/root/main/list/resultSummaryList["+selectedrow+"]/guid");
  225. model.makeValue("/root/send/screen/pGuID", param1);
  226. modal("../../screenweb/xrw/SPZCS00401_MonitorMessage", "", "", "", "SPZCS00401","/root/send/screen/pGuID","/root/send/screen/pGuID");
  227. ]]>
  228. </script>
  229. </datagrid>
  230. <caption id="caption12" class="tit_2" style="left:0px; top:135px; width:430px; height:13px; ">모니터링 결과리스트 (더블 클릭시 검토결과를 볼 수 있습니다.)</caption>
  231. <line id="line7" class="line_1" style="x1:0px; y1:150px; x2:1202px; y2:150px; "/>
  232. <caption id="caption1" class="tit_2" style="left:0px; top:635px; width:169px; height:13px; ">모니터링 집계</caption>
  233. <button id="button1" class="btn2_letter4" style="left:1135px; top:630px; width:64px; height:19px; ">
  234. <caption>엑셀저장</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  238. if (fileName != ""){
  239. datagrid2.saveExcel(fileName);
  240. }
  241. ]]>
  242. </script>
  243. </button>
  244. <line id="line1" class="line_1" style="x1:0px; y1:650px; x2:1202px; y2:650px; "/>
  245. <datagrid id="datagrid2" nodeset="/root/main/list/resultSummaryCnt" class="datagrid2" caption="모듈명^심평원병용금기^심평원특정연령대금기^심평원저함량^심평원급여중지^심평원중복^심평원임부금기^약품상호작용^중복투여^알러지^용량^질병금기^치료기간^임산부주의사항^수유부주의사항^노인주의사항^소아주의사항^신기능장애^간기능장애^음식상호작용" colsep="^" colwidth="140,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="seq" selectionmode="free" style="left:0px; top:655px; width:1202px; height:126px; ">
  246. <col ref="title"/>
  247. <col ref="sum_kdcm" style="text-align:right; "/>
  248. <col ref="sum_kacm" style="text-align:right; "/>
  249. <col ref="sum_ldose" style="text-align:right; "/>
  250. <col ref="sum_sefty" style="text-align:right; "/>
  251. <col ref="sum_di" style="text-align:right; "/>
  252. <col ref="sum_hpreg" style="text-align:right; "/>
  253. <col ref="sum_ddim" style="text-align:right; "/>
  254. <col ref="sum_dt" style="text-align:right; "/>
  255. <col ref="sum_dam" style="text-align:right; "/>
  256. <col ref="sum_dose" style="text-align:right; "/>
  257. <col ref="sum_ddcm" style="text-align:right; "/>
  258. <col ref="sum_dura" style="text-align:right; "/>
  259. <col ref="sum_preg" style="text-align:right; "/>
  260. <col ref="sum_lact" style="text-align:right; "/>
  261. <col ref="sum_geri" style="text-align:right; "/>
  262. <col ref="sum_pedi" style="text-align:right; "/>
  263. <col ref="sum_crcl" style="text-align:right; "/>
  264. <col ref="sum_hemp" style="text-align:right; "/>
  265. <col ref="sum_dfim" style="text-align:right; "/>
  266. </datagrid>
  267. <button id="btn_ClassficationSearch7" class="btn1_letter2" style="left:1140px; top:0px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  268. <caption>조회</caption>
  269. <script type="javascript" ev:event="onclick">
  270. <![CDATA[
  271. if (model.getValue("/root/send/pStDD") == ""){
  272. messageBox("조회시작년월은", "I003");
  273. model.setFocus("ipt_fromdd");
  274. return;
  275. }
  276. if (model.getValue("/root/send/pEnDD") == ""){
  277. messageBox("조회종료년월은", "I003");
  278. model.setFocus("ipt_todd");
  279. return;
  280. }
  281. if (model.getValue("/root/send/pStDD") > model.getValue("/root/send/pEnDD")){
  282. messageBox("조회 시작년월은 종료년월 보다 클 수", "I004");
  283. model.setFocus("ipt_fromdd");
  284. return;
  285. }
  286. model.setValue("/root/send/pArrModuleID",checkbox1.value);
  287. model.setValue("/root/send/pPID",model.getValue("/root/main/patinfo/patinfolist/pid"));
  288. model.setValue("/root/send/pArrPrcpgenrflag",checkbox4.value); // 처방구분(prcpgenrflag)
  289. model.setValue("/root/send/pArrDeptcd",chk_deptcd.value); // 진료부서(deptcd)
  290. var prcpSize = getNodesetCount ("/root/init/code/prcpcd/codecd");
  291. var arrPrcpcd="";
  292. for(i=1;i<=prcpSize;i++){
  293. if(i==1){
  294. arrPrcpcd = model.getValue("/root/init/code/prcpcd"+ "[" + i + "]/" +"codecd");
  295. }
  296. else{
  297. arrPrcpcd = arrPrcpcd+"|"+model.getValue("/root/init/code/prcpcd"+ "[" + i + "]/" +"codecd");
  298. }
  299. }
  300. model.setValue("/root/send/pArrPrcpcd",arrPrcpcd); // 처방코드
  301. model.setValue("/root/send/pInstCD", getUserInfo("dutplceinstcd"));
  302. model.removeNodeset("/root/main/list/resultSummaryList");
  303. model.removeNodeset("/root/main/list/resultSummaryCnt");
  304. datagrid1.refresh();
  305. datagrid2.refresh();
  306. submit("TRZCS00601");
  307. setTree(datagrid1, 1, 4, true);
  308. datagrid1.refresh();
  309. datagrid2.refresh();
  310. ]]>
  311. </script>
  312. </button>
  313. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:490px; top:25px; width:707px; height:105px; background-color:#fffbf2; border-color:#ffd799; "/>
  314. <select id="checkbox1" ref="/root/main/codelist/moduleList" overflow="visible" scroll="vertical" appearance="full" cols="5" itemwidth="138" sep="|" style="left:495px; top:52px; width:695px; height:61px; border-style:none; ">
  315. <choices>
  316. <itemset nodeset="/root/main/codelist/moduleList">
  317. <label ref="modulenm"/>
  318. <value ref="moduleid"/>
  319. </itemset>
  320. </choices>
  321. </select>
  322. <caption id="caption4" class="cell_1" style="left:495px; top:27px; width:87px; height:23px; font-family:돋움; vertical-align:middle; ">모듈선택</caption>
  323. <select1 id="radio1" ref="/root/init/radio/radio1" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:585px; top:30px; width:210px; height:20px; border-style:none; ">
  324. <choices>
  325. <item>
  326. <label>선택해제</label>
  327. <value>no</value>
  328. </item>
  329. <item>
  330. <label>전체선택</label>
  331. <value>all</value>
  332. </item>
  333. </choices>
  334. <script type="javascript" ev:event="onclick">
  335. <![CDATA[
  336. if(radio1.value =="all") {
  337. for(i=0;i<19;i++){
  338. checkbox1.select(i);
  339. }
  340. }
  341. else if(radio1.value =="no"){
  342. for(i=18;i>=0;i--){
  343. checkbox1.deselect(i);
  344. }
  345. }
  346. ]]>
  347. </script>
  348. </select1>
  349. <caption id="caption11" class="search_n_b" style="left:175px; top:27px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  350. <caption id="caption2" class="cell_1" style="left:290px; top:51px; width:87px; height:23px; font-family:돋움; vertical-align:middle; ">환자명</caption>
  351. <caption id="caption3" class="search_name" style="left:10px; top:27px; width:65px; height:17px; ">기간 :</caption>
  352. <input id="ipt_todd" ref="/root/send/pEnDD" class="input_default" navindex="2" inputtype="date" style="left:190px; top:27px; width:95px; height:19px; text-align:center; "/>
  353. <input id="input1" ref="/root/main/patinfo/patinfolist/hngnm" class="input_default" editable="true" style="left:380px; top:52px; width:100px; height:19px; "/>
  354. <input id="input17" ref="/root/main/patinfo/patinfolist/pid" class="input_default" editable="true" style="left:380px; top:28px; width:80px; height:19px; "/>
  355. <caption id="caption8" class="cell_1" style="left:290px; top:27px; width:87px; height:23px; font-family:돋움; vertical-align:middle; ">등록번호</caption>
  356. <input id="ipt_fromdd" ref="/root/send/pStDD" class="input_default" navindex="1" inputtype="date" style="left:75px; top:27px; width:95px; height:19px; text-align:center; "/>
  357. <button id="button61" class="icon_search" style="left:465px; top:24px; width:16px; height:16px; ">
  358. <caption/>
  359. <script type="javascript" ev:event="DOMActivate">
  360. <![CDATA[
  361. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "", "");
  362. if(model.getValue("/root/main/patinfo/patinfolist/pid") != ""){
  363. model.setValue("/root/hidden/srchinfo/reqpid" ,model.getValue("/root/main/patinfo/patinfolist/pid"));
  364. //model.setValue("/root/send/srchinfo/srchhngnm",model.getValue("/root/init/patinfo/hngnm"));
  365. model.refresh();
  366. }
  367. ]]>
  368. </script>
  369. </button>
  370. <caption id="caption5" class="search_name" style="left:10px; top:92px; width:90px; height:17px; ">처방코드 :</caption>
  371. <button id="btn_patsrch" class="icon_search" style="left:300px; top:92px; width:16px; height:16px; ">
  372. <caption/>
  373. <script type="javascript" ev:event="DOMActivate">
  374. <![CDATA[
  375. model.setValue("/root/main/cond/fromdd",model.getValue("/root/send/pStDD"));
  376. model.setValue("/root/main/cond/todd",model.getValue("/root/send/pEnDD"));
  377. modal("SPMMO16600");
  378. fSetComboCodeCD();
  379. cmb_prcpcd.select(0)
  380. ]]>
  381. </script>
  382. </button>
  383. <select1 id="cmb_prcpcd" ref="/root/main/cond/prcpcd" appearance="minimal" style="left:95px; top:90px; width:190px; height:19px; ">
  384. <choices>
  385. <itemset nodeset="/root/init/code/prcpcd">
  386. <label ref="codecd"/>
  387. <value ref="codenm"/>
  388. </itemset>
  389. </choices>
  390. </select1>
  391. <select id="chk_deptflag" ref="/root/send/srchdata/deptflag" class="checkbox_search" overflow="visible" appearance="full" cols="8" style="left:380px; top:90px; width:90px; height:20px; border-style:none; ">
  392. <choices>
  393. <item>
  394. <label>진료부서</label>
  395. <value>D</value>
  396. </item>
  397. </choices>
  398. <script type="javascript" ev:event="xforms-select">
  399. <![CDATA[
  400. //fSelDeptflag();
  401. model.setValue("/root/send/srchdata/srchfromdd",model.getValue("/root/send/pStDD"));
  402. model.setValue("/root/send/srchdata/srchtodd",model.getValue("/root/send/pEnDD"));
  403. // 진료과
  404. chk_deptcd.visible=true;
  405. var deptflag = model.getValue("/root/send/srchdata/deptflag");
  406. if(deptflag != ""){
  407. submit("TRADT10321");
  408. //model.setValue("/root/send/srchdata/srchdeptcd", "");
  409. var srchdeptcd = model.GetValue("/root/send/srchdata/srchdeptcd");
  410. var tmp_deptflag = deptflag.split(" "); // 이전 선택된 부서구분을 위한 비교변수 설정
  411. }
  412. model.refresh();
  413. ]]>
  414. </script>
  415. <script type="javascript" ev:event="xforms-deselect">
  416. <![CDATA[
  417. // 진료과
  418. chk_deptcd.visible=true;
  419. var deptflag = model.getValue("/root/send/srchdata/deptflag");
  420. if(deptflag != ""){
  421. submit("TRADT10321");
  422. // 체크박스 해제한 항목을 조회조건에서 제외 - 그외 기존 체크항목 유지
  423. var srchdeptcd = "";
  424. var tmp_srchdeptcd = model.getValue("/root/send/srchdata/srchdeptcd").split("|"); //기존 선택한 [상세부서]목록 설정
  425. for(var i = 1; i <= getNodesetCount("/root/init/orddept/dept"); i++){ // 새로조회된 [상세부서]목록만큼.. * 인스턴스배열은 1부터..
  426. if(isSearchString(deptflag, model.getValue("/root/init/orddept/dept["+i+"]/orddeptflag"))){ // 새로 조회된 부서 중 이전 선택한 항목에 대해서만.. [부서구분]으로 비교
  427. for(j = 0; j < tmp_srchdeptcd.length; j++){
  428. if(model.getValue("/root/init/orddept/dept["+i+"]/deptcd") == tmp_srchdeptcd[j]){ // 신/구 [상세부서] 비교
  429. srchdeptcd += tmp_srchdeptcd[j]+"|";
  430. //if(i != (getNodesetCount("/root/init/orddept/dept")+1)) srchdeptcd += "|"; // 가장 마지막은 구분자 삽입하지 않음.
  431. }
  432. model.setValue("/root/init/orddept/dept["+i+"]/chk", "Y");
  433. }
  434. }
  435. }
  436. srchdeptcd = srchdeptcd.substr(0,parseInt(srchdeptcd.length)-1); // 마지막 구분자는 삭제
  437. model.setValue("/root/send/srchdata/srchdeptcd", srchdeptcd);
  438. gv_deptflag = deptflag; // 이전 선택된 부서구분을 위한 비교변수 설정
  439. }else{
  440. // 선택한 대상부서가 없을시 부서 조회조건 초기화
  441. model.resetInstanceNode("/root/init/orddept/dept");
  442. model.setValue("/root/send/srchdata/srchdeptcd", "");
  443. gv_deptflag = "";
  444. }
  445. model.refresh();
  446. ]]>
  447. </script>
  448. <script type="javascript" ev:event="onmouseover">
  449. <![CDATA[
  450. chk_deptcd.visible=true;
  451. ]]>
  452. </script>
  453. </select>
  454. <select id="chk_deptcd" ref="/root/send/srchdata/srchdeptcd" overflow="visible" appearance="full" cols="3" sep="|" style="left:380px; top:110px; width:100px; height:20px; background-color:#ffffff; border-style:none; ">
  455. <choices>
  456. <itemset nodeset="/root/init/orddept/dept">
  457. <label ref="depthngnm"/>
  458. <value ref="deptcd"/>
  459. </itemset>
  460. </choices>
  461. <script type="javascript" ev:event="onmousemove">
  462. <![CDATA[
  463. chk_deptcd.visible=true;
  464. ]]>
  465. </script>
  466. <script type="javascript" ev:event="onmouseout">
  467. <![CDATA[
  468. chk_deptcd.visible=false;
  469. ]]>
  470. </script>
  471. </select>
  472. <select id="checkbox4" ref="/root/init/baseinfo/prcpgenrflag" class="checkbox_search" overflow="visible" appearance="full" cols="4" itemheight="20" itemwidth="45" sep="|" style="left:95px; top:50px; width:190px; height:35px; border-style:none; ">
  473. <choices>
  474. <itemset nodeset="/root/init/baseinfo/prcpgenrflag/M0010">
  475. <label ref="cdnm"/>
  476. <value ref="cdid"/>
  477. </itemset>
  478. </choices>
  479. </select>
  480. <caption id="caption7" class="search_name" style="left:10px; top:50px; width:90px; height:17px; ">처방구분 :</caption>
  481. <button id="button2" class="btn1_letter3" style="left:1070px; top:0px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  482. <caption>초기화</caption>
  483. <script type="javascript" ev:event="onclick">
  484. <![CDATA[
  485. fInitialize1();
  486. ]]>
  487. </script>
  488. </button>
  489. </xhtml:body>
  490. </xhtml:html>