123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SPPIJ04300_KDRG재원일괄조회 .xrw
- * 수정이력
- * - 2010.07.19 / 최초작성 / 김용민
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>재원 KDRG 번호생성프로그램</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <kdrglist/>
- </main>
- <send>
- <filepath/>
- <attach>
- <file/>
- </attach>
- <pid/>
- <clamfromym/>
- <clamtoym/>
- <clamym/>
- <offset/>
- <instcd>031</instcd>
- <indschacptstat>A</indschacptstat>
- </send>
- <init>
- <item1>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- <patnm/>
- <insukind/>
- <suppkind/>
- <orddeptcd/>
- <indd/>
- </item1>
- <!-- 보험유형 -->
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <!-- 보조유형 -->
- <P0010list>
- <P0010>
- <cdnm/>
- <cdid/>
- </P0010>
- </P0010list>
- <!-- 진료결과 -->
- <P0110list>
- <P0110>
- <cdnm/>
- <cdid/>
- </P0110>
- </P0110list>
- <P0155list>
- <P0155>
- <cdengabbrnm/>
- <cdnm/>
- <cdid/>
- </P0155>
- </P0155list>
- <orddeptcd2/>
- <PAM>
- <PK015list/>
- <PK016list/>
- <PK054list/>
- <PK055list/>
- </PAM>
- </init>
- <hidden>
- <sppmc02500>
- <cond>
- <srchcond/>
- <pid/>
- </cond>
- </sppmc02500>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // ---------------------------------------------------------------
- // 공통코드를 조회한다.
- // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
- // ---------------------------------------------------------------
- zbcfGetCodeList(
- new Array("P0008" // 보험유형
- ,"P0010" // 보조유형
- ,"P0110" // 진료결과
- ,"P0155"
- ),
- new Array("/root/init/P0008list"
- ,"/root/init/P0010list"
- ,"/root/init/P0110list"
- ,"/root/init/P0155list"
- ) );
- // 2013.02.19 - 부가코드 원무공통코드조회
- pamfGetCodeList(new Array(
- "PK015"
- ,"PK016"
- ,"PK054"
- ,"PK055"
- ),
- new Array("/root/init/PAM/PK015list"
- ,"/root/init/PAM/PK016list"
- ,"/root/init/PAM/PK054list"
- ,"/root/init/PAM/PK055list"
- ));
-
- // ---------------------------------------------------------------
- // 진료과 초기화
- // ---------------------------------------------------------------
- submit("TRPID20309", false);
- model.copyNode("/root/init/orddeptcd2", "/root/hidden/tmp/orddeptcd2");
- model.removeNodeset("/root/hidden/tmp/orddeptcd");
- model.removeNodeset("/root/hidden/tmp/orddeptcd2");
- model.removeNodeset("/root/hidden/tmp/orddrid");
- model.removeNodeset("/root/hidden/tmp/orddrid2");
- fInitialize();
- ]]>
- </script>
- <submission id="TXPIJ04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/drginfo" resultref="/root/rslt"/>
- <submission id="TXPIJ03201" mediatype="multipart/form-data" method="form-data-post" ref="/root/send"/>
- <submission id="TXPIJ04002" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main"/>
- <submission id="TRPIJ03200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXPID24300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/tmp/tmp"/>
- <submission id="TXPIJ03208" mediatype="multipart/form-data" method="form-data-post"/>
- <submission id="TRPIJ03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/drginfo" resultref="/root/main/endchkinfo"/>
- <submission id="TRPIJ04210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/tmp/tmp"/>
- <submission id="TRPIJ04211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
-
- var gToday = new Date();
- var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var gBasemonth = gToday.getDateFormat("MM");
- var gBaseday = gToday.getDateFormat("DD");
- var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
- var gCurrentym = gBaseyear + gBasemonth;
- var gUserid = getUserId();
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"))
- //fGetdrgDetail();
- model.refresh();
- }
-
- function fGetdrgDetail() {
- submit("TRPIJ03200");
-
- //진료결과 체크 - 중간청구인경우 : 계속, 퇴원인경우 : 퇴원
- var dschnotiyn = model.getValue("/root/main/drginfo/dschnotiyn");
- var ordrslt = model.getValue("/root/main/drginfo/ordrsltcd");
-
- if(dschnotiyn == "Y"){
- if(ordrslt == "" || ordrslt == "-" || ordrslt == "1"){
- if(ordrslt != "4"){
- model.setValue("/root/main/drginfo/ordrsltcd","9");
- }
- }
- }else{
- if(ordrslt == "" || ordrslt == "-"){
- model.setValue("/root/main/drginfo/ordrsltcd","1");
- }
- }
-
- }
-
- function fSleep(filenm) {
- var now = new Date();
- var exitTime = now.getTime() + 30000;
- var fldr = model.getValue("/root/init/PAM/PK054list/PK054[cdid='01']/cdnm");//"C:/Program Files/himed/components/KDRG/";
- var infile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='02']/cdnm");//"kdrg33.in";
- var outfile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='03']/cdnm");//"kdrg33.out";
- var fso = new ActiveXObject("Scripting.FileSystemObject");
-
- while (true) {
- now = new Date();
-
- //3초동안 파일이 있는지 체크한다. 생성되었으면 루프를 나온다.
- if (fso.FileExists(fldr+filenm) && fso.GetFile(fldr+filenm).Size > "0") { break; }
-
- //3초동안 파일이 없으면 빠져나온다.
- if (now.getTime() > exitTime) { break; }
- }
- }
-
- function fStandby() {
- var now = new Date();
- var exitTime = now.getTime() + 3000;
- while (true) {
- now = new Date();
-
- //3초동안 후 빠져나온다.
- if (now.getTime() > exitTime) { break; }
- }
- }
-
- function fGetDocuList() {
- var offcnt = model.getXPathValue("count(/root/main/kdrglist/kdrg)");
- if (offcnt >= 10000){
- model.setValue("/root/send/offset", offcnt);
- } else {
-
- }
-
-
- model.resetInstanceNode(grd_kdrglist.nodeset);
- submit("TRPIJ04211");
-
- }
- function responseHandlerTXPID24300() {
- removeLoadingWindow();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="910" pageheight="910" guideline="1,1143;2,879;" style="margin-left:5; margin-top:0; margin-right:5; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:785px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:195px; height:14px; ">KDRG 번호생성프로그램</caption>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:15px; width:900px; height:890px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:77px; width:230px; height:14px; ">대상리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:92px; x2:895px; y2:92px; "/>
- <group id="group2" style="left:0px; top:4px; width:895px; height:41px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:895px; height:40px; "/>
- <button id="btn_select" class="btn1_letter2" navindex="32" style="left:835px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetDocuList();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:825px; y1:5px; x2:825px; y2:38px; "/>
- <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; ">
- <hint>
- <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
- </hint>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // Enter 입력 시에
- if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- //fGetInAftJudgTrgtManList("pidSrch");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var ipt_pid = model.getValue("/root/send/pid");
-
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
-
- // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
- modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
- model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
- model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
- model.setValue("/root/send/pid", srch_pid);
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption18" class="search_name" style="left:2px; top:9px; width:83px; height:17px; ">환자조회</caption>
- <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; ">
- <choices>
- <item>
- <label>재원</label>
- <value>A</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="button3" class="btn4_letter2" style="left:839px; top:866px; width:56px; height:22px; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.dispatch("xforms-close");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter6" style="left:792px; top:69px; width:104px; height:22px; ">
- <caption>DRG번호생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fldr = model.getValue("/root/init/PAM/PK054list/PK054[cdid='01']/cdnm");//"C:/Program Files/himed/components/KDRG/";
- var infile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='02']/cdnm");//"kdrg35.in";
- var outfile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='03']/cdnm");//"kdrg35.out";
- var exefile = model.getValue("/root/init/PAM/PK054list/PK054[cdid='04']/cdnm");//"kdrg35.exe";
- var updfileyn = model.getValue("/root/init/PAM/PK054list/PK054[cdid='05']/cdnm");//"번호생성프로그램 사용 유무
- var fso;
- var nofile = "";
-
- model.setValue("/root/send/attach/file",fldr+outfile);
-
- fso = new ActiveXObject("Scripting.FileSystemObject");
- if (fso.FolderExists(fldr)){
- var files = new Array();
- var filecnt = model.getXPathValue("count(/root/init/PAM/PK055list/PK055)");
-
- for (var i=1; i <= filecnt; i++) {
- files.push(model.getValue("/root/init/PAM/PK055list/PK055["+ i +"]/cdnm"));
- }
-
- var updfilechk = true;
- for (var i=0; i < files.length; i++) {
- var updfilesize = model.getValue("/root/init/PAM/PK055list/PK055[cdnm='"+ files[i] +"']/dispseq");
- var updfilepath = model.getValue("/root/init/PAM/PK055list/PK055[cdnm='"+ files[i] +"']/detl");
-
- if (fso.FileExists(fldr+files[i])){
- if (updfileyn == "Y") {
- var nowfilesize = fso.GetFile(fldr+files[i]).Size;
- if (updfilesize != nowfilesize && updfilepath.length > 0 )
- {
- model.download(getActionURL("TXPIJ03208") + "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
- updfilechk = false;
- }
- }
- } else {
- if (updfileyn == "Y") {
-
- model.download(getActionURL("TXPIJ03208") + "&attfilepath=" + updfilepath + "&filepathcolnm=attfilepath", fldr+files[i], false);
- updfilechk = false;
- } else {
- nofile += files[i]+"의 구성요서가 없습니다.! 다운로드 하세요.\n";
- }
- }
- }
- if (!updfilechk) {
- alert("파일이 업데이트 되었습니다. 다시 시도 해주세요." );
- return false;
- }
- if (nofile.length>0) {
- alert(nofile);
- return false;
- } else {
- //기존파일 삭제
- if (fso.FileExists(fldr + infile)){ fso.DeleteFile(fldr + infile); }
- if (fso.FileExists(fldr + outfile)){ fso.DeleteFile(fldr + outfile); }
- //1in파일 생성 및 다운로드
- var ipid = model.getValue("/root/send/pid");
- var clamtoym= model.getValue("/root/send/clamtoym");
- var clamfromym = model.getValue("/root/send/clamfromym");
- //화면에있는 내용으로 마스터테이블에 저장후 in 파일을 다운로드한다.
- submit("TXPIJ04000");
- download("TXPIJ03201", "&pid=" + ipid +
- "&infilenm=" + infile
- ,fldr + infile
- ,false);
-
- fSleep(infile);
- model.refresh();
-
-
-
- //2in파일이 다운로드되었으면 exe파일실행.
- if (fso.FileExists(fldr + infile)) {
- window.exec(fldr + exefile, fldr + infile, fldr);
- fStandby();
- fSleep(outfile);
- model.refresh();
- if (fso.FileExists(fldr+outfile)) {
-
- upload2.refresh();
- if (submit("TXPIJ04002")) {
- //완료되었습니다.
- messageBox("DRG번호생성이","I002");
- } else {
- //실패하였습니다.
- messageBox("DRG번호생성을","E009");
- }
- //생성파일 삭제
- if (fso.FileExists(fldr + infile)){ fso.DeleteFile(fldr + infile); }
- if (fso.FileExists(fldr + outfile)){ fso.DeleteFile(fldr + outfile); }
- } else {
- messageBox("out 파일이 존재 하지 않습니다.","E");
- }
-
- } else {
- messageBox("in 파일이 존재 하지 않습니다.","E");
- }
-
- }
-
- } else {
- //폴더가 없으면 다운로드 한다.
- fso.CreateFolder(fldr);
- messageBox("DRG 번호생성 프로그램을 다운로드하거나 다시 시도 ","I008");
-
- }
-
- ]]>
- </script>
- </button>
- <upload id="upload2" nodeset="/root/send/attach/file" style="left:5px; top:50px; width:100px; height:20px; "/>
- <button id="button1" class="btn4_letter7" style="left:674px; top:69px; width:116px; height:22px; ">
- <caption>대상자수집 실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPIJ04210");
- ]]>
- </script>
- </button>
- <button id="button2" accesskey="ctrl+f5" class="btn4_letter2" disabled="true" visibility="hidden" style="left:604px; top:867px; width:56px; height:22px; ">
- <caption>배포</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- open("SMPID24301");
- ]]>
- </script>
- </button>
- <datagrid id="grd_kdrglist" nodeset="/root/main/drginfo" class="datagrid3" caption="환자번호^환자명^나이^주민번호^주민번호^진료과^진료의^보험유형^보조유형^입원일자^입원
일수^진료결과^주상병^주상병명^제1
부상병^제1부상병명^처치
코드1^처치명1^처치
코드2^처치명2^알콜및약물중독재활지료코드^입원시
체중(g)^인공
호흡시간
(hour)^MDC^ADRG^PCCL^DRG
분류번호^version^낮병동
유무^응급실퇴원
유무^대분류^진단코드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; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="age" style="text-align:center; "/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2"/>
- <col ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddrnm"/>
- <col disabled="true" ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suppkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0010list/P0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="chosindayno"/>
- <col disabled="true" ref="ordrsltcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0110list/P0110">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="diagcd1" type="input" style="text-align:left; "/>
- <col ref="diagnm1" style="text-align:left; "/>
- <col ref="diagcd2" type="input" style="text-align:left; "/>
- <col ref="diagnm2" style="text-align:left; "/>
- <col ref="opcd1" type="input" style="text-align:left; "/>
- <col ref="opnm1" style="text-align:left; "/>
- <col ref="opcd2" type="input" style="text-align:left; "/>
- <col ref="opnm2" style="text-align:left; "/>
- <col ref="ncvcd" type="input" style="text-align:left; "/>
- <col ref="bw" type="input"/>
- <col ref="vtl" type="input"/>
- <col ref="mdcno"/>
- <col ref="adrg"/>
- <col ref="pccl"/>
- <col ref="drgno"/>
- <col ref="version"/>
- <col ref="dayward" type="output"/>
- <col ref="ioflagyn" type="output"/>
- <col ref="drgtype"/>
- <col ref="diagcd3" type="input"/>
- <col ref="diagcd4" type="input"/>
- <col ref="diagcd5" type="input"/>
- <col ref="diagcd6" type="input"/>
- <col ref="diagcd7" type="input"/>
- <col ref="diagcd8" type="input"/>
- <col ref="diagcd9" type="input"/>
- <col ref="diagcd10" type="input"/>
- <col ref="opcd3" type="input"/>
- <col ref="opcd4" type="input"/>
- <col ref="opcd5" type="input"/>
- <col ref="opcd6" type="input"/>
- <col ref="opcd7" type="input"/>
- <col ref="opcd8" type="input"/>
- <col ref="opcd9" type="input"/>
- <col ref="opcd10" type="input"/>
- <col ref="excd1" type="input"/>
- <col ref="excd2" type="input"/>
- <col ref="excd3" type="input"/>
- <col ref="excd4" type="input"/>
- <col ref="excd5" type="input"/>
- <col ref="rgcd1" type="input"/>
- <col ref="rgnm1" style="text-align:left; "/>
- <col ref="rgcd2" type="input"/>
- <col ref="rgcd3" type="input"/>
- <col ref="rgcd4" type="input"/>
- <col ref="rgcd5" type="input"/>
- <col ref="ibcd1" type="input"/>
- <col ref="ibcd2" type="input"/>
- <col ref="ibcd3" type="input"/>
- <col ref="ibcd4" type="input"/>
- <col ref="ibcd5" type="input"/>
- <col ref="arcd1" type="input"/>
- <col ref="arcd2" type="input"/>
- <col ref="arcd3" type="input"/>
- <col ref="arcd4" type="input"/>
- <col ref="arcd5" type="input"/>
- <col ref="detailcd1" type="combo">
- <choices>
- <itemset nodeset="/root/init/PAM/PK015list/PK015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="detailcd2" type="combo">
- <choices>
- <itemset nodeset="/root/init/PAM/PK015list/PK015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="detailcd3" type="combo">
- <choices>
- <itemset nodeset="/root/init/PAM/PK015list/PK015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="detailcd4" type="combo">
- <choices>
- <itemset nodeset="/root/init/PAM/PK015list/PK015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="detailcd5" type="combo">
- <choices>
- <itemset nodeset="/root/init/PAM/PK015list/PK015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="seqno" visibility="hidden"/>
- <col ref="ordfromdd" visibility="hidden"/>
- <col ref="tdrgnm" visibility="hidden"/>
- <script type="javascript" ev:event="onscrollpos">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- var rowno = grd_kdrglist.rows - grd_kdrglist.fixedRows;
- var cvalue = 0;
-
- if(rowno / 10000 >= 1) {
- cvalue = (rowno/10000) / Math.floor(rowno/10000);
- }
-
- if(grd_kdrglist.vscroll.attribute("max") == grd_kdrglist.vscroll.attribute("pos") && grd_kdrglist.row > 0 && cvalue == 1) {
- // end of scroll
- var offcnt = model.getXPathValue("count(/root/main/kdrglist/kdrg)");
- model.setValue("/root/send/offset", offcnt);
-
- submit("TRPIJ04211");
- grd_kdrglist.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
-
-
- }
- //
- // if (model.getValue("/root/main/kdrglist/kdrg/tot_cnt") == rowno) {
- // alert("마지막");
- // return false;
- // }
- //
- ]]>
- </script>
- </datagrid>
- <button id="btn_excelsave" class="btn2_letter4" style="left:607px; top:71px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_kdrglist.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
- // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
- 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);
- }
- } else {
- messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- ]]>
- </script>
- </button>
- <button id="btn_cretrslt" class="btn2_letter7" style="left:507px; top:71px; width:97px; height:19px; text-align:center; ">
- <caption>생성로그확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("bfjudgmngtmgr.BfKdrgListBatch", getCurrentDate(),todd.getDateFormat());
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|