12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538 |
- <?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="">
- <main>
- <patinforgst>
- <patinforgstlist/>
- </patinforgst>
- <patinfoupdt>
- <patinfoupdtlist/>
- </patinfoupdt>
- <patinfocncl>
- <patinfocncllist/>
- </patinfocncl>
- <result/>
- <popupendflag/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <dayflag/>
- <fromdd/>
- <todd/>
- <orddept/>
- <orddr/>
- <specordyn/>
- <rsrvflag/>
- <insukind/>
- <acptdd/>
- <acptno/>
- <tablename/>
- <openflag/>
- <fstacptdt/>
- <flag/>
- <fstrgstdt/>
- </send>
- <init>
- <comncdlist>
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <P0021list>
- <P0021>
- <cdnm/>
- <cdid/>
- </P0021>
- </P0021list>
- <P0341list>
- <P0341>
- <cdnm/>
- <cdid/>
- </P0341>
- </P0341list>
- <P0022list>
- <P0022>
- <cdnm/>
- <cdid/>
- </P0022>
- </P0022list>
- <P0020list>
- <P0020>
- <cdnm/>
- <cdid/>
- </P0020>
- </P0020list>
- <P0029list>
- <P0029>
- <cdnm/>
- <cdid/>
- </P0029>
- </P0029list>
- <P0344list>
- <P0344>
- <cdnm/>
- <cdid/>
- </P0344>
- </P0344list>
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <P0010list>
- <P0010>
- <cdnm/>
- <cdid/>
- </P0010>
- </P0010list>
- </comncdlist>
- <disccd>
- <disccdlist>
- <cd/>
- <nm/>
- </disccdlist>
- </disccd>
- </init>
- <init_pam>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- <deptengabbr/>
- <reqdeptno/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddrid>
- <reducd>
- <cd/>
- <nm/>
- </reducd>
- <uncocd>
- <cd/>
- <nm/>
- </uncocd>
- </init>
- </init_pam>
- <hidden>
- </hidden>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- </source>
- <tmp>
- <flag/>
- <openflag/>
- </tmp>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMO00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinforgst"/>
- <submission id="TRPMO00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfocncl"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMO00605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfoupdt"/>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" replace="instance" resultref="/root/main/patinfo"/>
- <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init_pam/init"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //팝업화면으로 사용될 때
- if(checkOpener()){
- var flag = opener.javascript.getParameter("openflag");
- model.setValue("/root/tmp/openflag", flag);
-
- if( flag == 'T' ){
- group5.visible = false;
- group3.visible = true;
- swt_outpatient.selectedIndex = 2;
- btn_outrgst.visible = false;
- btn_outupdt.visible = false;
- btn_outcncl.visible = false;
- }else{
- group5.visible = true;
- group3.visible = false;
- }
- }
-
- zbcfGetCodeList(new Array("P0008","P0021","P0341","P0022","P0020","P0029","P0344", "P0010"),
- new Array("/root/init/comncdlist/P0008list"
- ,"/root/init/comncdlist/P0021list"
- ,"/root/init/comncdlist/P0341list"
- ,"/root/init/comncdlist/P0022list"
- ,"/root/init/comncdlist/P0020list"
- ,"/root/init/comncdlist/P0029list"
- ,"/root/init/comncdlist/P0344list"
- ,"/root/init/comncdlist/P0010list"));
-
- //진료과코드 진료의사ID 조회
- // pamGetDeptCDDrIDList();
-
- submit("TRPAMCOM01");
-
- /*
- //진료과에 '전체'항목 추가
- model.makeNode("/root/init/temp/orddeptcd/cd");
- model.makeNode("/root/init/temp/orddeptcd/nm");
- copyNodesetType("/root/init_pam/init/orddeptcd", "/root/init/temp/orddeptcd", "before");
- model.removeNodeset("/root/init/temp/orddeptcd");
- // fComCDRef(); //자체기초코드 조회
- */
-
- addComboItem("cmb_orddept","전체","","above");
- fInitialize();
-
-
- //간호 요청사항 추가 - 2008-01-04
- var node = getGlobalVariable("paminfo");
- if( node != '' && node != null){
- var orddrid = '';
- var orddeptcd = '';
- var pid = '';
- model.makeNode("/root/temp/paminfo");
- setCSVToNode("/root/temp/paminfo", node);
-
- var ioflag = model.getValue("/root/temp/paminfo/list/ioflag");
- if( ioflag == 'O' || ioflag == 'o' ){
- orddrid = model.getValue("/root/temp/paminfo/list/orddrid");
- }else{
- orddrid = model.getValue("/root/temp/paminfo/list/medispclid");
- }
- orddeptcd = model.getValue("/root/temp/paminfo/list/orddeptcd");
- pid = model.getValue("/root/temp/paminfo/list/pid");
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/orddept", orddeptcd);
- model.setValue("/root/send/orddr", orddrid);
- model.refresh();
-
- swt_outpatient.selectedIndex = 0;
- btn_search.dispatch("DOMActivate");
- //ipt_pid.dispatch("DOMActivate");
- }else if (checkOpener()){
- //팝업화면으로 사용될 때
- var flag = opener.javascript.getParameter("openflag");
- var pid = opener.javascript.getParameter("pid");
- model.setValue("/root/send/openflag", opener.javascript.getParameter("openflag"));
- model.setValue("/root/send/pid", opener.javascript.getParameter("pid"));
- model.setValue("/root/send/hngnm", opener.javascript.getParameter("hngnm"));
- model.setValue("/root/send/rrgstno1", opener.javascript.getParameter("rrgstno1"));
- model.setValue("/root/send/rrgstno2", opener.javascript.getParameter("rrgstno2"));
- //model.setValue("/root/send/fromdd", opener.javascript.getParameter("fromdd"));
- //model.setValue("/root/send/todd", opener.javascript.getParameter("todd"));
- model.setValue("/root/send/orddept", opener.javascript.getParameter("orddeptcd"));
- model.setValue("/root/send/orddr", opener.javascript.getParameter("orddrid"));
- model.setValue("/root/send/specordyn", opener.javascript.getParameter("specordyn"));
- model.setValue("/root/send/rsrvflag", opener.javascript.getParameter("rsrvflag"));
- model.setValue("/root/send/insukind", opener.javascript.getParameter("insukind"));
- model.setValue("/root/send/acptdd", opener.javascript.getParameter("acptdd"));
- model.setValue("/root/send/acptno", opener.javascript.getParameter("acptno"));
- model.setValue("/root/send/tablename", opener.javascript.getParameter("tablename"));
- model.setValue("/root/send/fstacptdt", opener.javascript.getParameter("fstacptdt"));
- model.setValue("/root/send/fstrgstdt", opener.javascript.getParameter("fstrgstdt"));
- //var array_parm = SMPMO00200_PARM.split("▦");
- var flag = model.getValue("/root/tmp/openflag");
- var pid = model.getValue("/root/send/pid");
- var hngnm = model.getValue("/root/send/hngnm");
- var rrgstno1 = model.getValue("/root/send/rrgstno1");
- var rrgstno2 = model.getValue("/root/send/rrgstno2");
-
- /*
- //전화예약에서 조회시 환자정보가 없을경우
- if(flag == 'T'){
- if( pid == '' || pid == null || pid == '-' || pid == ' ' ){
- if( hngnm == '' || hngnm == null || hngnm == '-' || hngnm == ' ' ){
- if( rrgstno1 == '' || rrgstno1 == null || rrgstno1 == '-' || rrgstno1 == ' ' ){
- if( rrgstno2 == '' || rrgstno2 == null || rrgstno2 == '-' || rrgstno2 == ' ' ){
- var curDate = getCurrentDate();
- model.setValue("/root/send/fromdd", curDate);
- model.setValue("/root/send/todd", curDate);
- }
- }
- }
- }
- }else{
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = getCurrentDate();
- model.setValue("/root/send/dayflag", "O");
- model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-2,"Y").getDateFormat());
- model.setValue("/root/send/todd", '99991231');
- }
- */
-
- if( flag == 'T' ){
- // swt_outpatient.selectedIndex = 2;
- // btn_outrgst.visible = false;
- // btn_outupdt.visible = false;
- // btn_outcncl.visible = false;
-
- if( hngnm.length > 0 ){
- button2.dispatch("DOMActivate");
- }
- }else{
- swt_outpatient.selectedIndex = 0;
- if( pid.length > 0 ){
- btn_search.dispatch("DOMActivate");
- }
- }
- }else{
- group5.visible = true;
- group3.visible = false;
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- function fCheckSearchValues(){
- var pid = model.getValue("/root/send/pid");
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
- var orddeptcd = model.getValue("/root/send/orddept");
- var orddrid = model.getValue("/root/send/orddr");
- var openflag = model.getValue("/root/tmp/openflag");
-
- if(openflag != 'T'){
- if(pid == null || pid == "" || pid == " " || pid == "-"){
- messageBox("등록번호는 필수 입력입니다.", "E999", "");
- return false;
- }
- }
-
- if( fromdd == '' || fromdd == ' ' || todd == '' || todd == ' '){
-
- messageBox("일자구분은 외래등록조회 필수조건입니다.", "E999", "");
- return false;
-
- }else if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
-
- messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
- return false;
-
- // }else if( getDateInterval(fromdd, todd) > 31 ){
- //
- // messageBox("외래등록조회가능한 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
- // return false;
-
- }else if( getDateInterval(fromdd, todd) < 0 ){
-
- messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
- return false;
-
- }
- /*
- else{
-
- if( fromdd == '' || fromdd == ' ' || todd == '' || todd == ' '){
-
- messageBox("일자구분은 외래등록조회 필수조건입니다.", "E999", "");
- return false;
-
- }else if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
-
- messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
- return false;
-
- }else if( getDateInterval(fromdd, todd) > 31 ){
-
- messageBox("외래등록조회가능한 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
- return false;
-
- }else if( (orddeptcd == '' || orddeptcd == ' ' || orddeptcd == '-' || orddrid == '' || orddrid == ' ' || orddrid == '-') && getDateInterval(fromdd, todd) > 0 ){
-
- messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과/진료의는 조회 필수 조건입니다. 진료과/진료의를 입력하세요.", "E999", "");
- return false;
-
- }else if( getDateInterval(fromdd, todd) < 0 ){
-
- messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
- return false;
-
- }
- }
- */
- return true;
- }
-
- function fInitialize() {
- //model.removeNodeset("/root/main/insukindcdspec/insukindcdspeclist");
- model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/main/patinforgst/patinforgstlist");
- model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
- model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
-
- //외래변경 탭 선택 조건
- // model.setValue("/root/tmp/flag", '');
-
- //일자구분 세팅 - 2007-10-16 이동식 추가
- model.setValue("/root/send/dayflag", "O"); //기본 진료일자로 세팅한다..
-
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = getCurrentDate();
- model.setValue("/root/send/dayflag", "O");
- model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-2,"Y").getDateFormat());
- model.setValue("/root/send/todd", '99991231');
-
- button2.visible = true;
- btn_search.visible = true;
-
- model.setFocus("ipt_pid");
-
- if (checkOpener()){ //팝업화면으로 사용될 때
- var flag = opener.javascript.getParameter("openflag");
- if( flag == 'T' ){
- swt_outpatient.selectedIndex = 2;
- btn_outrgst.visible = false;
- btn_outupdt.visible = false;
- btn_outcncl.visible = false;
-
- var curDate = getCurrentDate();
- model.setValue("/root/send/fromdd", curDate);
- model.setValue("/root/send/todd", curDate);
- }
- }else{
-
- swt_outpatient.selectedIndex = 0;
- btn_outrgst.selected = true;
- btn_outupdt.selected = false;
- btn_outcncl.selected = false;
-
- }
-
- model.refresh();
- }
- function fSearch(){
-
- if( model.getValue("/root/main/popupendflag") == "ok" ){
- //인적사항에 변경이 있는지를 비교하기 위해서 tmp에 인적사항을 미리 저장해 놓는다.
- model.makeNode("/root/hidden/tmpnode");
- model.copyNode("/root/hidden/tmpnode", "/root/main/patinfo");
-
- //보험/감면/진료기록/신생하*산모내역 조회
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- submit("TRPMC01401");
- //model.makeNode("/root/main/popupendflag");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" 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:189px; height:14px; ">외래등록조회</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_clear" accesskey="f9" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group3" style="left:0px; top:10px; width:1195px; height:75px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:75px; "/>
- <line id="line3" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption12" class="search_name" visibility="hidden" style="left:17px; top:40px; width:86px; height:17px; ">진료과 :</caption>
- <select1 id="combo3" ref="/root/send/orddept" class="combo_search" visibility="hidden" appearance="minimal" style="left:92px; top:40px; width:142px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- combo5.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + combo3.value + "']";
- model.setValue("/root/send/orddr", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption13" class="search_name" visibility="hidden" style="left:255px; top:40px; width:86px; height:17px; ">진료의 :</caption>
- <caption id="caption14" class="search_name" visibility="hidden" style="left:664px; top:40px; width:86px; height:17px; ">예약구분 :</caption>
- <select1 id="combo4" ref="/root/send/rsrvflag" class="combo_search" visibility="hidden" appearance="minimal" style="left:752px; top:40px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo5" ref="/root/send/orddr" class="combo_search" visibility="hidden" appearance="minimal" style="left:330px; top:40px; width:70px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orddeptcd = model.getValue("/root/send/orddept");
-
- if (orddeptcd == null || orddeptcd == "" || orddeptcd == " " || orddeptcd == "-")
- {
- messageBox("진료과 선택을 먼저 하십시요!","E999","");
- model.setValue("/root/send/orddr","");
- //cmb_orddrid.dispatch("xforms-value-changed");
- model.refresh();
- model.setFocus("cmb_orddept");
- return;
-
- }else{
- var specordyn = model.getValue("/root/init/orddrid/orddridlist[cd = '" + combo5.value + "']/sp");
- model.setValue("/root/send/specordyn", specordyn);
- model.refresh();
- }
- ]]>
- </script>
- </select1>
- <input id="input4" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:894px; top:8px; width:90px; height:19px; "/>
- <input id="input5" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:1004px; top:8px; width:90px; height:19px; "/>
- <button id="button1" class="icon_search" style="left:219px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
-
- var popupendflag = model.getValue("/root/main/popupendflag");
-
- if (popupendflag == "ok")
- {
- //model.setValue("/root/send/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- var ptbs_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var ptbs_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var ptbs_rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var ptbs_rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
-
- // if (ptbs_pid != null && ptbs_pid != "" && ptbs_pid != " " && ptbs_pid != "-")
- // {
- model.setValue("/root/send/pid",ptbs_pid);
- model.setValue("/root/send/hngnm",ptbs_hngnm);
- model.setValue("/root/send/rrgstno1",ptbs_rrgstno1);
- model.setValue("/root/send/rrgstno2",ptbs_rrgstno2);
- model.refresh();
- // }
-
- }
-
-
-
- // modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- // var strpid=model.getValue("/root/main/patinfo/patinfolist/pid");
- // model.setValue("/root/send/pid",strpid);
- // model.setValue("/root/hidden/source/pid",strpid);
- // ipt_hngnm.value=model.getValue("/root/main/patinfo/patinfolist/hngnm");
- // model.refresh();
- ]]>
- </script>
- </button>
- <input id="input6" ref="/root/send/pid" class="input_search" style="left:105px; top:8px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- model.removeNodeset("/root/main/patinforgst/patinforgstlist");
- model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
- model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
-
- // grd_outrgst.rebuild();
- // grd_outcncl.rebuild();
- // grd_outupdtcncl.rebuild();
-
- vcheck_pid = input6.currentText;
- //환자번호 null체크
- if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- model.setValue("/root/send/pid","");
- model.setValue("/root/send/hngnm","");
- model.setValue("/root/send/rrgstno1","");
- model.setValue("/root/send/rrgstno2","");
- model.refresh();
-
- messageBox("환자등록번호가 입력되지","E007");
- return;
- }
- //환자번호 조건으로 인적정보 조회
- model.setValue("/root/source/srchcond", "1");
- model.setValue("/root/source/pid", input6.currentText);
- model.setValue("/root/send/pid", input6.currentText);
- //환자기본정보 node clear
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
-
- model.resetInstanceNode("/root/send/hngnm");
- model.resetInstanceNode("/root/send/rrgstno1");
- model.resetInstanceNode("/root/send/rrgstno2");
- //환자등록번호 체크
- if(submit("TRPMC02500")){
- var vcheck_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- //조회내역 체크
- model.resetInstanceNode("/root/send/pid");
- messageBox("존재하지 않는 등록번호","E008");//E008=입니다
- fInitialize();
- return;
- }
-
- model.setValue("/root/send/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/rrgstno1",model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/send/rrgstno2",model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
-
- //조회되는 항목들 clear
- btn_search.dispatch("DOMActivate");
- }
- else {
- messageBox("존재하지 않는 등록번호","E008");//E008=입니다
- fInitialize();
- model.setFocus("ipt_pid");
- model.refresh();
- return;
- }
- }
-
- ]]>
- </script>
- </input>
- <caption id="caption15" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption16" class="search_name" visibility="hidden" style="left:420px; top:40px; width:86px; height:17px; ">선택진료 :</caption>
- <select1 id="combo6" ref="/root/send/specordyn" class="combo_search" disabled="true" visibility="hidden" appearance="minimal" style="left:508px; top:40px; width:144px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0344list/P0344">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo7" ref="/root/send/insukind" class="combo_search" visibility="hidden" appearance="minimal" style="left:988px; top:40px; width:106px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption17" class="search_name" visibility="hidden" style="left:900px; top:40px; width:86px; height:17px; ">보험유형 :</caption>
- <select1 id="radio3" ref="/root/send/dayflag" class="radio_search" appearance="full" overflow="visible" style="left:754px; top:10px; width:69px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>진료일자</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio4" ref="/root/send/dayflag" class="s" appearance="full" overflow="visible" style="left:823px; top:10px; width:70px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>접수일자</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <caption id="caption18" class="search_name" style="left:664px; top:10px; width:86px; height:17px; ">일자구분 :</caption>
- <input id="input7" ref="/root/send/hngnm" class="input_search" disabled="true" style="left:316px; top:8px; width:84px; height:19px; "/>
- <caption id="caption19" class="search_name" style="left:255px; top:8px; width:61px; height:17px; ">이름 :</caption>
- <caption id="caption20" class="search_name" style="left:420px; top:8px; width:86px; height:17px; ">주민번호 :</caption>
- <input id="input8" ref="/root/send/rrgstno1" class="input_search" disabled="true" maxlength="6" format="999999" style="left:508px; top:8px; width:70px; height:19px; "/>
- <input id="input9" ref="/root/send/rrgstno2" class="input_search" disabled="true" maxlength="7" format="9999999" style="left:582px; top:8px; width:70px; height:19px; "/>
- <button id="button2" class="btn1_letter2" style="left:1122px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var flag = model.getValue("/root/tmp/openflag");
- var pid = model.getValue("/root/send/pid");
- var hngnm = model.getValue("/root/send/hngnm");
- var rrgstno1 = model.getValue("/root/send/rrgstno1");
- var rrgstno2 = model.getValue("/root/send/rrgstno2");
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
-
- /*
- //전화예약에서 조회시 환자정보가 없을경우
- if(flag == 'T'){
- if( pid == '' || pid == null || pid == '-' || pid == ' ' ){
- if( hngnm == '' || hngnm == null || hngnm == '-' || hngnm == ' ' ){
- if( rrgstno1 == '' || rrgstno1 == null || rrgstno1 == '-' || rrgstno1 == ' ' ){
- if( rrgstno2 == '' || rrgstno2 == null || rrgstno2 == '-' || rrgstno2 == ' ' ){
- if(getDateInterval(fromdd, todd) > 7){
- if(messageBox("일주일 이상의 이력을 조회 하시면 시스템에 과부하가 발생 할 수도 있습니다. 계속 하시겠습니까?", "Q999", "") != 6 ){
- return;
- }
- }
- }
- }
- }
- }
- }
- */
- if( fCheckSearchValues()){
-
- if (swt_outpatient.selectedIndex == 0 ) {
-
- model.removeNodeset("/root/main/patinforgst/patinforgstlist");
- model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
- submit("TRPMO00603");
- swt_outpatient.selectedIndex = 0;
- btn_outrgst.selected = true;
- btn_outupdt.selected = false;
- btn_outcncl.selected = false;
-
- var histstat = model.getValue("/root/main/patinforgst/patinforgstlist/histstat");
-
-
- mgrd_outrgst.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
- setRowStyle("mgrd_outrgst", "5","Z","histstat","equal"); //row의 색상을 변경한다.
- mgrd_outrgst.rebuild();
- model.refresh();
-
- }else if (swt_outpatient.selectedIndex == 2 ) {
-
-
- model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
- submit("TRPMO00605");
- swt_outpatient.selectedIndex = 2;
- btn_outrgst.selected = false;
- btn_outupdt.selected = true;
- btn_outcncl.selected = false;
-
- var histstat = model.getValue("/root/main/patinfoupdt/patinfoupdtlist/histstat");
-
-
- grd_outupdtcncl.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
- setRowStyle("grd_outupdtcncl", "3","T","histstat","equal"); // 병실정보row의 색상을 변경한다.
- setRowStyle("grd_outupdtcncl", "3","R","histstat","equal");
- setRowStyle("grd_outupdtcncl", "3","X","histstat","equal");
- grd_outupdtcncl.rebuild();
-
- model.refresh();
-
-
- }else if (swt_outpatient.selectedIndex == 1 ) {
-
- model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
- submit("TRPMO00604");
- swt_outpatient.selectedIndex = 1;
- btn_outrgst.selected = false;
- btn_outupdt.selected = false;
- btn_outcncl.selected = true;
- model.refresh();
- }
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption11" style="left:989px; top:8px; width:15px; height:17px; font-weight:bold; ">~</caption>
- </group>
- <group id="group5" style="left:0px; top:10px; width:1195px; height:75px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:75px; "/>
- <line id="line13" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption83" style="left:989px; top:8px; width:15px; height:17px; font-weight:bold; ">~</caption>
- <caption id="caption1" class="search_name" style="left:17px; top:40px; width:86px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddept" ref="/root/send/orddept" class="combo_search" appearance="minimal" style="left:92px; top:40px; width:142px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init_pam/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init_pam/init/orddrid[dp = '" + cmb_orddept.value + "']";
- model.setValue("/root/send/orddr", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:255px; top:40px; width:86px; height:17px; ">진료의 :</caption>
- <caption id="caption5" class="search_name" style="left:664px; top:40px; width:86px; height:17px; ">예약구분 :</caption>
- <select1 id="cmb_rsrvflag" ref="/root/send/rsrvflag" class="combo_search" appearance="minimal" style="left:752px; top:40px; width:136px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddr" ref="/root/send/orddr" class="combo_search" appearance="minimal" style="left:330px; top:40px; width:70px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init_pam/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orddeptcd = model.getValue("/root/send/orddept");
-
- if (orddeptcd == null || orddeptcd == "" || orddeptcd == " " || orddeptcd == "-")
- {
- messageBox("진료과 선택을 먼저 하십시요!","E999","");
- model.setValue("/root/send/orddr","");
- //cmb_orddrid.dispatch("xforms-value-changed");
- model.refresh();
- model.setFocus("cmb_orddept");
- return;
-
- }else{
- var specordyn = model.getValue("/root/init/orddrid/orddridlist[cd = '" + cmb_orddr.value + "']/sp");
- model.setValue("/root/send/specordyn", specordyn);
- model.refresh();
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:894px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:1004px; top:8px; width:90px; height:19px; "/>
- <button id="btn_ptbs_search" class="icon_search" style="left:219px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
-
- var popupendflag = model.getValue("/root/main/popupendflag");
-
- if (popupendflag == "ok")
- {
- //model.setValue("/root/send/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- var ptbs_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var ptbs_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var ptbs_rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var ptbs_rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
-
- // if (ptbs_pid != null && ptbs_pid != "" && ptbs_pid != " " && ptbs_pid != "-")
- // {
- model.setValue("/root/send/pid",ptbs_pid);
- model.setValue("/root/send/hngnm",ptbs_hngnm);
- model.setValue("/root/send/rrgstno1",ptbs_rrgstno1);
- model.setValue("/root/send/rrgstno2",ptbs_rrgstno2);
- // 자동조회
- btn_search.dispatch("DOMActivate");
- model.refresh();
- // }
-
- }
-
- // modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- // var strpid=model.getValue("/root/main/patinfo/patinfolist/pid");
- // model.setValue("/root/send/pid",strpid);
- // model.setValue("/root/hidden/source/pid",strpid);
- // ipt_hngnm.value=model.getValue("/root/main/patinfo/patinfolist/hngnm");
- // model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/send/pid" class="input_search" imemode="alpha" style="left:105px; top:8px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- model.removeNodeset("/root/main/patinforgst/patinforgstlist");
- model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
- model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
-
- // grd_outrgst.rebuild();
- // grd_outcncl.rebuild();
- // grd_outupdtcncl.rebuild();
- // model.refresh();
- vcheck_pid = ipt_pid.currentText;
- //환자번호 null체크
- if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- model.setValue("/root/send/pid","");
- model.setValue("/root/send/hngnm","");
- model.setValue("/root/send/rrgstno1","");
- model.setValue("/root/send/rrgstno2","");
- model.refresh();
-
- messageBox("환자등록번호가 입력되지","E007");
- return;
- }
- //환자번호 조건으로 인적정보 조회
- model.setValue("/root/source/srchcond", "1");
- model.setValue("/root/source/pid", vcheck_pid);
- model.setValue("/root/send/pid", vcheck_pid);
-
-
- //환자기본정보 node clear
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
-
- model.resetInstanceNode("/root/send/hngnm");
- model.resetInstanceNode("/root/send/rrgstno1");
- model.resetInstanceNode("/root/send/rrgstno2");
-
- //환자등록번호 체크
- if(submit("TRPMC02500")){
- var vcheck_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- //조회내역 체크
- model.resetInstanceNode("/root/send/pid");
- messageBox("존재하지 않는 등록번호","E008");//E008=입니다
- fInitialize();
- return;
- }
-
- model.setValue("/root/send/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/rrgstno1",model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/send/rrgstno2",model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
-
- //조회되는 항목들 clear
- btn_search.dispatch("DOMActivate");
- }
- else {
- messageBox("존재하지 않는 등록번호","E008");//E008=입니다
- fInitialize();
- model.setFocus("ipt_pid");
- model.refresh();
- return;
- }
- }
-
- ]]>
- </script>
- </input>
- <caption id="caption21" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption7" class="search_name" style="left:420px; top:40px; width:86px; height:17px; ">선택진료 :</caption>
- <select1 id="combo1" ref="/root/send/specordyn" class="combo_search" disabled="true" appearance="minimal" style="left:508px; top:40px; width:144px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0344list/P0344">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/send/insukind" class="combo_search" appearance="minimal" style="left:988px; top:40px; width:106px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:900px; top:40px; width:86px; height:17px; ">보험유형 :</caption>
- <select1 id="radio1" ref="/root/send/dayflag" class="radio_search" appearance="full" overflow="visible" style="left:754px; top:10px; width:69px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>진료일자</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio2" ref="/root/send/dayflag" class="s" appearance="full" overflow="visible" style="left:823px; top:10px; width:70px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>접수일자</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:664px; top:10px; width:86px; height:17px; ">일자구분 :</caption>
- <input id="input1" ref="/root/send/hngnm" class="input_search" disabled="true" style="left:316px; top:8px; width:84px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:255px; top:8px; width:61px; height:17px; ">이름 :</caption>
- <caption id="caption10" class="search_name" style="left:420px; top:8px; width:86px; height:17px; ">주민번호 :</caption>
- <input id="input2" ref="/root/send/rrgstno1" class="input_search" disabled="true" maxlength="6" format="999999" style="left:508px; top:8px; width:70px; height:19px; "/>
- <input id="input3" ref="/root/send/rrgstno2" class="input_search" disabled="true" maxlength="7" format="9999999" style="left:582px; top:8px; width:70px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var flag = model.getValue("/root/tmp/openflag");
- var pid = model.getValue("/root/send/pid");
- var hngnm = model.getValue("/root/send/hngnm");
- var rrgstno1 = model.getValue("/root/send/rrgstno1");
- var rrgstno2 = model.getValue("/root/send/rrgstno2");
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
-
- //환자번호 없을 경우는 조회 블럭킹 처리(2018/02/08)
- if(isNull(model.getValue("/root/send/pid"))){
- messageBox("조회시 환자번호는 필수입니다.", "E999", "");
- return;
- }
- //환자번호 없을 경우는 조회 블럭킹 처리(2018/02/08)
-
- //전화예약에서 조회시 환자정보가 없을경우
- if(flag == 'T'){
- if( pid == '' || pid == null || pid == '-' || pid == ' ' ){
- if( hngnm == '' || hngnm == null || hngnm == '-' || hngnm == ' ' ){
- if( rrgstno1 == '' || rrgstno1 == null || rrgstno1 == '-' || rrgstno1 == ' ' ){
- if( rrgstno2 == '' || rrgstno2 == null || rrgstno2 == '-' || rrgstno2 == ' ' ){
- if(getDateInterval(fromdd, todd) > 7){
- if(messageBox("일주일 이상의 이력을 조회 하시면 시스템에 과부하가 발생 할 수도 있습니다. 계속 하시겠습니까?", "Q999", "") != 6 ){
- return;
- }
- }
- }
- }
- }
- }
- }
-
- if( fCheckSearchValues()){
-
- // model.removeNodeset("/root/main/patinforgst/patinforgstlist");
- // model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
- // model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
-
-
-
- if (swt_outpatient.selectedIndex == 0 ) {
-
- model.removeNodeset("/root/main/patinforgst/patinforgstlist");
- model.removeNodeset("/root/main/patinforgst/patinforgstlist");
-
- submit("TRPMO00603");
- swt_outpatient.selectedIndex = 0;
- btn_outrgst.selected = true;
- btn_outupdt.selected = false;
- btn_outcncl.selected = false;
-
- var histstat = model.getValue("/root/main/patinforgst/patinforgstlist/histstat");
-
-
- mgrd_outrgst.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
- setRowStyle("mgrd_outrgst", "5","Z","histstat","equal"); //row의 색상을 변경한다.
- mgrd_outrgst.rebuild();
- // model.setValue("/root/tmp/flag", 'Y');
- model.refresh();
-
- }else if (swt_outpatient.selectedIndex == 2 ) {
- model.removeNodeset("/root/main/patinfoupdt/patinfoupdtlist");
-
- submit("TRPMO00605");
- swt_outpatient.selectedIndex = 2;
- btn_outrgst.selected = false;
- btn_outupdt.selected = true;
- btn_outcncl.selected = false;
- var histstat = model.getValue("/root/main/patinfoupdt/patinfoupdtlist/histstat");
-
-
- grd_outupdtcncl.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
- setRowStyle("grd_outupdtcncl", "3","T","histstat","equal"); //row의 색상을 변경한다.
- setRowStyle("grd_outupdtcncl", "3","R","histstat","equal");
- setRowStyle("grd_outupdtcncl", "3","X","histstat","equal");
- grd_outupdtcncl.rebuild();
- }else if (swt_outpatient.selectedIndex == 1 ) {
-
- model.removeNodeset("/root/main/patinfocncl/patinfocncllist");
- submit("TRPMO00604");
- swt_outpatient.selectedIndex = 1;
- btn_outrgst.selected = false;
- btn_outupdt.selected = false;
- btn_outcncl.selected = true;
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group6" style="left:0px; top:85px; width:1195px; height:655px; ">
- <switch id="swt_outpatient" style="left:0px; top:25px; width:1194px; height:625px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_outrgst">
- <line id="line17" class="line_1" style="x1:5px; y1:25px; x2:1187px; y2:25px; "/>
- <button id="btn_rgstexcel" class="btn2_letter4" style="left:1123px; top:3px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- mgrd_outrgst.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <datagrid id="mgrd_outrgst" nodeset="/root/main/patinforgst/patinforgstlist" class="datagrid2" caption="진료일시^등록번호^환자명^진료여부^진료과코드^센터^진료과^하위부서^진료의^진료의ID^보험유형^보조유형^초/재진^예약구분^진찰료
산정여부^기타진료구분^계정감면^진찰료수납^등록자^수납자^접수상태^수납일시^수정자^수정일시^최초등록일시" colsep="^" colwidth="110, 70, 70, 36, 120, 100, 120, 100, 70, 70, 70, 60, 53, 56, 60, 55, 100, 47, 56, 56, 54, 120, 70, 129, 129" dataheight="23" defaultrows="2" ellipsis="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:30px; width:1182px; height:577px; text-align:center; ">
- <col ref="orddt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="pid" style="text-align:left; "/>
- <col ref="pathngnm"/>
- <col ref="ordflag"/>
- <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init_pam/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="centcd"/>
- <col ref="orddeptnm" style="text-align:left; "/>
- <col ref="subdeptcd"/>
- <col ref="orddrnm" style="text-align:left; "/>
- <col disabled="true" ref="orddrid" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init_pam/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="insukindnm" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suppkindnm" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0010list/P0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fsexamflagnm" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="rsrvflagnm" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="medamtestmyn"/>
- <col disabled="true" ref="etcordflagnm" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0022list/P0022">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="disccdnm" type="combo" style="left:885px; top:23px; width:80px; height:23px; ">
- <choices>
- <itemset nodeset="/root/init_pam/init/disccd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="rcptyn" style="text-align:center; "/>
- <col ref="fstrgstrnm"/>
- <col ref="rcptrnm"/>
- <col disabled="true" ref="histstat" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0029list/P0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rcptdd" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
- <col ref="fstrgstdt" visibility="visible" format="yyyy-mm-dd hh:nn:ss"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = mgrd_outrgst.row;
- if( isDataCell() && row > 0 ){
- var pid = model.getValue("/root/send/pid");
- var hngnm = model.getValue("/root/send/hngnm");
- var rrgstno1 = model.getValue("/root/send/rrgstno1");
- var rrgstno2 = model.getValue("/root/send/rrgstno2");
- var dayflag = model.getValue("/root/send/dayflag");
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
- var orddeptcd = model.getValue("/root/send/orddept");
- var orddrid = model.getValue("/root/send/orddr");
- var specordyn = model.getValue("/root/send/specordyn");
- var insukind = model.getValue("/root/send/insukind");
- var rsrvflag = model.getValue("/root/send/rsrvflag");
- var fstacptdt = model.getValue("/root/send/fstacptdt");
-
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/pid", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/pid"));
- model.setValue("/root/send/hngnm", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/pathngnm"));
- model.setValue("/root/send/rrgstno1", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/rrgstno1"));
- model.setValue("/root/send/rrgstno2", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/rrgstno2"));
- model.setValue("/root/send/orddept", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/orddeptcd"));
- model.setValue("/root/send/orddr", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/orddrid"));
- model.setValue("/root/send/fstacptdt", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/fstacptdt"));
- model.setValue("/root/send/fstrgstdt", model.getValue("/root/main/patinforgst/patinforgstlist[" + row + "]/fstrgstdt2"));
-
- submit("TRPMO00605");
- swt_outpatient.selectedIndex = 2;
- btn_outrgst.selected = false;
- btn_outupdt.selected = true;
- btn_outcncl.selected = false;
- model.setValue("/root/tmp/flag", 'Y');
-
- var histstat = model.getValue("/root/main/patinfoupdt/patinfoupdtlist/histstat");
-
-
- grd_outupdtcncl.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
- setRowStyle("grd_outupdtcncl", "1","T","histstat","equal"); // 병실정보row의 색상을 변경한다.
- setRowStyle("grd_outupdtcncl", "1","R","histstat","equal");
- grd_outupdtcncl.rebuild();
-
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/hngnm", hngnm);
- model.setValue("/root/send/rrgstno1", rrgstno1);
- model.setValue("/root/send/rrgstno2", rrgstno2);
- model.setValue("/root/send/dayflag", dayflag);
- model.setValue("/root/send/fromdd", fromdd);
- model.setValue("/root/send/todd", todd);
- model.setValue("/root/send/orddept", orddeptcd);
- model.setValue("/root/send/orddr", orddrid);
- model.setValue("/root/send/specordyn", specordyn);
- model.setValue("/root/send/rsrvflag", rsrvflag);
- model.setValue("/root/send/insukind", insukind);
- // model.setValue("/root/send/fstacptdt", fstacptdt);
- model.refresh();
- }
-
- button2.visible = false;
- btn_search.visible = false;
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_outcncl">
- <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:1187px; y2:25px; "/>
- <datagrid id="grd_outcncl" nodeset="/root/main/patinfocncl/patinfocncllist" class="datagrid2" caption="진료일시^등록번호^성명^진료과코드^진료과^진료의^진료의ID^보험유형^유형보조^초재진^예약구분^기타진료구분^계정감면^진찰료수납^취소사유^최종수정자^최종수정일시^접수상태" colsep="^" colwidth="110, 72, 80, 120, 120, 70, 70, 70, 60, 60, 77, 54, 89, 44, 150, 70, 120, 67" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:30px; width:1182px; height:577px; ">
- <col ref="orddt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="pathngnm"/>
- <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init_pam/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col disabled="true" ref="orddrid" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init_pam/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="insukindnm" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suppkindnm" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0010list/P0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fsexamflagnm" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="rsrvflagnm" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="etcordflagnm" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0022list/P0022">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="disccdnm" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init_pam/init/disccd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="rcptyn" style="text-align:center; "/>
- <col ref="updtcnclresn"/>
- <col ref="lastupdtrnm"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col disabled="true" ref="histstat" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0029list/P0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- </datagrid>
- <button id="btn_cnclexcel" class="btn2_letter4" style="left:1123px; top:3px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_outcncl.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- </case>
- <case id="case_outupdt" selected="true">
- <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:1187px; y2:25px; "/>
- <datagrid id="grd_outupdtcncl" nodeset="/root/main/patinfoupdt/patinfoupdtlist" class="datagrid1" caption="변경구분^등록번호^성명^보험유형^유형보조^초재진^진찰료산정여부^센터코드^센터^진료과코드^진료과^진료의ID^진료의^진료일자^진료시간^최초수정과^최초입력자^최초입력일시^최종수정과^최종수정자^최종수정일시^변경사유^histstat^참고사항^전화예약 참고사항^최종수정일시" colsep="^" colwidth="70, 70, 60, 80, 100, 60, 100, 70, 120, 70, 120, 70, 70, 80, 70, 100, 100, 100, 115, 100, 120, 172, 100, 251, 251" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:30px; width:1182px; height:577px; text-align:center; ">
- <col disabled="true" ref="histstat" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0029list/P0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid"/>
- <col ref="pathngnm"/>
- <col disabled="true" ref="insukindnm" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suppkindnm" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0010list/P0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fsexamflagnm" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="medamtestmyn"/>
- <col ref="centcd" visibility="hidden"/>
- <col ref="centnm" style="text-align:center; "/>
- <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init_pam/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col disabled="true" ref="orddrid" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init_pam/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="ordtm" format="hh:nn"/>
- <col ref="fstrgstdeptnm" visibility="hidden"/>
- <col ref="fstrgstrnm"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
- <col ref="lastupdtdeptnm"/>
- <col ref="lastupdtrnm" style="left:1112px; top:43px; width:75px; height:23px; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
- <col ref="updtcnclresn"/>
- <col ref="histstat" visibility="hidden"/>
- <col ref="remfact"/>
- <col ref="telrsrvrem"/>
- </datagrid>
- <button id="btn_updtexcel" class="btn2_letter4" style="left:1123px; top:3px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_outupdtcncl.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_outrgst" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:65px; height:22px; ">
- <caption>외래등록</caption>
- <toggle case="case_outrgst" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- button2.visible = true;
- btn_search.visible = true;
- // if( getNodesetCount("/root/main/patinforgst/patinforgstlist") > 0 ){
-
- swt_outpatient.selectedIndex = 0;
- btn_outrgst.selected = true;
- btn_outupdt.selected = false;
- btn_outcncl.selected = false;
-
- // }else{
- //
- // btn_search.dispatch("DOMActivate");
- // }
-
- ]]>
- </script>
- </button>
- <button id="btn_outupdt" class="btn_sw" group="tab" selected="false" style="left:67px; top:5px; width:65px; height:22px; ">
- <caption>외래변경</caption>
- <toggle case="case_outupdt" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //변경조회의 경우 탭선택이 아니라 외래등록내역을 더블클릭 했을시 조회
- // if( getNodesetCount("/root/main/patinfoupdt/patinfoupdtlist") > 0 ){
- var flag = model.getValue("/root/tmp/flag");
- button2.visible = false;
- btn_search.visible = false;
-
- if(flag != 'Y'){
- messageBox("변경내역조회는 외래등록 조회한 내역을 클릭시만 가능합니다.", "E999", "");
- // model.toggle("case_outrgst");
- // model.setFocus("btn_outrgst");
- // inputEnterKey("btn_outrgst", "DOMActivate");
- return;
- }
- //submit("TRPMO00605");
- swt_outpatient.selectedIndex = 2;
- btn_outrgst.selected = false;
- btn_outupdt.selected = true;
- btn_outcncl.selected = false;
-
-
- //model.refresh();
- // }else{
- //
- // btn_search.dispatch("DOMActivate");
- // }
- //btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <button id="btn_outcncl" class="btn_sw" group="tab" selected="false" style="left:134px; top:5px; width:65px; height:22px; ">
- <caption>외래취소</caption>
- <toggle case="case_outcncl" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- button2.visible = true;
- btn_search.visible = true;
-
-
- if( getNodesetCount("/root/main/patinfocncl/patinfocncllist") > 0 ){
-
- swt_outpatient.selectedIndex = 1;
- btn_outrgst.selected = false;
- btn_outupdt.selected = false;
- btn_outcncl.selected = true;
-
- }else{
- // 주석처리함(2018/02/08 이정택)
- // submit("TRPMO00604");
- // 주석처리함(2018/02/08 이정택)
- swt_outpatient.selectedIndex = 1;
- btn_outrgst.selected = false;
- btn_outupdt.selected = false;
- btn_outcncl.selected = true;
- model.refresh();
- }
-
- ]]>
- </script>
- </button>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|