123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>중간청구일괄등록관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list1>
- <grdmdiclam/>
- </list1>
- <list2>
- <grdmdiclamlist>
- <choi/>
- <pid/>
- <hngnm/>
- <mainjudgid/>
- <insukind/>
- <suppkind/>
- <indd/>
- <fromdd/>
- <todd/>
- <orddeptnm/>
- <atdoctid/>
- <cnfmdt/>
- <mskind/>
- <cretno/>
- <seqno/>
- <instcd/>
- <fstrgstrid/>
- <ownlimmitdd/>
- <inptseqno/>
- </grdmdiclamlist>
- </list2>
- <list5>
- <payamtperday>
- <execdd/>
- <payamt/>
- </payamtperday>
- </list5>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <list6>
- <grdmdiclam>
- <pid/>
- <indd/>
- <cretno/>
- <mskind/>
- </grdmdiclam>
- </list6>
- </main>
- <send>
- <pid/>
- <indaycnt/>
- <totordamt/>
- <insukind/>
- <judgmdlid/>
- <orddeptcd/>
- <rgstbadd/>
- <patnm/>
- <fromdd/>
- <todd/>
- <mdiclamlist/>
- <mdiclamrgstlist/>
- <cretno/>
- <batchdiv/>
- <tempdsch/>
- <rgststartdd/>
- <allcnt/>
- <patcnt/>
- <dschperson/>
- </send>
- <hidden>
- <rcv/>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <autoflag/>
- </cond>
- </sppmc02500>
- <judglist>
- <judgnm/>
- <judgid/>
- </judglist>
- <list2>
- <dept/>
- </list2>
- <pid/>
- <midclam>
- <pid/>
- <indd/>
- </midclam>
- <atdoclist/>
- </hidden>
- <init>
- <P0008list>
- <P0008>
- <cdid/>
- <cdnm/>
- </P0008>
- </P0008list>
- <P0149list>
- <P0149>
- <cdid/>
- <cdnm/>
- </P0149>
- </P0149list>
- </init>
- <temp>
- <currentdate/>
- </temp>
- <checkresult>
- <result>
- <cnt/>
- </result>
- </checkresult>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 초기화
- fInitialize();
-
- // 현재 날짜
- // 현재날짜 하루전날짜를 기본적으로 세팅함 - 20090305 박창원
- var curdd = getCurrentDate();
- curdd = curdd.toDate("YYYYMMDD");
- curdd = curdd.getAddDate(-1);
- curdd = curdd.getDateFormat();
-
- model.setValue("/root/temp/currentdate", curdd );
-
- model.setValue("/root/send/pid", model.getValue("/root/hidden/midclam/pid"));
- model.setValue("/root/send/rgstbadd", model.getValue("/root/temp/currentdate"));
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/midclam/indd"));
- model.setValue("/root/send/todd", model.getValue("/root/temp/currentdate"));
- // 공통코드를 조회한다.
- zbcfGetCodeList(
- new Array("P0008","P0149"),
- new Array("/root/init/P0008list","/root/init/P0149list") );
-
- submit("TRPIJ00202"); // 심사자 리스트 조회
- submit("TRPIJ00305");
-
- // 로그인 사용자 정보 조회
- var sUserInfosS = getUserInfos();
-
- sUserInfosS = sUserInfosS + "|";
-
- var UserInfosS_Array = sUserInfosS.split("|");
-
- var userid = UserInfosS_Array[0];
- model.makeNode("/root/hidden/session/sess_" + "userid");
- model.setValue("/root/hidden/session/sess_userid",userid);
- var pid = model.getValue("/root/send/pid");
- if (pid) {
- fGetMidClamList();
- }
- model.refresh();
- //[개발 중 메모]
- // 1) ZBC001.js => com.ZBCCODEM에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPIJ00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden"/>
- <submission id="TRPIJ02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TRPIJ02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TXPIJ02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TXPIJ02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TRPIJ00305" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden"/>
- <!--
- <submission id="TXPIJ01101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
- <submission id="TRPIJ01102" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/item1"/>
- <submission id="TRPIJ01103" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
- -->
- <submission id="TXPIJ02303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TXPIJ02304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TRPIJ02305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list6/grdmdiclam" resultref="/root/temp"/>
- </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">
- <![CDATA[
-
- // 화면 open시(와 초기화 버튼 클릭시) 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- model.resetInstanceNode("/root/send");
-
- model.removeNodeset("/root/main/list1");
- model.makeNode("/root/main/list1");
- model.removeNodeset("/root/main/list2");
- model.makeNode("/root/main/list2");
-
- model.setValue("/root/send/allcnt","0");
- model.setValue("/root/send/patcnt","0");
-
- model.refresh();
- }
-
- //중간청구 리스트 조회, 중간청구등록 현황 리스트 조회
- function fGetMidClamList(){
- model.removeNodeset("/root/main/list1");
- model.makeNode("/root/main/list1");
-
- if (submit("TRPIJ02301")) {
- copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
- }
-
- model.removeNodeset("/root/main/list2");
- model.makeNode("/root/main/list2");
-
- if (submit("TRPIJ02302")) {
- copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
- }
-
- // 2008. 02. 13 박지욱 추가 (환자번호가 있는 상태로 조회가 되면 선택은 체크된 상태로 한다)
- model.refresh();
- for (var i = 1; i < grd_mdiclam.rows; i++) {
- model.setValue("/root/main/list1/grdmdiclam[" + i + "]/choi", "true");
- grd_mdiclam.rowstatus(i) = 2;
- }
- for (var i = 1; i < grd_mdiclamrgst.rows; i++) {
- if (model.getValue("/root/main/list2/grdmdiclamlist[" + i + "]/cnfmdt") == "") {
- model.setValue("/root/main/list2/grdmdiclamlist[" + i + "]/choi", "true");
- grd_mdiclamrgst.rowstatus(i) = 2;
- }
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="690" guideline="1,1194;2,680;">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:124px; height:13px; ">중간청구 등록관리</caption>
- </group>
- <button id="btn_makemiddleclam" class="btn_sw" group="tab" selected="true" style="left:0px; top:15px; width:90px; height:22px; ">
- <caption>중간청구등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_makemiddleclam");
- btn_save.disabled = false;
- btn_cancelsave.disabled = true;
- ]]>
- </script>
- </button>
- <button id="btn_srchmiddleclam" class="btn_sw" group="tab" style="left:90px; top:15px; width:150px; height:22px; ">
- <caption>중간청구등록 현황 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_srchmiddleclam");
- btn_save.disabled = true;
- btn_cancelsave.disabled = false;
-
- ]]>
- </script>
- </button>
- <switch id="swt_spclmemo" style="left:0px; top:35px; width:1195px; height:595px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_makemiddleclam" selected="true" style="left:0px; top:0px; width:1193px; height:638px; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1194px; height:592px; ">
- <group id="group2" style="left:5px; top:5px; width:1185px; height:70px; vertical-align:top; ">
- <shape id="roundrect1" style="left:0px; top:0px; width:1185px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:701px; top:11px; width:86px; height:17px; ">보험유형 :</caption>
- <caption id="caption2" class="search_name" style="left:15px; top:10px; width:130px; height:17px; ">등록기준일 :</caption>
- <input id="ipt_indd" ref="/root/send/rgstbadd" class="input_search" inputtype="date" style="left:120px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == '13'){
- if(ipt_indd.currentText.length != ""){
- model.setFocus("cbo_mskind");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var rgstbad = model.getValue("/root/send/rgstbadd");
- var curDate = getCurrentDate();
-
-
- if(rgstbad > curDate){
- messageBox("현재일자 이후는 등록기준일로 등록할수 없습니다.", "E999", "");
- model.setValue("/root/send/rgstbadd", curDate);
- model.refresh();
- return;
- }
-
-
- // 등록기준일 변경시 그리드의 유형변경일을 동일하게 set - 20081028 박창원
- var todd = model.getValue("/root/send/rgstbadd");
- for(i=1; i < grd_mdiclam.rows; i++) {
- model.setValue("/root/main/list1/grdmdiclam[" + i + "]/todd",todd);
- }
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_insukind" ref="/root/send/insukind" class="combo_search" appearance="minimal" style="left:790px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">심 사 자 :</caption>
- <select1 id="cmb_judgmdlid" ref="/root/send/judgmdlid" class="combo_search" appearance="minimal" style="left:120px; top:35px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/list/judglist">
- <label ref="judgnm"/>
- <value ref="judgid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:220px; top:35px; width:86px; height:17px; ">진 료 과 :</caption>
- <select1 id="combo2" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:315px; top:35px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/list2/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:438px; top:35px; width:86px; height:17px; ">환자번호 :</caption>
- <input id="ipt_pid" ref="/root/send/pid" class="input_default" inputtype="button" style="left:525px; top:35px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.makeNode("/root/hidden/sppmc02500/cond/srchcond");
- model.makeNode("/root/hidden/sppmc02500/cond/pid");
- model.makeNode("/root/hidden/sppmc02500/cond/autoflag");
-
- if (ipt_pid.value) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid.value);
- model.setValue("/root/hidden/sppmc02500/cond/autoflag","N");
- } 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");
-
- ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
- opt_patnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') { // Enter 입력 시
-
- model.setFocus("opt_patnm");
-
- model.makeNode("/root/hidden/sppmc02500/cond/srchcond");
- model.makeNode("/root/hidden/sppmc02500/cond/pid");
- model.makeNode("/root/hidden/sppmc02500/cond/autoflag");
-
- if (ipt_pid.value) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid.value);
- model.setValue("/root/hidden/sppmc02500/cond/autoflag","Y");
- } 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");
-
- ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
- opt_patnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.setFocus("ipt_pid");
-
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_srch" class="btn1_letter2" style="left:1110px; top:35px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/list1");
- model.makeNode("/root/main/list1");
- model.setValue("/root/send/allcnt","0");
- model.setValue("/root/send/patcnt","0");
-
- // 일괄분할청구 입원시작 기준일 세팅 - 20090305 박창원
- var prevmonthday = model.getValue("/root/send/rgstbadd");
-
- if (prevmonthday == "31") {
- prevmonthday = "02";
- } else {
- prevmonthday = "01";
- }
-
- // 수정추가 : 20090907 : JHP 퇴원자포함 추가 ,,.. 관련하여 환자번호 무조건 넣게끔...
- // 또한 퇴원자포함체크하면 가퇴원포함조건 무시..
- var dschperson = model.getValue("/root/send/dschperson");
- var dschpid = model.getValue("/root/send/pid");
- if(dschperson == "Y" && dschpid == ""){
- messageBox("퇴원자포함 선택시 환자번호는","I003");
- return;
- }
- // 수정추가 : 20090907 : JHP 끝
-
- var prevmonthdate = getCurrentDate();
- prevmonthdate = prevmonthdate.toDate("YYYYMMDD");
- prevmonthdate = prevmonthdate.getAddDate(-1,"M");
- prevmonthdate = prevmonthdate.getDateFormat();
-
- model.setValue("/root/send/rgststartdd", prevmonthdate.substr(0,6) + prevmonthday );
- if (submit("TRPIJ02301")) {
- copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
- }
-
- var allcnt = grd_mdiclam.rows;
- var patcnt = 0;
- model.setValue("/root/send/allcnt",allcnt - 1);
-
- var pid = "";
- // 2008. 02. 13 박지욱 추가 (환자번호가 있는 상태로 조회가 되면 선택은 체크된 상태로 한다)
- model.refresh();
-
- var allcnt = grd_mdiclam.rows;
- model.setValue("/root/send/allcnt",allcnt);
-
- for (var i=0; i<grd_mdiclam.rows;i++) {
- var chkpid = model.getValue( "/root/main/list1/grdmdiclam[" + i + "]/pid");
- if(pid != chkpid){
- patcnt = patcnt + 1;
- }
- pid = chkpid;
- }
-
- model.setValue("/root/send/patcnt",patcnt);
-
- pid = model.getValue("/root/send/pid");
- if (pid != "") {
- for (var i = 1; i < grd_mdiclam.rows; i++) {
- model.setValue("/root/main/list1/grdmdiclam[" + i + "]/choi", "true");
- grd_mdiclam.rowstatus(i) = 2;
- }
- }
- // 끝
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:220px; top:10px; width:86px; height:17px; ">기준일수 :</caption>
- <caption id="caption11" class="search_name" style="left:438px; top:10px; width:93px; height:17px; ">진 료 비 :</caption>
- <input id="opt_insukindcd" ref="/root/send/indaycnt" format="#,###" style="left:315px; top:10px; width:50px; height:19px; text-align:right; "/>
- <input id="opt_suppkindcd" ref="/root/send/totordamt" format="#,###" style="left:525px; top:10px; width:110px; height:19px; text-align:right; "/>
- <caption id="caption4" style="left:645px; top:10px; width:28px; height:20px; vertical-align:middle; ">이상</caption>
- <caption id="caption21" style="left:370px; top:10px; width:28px; height:20px; vertical-align:middle; ">이상</caption>
- <output id="opt_patnm" ref="/root/send/patnm" class="output_fix" style="left:605px; top:35px; width:70px; height:19px; "/>
- <caption id="caption7" class="tit_2" style="left:703px; top:39px; width:345px; height:13px; ">설정된 등록기준일까지 분리되어 중간청구 등록됩니다.</caption>
- <select id="checkbox1" ref="/root/send/batchdiv" class="checkbox_search" overflow="visible" appearance="full" style="left:902px; top:11px; width:95px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>일괄분할청구</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var prevmonthday = getCurrentDate();
- prevmonthday = prevmonthday.toDate("YYYYMMDD");
- prevmonthday = prevmonthday.getAddDate(-1,"M");
- prevmonthday = prevmonthday.getMonthDay();
-
- var prevmonthdate = getCurrentDate();
- prevmonthdate = prevmonthdate.toDate("YYYYMMDD");
- prevmonthdate = prevmonthdate.getAddDate(-1,"M");
- prevmonthdate = prevmonthdate.getDateFormat();
- model.setValue("/root/send/rgstbadd", prevmonthdate.substr(0,6) + prevmonthday );
- model.refresh();
- ]]>
- </script>
- </select>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:92px; width:177px; height:13px; ">중간청구(분리청구) 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:109px; x2:1190px; y2:109px; "/>
- <datagrid id="grd_mdiclam" nodeset="/root/main/list1/grdmdiclam" caption="선택^등록번호^이름^심사자^보험유형^보조유형^입원일^유형시작일^유형종료일^진료과^진료의^재원일수^총진료비^주부유형^생성번호^일련번호^기관코드^등록자^ownlimmitdd^limmittodd^maxtodd" colsep="^" colwidth="30, 90, 80, 83, 69, 69, 100, 100, 100, 56, 80, 60, 90, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" explorerbar="sortmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:115px; width:1190px; height:475px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="mainjudgid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/list/judglist">
- <label style="text-align:center;" ref="judgnm"/>
- <value style="text-align:center;" ref="judgid"/>
- </itemset>
- </choices>
- </col>
- <col ref="insukind" style="text-align:center; "/>
- <col ref="suppkind" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fromdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="atdoctid" style="text-align:center; "/>
- <col ref="indaycnt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="totordamt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="mskind" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="ownlimmitdd" visibility="hidden"/>
- <col ref="limmittodd" visibility="hidden"/>
- <col ref="maxtodd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var chk = model.getValue("/root/main/list1/grdmdiclam[" + grd_mdiclam.row + "]/choi");
- if (chk == "true") {
- grd_mdiclam.rowstatus(grd_mdiclam.row) = 2;
- } else if (chk == "false") {
- grd_mdiclam.rowstatus(grd_mdiclam.row) = 0;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mdiclam.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
- grd_mdiclam.row = grd_mdiclam.selectedRow(0);
- ]]>
- </script>
- </datagrid>
- <button id="btn_selectall" class="btn2_letter4" style="left:1060px; top:87px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i=1; i < grd_mdiclam.rows; i++) {
- model.setValue("/root/main/list1/grdmdiclam[" + i + "]/choi","true");
- grd_mdiclam.rowstatus(i) = 2;
- }
- ]]>
- </script>
- </button>
- <button id="btn_deselectall" class="btn2_letter4" style="left:1126px; top:87px; width:64px; height:19px; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i=1; i < grd_mdiclam.rows; i++) {
- model.setValue("/root/main/list1/grdmdiclam[" + i + "]/choi","false");
- grd_mdiclam.rowstatus(i) = 0;
- }
- ]]>
- </script>
- </button>
- <select id="chk_tempdsch" ref="/root/send/tempdsch" class="checkbox_search" overflow="visible" appearance="full" style="left:1008px; top:16px; width:85px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>가퇴원포함</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- ]]>
- </script>
- </select>
- <button id="btn_exlsave" class="btn2_letter4" style="left:993px; top:87px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_mdiclam.rows == 1) {
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "중간청구등록", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_mdiclam.saveExcel(fileName, "SheetName", true, true, "", "", true);
- //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
- }
- ]]>
- </script>
- </button>
- <select id="chk_dschperson" ref="/root/send/dschperson" class="checkbox_search" overflow="visible" appearance="full" style="left:1098px; top:16px; width:85px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>퇴원자포함</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(chk_dschperson.value == 'Y'){
- if(ipt_pid.value == ""){
- messageBox("퇴원자포함 선택시 환자번호는","I003");
- }
- }
- ]]>
- </script>
- </select>
- </group>
- </case>
- <case id="case_srchmiddleclam" style="left:0px; top:0px; width:1193px; height:638px; ">
- <group id="group4" style="left:0px; top:0px; width:1194px; height:592px; ">
- <group id="group5" style="left:5px; top:5px; width:1185px; height:70px; vertical-align:top; ">
- <shape id="shape1" style="left:0px; top:0px; width:1185px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption12" class="search_name" style="left:330px; top:10px; width:86px; height:17px; ">보험유형 :</caption>
- <caption id="caption13" class="search_name" style="left:15px; top:10px; width:130px; height:17px; ">등록기준일 :</caption>
- <input id="input1" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:120px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == '13'){
- if(ipt_indd.currentText.length != ""){
- model.setFocus("cbo_mskind");
- }
- }
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/todd" class="input_search" inputtype="date" style="left:230px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == '13'){
- if(ipt_indd.currentText.length != ""){
- model.setFocus("cbo_mskind");
- }
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_rgstinsukind" ref="/root/send/insukind" class="combo_search" appearance="minimal" style="left:419px; top:9px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption14" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">심사자 :</caption>
- <select1 id="cmb_rgstjudgmdlid" ref="/root/send/judgmdlid" class="combo_search" appearance="minimal" style="left:120px; top:35px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/list/judglist">
- <label ref="judgnm"/>
- <value ref="judgid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption15" class="search_name" style="left:220px; top:35px; width:86px; height:17px; ">진료과 :</caption>
- <select1 id="combo5" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:300px; top:35px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/list2/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption16" class="search_name" style="left:490px; top:35px; width:86px; height:17px; ">환자번호 :</caption>
- <input id="ipt_rgstpid" ref="/root/send/pid" class="input_default" inputtype="button" style="left:580px; top:35px; width:87px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.makeNode("/root/hidden/sppmc02500/cond/srchcond");
- model.makeNode("/root/hidden/sppmc02500/cond/pid");
- model.makeNode("/root/hidden/sppmc02500/cond/autoflag");
-
- if (ipt_pid.value) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid.value);
- model.setValue("/root/hidden/sppmc02500/cond/autoflag","N");
- } 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");
-
- ipt_rgstpid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
- opt_rgstpatnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') { // Enter 입력 시
-
- model.setFocus("opt_patnm");
-
- model.makeNode("/root/hidden/sppmc02500/cond/srchcond");
- model.makeNode("/root/hidden/sppmc02500/cond/pid");
- model.makeNode("/root/hidden/sppmc02500/cond/autoflag");
-
- if (ipt_pid.value) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid.value);
- model.setValue("/root/hidden/sppmc02500/cond/autoflag","Y");
- } 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");
-
- ipt_rgstpid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
- opt_rgstpatnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.setFocus("ipt_pid");
-
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_rgstsrch" class="btn1_letter2" style="left:1120px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/list2");
- model.makeNode("/root/main/list2");
-
- model.setValue("/root/send/allcnt","0");
- model.setValue("/root/send/patcnt","0");
-
- if (submit("TRPIJ02302")) {
- copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
- }
-
- // 2008. 02. 13 박지욱 추가 (환자번호가 있는 상태로 조회가 되면 선택은 체크된 상태로 한다)
- model.refresh();
-
- var pid = "";
- var patcnt = 0;
- var allcnt = grd_mdiclamrgst.rows;
- model.setValue("/root/send/allcnt",allcnt - 1);
-
- for (var i=0; i<grd_mdiclamrgst.rows;i++) {
- var chkpid = model.getValue( "/root/main/list2/grdmdiclamlist[" + i + "]/pid");
- if(pid != chkpid){
- patcnt = patcnt + 1;
- }
- pid = chkpid;
- }
-
- model.setValue("/root/send/patcnt",patcnt);
-
- pid = model.getValue("/root/send/pid");
- if (pid != "") {
- for (var i = 1; i < grd_mdiclamrgst.rows; i++) {
- if (model.getValue("/root/main/list2[" + i + "]/cnfmdt") == "") {
- model.setValue("/root/main/list2/grdmdiclamlist[" + i + "]/choi", "true");
- grd_mdiclamrgst.rowstatus(i) = 2;
- }
- }
- }
- // 끝
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption18" style="left:215px; top:10px; width:28px; height:20px; vertical-align:middle; ">~</caption>
- <output id="opt_rgstpatnm" ref="/root/send/patnm" class="output_fix" imemode="hangul" style="left:670px; top:35px; width:87px; height:19px; "/>
- </group>
- <caption id="caption20" class="tit_2" style="left:5px; top:92px; width:177px; height:13px; ">중간청구(분리청구) 리스트</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:109px; x2:1190px; y2:109px; "/>
- <datagrid id="grd_mdiclamrgst" nodeset="/root/main/list2/grdmdiclamlist" caption="선택^청구생성완료여부^등록번호^이름^심사자^보험유형^보조유형^입원일^유형시작일^유형종료일^진료과^진료의^중간청구등록일^주부유형^생성번호^일련번호^기관코드^등록자^ownlimmitdd^inptseqno" colsep="^" colwidth="30, 105, 100, 100, 100, 75, 75, 100, 100, 100, 61, 100, 96, 100, 100, 100, 100, 100, 100, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:115px; width:1190px; height:475px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="cretyn" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="mainjudgid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/list/judglist">
- <label style="text-align:center;" ref="judgnm"/>
- <value style="text-align:center;" ref="judgid"/>
- </itemset>
- </choices>
- </col>
- <col ref="insukind" style="text-align:center; "/>
- <col ref="suppkind" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="atdoctid" style="text-align:center; "/>
- <col ref="cnfmdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="mskind" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="ownlimmitdd" visibility="hidden"/>
- <col ref="inptseqno" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var chk = model.getValue("/root/main/list2/grdmdiclamlist[" + grd_mdiclamrgst.row + "]/choi");
- if (chk == "true") {
- grd_mdiclamrgst.rowstatus(grd_mdiclamrgst.row) = 2;
- } else if (chk == "false") {
- grd_mdiclamrgst.rowstatus(grd_mdiclamrgst.row) = 0;
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_selectall1" class="btn2_letter4" style="left:1060px; top:87px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i=1; i < grd_mdiclamrgst.rows; i++) {
- model.setValue("/root/main/list2/grdmdiclamlist[" + i + "]/choi","true");
- grd_mdiclamrgst.rowstatus(i) = 2;
- }
- ]]>
- </script>
- </button>
- <button id="btn_deselectall1" class="btn2_letter4" style="left:1126px; top:87px; width:64px; height:19px; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i=1; i < grd_mdiclamrgst.rows; i++) {
- model.setValue("/root/main/list2/grdmdiclamlist[" + i + "]/choi","false");
- grd_mdiclamrgst.rowstatus(i) = 0;
- }
- ]]>
- </script>
- </button>
- </group>
- </case>
- </switch>
- <group id="grp_btn" scroll="auto" style="left:0px; top:635px; width:1194px; height:35px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:840px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:924px; top:5px; width:56px; height:22px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 체크된 데이터 중에서 유형기간을 벗어나거나 종료일이 오늘보다 큰 데이터는 block - 20081029 박창원
- var curdd = getCurrentDate();
- for (i=1; i<= grd_mdiclam.rows; i++) {
- var limmittodd = model.getValue("/root/main/list1/grdmdiclam[" + i + "]/limmittodd");
- var todd = model.getValue("/root/main/list1/grdmdiclam[" + i + "]/todd");
- var choi = model.getValue("/root/main/list1/grdmdiclam[" + i + "]/choi");
- if (todd > limmittodd && choi == "true" && todd != "99991231") {
- messageBox("유형기간을 벗어난 데이터가 포함되어 등록할 수 없습니다. 확인 후 ","C003");
- for(j=1; j < grd_mdiclam.rows; j++) {
- model.setValue("/root/main/list1/grdmdiclam[" + j + "]/choi","false");
- grd_mdiclam.rowstatus(j) = 0;
- }
- return;
- } else if (todd > curdd && choi == "true") {
- messageBox("유형종료일이 오늘날짜를 초과하는 데이터가 포함되어 등록할 수 없습니다. 확인 후 ","C003");
- for(j=1; j < grd_mdiclam.rows; j++) {
- model.setValue("/root/main/list1/grdmdiclam[" + j + "]/choi","false");
- grd_mdiclam.rowstatus(j) = 0;
- }
- return;
- }
- }
- var rgstbadd = model.getValue("/root/send/rgstbadd");
-
- if (rgstbadd == "") {
- messageBox("등록기준일은","I003");
- return;
- }
- var updtdata = getGridUpdateData(grd_mdiclam);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- if(grd_mdiclam.rows <= 1) {
- return;
- }
-
- var rows = grd_mdiclam.rows;
- var check = "";
- var stat = 0;
- var fromdd = "";
- var lastmdlclamdd = "";
- var interval = 0;
- var pid = "";
-
- var openerpid = "";
- var midcflag = "";
-
- if (checkOpener()) {
- openerpid = opener.model.getValue("/root/main/item1/iteminfo/pid");
- }
-
- for (i=1; i<rows; i++) {
- stat = grd_mdiclam.rowStatus(i);
- if (stat == 2) {
- check =grd_mdiclam.valueMatrix(i,1);
-
- if (check == "true") {
- pid = model.getValue("/root/main/list1/grdmdiclam["+ i +"]/pid");
-
- // opener에 조회 된 환자가 중간 청구 대상으로 처리 되는지 여부 확인
- if (checkOpener()) {
- if (openerpid == pid) {
- midcflag = "Y";
- }
- }
-
- /* // 2008. 02. 14 박지욱 수정 (최종청구일이 아닌 최종분할일을 가지고 다음 중간청구시작일을 만든다.)
- lastmdldivdd = model.getValue("/root/main/list1/grdmdiclam["+ i +"]/lastmdldivdd");
-
- if (lastmdldivdd == "") {
- model.setValue("/root/main/list1/grdmdiclam["+ i +"]/fromdd", model.getValue("/root/main/list1/grdmdiclam["+ i +"]/indd"));
- } else {
- var fromdate = new Date();
- fromdate = lastmdldivdd.toDate("YYYYMMDD");
- fromdd = fromdate.getAddDate(1,"D").getDateFormat("YYYYMMDD");
- model.setValue("/root/main/list1/grdmdiclam["+ i +"]/fromdd", fromdd);
- } */
-
- //model.setValue("/root/main/list1/grdmdiclam["+ i +"]/lastmdlclamdd", rgstbadd);
- //model.setValue("/root/main/list1/grdmdiclam["+ i +"]/todd", rgstbadd);
- model.setValue("/root/main/list1/grdmdiclam["+ i +"]/fstrgstrid", model.getValue("/root/hidden/session/sess_userid"));
-
- interval = getDateInterval(model.getValue("/root/main/list1/grdmdiclam["+ i +"]/fromdd"),model.getValue("/root/main/list1/grdmdiclam["+ i +"]/todd"));
-
- if (interval < 0) {
- messageBox("등록기준일이 시작일자 보다 이전일자로 등록","E001");
- return;
- }
- } else {
- grd_mdiclam.rowStatus(i) =0;
- }
- }
- }
-
-
- //중간청구 등록시 이전 입원기간이 중간청구 등록이 안되어 있는 경우 BLOCKING
- var clamrows = grd_mdiclam.rows;
-
- for (i=1; i<clamrows; i++) {
-
- //체크적용된 것만 체크
- if (model.getValue("/root/main/list1/grdmdiclam["+ i +"]/choi") == "true" ) {
- //입원기간이 유형시작일과 다를경우
-
- var fromdd = model.getValue("/root/main/list1/grdmdiclam["+ i +"]/fromdd");
- var maxtodd = model.getValue("/root/main/list1/grdmdiclam["+ i +"]/maxtodd");
-
-
- fromdd = fromdd.toDate("YYYYMMDD");
- fromdd = fromdd.getAddDate(-1);
- fromdd = fromdd.getDateFormat();
-
- if(fromdd != maxtodd){
- var rtn = messageBox(i+"번째 줄의 이전 입원 진료분이 중간청구 등록되지 않은 날짜가 있습니다. 계속 진행 하시겠습니까?. ","Q999");
-
- if( rtn != '6' ){
- model.setValue("/root/main/list1/grdmdiclam["+ i +"]/choi", "false");
- grd_mdiclam.rowStatus(i) = 0;
- }
- }
-
- //if(model.getValue("/root/main/list1/grdmdiclam["+ i +"]/fromdd") != model.getValue("/root/main/list1/grdmdiclam["+ i +"]/fromdd")){
- /*
- model.setValue("/root/main/list6/grdmdiclam/pid", model.getValue("/root/main/list1/grdmdiclam["+ i +"]/pid"));
- model.setValue("/root/main/list6/grdmdiclam/indd", model.getValue("/root/main/list1/grdmdiclam["+ i +"]/indd"));
- model.setValue("/root/main/list6/grdmdiclam/cretno", model.getValue("/root/main/list1/grdmdiclam["+ i +"]/cretno"));
- model.setValue("/root/main/list6/grdmdiclam/fromdd", model.getValue("/root/main/list1/grdmdiclam["+ i +"]/fromdd"));
- model.setValue("/root/main/list6/grdmdiclam/mskind", model.getValue("/root/main/list1/grdmdiclam["+ i +"]/mskind"));
- model.setValue("/root/main/list6/grdmdiclam/maxtodd", model.getValue("/root/mais kn/list1/grdmdiclam["+ i +"]/maxtodd"));
-
- model.removenode("/root/checkresult");
-
-
- if(submit("TRPIJ02305")){
-
- if( getNodesetCount("/root/checkresult/result/cnt") < 1 ){
- var rtn = messageBox(i+"번째 줄의 이전 입원 진료분이 중간청구 등록되지 않았습니다. 입원일부터 청구 생성하시겠습니까?. ","Q999");
-
- if( rtn == '6' ){
- model.setValue("/root/main/list1/grdmdiclam["+ i +"]/fromdd", model.getValue("/root/main/list1/grdmdiclam["+ i +"]/indd"));
- }else{
- model.setValue("/root/main/list1/grdmdiclam["+ i +"]/choi", "false");
- grd_mdiclam.rowStatus(i) = 0;
- }
- }
- }
- */
-
-
- //}
- }
- }
-
- //선택된 데이터가 없으면 submit제외
- var clamcheckrows = grd_mdiclam.rows;
- var cnt = 0;
- for (i=1; i<clamrows; i++) {
- if (model.getValue("/root/main/list1/grdmdiclam["+ i +"]/choi") == "true" ) {
- cnt = cnt +1;
- }
- }
-
-
- if(cnt > 0){
- model.setValue("/root/send/mdiclamlist",grd_mdiclam.getUpdateData());
-
- if ( submit("TXPIJ02301") ) {
- submit("TXPIJ02303");
- var controlObj = document.controls("btn_srch");
- controlObj.dispatch("DOMActivate");
-
- // opener에 조회 된 환자가 중간 청구 대상으로 처리
- if (midcflag == "Y") {
- opener.javascript.fSetMidregist("Y");
- }
-
- messageBox("등록이","I002");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_cancelsave" class="btn4_letter4" disabled="true" style="left:983px; top:5px; width:80px; height:22px; ">
- <caption>등록취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 체크된 데이터 중에서 자료수집이 된 건이 있으면 block - 20081016 박창원
- for (i=1; i<= grd_mdiclamrgst.rows; i++) {
- var cretyn = model.getValue("/root/main/list2/grdmdiclamlist[" + i + "]/cretyn");
- var choi = model.getValue("/root/main/list2/grdmdiclamlist[" + i + "]/choi");
- if (cretyn == "Y" && choi == "true") {
- messageBox("청구생성된 데이터가 포함되어 취소 할 수 없습니다. 생성삭제 후 ","C003");
- for(j=1; j < grd_mdiclamrgst.rows; j++) {
- model.setValue("/root/main/list2/grdmdiclamlist[" + j + "]/choi","false");
- grd_mdiclamrgst.rowstatus(j) = 0;
- }
- return;
- }
- }
- var updtdata = getGridUpdateData(grd_mdiclamrgst);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- var rows = grd_mdiclamrgst.rows;
- var check = "";
- var stat = 0;
- var pid = "";
- var openerpid = "";
- var midcflag = "";
-
- if (checkOpener()) {
- openerpid = opener.model.getValue("/root/main/item1/iteminfo/pid");
- }
-
- for (i=1; i<rows; i++) {
- stat = grd_mdiclamrgst.rowStatus(i);
- if (stat == 2) {
- check =grd_mdiclamrgst.valueMatrix(i,1);
-
- if (check == "true") {
- model.setValue("/root/main/list2/grdmdiclamlist["+ i +"]/lastupdtrid", model.getValue("/root/hidden/session/sess_userid"));
- pid = model.getValue("/root/main/list1/grdmdiclam["+ i +"]/pid");
-
- // opener에 조회 된 환자가 중간 청구 대상으로 처리 되는지 여부 확인
- if (checkOpener()) {
- if (openerpid == pid) {
- midcflag = "N";
- }
- }
-
- } else {
- grd_mdiclamrgst.rowStatus(i) =0;
- }
- }
- }
- model.setValue("/root/send/mdiclamrgstlist",grd_mdiclamrgst.getUpdateData());
- if ( submit("TXPIJ02302") ) {
- submit("TXPIJ02304");
- var controlObj = document.controls("btn_rgstsrch");
- controlObj.dispatch("DOMActivate");
-
- // opener에 조회 된 환자가 중간 청구 대상으로 처리
- if (midcflag == "N") {
- opener.javascript.fSetMidregist("N");
- }
- messageBox("등록취소가","I002");
- }
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:1066px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (checkOpener()) {
- window.close(); //F5 실행시 IE를 종료시킨다.
- }
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1125px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <caption id="caption17" class="cell_1" style="left:0px; top:5px; width:50px; height:24px; ">총건수</caption>
- <output id="output1" ref="/root/send/allcnt" class="output_fix" style="left:50px; top:8px; width:85px; height:19px; "/>
- <caption id="caption19" class="cell_1" style="left:134px; top:5px; width:50px; height:24px; ">환자수</caption>
- <output id="output2" ref="/root/send/patcnt" class="output_fix" style="left:184px; top:8px; width:85px; height:19px; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:5px; x2:270px; y2:5px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:29px; x2:270px; y2:29px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|