SMASB00600_항생제내성균환자조회.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  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. <antibiorstbtrpatinfo>
  11. </antibiorstbtrpatinfo>
  12. <cond>
  13. <termchoi>P</termchoi>
  14. <fromdd/>
  15. <todd/>
  16. <pid/>
  17. <orddept/>
  18. <patnm/>
  19. <wardcd/>
  20. <nsgbrcd/>
  21. <bac/>
  22. <bac2>A</bac2>
  23. <groupflag/>
  24. </cond>
  25. <sortcond>
  26. <sort1>1</sort1>
  27. <cond1>0</cond1>
  28. <cond2>-</cond2>
  29. <sort2>2</sort2>
  30. <cond3>0</cond3>
  31. <cond4>-</cond4>
  32. <sort3>3</sort3>
  33. <cond5>0</cond5>
  34. <cond6>-</cond6>
  35. <sort4>4</sort4>
  36. <cond7>0</cond7>
  37. <cond8>-</cond8>
  38. <sort5>5</sort5>
  39. <cond9>0</cond9>
  40. <cond10>-</cond10>
  41. </sortcond>
  42. </main>
  43. <send>
  44. <reqdata/>
  45. <savedata/>
  46. </send>
  47. <hidden>
  48. <orddeptlist>
  49. </orddeptlist>
  50. <warddeptlist>
  51. </warddeptlist>
  52. <deptcd>10400</deptcd>
  53. <popupmenu>
  54. <grid01>
  55. <item>
  56. <name>항생제내성균상세내역조회</name>
  57. <func>fAntibioDetlListPopup</func>
  58. </item>
  59. <item>
  60. <name>병원감염보고서등록</name>
  61. <func>fHospInfcReptPopup</func>
  62. </item>
  63. </grid01>
  64. </popupmenu>
  65. </hidden>
  66. <init/>
  67. <init>
  68. <initdate>
  69. <today/>
  70. </initdate>
  71. <P0149list>
  72. <P0149>
  73. <cdid/>
  74. <cdnm/>
  75. </P0149>
  76. </P0149list>
  77. <RSTBTRlist>
  78. <rstbtr>
  79. <cdid/>
  80. <cdnm/>
  81. </rstbtr>
  82. </RSTBTRlist>
  83. </init>
  84. </root>
  85. </instance>
  86. <script type="javascript" ev:event="xforms-ready">
  87. <![CDATA[
  88. fInitialize();
  89. ]]>
  90. </script>
  91. <submission id="TRASB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/antibiorstbtrpatinfo"/>
  92. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  93. <submission id="TXASB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/anitbiorstbtrpatinfo"/>
  94. <submission id="TRASB00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/RSTBTRlist"/>
  95. </model>
  96. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  99. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  100. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  101. <script type="javascript">
  102. <![CDATA[
  103. function fInitialize() {
  104. // 공통코드를 조회한다.
  105. var instcd = getUserInfo("dutplceinstcd");
  106. var standard_yn = "orduseyn";
  107. var ord_deptflag = 'D';
  108. var rslt_ref = "/root/hidden/orddeptlist";
  109. var sort_field = "depthngnm";
  110. var sort_method = "asc";
  111. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  112. addComboItem("cmb_orddept","","","above");
  113. standard_yn = "orduseyn";
  114. ord_deptflag = "W";
  115. rslt_ref = "/root/hidden/warddeptlist";
  116. sort_field = "deptcd";
  117. sort_method = "asc";
  118. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  119. addComboItem("cmb_wardcd","","","above");
  120. model.removeNodeset("/root/send");
  121. model.makeNode("/root/send");
  122. submit("TRASB00602", false);
  123. model.makeNode("/root/init/curdt");
  124. model.makeValue("/root/init/curdt/curdt", getCurrentDate());
  125. //model.makeValue("/root/init/curdt/curtm", getCurrentTime()):
  126. var idate=new Date();
  127. var frDate=idate.getAddDate(-1, "D");
  128. model.setValue("/root/main/cond/fromdd", frDate.getDateFormat());
  129. model.setValue("/root/main/cond/todd", model.getValue("/root/init/curdt/curdt"));
  130. model.refresh();
  131. }
  132. //항생제내성균상세조회
  133. function fAntibioDetlListPopup(){
  134. model.makeNode("/root/hidden/cond");
  135. var row=grd_anitbiorstbtrpatlist.selectedRow(0);
  136. model.makeValue("/root/hidden/cond/pid", model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + row +"]/pid"));
  137. model.makeValue("/root/hidden/cond/name", model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + row +"]/patnm"));
  138. model.makeValue("/root/hidden/cond/sexflag", model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + row +"]/sexflag"));
  139. model.makeValue("/root/hidden/cond/sexflag2", model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + row +"]/patsex"));
  140. model.makeValue("/root/hidden/cond/age", model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + row +"]/age"));
  141. model.makeValue("/root/hidden/cond/nsgbrcd", model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + row +"]/nsgbrcd"));
  142. model.makeValue("/root/hidden/cond/nsgbrcd2", model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + row +"]/nsgbrcode"));
  143. modal("SPASB00700", "1", "10", "10", "SPASB00700", "/root/hidden/cond", "/root/main/cond");
  144. }
  145. //병원감염보고서 popup
  146. function fHospInfcReptPopup() {
  147. var sessionPID = getPatientId();
  148. var iRow=grd_anitbiorstbtrpatlist.row;
  149. if(sessionPID != model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/pid")){
  150. fReqOpPatPamInfo();
  151. }
  152. var rtnmsg_header="reptdd▦ispccd▦spcnm▦ibaccd▦bacnm▦nsgbrcode▦nsgbrcd▦iprcpdd▦ibcolldt▦itclscd▦itestcd▦ibcno▦spcacptdt▩";
  153. var rtnmsg_data="";
  154. rtnmsg_data+=model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/reptdd") +"▦"
  155. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/ispccd") +"▦"
  156. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/spcnm") +"▦"
  157. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/ibaccd") +"▦"
  158. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/bacnm") +"▦"
  159. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/nsgbrcode") +"▦"
  160. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/nsgbrcd") +"▦"
  161. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/iprcpdd") +"▦"
  162. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/ibcolldt") +"▦"
  163. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/itclscd") +"▦"
  164. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/itestcd") +"▦"
  165. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/ibcno") +"▦"
  166. + model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist["+iRow+"]/ibcolldt") +"▩";
  167. setParameter("setVal12", rtnmsg_header+rtnmsg_data);
  168. open("SMASI00100", 1,10,10, "SMASI00100");
  169. //model.close();
  170. }
  171. //상단정보설정
  172. function fReqOpPatPamInfo(){
  173. var iRow=grd_anitbiorstbtrpatlist.row;
  174. var ioflag="I";
  175. var pid= model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + iRow+ "]/pid");
  176. var indd=model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + iRow+ "]/indd");
  177. var cretno=model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + iRow+ "]/cretno") ;
  178. var seqno=model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + iRow+ "]/seqno");
  179. var instcd=getUserInfo("dutplceinstcd");
  180. var srchdd=getCurrentDate();
  181. var param= ioflag + "▦" //입원환자
  182. + pid + "▦"
  183. + indd + "▦"
  184. + cretno + "▦"
  185. + instcd + "▦";
  186. setParameter("condparam", param);
  187. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  188. }
  189. ]]>
  190. </script>
  191. </xhtml:head>
  192. <xhtml:body idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  193. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  194. <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
  195. <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
  196. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  197. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">항생제내성균 환자조회</caption>
  198. </group>
  199. </group>
  200. </group>
  201. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  202. <button id="btn_print" class="btn6_letter2" style="left:5px; top:3px; width:56px; height:22px; ">
  203. <caption>출력</caption>
  204. </button>
  205. <button id="btn_save" class="btn4_letter2" style="left:1064px; top:3px; width:56px; height:22px; ">
  206. <caption>저장</caption>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. if(model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist/pid") == "" || model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist/pid") == null) {
  210. messageBox("저장할 데이터가", "I004");
  211. return;
  212. }
  213. else{
  214. var selstatus;
  215. for(var i=1; i < grd_anitbiorstbtrpatlist.rows; i++){
  216. selstatus=model.getValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + i + "]/select");
  217. if(selstatus =="true") {
  218. model.removeNodeset("/root/send");
  219. model.makeValue("/root/send/savedata/data",grd_anitbiorstbtrpatlist.getUpdateDataAll("i"));
  220. submit("TXASB00601");
  221. break;
  222. }
  223. }
  224. if(selstatus== "false" || selstatus == "" || selstatus== null) messageBox("저장할 데이터를", "C002");
  225. }
  226. /*model.removeNodeset("/root/send");
  227. model.makeValue("/root/send/savedata/data",grd_anitbiorstbtrpatlist.getUpdateDataAll("i"));
  228. submit("TXASB00601");*/
  229. ]]>
  230. </script>
  231. </button>
  232. <button id="btn_init" class="btn4_letter3" style="left:1123px; top:3px; width:68px; height:22px; ">
  233. <caption>초기화</caption>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. model.resetInstanceNode("/root/main/antibiorstbtrpatinfo");
  237. model.resetInstanceNode("/root/main/cond");
  238. model.refresh();
  239. ]]>
  240. </script>
  241. </button>
  242. </group>
  243. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  244. <group id="group1" style="left:5px; top:10px; width:1190px; height:90px; vertical-align:top; ">
  245. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:85px; "/>
  246. <line id="line1" class="line_4" style="x1:1110px; y1:10px; x2:1110px; y2:78px; "/>
  247. <caption id="caption7" class="search_name" style="left:14px; top:9px; width:96px; height:17px; ">기간선택 :</caption>
  248. <caption id="caption8" class="search_name" style="left:612px; top:10px; width:99px; height:17px; ">내성균구분 :</caption>
  249. <caption id="caption12" class="search_name" style="left:14px; top:35px; width:101px; height:17px; ">등록번호 :</caption>
  250. <caption id="caption17" class="search_name" style="left:245px; top:61px; width:80px; height:17px; ">병 동 :</caption>
  251. <caption id="caption18" class="search_name" style="left:14px; top:60px; width:98px; height:17px; ">진 료 과 :</caption>
  252. <caption id="caption19" class="search_no_b" style="left:302px; top:10px; width:12px; height:17px; ">~</caption>
  253. <caption id="importcaption1" class="search_name" style="left:245px; top:35px; width:78px; height:17px; ">환자명 :</caption>
  254. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" style="left:112px; top:34px; width:93px; height:19px; "/>
  255. <select1 id="cmb_termchoi" ref="/root/main/cond/termchoi" class="combo_default" appearance="minimal" style="left:112px; top:9px; width:93px; height:19px; ">
  256. <choices>
  257. <item>
  258. <label>처방일</label>
  259. <value>P</value>
  260. </item>
  261. <item>
  262. <label>접수일</label>
  263. <value>S</value>
  264. </item>
  265. <item>
  266. <label>보고일</label>
  267. <value>R</value>
  268. </item>
  269. <!--item>
  270. <label>재원자</label>
  271. <value>I</value>
  272. </item-->
  273. </choices>
  274. <script type="javascript" ev:event="xforms-value-changed">
  275. <![CDATA[
  276. var term=model.getValue("/root/main/cond/termchoi");
  277. if(term =="I") {
  278. ipt_fromdd.disabled= true;
  279. ipt_todd.disabled=true;
  280. model.setValue("/root/main/cond/fromdd", "");
  281. model.setValue("/root/main/cond/todd", "");
  282. model.refresh();
  283. } else {
  284. ipt_fromdd.disabled= false;
  285. ipt_todd.disabled=false;
  286. }
  287. ]]>
  288. </script>
  289. </select1>
  290. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_default" inputtype="date" style="left:210px; top:9px; width:90px; height:19px; "/>
  291. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_default" inputtype="date" style="left:316px; top:9px; width:90px; height:19px; "/>
  292. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_search" appearance="minimal" style="left:328px; top:60px; width:135px; height:19px; ">
  293. <choices>
  294. <itemset nodeset="/root/hidden/warddeptlist/dept">
  295. <label ref="depthngnm"/>
  296. <value ref="deptcd"/>
  297. </itemset>
  298. </choices>
  299. </select1>
  300. <input id="ipt_patnm" ref="/root/main/cond/patnm" class="input_search" style="left:328px; top:35px; width:90px; height:19px; "/>
  301. <select1 id="cmb_orddept" ref="/root/main/cond/orddept" class="combo_search" appearance="minimal" style="left:112px; top:60px; width:128px; height:19px; ">
  302. <choices>
  303. <itemset nodeset="/root/hidden/orddeptlist/dept">
  304. <label ref="depthngnm"/>
  305. <value ref="deptcd"/>
  306. </itemset>
  307. </choices>
  308. </select1>
  309. <button id="btn_search" class="btn1_letter2" style="left:1126px; top:36px; width:56px; height:22px; ">
  310. <caption>조회</caption>
  311. <script type="javascript" ev:event="DOMActivate">
  312. <![CDATA[
  313. var fromdd=model.getValue("/root/main/cond/fromdd");
  314. var todd=model.getValue("/root/main/cond/todd");
  315. var term=model.getValue("/root/main/cond/termchoi");
  316. if( term == "") {
  317. messageBox("조회기준을", "C002");
  318. return;
  319. }
  320. if( term != "I" && (fromdd== "" || todd== "" )) {
  321. messageBox("기간을", "C002");
  322. //messageBox("일자는", "I003");
  323. return;
  324. }
  325. //model.removeNodeset("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist");
  326. model.makeNode("/root/send/cond");
  327. model.copyNode("/root/send/cond", "/root/main/cond");
  328. var bac=model.getValue("/root/main/cond/bac");
  329. if(bac != "") {
  330. bac=bac.toUpperCase( );
  331. model.setValue("/root/send/cond/bac", bac);
  332. }
  333. submit("TRASB00601");
  334. ]]>
  335. </script>
  336. </button>
  337. <select id="chk_nsgbrcd" ref="/root/main/cond/nsgbrcd" overflow="scroll" appearance="full" cellspacing="10" cols="5" vcellspacing="5" style="left:710px; top:10px; width:396px; height:75px; border-style:none; ">
  338. <choices>
  339. <itemset nodeset="/root/init/RSTBTRlist/rstbtr">
  340. <label ref="cdnm"/>
  341. <value ref="cdid"/>
  342. </itemset>
  343. </choices>
  344. </select>
  345. <input id="ipt_bac" ref="/root/main/cond/bac" class="input_search" style="left:490px; top:10px; width:110px; height:19px; "/>
  346. <caption id="caption2" class="search_name" style="left:440px; top:10px; width:50px; height:17px; ">균 :</caption>
  347. <select1 id="rdo_bac" ref="/root/main/cond/bac2" navindex="1" appearance="full" cols="1" rows="3" overflow="visible" style="left:490px; top:31px; width:130px; height:51px; border-style:none; ">
  348. <choices>
  349. <item>
  350. <label>ALL Dates</label>
  351. <value>A</value>
  352. </item>
  353. <item>
  354. <label>First isolate only</label>
  355. <value/>
  356. </item>
  357. <item>
  358. <label>First isolate only 2</label>
  359. <value/>
  360. </item>
  361. </choices>
  362. </select1>
  363. <button id="btn_patInfo" class="icon_search" style="left:423px; top:37px; width:16px; height:16px; ">
  364. <caption/>
  365. <script type="javascript" ev:event="DOMActivate">
  366. <![CDATA[
  367. if( (model.getValue("/root/main/cond/pid") != "") || (model.getValue("/root/main/cond/pid") != "")) {
  368. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/cond/pid"));
  369. model.makeValue("/root/send/reqdata/srchcond", "1");
  370. }
  371. if( (model.getValue("/root/main/cond/patnm") != "") || (model.getValue("/root/main/cond/patnm") != "")) {
  372. model.makeValue("/root/send/reqdata/hngnm", model.getValue("/root/main/cond/patnm"));
  373. model.makeValue("/root/send/reqdata/srchcond", "2");
  374. }
  375. model.makeNode("/root/main/patinfo/patinfolist");
  376. modal("SPPMC02500",0,0,0,"SPPMC02500", "/root/send/reqdata", "/root/send");
  377. if(model.getValue("/root/main/patinfo/patinfolist/pid") != ""){
  378. model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  379. model.setValue("/root/main/cond/patnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  380. model.refresh();
  381. }
  382. ]]>
  383. </script>
  384. </button>
  385. </group>
  386. <line id="line3" class="line_1" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
  387. <line id="line5" class="line_3" style="x1:0px; y1:148px; x2:1194px; y2:148px; "/>
  388. <button id="btn_sort" class="btn2_letter2" style="left:1107px; top:100px; width:42px; height:19px; ">
  389. <caption>정렬</caption>
  390. <script type="javascript" ev:event="DOMActivate">
  391. <![CDATA[
  392. var tmpCol = model.getValue("/root/main/sortcond/cond1");
  393. var tmpsort = model.getValue("/root/main/sortcond/cond2");
  394. if (tmpsort == "asc" && tmpCol > 0 )
  395. {
  396. grd_anitbiorstbtrpatlist.colsort(tmpCol) = "asc";
  397. } else{
  398. grd_anitbiorstbtrpatlist.colsort(tmpCol) = "desc";
  399. }
  400. var tmpCol = model.getValue("/root/main/sortcond/cond3");
  401. var tmpsort = model.getValue("/root/main/sortcond/cond4");
  402. if (tmpsort == "asc" && tmpCol > 0 )
  403. {
  404. grd_anitbiorstbtrpatlist.colsort(tmpCol) = "asc";
  405. } else{
  406. grd_anitbiorstbtrpatlist.colsort(tmpCol) = "desc";
  407. }
  408. var tmpCol = model.getValue("/root/main/sortcond/cond5");
  409. var tmpsort = model.getValue("/root/main/sortcond/cond6");
  410. if (tmpsort == "asc" && tmpCol > 0 )
  411. {
  412. grd_anitbiorstbtrpatlist.colsort(tmpCol) = "asc";
  413. } else{
  414. grd_anitbiorstbtrpatlist.colsort(tmpCol) = "desc";
  415. }
  416. var tmpCol = model.getValue("/root/main/sortcond/cond7");
  417. var tmpsort = model.getValue("/root/main/sortcond/cond8");
  418. if (tmpsort == "asc" && tmpCol > 0 )
  419. {
  420. grd_anitbiorstbtrpatlist.colsort(tmpCol) = "asc";
  421. } else{
  422. grd_anitbiorstbtrpatlist.colsort(tmpCol) = "desc";
  423. }
  424. var tmpCol = model.getValue("/root/main/sortcond/cond9");
  425. var tmpsort = model.getValue("/root/main/sortcond/cond10");
  426. if (tmpsort == "asc" && tmpCol > 0 )
  427. {
  428. grd_anitbiorstbtrpatlist.colsort(tmpCol) = "asc";
  429. } else{
  430. grd_anitbiorstbtrpatlist.colsort(tmpCol) = "desc";
  431. }
  432. grd_anitbiorstbtrpatlist.sort(1, 1, grd_anitbiorstbtrpatlist.bottomRow, grd_anitbiorstbtrpatlist.rightcol)="usersort";
  433. model.refresh();
  434. ]]>
  435. </script>
  436. </button>
  437. <datagrid id="grd_anitbiorstbtrpatlist" nodeset="/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist" caption="선택^내성균구분^등록번호^이름^성별^연령구분^검체구분^GAP^나이^처방병동^처방병실^현재원병동^현재원병실^진료과^주치의^입원일^퇴원일^재원기간^보고일^검체^균^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^cretno^seqno" colsep="^" colwidth="42, 71, 100, 70, 62, 100, 100, 100, 40, 70, 70, 70, 75, 90, 85, 73, 56, 70, 70, 70, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:125px; width:1194px; height:616px; ">
  438. <col ref="select" type="checkbox"/>
  439. <col ref="nsgbrcd"/>
  440. <col ref="pid"/>
  441. <col ref="patnm"/>
  442. <col ref="sexflag"/>
  443. <col ref="agegbn"/>
  444. <col ref="spcgbn"/>
  445. <col ref="gap"/>
  446. <col ref="age"/>
  447. <col ref="befwardcd"/>
  448. <col ref="befroomcd"/>
  449. <col ref="prestwardcd"/>
  450. <col ref="prestroomcd"/>
  451. <col ref="orddept"/>
  452. <col ref="atdoct"/>
  453. <col ref="indd"/>
  454. <col ref="dschdd"/>
  455. <col ref="inhospterm"/>
  456. <col ref="reptdd"/>
  457. <col ref="spcnm"/>
  458. <col ref="bacnm"/>
  459. <col ref="ibcno" visibility="hidden"/>
  460. <col ref="itclscd" visibility="hidden"/>
  461. <col ref="itestcd" visibility="hidden"/>
  462. <col ref="ispccd" visibility="hidden"/>
  463. <col ref="irsltseq" visibility="hidden"/>
  464. <col ref="ibaccd" visibility="hidden"/>
  465. <col ref="ibacseqno" visibility="hidden"/>
  466. <col ref="irsltflag" visibility="hidden"/>
  467. <col ref="itestkindcd" visibility="hidden"/>
  468. <col ref="iantibiorslt" visibility="hidden"/>
  469. <col ref="iprcpdd" visibility="hidden"/>
  470. <col ref="ibcolldt" visibility="hidden"/>
  471. <col ref="isbgdwardcd" visibility="hidden"/>
  472. <col ref="iatdrid" visibility="hidden"/>
  473. <col ref="nsgbrcode" visibility="hidden"/>
  474. <col ref="cretno" visibility="hidden"/>
  475. <col ref="seqno" visibility="hidden"/>
  476. <script type="javascript" ev:event="onaftersort">
  477. <![CDATA[
  478. grd_anitbiorstbtrpatlist.gridToInstance();
  479. ]]>
  480. </script>
  481. <script type="javascript" ev:event="onmousedown">
  482. <![CDATA[
  483. setPopupMenu("grd_anitbiorstbtrpatlist", false, "/root/hidden/popupmenu/grid01/item", "name", "func");
  484. ]]>
  485. </script>
  486. <script type="javascript" ev:event="ondblclick">
  487. <![CDATA[
  488. if(( grd_anitbiorstbtrpatlist.mouseRow > 0) && ( grd_anitbiorstbtrpatlist.mouseRow <= grd_anitbiorstbtrpatlist.rows )) {
  489. fReqOpPatPamInfo();
  490. }
  491. if(grd_anitbiorstbtrpatlist.col==1) {
  492. for(var i=1; i < grd_anitbiorstbtrpatlist.rows; i++){
  493. model.setValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + i + "]/select", "true");
  494. }
  495. model.refresh();
  496. }
  497. ]]>
  498. </script>
  499. </datagrid>
  500. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:100px; width:42px; height:19px; ">
  501. <caption>엑셀</caption>
  502. <script type="javascript" ev:event="DOMActivate">
  503. <![CDATA[
  504. // var fileName = window.fileDialog("save", ",", false, "항생제내성균환자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  505. // if (fileName != ""){
  506. // grd_anitbiorstbtrpatlist.saveExcel(fileName, "SheetName", false, false, "", "", false);
  507. // }
  508. var fileName = window.fileDialog("save", ",", false, "항생제내성균환자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  509. if (fileName != ""){
  510. grd_anitbiorstbtrpatlist.saveExcel(fileName, "항생제내성균환자", true, true, "", "", false);
  511. var s = fileName.lastIndexOf("\\");
  512. var fileName=fileName.substring(s+1);
  513. var rmsg = messageBox("저장된 Excel을", "Q004");
  514. if( rmsg == 6 ){
  515. window.exec("excel.exe", fileName);
  516. }
  517. }
  518. ]]>
  519. </script>
  520. </button>
  521. <button id="btn_prntchoi" class="btn2_letter4" style="left:973px; top:100px; width:64px; height:19px; ">
  522. <caption>전체선택</caption>
  523. <script type="javascript" ev:event="DOMActivate">
  524. <![CDATA[
  525. for(var i=1; i < grd_anitbiorstbtrpatlist.rows; i++){
  526. model.setValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + i + "]/select", "true");
  527. }
  528. model.refresh();
  529. ]]>
  530. </script>
  531. </button>
  532. <button id="btn_choicncl" class="btn2_letter4" style="left:1040px; top:100px; width:64px; height:19px; ">
  533. <caption>전체취소</caption>
  534. <script type="javascript" ev:event="DOMActivate">
  535. <![CDATA[
  536. for(var i=1; i < grd_anitbiorstbtrpatlist.rows; i++){
  537. model.setValue("/root/main/antibiorstbtrpatinfo/antibiorstbtrpatlist[" + i + "]/select", "false");
  538. }
  539. model.refresh();
  540. ]]>
  541. </script>
  542. </button>
  543. <caption id="caption1" class="tit_2" style="left:0px; top:107px; width:188px; height:13px; ">항생제내성균 환자리스트</caption>
  544. <button id="btn_tsrch" class="btn2_letter4" style="left:860px; top:100px; width:64px; height:19px; ">
  545. <caption>전체건수</caption>
  546. <script type="javascript" ev:event="DOMActivate">
  547. <![CDATA[
  548. open("SMASB00601");
  549. ]]>
  550. </script>
  551. </button>
  552. </group>
  553. </xhtml:body>
  554. </xhtml:html>