SMMMO04200_외래환자리스트.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  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. <cond>
  11. <pid/>
  12. <orddd/>
  13. <orddeptcd/>
  14. <orddrid/>
  15. <elbulbodstat>1</elbulbodstat>
  16. <hngnm/>
  17. <deptflag>0</deptflag>
  18. <sortcol/>
  19. <orderby/>
  20. <totcnt/>
  21. <rsltcnt/>
  22. <chkprcp/>
  23. <speedflag/>
  24. <chgorddrid/>
  25. <delayflag/>
  26. <delaytime/>
  27. <delayexpt/>
  28. </cond>
  29. <outpatinfo>
  30. <outpatlist/>
  31. </outpatinfo>
  32. <patinfo>
  33. <patinfolist/>
  34. </patinfo>
  35. <send>
  36. <srchcond/>
  37. <pid/>
  38. <hngnm/>
  39. </send>
  40. <infecpatlist>
  41. <infecpatlist/>
  42. </infecpatlist>
  43. <opprcpinfo/>
  44. </main>
  45. <send>
  46. <reqdata/>
  47. <savedata/>
  48. </send>
  49. <hidden>
  50. <srchcond/>
  51. <pid/>
  52. <hngnm/>
  53. </hidden>
  54. <init>
  55. <M0062>
  56. </M0062>
  57. <P0008/>
  58. <P0021/>
  59. <P0022/>
  60. <P0159/>
  61. <P0341/>
  62. <orddept/>
  63. <userlist/>
  64. <userscrnenvinfo/>
  65. <rsltgetdata>
  66. <getdata/>
  67. </rsltgetdata>
  68. <M0525/>
  69. <!--
  70. <dayaftrcptyn/>
  71. <rightmenuflag/>
  72. <selspecordyn/>
  73. <ordordershow/>
  74. <patprotector/>
  75. <reqphardcdno/>
  76. -->
  77. <hardcdno/>
  78. <M0623/>
  79. </init>
  80. <temp>
  81. <cond/>
  82. </temp>
  83. <popupmenu>
  84. <menu2>
  85. <item>
  86. <name>관심환자등록</name>
  87. <func>fCallWndConcPatRgst</func>
  88. </item>
  89. <item>
  90. <name>주의요망환자관리</name>
  91. <func>fCallWndWarnPat</func>
  92. </item>
  93. <item>
  94. <name>-</name>
  95. <func/>
  96. </item>
  97. <item>
  98. <name>접수완료</name>
  99. <func>fPatOrdEnd</func>
  100. </item>
  101. <item>
  102. <name>대기취소</name>
  103. <func>fPatOrdEndCncl</func>
  104. </item>
  105. <item>
  106. <name>-</name>
  107. <func/>
  108. </item>
  109. <item>
  110. <name>진료취소</name>
  111. <func>fPatOrdCncl</func>
  112. </item>
  113. <item>
  114. <name>-</name>
  115. <func/>
  116. </item>
  117. <item>
  118. <name>보호자대진적용</name>
  119. <func>fRgstPatProtector</func>
  120. </item>
  121. <item>
  122. <name>보호자대진취소</name>
  123. <func>fCnclPatProtector</func>
  124. </item>
  125. <item>
  126. <name>-</name>
  127. <func/>
  128. </item>
  129. <item>
  130. <name>협진관리</name>
  131. <func>fOpenCnstPat</func>
  132. </item>
  133. <item>
  134. <name>-</name>
  135. <func/>
  136. </item>
  137. <item>
  138. <name>진찰료 50% 적용 (사본발행)</name>
  139. <func>fPatCopyIss50Appl</func>
  140. </item>
  141. <item>
  142. <name>진찰료 50% 적용 취소 (사본발행)</name>
  143. <func>fPatCopyIss50Cncl</func>
  144. </item>
  145. <item>
  146. <name>-</name>
  147. <func/>
  148. </item>
  149. <item>
  150. <name>진찰료 0% 적용 (제증명)</name>
  151. <func>fPatProf0Appl</func>
  152. </item>
  153. <item>
  154. <name>진찰료 0% 적용 취소 (제증명)</name>
  155. <func>fPatProf0Cncl</func>
  156. </item>
  157. </menu2>
  158. <!--<menu/>-->
  159. </popupmenu>
  160. </root>
  161. </instance>
  162. <script type="javascript" ev:event="xforms-model-construct-done">
  163. <![CDATA[
  164. fInitialize_SMMMO04200();
  165. ]]>
  166. </script>
  167. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  168. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  169. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  170. <submission id="TRMMB01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
  171. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  172. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  173. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  174. <submission id="TRMMB04107" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  175. <submission id="TRMMB04105" mediatype="application/x-www-form-urlencoded" method="post"/>
  176. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  177. <submission id="TRMMO04108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/infecpatlist"/>
  178. <submission id="TRMMO04109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/opprcpinfo"/>
  179. <submission id="TRMMO04129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/recinfo"/>
  180. <submission id="TRMMO04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/outpatinfo"/>
  181. <submission id="TRMMO04202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/topinfo"/>
  182. <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
  183. <!-- 선택진료신청관리 팝업 open 여부 체크 -->
  184. <submission id="TRMMO02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/patinfo"/>
  185. <submission id="TRMMO02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/aftcert" resultref="/root/hidden/aftcert"/>
  186. <submission id="TXMNO00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/hidden/result"/>
  187. <submission id="TXMMO00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  188. <submission id="TXMMO04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/outpatinfo"/>
  189. <submission id="TXMMO04202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hidden"/>
  190. <submission id="TXMMO04203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hidden"/>
  191. <submission id="TXMMO04204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
  192. <submission id="TXMMO04205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/outpatinfo"/>
  193. <submission id="TXMMO04206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/outpatinfo"/>
  194. <submission id="TXMMO04207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hidden"/>
  195. <submission id="TXMMO04208" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hidden"/>
  196. <submission id="TRMMO09101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hidden"/>
  197. <submission id="TXMMO04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden"/>
  198. <submission id="TRPMC06801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/smpmc06800/send" resultref="/root/smpmc06800/saim"/>
  199. <submission id="TRMMO04114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/selectpatinfo"/>
  200. </model>
  201. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  202. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  203. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  204. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  205. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  206. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  207. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  208. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  209. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  210. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04200.js"/>
  211. </xhtml:head>
  212. <xhtml:body guideline="1,5;2,9;2,62;1,1174;2,717;2,37;1,-3;1,741;" style="background-color:transparent; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  213. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1174px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  214. <line id="line1" class="line_1" style="x1:0px; y1:79px; x2:1174px; y2:79px; "/>
  215. <caption id="caption30" class="search_name" style="left:393px; top:36px; width:76px; height:17px; ">등록번호</caption>
  216. <caption id="caption14" class="search_name" style="left:196px; top:9px; width:76px; height:17px; ">진 료 일</caption>
  217. <caption id="caption26" class="search_name" style="left:393px; top:9px; width:76px; height:17px; ">진 료 과</caption>
  218. <caption id="caption29" class="search_name" style="left:642px; top:9px; width:76px; height:17px; ">진 료 의</caption>
  219. <caption id="caption2" class="tit_2" style="left:0px; top:64px; width:126px; height:13px; vertical-align:middle; ">외래환자 리스트</caption>
  220. <caption id="caption1" class="search_name" style="left:5px; top:9px; width:76px; height:17px; ">총</caption>
  221. <input id="ipt_orddd" ref="/root/main/cond/orddd" class="input" autonext="false" inputtype="date" style="left:275px; top:9px; width:90px; height:19px; ">
  222. <script type="javascript" ev:event="xforms-value-changed">
  223. <![CDATA[
  224. model.removeNodeset("/root/init/orddept");
  225. model.makeNode("/root/init/orddept/dept");
  226. var sOrdDd = model.getValue("/root/main/cond/orddd");
  227. var sOrdDeptCd = model.getValue("/root/main/cond/orddeptcd");
  228. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "O", sOrdDd); // 진료일자 기준으로 진료과를 다시 조회
  229. if(isNull(model.getValue("/root/init/orddept/dept[deptcd='"+sOrdDeptCd+"']/deptcd"))) {
  230. if(fContainsHardCD("445", sOrdDeptCd)) { // 소아청소년과 분과 이면 소아청소년과로 설정.
  231. model.setValue("/root/main/cond/orddeptcd", "2110000000");
  232. cmb_orddept.dispatch("xforms-value-changed");
  233. } else {
  234. messageBox ( "선택일자에 존재하지 않는 진료과 입니다.\n\n진료과를 다시 선택 하세요.", "I" );
  235. }
  236. }
  237. model.refresh();
  238. ]]>
  239. </script>
  240. </input>
  241. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" imemode="disabled" maxlength="10" isemptyformatted="false" style="left:472px; top:36px; width:90px; height:19px; ">
  242. <script type="javascript" ev:event="onkeypress">
  243. <![CDATA[
  244. inputEnterKey("btn_reqpatnm", "DOMActivate");
  245. ]]>
  246. </script>
  247. </input>
  248. <datagrid id="grd_outpatlist" nodeset="/root/main/outpatinfo/outpatlist" caption="구분^시간^성명^등록번호^S/A^의료협력^회신상태^센터^세부과^진료의^초재진^진단명^최근진단명^타과^특이^검사조회^예약구분^기타구분^중증^보험유형^오늘결과^직전검사^예약시간^환자도착시간^진료시작시간^진료종료시간^전달사항^관심^제한항생제^협진^CP여부^One Stop^Donor W/U^PreWork Up^BMT예정일^이식형태^BMT Day^Post Cx Day^사전심사^선택진료여부^진료상태^환자메모^orddd^cretno^instcd^acptseqno^orgorddd^repltype^수납VIP사유코드^수납VIP사유^medamtpostyn^민원여부^color^orddrid^centcd^다학제^POD" colsep="^" colwidth="56, 55, 70, 75, 55, 70, 70, 80, 0, 65, 65, 146, 0, 55, 55, 75, 75, 75, 55, 75, 0, 60, 0, 100, 100, 100, 0, 85, 0, 77, 0, 0, 70, 79, 0, 0, 0, 0, 100, 100, 70, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:84px; width:1174px; height:601px; text-align:center; margin-left:0; margin-right:0; ">
  249. <col disabled="true" ref="elbulbodstat" type="combo" style="text-align:center; ">
  250. <choices>
  251. <itemset nodeset="/root/init/M0062/M0062">
  252. <label ref="cdnm"/>
  253. <value ref="cdid"/>
  254. </itemset>
  255. </choices>
  256. </col>
  257. <col ref="ordtm" format="hh:ss" style="text-align:center; "/>
  258. <col ref="hngnm" style="text-align:left; "/>
  259. <col ref="pid"/>
  260. <col ref="sexage"/>
  261. <col class="text_center;" ref="refer"/>
  262. <col class="text_center;" ref="replstat"/>
  263. <col ref="centcd"/>
  264. <col ref="subdeptcd"/>
  265. <col ref="orddrnm" style="text-align:center; "/>
  266. <col disabled="true" ref="fsexamflag" type="combo">
  267. <choices>
  268. <itemset nodeset="/root/init/P0021/P0021">
  269. <label ref="cdnm"/>
  270. <value ref="cdid"/>
  271. </itemset>
  272. </choices>
  273. </col>
  274. <col ref="diagnm" style="text-align:left; "/>
  275. <col ref="recentdiagnm" style="text-align:left; "/>
  276. <col ref="anodeptyn"/>
  277. <col ref="spclflag"/>
  278. <col ref="testrslt"/>
  279. <col disabled="true" ref="rsrvflag" type="combo">
  280. <choices>
  281. <itemset nodeset="/root/init/P0341/P0341">
  282. <label ref="cdnm"/>
  283. <value ref="cdid"/>
  284. </itemset>
  285. </choices>
  286. </col>
  287. <col disabled="true" ref="etcordflag" type="combo">
  288. <choices>
  289. <itemset nodeset="/root/init/P0022/P0022">
  290. <label ref="cdnm"/>
  291. <value ref="cdid"/>
  292. </itemset>
  293. </choices>
  294. </col>
  295. <col disabled="true" ref="serdiag" type="combo">
  296. <choices>
  297. <item>
  298. <label>Y</label>
  299. <value>Y</value>
  300. </item>
  301. <item>
  302. <label>N</label>
  303. <value>N</value>
  304. </item>
  305. </choices>
  306. </col>
  307. <col disabled="true" ref="insukind" type="combo">
  308. <choices>
  309. <itemset nodeset="/root/init/P0008/P0008">
  310. <label ref="cdnm"/>
  311. <value ref="cdid"/>
  312. </itemset>
  313. </choices>
  314. </col>
  315. <col ref="prcptdayaftrcptyn"/>
  316. <col ref="preexamyn"/>
  317. <col ref="rsrvordtm" format="hh:ss" style="text-align:center; "/>
  318. <col ref="nursacptdt"/>
  319. <col ref="ordstartdt"/>
  320. <col ref="dracptdt"/>
  321. <col disabled="true" ref="trsmrem" type="combo">
  322. <choices>
  323. <item>
  324. <label>Y</label>
  325. <value>Y</value>
  326. </item>
  327. <item>
  328. <label>N</label>
  329. <value>N</value>
  330. </item>
  331. </choices>
  332. </col>
  333. <col ref="conctypenm"/>
  334. <col ref="antidrugflag"/>
  335. <col disabled="true" ref="coordflag" type="combo">
  336. <choices>
  337. <itemset nodeset="/root/init/M0525/M0525">
  338. <label ref="cdnm"/>
  339. <value ref="cdid"/>
  340. </itemset>
  341. </choices>
  342. </col>
  343. <col ref="cpyn"/>
  344. <col ref="onestop"/>
  345. <col ref="dnoracptyn"/>
  346. <col ref="preworkup"/>
  347. <col ref="hsctpreday"/>
  348. <col ref="transtype"/>
  349. <col ref="hsctday"/>
  350. <col ref="postcxday"/>
  351. <col ref="bfjudgvalue"/>
  352. <col disabled="true" ref="specordtype" type="combo">
  353. <choices>
  354. <itemset nodeset="/root/init/M0623/M0623">
  355. <label ref="cdnm"/>
  356. <value ref="cdid"/>
  357. </itemset>
  358. </choices>
  359. </col>
  360. <col ref="ordstate"/>
  361. <col ref="patmemo"/>
  362. <col ref="orddd"/>
  363. <col ref="cretno"/>
  364. <col ref="instcd"/>
  365. <col ref="acptseqno"/>
  366. <col ref="orgorddd"/>
  367. <col ref="repltype"/>
  368. <col ref="rcptvipresncd" visibility="hidden"/>
  369. <col ref="rcptvipetcresn" visibility="hidden"/>
  370. <col ref="medamtpostyn" visibility="hidden"/>
  371. <col ref="civilap" visibility="hidden"/>
  372. <col ref="color" visibility="hidden"/>
  373. <col ref="orddrid" visibility="hidden"/>
  374. <col ref="centcode" visibility="hidden"/>
  375. <col disabled="true" ref="multiord" type="combo">
  376. <choices>
  377. <item>
  378. <label>주</label>
  379. <value>M</value>
  380. </item>
  381. <item>
  382. <label>부</label>
  383. <value>S</value>
  384. </item>
  385. <item>
  386. <label/>
  387. <value>-</value>
  388. </item>
  389. </choices>
  390. </col>
  391. <col ref="pod" style="text-align:center; "/>
  392. <script type="javascript" ev:event="onmousedown">
  393. <![CDATA[
  394. // 외래환자 탭-> 환자리스트에서 오른쪽 마우스 클릭 메뉴 설정
  395. // 참고 : 이전에 정의된 오른쪽 마우스 클릭 시 사용된 메뉴리스트를 emr.mmbdhrcd테이블에 정의 hardcd = 191으로 정의
  396. // 작성일 : 2010.03.15
  397. // 작성자 : 김광성(kskim)
  398. if( getNodesetCount("/root/popupmenu/menu/hardcd") > 0 ){
  399. setPopupMenu("grd_outpatlist", false, "/root/popupmenu/menu/hardcd", "hardcdnm", "hardcd");
  400. }
  401. else{
  402. setPopupMenu("grd_outpatlist", false, "/root/popupmenu/menu2/item", "name", "func");
  403. }
  404. ]]>
  405. </script>
  406. <script type="javascript" ev:event="ondblclick">
  407. <![CDATA[
  408. if (isDataCell() == true) {
  409. setGlobalVariable("OrderMainRefresh", "Y"); // 처방 메인 refresh 단일화를 위한 글로벌 변수 셋팅 - 20081212 by Moonsh
  410. if ( fChkBfPrcpLoad("O") == false ) {
  411. return;
  412. }
  413. fSelectOutPat();
  414. mmbfGetHardCodeInfo("/root/send/reqdata", "/root/init/refdepts", 5990);
  415. var cnt = getNodeSetCnt("/root/init/refdepts/hardcd[hardcd = '" + getUserInfo("dutplcecd") + "']"); //협력회신 로딩 부서
  416. //이윤주추가(20150309)
  417. var wndobj = getOpenWindow("SMARC02500");
  418. if(wndobj != null) {
  419. wndobj.javascript.window.close();
  420. }
  421. var replstat = grd_outpatlist.valueMatrix( grd_outpatlist.row, grd_outpatlist.colRef("replstat"));
  422. if (cnt > 0 && replstat == "회신대상") {
  423. open("SMARC02500");
  424. }
  425. }
  426. ]]>
  427. </script>
  428. <script type="javascript" ev:event="onclick">
  429. <![CDATA[
  430. // if (isDataCell() == true) {
  431. if(grd_outpatlist.isCell(event.target)) {
  432. var currow = grd_outpatlist.row;
  433. var curcol = grd_outpatlist.col;
  434. if(currow == 0){ //grid sort
  435. if(sORDERBY == "asc"){
  436. sORDERBY = "desc";
  437. }else{
  438. sORDERBY = "asc";
  439. }
  440. model.setValue("/root/main/cond/sortcol", curcol);
  441. model.setValue("/root/main/cond/orderby", sORDERBY);
  442. model.copyNode(opener.root.cond.outpatlist, root.main.cond);
  443. //nodeListSort(grd_outpatlist.nodeset, grd_outpatlist.colAttribute(curcol, "ref"), sORDERBY);
  444. grd_outpatlist.refresh();
  445. grd_outpatlist.gridToInstance();
  446. }else{
  447. var pid = model.getValue("/root/main/outpatinfo/outpatlist[" + grd_outpatlist.row + "]/pid");
  448. model.setValue(opener.root.source.pid, pid);
  449. }
  450. }
  451. ]]>
  452. </script>
  453. <script type="javascript" ev:event="onaftersort">
  454. <![CDATA[
  455. grd_outpatlist.gridToInstance();
  456. ]]>
  457. </script>
  458. <script type="javascript" ev:event="DOMFocusOut">
  459. <![CDATA[
  460. initPopupMenu();
  461. ]]>
  462. </script>
  463. </datagrid>
  464. <group id="grp_info" style="left:4px; top:690px; width:1170px; height:26px; ">
  465. <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:415px; height:26px; background-color:#ffffff; border-color:#3366ff; "/>
  466. <shape id="rectangle6" appearance="rectangle" style="left:12px; top:4px; width:30px; height:19px; background-color:#ffff99; border-color:#000000; "/>
  467. <shape id="rectangle4" appearance="rectangle" style="left:147px; top:4px; width:30px; height:19px; background-color:#ffcc99; border-color:#000000; "/>
  468. <caption id="caption19" style="left:43px; top:5px; width:102px; height:19px; ">전광판 다음 환자</caption>
  469. <caption id="caption18" style="left:178px; top:5px; width:237px; height:19px; ">지연환자 (사용자환경설정에서 설정 가능)</caption>
  470. <button id="btn_schprint" class="btn2_letter6" visibility="visible" style="left:1080px; top:4px; width:86px; height:19px; ">
  471. <caption>예약현황출력</caption>
  472. <script type="javascript" ev:event="DOMActivate">
  473. <![CDATA[
  474. fPrintOutRsrvState();
  475. ]]>
  476. </script>
  477. </button>
  478. </group>
  479. <caption id="caption4" style="left:115px; top:9px; width:30px; height:20px; font-weight:bold; vertical-align:middle; ">명</caption>
  480. <caption id="caption5" style="left:75px; top:10px; width:15px; height:20px; vertical-align:middle; ">/</caption>
  481. <output id="input1" ref="/root/main/cond/totcnt" class="input_search" appearance="output" style="left:85px; top:10px; width:25px; height:14px; text-align:center; "/>
  482. <line id="line3" style="x1:1100px; y1:13px; x2:1100px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
  483. <caption id="caption6" class="search_name" style="left:6px; top:35px; width:76px; height:17px; ">환자구분</caption>
  484. <caption id="caption7" class="search_name" style="left:642px; top:36px; width:81px; height:17px; ">성 명</caption>
  485. <button id="btn_reqpatnm" disabled="true" style="left:549px; top:36px; width:45px; height:20px; ">
  486. <caption/>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. fPidTrim("/root/main/cond/pid")
  490. var pid = model.getValue("/root/main/cond/pid");
  491. if(pid == ""){
  492. return;
  493. }
  494. if(reqPatInfo("pid", "ptbs", pid)==true){
  495. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  496. model.setValue("/root/main/cond/hngnm", hngnm);
  497. model.refresh();
  498. fReqOutPatList();
  499. }
  500. model.refresh();
  501. ]]>
  502. </script>
  503. </button>
  504. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" style="left:472px; top:9px; width:150px; height:19px; ">
  505. <choices>
  506. <itemset nodeset="/root/init/orddept/dept">
  507. <label ref="depthngnm"/>
  508. <value ref="deptcd"/>
  509. </itemset>
  510. </choices>
  511. <script type="javascript" ev:event="xforms-value-changed">
  512. <![CDATA[
  513. model.removeNodeset("/root/init/userlist");
  514. model.makeNode("/root/init/userlist/usercombo");
  515. var sOrdDd = model.getValue("/root/main/cond/orddd");
  516. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330", "", "", sOrdDd);
  517. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  518. cmb_orddrid.select(1);
  519. model.refresh();
  520. fReqOutPatList();
  521. ]]>
  522. </script>
  523. </select1>
  524. <input id="ipt_hngnm" ref="/root/main/cond/hngnm" class="input_search" style="left:721px; top:36px; width:90px; height:19px; ">
  525. <script type="javascript" ev:event="onkeypress">
  526. <![CDATA[
  527. if(event.keyCode == 13){
  528. model.setValue("/root/hidden/srchcond", "2");
  529. model.setValue("/root/hidden/hngnm", ipt_hngnm.currentText);
  530. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden", "/root/send");
  531. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  532. var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  533. model.setValue("/root/main/cond/pid", pid);
  534. model.setValue("/root/main/cond/hngnm", hngnm);
  535. model.refresh();
  536. }
  537. ]]>
  538. </script>
  539. </input>
  540. <select1 id="rdo_patflag" ref="/root/main/cond/elbulbodstat" appearance="full" cellspacing="10" cols="5" overflow="visible" style="left:96px; top:35px; width:274px; height:20px; border-style:none; ">
  541. <choices>
  542. <item>
  543. <label>전체</label>
  544. <value>-</value>
  545. </item>
  546. <item>
  547. <label>미접수</label>
  548. <value>9</value>
  549. </item>
  550. <item>
  551. <label>접수</label>
  552. <value>0</value>
  553. </item>
  554. <item>
  555. <label>대기</label>
  556. <value>1</value>
  557. </item>
  558. <item>
  559. <label>완료</label>
  560. <value>2</value>
  561. </item>
  562. </choices>
  563. <script type="javascript" ev:event="xforms-value-changed">
  564. <![CDATA[
  565. fReqOutPatList();
  566. ]]>
  567. </script>
  568. </select1>
  569. <button id="btn_req" class="btn1_letter2" style="left:1111px; top:23px; width:56px; height:22px; ">
  570. <caption>조회</caption>
  571. <script type="javascript" ev:event="DOMActivate">
  572. <![CDATA[
  573. fReqOutPatList();
  574. ]]>
  575. </script>
  576. </button>
  577. <select1 id="cmb_expt" ref="/root/main/cond/deptflag" appearance="minimal" style="left:951px; top:9px; width:92px; height:19px; ">
  578. <choices>
  579. <itemset nodeset="/root/main/outpatinfo/hardcode">
  580. <label ref="hardcdnm"/>
  581. <value ref="hardcdno"/>
  582. </itemset>
  583. </choices>
  584. </select1>
  585. <button id="btn_patsrch" class="icon_search" style="left:818px; top:38px; width:16px; height:16px; ">
  586. <caption/>
  587. <script type="javascript" ev:event="DOMActivate">
  588. <![CDATA[
  589. modal("SPPMC02500");
  590. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  591. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  592. model.setValue("/root/main/cond/pid", sPid);
  593. model.setValue("/root/main/cond/hngnm", sHngnm);
  594. model.refresh();
  595. ]]>
  596. </script>
  597. </button>
  598. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" appearance="minimal" itemcount="30" style="left:721px; top:9px; width:90px; height:19px; ">
  599. <choices>
  600. <itemset nodeset="/root/init/userlist/usercombo">
  601. <label ref="usernm"/>
  602. <value ref="userid"/>
  603. </itemset>
  604. </choices>
  605. </select1>
  606. <output id="output1" ref="/root/main/cond/rsltcnt" class="input_search" appearance="output" style="left:49px; top:10px; width:25px; height:19px; text-align:center; "/>
  607. <bool id="chk_proprcp" checkvalue="Y,N" ref="/root/main/cond/chkprcp" style="left:855px; top:10px; width:25px; height:20px; "/>
  608. <caption id="caption8" style="left:875px; top:10px; width:66px; height:20px; ">
  609. <![CDATA[가접수 포함]]>
  610. <script type="javascript" ev:event="onclick">
  611. <![CDATA[
  612. var chk_prcp = model.getValue("/root/main/cond/chkprcp");
  613. if (chk_prcp =="Y") {
  614. model.setValue("/root/main/cond/chkprcp", "N");
  615. } else {
  616. model.setValue("/root/main/cond/chkprcp", "Y");
  617. }
  618. model.refresh();
  619. ]]>
  620. </script>
  621. </caption>
  622. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/speedflag" style="left:855px; top:37px; width:25px; height:20px; ">
  623. <script type="javascript" ev:event="xforms-value-changed">
  624. <![CDATA[
  625. fGrdInit();
  626. fReqOutPatList();
  627. ]]>
  628. </script>
  629. </bool>
  630. <caption id="caption9" style="left:875px; top:37px; width:65px; height:20px; ">
  631. <![CDATA[간략히보기]]>
  632. <script type="javascript" ev:event="onclick">
  633. <![CDATA[
  634. var speedflag = model.getValue("/root/main/cond/speedflag");
  635. if (speedflag =="Y") {
  636. model.setValue("/root/main/cond/speedflag", "N");
  637. } else {
  638. model.setValue("/root/main/cond/speedflag", "Y");
  639. }
  640. fReqOutPatList();
  641. model.refresh();
  642. ]]>
  643. </script>
  644. </caption>
  645. <bool id="chk_delay" visibility="hidden" checkvalue="Y,N" ref="/root/main/cond/delayflag" style="left:955px; top:37px; width:25px; height:20px; ">
  646. <script type="javascript" ev:event="xforms-value-changed">
  647. <![CDATA[
  648. fReqOutPatList();
  649. ]]>
  650. </script>
  651. </bool>
  652. <input id="ipt_delaytime" ref="/root/main/cond/delaytime" class="input_search" visibility="hidden" format="##" style="left:980px; top:36px; width:25px; height:19px; ">
  653. <script type="javascript" ev:event="DOMFocusOut">
  654. <![CDATA[
  655. //지연시간을 체크 한다.
  656. var delayTime = model.getValue("/root/main/cond/delaytime");
  657. if(!delayTime.isNumber()){
  658. messageBox("지연시간은 숫자만 입력 가능 합니다", "I");
  659. model.setFocus("ipt_delaytime");
  660. }
  661. ]]>
  662. </script>
  663. </input>
  664. <caption id="caption10" visibility="hidden" style="left:1005px; top:37px; width:70px; height:20px; ">
  665. <![CDATA[분 지연표시]]>
  666. <script type="javascript" ev:event="onclick">
  667. <![CDATA[
  668. var delayflag = model.getValue("/root/main/cond/delayflag");
  669. if (delayflag =="Y") {
  670. model.setValue("/root/main/cond/delayflag", "N");
  671. } else {
  672. model.setValue("/root/main/cond/delayflag", "Y");
  673. }
  674. fReqOutPatList();
  675. model.refresh();
  676. ]]>
  677. </script>
  678. </caption>
  679. <shape id="rectdelay" visibility="hidden" appearance="rectangle" style="left:1073px; top:40px; width:13px; height:13px; background-color:#ffcc99; border-color:#000000; "/>
  680. <group id="grp_chgdrinfo" disabled="false" visibility="hidden" style="left:330px; top:215px; width:185px; height:90px; background-color:#ccffff; border-color:#3366ff; border-style:solid; ">
  681. <caption id="caption11" style="left:5px; top:30px; width:54px; height:20px; font-weight:bold; vertical-align:middle; ">변경의사</caption>
  682. <button id="btn_cnfm" class="btn2_letter2" style="left:77px; top:51px; width:42px; height:19px; ">
  683. <caption>확인</caption>
  684. <script type="javascript" ev:event="DOMActivate">
  685. <![CDATA[
  686. fChgDrInfo();
  687. ]]>
  688. </script>
  689. </button>
  690. <select1 id="cmb_inrsrvcnclresn" ref="/root/main/cond/chgorddrid" class="combo_search" appearance="minimal" style="left:61px; top:29px; width:103px; height:19px; ">
  691. <choices>
  692. <itemset nodeset="/root/init/userlist/usercombo">
  693. <label ref="usernm"/>
  694. <value ref="userid"/>
  695. </itemset>
  696. </choices>
  697. </select1>
  698. <button id="btn_cncl" class="btn2_letter2" style="left:121px; top:51px; width:42px; height:19px; ">
  699. <caption>취소</caption>
  700. <script type="javascript" ev:event="DOMActivate">
  701. <![CDATA[
  702. grp_chgdrinfo.visible = false;
  703. ]]>
  704. </script>
  705. </button>
  706. <caption id="caption12" class="tit_2" style="left:-1px; top:4px; width:126px; height:14px; vertical-align:middle; ">의사 변경</caption>
  707. </group>
  708. </xhtml:body>
  709. </xhtml:html>