SPPIJ04300_KDRG재원일괄조회.xrw 25 KB

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