123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>입원 청구 생성</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <CountNode/>
- <main>
- <list1>
- <cretlist/>
- </list1>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- </main>
- <send>
- <clamym/>
- <clamdg>0</clamdg>
- <clamfromdd/>
- <clamtodd/>
- <insutype/>
- <ordfildcd/>
- <clamflag/>
- <predata/>
- <ownb100/>
- <datacretflag/>
- <pid/>
- <name/>
- <orddeptcd/>
- <weekflag>S</weekflag>
- <chk/>
- <ioflag/>
- <temp/>
- </send>
- <init>
- <P0008list>
- <cdid/>
- <cdnm/>
- </P0008list>
- </init>
- <hidden>
- <list1>
- <dept>
- <depthngnm/>
- <deptcd/>
- <deptengabbr/>
- <reqfild/>
- <reqdeptno/>
- </dept>
- </list1>
- <sppmc02500>
- <cond>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </cond>
- </sppmc02500>
- <send2>
- <instcd/>
- <basedd/>
- </send2>
- <screen1>
- <checkyn1/>
- </screen1>
- <temp>
- <memo/>
- </temp>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPID10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list1"/>
- <submission id="TXPID10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list1" replace="instance" resultref="/root/hidden/item1/result"/>
- <submission id="TRPID10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/send2" replace="instance" resultref="/root/hidden/list1"/>
- <submission id="TXPID10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/item1/result"/>
- <submission id="TXPID10103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/temp" replace="instance" resultref="/root/hidden/item1/result"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.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">
- <![CDATA[
- var g_rtrv = "N"; // 조회여부
-
- // 청구년월 증감 함수
- function CalMonth(idc, av_date)
- {
- var lv_date = av_date.toDate("YYYYMM" + "01");
- lv_date = lv_date.getAddDate(idc, "M")
-
- return lv_date.getDateFormat("YYYYMM");
- }
-
- // 화면 open시와 초기화 버튼 클릭시 화면을 초기화 기능을 수행.
- function fInitialize() {
- // 공통코드를 조회한다.
- // zbcfGetCodeList(new Array("P0008"), new Array("/root/init/P0008list"));
- // model.refresh();
- // 초기값
- cmb_insutype.select(0); // 보험유형 : -.전체
- cmb_ordfildcd.select(0); // 진료구분 : -.전체
- cmb_clamflag.select(1); // 청구구분 : 0. 퇴원+중간, 1.퇴원
- cmb_ownb100.select(0); // 전액본인 : N.생성안함
- cmb_cretflag.select(0); // 생성여부 : -.전체
- // cmb_pastdata.select(0); // 이전자료 : 1.생성(삭제후)
- cmb_pastdata.select(1); // 이전자료 : 2.생성(중복Skip)
-
- // 날짜 계산을 위하여 yyyymmdd형태로 오늘 날짜를 구한다.
- var tmp_date = new Date();
- var tmp_year = tmp_date.getYear();
-
- // 월의 경우 0부터 시작이므로 +1을 해준다.
- var tmp_month = tmp_date.getMonth() + 1;
- var tmp_day = tmp_date.getDate();
-
- // 10보다 작은경우는 앞에 '0'을 붙여서 자릿수를 맞춘다.
- if (tmp_month<10) tmp_month = "0" + tmp_month;
- if (tmp_day<10) tmp_day = "0" + tmp_day;
-
- // +"" 을 안해주면 숫자로 인식해서 더해버리므로 꼭 넣어준다.
- ipt_clamtodd.value = tmp_year + "" + tmp_month + "" + tmp_day;
- ipt_clamfromdd.value = tmp_year + "" + tmp_month + "" + tmp_day;
- ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
-
- // 기준일자
- model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
-
- // 생성된 자료 선택 제외 여부 2008-10-08
- model.setValue("/root/hidden/screen1/checkyn1", "Y");
-
- // 진료과목
- submit("TRPID10102");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:231px; height:15px; ">입원 청구 생성</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:59px; vertical-align:top; background-color:#fffbf2; border-color:#ffd799; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:59px; "/>
- <line id="line13" style="x1:1113px; y1:31px; x2:1113px; y2:53px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption10" class="search_name" style="left:302px; top:33px; width:86px; height:17px; ">전액본인 :</caption>
- <caption id="caption11" class="search_name" style="left:680px; top:9px; width:86px; height:17px; ">진료분야 :</caption>
- <select1 id="cmb_insutype" ref="/root/send/insutype" class="combo_search" appearance="minimal" style="left:580px; top:8px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>0.전체</label>
- <value>0</value>
- </item>
- <item>
- <label>1.보험+급여</label>
- <value>1</value>
- </item>
- <item>
- <label>2.보험</label>
- <value>2</value>
- </item>
- <item>
- <label>3.급여</label>
- <value>3</value>
- </item>
- <item>
- <label>4.급여1종</label>
- <value>4</value>
- </item>
- <item>
- <label>5.급여2종</label>
- <value>5</value>
- </item>
- <item>
- <label>6.산재</label>
- <value>6</value>
- </item>
- <item>
- <label>7.자보</label>
- <value>7</value>
- </item>
- </choices>
- <!--choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices-->
- </select1>
- <caption id="caption3" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">정산일자 :</caption>
- <caption id="caption4" class="search_name" style="left:491px; top:9px; width:86px; height:17px; ">보험유형 :</caption>
- <caption id="caption13" class="search_name" style="left:491px; top:34px; width:86px; height:17px; ">생성여부 :</caption>
- <select1 id="cmb_ordfildcd" ref="/root/send/ordfildcd" class="combo_search" appearance="minimal" style="left:769px; top:8px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>-.전체</label>
- <value>-</value>
- </item>
- <item>
- <label>0.의과</label>
- <value>0</value>
- </item>
- <item>
- <label>1.내과</label>
- <value>1</value>
- </item>
- <item>
- <label>2.외과</label>
- <value>2</value>
- </item>
- <item>
- <label>3.산,소아과</label>
- <value>3</value>
- </item>
- <item>
- <label>4.안,이비인후과</label>
- <value>4</value>
- </item>
- <item>
- <label>5.피부,비뇨기과</label>
- <value>5</value>
- </item>
- <item>
- <label>6.치과</label>
- <value>6</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_orddeptcd.value = "";
-
- var ordfildcd = model.getValue("/root/send/ordfildcd");
-
- if (ordfildcd == "-") {
- cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept";
- }
- else if (ordfildcd == "0") {
- cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept[reqfild !='6']";
- }
- else {
- cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept[reqfild = '" + ordfildcd + "' or reqfild = '']";
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_pastdata" ref="/root/send/predata" class="combo_search" appearance="minimal" style="left:769px; top:32px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>1.생성(삭제후)</label>
- <value>1</value>
- </item>
- <item>
- <label>2.생성(중복Skip)</label>
- <value>2</value>
- </item>
- <item>
- <label>3.생성(별도)</label>
- <value>3</value>
- </item>
- <item>
- <label>4.삭제만</label>
- <value>4</value>
- </item>
- <item>
- <label>5.재생성(별도)</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // alert("g_rtrv = " + g_rtrv);
- if (g_rtrv == "Y") {
- for (var i = 1; i < grd_cretlist.rows; i++) {
- model.setValue("root/main/list1/cretlist[" + i + "]/predata", model.getValue("/root/send/predata"));
- }
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_clamflag" ref="/root/send/clamflag" class="combo_search" appearance="minimal" style="left:391px; top:8px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>-.퇴원+중간</label>
- <value>-</value>
- </item>
- <item>
- <label>1.퇴원청구</label>
- <value>1</value>
- </item>
- <item>
- <label>2.중간청구</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_clamfromdd" ref="/root/send/clamfromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:104px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_clamfromdd.value > ipt_clamtodd.value) {
- ipt_clamtodd.value = ipt_clamfromdd.value;
- }
-
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)) {
- ipt_clamtodd.value = ipt_clamfromdd.value;
- }
-
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamym.value) {
- ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
- }
-
- model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
- ]]>
- </script>
- </input>
- <input id="ipt_clamtodd" ref="/root/send/clamtodd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:192px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_clamtodd.value < ipt_clamfromdd.value) {
- ipt_clamfromdd.value = ipt_clamtodd.value;
-
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamym.value) {
- ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
- }
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_ownb100" ref="/root/send/ownb100" class="combo_search" appearance="minimal" style="left:391px; top:32px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>N.생성안함</label>
- <value>N</value>
- </item>
- <item>
- <label>Y.생성</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:302px; top:9px; width:86px; height:17px; ">청구구분 :</caption>
- <caption id="caption14" class="search_name" style="left:680px; top:33px; width:86px; height:17px; ">이전자료 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1128px; top:31px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/list1");
-
- // default : S.선택생성 2008-10-11
- //model.setValue("root/send/weekflag", "S");
-
- // 정산일자 조회 시 동일 월만 조회되도록 하여, 정산월이 다르면서 청구월/차수가 동일한 사후 자료의 발생을 제어한다. (2015.05.28 LEJ)
- var fromdd = model.getValue("/root/send/clamfromdd");
- var todd = model.getValue("/root/send/clamtodd");
- var fromyear = fromdd.substr(0,4);
- var frommonth = fromdd.substr(4,2);
- var fromym = fromyear+frommonth // 조회 시작 월
- var toyear = todd.substr(0,4);
- var tomonth = todd.substr(4,2);
- var toym = toyear+tomonth // 조회 종료 월
-
- if (fromym != toym ) {
- alert("정산월이 동일한 경우만 동시 조회 가능합니다. 조회할 정산일자를 변경하세요");
- model.setFocus("ipt_clamtodd");
- return false;
- }
-
- submit("TRPID10101");
-
- // 생성요청은 31건 이상 처리 안됨 : HP UNIX 오류 발생 (SIZE문제) 2008-10-08
- var row_cnt = 0;
-
- for (var i = 1; i < grd_cretlist.rows; i++) {
- // 생성된 자료 선택 제외 여부 2008-10-08
- if (model.getValue("/root/hidden/screen1/checkyn1") == "Y" && model.getValue("root/main/list1/cretlist[" + i + "]/clamkey") != "-") continue;
- if (row_cnt >= 60) break;
-
- model.setValue("root/main/list1/cretlist[" + i + "]/chk","true");
- row_cnt ++;
- }
-
- model.refresh();
-
- g_rtrv = "Y";
- ]]>
- </script>
- </button>
- <select1 id="cmb_cretflag" ref="/root/send/datacretflag" class="combo_search" appearance="minimal" style="left:580px; top:33px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>-.전체</label>
- <value>-</value>
- </item>
- <item>
- <label>N.미생성</label>
- <value>N</value>
- </item>
- <item>
- <label>Y.생성</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <button id="button27" class="icon_search" style="left:279px; top:34px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var ipt_pid = model.getValue("/root/send/pid");
-
- if (ipt_pid) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- }
- else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
-
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
-
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var srch_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- 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.setValue("/root/send/name", srch_hngnm);
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:15px; top:33px; width:86px; height:17px; ">환자번호 :</caption>
- <input id="ipt_pid" ref="/root/send/pid" class="input_default" style="left:104px; top:32px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- // Enter 입력 시에
- if (event.keyCode == '13') {
- // model.setValue("/root/send/pid", ipt_pid.currentText());
- setInputNodeCurText();
-
- var ipt_pid = model.getValue("/root/send/pid");
-
- if (ipt_pid) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- }
- else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
-
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
-
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var srch_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- 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.setValue("/root/send/name", srch_hngnm);
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_name" ref="/root/send/name" class="input_default" style="left:192px; top:32px; width:85px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_default" appearance="minimal" style="left:959px; top:8px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/list1/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:870px; top:10px; width:86px; height:17px; ">진료과목 :</caption>
- <caption id="caption5" class="search_name" style="left:870px; top:33px; width:86px; height:17px; ">청구차수 :</caption>
- </group>
- <line id="line12" class="line_1" style="x1:0px; y1:94px; x2:1194px; y2:94px; "/>
- <caption id="caption32" class="tit_2" style="left:5px; top:79px; width:105px; height:13px; ">생성 대상자</caption>
- <datagrid id="grd_cretlist" nodeset="/root/main/list1/cretlist" class="datagrid2" caption="선택^IO^등록번호^환자성명^입원일자^시간^퇴원일자^시간^CNo^주/부^생성^유형동일 사후
(월/차수/순번)^정산
유무^진료기간^진료기간^진료과^진료과^DRG여부^유형^보조^메모^배분심사자^배분심사자^정산최종일^수납처리일^최종청구일^분야^청구과^청구과^생성기간^생성기간^심사상태^생성일자^도착경로^진료결과^사망일시^청구키^전문의^입원경로^도착경로^진료결과^주민번호^보험자기호^증번호^본인율^내원^본인구분^최종심사자^최종심사자^6세미만^청구구분^희귀난치^청구년월^청구차수^청구단위^병실코드^병실타입^최종심사일자^DRG NO^부가코드1^부가코드2^부가코드3^부가코드4^부가코드5" colsep="^" colwidth="30, 0, 65, 70, 80, 40, 80, 40, 33, 37, 35, 95, 40, 80, 80, 70, 85, 65, 35, 35, 45, 55, 65, 80, 80, 83, 38, 30, 70, 80, 80, 60, 80, 80, 80, 120, 140, 60, 56, 56, 56, 105, 70, 80, 50, 50, 60, 65, 70, 60, 60, 60, 60, 60, 50, 36, 100, 100, 70, 70, 70, 70, 70, 70, 100, 100" dataheight="23" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozenrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" style="left:0px; top:99px; width:1194px; height:641px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="ioflag" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm"/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="intm" format="hh:nn" style="text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschtm" format="hh:nn" style="text-align:center; "/>
- <col ref="cretno" style="text-align:center; "/>
- <col ref="mskind" style="text-align:center; "/>
- <col ref="status" style="text-align:center; "/>
- <col ref="clam_o" style="text-align:center; "/>
- <col ref="obtm" style="text-align:center; "/>
- <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="drgyn" style="text-align:center; "/>
- <col ref="insukind" style="text-align:center; "/>
- <col ref="suppkind" style="text-align:center; "/>
- <col ref="memo" type="inputbutton"/>
- <col ref="judgid" style="text-align:center; "/>
- <col ref="judgidnm" style="text-align:center; "/>
- <col ref="calclastdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rcptexecdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastmdlclamdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordfildcd" style="text-align:center; "/>
- <col ref="clamdeptcd" style="text-align:center; "/>
- <col ref="clamdeptnm"/>
- <col ref="clamfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamtodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="judgstatus" style="text-align:center; "/>
- <col ref="cretdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="arvpath"/>
- <col ref="ordrslt"/>
- <col ref="dethdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="clamkey"/>
- <col ref="medispclid"/>
- <col ref="inpathcd" style="text-align:center; "/>
- <col ref="arvpathcd" style="text-align:center; "/>
- <col ref="ordrsltcd" style="text-align:center; "/>
- <col ref="patrrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="insuno"/>
- <col ref="cretno"/>
- <col ref="brateflag" style="text-align:center; "/>
- <col ref="ordtype" style="text-align:center; "/>
- <col ref="ownbflag" style="text-align:center; "/>
- <col ref="lastjudgid" style="text-align:center; "/>
- <col ref="lastjudgnm" style="text-align:center; "/>
- <col ref="undersixageyn" style="text-align:center; "/>
- <col ref="dschmidlclam" style="text-align:center; "/>
- <col ref="rareobstflag" style="text-align:center; "/>
- <col ref="clamym" style="text-align:center; "/>
- <col ref="clamdg" style="text-align:center; "/>
- <col ref="weekflag" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="roomtypecd" style="text-align:center; "/>
- <col ref="lastjudgdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="drgno" style="text-align:center; "/>
- <col ref="detailcd1" style="text-align:center; "/>
- <col ref="detailcd2" style="text-align:center; "/>
- <col ref="detailcd3" style="text-align:center; "/>
- <col ref="detailcd4" style="text-align:center; "/>
- <col ref="detailcd5" style="text-align:center; "/>
- <col ref="calcscorrecalflag" visibility="hidden"/>
- <col ref="erdeptyn" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_cretlist.col == grd_cretlist.colRef("memo")) {
- var afjudgrow = grd_cretlist.row;
- model.removenode("/root/hidden/temp/memo");
- model.makeNode("/root/hidden/temp/memo");
- model.setValue("/root/hidden/temp/memo", grd_cretlist.valueMatrix(afjudgrow, grd_cretlist.colRef("memo")));
- grp_memo.visible = true;
- grp_memo.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_selectall" class="btn2_letter6" style="left:1106px; top:73px; width:86px; height:19px; ">
- <caption>생성로그확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
-
- todd = todd.toDate().getAddDate(+1, 'D');
-
- zsbfOpenBatchLogPopup("clamcretmngtmgr.ClamDataCretMain",getCurrentDate(),todd.getDateFormat());
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter6" style="left:913px; top:73px; width:86px; height:19px; ">
- <caption>전체 선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 생성요청은 31건 이상 처리 안됨 : HP UNIX 오류 발생 (SIZE문제) 2008-10-08
- // 생성건수 60건으로 늘림(2016.01.26 LEJ)
- var row_cnt = 0;
-
- for (var i = 1; i < grd_cretlist.rows; i++) {
- // 생성된 자료 선택 제외 여부 2008-10-08
- if (model.getValue("/root/hidden/screen1/checkyn1") == "Y" && model.getValue("root/main/list1/cretlist[" + i + "]/clamkey") != "-") continue;
- if (row_cnt >= 60) break;
-
- model.setValue("root/main/list1/cretlist[" + i + "]/chk","true");
- row_cnt ++;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_selectcancel" class="btn2_letter6" style="left:1001px; top:73px; width:86px; height:19px; ">
- <caption>전체선택취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = 1; i < grd_cretlist.rows; i++) {
- model.setValue("root/main/list1/cretlist[" + i + "]/chk","false");
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/hidden/screen1/checkyn1" overflow="visible" appearance="full" style="left:765px; top:75px; width:145px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>생성된 자료 선택 제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="btn_excelsave" class="btn2_letter4" style="left:691px; top:73px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_cretlist.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_cretlist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- ]]>
- </script>
- </button>
- <group id="grp_memo" visibility="hidden" style="left:790px; top:160px; width:370px; height:210px; border-color:#c7a3cf; border-style:solid; ">
- <caption id="caption7" class="tit_2" style="left:5px; top:5px; width:179px; height:13px; ">입원 사후 자료수집 메모</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:22px; x2:365px; y2:22px; "/>
- <textarea id="textarea1" ref="/root/hidden/temp/memo" style="left:4px; top:29px; width:360px; height:150px; "/>
- <button id="button4" class="btn4_letter2" style="left:252px; top:184px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var aftjudgcmt = textarea1.currentText;
- var TotLength = getStringLength(aftjudgcmt);
- if (TotLength > 4000){
- messageBox("메모 내용이 너무길어 저장을 ","E001");
- return false;
- }
-
- for (var k=0; k < grd_cretlist.selectedRows; k++ ) {
- var row = grd_cretlist.selectedRow(k);
- var col = grd_cretlist.colRef("memo");
- grd_cretlist.valueMatrix(row, col) = aftjudgcmt;
-
- model.resetInstanceNode("/root/send/temp");
- model.makeValue("/root/send/temp/spclspec", aftjudgcmt);
- model.makeValue("/root/send/temp/spclmemoflag", 'B');
- model.makeValue("/root/send/temp/m", "i");
- model.makeValue("/root/send/temp/unitflag", "M");
- model.makeValue("/root/send/temp/spclcd", "MX998");
- model.makeValue("/root/send/temp/seqno", "1");
- model.makeValue("/root/send/temp/pid", grd_cretlist.valueMatrix(row, grd_cretlist.colRef("pid")));
- model.makeValue("/root/send/temp/indd", grd_cretlist.valueMatrix(row, grd_cretlist.colRef("indd")));
- model.makeValue("/root/send/temp/mskind", grd_cretlist.valueMatrix(row, grd_cretlist.colRef("mskind")));
- model.makeValue("/root/send/temp/cretno", grd_cretlist.valueMatrix(row, grd_cretlist.colRef("cretno")));
- model.makeValue("/root/send/temp/fromdd", grd_cretlist.valueMatrix(row, grd_cretlist.colRef("fromdd")));
- model.makeValue("/root/send/temp/instcd", "");
- model.makeValue("/root/send/temp/lastupdtrid", "");
-
- submit("TXPID10103",false);
- }
-
- grp_memo.visible = false;
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" style="left:309px; top:184px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_memo.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <button id="button6" class="btn2_letter6" style="left:575px; top:73px; width:86px; height:19px; ">
- <caption>금액점검</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPPID10103", "2", "10", "10", "SPPID10103", "", "", "", "");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button10" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removeNodeset("/root/main/list1");
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter5" style="left:1032px; top:5px; width:92px; height:22px; ">
- <caption>선택 생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 생성요청은 31건 이상 처리 안됨 : HP UNIX 오류 발생 (SIZE문제) 2008-10-08
- // 생성건수 60건으로 늘림(2016.01.26 LEJ)
- var row_cnt = 0;
- var rtrn_value = "";
-
- for (var i = 1; i < grd_cretlist.rows; i++) {
- // 생성요청 건수 2008-10-08
- if (model.getValue("root/main/list1/cretlist[" + i + "]/chk") == "true") row_cnt ++;
- }
-
- if (row_cnt == 0) {
- messageBox("선택된 환자가 없어 작업", "E001");
- return;
- }
-
- if (row_cnt > 60) {
- messageBox("선택된 환자가 60건이 넘어 작업", "E001");
- return;
- }
-
- rtrn_value = messageBox("해당 조건으로 일괄 생성을 ", "S004");
-
- if (rtrn_value == "6") {
- submit("TXPID10101");
-
- // 생성로그확인 자동호출
- btn_selectall.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button3" class="btn4_letter5" style="left:938px; top:5px; width:92px; height:22px; ">
- <caption>전체 생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtrn_value = "";
- var row_cnt = 0;
-
- if (g_rtrv != "Y") {
- messageBox("조회를 먼저 하신후에 ", "I006");
- return;
- }
-
- rtrn_value = messageBox("해당 조건으로 일괄 생성을 ", "S004");
-
- if (rtrn_value == "6") {
- model.setValue("root/send/weekflag", "T");
- model.setValue("root/send/chk", "true");
- model.setValue("root/send/ioflag", "I");
-
- submit("TXPID10102");
-
- // 생성로그확인 자동호출
- btn_selectall.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </group>
- <input id="ipt_clamdg" ref="/root/send/clamdg" class="input_default" disabled="false" visibility="visible" inputtype="spin" step="1" min="0" max="9" style="left:1050px; top:55px; width:50px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (g_rtrv == "Y") {
- for (var i = 1; i < grd_cretlist.rows; i++) {
- model.setValue("root/main/list1/cretlist[" + i + "]/clamdg", model.getValue("/root/send/clamdg"));
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_clamym" ref="/root/send/clamym" class="input_default" disabled="false" visibility="visible" inputtype="date" format="yyyy-mm" style="left:959px; top:55px; width:75px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (g_rtrv == "Y") {
- for (var i = 1; i < grd_cretlist.rows; i++) {
- model.setValue("root/main/list1/cretlist[" + i + "]/clamym", model.getValue("/root/send/clamym"));
- }
- }
- ]]>
- </script>
- </input>
- <button id="button_down" class="icon_down" style="left:1036px; top:64px; width:10px; height:9px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var clamym = ipt_clamym.value;
-
- ipt_clamym.value = CalMonth(-1, clamym);
-
- if (g_rtrv == "Y") {
- for (var i = 1; i < grd_cretlist.rows; i++) {
- model.setValue("root/main/list1/cretlist[" + i + "]/clamym", model.getValue("/root/send/clamym"));
- }
- }
- ]]>
- </script>
- </button>
- <button id="button_up" class="icon_up" style="left:1036px; top:54px; width:10px; height:9px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var clamym = ipt_clamym.value;
-
- ipt_clamym.value = CalMonth(1, clamym);
-
- if (g_rtrv == "Y") {
- for (var i = 1; i < grd_cretlist.rows; i++) {
- model.setValue("root/main/list1/cretlist[" + i + "]/clamym", model.getValue("/root/send/clamym"));
- }
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|