SMMNO02700_외래 진찰료 마감 취소.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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. <main>
  10. <endResn>
  11. <P0432>
  12. <cdnm/>
  13. <cdid/>
  14. </P0432>
  15. </endResn>
  16. <cond>
  17. <cond>
  18. <hngnm/>
  19. <rgstno/>
  20. </cond>
  21. </cond>
  22. <otptkey>
  23. <otptkey>
  24. <pid/>
  25. <orddd/>
  26. <cretno/>
  27. <acptseqno/>
  28. </otptkey>
  29. </otptkey>
  30. <prcdcnt>
  31. <prcdcnt>
  32. <cnt/>
  33. </prcdcnt>
  34. </prcdcnt>
  35. </main>
  36. <send/>
  37. <init>
  38. <orddept>
  39. <orddept>
  40. <deptcd/>
  41. <deptnm/>
  42. </orddept>
  43. </orddept>
  44. <orddr>
  45. <orddr>
  46. <usernm/>
  47. <userid/>
  48. </orddr>
  49. </orddr>
  50. <orddd>
  51. <orddd>
  52. <orddd/>
  53. <ordddview/>
  54. </orddd>
  55. </orddd>
  56. </init>
  57. <cond>
  58. <pid/>
  59. <hngnm/>
  60. <rgstno/>
  61. <orddeptcd/>
  62. <orddrid/>
  63. <orddd/>
  64. <cnclresn/>
  65. <etc/>
  66. </cond>
  67. </root>
  68. </instance>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. // model.setValue("/root/main/cond/orddd", getCurrentDate());
  72. // zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "rcptuseyn", "X", "/root/init/orddept", "depthngnm", "asc"); //부서코드 콤보조회
  73. //model.refresh();
  74. //fSearch();
  75. ]]>
  76. </script>
  77. <script type="javascript">
  78. <![CDATA[
  79. function fSearch(){
  80. if(event.keyCode == 13){
  81. model.setFocus("output1");
  82. if(model.getValue("/root/cond/pid") == "" ){
  83. messageBox("등록번호를","C001");
  84. model.setFocus("ipt_pid");
  85. return;
  86. }
  87. model.removeNodeset("/root/send");
  88. model.makeNode("/root/send");
  89. model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
  90. if(submit("TRMNO02701")){
  91. model.setValue("/root/cond/hngnm",model.getValue("/root/main/cond/cond/hngnm"));
  92. model.setValue("/root/cond/rgstno",model.getValue("/root/main/cond/cond/rgstno"));
  93. if(model.getValue("/root/cond/hngnm") == "" ){
  94. messageBox("입력한 등록번호에 해당하는 환자가","I004");
  95. model.reset();
  96. model.setFocus("ipt_pid");
  97. return;
  98. }else{
  99. model.removeNodeset("/root/main/endResn/P0432");
  100. zbcfGetCodeList(new Array("P0432"), new Array("/root/main/endResn"));
  101. model.removeNodeset("/root/send");
  102. model.removeNodeset("/root/init/orddept");
  103. model.makeNode("/root/send");
  104. model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
  105. submit("TRMNO02702");
  106. cmb_orddept.select(0);
  107. model.setFocus("output3");
  108. }
  109. }
  110. model.refresh();
  111. }
  112. }
  113. ]]>
  114. </script>
  115. <submission id="TRMNO02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond"/>
  116. <submission id="TRMNO02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddept"/>
  117. <submission id="TRMNO02703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddr"/>
  118. <submission id="TRMNO02704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddd"/>
  119. <submission id="TRMNO02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/otptkey"/>
  120. <submission id="TRMNO02706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcdcnt"/>
  121. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  122. <submission id="TXMNO02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  123. </model>
  124. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  127. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  128. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  129. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  130. </xhtml:head>
  131. <xhtml:body pagewidth="240" pageheight="420" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  132. <group id="group3" style="left:0px; top:18px; width:223px; height:361px; ">
  133. <datagrid id="grd_endResn" nodeset="/root/main/endResn/P0432" allowselection="false" caption="마감취소사유^cdid" colsep="^" colwidth="198, 0" defaultrows="1" mergecellsfixedrows="bycolrec" rowsep="|" navindex="5" style="left:0px; top:161px; width:221px; height:130px; ">
  134. <col ref="cdnm"/>
  135. <col ref="cdid"/>
  136. <script type="javascript" ev:event="onclick">
  137. <![CDATA[
  138. if(grd_endResn.rows < 2){
  139. return;
  140. }else{
  141. model.setValue("/root/cond/cnclresn",model.getValue("/root/main/endResn/P0432["+grd_endResn.row+"]/cdid"));
  142. }
  143. ]]>
  144. </script>
  145. </datagrid>
  146. <select1 id="combo1" ref="/root/cond/orddrid" class="combo_search" navindex="3" appearance="minimal" style="left:105px; top:110px; width:114px; height:19px; ">
  147. <choices>
  148. <itemset nodeset="/root/init/orddr/orddr">
  149. <label ref="usernm"/>
  150. <value ref="userid"/>
  151. </itemset>
  152. </choices>
  153. <script type="javascript" ev:event="xforms-value-changed">
  154. <![CDATA[
  155. model.removeNodeset("/root/send");
  156. model.removeNodeset("/root/init/orddd");
  157. model.makeNode("/root/send");
  158. model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
  159. model.makeValue("/root/send/orddeptcd" ,model.getValue("/root/cond/orddeptcd"));
  160. model.makeValue("/root/send/orddrid" ,model.getValue("/root/cond/orddrid"));
  161. submit("TRMNO02704");
  162. combo2.select(0);
  163. ]]>
  164. </script>
  165. </select1>
  166. <select1 id="cmb_orddept" ref="/root/cond/orddeptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:105px; top:85px; width:114px; height:19px; ">
  167. <choices>
  168. <itemset nodeset="/root/init/orddept/orddept">
  169. <label ref="deptnm"/>
  170. <value ref="deptcd"/>
  171. </itemset>
  172. </choices>
  173. <script type="javascript" ev:event="xforms-value-changed">
  174. <![CDATA[
  175. model.removeNodeset("/root/send");
  176. model.removeNodeset("/root/init/orddr");
  177. model.makeNode("/root/send");
  178. model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
  179. model.makeValue("/root/send/orddeptcd" ,model.getValue("/root/cond/orddeptcd"));
  180. submit("TRMNO02703");
  181. combo1.select(0);
  182. ]]>
  183. </script>
  184. </select1>
  185. <caption id="caption52" class="cell_1" style="left:0px; top:6px; width:104px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
  186. <input id="ipt_pid" ref="/root/cond/pid" class="input_default" navindex="1" maxlength="10" style="left:105px; top:8px; width:114px; height:19px; ">
  187. <script type="javascript" ev:event="onkeydown">
  188. <![CDATA[
  189. fSearch();
  190. ]]>
  191. </script>
  192. </input>
  193. <line id="line5" class="line_1" style="x1:0px; y1:1px; x2:219px; y2:1px; "/>
  194. <caption id="caption2" class="cell_1" style="left:0px; top:31px; width:104px; height:23px; text-align:center; vertical-align:middle; ">환자명</caption>
  195. <output id="output1" ref="/root/cond/hngnm" class="output_fix" maxlength="10" style="left:105px; top:33px; width:114px; height:19px; "/>
  196. <line id="line36" class="line_2" style="x1:0px; y1:29px; x2:220px; y2:29px; "/>
  197. <caption id="caption3" class="cell_1" style="left:0px; top:56px; width:104px; height:23px; text-align:center; vertical-align:middle; ">주민등록번호</caption>
  198. <line id="line1" class="line_2" style="x1:0px; y1:54px; x2:220px; y2:54px; "/>
  199. <output id="output2" ref="/root/cond/rgstno" class="output_fix" maxlength="10" style="left:105px; top:58px; width:114px; height:19px; "/>
  200. <line id="line8" class="line_3" style="x1:0px; y1:80px; x2:220px; y2:80px; "/>
  201. <caption id="caption4" class="cell_1" style="left:0px; top:82px; width:104px; height:23px; text-align:center; vertical-align:middle; ">진료과</caption>
  202. <caption id="caption5" class="cell_1" style="left:0px; top:107px; width:104px; height:23px; text-align:center; vertical-align:middle; ">진료의</caption>
  203. <line id="line4" class="line_2" style="x1:0px; y1:105px; x2:220px; y2:105px; "/>
  204. <caption id="caption7" class="cell_1" style="left:0px; top:132px; width:104px; height:23px; text-align:center; vertical-align:middle; ">진료일자</caption>
  205. <line id="line6" class="line_2" style="x1:0px; y1:130px; x2:220px; y2:130px; "/>
  206. <line id="line2" class="line_1" style="x1:0px; y1:156px; x2:221px; y2:156px; "/>
  207. <caption id="caption8" class="tit_2" style="left:0px; top:295px; width:95px; height:13px; ">기타사유</caption>
  208. <line id="line7" class="line_1" style="x1:0px; y1:312px; x2:221px; y2:312px; "/>
  209. <input id="output3" ref="/root/cond/etc" class="input_default" navindex="6" maxlength="10" style="left:0px; top:317px; width:221px; height:19px; "/>
  210. <button id="button5" class="btn5_letter2" navindex="7" style="left:178px; top:338px; width:42px; height:19px; ">
  211. <caption>저장</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. if(messageBox("마감취소를","Q002") != 6) return;
  215. if( (model.getValue("/root/cond/pid") == "" ) ||
  216. (model.getValue("/root/cond/orddeptcd") == "" ) ||
  217. (model.getValue("/root/cond/orddrid") == "" ) ||
  218. (model.getValue("/root/cond/orddd") == "" )
  219. ){
  220. messageBox("등록번호, 진료과, 진료의, 접수일자는 ","I003");
  221. model.setFocus("ipt_pid");
  222. return;
  223. }
  224. if(model.getValue("/root/cond/cnclresn") == ""){
  225. messageBox("마감취소사유를","C002");
  226. model.setFocus("grd_endResn");
  227. return;
  228. }
  229. if(model.getValue("/root/cond/cnclresn") == "99") {
  230. if(model.getValue("/root/cond/etc") == ""){
  231. messageBox("기타사유를","C001");
  232. model.setFocus("output3");
  233. return;
  234. }
  235. }
  236. model.removeNodeset("/root/send");
  237. model.removeNodeset("/root/main/otptkey");
  238. model.makeNode("/root/send");
  239. model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
  240. model.makeValue("/root/send/orddeptcd" ,model.getValue("/root/cond/orddeptcd"));
  241. model.makeValue("/root/send/orddrid" ,model.getValue("/root/cond/orddrid"));
  242. model.makeValue("/root/send/orddd" ,model.getValue("/root/cond/orddd"));
  243. if(submit("TRMNO02705")){
  244. if( getNodesetCount("/root/main/otptkey/otptkey") > 0 ){
  245. model.removeNodeset("/root/send");
  246. model.removeNodeset("/root/main/prcdcnt");
  247. model.makeNode("/root/send");
  248. model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
  249. model.makeValue("/root/send/orddd" ,model.getValue("/root/cond/orddd"));
  250. model.makeValue("/root/send/cretno" ,model.getValue("/root/main/otptkey/otptkey/cretno"));
  251. if(submit("TRMNO02706")){
  252. if( model.getValue("/root/main/prcdcnt/prcdcnt/cnt") > 0 ){
  253. if( "6" != messageBox("취소되지 않은 처방이 존재합니다. 마감취소 하시겠습니까?", "Q999")) {
  254. model.setFocus("ipt_pid");
  255. return;
  256. }
  257. }
  258. model.removeNodeset("/root/send");
  259. model.makeNode("/root/send");
  260. model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
  261. model.makeValue("/root/send/orddd" ,model.getValue("/root/cond/orddd"));
  262. model.makeValue("/root/send/cretno" ,model.getValue("/root/main/otptkey/otptkey/cretno"));
  263. model.makeValue("/root/send/acptseqno" ,model.getValue("/root/main/otptkey/otptkey/acptseqno"));
  264. model.makeValue("/root/send/cnclresn" ,model.getValue("/root/cond/cnclresn"));
  265. if(model.getValue("/root/cond/cnclresn") == "99") {
  266. model.makeValue("/root/send/etc" ,model.getValue("/root/cond/etc"));
  267. }else{
  268. model.makeValue("/root/send/etc",model.getValue("/root/main/endResn/P0432["+grd_endResn.row+"]/cdnm"));
  269. }
  270. submit("TXMNO02701");
  271. if(messageBox("마감취소작업이 정상적으로 처리되었습니다. \n"+
  272. "외래접수에 대한 수정작업 후 반드시 재마감을 하십시오. \n\n"+
  273. "다른환자의 마감취소를","Q003") != 6) {
  274. model.close();
  275. return;
  276. }else{
  277. model.reset();
  278. model.setFocus("ipt_pid");
  279. }
  280. }
  281. }else{
  282. messageBox("환자등록번호, 진료과, 진료의, 접수일자에 대한 마감내역이","I004");
  283. model.setFocus("ipt_pid");
  284. return;
  285. }
  286. } // if end
  287. ]]>
  288. </script>
  289. </button>
  290. </group>
  291. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">외래 진찰료 마감 취소</caption>
  292. <select1 id="combo2" ref="/root/cond/orddd" class="combo_search" navindex="4" appearance="minimal" style="left:105px; top:152px; width:114px; height:19px; ">
  293. <choices>
  294. <itemset nodeset="/root/init/orddd/orddd">
  295. <label ref="ordddview"/>
  296. <value ref="orddd"/>
  297. </itemset>
  298. </choices>
  299. </select1>
  300. </xhtml:body>
  301. </xhtml:html>