SMAEA00800_예약취소 및 변경내역조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  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. <prcsprescondlist>
  11. <prcsprescond>
  12. <pid/>
  13. <hngnm/>
  14. <prcpdd/>
  15. <prcpdept/>
  16. <prcpcd/>
  17. <prcpnm/>
  18. <execprcpstatcd/>
  19. <state/>
  20. <excuroom/>
  21. <rsrvdt/>
  22. <updtaftrsrvdt/>
  23. <rsrvrid/>
  24. <updtaft/>
  25. <execdt/>
  26. <execrid/>
  27. <cnclresncd/>
  28. <execprcpuniqno/>
  29. </prcsprescond>
  30. <patinfo>
  31. <patinfolist/>
  32. </patinfo>
  33. </prcsprescondlist>
  34. <patinfo>
  35. <patinfolist/>
  36. </patinfo>
  37. <popupendflag/>
  38. </main>
  39. <send>
  40. <ddflag/>
  41. <fromdd/>
  42. <todd/>
  43. <suppdeptcd/>
  44. <orddeptcd/>
  45. <wardcd/>
  46. <pid/>
  47. <juminno/>
  48. <patnm/>
  49. <gb/>
  50. <excuroomcd/>
  51. <globalinstance>
  52. <instance1/>
  53. </globalinstance>
  54. </send>
  55. <init>
  56. <cmb_info>
  57. <initexecroom>
  58. <excuroomcdid/>
  59. <excuroomcdnm/>
  60. </initexecroom>
  61. <suppdept>
  62. <suppdeptcd/>
  63. <depthngnm/>
  64. </suppdept>
  65. </cmb_info>
  66. <baseinfo>
  67. <initexecprcpstatcd/>
  68. </baseinfo>
  69. <popupmenu>
  70. <grid01>
  71. <item>
  72. <name>복사하기</name>
  73. <func>astgrid_liscopy</func>
  74. </item>
  75. </grid01>
  76. </popupmenu>
  77. </init>
  78. <hidden/>
  79. <temp/>
  80. </root>
  81. </instance>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  85. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  89. <script type="javascript">
  90. <![CDATA[
  91. function readfunc() {
  92. var _frdt = model.getValue("/root/send/fromdd");
  93. var _todt = model.getValue("/root/send/todd");
  94. if ( _frdt == "" && _todt != "") {
  95. messageBox("검색하실 날짜 범위의 시작 일자를 입력해 주십시오." , "I999");
  96. model.setFocus("ipt_startrsrvdd");
  97. return;
  98. }
  99. if ( _frdt != "" && _todt == "") {
  100. messageBox("검색하실 날짜 범위의 마지막 일자를 입력해 주십시오." , "I999");
  101. model.setFocus("ipt_endrsrvdd");
  102. return;
  103. }
  104. if ( getDateInterval(_frdt, _todt) < 0 ) {
  105. messageBox("입력하신 날짜 범위로는 검색할 수 없습니다. 기준일자를 확인해 주십시오." , "I999");
  106. model.setFocus("ipt_startrsrvdd");
  107. return;
  108. }
  109. //20161219 by kya 이슈쿼리 튜닝
  110. var _intdt = getDateInterval(_frdt, _todt);
  111. if (model.getValue("/root/send/pid") == "" && model.getValue("/root/send/juminno") == "" && _intdt > 7 ) {
  112. messageBox("등록번호가 없으면 입력하신 날짜 범위를 7일 이내로 검색해야 합니다. 기준일자를 확인해 주십시오." , "I999");
  113. model.setFocus("ipt_startrsrvdd");
  114. return;
  115. }
  116. //if (model.getValue("/root/send/pid") == "" && model.getValue("/root/send/juminno") == ""){
  117. // messageBox("등록번호나 주민번호를 입력한 후 조회하시기 바랍니다.", "E999", "");
  118. // return;
  119. //}
  120. if (submit("TRAEA00804")){
  121. model.setValue("/root/send/pid", model.getValue("/root/main/prcsprescondlist/patinfolist/pid"));
  122. model.setValue("/root/send/juminno", model.getValue("/root/main/prcsprescondlist/patinfolist/juminno"));
  123. grd_rsrvcnclprescond.refresh();
  124. for (var i = 1; i < grd_rsrvcnclprescond.rows; i++){
  125. if (model.getValue("/root/main/prcsprescondlist/prcsprescond[" + i + "]/state") == "취소"){
  126. grd_rsrvcnclprescond.rowstyle(i, "data", "background-color") = "#ffcc99";
  127. }else{
  128. grd_rsrvcnclprescond.rowstyle(i, "data", "background-color") = "#ffffff";
  129. }
  130. }
  131. if (model.getValue("/root/send/pid") != "" && model.getValue("") != "/root/send/juminno"){
  132. grd_rsrvcnclprescond.colHidden(1) = true;
  133. grd_rsrvcnclprescond.colHidden(2) = true;
  134. }else{
  135. grd_rsrvcnclprescond.colHidden(1) = false;
  136. grd_rsrvcnclprescond.colHidden(2) = false;
  137. }
  138. }
  139. model.refresh();
  140. }
  141. /* @group :
  142. * @ver : 2010.02.06
  143. * @by : 김건기
  144. * @-----------------------------------
  145. * @type : function
  146. * @access : public
  147. * @desc : 그리드의 내용을 엑셀로 Copy하기 위한 Function
  148. */
  149. function astgrid_liscopy() {
  150. var cellValue;
  151. var rClipBoardValue = "";
  152. var row = grd_rsrvcnclprescond.row;
  153. rClipBoardValue = grd_rsrvcnclprescond.valueMatrix(row, grd_rsrvcnclprescond.colRef("pid"));
  154. if( rClipBoardValue != "" ) {
  155. window.clipBoardData = rClipBoardValue;
  156. }
  157. }
  158. ]]>
  159. </script>
  160. <!-- 예약변경리스트조회-->
  161. <submission id="TRAEA00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="root/main/prcsprescondlist"/>
  162. <!--공통코드 조회-->
  163. <submission id="TRAEA00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
  164. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  165. <script type="javascript" ev:event="xforms-ready">
  166. <![CDATA[
  167. //처방상태 공통코드 갖고오기
  168. //zbcfGetCodeList( new Array("M0011"), new Array("/root/init/baseinfo/initexecprcpstatcd") );
  169. //submit("TRZBC00101", false);
  170. aezfSetSuppDeptcd();
  171. //submit("TRAEA00802");
  172. /*
  173. if (model.getValue("/root/send/pid") != ""){
  174. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
  175. }else{
  176. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-3,"M").getDateFormat("YYYYMMDD"));
  177. }
  178. model.setValue("/root/send/todd", getCurrentDate());
  179. */
  180. // 기본 조회 기간 변경 : 1년전 ~ 6개월 후
  181. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-12,"M").getDateFormat("YYYYMMDD"));
  182. model.setValue("/root/send/todd", getCurrentDate().toDate().getAddDate(6,"M").getDateFormat("YYYYMMDD"));
  183. model.refresh();
  184. submit("TRAEA01301", false); // 검사치료실 가져오기
  185. if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + model.getValue("/root/send/globalinstance/instance1") + "']") == null ){
  186. model.setValue("/root/send/globalinstance/instance1", "");
  187. }
  188. var gv_pid = getGlobalVariable("gv_pid", "A"); //글로벌변수로 넘겨준 등록번호값
  189. if(gv_pid != "") { //글로벌변수(등록번호)가 있는경우
  190. model.setValue("/root/send/pid", gv_pid);
  191. model.setValue("/root/send/gb", "1");
  192. btn_sea.dispatch("DOMActivate");
  193. }else {
  194. model.removeNodeset("/root/main/rsrvcnclprescond/rsrvcncllist");
  195. model.setValue("/root/send/gb", "1");
  196. if (model.getValue("/root/send/pid") != ""){
  197. grd_rsrvcnclprescond.colHidden(1) = true;
  198. grd_rsrvcnclprescond.colHidden(2) = true;
  199. model.setValue("/root/send/globalinstance/instance1", "");
  200. btn_sea.dispatch("DOMActivate");
  201. }else{
  202. grd_rsrvcnclprescond.colHidden(1) = false;
  203. grd_rsrvcnclprescond.colHidden(2) = false;
  204. model.setFocus("ipt_pid");
  205. }
  206. }
  207. model.refresh();
  208. ]]>
  209. </script>
  210. </model>
  211. </xhtml:head>
  212. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  213. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  214. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">검사 예약 변경 조회</caption>
  215. </group>
  216. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  217. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
  218. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:57px; background-color:#fffbf2; border-color:#ffd799; "/>
  219. <caption id="caption3" class="search_name" style="left:15px; top:18px; width:86px; height:17px; ">처방일자 :</caption>
  220. <input id="ipt_startrsrvdd" ref="/root/send/fromdd" class="input_default" navindex="1" inputtype="date" style="left:110px; top:18px; width:100px; height:19px; text-align:center; "/>
  221. <input id="ipt_endrsrvdd" ref="/root/send/todd" class="input_default" navindex="2" inputtype="date" style="left:225px; top:18px; width:100px; height:19px; text-align:center; "/>
  222. <caption id="caption4" class="search_name" style="left:395px; top:35px; width:86px; height:17px; ">등록번호 :</caption>
  223. <button id="btn_sea" class="btn1_letter2" style="left:1120px; top:20px; width:56px; height:22px; ">
  224. <caption>조회</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. readfunc();
  228. ]]>
  229. </script>
  230. </button>
  231. <input id="ipt_pid" ref="/root/send/pid" navindex="3" style="left:490px; top:35px; width:125px; height:19px; ">
  232. <script type="javascript" ev:event="onkeyup">
  233. <![CDATA[
  234. if(event.keyCode == "13") {
  235. //inputEnterKey("button1","DOMActivate");
  236. inputEnterKey("btn_sea","DOMActivate");
  237. }
  238. ]]>
  239. </script>
  240. </input>
  241. <caption id="caption1" class="search_name" style="left:660px; top:35px; width:86px; height:17px; ">주민번호 :</caption>
  242. <input id="input2" ref="/root/send/juminno" navindex="4" format="999999-9999999" style="left:775px; top:35px; width:125px; height:19px; text-align:center; ">
  243. <script type="javascript" ev:event="xforms-value-changed">
  244. <![CDATA[
  245. if (model.getValue("/root/send/juminno") != ""){
  246. model.setValue("/root/send/gb", "2");
  247. model.refresh();
  248. btn_sea.dispatch("DOMActivate");
  249. }
  250. ]]>
  251. </script>
  252. </input>
  253. <caption id="caption2" style="left:213px; top:20px; width:10px; height:20px; ">-</caption>
  254. <button id="button1" class="btn1_letter2" visibility="hidden" style="left:1030px; top:30px; width:56px; height:22px; ">
  255. <caption>임시</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. model.setValue("/root/send/gb", "1");
  259. model.refresh();
  260. btn_sea.dispatch("DOMActivate");
  261. ]]>
  262. </script>
  263. </button>
  264. <button id="button2" class="btn1_letter2" visibility="hidden" style="left:970px; top:30px; width:56px; height:22px; ">
  265. <caption>임시</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. model.setValue("/root/send/gb", "2");
  269. model.refresh();
  270. btn_sea.dispatch("DOMActivate");
  271. ]]>
  272. </script>
  273. </button>
  274. <caption id="caption10" class="search_name" style="left:395px; top:10px; width:86px; height:17px; ">지원부서 :</caption>
  275. <caption id="caption12" class="search_name" style="left:660px; top:10px; width:106px; height:17px; ">검사/치료실 :</caption>
  276. <select1 id="cmb_deptcd" ref="/root/send/globalinstance/instance1" disabled="true" appearance="minimal" editmode="inputsearch" style="left:490px; top:10px; width:125px; height:19px; ">
  277. <choices>
  278. <itemset nodeset="/root/init/cmb_info/suppdept">
  279. <label ref="depthngnm"/>
  280. <value ref="suppdeptcd"/>
  281. </itemset>
  282. </choices>
  283. <script type="javascript" ev:event="xforms-value-changed">
  284. <![CDATA[
  285. /*
  286. model.setValue("/root/send/globalinstance/instance1", cmb_deptcd.value);
  287. submit("TRAEA01301", false);
  288. btn_sea.dispatch("DOMActivate");
  289. */
  290. ]]>
  291. </script>
  292. </select1>
  293. <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" editmode="inputsearch" style="left:775px; top:10px; width:125px; height:19px; ">
  294. <choices>
  295. <itemset nodeset="/root/init/cmb_info/initexecroom">
  296. <label ref="excuroomcdnm"/>
  297. <value ref="excuroomcdid"/>
  298. </itemset>
  299. </choices>
  300. <script type="javascript" ev:event="xforms-value-changed">
  301. <![CDATA[
  302. btn_sea.dispatch("DOMActivate");
  303. ]]>
  304. </script>
  305. </select1>
  306. <button id="button61" class="icon_search" navindex="2" style="left:622px; top:35px; width:16px; height:16px; ">
  307. <caption/>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. /* @group : 개인별 예약현황조회
  311. * @ver : 2007.7.25
  312. * @by : 조원영
  313. * @-----------------------------------
  314. * @type : function
  315. * @access : public
  316. * @desc : 등록번호를 통한 환자 이름 조회
  317. */
  318. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/pid", "/root/send");
  319. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid") ); // 등록번호 설정
  320. model.setValue("/root/send/gb", "1");
  321. model.refresh();
  322. btn_sea.dispatch("DOMActivate");
  323. ]]>
  324. </script>
  325. </button>
  326. </group>
  327. <line id="line2" class="line_1" style="x1:0px; y1:132px; x2:1195px; y2:132px; "/>
  328. <datagrid id="grd_rsrvcnclprescond" nodeset="/root/main/prcsprescondlist/prcsprescond" caption="등록번호^환자명^처방일자^진료과(진료의)^처방코드^처방명^처방상태^구분^치료실^예약일시^예약자^변경일시^실시일시^실시자^사유^2" colsep="^" colwidth="84, 70, 75, 111, 90, 210, 60, 0, 110, 115, 55, 114, 125, 55, 153, 21" ellipsis="true" mergecells="byrestriccol" mergecellsfixedrows="byrestriccol" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:135px; width:1193px; height:607px; ">
  329. <col ref="pid"/>
  330. <col ref="hngnm"/>
  331. <col ref="prcpdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  332. <col ref="prcpdept" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  333. <col ref="prcpcd" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  334. <col ref="prcpnm" style="text-align:left; "/>
  335. <col ref="execprcpstatcd" style="text-align:left; "/>
  336. <col ref="state"/>
  337. <col ref="excuroom"/>
  338. <col ref="updtaftrsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  339. <col ref="rsrvrid" style="text-align:center; "/>
  340. <col ref="updtaft" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  341. <col ref="execdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  342. <col ref="execrid" style="text-align:center; "/>
  343. <col ref="cnclresncd"/>
  344. <col ref="execprcpuniqno" visibility="hidden"/>
  345. <script type="javascript" ev:event="oncopy">
  346. <![CDATA[
  347. astgrid_liscopy();
  348. ]]>
  349. </script>
  350. <script type="javascript" ev:event="onmousedown">
  351. <![CDATA[
  352. if (event.button == 3) { // 3 : 오른쪽 버튼
  353. if (grd_rsrvcnclprescond.isCell(event.target) && grd_rsrvcnclprescond.mouseRow >= grd_rsrvcnclprescond.fixedrows) {
  354. setPopupMenu("grd_rsrvcnclprescond", false, "/root/init/popupmenu/grid01/item", "name", "func");
  355. }
  356. }
  357. ]]>
  358. </script>
  359. <script type="javascript" ev:event="DOMFocusOut">
  360. <![CDATA[
  361. initPopupMenu();
  362. ]]>
  363. </script>
  364. </datagrid>
  365. <caption id="caption9" class="tit_2" style="left:0px; top:115px; width:121px; height:13px; ">예약변경내역현황</caption>
  366. <input id="opt_addr" ref="/root/main/prcsprescondlist/patinfolist/addr" class="output_fix" disabled="true" style="left:609px; top:82px; width:583px; height:19px; "/>
  367. <input id="opt_sex" ref="/root/main/prcsprescondlist/patinfolist/sex" class="output_fix" disabled="true" style="left:208px; top:82px; width:20px; height:19px; text-align:center; "/>
  368. <line id="line12" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:74px; "/>
  369. <input id="opt_hngnm" ref="/root/main/prcsprescondlist/patinfolist/hngnm" class="output_fix" disabled="true" style="left:52px; top:82px; width:85px; height:19px; "/>
  370. <caption id="caption11" class="cell_1" style="left:231px; top:80px; width:50px; height:23px; vertical-align:middle; ">집전화</caption>
  371. <input id="opt_hometel" ref="/root/main/prcsprescondlist/patinfolist/hometel" class="output_fix" disabled="true" style="left:282px; top:82px; width:95px; height:19px; "/>
  372. <caption id="caption5" class="cell_1" style="left:0px; top:80px; width:50px; height:23px; vertical-align:middle; ">환자명</caption>
  373. <input id="opt_mpphontel" ref="/root/main/prcsprescondlist/patinfolist/mpphontel" class="output_fix" disabled="true" style="left:431px; top:82px; width:124px; height:19px; "/>
  374. <caption id="caption16" class="cell_1" style="left:140px; top:80px; width:43px; height:23px; vertical-align:middle; ">S/A</caption>
  375. <caption id="caption7" class="cell_1" style="left:558px; top:80px; width:50px; height:23px; vertical-align:middle; ">집주소</caption>
  376. <input id="opt_age" ref="/root/main/prcsprescondlist/patinfolist/age" class="output_fix" disabled="true" style="left:184px; top:82px; width:25px; height:19px; text-align:center; "/>
  377. <caption id="caption8" class="cell_1" style="left:380px; top:80px; width:50px; height:23px; vertical-align:middle; ">핸드폰</caption>
  378. </group>
  379. <line id="line13" class="line_4" style="x1:1105px; y1:30px; x2:1105px; y2:77px; "/>
  380. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  381. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
  382. <caption>출력</caption>
  383. </button>
  384. </group>
  385. <line id="line1" class="line_4" style="x1:350px; y1:30px; x2:350px; y2:77px; "/>
  386. </xhtml:body>
  387. </xhtml:html>