SMARC01500_되의뢰현황.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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. <list>
  11. <reqagnlist>
  12. <formrecdd/>
  13. <pid/>
  14. <hngnm/>
  15. <rrgstno1/>
  16. <rrgstno2/>
  17. <sex/>
  18. <age/>
  19. <rgstdd/>
  20. <reqdd/>
  21. <orddd/>
  22. <orddeptnm/>
  23. <orddrnm/>
  24. <licnsno/>
  25. <reqareacd/>
  26. <reqcoophospnm/>
  27. <reqdrnm/>
  28. <enddd/>
  29. <reqagnareacd/>
  30. <reqagncoophospnm/>
  31. <reqagncoopdrnm/>
  32. <reqagntelno/>
  33. <rsltcd/>
  34. <resncd/>
  35. </reqagnlist>
  36. </list>
  37. </main>
  38. <send>
  39. <search>
  40. <condflag>1</condflag>
  41. <fromdd/>
  42. <todd/>
  43. <coophospnm/>
  44. <rsltcd/>
  45. <orddeptcd/>
  46. <orddrid/>
  47. <resncd/>
  48. <resncd/>
  49. </search>
  50. <doctor/>
  51. </send>
  52. <init>
  53. <dept>
  54. </dept>
  55. <doctlist>
  56. <medispcl>
  57. <doctid/>
  58. <doctnm/>
  59. </medispcl>
  60. <atdoct>
  61. <doctid/>
  62. <doctnm/>
  63. </atdoct>
  64. </doctlist>
  65. <areacd>
  66. <A0426>
  67. </A0426>
  68. </areacd>
  69. <rsltcd>
  70. <A0438/>
  71. </rsltcd>
  72. <resncd>
  73. <A0437/>
  74. </resncd>
  75. </init>
  76. </root>
  77. </instance>
  78. <script type="javascript" ev:event="xforms-ready">
  79. <![CDATA[
  80. fInit();
  81. ]]>
  82. </script>
  83. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  84. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  85. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  86. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  87. <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
  88. <submission id="TRARC01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
  89. </model>
  90. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  95. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  96. <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
  97. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  98. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  99. <script type="javascript" src="../../../emr/medirecweb/js/MMRCommon.js"/>
  100. <script type="javascript">
  101. <![CDATA[
  102. // 초기값
  103. function fInit()
  104. {
  105. // 오늘 날짜로 세팅
  106. var CurrentDate = getCurrentDate();
  107. model.setValue("/root/send/search/fromdd", CurrentDate);
  108. model.setValue("/root/send/search/todd", CurrentDate);
  109. model.setValue("/root/send/search/condflag", "1");
  110. // 진료과
  111. //var instcd = "012";
  112. var instcd = getUserInfo("dutplceinstcd");
  113. //var standard_yn = "orduseyn";
  114. var standard_yn = "rcptuseyn";
  115. var ord_deptflag = 'D';
  116. var rslt_ref = "/root/init/dept";
  117. var sort_method = "depthngnm";
  118. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  119. sort_field = "depthngnm"
  120. zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  121. // 공통코드 목록 가져오기
  122. zbcfGetCodeList(new Array("A0437", "A0438"), new Array("/root/init/resncd", "/root/init/rsltcd") , true);
  123. // 유형코드
  124. zbcfGetKindCodeList(
  125. new Array("A0014"), //업무규칙
  126. new Array("A0426"), //코드군
  127. new Array("/root/init/areacd"), //노드
  128. true, //minimum : true TRZBC00105
  129. new Array(""), //sorting 항목
  130. new Array("")
  131. );
  132. // 진료과
  133. addComboItem("cmb_orddeptcd", "", "", "above");
  134. // 되의뢰결과
  135. addComboItem("cmb_rsltcd", "", "", "above");
  136. // 되의뢰사유
  137. addComboItem("cmb_resncd", "", "", "above");
  138. //진료의사조회
  139. fDoctSearch();
  140. model.removeNodeset("/root/main/list/reqagnlist");
  141. model.refresh();
  142. }
  143. // 진료의사 조회
  144. function fDoctSearch()
  145. {
  146. // 진료의사
  147. model.removenode("/root/send/doctor");
  148. model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/fromdd"));
  149. model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/send/search/orddeptcd"));
  150. submit("TRARC01302", false);
  151. cmb_orddrid.select(0);
  152. //model.setValue("/root/main/patient/orddrid", orddrid);
  153. }
  154. // 조회전 필수 체크
  155. function fCheckDate()
  156. {
  157. var fromdd = model.getValue("/root/send/search/fromdd");
  158. var todd = model.getValue("/root/send/search/todd");
  159. if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
  160. messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  161. return false;
  162. }
  163. if( getDateInterval(fromdd, todd) > 31 ){
  164. messageBox("조회가능한 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  165. return false;
  166. }
  167. if( getDateInterval(fromdd, todd) < 0 ){
  168. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  169. return false;
  170. }
  171. // 날짜 계산
  172. var daycnt = getDateInterval(fromdd, todd);
  173. // 1일이 아닌 경우는 조건을 타야 함
  174. if (daycnt != 0)
  175. {
  176. // 진료과 체크
  177. if (model.getValue("/root/send/search/orddeptcd") == "")
  178. {
  179. messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
  180. //messageBox("진료과를 ","C002");
  181. return false;
  182. }
  183. if (ipt_coophospnm.currentText.length > 0 && ipt_coophospnm.currentText.length < 2) {
  184. messageBox("되의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
  185. model.setFocus("ipt_coophospnm");
  186. return false;
  187. }
  188. }
  189. return true;
  190. }
  191. //조회
  192. function fSearch()
  193. {
  194. if (submit("TRARC01501") == true)
  195. {
  196. //model.refresh();
  197. }
  198. else
  199. {
  200. messageBox("조회를", "E009");
  201. }
  202. }
  203. // 진료의사 조회
  204. function fDoctSerach()
  205. {
  206. // 진료의사
  207. model.removenode("/root/send/doctor");
  208. model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/fromdd"));
  209. model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/send/search/orddeptcd"));
  210. submit("TRARC01302");
  211. //model.setValue("/root/main/patient/orddrid", orddrid);
  212. }
  213. // 리스트 엑셀 파일로 저장
  214. function fExcel()
  215. {
  216. if (grd_lit.rows <= 1) return;
  217. var fileName = window.fileDialog("save", ",", false, "되의뢰현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  218. if (fileName != ""){
  219. grd_lit.saveExcel(fileName, "되의뢰리스트", false, false, "", "", false);
  220. }
  221. }
  222. // 초기화
  223. function fAllClear()
  224. {
  225. model.resetInstanceNode("/root/send/search");
  226. model.setValue("/root/send/search/condflag", "1");
  227. // 오늘 날짜로 세팅
  228. var CurrentDate = getCurrentDate();
  229. model.setValue("/root/send/search/fromdd", CurrentDate);
  230. model.setValue("/root/send/search/todd", CurrentDate);
  231. model.removeNodeset("/root/main/list/reqagnlist");
  232. model.refresh();
  233. }
  234. ]]>
  235. </script>
  236. </xhtml:head>
  237. <xhtml:body guideline="1,2;1,1195;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  238. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  239. <group id="group2" style="left:0px; top:13px; width:1195px; height:744px; vertical-align:top; ">
  240. <group id="group1" style="left:0px; top:10px; width:1194px; height:70px; vertical-align:top; ">
  241. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
  242. <line id="line8" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:60; "/>
  243. <caption id="caption9" class="search_name" style="left:20px; top:10px; width:94px; height:17px; ">조회일자 :</caption>
  244. <caption id="caption11" class="search_name" style="left:20px; top:35px; width:94px; height:17px; ">진료과 :</caption>
  245. <caption id="caption13" class="search_name" style="left:795px; top:10px; width:112px; height:17px; ">되의뢰결과 :</caption>
  246. <caption id="caption5" class="search_no_b" style="left:317px; top:10px; width:12px; height:17px; ">~</caption>
  247. <caption id="caption4" class="search_name" style="left:495px; top:35px; width:94px; height:17px; ">진료의사 :</caption>
  248. <caption id="caption3" class="search_name" style="left:495px; top:10px; width:119px; height:17px; ">되의뢰병원명 :</caption>
  249. <button id="btn_search" class="btn1_letter2" style="left:1126px; top:26px; width:56px; height:22px; ">
  250. <caption>조회</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. if ( !fCheckDate() ) return; //필수 저장여부 체크
  254. fSearch();
  255. ]]>
  256. </script>
  257. </button>
  258. <select1 id="cmb_condflag" ref="/root/send/search/condflag" class="combo_search" appearance="minimal" style="left:115px; top:10px; width:100px; height:19px; ">
  259. <choices>
  260. <item>
  261. <label>접수일자</label>
  262. <value>1</value>
  263. </item>
  264. <item>
  265. <label>완료일자</label>
  266. <value>2</value>
  267. </item>
  268. </choices>
  269. </select1>
  270. <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:215px; top:10px; width:95px; height:19px; "/>
  271. <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:335px; top:10px; width:95px; height:19px; "/>
  272. <input id="ipt_coophospnm" ref="/root/send/search/coophospnm" class="input_search" style="left:610px; top:10px; width:140px; height:19px; "/>
  273. <select1 id="cmb_rsltcd" ref="/root/send/search/rsltcd" class="combo_search" appearance="minimal" style="left:905px; top:10px; width:140px; height:19px; ">
  274. <choices>
  275. <itemset nodeset="/root/init/rsltcd/A0438">
  276. <label ref="cdnm"/>
  277. <value ref="cdid"/>
  278. </itemset>
  279. </choices>
  280. </select1>
  281. <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" appearance="minimal" style="left:115px; top:35px; width:140px; height:19px; ">
  282. <choices>
  283. <itemset nodeset="/root/init/dept/dept">
  284. <label ref="depthngnm"/>
  285. <value ref="deptcd"/>
  286. </itemset>
  287. </choices>
  288. <script type="javascript" ev:event="xforms-value-changed">
  289. <![CDATA[
  290. fDoctSerach();
  291. model.refresh();
  292. ]]>
  293. </script>
  294. </select1>
  295. <select1 id="cmb_orddrid" ref="/root/send/search/orddrid" class="combo_search" appearance="minimal" style="left:610px; top:35px; width:140px; height:19px; ">
  296. <choices>
  297. <itemset nodeset="/root/init/doctlist/medispcl/">
  298. <label ref="doctnm"/>
  299. <value ref="doctid"/>
  300. </itemset>
  301. </choices>
  302. </select1>
  303. <caption id="caption1" class="search_name" style="left:795px; top:35px; width:112px; height:17px; ">되의뢰사유 :</caption>
  304. <select1 id="cmb_resncd" ref="/root/send/search/resncd" class="combo_search" appearance="minimal" style="left:905px; top:35px; width:140px; height:19px; ">
  305. <choices>
  306. <itemset nodeset="/root/init/resncd/A0437">
  307. <label ref="cdnm"/>
  308. <value ref="cdid"/>
  309. </itemset>
  310. </choices>
  311. </select1>
  312. </group>
  313. <line id="line1" class="line_1" style="x1:0px; y1:109px; x2:1194px; y2:109px; "/>
  314. <datagrid id="grd_lit" nodeset="/root/main/list/reqagnlist" caption="되의뢰접수일자^등록번호^환자명^주민번호^주민번호^성별^나이^등록일자^의뢰일자^진료일자^진료과^진료의사^면허번호^의뢰지역^의뢰병원^의뢰의사^되의뢰 완료일자^되의뢰지역^되의뢰병원^되의뢰의사^되의뢰병원 전화번호^되의뢰결과^되의뢰사유" colsep="^" colwidth="100, 100, 100, 70, 70, 40, 35, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 120, 100, 110" dataheight="25" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:2px; top:113px; width:1189px; height:620px; vertical-align:middle; ">
  315. <col ref="formrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  316. <col ref="pid" style="text-align:center; "/>
  317. <col ref="hngnm" style="text-align:center; "/>
  318. <col ref="rrgstno1"/>
  319. <col ref="rrgstno2" secretstartposition="1"/>
  320. <col ref="sex" style="text-align:center; "/>
  321. <col ref="age" style="text-align:right; "/>
  322. <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  323. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  324. <col ref="orddd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  325. <col ref="orddeptnm"/>
  326. <col ref="orddrnm"/>
  327. <col ref="licnsno"/>
  328. <col disabled="true" ref="reqareacd" type="combo">
  329. <choices>
  330. <itemset nodeset="/root/init/areacd/A0014A0426">
  331. <label ref="cdnm"/>
  332. <value ref="cdid"/>
  333. </itemset>
  334. </choices>
  335. </col>
  336. <col ref="reqcoophospnm"/>
  337. <col ref="reqdrnm"/>
  338. <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; "/>
  339. <col disabled="true" ref="reqagnareacd" type="combo">
  340. <choices>
  341. <itemset nodeset="/root/init/areacd/A0014A0426">
  342. <label ref="cdnm"/>
  343. <value ref="cdid"/>
  344. </itemset>
  345. </choices>
  346. </col>
  347. <col ref="reqagncoophospnm"/>
  348. <col ref="reqagncoopdrnm"/>
  349. <col ref="reqagntelno"/>
  350. <col disabled="true" ref="rsltcd" type="combo">
  351. <choices>
  352. <item>
  353. <label>경유-의뢰병원</label>
  354. <value>1</value>
  355. </item>
  356. <item>
  357. <label>경유-타병원</label>
  358. <value>2</value>
  359. </item>
  360. <item>
  361. <label>비경유</label>
  362. <value>3</value>
  363. </item>
  364. <item>
  365. <label>미정</label>
  366. <value>4</value>
  367. </item>
  368. <item>
  369. <label>거부</label>
  370. <value>5</value>
  371. </item>
  372. </choices>
  373. </col>
  374. <col disabled="true" ref="resncd" type="combo">
  375. <choices>
  376. <item>
  377. <label>단순처치 및 투약</label>
  378. <value>01</value>
  379. </item>
  380. <item>
  381. <label>연고지관계</label>
  382. <value>02</value>
  383. </item>
  384. <item>
  385. <label>기타</label>
  386. <value>99</value>
  387. </item>
  388. </choices>
  389. </col>
  390. </datagrid>
  391. <caption id="caption8" class="tit_2" style="left:5px; top:92px; width:139px; height:13px; ">되의뢰환자 리스트</caption>
  392. <button id="btn_excel" class="btn2_letter4" style="left:1127px; top:89px; width:64px; height:19px; ">
  393. <caption>엑셀저장</caption>
  394. <script type="javascript" ev:event="DOMActivate">
  395. <![CDATA[
  396. fExcel();
  397. ]]>
  398. </script>
  399. </button>
  400. </group>
  401. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  402. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">되의뢰현황</caption>
  403. </group>
  404. <group id="group6" style="left:0px; top:755px; width:1195px; height:27px; ">
  405. <button id="btn_allclear" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  406. <caption>초기화</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. fAllClear();
  410. ]]>
  411. </script>
  412. </button>
  413. </group>
  414. </group>
  415. </xhtml:body>
  416. </xhtml:html>