SMMNO02800_외래 선처치 미수금 발생내역.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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. <srchfromdd/>
  12. <srchtodd/>
  13. <orddeptcd/>
  14. <orddrid/>
  15. <precureprcpflag/>
  16. <prcpcd/>
  17. <prcpclscd/>
  18. <prcpinptflag/>
  19. <pid/>
  20. <hngnm/>
  21. <seoulyn/>
  22. </cond>
  23. <precureprcpuncopatlist>
  24. <precureprcpuncopatinfo>
  25. <pid/>
  26. <hngnm/>
  27. <prcpdd/>
  28. <prcpcd/>
  29. <prcpnm/>
  30. <prcpclsnm/>
  31. <orddeptnm/>
  32. <orddrnm/>
  33. <rgstdeptnm/>
  34. <rgstrnm/>
  35. <prcpinptflag/>
  36. <precureprcpflag/>
  37. <ownbamt/>
  38. <orddt/>
  39. </precureprcpuncopatinfo>
  40. </precureprcpuncopatlist>
  41. <patinfo>
  42. <patinfolist/>
  43. </patinfo>
  44. </main>
  45. <send/>
  46. <init>
  47. <orddept>
  48. <orddept>
  49. <deptcd/>
  50. <deptnm/>
  51. </orddept>
  52. </orddept>
  53. <orddr>
  54. <orddr>
  55. <usernm/>
  56. <userid/>
  57. </orddr>
  58. </orddr>
  59. <M0005list/>
  60. <M0034list/>
  61. </init>
  62. <code/>
  63. </root>
  64. </instance>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. fInit(); // 화면초기화
  68. ]]>
  69. </script>
  70. <script type="javascript">
  71. <![CDATA[
  72. // 화면초기화
  73. var seoulinstcd = ""; //20090811-kys
  74. function fInit(){
  75. var currentdate= getCurrentDate();
  76. var dutplcecd = getUserInfo("dutplcecd");
  77. var instcd = getUserInfo("dutplceinstcd");
  78. zsdfGetCareOutOrderDepartmentList(instcd, "/root/init/orddept", currentdate); // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
  79. addComboItem("cmb_orddept", "전체", "0000000000", "above"); // 진료부서 콤보 전체추가_ tfHelper.js
  80. zbcfGetCodeList( new Array("M0005", "M0034"), new Array("/root/init/M0005list", "/root/init/M0034list")); // 공통코드 스크립트 호출
  81. model.makeValue("/root/main/cond/srchfromdd", ((currentdate.toDate("YYYYMMDD")).getAddDate(-1,"M")).getDateFormat("YYYYMMDD"));
  82. model.makeValue("/root/main/cond/srchtodd" , currentdate);
  83. model.makeValue("/root/main/cond/orddeptcd" , dutplcecd);
  84. fGetOrdDrList(); // 진료의리스트 조회
  85. addComboItem("cmb_prcpclscd", "전체", "", "above"); // 처방분류 콤보 전체추가_ tfHelper.js
  86. addComboItem("cmb_prcpinptflag", "전체", "", "above"); // 처방입력구분 콤보 전체추가_ tfHelper.js
  87. ipt_srchfromdd.refresh();
  88. ipt_srchtodd.refresh();
  89. cmb_orddept.refresh();
  90. cmb_prcpclscd.refresh();
  91. cmb_prcpinptflag.refresh();
  92. cmb_prcpclscd.refresh();
  93. cmb_prcpinptflag.refresh();
  94. if(cmb_orddept.label == ""){
  95. model.makeValue("/root/main/cond/orddeptcd" , "0000000000"); // 전체진료과
  96. cmb_orddept.refresh();
  97. }
  98. // 간호 환경설정테이블 조회
  99. var pCode = "'077'"; // 조회할 CdGrupID 코드정보
  100. var pDate = getCurrentDate(); //조회기준일자
  101. fGetNursHardCdInfo(pCode, pDate);
  102. for(var i=1; i<=getNodesetCount("/root/code/codeinfo/codelist"); i++){
  103. switch (model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid")){
  104. case "077": // 의정부성모병원기관코드_20090606
  105. switch(model.getValue("/root/code/codeinfo/codelist["+i+"]/supcdid")){
  106. case "01": // (01:서울성모,02:의정부성모,03:부천성가, 04:성빈센트)-20090811
  107. seoulinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  108. break;
  109. }
  110. }
  111. }
  112. }
  113. // 진료의리스트 조회
  114. function fGetOrdDrList(){
  115. model.removeNodeset("/root/send");
  116. model.makeNode("/root/send/reqdata");
  117. model.makeValue("/root/send/reqdata/orddeptcd" , model.getValue("/root/main/cond/orddeptcd"));
  118. model.makeValue("/root/send/reqdata/prcpspecflag", "Y");
  119. var sordclsdeptflag = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/ordclsdeptflag"); // 센터/대표/분과/서브 구분
  120. var ssupdeptcd = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/supdeptcd"); // 상위부서코드
  121. var sorddeptkind = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/orddeptkind"); // 센터/대표 구분
  122. var sorddeptflag = "";
  123. if (sorddeptkind == "C") { // 센터이면
  124. sorddeptflag = "C";
  125. } else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
  126. sorddeptflag = "A";
  127. } else { // 그외에 기타과
  128. sorddeptflag = "etc";
  129. }
  130. model.makeValue("/root/main/cond/ordclsdeptflag",sorddeptflag);
  131. model.makeValue("/root/main/cond/supdeptcd",ssupdeptcd);
  132. model.makeValue("/root/send/reqdata/orddd" , getCurrentDate());
  133. model.makeValue("/root/send/reqdata/ordclsdeptflag", model.getValue("/root/main/cond/ordclsdeptflag"));
  134. model.makeValue("/root/send/reqdata/supdeptcd" , model.getValue("/root/main/cond/supdeptcd"));
  135. submit("TRMNO00104");
  136. addComboItem("cmb_orddrid", "전체", "00000000", "above"); // 진료의 콤보 전체추가_ tfHelper.js
  137. if(getNodesetCount("/root/init/orddr/orddr") > 0){
  138. model.resetInstanceNode("/root/main/cond/orddr");
  139. } else {
  140. model.makenode("/root/init/orddr");
  141. model.makenode("/root/init/orddr/orddr");
  142. model.makenode("/root/init/orddr/orddr/userid");
  143. model.makenode("/root/init/orddr/orddr/usernm");
  144. cmb_orddrid.select(0);
  145. }
  146. model.makeValue("/root/main/cond/orddrid", "00000000");
  147. cmb_orddrid.refresh();
  148. }
  149. // 외래 선처치 미수금 발생내역 조회
  150. function fGetPreCurePrcpUncoPatList(){
  151. model.removeNodeset("/root/main/precureprcpuncopatlist");
  152. model.removeNodeset("/root/send");
  153. model.makeNode("/root/send/reqdata");
  154. model.makeValue("/root/send/reqdata/srchfromdd" , model.getValue("/root/main/cond/srchfromdd"));
  155. model.makeValue("/root/send/reqdata/srchtodd" , model.getValue("/root/main/cond/srchtodd"));
  156. model.makeValue("/root/send/reqdata/orddeptcd" , model.getValue("/root/main/cond/orddeptcd"));
  157. model.makeValue("/root/send/reqdata/orddrid" , model.getValue("/root/main/cond/orddrid"));
  158. model.makeValue("/root/send/reqdata/precureprcpflag", model.getValue("/root/main/cond/precureprcpflag"));
  159. model.makeValue("/root/send/reqdata/prcpcd" , model.getValue("/root/main/cond/prcpcd"));
  160. model.makeValue("/root/send/reqdata/prcpclscd" , model.getValue("/root/main/cond/prcpclscd"));
  161. model.makeValue("/root/send/reqdata/prcpinptflag" , model.getValue("/root/main/cond/prcpinptflag"));
  162. model.makeValue("/root/send/reqdata/pid" , model.getValue("/root/main/cond/pid"));
  163. //20090811-kys(서울성모인경우 수납전에도 진료예약일시가 조회되어야 한다)
  164. if(getUserInfo("dutplceinstcd") == seoulinstcd){
  165. model.makeValue("/root/send/reqdata/seoulyn", "Y");
  166. }
  167. if(submit("TRMNO02801")){
  168. for(var i=1; i<=getNodesetCount("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo"); i++){
  169. var a_pid = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + i + "]/pid");
  170. var a_prcpdd = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + i + "]/prcpdd");
  171. var a_ownbamt = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + i + "]/ownbamt");
  172. var a_orddt = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + i + "]/orddt");
  173. for(var k=1; k<=getNodesetCount("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo"); k++){
  174. var b_pid = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + k + "]/pid");
  175. var b_prcpdd = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + k + "]/prcpdd");
  176. var b_ownbamt = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + k + "]/ownbamt");
  177. var b_orddt = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + k + "]/orddt");
  178. if( i < k ){
  179. if(a_pid == b_pid && a_prcpdd == b_prcpdd && a_ownbamt == b_ownbamt){
  180. grd_prcpendlist.mergeByFree(i, grd_prcpendlist.colRef("ownbamt"), k, grd_prcpendlist.colRef("ownbamt"));
  181. }
  182. if(a_pid == b_pid && a_prcpdd == b_prcpdd && a_orddt == b_orddt){
  183. grd_prcpendlist.mergeByFree(i, grd_prcpendlist.colRef("orddt"), k, grd_prcpendlist.colRef("orddt"));
  184. }
  185. }
  186. }
  187. }
  188. grd_prcpendlist.refresh();
  189. }
  190. }
  191. ]]>
  192. </script>
  193. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  194. <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  195. <submission id="TRMNO00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/orddr"/>
  196. <submission id="TRMNO02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="main/precureprcpuncopatinfo"/>
  197. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
  198. </model>
  199. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  200. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  201. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  202. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  203. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  204. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  205. </xhtml:head>
  206. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  207. <group id="group3" style="left:0px; top:18px; width:1194px; height:744px; ">
  208. <group id="grp_sea" style="left:0px; top:1px; width:1194px; height:60px; vertical-align:top; ">
  209. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1192px; height:60px; "/>
  210. <caption id="cap_ward" class="search_name" style="left:330px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  211. <button id="button1" class="btn1_letter4" navindex="5" style="left:1095px; top:17px; width:80px; height:22px; ">
  212. <caption>엑셀저장</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. var fileName = window.fileDialog("save", ",", false, "외래 선처치 미수금 발생내역", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  216. var sheetName = model.getValue("/root/main/cond/srchfromdd")+"~"+model.getValue("/root/main/cond/srchtodd")+"_";
  217. if (fileName != ""){
  218. grd_prcpendlist.saveExcel(fileName, sheetName, true, true, "", "", false);
  219. }
  220. ]]>
  221. </script>
  222. </button>
  223. <caption id="caption8" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">조회일자 :</caption>
  224. <input id="ipt_srchfromdd" ref="/root/main/cond/srchfromdd" class="input_s_essential" navindex="3" inputtype="date" style="left:103px; top:8px; width:90px; height:19px; "/>
  225. <line id="line13" class="line_4" style="x1:1024px; y1:11px; x2:1024px; y2:46px; "/>
  226. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_search" navindex="2" appearance="minimal" style="left:404px; top:8px; width:175px; height:19px; ">
  227. <choices>
  228. <itemset nodeset="/root/init/orddept/dept">
  229. <label ref="depthngnm"/>
  230. <value ref="deptcd"/>
  231. </itemset>
  232. </choices>
  233. <script type="javascript" ev:event="xforms-value-changed">
  234. <![CDATA[
  235. fGetOrdDrList(); // 진료의리스트 조회
  236. ]]>
  237. </script>
  238. </select1>
  239. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_search" appearance="minimal" style="left:682px; top:8px; width:90px; height:19px; ">
  240. <choices>
  241. <itemset nodeset="/root/init/orddr/orddr">
  242. <label ref="usernm"/>
  243. <value ref="userid"/>
  244. </itemset>
  245. </choices>
  246. </select1>
  247. <caption id="caption3" class="search_name" style="left:608px; top:9px; width:73px; height:17px; ">진료의 :</caption>
  248. <input id="ipt_srchtodd" ref="/root/main/cond/srchtodd" class="input_s_essential" navindex="3" inputtype="date" style="left:208px; top:8px; width:90px; height:19px; "/>
  249. <caption id="caption1" style="left:194px; top:10px; width:15px; height:20px; font-weight:bold; ">~</caption>
  250. <caption id="caption2" class="search_name" style="left:797px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
  251. <select id="checkbox2" ref="/root/main/cond/precureprcpflag" class="checkbox_search" overflow="visible" appearance="full" style="left:884px; top:9px; width:126px; height:15px; border-style:none; ">
  252. <choices>
  253. <item>
  254. <label>선처치 미등록 포함</label>
  255. <value>Y</value>
  256. </item>
  257. </choices>
  258. </select>
  259. <caption id="caption4" class="search_name" style="left:16px; top:34px; width:86px; height:17px; ">처방코드 :</caption>
  260. <input id="ipt_pid" ref="/root/main/cond/prcpcd" class="input_search" navindex="5" style="left:103px; top:33px; width:90px; height:19px; ">
  261. <script type="javascript" ev:event="onkeyup">
  262. <![CDATA[
  263. inputEnterKey("btn_srchprecureprcpuncopatlist", "DOMActivate");
  264. ]]>
  265. </script>
  266. </input>
  267. <select1 id="cmb_prcpclscd" ref="/root/main/cond/prcpclscd" class="combo_search" appearance="minimal" style="left:348px; top:33px; width:90px; height:19px; ">
  268. <choices>
  269. <itemset nodeset="/root/init/M0005list/M0005">
  270. <label ref="cdnm"/>
  271. <value ref="cdid"/>
  272. </itemset>
  273. </choices>
  274. </select1>
  275. <caption id="caption5" class="search_name" style="left:217px; top:34px; width:130px; height:17px; ">처방분류별 조회 :</caption>
  276. <select1 id="cmb_prcpinptflag" ref="/root/main/cond/prcpinptflag" class="combo_search" appearance="minimal" style="left:587px; top:33px; width:125px; height:19px; ">
  277. <choices>
  278. <itemset nodeset="/root/init/M0034list/M0034">
  279. <label ref="cdnm"/>
  280. <value ref="cdid"/>
  281. </itemset>
  282. </choices>
  283. </select1>
  284. <caption id="caption7" class="search_name" style="left:472px; top:34px; width:112px; height:17px; ">처방입력구분 :</caption>
  285. <button id="btn_srchprecureprcpuncopatlist" class="btn1_letter2" navindex="5" style="left:1036px; top:17px; width:56px; height:22px; ">
  286. <caption>조회</caption>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. fGetPreCurePrcpUncoPatList(); // 외래 선처치 미수금 발생내역 조회
  290. ]]>
  291. </script>
  292. </button>
  293. <input id="input1" ref="/root/main/cond/pid" class="input_search" navindex="5" style="left:830px; top:33px; width:80px; height:19px; ">
  294. <script type="javascript" ev:event="onkeyup">
  295. <![CDATA[
  296. inputEnterKey("btn_pid", "DOMActivate");
  297. ]]>
  298. </script>
  299. </input>
  300. <button id="btn_pid" class="icon_search" style="left:912px; top:34px; width:16px; height:16px; ">
  301. <caption/>
  302. <script type="javascript" ev:event="DOMActivate">
  303. <![CDATA[
  304. // 외래간호환자조회로 변경_20090218(ByJA)
  305. modal("../../../emr/outcareweb/xrw/SPMNO02400", "1","150", "150", "SPMNO02400", "/root/source", "/root/main/cond");
  306. //환자번호 copy
  307. model.makeValue("/root/main/cond/pid", "");
  308. model.makeValue("/root/main/cond/hngnm", "");
  309. var popupendflag = model.getValue("/root/main/popupendflag");
  310. if (popupendflag == "ok"){
  311. model.makeValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  312. model.makeValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  313. ipt_pid.refresh();
  314. opt_hngnm.refresh();
  315. }
  316. fGetPreCurePrcpUncoPatList(); // 외래 선처치 미수금 발생내역 조회
  317. ]]>
  318. </script>
  319. <script type="javascript" ev:event="onkeyup">
  320. <![CDATA[
  321. inputEnterKey("btn_srchprecureprcpuncopatlist", "DOMActivate");
  322. ]]>
  323. </script>
  324. </button>
  325. <caption id="caption9" class="search_name" style="left:743px; top:34px; width:86px; height:17px; ">등록번호 :</caption>
  326. <output id="opt_hngnm" ref="/root/main/cond/hngnm" class="output_fix" style="left:930px; top:33px; width:85px; height:19px; "/>
  327. </group>
  328. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:1193px; y2:70px; "/>
  329. <datagrid id="grd_prcpendlist" nodeset="/root/main/precureprcpuncopatlist/precureprcpuncopatinfo" class="datagrid2" allowselection="false" caption="등록번호^환자명^처방일자^처방코드^처방명^처방분류^진료과^진료의^처방과^처방자^처방입력구분^선처치&#xA;등록여부^미수액&#xA;(본인부담금)^진료예약일시" colsep="^" colwidth="64, 65, 70, 78, 212, 65, 81, 55, 80, 55, 79, 54, 87, 100" ellipsis="true" explorerbar="sort" mergecells="byrestriccol" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:75px; width:1193px; height:665px; ">
  330. <col ref="pid"/>
  331. <col ref="hngnm" style="text-align:left; "/>
  332. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  333. <col ref="prcpcd" style="text-align:left; "/>
  334. <col ref="prcpnm" style="text-align:left; "/>
  335. <col ref="prcpclsnm" style="text-align:left; "/>
  336. <col ref="orddeptnm" style="text-align:left; "/>
  337. <col ref="orddrnm" style="text-align:left; "/>
  338. <col ref="rgstdeptnm" style="text-align:left; "/>
  339. <col ref="rgstrnm" style="text-align:left; "/>
  340. <col ref="prcpinptflag" style="text-align:left; "/>
  341. <col ref="precureprcpflag" style="text-align:left; "/>
  342. <col ref="ownbamt" format="000,000,000,000,000,000" style="text-align:right; "/>
  343. <col ref="orddt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  344. <script type="javascript" ev:event="onaftersort">
  345. <![CDATA[
  346. grd_prcpendlist.gridToInstance();
  347. ]]>
  348. </script>
  349. </datagrid>
  350. </group>
  351. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">외래 선처치 미수금 발생내역</caption>
  352. </xhtml:body>
  353. </xhtml:html>