SMPAM00403_과제별환자내역.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>임상 연구 검사비 미수 청구 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <projinfo>
  11. <kind/>
  12. <kindnm/>
  13. <projcd/>
  14. <studycd/>
  15. <projnm/>
  16. <rshid/>
  17. <rshnm/>
  18. <unitcd/>
  19. <unitnm/>
  20. <fromdd/>
  21. <todd/>
  22. <projamt/>
  23. <remnamt/>
  24. <depoamt/>
  25. </projinfo>
  26. <reptlist>
  27. <reptinfo>
  28. <projcd/>
  29. <studycd/>
  30. <subjno/>
  31. <reptcd/>
  32. <reptnm/>
  33. <seqno/>
  34. <status/>
  35. <bsdd/>
  36. <sbmtdd/>
  37. <bsid/>
  38. <bsnm/>
  39. <ptcnt/>
  40. <clamamt/>
  41. </reptinfo>
  42. </reptlist>
  43. <ptlist>
  44. <uncoinfo/>
  45. </ptlist>
  46. </main>
  47. <send>
  48. <projcd/>
  49. <studycd/>
  50. <reptcd/>
  51. <reptseq/>
  52. <rcptflag/>
  53. <realrcptflag>N</realrcptflag>
  54. </send>
  55. <temp>
  56. <projinfo>
  57. <proj_kind/>
  58. <proj_kindnm/>
  59. <proj_projcd/>
  60. <proj_studycd/>
  61. <proj_projnm/>
  62. <proj_rshid/>
  63. <proj_rshnm/>
  64. <proj_unitcd/>
  65. <proj_unitnm/>
  66. <proj_fromdd/>
  67. <proj_todd/>
  68. <proj_projamt/>
  69. <proj_remnamt/>
  70. <proj_depoamt/>
  71. </projinfo>
  72. <reptinfo>
  73. <rept_projcd/>
  74. <rept_studycd/>
  75. <rept_subjno/>
  76. <rept_reptcd/>
  77. <rept_reptnm/>
  78. <rept_seqno/>
  79. <rept_status/>
  80. <rept_bsdd/>
  81. <rept_sbmtdd/>
  82. <rept_bsid/>
  83. <rept_bsnm/>
  84. <rept_ptcnt/>
  85. <rept_clamamt/>
  86. </reptinfo>
  87. <ptlist>
  88. <ptinfo>
  89. <pid/>
  90. <hngnm/>
  91. <rcptexecdd/>
  92. <orddd/>
  93. <ordtype/>
  94. <orddeptnm/>
  95. <orddrnm/>
  96. <insukindnm/>
  97. <suppkindnm/>
  98. <unconm/>
  99. <uncoamt/>
  100. </ptinfo>
  101. </ptlist>
  102. </temp>
  103. </root>
  104. </instance>
  105. <submission id="TRPAM00413" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  106. <submission id="TRPAM00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ptlist/uncoinfo"/>
  107. </model>
  108. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  111. <script type="javascript">
  112. <![CDATA[
  113. function fGetDF4Rpt(str) {
  114. return str.substr(0, 4) + "-" + str.substr(4, 2) + "-" + str.substr(6, 2);
  115. }
  116. ]]>
  117. </script>
  118. <script type="javascript" ev:event="xforms-ready">
  119. <![CDATA[
  120. if (checkOpener()) {
  121. var projcd = opener.javascript.getParameter("SMPAM00403_projcd");
  122. if (projcd == "") {
  123. projcd = opener.javascript.getParameter("SMPAM00403PAM_projcd");
  124. }
  125. if (projcd != "") {
  126. model.setValue("/root/send/projcd", projcd);
  127. submit("TRPAM00413");
  128. }
  129. }
  130. ]]>
  131. </script>
  132. </xhtml:head>
  133. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  134. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:130px; height:13px; font-family:돋움; vertical-align:middle; ">과제별 환자 내역</caption>
  135. <button id="btn_search" class="btn2_letter4" navindex="4" style="left:346px; top:70px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  136. <caption>새로고침</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. submit("TRPAM00413");
  140. grd_pt.refresh();
  141. grd_pt.rebuildStyle();
  142. grd_pt.cellStyle("background-image", 1, grd_pt.colRef("sbmtynimg")) = "../../../com/commonweb/images/check.gif";
  143. grd_pt.cellStyle("background-image", 1, grd_pt.colRef("applynimg")) = "../../../com/commonweb/images/check.gif";
  144. ]]>
  145. </script>
  146. </button>
  147. <datagrid id="grd_proj" nodeset="/root/main/projinfo" backcoloralternate="transparent" caption="kind^과제구분^과제코드^과제번호^과제명^rshid^연구책임자^unitcd^연구책임자소속^과제시작일^과제종료일^연구비총액^연구비잔액^연구비입금액" colsep="^" colwidth="0, 80, 60, 120, 314, 0, 70, 0, 120, 80, 80, 90, 90, 90" ellipsis="true" focuscolor="transparent" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="label" style="left:0px; top:20px; width:1195px; height:46px; border-left-width:1; border-top-width:0; border-right-width:0; border-bottom-width:0; border-style:solid; ">
  148. <col ref="kind"/>
  149. <col ref="kindnm" style="text-align:center; "/>
  150. <col ref="projcd" style="text-align:center; "/>
  151. <col ref="studycd" style="text-align:center; "/>
  152. <col ref="projnm"/>
  153. <col ref="rshid"/>
  154. <col ref="rshnm" style="text-align:center; "/>
  155. <col ref="unitcd"/>
  156. <col ref="unitnm" style="text-align:center; "/>
  157. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  158. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  159. <col ref="projamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  160. <col ref="remnamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  161. <col ref="depoamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  162. </datagrid>
  163. <caption id="caption1" class="tit_2" style="left:0px; top:75px; width:162px; height:13px; ">과제별 보고서 작성 이력</caption>
  164. <datagrid id="grd_pt" nodeset="/root/main/ptlist/uncoinfo" caption="등록번호^환자명^수납일^진료형태^진료일^진료과^진료의^미수금액^청구금액^수납금액^수납자명^보험유형^보조유형^퇴원일" colsep="^" colwidth="60, 60, 80, 60, 80, 120, 50, 70, 70, 70, 60, 80, 80, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:415px; top:95px; width:780px; height:670px; ">
  165. <col explorerbar="sort" ref="pid" style="text-align:center; "/>
  166. <col explorerbar="sortshow" ref="hngnm" style="text-align:center; "/>
  167. <col explorerbar="sortshow" ref="rcptexecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  168. <col explorerbar="sort" disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
  169. <choices>
  170. <item>
  171. <label>입원</label>
  172. <value>I</value>
  173. </item>
  174. <item>
  175. <label>외래</label>
  176. <value>O</value>
  177. </item>
  178. <item>
  179. <label>응급</label>
  180. <value>E</value>
  181. </item>
  182. </choices>
  183. </col>
  184. <col explorerbar="sortshow" ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  185. <col ref="orddeptnm" style="text-align:center; "/>
  186. <col ref="orddrnm" style="text-align:center; "/>
  187. <col explorerbar="sortshow" ref="uncoamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  188. <col explorerbar="sortshow" ref="clamamt" format="(-)#,###" style="font-weight:bold; text-align:right; padding-right:1; "/>
  189. <col explorerbar="sortshow" ref="rcptamt" format="(-)#,###" style="font-weight:bold; color:green; text-align:right; padding-right:1; "/>
  190. <col ref="rcptnm" style="text-align:center; "/>
  191. <col ref="insukindnm" style="text-align:center; "/>
  192. <col ref="suppkindnm" style="text-align:center; "/>
  193. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  194. </datagrid>
  195. <datagrid id="grd_rept" nodeset="/root/main/reptlist/reptinfo" allowselection="false" backcoloralternate="transparent" caption="과제코드^연구번호^과제번호^보고서코드^보고서명^보고서순번^상태^작성일^제출일^작성자ID^작성자^환자수^청구금액" colsep="^" colwidth="0, 0, 0, 0, 100, 0, 40, 80, 0, 0, 60, 45, 80" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="label" style="left:0px; top:95px; width:410px; height:670px; ">
  196. <col ref="projcd"/>
  197. <col ref="studycd"/>
  198. <col ref="subjno"/>
  199. <col ref="reptcd"/>
  200. <col ref="reptnm" style="text-align:center; "/>
  201. <col ref="seqno"/>
  202. <col disabled="true" ref="status" type="combo" style="text-align:center; ">
  203. <choices>
  204. <item>
  205. <label>진행</label>
  206. <value>P</value>
  207. </item>
  208. <item>
  209. <label>반려</label>
  210. <value>R</value>
  211. </item>
  212. <item>
  213. <label>제출</label>
  214. <value>E</value>
  215. </item>
  216. <item>
  217. <label>확인</label>
  218. <value>A</value>
  219. </item>
  220. </choices>
  221. </col>
  222. <col ref="bsdd" format="yyyy-mm-dd" style="text-align:center; "/>
  223. <col ref="sbmtdd" format="yyyy-mm-dd" style="text-align:center; "/>
  224. <col ref="bsid"/>
  225. <col ref="bsnm" style="text-align:center; "/>
  226. <col ref="ptcnt" style="text-align:center; "/>
  227. <col ref="clamamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  228. <script type="javascript" ev:event="ondblclick">
  229. <![CDATA[
  230. if (!grd_rept.isCell(event.target)) {
  231. return;
  232. }
  233. if (grd_rept.row < grd_rept.fixedRows) {
  234. return;
  235. }
  236. var row = grd_rept.row;
  237. model.setValue("/root/send/studycd", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/studycd"));
  238. model.setValue("/root/send/reptcd", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/reptcd"));
  239. model.setValue("/root/send/reptseq", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/seqno"));
  240. model.makeNode("/root/main/ptlist/uncoinfo");
  241. submit("TRPAM00407");
  242. ]]>
  243. </script>
  244. </datagrid>
  245. <line id="line2" class="line_1" style="x1:0px; y1:90px; x2:410px; y2:90px; "/>
  246. <caption id="caption6" class="tit_2" style="left:415px; top:75px; width:180px; height:13px; ">과제 및 보고서별 환자 내역</caption>
  247. <line id="line5" class="line_1" style="x1:415px; y1:90px; x2:1195px; y2:90px; "/>
  248. <button id="btn_excel" class="btn2_letter4" style="left:1131px; top:70px; width:64px; height:19px; ">
  249. <caption>엑셀저장</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. var stdycd = model.getValue("/root/main/projinfo/studycd");
  253. var bsdd = model.getValue("/root/main/reptlist/reptinfo[" + grd_rept.row + "]/bsdd");
  254. var filename = window.fileDialog("save", ",", false, "보고서별 환자 내역_" + stdycd + "_" + bsdd, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  255. grd_pt.saveExcel(filename, "sheetname:보고서별 환자 내역;col_4:label");
  256. messageBox("엑셀 저장이 완료되었습니다.", "I999");
  257. ]]>
  258. </script>
  259. </button>
  260. <button id="btn_prt" class="btn2_letter2" style="left:1087px; top:70px; width:42px; height:19px; ">
  261. <caption>출력</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. model.setValue("/root/temp/projinfo/proj_kind", model.getValue("/root/main/projinfo/kind"));
  265. model.setValue("/root/temp/projinfo/proj_kindnm", model.getValue("/root/main/projinfo/kindnm"));
  266. model.setValue("/root/temp/projinfo/proj_projcd", model.getValue("/root/main/projinfo/projcd"));
  267. model.setValue("/root/temp/projinfo/proj_studycd", model.getValue("/root/main/projinfo/studycd"));
  268. model.setValue("/root/temp/projinfo/proj_projnm", model.getValue("/root/main/projinfo/projnm"));
  269. model.setValue("/root/temp/projinfo/proj_rshid", model.getValue("/root/main/projinfo/rshid"));
  270. model.setValue("/root/temp/projinfo/proj_rshnm", model.getValue("/root/main/projinfo/rshnm"));
  271. model.setValue("/root/temp/projinfo/proj_unitcd", model.getValue("/root/main/projinfo/unitcd"));
  272. model.setValue("/root/temp/projinfo/proj_unitnm", model.getValue("/root/main/projinfo/unitnm"));
  273. model.setValue("/root/temp/projinfo/proj_fromdd", fGetDF4Rpt(model.getValue("/root/main/projinfo/fromdd")));
  274. model.setValue("/root/temp/projinfo/proj_todd", fGetDF4Rpt(model.getValue("/root/main/projinfo/todd")));
  275. model.setValue("/root/temp/projinfo/proj_projamt", model.getValue("/root/main/projinfo/projamt"));
  276. model.setValue("/root/temp/projinfo/proj_remnamt", model.getValue("/root/main/projinfo/remnamt"));
  277. model.setValue("/root/temp/projinfo/proj_depoamt", model.getValue("/root/main/projinfo/depoamt"));
  278. var row = grd_rept.row;
  279. model.setValue("/root/temp/reptinfo/rept_projcd", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/projcd"));
  280. model.setValue("/root/temp/reptinfo/rept_studycd", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/studycd"));
  281. model.setValue("/root/temp/reptinfo/rept_subjno", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/subjno"));
  282. model.setValue("/root/temp/reptinfo/rept_reptcd", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/reptcd"));
  283. model.setValue("/root/temp/reptinfo/rept_reptnm", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/reptnm"));
  284. model.setValue("/root/temp/reptinfo/rept_seqno", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/seqno"));
  285. var status = model.getValue("/root/main/reptlist/reptinfo[" + row + "]/status");
  286. if (status == "P") {
  287. status = "진행";
  288. } else if (status == "R") {
  289. status = "반려";
  290. } else if (status == "E") {
  291. status = "제출";
  292. } else if (status == "A") {
  293. status = "확인";
  294. }
  295. model.setValue("/root/temp/reptinfo/rept_status", status);
  296. model.setValue("/root/temp/reptinfo/rept_bsdd", fGetDF4Rpt(model.getValue("/root/main/reptlist/reptinfo[" + row + "]/bsdd")));
  297. model.setValue("/root/temp/reptinfo/rept_sbmtdd", fGetDF4Rpt(model.getValue("/root/main/reptlist/reptinfo[" + row + "]/sbmtdd")));
  298. model.setValue("/root/temp/reptinfo/rept_bsid", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/bsid"));
  299. model.setValue("/root/temp/reptinfo/rept_bsnm", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/bsnm"));
  300. model.setValue("/root/temp/reptinfo/rept_ptcnt", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/ptcnt"));
  301. model.setValue("/root/temp/reptinfo/rept_clamamt", model.getValue("/root/main/reptlist/reptinfo[" + row + "]/clamamt"));
  302. model.resetInstanceNode("/root/temp/ptlist/ptinfo");
  303. var cnt = instance1.selectNodes("/root/main/ptlist/uncoinfo").length;
  304. for (var i = 1; i <= cnt; i++) {
  305. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/pid", model.getValue("/root/main/ptlist/uncoinfo[" + i + "]/pid"));
  306. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/hngnm", model.getValue("/root/main/ptlist/uncoinfo[" + i + "]/hngnm"));
  307. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/rcptexecdd", fGetDF4Rpt(model.getValue("/root/main/ptlist/uncoinfo[" + i + "]/rcptexecdd")));
  308. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/orddd", fGetDF4Rpt(model.getValue("/root/main/ptlist/uncoinfo[" + i + "]/orddd")));
  309. var ordtype = model.getValue("/root/main/ptlist/ptinfo[" + i + "]/ordtype");
  310. if (ordtype == "I") {
  311. ordtype = "입원";
  312. } else if (ordtype == "O") {
  313. ordtype = "외래";
  314. } else if (ordtype == "E") {
  315. ordtype = "응급";
  316. }
  317. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/ordtype", ordtype);
  318. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/orddeptnm", model.getValue("/root/main/ptlist/uncoinfo[" + i + "]/orddeptnm"));
  319. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/orddrnm", model.getValue("/root/main/ptlist/uncoinfo[" + i + "]/orddrnm"));
  320. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/insukindnm", model.getValue("/root/main/ptlist/uncoinfo[" + i + "]/insukindnm"));
  321. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/suppkindnm", model.getValue("/root/main/ptlist/uncoinfo[" + i + "]/suppkindnm"));
  322. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/unconm", model.getValue("/root/main/ptlist/uncoinfo[" + i + "]/unconm"));
  323. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/uncoamt", model.getValue("/root/main/ptlist/uncoinfo[" + i + "]/remnamt"));
  324. model.makeValue("/root/temp/ptlist/ptinfo[" + i + "]/clamamt", model.getValue("/root/main/ptlist/uncoinfo[" + i + "]/clamamt"));
  325. }
  326. exeReportPreview("RPPAM00403", "XMLSTR");
  327. ]]>
  328. </script>
  329. <hint>
  330. <![CDATA[보고서에 적용된 환자 내역만 출력됩니다]]>
  331. </hint>
  332. </button>
  333. </xhtml:body>
  334. </xhtml:html>