SMPID24300_KDRG 번호생성 프로그램.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID23300_DRG상세정보 .xrw
  4. * 수정이력
  5. * - 2010.07.19 / 최초작성 / 김용민
  6. -->
  7. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>KDRG 번호생성프로그램</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <patinfo>
  16. <patinfolist/>
  17. </patinfo>
  18. <kdrglist/>
  19. </main>
  20. <send>
  21. <filepath/>
  22. <attach>
  23. <file/>
  24. </attach>
  25. <pid/>
  26. <clamfromym/>
  27. <clamtoym/>
  28. <clamym/>
  29. <offset/>
  30. </send>
  31. <init>
  32. <item1>
  33. <clamym/>
  34. <clamdg/>
  35. <pid/>
  36. <pidsn/>
  37. <patnm/>
  38. <insukind/>
  39. <suppkind/>
  40. <orddeptcd/>
  41. <indd/>
  42. </item1>
  43. <!-- 보험유형 -->
  44. <P0008list>
  45. <P0008>
  46. <cdnm/>
  47. <cdid/>
  48. </P0008>
  49. </P0008list>
  50. <!-- 보조유형 -->
  51. <P0010list>
  52. <P0010>
  53. <cdnm/>
  54. <cdid/>
  55. </P0010>
  56. </P0010list>
  57. <!-- 진료결과 -->
  58. <P0110list>
  59. <P0110>
  60. <cdnm/>
  61. <cdid/>
  62. </P0110>
  63. </P0110list>
  64. <P0155list>
  65. <P0155>
  66. <cdengabbrnm/>
  67. <cdnm/>
  68. <cdid/>
  69. </P0155>
  70. </P0155list>
  71. <orddeptcd2/>
  72. <PAM>
  73. <PK015list/>
  74. <PK016list/>
  75. <PK054list/>
  76. <PK055list/>
  77. </PAM>
  78. </init>
  79. <hidden>
  80. <sppmc02500>
  81. <cond>
  82. <srchcond/>
  83. <pid/>
  84. </cond>
  85. </sppmc02500>
  86. </hidden>
  87. </root>
  88. </instance>
  89. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  90. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. // ---------------------------------------------------------------
  94. // 공통코드를 조회한다.
  95. // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
  96. // ---------------------------------------------------------------
  97. zbcfGetCodeList(
  98. new Array("P0008" // 보험유형
  99. ,"P0010" // 보조유형
  100. ,"P0110" // 진료결과
  101. ,"P0155"
  102. ),
  103. new Array("/root/init/P0008list"
  104. ,"/root/init/P0010list"
  105. ,"/root/init/P0110list"
  106. ,"/root/init/P0155list"
  107. ) );
  108. // 2013.02.19 - 부가코드 원무공통코드조회
  109. pamfGetCodeList(new Array(
  110. "PK015"
  111. ,"PK016"
  112. ,"PK054"
  113. ,"PK055"
  114. ),
  115. new Array("/root/init/PAM/PK015list"
  116. ,"/root/init/PAM/PK016list"
  117. ,"/root/init/PAM/PK054list"
  118. ,"/root/init/PAM/PK055list"
  119. ));
  120. // ---------------------------------------------------------------
  121. // 진료과 초기화
  122. // ---------------------------------------------------------------
  123. submit("TRPID20309", false);
  124. model.copyNode("/root/init/orddeptcd2", "/root/hidden/tmp/orddeptcd2");
  125. model.removeNodeset("/root/hidden/tmp/orddeptcd");
  126. model.removeNodeset("/root/hidden/tmp/orddeptcd2");
  127. model.removeNodeset("/root/hidden/tmp/orddrid");
  128. model.removeNodeset("/root/hidden/tmp/orddrid2");
  129. fInitialize();
  130. ]]>
  131. </script>
  132. <submission id="TXPIJ03200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/drginfo" resultref="/root/rslt"/>
  133. <submission id="TXPID24301" mediatype="multipart/form-data" method="form-data-post" ref="/root/send"/>
  134. <submission id="TXPID24302" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main"/>
  135. <submission id="TRPIJ03200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  136. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  137. <submission id="TXPID24300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/tmp/tmp"/>
  138. <submission id="TXPIJ03208" mediatype="multipart/form-data" method="form-data-post"/>
  139. <submission id="TRPIJ03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/drginfo" resultref="/root/main/endchkinfo"/>
  140. <submission id="TRPID24300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/kdrglist"/>
  141. <submission id="TRPID24301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/"/>
  142. </model>
  143. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  144. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  145. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  146. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  147. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  148. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  149. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  150. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
  152. <script type="javascript">
  153. <![CDATA[
  154. function fInitialize() {
  155. var gToday = new Date();
  156. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  157. var gBasemonth = gToday.getDateFormat("MM");
  158. var gBaseday = gToday.getDateFormat("DD");
  159. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  160. var gCurrentym = gBaseyear + gBasemonth;
  161. var gUserid = getUserId();
  162. model.setValue(ipt_clamfromym.attribute("ref"), gCurrentym );
  163. model.setValue(ipt_clamtoym.attribute("ref"), gCurrentym);
  164. //fGetdrgDetail();
  165. model.refresh();
  166. }
  167. function fGetdrgDetail() {
  168. submit("TRPIJ03200");
  169. //진료결과 체크 - 중간청구인경우 : 계속, 퇴원인경우 : 퇴원
  170. var dschnotiyn = model.getValue("/root/main/drginfo/dschnotiyn");
  171. var ordrslt = model.getValue("/root/main/drginfo/ordrsltcd");
  172. if(dschnotiyn == "Y"){
  173. if(ordrslt == "" || ordrslt == "-" || ordrslt == "1"){
  174. if(ordrslt != "4"){
  175. model.setValue("/root/main/drginfo/ordrsltcd","9");
  176. }
  177. }
  178. }else{
  179. if(ordrslt == "" || ordrslt == "-"){
  180. model.setValue("/root/main/drginfo/ordrsltcd","1");
  181. }
  182. }
  183. }
  184. function fSleep(filenm) {
  185. var now = new Date();
  186. var exitTime = now.getTime() + 30000;
  187. var fldr = model.getValue("/root/init/PAM/PK054list/PK054[cdid='01']/cdnm");//"C:/Program Files/himed/components/KDRG/";
  188. var infile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='02']/cdnm");//"kdrg33.in";
  189. var outfile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='03']/cdnm");//"kdrg33.out";
  190. var fso = new ActiveXObject("Scripting.FileSystemObject");
  191. while (true) {
  192. now = new Date();
  193. //3초동안 파일이 있는지 체크한다. 생성되었으면 루프를 나온다.
  194. if (fso.FileExists(fldr+filenm) && fso.GetFile(fldr+filenm).Size > "0") { break; }
  195. //3초동안 파일이 없으면 빠져나온다.
  196. if (now.getTime() > exitTime) { break; }
  197. }
  198. }
  199. function fStandby() {
  200. var now = new Date();
  201. var exitTime = now.getTime() + 3000;
  202. while (true) {
  203. now = new Date();
  204. //3초동안 후 빠져나온다.
  205. if (now.getTime() > exitTime) { break; }
  206. }
  207. }
  208. function fGetDocuList() {
  209. var offcnt = model.getXPathValue("count(/root/main/kdrglist/kdrg)");
  210. if (offcnt >= 10000){
  211. model.setValue("/root/send/offset", offcnt);
  212. } else {
  213. }
  214. model.resetInstanceNode(grd_kdrglist.nodeset);
  215. submit("TRPID24300");
  216. }
  217. function responseHandlerTXPID24300() {
  218. removeLoadingWindow();
  219. }
  220. ]]>
  221. </script>
  222. </xhtml:head>
  223. <xhtml:body pagewidth="910" pageheight="910" guideline="1,1143;2,879;" style="margin-left:5; margin-top:0; margin-right:5; margin-bottom:0; ">
  224. <group id="grp_tle" style="left:0px; top:0px; width:785px; height:13px; ">
  225. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:195px; height:14px; ">KDRG 번호생성프로그램</caption>
  226. </group>
  227. <group id="group1" scroll="auto" style="left:0px; top:15px; width:900px; height:890px; ">
  228. <caption id="caption1" class="tit_2" style="left:5px; top:77px; width:230px; height:14px; ">대상리스트</caption>
  229. <line id="line1" class="line_1" style="x1:0px; y1:92px; x2:895px; y2:92px; "/>
  230. <group id="group2" style="left:0px; top:4px; width:895px; height:41px; vertical-align:top; ">
  231. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:895px; height:40px; "/>
  232. <caption id="caption30" class="search_name" style="left:3px; top:11px; width:87px; height:17px; ">청구년월 :</caption>
  233. <input id="ipt_clamfromym" ref="/root/send/clamfromym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:90px; top:10px; width:69px; height:19px; text-align:center; "/>
  234. <input id="ipt_clamtoym" ref="/root/send/clamtoym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:185px; top:10px; width:69px; height:19px; text-align:center; "/>
  235. <caption id="caption2" style="left:165px; top:10px; width:15px; height:20px; ">~</caption>
  236. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:835px; top:10px; width:56px; height:22px; ">
  237. <caption>조회</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. fGetDocuList();
  241. ]]>
  242. </script>
  243. </button>
  244. <line id="line3" class="line_4" style="x1:825px; y1:5px; x2:825px; y2:38px; "/>
  245. <input id="ipt_patunitsrch" ref="/root/send/pid" class="input_search" navindex="3" inputtype="button" maxlength="10" style="left:361px; top:9px; width:90px; height:19px; ">
  246. <hint>
  247. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  248. </hint>
  249. <script type="javascript" ev:event="onkeypress">
  250. <![CDATA[
  251. if (event.keyCode == "13") { // Enter 입력 시에
  252. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  253. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  254. //fGetInAftJudgTrgtManList("pidSrch");
  255. }
  256. }
  257. ]]>
  258. </script>
  259. <script type="javascript" ev:event="onbuttonclick">
  260. <![CDATA[
  261. var ipt_pid = model.getValue("/root/send/pid");
  262. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  263. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  264. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  265. modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  266. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  267. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  268. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  269. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  270. model.setValue("/root/send/pid", srch_pid);
  271. }
  272. model.refresh();
  273. ]]>
  274. </script>
  275. </input>
  276. <caption id="caption18" class="search_name" style="left:277px; top:9px; width:83px; height:17px; ">환자조회</caption>
  277. </group>
  278. <button id="button3" class="btn4_letter2" style="left:839px; top:866px; width:56px; height:22px; ">
  279. <caption>종료</caption>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. model.dispatch("xforms-close");
  283. ]]>
  284. </script>
  285. </button>
  286. <button id="button4" class="btn4_letter6" style="left:792px; top:69px; width:104px; height:22px; ">
  287. <caption>DRG번호생성</caption>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. var fldr = model.getValue("/root/init/PAM/PK054list/PK054[cdid='01']/cdnm");//"C:/Program Files/himed/components/KDRG/";
  291. var infile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='02']/cdnm");//"kdrg35.in";
  292. var outfile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='03']/cdnm");//"kdrg35.out";
  293. var exefile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='04']/cdnm");//"kdrg35.exe";
  294. var updfileyn = model.getValue("/root/init/PAM/PK054list/PK054[cdid='05']/cdnm");//"번호생성프로그램 사용 유무
  295. var fso;
  296. var nofile = "";
  297. model.setValue("/root/send/attach/file",fldr+outfile);
  298. fso = new ActiveXObject("Scripting.FileSystemObject");
  299. if (fso.FolderExists(fldr)){
  300. var files = new Array();
  301. var filecnt = model.getXPathValue("count(/root/init/PAM/PK055list/PK055)");
  302. for (var i=1; i <= filecnt; i++) {
  303. files.push(model.getValue("/root/init/PAM/PK055list/PK055["+ i +"]/cdnm"));
  304. }
  305. var updfilechk = true;
  306. for (var i=0; i < files.length; i++) {
  307. var updfilesize = model.getValue("/root/init/PAM/PK055list/PK055[cdnm='"+ files[i] +"']/dispseq");
  308. var updfilepath = model.getValue("/root/init/PAM/PK055list/PK055[cdnm='"+ files[i] +"']/detl");
  309. if (fso.FileExists(fldr+files[i])){
  310. if (updfileyn == "Y") {
  311. var nowfilesize = fso.GetFile(fldr+files[i]).Size;
  312. if (updfilesize != nowfilesize && updfilepath.length > 0 )
  313. {
  314. model.download(getActionURL("TXPIJ03208") + "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
  315. updfilechk = false;
  316. }
  317. }
  318. } else {
  319. if (updfileyn == "Y") {
  320. model.download(getActionURL("TXPIJ03208") + "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
  321. updfilechk = false;
  322. } else {
  323. nofile += files[i]+"의 구성요서가 없습니다.! 다운로드 하세요.\n";
  324. }
  325. }
  326. }
  327. if (!updfilechk) {
  328. alert("파일이 업데이트 되었습니다. 다시 시도 해주세요." );
  329. return false;
  330. }
  331. if (nofile.length>0) {
  332. alert(nofile);
  333. return false;
  334. } else {
  335. //기존파일 삭제
  336. if (fso.FileExists(fldr + infile)){ fso.DeleteFile(fldr + infile); }
  337. if (fso.FileExists(fldr + outfile)){ fso.DeleteFile(fldr + outfile); }
  338. //1in파일 생성 및 다운로드
  339. var ipid = model.getValue("/root/send/pid");
  340. var clamtoym= model.getValue("/root/send/clamtoym");
  341. var clamfromym = model.getValue("/root/send/clamfromym");
  342. //화면에있는 내용으로 마스터테이블에 저장후 in 파일을 다운로드한다.
  343. //submit("TXPIJ03200",false);
  344. download("TXPID24301", "&clamfromym=" + clamfromym +
  345. "&clamtoym=" + clamtoym +
  346. "&pid=" + ipid +
  347. "&infilenm=" + infile
  348. ,fldr + infile
  349. ,false);
  350. fSleep(infile);
  351. model.refresh();
  352. //2in파일이 다운로드되었으면 exe파일실행.
  353. if (fso.FileExists(fldr + infile)) {
  354. window.exec(fldr + exefile, fldr + infile, fldr);
  355. fStandby();
  356. fSleep(outfile);
  357. model.refresh();
  358. if (fso.FileExists(fldr+outfile)) {
  359. upload2.refresh();
  360. if (submit("TXPID24302")) {
  361. //완료되었습니다.
  362. messageBox("DRG번호생성이","I002");
  363. } else {
  364. //실패하였습니다.
  365. messageBox("DRG번호생성을","E009");
  366. }
  367. //생성파일 삭제
  368. if (fso.FileExists(fldr + infile)){ fso.DeleteFile(fldr + infile); }
  369. if (fso.FileExists(fldr + outfile)){ fso.DeleteFile(fldr + outfile); }
  370. } else {
  371. messageBox("out 파일이 존재 하지 않습니다.","E");
  372. }
  373. } else {
  374. messageBox("in 파일이 존재 하지 않습니다.","E");
  375. }
  376. }
  377. } else {
  378. //폴더가 없으면 다운로드 한다.
  379. fso.CreateFolder(fldr);
  380. messageBox("DRG 번호생성 프로그램을 다운로드하거나 다시 시도 ","I008");
  381. }
  382. ]]>
  383. </script>
  384. </button>
  385. <upload id="upload2" nodeset="/root/send/attach/file" style="left:5px; top:50px; width:100px; height:20px; "/>
  386. <button id="button1" class="btn4_letter7" style="left:674px; top:69px; width:116px; height:22px; ">
  387. <caption>대상자수집 실행</caption>
  388. <script type="javascript" ev:event="DOMActivate">
  389. <![CDATA[
  390. var clamfromym = model.getValue(ipt_clamfromym.attribute("ref"));
  391. var clamtoym = model.getValue(ipt_clamtoym.attribute("ref"));
  392. var mthcnt = getDateInterval(clamfromym + '01', clamtoym + '01', 'mm');
  393. if (mthcnt == 0) {
  394. model.setValue("/root/send/clamym", clamfromym);
  395. var sWindowMsg = clamfromym + " KDRG 대상자 수집중입니다...";
  396. callLoadingWindow(sWindowMsg);
  397. //asyncSend("TXPID24300", "/root/send", "/root/tmp/tmp", "responseHandlerTXPID24300");
  398. submit("TXPID24300");
  399. removeLoadingWindow();
  400. } else if (mthcnt > 0) {
  401. for (var i=0; i<=mthcnt; i++) {
  402. var myDate = new Date("01" + "/" + clamfromym.substring(4,6) +"/" + clamfromym.substring(0,4));
  403. var dayOfMonth = myDate.getDate();
  404. myDate.setMonth(dayOfMonth - 1 + i);
  405. model.setValue("/root/send/clamym", myDate.getDateFormat('YYYYMM'));
  406. var sWindowMsg = myDate.getDateFormat('YYYY년MM월') + " KDRG 대상자 수집중입니다...";
  407. callLoadingWindow(sWindowMsg);
  408. model.refresh();
  409. //asyncSend("TXPID24300", "/root/send", "/root/tmp/tmp", "responseHandlerTXPID24300");
  410. submit("TXPID24300");
  411. removeLoadingWindow();
  412. }
  413. }
  414. //removeLoadingWindow();
  415. //submit("TXPID24300");
  416. ]]>
  417. </script>
  418. </button>
  419. <button id="button2" accesskey="ctrl+f5" class="btn4_letter2" disabled="true" visibility="hidden" style="left:604px; top:867px; width:56px; height:22px; ">
  420. <caption>배포</caption>
  421. <script type="javascript" ev:event="DOMActivate">
  422. <![CDATA[
  423. open("SMPID24301");
  424. ]]>
  425. </script>
  426. </button>
  427. <datagrid id="grd_kdrglist" nodeset="/root/main/kdrglist/kdrg" class="datagrid3" caption="청구월^환자번호^환자명^나이^주민번호^진료과^진료의^보험유형^보조유형^입원일자^입원&#xA;일수^진료결과^청구&#xA;구분^주상병^주상병명^제1&#xA;부상병^제1부상병명^처치&#xA;코드1^처치명1^처치&#xA;코드2^처치명2^검사코드1-5^방사선코드1-5^주사및혈액제제코드 1-5^마취및호흡치료코드1-5^알콜및약물중독재활지료코드^부가코드1-5^입원시&#xA;체중(g)^인공&#xA;호흡시간&#xA;(hour)^MDC^ADRG^PCCL^DRG&#xA;분류번호^version^낮병동&#xA;유무^응급실퇴원&#xA;유무^대분류^진단코드1-10^수술코드1-10^진단코드1^진단코드2^진단코드3^진단코드4^진단코드5^진단코드6^진단코드7^진단코드8^진단코드9^진단코드10^시술코드1^시술코드2^시술코드3^시술코드4^시술코드5^시술코드6^시술코드7^시술코드8^시술코드9^시술코드10^검사코드1^검사코드2^검사코드3^검사코드4^검사코드5^방사선코드1^방사선명1^방사선코드2^방사선코드3^방사선코드4^방사선코드5^주사및혈액제제코드 1^주사및혈액제제코드 2^주사및혈액제제코드 3^주사및혈액제제코드 4^주사및혈액제제코드 5^마취및호흡치료코드1^마취및호흡치료코드2^마취및호흡치료코드3^마취및호흡치료코드4^마취및호흡치료코드5^부가코드1^부가코드2^부가코드3^부가코드4^부가코드5" colsep="^" colwidth="62, 60, 50, 31, 100, 100, 72, 74, 81, 69, 37, 69, 50, 45, 301, 46, 302, 45, 301, 45, 299, 194, 196, 192, 189, 166, 174, 49, 54, 43, 45, 43, 60, 56, 43, 70, 50, 220, 195, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 198, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:97px; width:895px; height:767px; text-align:center; ">
  428. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  429. <col ref="pid"/>
  430. <col ref="patnm"/>
  431. <col ref="patage" style="text-align:center; "/>
  432. <col ref="patrrgstno" format="999999-9999&quot;***&quot;"/>
  433. <col ref="orddeptcd" type="combo">
  434. <choices>
  435. <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
  436. <label ref="nm"/>
  437. <value ref="cd"/>
  438. </itemset>
  439. </choices>
  440. </col>
  441. <col ref="orddrnm"/>
  442. <col disabled="true" ref="insukind" type="combo">
  443. <choices>
  444. <itemset nodeset="/root/init/P0008list/P0008">
  445. <label ref="cdnm"/>
  446. <value ref="cdid"/>
  447. </itemset>
  448. </choices>
  449. </col>
  450. <col disabled="true" ref="suppkind" type="combo">
  451. <choices>
  452. <itemset nodeset="/root/init/P0010list/P0010">
  453. <label ref="cdnm"/>
  454. <value ref="cdid"/>
  455. </itemset>
  456. </choices>
  457. </col>
  458. <col ref="indd" format="yyyy-mm-dd"/>
  459. <col ref="chosindayno"/>
  460. <col disabled="true" ref="ordrsltcd" type="combo">
  461. <choices>
  462. <itemset nodeset="/root/init/P0110list/P0110">
  463. <label ref="cdnm"/>
  464. <value ref="cdid"/>
  465. </itemset>
  466. </choices>
  467. </col>
  468. <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
  469. <choices>
  470. <itemset nodeset="/root/init/P0155list/P0155">
  471. <label ref="cdnm"/>
  472. <value ref="cdid"/>
  473. </itemset>
  474. </choices>
  475. </col>
  476. <col ref="diagcd1" style="text-align:left; "/>
  477. <col ref="diagnm1" style="text-align:left; "/>
  478. <col ref="diagcd2" style="text-align:left; "/>
  479. <col ref="diagnm2" style="text-align:left; "/>
  480. <col ref="opcd1" style="text-align:left; "/>
  481. <col ref="opnm1" style="text-align:left; "/>
  482. <col ref="opcd2" style="text-align:left; "/>
  483. <col ref="opnm2" style="text-align:left; "/>
  484. <col ref="excd" style="text-align:left; "/>
  485. <col ref="rgcd" style="text-align:left; "/>
  486. <col ref="ibcd" style="text-align:left; "/>
  487. <col ref="arcd" style="text-align:left; "/>
  488. <col ref="ncvcd" style="text-align:left; "/>
  489. <col ref="detailcd" style="text-align:left; "/>
  490. <col ref="bw"/>
  491. <col ref="vtl"/>
  492. <col ref="mdc"/>
  493. <col ref="adrg"/>
  494. <col ref="pccl"/>
  495. <col ref="drgno"/>
  496. <col ref="version"/>
  497. <col ref="dayward"/>
  498. <col ref="ioflagyn"/>
  499. <col ref="drgtype"/>
  500. <col ref="diagcd" style="text-align:left; "/>
  501. <col ref="opcd" style="text-align:left; "/>
  502. <col ref="diagcd1" visibility="hidden"/>
  503. <col ref="diagcd2" visibility="hidden"/>
  504. <col ref="diagcd3"/>
  505. <col ref="diagcd4"/>
  506. <col ref="diagcd5"/>
  507. <col ref="diagcd6"/>
  508. <col ref="diagcd7"/>
  509. <col ref="diagcd8"/>
  510. <col ref="diagcd9"/>
  511. <col ref="diagcd10"/>
  512. <col ref="opcd1" visibility="hidden"/>
  513. <col ref="opcd2" visibility="hidden"/>
  514. <col ref="opcd3"/>
  515. <col ref="opcd4"/>
  516. <col ref="opcd5"/>
  517. <col ref="opcd6"/>
  518. <col ref="opcd7"/>
  519. <col ref="opcd8"/>
  520. <col ref="opcd9"/>
  521. <col ref="opcd10"/>
  522. <col ref="excd1"/>
  523. <col ref="excd2"/>
  524. <col ref="excd3"/>
  525. <col ref="excd4"/>
  526. <col ref="excd5"/>
  527. <col ref="rgcd1"/>
  528. <col ref="rgnm1" style="text-align:left; "/>
  529. <col ref="rgcd2"/>
  530. <col ref="rgcd3"/>
  531. <col ref="rgcd4"/>
  532. <col ref="rgcd5"/>
  533. <col ref="ibcd1"/>
  534. <col ref="ibcd2"/>
  535. <col ref="ibcd3"/>
  536. <col ref="ibcd4"/>
  537. <col ref="ibcd5"/>
  538. <col ref="arcd1"/>
  539. <col ref="arcd2"/>
  540. <col ref="arcd3"/>
  541. <col ref="arcd4"/>
  542. <col ref="arcd5"/>
  543. <col ref="detailcd1"/>
  544. <col ref="detailcd2"/>
  545. <col ref="detailcd3"/>
  546. <col ref="detailcd4"/>
  547. <col ref="detailcd5"/>
  548. <script type="javascript" ev:event="onscrollpos">
  549. <![CDATA[
  550. ]]>
  551. </script>
  552. <script type="javascript" ev:event="onscroll">
  553. <![CDATA[
  554. var rowno = grd_kdrglist.rows - grd_kdrglist.fixedRows;
  555. var cvalue = 0;
  556. if(rowno / 10000 >= 1) {
  557. cvalue = (rowno/10000) / Math.floor(rowno/10000);
  558. }
  559. if(grd_kdrglist.vscroll.attribute("max") == grd_kdrglist.vscroll.attribute("pos") && grd_kdrglist.row > 0 && cvalue == 1) {
  560. // end of scroll
  561. var offcnt = model.getXPathValue("count(/root/main/kdrglist/kdrg)");
  562. model.setValue("/root/send/offset", offcnt);
  563. submit("TRPID24301");
  564. grd_kdrglist.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  565. }
  566. //
  567. // if (model.getValue("/root/main/kdrglist/kdrg/tot_cnt") == rowno) {
  568. // alert("마지막");
  569. // return false;
  570. // }
  571. //
  572. ]]>
  573. </script>
  574. </datagrid>
  575. <button id="btn_excelsave" class="btn2_letter4" style="left:607px; top:71px; width:64px; height:19px; ">
  576. <caption>엑셀저장</caption>
  577. <script type="javascript" ev:event="DOMActivate">
  578. <![CDATA[
  579. if (grd_kdrglist.rows > 1) {
  580. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  581. if (fileName != "") {
  582. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  583. // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
  584. grd_kdrglist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;col_6:label;col_7:label;col_8:label;col_10:label;col_27:label;", true, true, "", "", true);
  585. }
  586. } else {
  587. messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  588. }
  589. ]]>
  590. </script>
  591. </button>
  592. </group>
  593. </xhtml:body>
  594. </xhtml:html>