SMARH00400_의뢰병원현황.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  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. <send>
  10. <search>
  11. <dayflag>1</dayflag>
  12. <f_date/>
  13. <t_date/>
  14. <coophospnm/>
  15. <dirofhospnm/>
  16. <drnm/>
  17. <orddeptcd/>
  18. <orddrid/>
  19. <hospgrade/>
  20. <codrdeptcd/>
  21. <hospflag>1</hospflag>
  22. <zeroyn/>
  23. <areacd/>
  24. <offset>0</offset>
  25. <pagesize>5000</pagesize>
  26. <spcldryn/>
  27. </search>
  28. <doctor/>
  29. </send>
  30. <main>
  31. <list>
  32. <hosp_list>
  33. <coophospnm/>
  34. <drnm/>
  35. <count/>
  36. <areacd/>
  37. <zipcd1/>
  38. <zipcd2/>
  39. <addr/>
  40. <detladdr/>
  41. <telno/>
  42. <faxno/>
  43. <clsmatyn/>
  44. <hospgrade/>
  45. <codrdeptnm/>
  46. <rgstdd/>
  47. <jobposnm/>
  48. <mjfield01/>
  49. <mjfield02/>
  50. <mjfield03/>
  51. <mjfield04/>
  52. <mjfield05/>
  53. <mjfield06/>
  54. <mjfield07/>
  55. <mjfield08/>
  56. <mjfield09/>
  57. <mjfield10/>
  58. <mjfield11/>
  59. <mjfield12/>
  60. <mjfield13/>
  61. <mjfield14/>
  62. </hosp_list>
  63. </list>
  64. </main>
  65. <init>
  66. <hospgrade>
  67. <A0429/>
  68. </hospgrade>
  69. <hospgrade1>
  70. <A0429/>
  71. </hospgrade1>
  72. <areacd>
  73. <A0426/>
  74. </areacd>
  75. <dept>
  76. <dept>
  77. </dept>
  78. </dept>
  79. <doctlist>
  80. <medispcl>
  81. <doctid/>
  82. <doctnm/>
  83. </medispcl>
  84. <atdoct>
  85. <doctid/>
  86. <doctnm/>
  87. </atdoct>
  88. </doctlist>
  89. <condareacd>
  90. <A0426/>
  91. </condareacd>
  92. <conddept>
  93. <dept/>
  94. </conddept>
  95. </init>
  96. </root>
  97. </instance>
  98. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  99. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  100. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  101. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  102. <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
  103. <script type="javascript" ev:event="xforms-ready">
  104. <![CDATA[
  105. fInit();
  106. ]]>
  107. </script>
  108. <submission id="TRARH00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" add="bottom" resultref="/root/main/list"/>
  109. </model>
  110. </xhtml:head>
  111. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  112. <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
  113. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  114. <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
  115. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  116. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  117. <script src="../../../com/departmentcodeweb/js/common.js" type="javascript"/>
  118. <script src="../../../com/departmentcodeweb/js/ZSD001.js" type="javascript"/>
  119. <script type="javascript">
  120. <![CDATA[
  121. //===========================
  122. // 의뢰건이 있는 병원만 조회가 된다.
  123. //===========================
  124. // 초기값
  125. function fInit()
  126. {
  127. // 공통코드 목록 가져오기
  128. zbcfGetCodeList(new Array("A0429", "A0429"), new Array("/root/init/hospgrade", "/root/init/hospgrade1") , true);
  129. // 유형코드
  130. zbcfGetKindCodeList(
  131. new Array("A0014", "A0014"), //업무규칙
  132. new Array("A0426", "A0426"), //코드군
  133. new Array("/root/init/areacd", "/root/init/condareacd"), //노드
  134. true, //minimum : true TRZBC00105
  135. new Array("", ""), //sorting 항목
  136. new Array("", "")
  137. );
  138. // 오늘 날짜로 세팅
  139. var CurrentDate = getCurrentDate();
  140. model.setValue("/root/send/search/f_date", CurrentDate.substr(0, 6) + "01");
  141. model.setValue("/root/send/search/t_date", CurrentDate);
  142. // 진료과
  143. //var instcd = "012";
  144. var instcd = getUserInfo("dutplceinstcd");
  145. var standard_yn = "rcptuseyn";
  146. var ord_deptflag = 'D';
  147. var rslt_ref = "/root/init/dept";
  148. var sort_method = "depthngnm";
  149. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  150. sort_field = "depthngnm"
  151. zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  152. //kimsj 091201 개원의 진료과 서울성모병원 진료과로 세팅
  153. var instcd1 = "012";
  154. var rslt_ref1 = "/root/init/conddept";
  155. zsdfGetInOutOrdDeptList(instcd1, rslt_ref1, sort_field, sort_method);
  156. addComboItem("cmb_orddeptcd", "", "", "above");
  157. addComboItem("cmb_condareacd", "", "", "above");
  158. addComboItem("cmb_hospgrade", "협력병의원", "CA", "above");
  159. addComboItem("cmb_hospgrade", "", "", "above");
  160. cmb_hospgrade.select(0);
  161. model.removeNodeset("/root/main/list/hosp_list");
  162. fDoctSerach();
  163. // 그리더 헤더 셋팅
  164. fRdoSelect();
  165. model.refresh();
  166. }
  167. // 진료의사 조회
  168. function fDoctSerach()
  169. {
  170. // 진료의사
  171. model.removenode("/root/send/doctor");
  172. model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/f_date"));
  173. model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/send/search/orddeptcd"));
  174. submit("TRARC01302", false);
  175. cmb_orddrid.select(0);
  176. //model.setValue("/root/main/patient/orddrid", orddrid);
  177. }
  178. // 조회
  179. function fSearch()
  180. {
  181. //model.removeNodeset("/root/main/list/hosp_list");
  182. model.removeNodeset("/root/main/list");
  183. model.setValue("/root/send/search/offset", "0");
  184. // reqGetRqstHospList
  185. // getRqstHospList
  186. if (submit("TRARH00401") == true)
  187. {
  188. //grd_list.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  189. //fHospDisabled(true);
  190. }
  191. else
  192. {
  193. messageBox("조회를", "E009");
  194. }
  195. }
  196. function fSubmitOnScroll() {
  197. //if (grd_list.rows < 24) return;
  198. if(grd_list.vscroll.attribute("max") == grd_list.vscroll.attribute("pos")) {
  199. // end of scroll
  200. model.setValue("/root/send/search/offset", grd_list.rows-grd_list.fixedRows); // grid의 header row는 제외
  201. submit("TRARH00401");
  202. grd_list.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  203. }
  204. }
  205. // 초기화
  206. function fAllClear()
  207. {
  208. model.resetInstanceNode("/root/send/search");
  209. // 오늘 날짜로 세팅
  210. var CurrentDate = getCurrentDate();
  211. model.setValue("/root/send/search/f_date", CurrentDate.substr(0, 6) + "01");
  212. model.setValue("/root/send/search/t_date", CurrentDate);
  213. cmb_dayflag.select(0);
  214. cmb_hospgrade.select(0);
  215. rdo_hospflag.select(0);
  216. fRdoSelect();
  217. model.removeNodeset("/root/main/list/hosp_list");
  218. model.refresh();
  219. }
  220. // 리스트 엑셀 파일로 저장
  221. function fExcel()
  222. {
  223. if (grd_list.rows <= 1) return;
  224. var fileName = window.fileDialog("save", ",", false, "의뢰병원현황 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  225. if (fileName != ""){
  226. grd_list.saveExcel(fileName, "의뢰병원현황", false, false, "", "", false);
  227. }
  228. }
  229. // 그리드 헤더
  230. function fRdoSelect()
  231. {
  232. if (rdo_hospflag.value == "1")
  233. {
  234. grd_list.caption = "병의원명^병원장명^의뢰건수^지역명^우편번호^우편번호^주소^주소^전화번호^팩스번호^동문여부^병원구분^대표과^병원등록일자";
  235. }
  236. else if (rdo_hospflag.value == "2")
  237. {
  238. grd_list.caption = "병의원명^의뢰의사명^의뢰건수^지역명^우편번호^우편번호^주소^주소^전화번호^팩스번호^동문여부^병원구분^의뢰의사 진료과^병원등록일자";
  239. }
  240. else
  241. {
  242. grd_list.caption = "병의원명^실무자명^의뢰건수^지역명^우편번호^우편번호^주소^주소^전화번호^팩스번호^동문여부^병원구분^대표과^병원등록일자";
  243. }
  244. }
  245. // 라벨 출력
  246. function fLabelPrint()
  247. {
  248. exeReportPreview("RPARH00401", "XMLSTR");
  249. }
  250. ]]>
  251. </script>
  252. <xhtml:body guideline="1,2;1,1195;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  253. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  254. <group id="group2" style="left:0px; top:13px; width:1195px; height:744px; vertical-align:top; ">
  255. <group id="group1" style="left:0px; top:10px; width:1194px; height:95px; vertical-align:top; ">
  256. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:90px; "/>
  257. <line id="line8" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:85px; "/>
  258. <caption id="caption9" class="search_name" style="left:20px; top:10px; width:94px; height:17px; ">등록일자 :</caption>
  259. <caption id="caption11" class="search_name" style="left:850px; top:35px; width:94px; height:17px; ">병원장명 :</caption>
  260. <caption id="caption5" class="search_no_b" style="left:357px; top:10px; width:12px; height:17px; ">~</caption>
  261. <input id="input1" ref="/root/send/search/t_date" class="input_search" inputtype="date" style="left:375px; top:10px; width:95px; height:19px; "/>
  262. <input id="input5" ref="/root/send/search/f_date" class="input_search" inputtype="date" style="left:255px; top:10px; width:95px; height:19px; "/>
  263. <caption id="caption1" class="search_name" style="left:320px; top:60px; width:104px; height:17px; ">의뢰의사명 :</caption>
  264. <caption id="caption4" class="search_name" style="left:590px; top:35px; width:94px; height:17px; ">병의원명 :</caption>
  265. <button id="btn_search" class="btn1_letter2" style="left:1126px; top:31px; width:56px; height:22px; ">
  266. <caption>조회</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. fSearch();
  270. model.refresh();
  271. ]]>
  272. </script>
  273. </button>
  274. <select1 id="cmb_orddrid" ref="/root/send/search/orddrid" class="combo_search" appearance="minimal" style="left:945px; top:10px; width:130px; height:19px; ">
  275. <choices>
  276. <itemset nodeset="/root/init/doctlist/medispcl/">
  277. <label ref="doctnm"/>
  278. <value ref="doctid"/>
  279. </itemset>
  280. </choices>
  281. </select1>
  282. <caption id="caption3" class="search_name" style="left:590px; top:10px; width:94px; height:17px; ">진료과 :</caption>
  283. <caption id="caption6" class="search_name" style="left:850px; top:10px; width:94px; height:17px; ">진료의사 :</caption>
  284. <caption id="caption13" class="search_name" style="left:20px; top:35px; width:91px; height:17px; ">병원구분 :</caption>
  285. <select1 id="cmb_hospgrade" ref="/root/send/search/hospgrade" class="combo_search" appearance="minimal" style="left:155px; top:35px; width:130; height:19px; ">
  286. <choices>
  287. <itemset nodeset="/root/init/hospgrade/A0429">
  288. <label ref="cdnm"/>
  289. <value ref="cdid"/>
  290. </itemset>
  291. </choices>
  292. </select1>
  293. <select1 id="cmb_condareacd" ref="/root/send/search/areacd" class="combo_search" appearance="minimal" style="left:425px; top:35px; width:130px; height:19px; ">
  294. <choices>
  295. <itemset nodeset="/root/init/condareacd/A0014A0426">
  296. <label ref="cdnm"/>
  297. <value ref="cdid"/>
  298. </itemset>
  299. </choices>
  300. </select1>
  301. <caption id="caption7" class="search_name" style="left:20px; top:60px; width:130px; height:17px; ">의뢰의사 진료과 :</caption>
  302. <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" appearance="minimal" style="left:685px; top:10px; width:130px; height:19px; ">
  303. <choices>
  304. <itemset nodeset="/root/init/dept/dept">
  305. <label ref="depthngnm"/>
  306. <value ref="deptcd"/>
  307. </itemset>
  308. </choices>
  309. <script type="javascript" ev:event="xforms-value-changed">
  310. <![CDATA[
  311. fDoctSerach();
  312. model.refresh();
  313. ]]>
  314. </script>
  315. </select1>
  316. <input id="ipt_coophospnm" ref="/root/send/search/coophospnm" class="input_search" style="left:685px; top:35px; width:130px; height:19px; "/>
  317. <input id="ipt_dirofhospnm" ref="/root/send/search/dirofhospnm" class="input_search" style="left:945px; top:35px; width:130px; height:19px; "/>
  318. <input id="ipt_drnm" ref="/root/send/search/drnm" class="input_search" style="left:425px; top:60px; width:130; height:19px; "/>
  319. <select1 id="cmb_codrorddeptcd" ref="/root/send/search/codrdeptcd" class="combo_search" appearance="minimal" style="left:155px; top:60px; width:130; height:19px; ">
  320. <choices>
  321. <itemset nodeset="/root/init/conddept/dept">
  322. <label ref="depthngnm"/>
  323. <value ref="deptcd"/>
  324. </itemset>
  325. </choices>
  326. </select1>
  327. <select1 id="rdo_hospflag" ref="/root/send/search/hospflag" appearance="full" cols="3" overflow="visible" style="left:590px; top:60px; width:185px; height:20px; border-style:none; ">
  328. <choices>
  329. <item>
  330. <label>병원별</label>
  331. <value>1</value>
  332. </item>
  333. <item>
  334. <label>의사별</label>
  335. <value>2</value>
  336. </item>
  337. <item>
  338. <label>실무자별</label>
  339. <value>3</value>
  340. </item>
  341. </choices>
  342. <script type="javascript" ev:event="xforms-select">
  343. <![CDATA[
  344. fRdoSelect();
  345. model.refresh();
  346. ]]>
  347. </script>
  348. </select1>
  349. <select1 id="cmb_dayflag" ref="/root/send/search/dayflag" class="combo_search" appearance="minimal" style="left:155px; top:10px; width:100px; height:19px; ">
  350. <choices>
  351. <item>
  352. <label>의뢰등록일자</label>
  353. <value>1</value>
  354. </item>
  355. <item>
  356. <label>병원등록일자</label>
  357. <value>2</value>
  358. </item>
  359. </choices>
  360. </select1>
  361. <select id="chk_clsmatyn" ref="/root/send/search/zeroyn" overflow="visible" appearance="full" style="left:775px; top:60px; width:100px; height:20px; border-style:none; ">
  362. <choices>
  363. <item>
  364. <label>의뢰0건 포함</label>
  365. <value>Y</value>
  366. </item>
  367. </choices>
  368. </select>
  369. <caption id="caption35" class="search_name" style="left:320px; top:35px; width:86px; height:17px; ">지역명 :</caption>
  370. <select id="checkbox1" ref="/root/send/search/spcldryn" overflow="visible" appearance="full" cols="2" sep="','" style="left:875px; top:60px; width:225px; height:20px; border-style:none; ">
  371. <choices>
  372. <item>
  373. <label>치과의사제외</label>
  374. <value>2</value>
  375. </item>
  376. <item>
  377. <label>한의사제외</label>
  378. <value>3</value>
  379. </item>
  380. </choices>
  381. </select>
  382. </group>
  383. <line id="line1" class="line_1" style="x1:0px; y1:131px; x2:1194px; y2:131px; "/>
  384. <caption id="caption8" class="tit_2" style="left:5px; top:112px; width:139px; height:13px; ">의뢰병원현황 리스트</caption>
  385. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:109px; width:42px; height:19px; ">
  386. <caption>엑셀</caption>
  387. <script type="javascript" ev:event="DOMActivate">
  388. <![CDATA[
  389. fExcel();
  390. ]]>
  391. </script>
  392. </button>
  393. <datagrid id="grd_list" nodeset="/root/main/list/hosp_list" autoresize="true" caption="병의원명^의뢰의사명^의뢰건수^지역명^우편번호^우편번호^주소^주소^전화번호^팩스번호^동문여부^병원구분^의뢰의사 진료과^병원등록일자^응급실 운영^수술여부^중환자실^인공호흡기^재원:항암,RT환자^혈액,종양내과^감염관리^투석^재활^장기요양^호스피스 말기암관리^수혈^항생제^통증" colsep="^" colwidth="130, 110, 70, 110, 60, 60, 250, 240, 110, 110, 70, 90, 110, 100, 100, 100, 100, 100, 105, 100, 100, 100, 100, 100, 120, 100, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:135px; width:1195px; height:603px; vertical-align:middle; ">
  394. <col ref="coophospnm"/>
  395. <col ref="drnm"/>
  396. <col ref="count" style="text-align:center; "/>
  397. <col disabled="true" ref="areacd" type="combo">
  398. <choices>
  399. <itemset nodeset="/root/init/areacd/A0014A0426">
  400. <label ref="cdnm"/>
  401. <value ref="cdid"/>
  402. </itemset>
  403. </choices>
  404. </col>
  405. <col ref="zipcd1" style="text-align:center; "/>
  406. <col ref="zipcd2" style="text-align:center; "/>
  407. <col ref="addr"/>
  408. <col ref="detladdr"/>
  409. <col ref="telno"/>
  410. <col ref="faxno"/>
  411. <col ref="clsmatyn" style="text-align:center; "/>
  412. <col disabled="true" ref="hospgrade" type="combo" style="text-align:center; ">
  413. <choices>
  414. <itemset nodeset="/root/init/hospgrade1/A0429">
  415. <label ref="cdnm"/>
  416. <value ref="cdid"/>
  417. </itemset>
  418. </choices>
  419. </col>
  420. <col ref="codrdeptnm"/>
  421. <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  422. <col ref="mjfield01" style="text-align:center; "/>
  423. <col ref="mjfield02" style="text-align:center; "/>
  424. <col ref="mjfield03" style="text-align:center; "/>
  425. <col ref="mjfield04" style="text-align:center; "/>
  426. <col ref="mjfield05" style="text-align:center; "/>
  427. <col ref="mjfield06" style="text-align:center; "/>
  428. <col ref="mjfield07" style="text-align:center; "/>
  429. <col ref="mjfield08" style="text-align:center; "/>
  430. <col ref="mjfield09" style="text-align:center; "/>
  431. <col ref="mjfield10" style="text-align:center; "/>
  432. <col ref="mjfield11" style="text-align:center; "/>
  433. <col ref="mjfield12" style="text-align:center; "/>
  434. <col ref="mjfield13" style="text-align:center; "/>
  435. <col ref="mjfield14" style="text-align:center; "/>
  436. <script type="javascript" ev:event="onscrolldown">
  437. <![CDATA[
  438. fSubmitOnScroll();
  439. ]]>
  440. </script>
  441. </datagrid>
  442. <button id="btn_labelprint" class="btn2_letter4" style="left:1085px; top:109px; width:64px; height:19px; ">
  443. <caption>라벨출력</caption>
  444. <script type="javascript" ev:event="DOMActivate">
  445. <![CDATA[
  446. fLabelPrint();
  447. ]]>
  448. </script>
  449. </button>
  450. </group>
  451. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  452. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">의뢰병원현황</caption>
  453. </group>
  454. <group id="group6" style="left:0px; top:755px; width:1195px; height:27px; ">
  455. <button id="btn_allclear" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  456. <caption>초기화</caption>
  457. <script type="javascript" ev:event="DOMActivate">
  458. <![CDATA[
  459. fAllClear();
  460. ]]>
  461. </script>
  462. </button>
  463. </group>
  464. </group>
  465. </xhtml:body>
  466. </xhtml:html>