SMPMC06505_선택진료취소대장.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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. <h_prcp>
  11. <prcp>
  12. <prcp_cnt/>
  13. <prcp_pid/>
  14. <prcp_hngnm/>
  15. <prcp_instcd/>
  16. <prcp_orddd/>
  17. <prcp_cretno/>
  18. <prcp_ordtype/>
  19. <prcp_orddeptcd/>
  20. <prcp_orddeptcdnm/>
  21. <prcp_orddrid/>
  22. <prcp_calcscorcd/>
  23. <prcp_calcscorcdnm/>
  24. <prcp_prcpdd/>
  25. <prcp_prcpno/>
  26. <prcp_execprcpuniqno/>
  27. <prcp_seqno/>
  28. <prcp_specdrid/>
  29. <prcp_specdridnm/>
  30. <prcp_readidnm/>
  31. <prcp_execdd/>
  32. <prcp_choiordflag/>
  33. <prcp_cnclid/>
  34. <prcp_cnclidnm/>
  35. <prcp_cncldd/>
  36. <prcp_cncltm/>
  37. <prcp_cnclmemo/>
  38. <prcp_specamt/>
  39. </prcp>
  40. </h_prcp>
  41. </main>
  42. <send>
  43. <data1>
  44. <fromdd/>
  45. <todd/>
  46. <cnclid/>
  47. <orddeptcd/>
  48. <cnclmemo/>
  49. <cnclmemo_etc/>
  50. <pid/>
  51. <icdr_fromdd/>
  52. <icdr_todd/>
  53. </data1>
  54. <data2>
  55. <prcp/>
  56. </data2>
  57. <data3/>
  58. <data4/>
  59. </send>
  60. <init>
  61. <orddeptcd>
  62. <cd>-</cd>
  63. <nm>-</nm>
  64. </orddeptcd>
  65. <orddrid>
  66. <cd>-</cd>
  67. <nm>-</nm>
  68. <dp>-</dp>
  69. <sp>-</sp>
  70. </orddrid>
  71. </init>
  72. <hidden>
  73. <newElement/>
  74. </hidden>
  75. </root>
  76. </instance>
  77. <script type="javascript" ev:event="xforms-ready">
  78. <![CDATA[
  79. if ( copyFromCache("TRPMC06550_depttree","/root/init")){
  80. //
  81. }else{
  82. if (submit("TRPMC06550")) {
  83. storeIntoCache("TRPMC06550_depttree","/root/init","540");
  84. }
  85. }
  86. addComboItem("cmb_orddeptcd" , "전체","%","above");
  87. fInitialize();
  88. if (checkOpener())
  89. {
  90. var caller = getGlobalVariable("g_caller_SMPMC06505","p");
  91. //입원 진료비세부내역서에서 선택진료 감면 버튼 누를시
  92. if(caller == "SMPAI00200_fCall_SMPMC06505"){
  93. model.setValue("/root/send/data1/pid" , model.getValue("/root/send/data3/pid"));
  94. submit("TRPMC06522");
  95. }
  96. //입원 진료비세부내역서에서 처방내역에서 마우스 우측버튼으로 변경할시
  97. if(caller == "SMPAI00200_fSetChngSpec_call_popup"){
  98. copyNodesetType("/root/main/h_prcp", "/root/send/data2", "replace", model, parent.model);
  99. model.setValue("/root/send/data1/pid",model.getValue("/root/main/h_prcp/prcp/prcp_pid"));
  100. grd_prcp.rebuild();
  101. }
  102. //입원 진료비세부내역서에서 입원료,병실료자동발생 비적용할시
  103. if(caller == "SMPAI00200_fCall_SMPMC06505_icdr"){
  104. model.setValue("/root/send/data1/pid" , model.getValue("/root/send/data4/pid"));
  105. submit("TRPMC06523");
  106. }
  107. //외래수납에서 열시
  108. if(caller == "SMPAO00100"){
  109. copyNodesetType("/root/main/h_prcp", "/root/send/s_hold", "replace", model, parent.model);
  110. model.setValue("/root/send/data1/pid",model.getValue("/root/main/h_prcp/prcp/prcp_pid"));
  111. grd_prcp.rebuild();
  112. }
  113. }
  114. ]]>
  115. </script>
  116. <submission id="TRPMC06550" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" resultref="/root/init"/>
  117. <submission id="TRPMC06521" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/h_prcp"/>
  118. <submission id="TRPMC06522" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/h_prcp"/>
  119. <submission id="TRPMC06523" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data4" resultref="/root/main/h_prcp"/>
  120. <submission id="TXPMC06521" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/h_prcp"/>
  121. <submission id="TXPMC06522" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/h_prcp"/>
  122. <submission id="TXPMC06523" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/h_prcp"/>
  123. <submission id="TXPMC06524" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/h_prcp"/>
  124. </model>
  125. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  126. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  127. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  132. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  133. <script type="javascript" src="../../../pam/opatmngtweb/js/PMO001.js"/>
  134. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  135. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  136. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  137. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  138. <script type="javascript">
  139. <![CDATA[
  140. function fInitialize(){
  141. model.setValue("/root/send/data1/fromdd" , getCurrentDate());
  142. model.setValue("/root/send/data1/todd" , getCurrentDate());
  143. model.setValue("/root/send/data1/orddeptcd","%");
  144. model.refresh();
  145. }
  146. function fSearch(){
  147. submit("TRPMC06521");
  148. grd_prcp.subtotalPosition = "below";
  149. grd_prcp.subtotal("clear", 0, 0);
  150. grd_prcp.subtotal("sum", -1, 10, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7BE6B7; color:#000000; font-weight:bold; " ,2, "합 계" ,false);
  151. model.refresh();
  152. }
  153. ]]>
  154. </script>
  155. </xhtml:head>
  156. <xhtml:body pagewidth="1015" pageheight="715" style="margin-left:6; margin-top:6; margin-right:6; margin-bottom:0; ">
  157. <group id="group1" style="left:0px; top:0px; width:1000; height:13px; ">
  158. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">선택진료취소대장</caption>
  159. </group>
  160. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1000px; height:670px; ">
  161. <group id="group2" style="left:0px; top:10px; width:1000; height:35px; vertical-align:top; ">
  162. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1000; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  163. <button id="button1" class="btn1_letter2" style="left:938px; top:7px; width:56px; height:22px; ">
  164. <caption>조회</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. fSearch();
  168. ]]>
  169. </script>
  170. </button>
  171. <line id="line13" class="line_4" style="x1:923px; y1:7px; x2:923px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  172. <caption id="caption21" class="search_name" style="left:683px; top:8px; width:75px; height:17px; ">진료과 :</caption>
  173. <caption id="caption17" class="search_name" style="left:307px; top:8px; width:86px; height:17px; ">취소자ID :</caption>
  174. <input id="input5" ref="/root/send/data1/cnclid" style="left:398px; top:8px; width:60px; height:19px; text-align:left; "/>
  175. <caption id="caption10" class="search_name" style="left:10px; top:8; width:90px; height:17px; ">취소일자 :</caption>
  176. <caption id="caption11" style="left:187px; top:5px; width:15px; height:25px; text-align:center; ">~</caption>
  177. <select1 id="cmb_orddeptcd" ref="/root/send/data1/orddeptcd" appearance="minimal" style="left:760px; top:8px; width:130px; height:19px; text-align:left; ">
  178. <choices>
  179. <itemset nodeset="/root/init/orddeptcd">
  180. <label ref="nm"/>
  181. <value ref="cd"/>
  182. </itemset>
  183. </choices>
  184. </select1>
  185. <input id="ipt_fromdd" ref="/root/send/data1/fromdd" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:100px; top:8px; width:85px; height:19px; text-align:center; "/>
  186. <input id="ipt_todd" ref="/root/send/data1/todd" inputtype="date" format="yyyy-mm-dd" style="left:205px; top:8px; width:85px; height:19px; text-align:center; "/>
  187. <caption id="caption2" class="search_name" style="left:475px; top:10px; width:90px; height:17px; ">환자번호 :</caption>
  188. <input id="input1" ref="/root/send/data1/pid" style="left:566px; top:8px; width:99px; height:19px; "/>
  189. </group>
  190. <line id="line8" class="line_1" style="x1:0px; y1:177px; x2:1000px; y2:177px; "/>
  191. <button id="button52" class="btn2_letter2" style="left:912px; top:156px; width:42px; height:19px; ">
  192. <caption>수정</caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. var updateData = getGridUpdateData(grd_prcp);
  196. model.setValue("/root/send/data2/prcp", updateData);
  197. model.resetInstanceNode("/root/main/h_prcp");
  198. submit("TXPMC06521");
  199. model.refresh();
  200. ]]>
  201. </script>
  202. </button>
  203. <button id="button53" accesskey="f1" class="btn5_letter2" style="left:956px; top:156px; width:42px; height:19px; ">
  204. <caption>삭제</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. var selectedRows = grd_prcp.selectedRows;
  208. var arr=new Array(selectedRows);
  209. for(var i=0; i<arr.length; i++) {
  210. arr[i] = grd_prcp.selectedRow(i);
  211. grd_prcp.addStatus(arr[i], "delete");
  212. }
  213. var updateData = getGridUpdateData(grd_prcp);
  214. model.setValue("/root/send/data2/prcp", updateData);
  215. model.resetInstanceNode("/root/main/h_prcp");
  216. submit("TXPMC06523");
  217. model.refresh();
  218. ]]>
  219. </script>
  220. </button>
  221. <datagrid id="grd_prcp" nodeset="/root/main/h_prcp/prcp" caption="NO^등록번호^이름^진료과^처방코드^처방명칭^선택교수^판독의사^시행일자^선택비^취소자^취소일자^취소시간^취소사유^prcpdd^prcpno^seqno" colsep="^" colwidth="30, 65, 60, 120, 86, 179, 60, 60, 70, 75, 61, 70, 60, 230, 50, 50, 50" dataheight="25" defaultrows="2" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:182px; width:1000px; height:484px; ">
  222. <col ref="prcp_cnt"/>
  223. <col ref="prcp_pid"/>
  224. <col ref="prcp_hngnm"/>
  225. <col ref="prcp_orddeptcdnm"/>
  226. <col ref="prcp_calcscorcd"/>
  227. <col ref="prcp_calcscorcdnm"/>
  228. <col ref="prcp_specdridnm"/>
  229. <col ref="prcp_readidnm"/>
  230. <col ref="prcp_execdd" format="yyyy-mm-dd"/>
  231. <col ref="prcp_specamt" format="(-)#,###" style="text-align:right; "/>
  232. <col ref="prcp_cnclidnm"/>
  233. <col ref="prcp_cncldd" format="yyyy-mm-dd"/>
  234. <col ref="prcp_cncltm" format="hh:nn:ss"/>
  235. <col ref="prcp_cnclmemo" type="input"/>
  236. <col ref="prcp_prcpdd" visibility="hidden"/>
  237. <col ref="prcp_prcpno" visibility="hidden"/>
  238. <col ref="prcp_seqno" visibility="hidden"/>
  239. </datagrid>
  240. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:60px; width:1000px; height:90px; "/>
  241. <select1 id="radio1" ref="/root/send/data1/cnclmemo" appearance="full" cellspacing="30" cols="3" vcellspacing="10" overflow="visible" style="left:103px; top:64px; width:370px; height:81px; border-style:none; ">
  242. <choices>
  243. <item>
  244. <label>order 변경</label>
  245. <value>order 변경</value>
  246. </item>
  247. <item>
  248. <label>처방입력 오류</label>
  249. <value>처방입력 오류</value>
  250. </item>
  251. <item>
  252. <label>선택해지신청</label>
  253. <value>선택해지신청</value>
  254. </item>
  255. <item>
  256. <label>교수불참</label>
  257. <value>교수불참</value>
  258. </item>
  259. <item>
  260. <label>선택진료의 변경</label>
  261. <value>선택진료의 변경</value>
  262. </item>
  263. <item>
  264. <label>보호자지정거부</label>
  265. <value>보호자지정거부</value>
  266. </item>
  267. <item>
  268. <label>감면사유서</label>
  269. <value>감면사유서</value>
  270. </item>
  271. <item>
  272. <label>기타</label>
  273. <value>기타</value>
  274. </item>
  275. <item>
  276. <label>응급수납취소</label>
  277. <value>응급수납취소</value>
  278. </item>
  279. </choices>
  280. </select1>
  281. <textarea id="textarea1" ref="/root/send/data1/cnclmemo_etc" style="left:475px; top:65px; width:430px; height:80px; "/>
  282. <caption id="caption1" class="search_name" style="left:10px; top:69px; width:90px; height:17px; ">취소사유 :</caption>
  283. <button id="button3" class="btn1_letter4" style="left:915px; top:66px; width:80px; height:22px; ">
  284. <caption>사유적용</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. grd_prcp.clearStatus();
  288. for(var a=1; a< grd_prcp.rows; a++) {
  289. grd_prcp.addStatus(a, "update");
  290. model.makeValue("/root/main/h_prcp/prcp[" + a + "]/prcp_cnclmemo" , "");
  291. if(model.getValue("/root/send/data1/cnclmemo") != "기타") {
  292. model.setValue("/root/main/h_prcp/prcp[" + a + "]/prcp_cnclmemo" , model.getvalue("/root/send/data1/cnclmemo"));
  293. }
  294. if(model.getValue("/root/send/data1/cnclmemo") == "기타") {
  295. model.setValue("/root/main/h_prcp/prcp[" + a + "]/prcp_cnclmemo" , model.getvalue("/root/send/data1/cnclmemo_etc"));
  296. }
  297. }
  298. grd_prcp.refresh();
  299. ]]>
  300. </script>
  301. </button>
  302. <button id="button4" class="btn2_letter4" style="left:846px; top:156px; width:64px; height:19px; ">
  303. <caption>신규저장</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. var caller = getGlobalVariable("g_caller_SMPMC06505","p");
  307. grd_prcp.clearStatus();
  308. for(var a=1; a< grd_prcp.rows; a++) {
  309. grd_prcp.addStatus(a, "insert");
  310. }
  311. var updateData = getGridUpdateData(grd_prcp);
  312. model.setValue("/root/send/data2/prcp", updateData);
  313. model.resetInstanceNode("/root/main/h_prcp");
  314. if(caller == "SMPAI00200_fCall_SMPMC06505_icdr"){
  315. submit("TXPMC06524");
  316. }else{
  317. submit("TXPMC06522");
  318. }
  319. model.refresh();
  320. ]]>
  321. </script>
  322. </button>
  323. </group>
  324. <group id="group5" style="left:0px; top:687px; width:1000px; height:27px; ">
  325. <button id="button2" class="btn4_letter3" style="left:931px; top:5px; width:68px; height:22px; ">
  326. <caption>초기화</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. fInitialize1();
  330. ]]>
  331. </script>
  332. </button>
  333. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1000px; y2:0px; "/>
  334. <button id="button5" class="btn4_letter2" style="left:0; top:5px; width:56px; height:22px; ">
  335. <caption>출력</caption>
  336. <script type="javascript" ev:event="DOMActivate">
  337. <![CDATA[
  338. exeReportPreview("RPPMC06503", "XMLSTR" , "" , "" , "", "", "", "", "", "false", "", "", "");
  339. ]]>
  340. </script>
  341. </button>
  342. </group>
  343. </xhtml:body>
  344. </xhtml:html>