123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762 |
- <?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>1차회신서조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <fstreqlist>
- <fstreqlistinfo>
- <pid/>
- <hngnm/>
- <depthngnm/>
- <usernm/>
- <rgstdd/>
- <coophospnm/>
- <drnm/>
- <fstprint/>
- <replflag/>
- <orddeptcd/>
- <orddrid/>
- <coophospcd/>
- <coopdrcd/>
- <brthdd/>
- <age/>
- <sex/>
- <min_orddd/>
- <instcdnm/>
- <spcltestitem/>
- <fstprntdt/>
- <addr1/>
- <addr2/>
- <zipcd1/>
- <zipcd2/>
- <fstprntdt/>
- <seqno/>
- <orddd/>
- <cretno/>
- <acptseqno/>
- <printyn/>
- <drflag/>
- <telno1/>
- <telno2/>
- <faxno/>
- <url/>
- <mainemail/>
- <maindeptnm/>
- <printcheck/>
- <cc/>
- <afterplan/>
- <recnm/>
- <replnm/>
- <ctelno/>
- <cfaxno/>
- </fstreqlistinfo>
- </fstreqlist>
- <hospflag/>
- <hospinfo>
- <hospinfolist/>
- </hospinfo>
- <printinfo>
- <printlist>
- <pid/>
- <hngnm/>
- <orddd/>
- <depthngnm/>
- <usernm/>
- <rgstdd/>
- <coophospnm/>
- <drnm/>
- <coophospcd/>
- <coopdrcd/>
- <replmthd/>
- <orddeptcd/>
- <orddrid/>
- <fstprint/>
- <printyn/>
- </printlist>
- </printinfo>
- <patinfo>
- <patinfolist>
- <pid/>
- </patinfolist>
- </patinfo>
- <temp>
- <print/>
- </temp>
- </main>
- <send>
- <reqdata>
- <srchfromdd/>
- <srchtodd/>
- <hospgrade/>
- <coophospnm/>
- <drnm/>
- <coophospcd/>
- <coopdrcd/>
- <hospflag/>
- <printyn/>
- <pid/>
- <replflag/>
- <printvlaue>D</printvlaue>
- <fstprint/>
- </reqdata>
- <savedata>
- </savedata>
- </send>
- <init>
- <comcodelist>
- <replmthd>
- <A0422/>
- </replmthd>
- <replflag>
- <A0636/>
- </replflag>
- </comcodelist>
- <rex>
- <for>
- <coophospnm/>
- <drnm/>
- <brthdd/>
- <sex/>
- <age/>
- <orddd/>
- <depthngnm/>
- <usernm/>
- <min_orddd/>
- <spcltestitem/>
- <star/>
- </for>
- <coophospnm/>
- <drnm/>
- <instcdnm/>
- <addr1/>
- <addr2/>
- <zipcd1/>
- <zipcd2/>
- <star/>
- </rex>
- </init>
- <hidden>
- <srchfromdd/>
- <srchtodd/>
- <orddrid/>
- <pid/>
- <seqno/>
- <orddd/>
- <cretno/>
- <acptseqno/>
- <printcheck/>
- </hidden>
- </root>
- </instance>
- <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/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fGetComCdList();
-
- addComboItem("cmb_replflag", "", "-", "above");
- cmb_replflag.select(0);
- cmb_fstprint.select(0);
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRARC02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/fstreqlist"/>
- <submission id="TXARC02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**========================================================================================================================================
- * 공통코드조회(항목구분)
- =========================================================================================================================================*/
- function fGetComCdList(){
-
-
- // 공통코드 목록 가져오기
- zbcfGetCodeList(new Array("A0422", "A0636"), new Array("/root/init/comcodelist/replmthd", "/root/init/comcodelist/replflag") , true);
- model.refresh();
-
- // 그리드초기화
- model.removeNodeset("/root/main/fstreqlist/fstreqlistinfo");
-
- // 오늘 날짜로 세팅
- var curDt = getCurrentDate();
- model.setValue("/root/send/reqdata/srchfromdd" , curDt);
- model.setValue("/root/send/reqdata/srchtodd" , curDt);
-
- model.removeNodeset("/root/main/fstreqlist/fstreqlistinfo");
- model.refresh();
-
- }
-
- /**========================================================================================================================================
- * 1차회신서조회
- =========================================================================================================================================*/
- // 조회전 필수 체크
- function fCheckDate()
- {
- var fromdd = model.getValue("/root/send/reqdata/srchfromdd");
- var todd = model.getValue("/root/send/reqdata/srchtodd");
-
- if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
-
- messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
- return false;
- }
-
- if( getDateInterval(fromdd, todd) > 31 ){
- messageBox("조회가능한 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
- return false;
- }
-
- if( getDateInterval(fromdd, todd) < 0 ){
- messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
- return false;
- }
-
- return true;
- }
- function fGetFstReqList(){
-
- submit("TRARC02301");
-
- }
- /**========================================================================================================================================
- * 출력상태구분 update
- =========================================================================================================================================*/
- function fUpdateData(){
-
- //alert(model.getValue('/root/main/fstreqlist/fstreqlistinfo['+grd_fstreqlist.row+']/pid'));
- //alert(model.getValue('/root/main/fstreqlist/fstreqlistinfo['+grd_fstreqlist.row+']/seqno'));
- /*
- model.setValue("/root/main/savedata/savelist/pid" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/pid"));
- model.setValue("/root/main/savedata/savelist/fstprntdt" ,getCurrentDate());
- model.setValue("/root/main/savedata/savelist/seqno" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/seqno"));
- model.setValue("/root/main/savedata/savelist/orddd" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/orddd"));
- model.setValue("/root/main/savedata/savelist/cretno" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/cretno"));
- model.setValue("/root/main/savedata/savelist/acptseqno" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/acptseqno"));
- */
- model.resetInstanceNode("/root/send/savedata");
- //var savedata = grd_fstreqlist.getUpdateDataAll("u");
- var savedata = grd_fstreqlist.getUpdateData("update");
- // var savedata = grd_fstreqlist.getNode("/root/main/fstreqlist/fstreqlistinfo[printcheck='Y']");
- // grd_fstreqlist.
- model.setValue("/root/send/savedata", savedata);
- // copyNodesetType("/root/send/savedata", "/root/main/fstreqlist/fstreqlistinfo[printcheck='Y']");
- // model.copyNode("/root/send/savedata","/root/main/fstreqlist/fstreqlistinfo[printcheck='Y']");
- // model.setValue("/root/send/savedata", savedata);
- // var savedata = model.getValue("/root/send/savedata");
- // alert(model.getValue("/root/send/savedata"));
-
- if(submit("TXARC02301",false )== true){
- model.setValue('/root/send/reqdata/printvlaue', model.getValue('/root/main/temp/print'));
- fGetFstReqList();
- }
- }
-
-
- /**========================================================================================================================================
- * 1차회신서 출력
- =========================================================================================================================================*/
-
- /*model.setValue("/root/main/printinfo/printlist/pid" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/pid"));
- model.setValue("/root/main/printinfo/printlist/hngnm" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/hngnm"));
- model.setValue("/root/main/printinfo/printlist/orddd" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/orddd"));
- model.setValue("/root/main/printinfo/printlist/depthngnm" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/depthngnm"));
- model.setValue("/root/main/printinfo/printlist/usernm" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/usernm"));
- model.setValue("/root/main/printinfo/printlist/rgstdd" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/rgstdd"));
- model.setValue("/root/main/printinfo/printlist/coophospnm" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/coophospnm"));
- model.setValue("/root/main/printinfo/printlist/drnm" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/drnm"));
- model.setValue("/root/main/printinfo/printlist/replmthd" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/replmthd"));
- model.setValue("/root/main/printinfo/printlist/orddeptcd" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/orddeptcd"));
- model.setValue("/root/main/printinfo/printlist/orddrid" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/orddrid"));
- model.setValue("/root/main/printinfo/printlist/fstprint" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/fstprint"));
- model.setValue("/root/main/printinfo/printlist/printyn" , model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + grd_fstreqlist.row + "]/printyn"));
- model.refresh();
- setParameter("reportprintyn", "");
- exeReportPreview("RPARC02301", "XMLSTR", "/root/main/printinfo/printlist");
- //alert(getParameter('reportprintyn'));
- if (getParameter("reportprintyn") == "Y"){
- fUpdateData();
- }*/
-
-
- function ftest(param, hpnm, drnm, i ){
- model.makeNode("/root/init/rex["+param +"]/coophospnm");
- model.makeNode("/root/init/rex["+ param +"]/drnm");
- model.makeNode("/root/init/rex["+ param +"]/instcdnm");
- model.makeNode("/root/init/rex["+ param +"]/addr1");
- model.makeNode("/root/init/rex["+ param +"]/addr2");
- model.makeNode("/root/init/rex["+ param +"]/zipcd1");
- model.makeNode("/root/init/rex["+ param +"]/zipcd2");
-
- model.setValue("/root/init/rex["+ param +"]/coophospnm", hpnm);
- model.setValue("/root/init/rex["+ param +"]/drnm" , drnm);
- model.setValue("/root/init/rex["+ param +"]/instcdnm" , model.getValue(grd_fstreqlist.nodeset + "[" + i + "]/instcdnm"));
- model.setValue("/root/init/rex["+ param +"]/addr1" , model.getValue(grd_fstreqlist.nodeset + "[" + i + "]/addr1") );
- model.setValue("/root/init/rex["+ param +"]/addr2" , model.getValue(grd_fstreqlist.nodeset + "[" + i + "]/addr2") );
- model.setValue("/root/init/rex["+ param +"]/zipcd1" , model.getValue(grd_fstreqlist.nodeset + "[" + i + "]/zipcd1") );
- model.setValue("/root/init/rex["+ param +"]/zipcd2" , model.getValue(grd_fstreqlist.nodeset + "[" + i + "]/zipcd2") );
-
- }
-
- //1차회신서 출력 수정본(2007.12.18) - node새로생성
- function fFstReqListPrnt(){
- var df = 0;
- var irow = grd_fstreqlist.rows - grd_fstreqlist.fixedRows;
- var histhopnm = "";
- var cnt =0;
-
- model.removeNodeset("/root/init/rex");
-
- for(var i=1 ; i < irow ; i++){
-
- if(histhopnm != model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + i + "]/coophospnm") ) {
- alert(i +" : " + histhopnm+" : " +model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + i + "]/coophospnm") );
- histhopnm = model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + i + "]/coophospnm");
- cnt++;
-
- var hpnm = model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + i+ "]/coophospnm");
- var drnm = model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + i+ "]/drnm");
- ftest(cnt, hpnm, drnm , i);
- // }
-
-
-
- //model.makeNode("/root/init/rex[" + i + "]");
-
- // model.makeNode("/root/init/rex["+ i +"]/coophospnm");
- // model.makeNode("/root/init/rex["+ i +"]/drnm");
- // model.makeNode("/root/init/rex["+ i +"]/instcdnm");
- // model.makeNode("/root/init/rex["+ i +"]/addr1");
- // model.makeNode("/root/init/rex["+ i +"]/addr2");
- // model.makeNode("/root/init/rex["+ i +"]/zipcd1");
- // model.makeNode("/root/init/rex["+ i +"]/zipcd2");
- //
- //
- // model.setValue("/root/init/rex["+ i +"]/coophospnm", hpnm);
- // model.setValue("/root/init/rex["+ i +"]/drnm" , drnm);
- // model.setValue("/root/init/rex["+ i +"]/instcdnm" , model.getValue(grd_fstreqlist.nodeset + "[" + i + "]/instcdnm"));
- // model.setValue("/root/init/rex["+ i +"]/addr1" , model.getValue(grd_fstreqlist.nodeset + "[" + i + "]/addr1") );
- // model.setValue("/root/init/rex["+ i +"]/addr2" , model.getValue(grd_fstreqlist.nodeset + "[" + i + "]/addr2") );
- // model.setValue("/root/init/rex["+ i +"]/zipcd1" , model.getValue(grd_fstreqlist.nodeset + "[" + i + "]/zipcd1") );
- // model.setValue("/root/init/rex["+ i +"]/zipcd2" , model.getValue(grd_fstreqlist.nodeset + "[" + i + "]/zipcd2") );
- var jcnt =0 ;
- for( var j=1; j <= irow; j++){
-
- var hpnm1 = model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + j + "]/coophospnm");
- var drnm1 = model.getValue("/root/main/fstreqlist/fstreqlistinfo[" + j + "]/drnm");
-
- if (( hpnm == hpnm1) && ( drnm == drnm1 )){
- jcnt++;
-
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/coophospnm");
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/drnm");
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/pid");
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/brthdd");
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/sex");
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/age");
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/orddd");
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/depthngnm");
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/usernm");
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/min_orddd");
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/spcltestitem");
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/printcheck");
-
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt +"]/coophospnm" , hpnm1);
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt +"]/drnm" , drnm1);
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/pid" , model.getValue(grd_fstreqlist.nodeset + "[" + j + "]/pid") );
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/brthdd" , model.getValue(grd_fstreqlist.nodeset + "[" + j + "]/brthdd") );
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/sex" , model.getValue(grd_fstreqlist.nodeset + "[" + j + "]/sex") );
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/age" , model.getValue(grd_fstreqlist.nodeset + "[" + j + "]/age") );
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/orddd" , model.getValue(grd_fstreqlist.nodeset + "[" + j + "]/ordd") );
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/depthngnm" , model.getValue(grd_fstreqlist.nodeset + "[" + j + "]/depthngnm") );
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/usernm" , model.getValue(grd_fstreqlist.nodeset + "[" + j + "]/usernm") );
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/min_orddd" , model.getValue(grd_fstreqlist.nodeset + "[" + j + "]/min_orddd") );
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/spcltestitem" , model.getValue(grd_fstreqlist.nodeset + "[" + j + "]/spcltestitem") );
- model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/printcheck" , model.getValue(grd_fstreqlist.nodeset + "[" + j + "]/printcheck") );
-
-
- model.refresh();
-
- df = df + 1
- }
- if(df >= "4"){
- model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/star");
- // model.setValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/star" , model.getValue(grd_fstreqlist.nodeset + "[" + j + "]/star") );
- model.refresh();
- //model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/star");
- // model.makeValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/star", "S") ;
- // }else{
- // model.makeNode("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/star");
- // model.makeValue("/root/init/rex[" + cnt + "]/for[" + jcnt + "]/star", "") ;
- }
- }
- }
-
- }
-
- //return;
-
- setParameter("reportprintyn", "");
- exeReportPreview("RPARC02301", "XMLSTR", "/root/main/printinfo/printlist");
- //alert(getParameter('reportprintyn'));
- if (getParameter("reportprintyn") == "Y"){
- fUpdateData();
-
- }
- }
- /**========================================================================================================================================
- * 의뢰병원 / 의사명 팝업
- =========================================================================================================================================*/
- function fHospPopUp(){
- model.setValue("/root/main/hospflag", "N");
- modal("SPARH00200",1,1,1);
-
- if( model.getValue("/root/main/hospflag") == "Y" ) {
- model.setValue("/root/send/reqdata/coophospnm" , model.getValue("/root/main/hospinfo/hospinfolist/coophospnm"));
- model.setValue("/root/send/reqdata/coophospcd" , model.getValue("/root/main/hospinfo/hospinfolist/coophospcd"));
- model.setValue("/root/send/reqdata/coopdrcd" , model.getValue("/root/main/hospinfo/hospinfolist/coopdrcd"));
- model.setValue("/root/send/reqdata/hospflag" , model.getValue("/root/main/hospinfo/hospinfolist/clsmatyn"));
- model.setValue("/root/send/reqdata/drnm" , model.getValue("/root/main/hospinfo/hospinfolist/drnm"));
- }
- model.refresh();
- }
- /**========================================================================================================================================
- * 조회조건 refresh
- =========================================================================================================================================*/
- function fFocusOut(){
- model.setValue("/root/send/reqdata/coophospnm","");
- model.setValue("/root/send/reqdata/coophospcd","");
- model.setValue("/root/send/reqdata/drnm","");
- model.setValue("/root/send/reqdata/coopdrcd","");
- model.setValue("/root/send/reqdata/fstprint","");
-
- model.refresh();
- }
- /**========================================================================================================================================
- * 초기화
- =========================================================================================================================================*/
- function fClear(){
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/reqdata/srchfromdd", CurrentDate);
- model.setValue("/root/send/reqdata/srchtodd" , CurrentDate);
-
- model.resetInstanceNode("/root/send/reqdata/coophospnm");
- model.resetInstanceNode("/root/send/reqdata/drnm");
- model.resetInstanceNode("/root/send/reqdata/coophospcd");
- model.resetInstanceNode("/root/send/reqdata/coopdrcd");
- model.resetInstanceNode("/root/send/reqdata/fstprint");
- model.resetInstanceNode("/root/main/fstreqlist/fstreqlistinfo");
-
- cmb_replflag.select(0);
- model.refresh();
- }
-
- // 엑셀 저장
- function fExcel()
- {
- if (grd_fstreqlist.rows <= 1) return;
-
- var fileName = window.fileDialog("save", ",", false, "1차회신환자리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_fstreqlist.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }
-
- // 등록번호 조회 팝업
- function fPatPopUp()
- {
- if (ipt_pid.currentText.length> 0)
- {
- model.makeValue("/root/temp/pid", model.getValue("/root/send/search/pid"));
- model.makeValue("/root/temp/srchcond","1");
- model.makeValue("/root/temp/autoflag","Y");
- }
-
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
-
- //model.resetInstanceNode("/root/main/patinfo/patinfolist");
- //model.resetInstanceNode("/root/send/cond");
- model.setValue("/root/send/reqdata/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
-
-
- //fHistSearch();
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" 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:147px; height:14px; ">1차회신서조회</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClear();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption21" class="tit_2" style="left:0px; top:70px; width:190px; height:13px; ">1차회신서조회</caption>
- <group id="group4" style="left:0px; top:5px; width:1194px; height:55px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:55px; "/>
- <caption id="caption22" class="search_no_b" style="left:200px; top:6px; width:12px; height:17px; ">~</caption>
- <line id="line2" style="x1:1083px; y1:7px; x2:1083px; y2:50px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_srchfromdd" ref="/root/send/reqdata/srchfromdd" class="input_default" inputtype="date" style="left:95px; top:6px; width:100px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/send/reqdata/srchtodd" class="input_default" inputtype="date" style="left:215px; top:6px; width:100px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:6px; width:99px; height:17px; ">등록일자 :</caption>
- <caption id="caption3" class="search_name" style="left:355px; top:6px; width:147px; height:17px; ">의뢰병원 / 의사명 :</caption>
- <button id="btn_pat" class="icon_search" style="left:744px; top:7px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHospPopUp();
- ]]>
- </script>
- </button>
- <input id="opt_coophospnm" ref="/root/send/reqdata/coophospnm" class="output_fix" style="left:498px; top:6px; width:146px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- fFocusOut();
- ]]>
- </script>
- </input>
- <input id="opt_drnm" ref="/root/send/reqdata/drnm" class="output_fix" style="left:648px; top:6px; width:91px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- fFocusOut();
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1098px; top:17px; width:67px; height:28px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if ( !fCheckDate() ) return; //필수 저장여부 체크
-
- //출력상태를 업데이트 하기 위한 srchfromdd, srchtodd 값을 hidden필드에 임시저장한다.
- model.removenode('/root/hidden/srchfromdd');
- model.removenode('/root/hidden/srchtodd');
- model.removenode('/root/hidden/orddrid');
- model.removenode('/root/hidden/pid');
- model.removenode('/root/hidden/seqno');
- model.removenode('/root/hidden/orddd');
- model.removenode('/root/hidden/cretno');
- model.removenode('/root/hidden/acptseqno');
- model.removenode('/root/hidden/printcheck');
- model.removenode('/root/main/temp/print');
-
- model.makeNode('/root/hidden/srchfromdd');
- model.makeNode('/root/hidden/srchtodd');
- model.makeNode('/root/hidden/orddrid');
- model.makeNode('/root/hidden/pid');
- model.makeNode('/root/hidden/seqno');
- model.makeNode('/root/hidden/orddd');
- model.makeNode('/root/hidden/cretno');
- model.makeNode('/root/hidden/acptseqno');
- model.makeNode('/root/hidden/printcheck');
- model.makeNode('/root/main/temp/print');
-
-
- model.setValue('/root/hidden/srchfromdd', model.getValue('/root/send/reqdata/srchfromdd'));
- model.setValue('/root/hidden/srchtodd', model.getValue('/root/send/reqdata/srchtodd'));
- model.setValue('/root/hidden/orddrid', model.getValue('/root/send/reqdata/orddrid'));
- model.setValue('/root/hidden/pid', model.getValue('/root/send/reqdata/pid'));
- model.setValue('/root/hidden/seqno', model.getValue('/root/send/reqdata/seqno'));
- model.setValue('/root/hidden/orddd', model.getValue('/root/send/reqdata/orddd'));
- model.setValue('/root/hidden/cretno', model.getValue('/root/send/reqdata/cretno'));
- model.setValue('/root/hidden/acptseqno', model.getValue('/root/send/reqdata/acptseqno'));
- model.setValue('/root/hidden/printcheck', model.getValue('/root/send/reqdata/printcheck'));
- model.setValue('/root/main/temp/print', model.getValue('/root/send/reqdata/printvlaue'));
-
-
-
- fGetFstReqList();
- grd_fstreqlist.fixedcellcheckbox(0, 1) = true;
- ]]>
- </script>
- </button>
- <select1 id="printValue_rdo" ref="/root/send/reqdata/printvlaue" appearance="full" cellspacing="15" cols="2" rows="1" overflow="visible" style="left:885px; top:6px; width:170px; height:19px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>의뢰의사별</label>
- <value>D</value>
- </item>
- <item>
- <label>환자별</label>
- <value>P</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:790px; top:6px; width:90px; height:17px; ">출력조건 :</caption>
- <caption id="caption4" class="search_name" style="left:5px; top:32px; width:95px; height:17px; ">환자번호 :</caption>
- <input id="ipt_pid" ref="/root/send/reqdata/pid" class="input_search" style="left:95px; top:32px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="button1" class="icon_search" style="left:199px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatPopUp();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:355px; top:32px; width:180px; height:17px; ">진료정보공개동의여부 :</caption>
- <select1 id="cmb_replflag" ref="/root/send/reqdata/replflag" class="combo_search" appearance="minimal" style="left:525px; top:32px; width:118px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/replflag/A0636">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_fstprint" ref="/root/send/reqdata/fstprint" class="combo_search" appearance="minimal" style="left:885px; top:32px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>- 전체 -</label>
- <value/>
- </item>
- <item>
- <label>미출력</label>
- <value>N</value>
- </item>
- <item>
- <label>기출력</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:790px; top:32px; width:90px; height:17px; ">출력여부 :</caption>
- </group>
- <datagrid id="grd_fstreqlist" nodeset="/root/main/fstreqlist/fstreqlistinfo" visibility="visible" allowselection="true" autoresize="true" caption="^등록번호^환자명^진료일자^진료과^진료의^등록일자^병원명^의뢰의사명^발송방법^출력상태구분^동의여부^fstprntdt^cretno^acptseqno^seqno^생년월일^나이^성별^외래예약일^기관명^특수검사항목^주소1^주소2^우편번호1^printyn^우편번호2" colsep="^" colwidth="24, 83, 83, 90, 120, 83, 90, 197, 100, 108, 100, 85, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:92px; width:1195px; height:640px; ">
- <col checkvalue="Y,N" ref="printcheck" type="checkbox"/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="depthngnm" style="text-align:left; "/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="coophospnm" style="text-align:left; "/>
- <col ref="drnm" style="text-align:center; "/>
- <col disabled="true" ref="replmthd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/replmthd/A0422">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstprint" style="text-align:center; "/>
- <col disabled="true" ref="replflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/replflag/A0636">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="min_orddd" visibility="hidden"/>
- <col ref="instcdnm" visibility="hidden"/>
- <col ref="spcltestitem" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="coophospcd" visibility="hidden"/>
- <col ref="coopdrcd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="acptseqno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="fstprntdt" visibility="hidden"/>
- <col ref="printyn" visibility="hidden"/>
- <col ref="zipcd2" visibility="hidden"/>
- </datagrid>
- <button id="button15" class="btn2_letter7" style="left:1054px; top:69px; width:97px; height:19px; ">
- <caption>1차회신서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //조회조건의 srchfromdd, srchtodd, drid를 printYN update시 paramter로 넘겨주기 위한 savedata 인스턴스를 세팅한다.
- /*
- model.setValue("/root/main/savedata/savelist/srchfromdd", model.getValue("/root/hidden/srchfromdd"));
- model.setValue("/root/main/savedata/savelist/srchtodd", model.getValue("/root/hidden/srchtodd"));
- model.setValue("/root/main/savedata/savelist/fstprntdt", getCurrentDate() + getCurrentTime());
- model.setValue("/root/main/savedata/savelist/orddrid", model.getValue("/root/hidden/orddrid"));
-
- model.setValue("/root/main/savedata/savelist/pid", model.getValue("/root/hidden/pid"));
- model.setValue("/root/main/savedata/savelist/seqno", model.getValue("/root/hidden/seqno"));
- model.setValue("/root/main/savedata/savelist/orddd", model.getValue("/root/hidden/orddd"));
- model.setValue("/root/main/savedata/savelist/cretno", model.getValue("/root/hidden/cretno"));
- model.setValue("/root/main/savedata/savelist/acptseqno", model.getValue("/root/hidden/acptseqno"));
- */
- //fFstReqListPrnt();
-
- // 미출력건만 출력하기 위해서 수정(2008.09.25)
-
- model.removeNodeset("/root/main/printinfo/printlist");
- model.makeNode("/root/main/printinfo/printlist");
- //copyNodesetType("/root/main/printinfo/printlist", "/root/main/fstreqlist/fstreqlistinfo[printyn ='N']");
- copyNodesetType("/root/main/printinfo/printlist", "/root/main/fstreqlist/fstreqlistinfo[printcheck='Y']");
-
-
- setParameter("reportprintyn", "");
- //exeReportPreview("RPARC02301", "XMLSTR", "/root/main/fstreqlist/fstreqlistinfo");
-
- if (model.getValue("/root/send/reqdata/printvlaue")=="P"){
-
- exeReportPreview("RPARC02302", "XMLSTR", "/root/main/printinfo/printlist");
- }
- if(model.getValue("/root/send/reqdata/printvlaue")=="D"){
- exeReportPreview("RPARC02301", "XMLSTR", "/root/main/printinfo/printlist");
- }
-
- if (getParameter("reportprintyn") == "Y" ){
- fUpdateData();
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:88px; x2:1194px; y2:88px; "/>
- <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:69px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|