SMARC00400_전화예약환자조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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. <condflag/>
  12. <fromdd/>
  13. <todd/>
  14. <rqsthospcd/>
  15. <rqstdrid/>
  16. <orddeptcd/>
  17. <orddrid/>
  18. <onestop/>
  19. </search>
  20. <doctor/>
  21. </send>
  22. <main>
  23. <reserv>
  24. <reserv_list>
  25. <acptdd/>
  26. <acpttm/>
  27. <hngnm/>
  28. <rrgstno1/>
  29. <rrgstno2/>
  30. <pid/>
  31. <sex/>
  32. <age/>
  33. <orddeptnm/>
  34. <orddrnm/>
  35. <orddd/>
  36. <ordtm/>
  37. <rqsthospcd/>
  38. <rqstdrid/>
  39. <rqstflag/>
  40. <rqstnm/>
  41. <onestop/>
  42. <telrsrvrem/>
  43. <etcordflag/>
  44. </reserv_list>
  45. </reserv>
  46. </main>
  47. <init>
  48. <dept>
  49. <dept>
  50. </dept>
  51. </dept>
  52. <doctlist>
  53. <medispcl>
  54. <doctid/>
  55. <doctnm/>
  56. </medispcl>
  57. <atdoct>
  58. <doctid/>
  59. <doctnm/>
  60. </atdoct>
  61. </doctlist>
  62. <condcptype>
  63. <A0420/>
  64. </condcptype>
  65. <cptype>
  66. <A0420/>
  67. </cptype>
  68. </init>
  69. </root>
  70. </instance>
  71. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  72. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  73. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  74. <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
  75. <script type="javascript" ev:event="xforms-ready">
  76. <![CDATA[
  77. fInit();
  78. ]]>
  79. </script>
  80. <submission id="TRARC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/reserv"/>
  81. </model>
  82. </xhtml:head>
  83. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  84. <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
  85. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  86. <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
  87. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  88. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  89. <script src="../../../com/departmentcodeweb/js/common.js" type="javascript"/>
  90. <script src="../../../com/departmentcodeweb/js/ZSD001.js" type="javascript"/>
  91. <script type="javascript">
  92. <![CDATA[
  93. // 초기값 셋팅
  94. function fInit()
  95. {
  96. model.setValue("/root/send/search/condflag", "2");
  97. // 오늘 날짜로 세팅
  98. var CurrentDate = getCurrentDate();
  99. model.setValue("/root/send/search/fromdd", CurrentDate);
  100. model.setValue("/root/send/search/todd", CurrentDate);
  101. // 진료과
  102. //var instcd = "012";
  103. var instcd = getUserInfo("dutplceinstcd");
  104. //var standard_yn = "orduseyn";
  105. var standard_yn = "rcptuseyn";
  106. var ord_deptflag = 'D';
  107. var rslt_ref = "/root/init/dept";
  108. var sort_method = "depthngnm";
  109. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  110. sort_field = "depthngnm"
  111. zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  112. // 공통코드 목록 가져오기
  113. zbcfGetCodeList(new Array("A0420", "A0420"), new Array("/root/init/cptype", "/root/init/condcptype") , true);
  114. addComboItem("cmb_orddeptcd", "", "", "above");
  115. addComboItem("cmb_cptype", "", "", "above");
  116. fDoctSerach();
  117. model.removeNodeset("/root/main/reserv/reserv_list");
  118. model.refresh();
  119. }
  120. // 진료의사 조회
  121. function fDoctSerach()
  122. {
  123. // 진료의사
  124. model.removenode("/root/send/doctor");
  125. model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/fromdd"));
  126. model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/send/search/orddeptcd"));
  127. submit("TRARC01302", false);
  128. cmb_orddrid.select(0);
  129. //model.setValue("/root/main/patient/orddrid", orddrid);
  130. }
  131. // 조회전 필수 체크
  132. function fCheckDate()
  133. {
  134. var fromdd = model.getValue("/root/send/search/fromdd");
  135. var todd = model.getValue("/root/send/search/todd");
  136. if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
  137. messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  138. return false;
  139. }
  140. if( getDateInterval(fromdd, todd) > 30 ){
  141. messageBox("조회가능한 최대 기간은 한달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  142. return false;
  143. }
  144. if( getDateInterval(fromdd, todd) < 0 ){
  145. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  146. return false;
  147. }
  148. // 날짜 계산
  149. var daycnt = getDateInterval(fromdd, todd);
  150. // 1일이 아닌 경우는 조건을 타야 함
  151. if (daycnt > 30)
  152. {
  153. // 진료과 체크
  154. if (model.getValue("/root/send/search/orddeptcd") == "")
  155. {
  156. messageBox("일자구분에서 한달 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
  157. //messageBox("진료과를 ","C002");
  158. return false;
  159. }
  160. if (ipt_rqsthospcd.currentText.length > 0 && ipt_rqsthospcd.currentText.length < 2) {
  161. messageBox("의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
  162. model.setFocus("ipt_rqsthospcd");
  163. return false;
  164. }
  165. if (ipt_rqstdrid.currentText.length > 0 && ipt_rqstdrid.currentText.length < 2) {
  166. messageBox("통화자명은 2글자 이상으로 해주십시요!","E999","");
  167. model.setFocus("ipt_rqstdrid");
  168. return false;
  169. }
  170. }
  171. return true;
  172. }
  173. // 조회
  174. function fSearch()
  175. {
  176. // reqGetTelRsrvList
  177. // getTelRsrvList
  178. if (submit("TRARC00401", "false") == true)
  179. {
  180. }
  181. else
  182. {
  183. messageBox("조회를", "E009");
  184. }
  185. model.refresh();
  186. }
  187. // 리스트 엑셀 파일로 저장
  188. function fExcel()
  189. {
  190. if (grd_list.rows <= 1) return;
  191. var fileName = window.fileDialog("save", ",", false, "전화예약환자 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  192. if (fileName != ""){
  193. grd_list.saveExcel(fileName, "전화예약환자", false, false, "", "", false);
  194. }
  195. }
  196. // 초기화
  197. function fAllClear()
  198. {
  199. model.resetInstanceNode("/root/send/search");
  200. model.setValue("/root/send/search/condflag", "2");
  201. // 오늘 날짜로 세팅
  202. var CurrentDate = getCurrentDate();
  203. model.setValue("/root/send/search/fromdd", CurrentDate);
  204. model.setValue("/root/send/search/todd", CurrentDate);
  205. cmb_orddeptcd.select(0);
  206. cmb_cptype.select(0);
  207. fDoctSerach();
  208. model.removeNodeset("/root/main/reserv/reserv_list");
  209. model.refresh();
  210. }
  211. ]]>
  212. </script>
  213. <xhtml:body guideline="1,2;1,1195;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  214. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  215. <group id="group2" style="left:0px; top:13px; width:1195px; height:744px; vertical-align:top; ">
  216. <group id="group1" style="left:0px; top:10px; width:1194px; height:70px; vertical-align:top; ">
  217. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
  218. <line id="line8" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:60; "/>
  219. <caption id="caption9" class="search_name" style="left:20px; top:10px; width:94px; height:17px; ">예약일자 :</caption>
  220. <caption id="caption11" class="search_name" style="left:20px; top:35px; width:94px; height:17px; ">진료과 :</caption>
  221. <caption id="caption13" class="search_name" style="left:805px; top:10px; width:80px; height:17px; ">통화자 :</caption>
  222. <caption id="caption5" class="search_no_b" style="left:317px; top:10px; width:12px; height:17px; ">~</caption>
  223. <caption id="caption4" class="search_name" style="left:460px; top:35px; width:94px; height:17px; ">진료의사 :</caption>
  224. <caption id="caption3" class="search_name" style="left:460px; top:10px; width:119px; height:17px; ">의뢰병원명 :</caption>
  225. <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:215px; top:10px; width:95px; height:19px; "/>
  226. <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:335px; top:10px; width:95px; height:19px; "/>
  227. <input id="ipt_rqsthospcd" ref="/root/send/search/rqsthospcd" class="input_search" imemode="hangul" style="left:575px; top:10px; width:140px; height:19px; "/>
  228. <input id="ipt_rqstdrid" ref="/root/send/search/rqstdrid" class="input_search" imemode="hangul" style="left:910px; top:10px; width:140px; height:19px; "/>
  229. <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" appearance="minimal" style="left:115px; top:35px; width:140px; height:19px; ">
  230. <choices>
  231. <itemset nodeset="/root/init/dept/dept">
  232. <label ref="depthngnm"/>
  233. <value ref="deptcd"/>
  234. </itemset>
  235. </choices>
  236. <script type="javascript" ev:event="xforms-value-changed">
  237. <![CDATA[
  238. fDoctSerach();
  239. model.refresh();
  240. ]]>
  241. </script>
  242. </select1>
  243. <select1 id="cmb_orddrid" ref="/root/send/search/orddrid" class="combo_search" appearance="minimal" style="left:575px; top:35px; width:140px; height:19px; ">
  244. <choices>
  245. <itemset nodeset="/root/init/doctlist/medispcl/">
  246. <label ref="doctnm"/>
  247. <value ref="doctid"/>
  248. </itemset>
  249. </choices>
  250. </select1>
  251. <button id="btn_search" class="btn1_letter2" style="left:1126px; top:26px; width:56px; height:22px; ">
  252. <caption>조회</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. if ( !fCheckDate() ) return; //필수 저장여부 체크
  256. fSearch();
  257. ]]>
  258. </script>
  259. </button>
  260. <select1 id="cmb_condflag" ref="/root/send/search/condflag" class="combo_search" appearance="minimal" style="left:115px; top:10px; width:100px; height:19px; ">
  261. <choices>
  262. <item>
  263. <label>작업일자</label>
  264. <value>1</value>
  265. </item>
  266. <item>
  267. <label>예약일자</label>
  268. <value>2</value>
  269. </item>
  270. </choices>
  271. </select1>
  272. <select1 id="cmb_cptype" ref="/root/send/search/onestop" class="combo_search" appearance="minimal" style="left:910px; top:35px; width:140px; height:19px; ">
  273. <choices>
  274. <itemset nodeset="/root/init/condcptype/A0420">
  275. <label ref="cdnm"/>
  276. <value ref="cdid"/>
  277. </itemset>
  278. </choices>
  279. </select1>
  280. <caption id="caption17" class="search_name" style="left:805px; top:35px; width:127px; height:17px; ">One-Stop :</caption>
  281. </group>
  282. <line id="line1" class="line_1" style="x1:0px; y1:104px; x2:1194px; y2:104px; "/>
  283. <datagrid id="grd_list" nodeset="/root/main/reserv/reserv_list" caption="예약구분^기타구분^작업일시^작업일시^환자명^주민번호^주민번호^등록번호^성별^나이^예약과^예약의사^예약일시^예약일시^의뢰병원명^통화자^작업상태^작업자명^one-stop^기타사항" colsep="^" colwidth="100, 63, 79, 42, 100, 70, 70, 80, 40, 35, 100, 100, 78, 51, 120, 120, 75, 100, 100, 331" dataheight="25" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:2px; top:109px; width:1189px; height:631px; vertical-align:middle; ">
  284. <col ref="rsrvflag"/>
  285. <col ref="etcordflag"/>
  286. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  287. <col ref="acpttm" format="hh:nn" style="text-align:center; "/>
  288. <col ref="hngnm" style="text-align:center; "/>
  289. <col ref="rrgstno1" style="text-align:center; "/>
  290. <col ref="rrgstno2" secretstartposition="1" style="text-align:center; "/>
  291. <col ref="pid" style="text-align:center; "/>
  292. <col ref="sex" style="text-align:center; "/>
  293. <col ref="age" style="text-align:right; "/>
  294. <col ref="orddeptnm"/>
  295. <col ref="orddrnm" style="text-align:center; "/>
  296. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  297. <col ref="ordtm" format="hh:nn" style="text-align:center; "/>
  298. <col ref="rqsthospcd"/>
  299. <col ref="rqstdrid"/>
  300. <col disabled="true" ref="rqstflag" type="combo" style="text-align:center; ">
  301. <choices>
  302. <item>
  303. <label>예약</label>
  304. <value>R</value>
  305. </item>
  306. <item>
  307. <label>취소</label>
  308. <value>X</value>
  309. </item>
  310. </choices>
  311. </col>
  312. <col ref="rqstnm" style="text-align:center; "/>
  313. <col disabled="true" ref="onestop" type="combo">
  314. <choices>
  315. <itemset nodeset="/root/init/cptype/A0420">
  316. <label ref="cdnm"/>
  317. <value ref="cdid"/>
  318. </itemset>
  319. </choices>
  320. </col>
  321. <col ref="telrsrvrem"/>
  322. </datagrid>
  323. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:84px; width:42px; height:19px; ">
  324. <caption>엑셀</caption>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. fExcel();
  328. ]]>
  329. </script>
  330. </button>
  331. <caption id="caption8" class="tit_2" style="left:5px; top:87px; width:139px; height:14px; ">전화예약환자 리스트</caption>
  332. </group>
  333. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  334. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">전화예약환자조회</caption>
  335. </group>
  336. <group id="group6" style="left:0px; top:755px; width:1195px; height:27px; ">
  337. <button id="button10" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  338. <caption>초기화</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. fAllClear();
  342. ]]>
  343. </script>
  344. </button>
  345. </group>
  346. </group>
  347. </xhtml:body>
  348. </xhtml:html>