SPPMO01600_동일과진찰료중복산정조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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. <patinfo>
  11. <patinfolist/>
  12. </patinfo>
  13. <otpt>
  14. <otpthist/>
  15. </otpt>
  16. <sendnode>
  17. <otpthist/>
  18. </sendnode>
  19. <rcv/>
  20. </main>
  21. <init>
  22. <orddeptcd>
  23. <orddeptcdlist>
  24. <cd/>
  25. <nm/>
  26. </orddeptcdlist>
  27. </orddeptcd>
  28. <orddrid>
  29. <orddridlist>
  30. <cd/>
  31. <nm/>
  32. </orddridlist>
  33. </orddrid>
  34. <P0341list>
  35. <P0341>
  36. <cdnm/>
  37. <cdid/>
  38. </P0341>
  39. </P0341list>
  40. <P0022list>
  41. <P0022>
  42. <cdnm/>
  43. <cdid/>
  44. </P0022>
  45. </P0022list>
  46. </init>
  47. <send>
  48. <pid/>
  49. <hngnm/>
  50. <fromdd/>
  51. <todd/>
  52. </send>
  53. <hidden>
  54. <source>
  55. <srchcond/>
  56. <pid/>
  57. <hngnm/>
  58. <rrgstno1/>
  59. <rrgstno2/>
  60. </source>
  61. <session/>
  62. </hidden>
  63. </root>
  64. </instance>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. fGetUserInfosSampling();
  68. //진료과코드 진료의사ID 조회
  69. // pamGetDeptCDDrIDList();
  70. submit("TRPMOCOM01");
  71. model.makeValue("/root/init/P0022list/P0022/cdnm", '-');
  72. model.makeValue("/root/init/P0022list/P0022/cdid", '-');
  73. model.makeValue("/root/init/P0341list/P0341/cdnm", '');
  74. model.makeValue("/root/init/P0341list/P0341/cdid", '');
  75. zbcfGetCodeList(new Array("P0341", "P0022"), new Array("/root/init/P0341list", "/root/init/P0022list"));
  76. //model.setValue("/root/send/fromdd", getDateTime(new Date().getAddDate(-1, 'M'), 'M'));
  77. //model.setValue("/root/send/todd", getDateTime(new Date().getAddDate(1, 'M'), 'M'));
  78. model.setValue("/root/send/fromdd", getDateTime(new Date().getAddDate(-2, 'M'), 'M'));
  79. model.setValue("/root/send/todd", getCurrentDate());
  80. if (checkOpener()){ //팝업화면으로 사용될 때
  81. //pid, orddeptcd 를 받아온다.
  82. var pid = opener.javascript.getParameter("SMPMO01600_PARM");
  83. if( pid != '' && pid != '-' && pid != ' ' && pid != null ){
  84. model.setValue("/root/send/pid", pid);
  85. ipt_pid.refresh();
  86. event.keyCode = '13';
  87. ipt_pid.dispatch("onkeypress");
  88. }
  89. }
  90. model.refresh();
  91. model1.setFocus("ipt_pid");
  92. ]]>
  93. </script>
  94. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  95. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  96. <submission id="TRPMO01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/otpt"/>
  97. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/patinfo"/>
  98. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  99. <submission id="TXPMO01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/sendnode/otpthist" resultref="/root/main/rcv"/>
  100. </model>
  101. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  102. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  103. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  109. <script type="javascript" src="../../../pam/opatmngtweb/js/PMO001.js"/>
  110. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  111. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  112. </xhtml:head>
  113. <xhtml:body pagewidth="900" pageheight="650" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  114. <group id="group3" scroll="auto" style="left:0px; top:0px; width:855px; height:545px; ">
  115. <group id="group2" style="left:0px; top:0px; width:855px; height:35px; vertical-align:top; ">
  116. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:855px; height:35px; "/>
  117. <button id="btn_search" class="btn1_letter2" style="left:780px; top:7px; width:56px; height:22px; ">
  118. <caption>조회</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. var pid = model.getValue("/root/send/pid");
  122. if( pid == '' || pid == '' || pid == '-' ){
  123. messageBox("등록번호가 없습니다. 환자조회 후 다시 시도해 주세요.", "E999", "");
  124. return false;
  125. }else{
  126. model.setValue("/root/hidden/source/srchcond", "1");
  127. model.setValue("/root/hidden/source/pid", pid);
  128. if(submit("TRPMC02500")){
  129. if( getNodesetCount("/root/main/patinfo/patinfolist/pid") > 0 ){
  130. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  131. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  132. }else{
  133. messageBox("존재하지 않는 등록번호입니다. 등록번호를 확인하세요.", 'E999', '');
  134. return false;
  135. }
  136. }else{
  137. return false;
  138. }
  139. }
  140. submit("TRPMO01601");
  141. model.refresh();
  142. ]]>
  143. </script>
  144. </button>
  145. <line id="line13" class="line_4" style="x1:764px; y1:7px; x2:764px; y2:29px; "/>
  146. <caption id="caption3" class="search_name" style="left:10px; top:8px; width:91px; height:17px; ">등록번호 :</caption>
  147. <input id="ipt_pid" ref="/root/send/pid" class="input_s_essential" style="left:100px; top:8px; width:90px; height:19px; ">
  148. <script type="javascript" ev:event="onkeypress">
  149. <![CDATA[
  150. if(event.keyCode == "13") {
  151. //model.setValue("/root/hidden/source/srchcond", "1");
  152. model.setValue("/root/send/pid", ipt_pid.currentText);
  153. inputEnterKey("btn_search", "DOMActivate");
  154. }
  155. //inputEnterKey("btn_search", "DOMActivate");
  156. ]]>
  157. </script>
  158. </input>
  159. <button id="button1" accesskey="f2" class="icon_search" style="left:195px; top:9px; width:16px; height:16px; ">
  160. <caption/>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
  164. if(model.getValue("/root/main/popupendflag") == 'ok'){
  165. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  166. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  167. }
  168. model.refresh();
  169. ]]>
  170. </script>
  171. </button>
  172. <caption id="caption2" class="search_name" style="left:235px; top:8px; width:86px; height:17px; ">환자이름 :</caption>
  173. <output id="input1" ref="/root/send/hngnm" class="output_search" appearance="output" style="left:326px; top:8px; width:100px; height:19px; ">
  174. <script type="javascript" ev:event="onkeypress">
  175. <![CDATA[
  176. if(event.keyCode == "13") {
  177. model.resetInstanceNode("/root/hidden/source");
  178. model.setValue("/root/hidden/source/srchcond", "2");
  179. model.setValue("/root/hidden/source/hngnm", input1.currentText);
  180. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
  181. if(model.getValue("/root/main/popupendflag") == 'ok'){
  182. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  183. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  184. }
  185. model.refresh();
  186. }
  187. //inputEnterKey("btn_search", "DOMActivate");
  188. ]]>
  189. </script>
  190. </output>
  191. <caption id="caption4" class="search_name" style="left:450px; top:8px; width:86px; height:17px; ">조회기간 :</caption>
  192. <input id="input2" ref="/root/send/fromdd" class="input_search" inputtype="date" appearance="input" style="left:541px; top:8px; width:85px; height:19px; ">
  193. <script type="javascript" ev:event="onkeypress">
  194. <![CDATA[
  195. if(event.keyCode == "13") {
  196. model.resetInstanceNode("/root/hidden/source");
  197. model.setValue("/root/hidden/source/srchcond", "2");
  198. model.setValue("/root/hidden/source/hngnm", input1.currentText);
  199. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
  200. if(model.getValue("/root/main/popupendflag") == 'ok'){
  201. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  202. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  203. }
  204. model.refresh();
  205. }
  206. //inputEnterKey("btn_search", "DOMActivate");
  207. ]]>
  208. </script>
  209. </input>
  210. <input id="input3" ref="/root/send/todd" class="input_search" inputtype="date" appearance="input" style="left:646px; top:8px; width:85px; height:19px; ">
  211. <script type="javascript" ev:event="onkeypress">
  212. <![CDATA[
  213. if(event.keyCode == "13") {
  214. model.resetInstanceNode("/root/hidden/source");
  215. model.setValue("/root/hidden/source/srchcond", "2");
  216. model.setValue("/root/hidden/source/hngnm", input1.currentText);
  217. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
  218. if(model.getValue("/root/main/popupendflag") == 'ok'){
  219. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  220. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  221. }
  222. model.refresh();
  223. }
  224. //inputEnterKey("btn_search", "DOMActivate");
  225. ]]>
  226. </script>
  227. </input>
  228. <caption id="caption5" style="left:625px; top:9px; width:20px; height:20px; font-weight:bold; text-align:center; ">~</caption>
  229. </group>
  230. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:118px; height:14px; ">중복과 접수 내역</caption>
  231. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:855px; y2:60px; "/>
  232. <datagrid id="grd_ordreqfrm" nodeset="/root/main/otpt/otpthist" caption="^진료일자^진료과^진료의^보험유형^보조유형^진찰료산정여부^예약구분^기타구분" colsep="^" colwidth="25, 85, 120, 80, 80, 70, 98, 78, 100" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:65px; width:855px; height:480px; ">
  233. <col checkvalue="Y,N" ref="otpt_check" type="checkbox"/>
  234. <col ref="otpt_orddd" format="yyyy-mm-dd"/>
  235. <col ref="otpt_orddeptnm"/>
  236. <col ref="otpt_orddrnm"/>
  237. <col disabled="true" ref="otpt_insukind" type="combo" format="yyyy-mm-dd">
  238. <choices>
  239. <itemset nodeset="/root/init/insukind">
  240. <label ref="nm"/>
  241. <value ref="cd"/>
  242. </itemset>
  243. </choices>
  244. </col>
  245. <col disabled="true" ref="otpt_suppkind" type="combo" visibility="hidden">
  246. <choices>
  247. <itemset nodeset="/root/init/suppkind">
  248. <label ref="nm"/>
  249. <value ref="cd"/>
  250. </itemset>
  251. </choices>
  252. </col>
  253. <col ref="otpt_medamtestmyn" type="combo">
  254. <choices>
  255. <item>
  256. <label>산정</label>
  257. <value>Y</value>
  258. </item>
  259. <item>
  260. <label>미산정</label>
  261. <value>N</value>
  262. </item>
  263. </choices>
  264. </col>
  265. <col disabled="true" ref="otpt_rsrvflag" type="combo">
  266. <choices>
  267. <itemset nodeset="/root/init/P0341list/P0341">
  268. <label ref="cdnm"/>
  269. <value ref="cdid"/>
  270. </itemset>
  271. </choices>
  272. </col>
  273. <col disabled="true" ref="otpt_etcordflag" type="combo">
  274. <choices>
  275. <itemset nodeset="/root/init/P0022list/P0022">
  276. <label ref="cdnm"/>
  277. <value ref="cdid"/>
  278. </itemset>
  279. </choices>
  280. </col>
  281. </datagrid>
  282. <button id="button3" class="btn5_letter6" style="left:769px; top:39px; width:86px; height:19px; ">
  283. <caption>진찰료미산정</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. if(messageBox("선택하신 내역을 진찰료미산정 처리하시겠습니까?", "Q999") != 6) return;
  287. model.removeNodeset("/root/main/sendnode/otpthist");
  288. model.makeNode("/root/main/sendnode/otpthist");
  289. var cnt = getNodesetCount("/root/main/otpt/otpthist/otpt_pid");
  290. var sendCnt = 0;
  291. for( var i = 1; i <= cnt; i++ ){
  292. if( model.getValue("/root/main/otpt/otpthist[" + i + "]/otpt_check") == 'Y' ){
  293. sendCnt = parseInt(sendCnt) + 1;
  294. model.makeNode("/root/main/sendnode/otpthist["+ sendCnt +"]");
  295. copyNodeType("/root/main/sendnode/otpthist["+ sendCnt +"]", "/root/main/otpt/otpthist[" + i + "]", "after");
  296. }
  297. }
  298. if( submit("TXPMO01602") ){
  299. btn_search.dispatch("DOMActivate");
  300. }
  301. ]]>
  302. </script>
  303. </button>
  304. </group>
  305. <group id="group1" scroll="auto" style="left:0px; top:545px; width:855px; height:27px; ">
  306. <button id="btn_confirm" class="btn4_letter2" style="left:798px; top:5px; width:56px; height:22px; ">
  307. <caption>닫기</caption>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. window.close();
  311. ]]>
  312. </script>
  313. </button>
  314. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:855px; y2:0px; "/>
  315. </group>
  316. </xhtml:body>
  317. </xhtml:html>