12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <data1>
- <refflag>4</refflag>
- <pid/>
- <hngnm/>
- <appfromdd/>
- <apptodd/>
- <aprvyn>1</aprvyn>
- </data1>
- <data2>
- <sess_posinstcd/>
- </data2>
- <data3>
- <pid/>
- <appdd/>
- </data3>
- <data4>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <autoflag/>
- </data4>
- <data5>
- <s_plpm>
- <plpm/>
- </s_plpm>
- </data5>
- <data6>
- <grdpaylimlist/>
- </data6>
- </send>
- <main>
- <ptbs>
- <ptbs_status/>
- <ptbs_pid/>
- <ptbs_hngnm/>
- <ptbs_engnm/>
- <ptbs_rrgstno1/>
- <ptbs_rrgstno2/>
- <ptbs_brthdd/>
- <ptbs_sex/>
- <ptbs_age/>
- <ptbs_hometel/>
- <ptbs_mpphontel/>
- <ptbs_zipcd1/>
- <ptbs_zipcd2/>
- <ptbs_zipcdseq/>
- <ptbs_zipnm/>
- <ptbs_detladdr/>
- <ptbs_forgeryn/>
- <ptbs_recmyn/>
- <ptbs_recmerid/>
- <ptbs_vipyn/>
- <ptbs_religncd/>
- <ptbs_remfact/>
- <ptbs_inhospyn/>
- </ptbs>
- <ptin>
- <ptin_status/>
- <ptin_pid/>
- <ptin_insukind/>
- <ptin_todd/>
- <ptin_seqno/>
- <ptin_histstat/>
- <ptin_fromdd/>
- <ptin_insucd/>
- <ptin_insucdnm/>
- <ptin_insuno/>
- <ptin_insdnm/>
- <ptin_insdrrgstno1/>
- <ptin_insdrrgstno2/>
- <ptin_insdrela/>
- </ptin>
- <plpm>
- <plpm_status/>
- <plpm_pid/>
- <plpm_appdd/>
- <plpm_instcd/>
- <plpm_ordtype/>
- <plpm_ordfromdd/>
- <plpm_ordtodd/>
- <plpm_aprvyn/>
- <plpm_attdocucd1/>
- <plpm_attdocucd2/>
- <plpm_attdocucd3/>
- <plpm_attdocucd4/>
- <plpm_attdocucd5/>
- <plpm_insuinstcd/>
- <plpm_refresn/>
- <plpm_fstrgstid/>
- <plpm_rstrgstdt/>
- <plpm_lastupdtrid/>
- <plpm_lastupdtdt/>
- <plpm_diagcd/>
- <plpm_diaghngnm/>
- <plpm_injrresncd/>
- </plpm>
- <plpmlist>
- <grd_paylimlist/>
- </plpmlist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <hidden>
- <original>
- <plpm/>
- </original>
- <rcv>
- </rcv>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddrid>
- <flag>
- <prestdd/>
- <mskindflag/>
- </flag>
- <wardcd>
- <cd/>
- <nm/>
- <of/>
- </wardcd>
- <roomcd>
- <cd/>
- <nm/>
- <wd/>
- </roomcd>
- </init>
- <session/>
- <rcvflag>
- <flag>
- <chkcount/>
- </flag>
- </rcvflag>
- <popup>
- <snw>
- <basedd/>
- <diagcd/>
- <diagnm/>
- <selectedrdodiagkind/>
- <flag/>
- </snw>
- </popup>
- <sppiz00400>
- <rslt>
- <diaghngnm/>
- <diagcd/>
- <diagengnm/>
- <termcd/>
- </rslt>
- </sppiz00400>
- <flag>
- <rcv_flag>
- <plpm_count/>
- </rcv_flag>
- <aprv_flag>
- <aprv_count/>
- </aprv_flag>
- </flag>
- <etc>
- <ordfromdd/>
- <ordtodd/>
- <refcheck/>
- </etc>
- <para>
- <pid/>
- <srchcond/>
- </para>
- </hidden>
- <init>
- <P0002list>
- <P0002>
- <cdnm/>
- <cdid/>
- </P0002>
- </P0002list>
- <A0001list>
- <A0001>
- <cdnm/>
- <cdid/>
- </A0001>
- </A0001list>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/init"/>
- <submission id="TRPMC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/plpmlist"/>
- <submission id="TRPMC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcv"/>
- <submission id="TRPMC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcvflag"/>
- <submission id="TXPMC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/hidden/flag/rcv_flag"/>
- <submission id="TXPMC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5"/>
- <submission id="TRPMC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/h_plpmprint"/>
- <submission id="TXPMC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/flag/aprv_flag"/>
- <submission id="TXPMC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/flag/aprv_flag"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize()
- {
- model.resetInstanceNode("/root/send/data1");
-
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/send/data4");
- model.resetInstanceNode("/root/send/data5");
- model.resetInstanceNode("/root/main/ptbs");
- model.resetInstanceNode("/root/main/plpm");
- model.resetInstanceNode("/root/main/ptin");
-
- model.resetInstanceNode("/root/main/plpmlist/grd_paylimlist");
-
- model.setValue("/root/send/data1/refflag", "4");
- model.setValue("/root/send/data1/aprvyn", "1");
-
- model.refresh();
- }
- function fGetUserInfosSampling()
- {
- var sUserInfosS = getUserInfos();
-
- sUserInfosS = sUserInfosS + "|";
-
- var UserInfosS_Array = sUserInfosS.split("|");
-
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- var posinstcd = UserInfosS_Array[2]; //소속기관코드
- var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
-
- model.makeNode("/root/hidden/session/" + "userid");
- model.makeNode("/root/hidden/session/" + "usernm");
- model.makeNode("/root/hidden/session/" + "posinstcd");
- model.makeNode("/root/hidden/session/" + "posinstnm");
- model.makeNode("/root/hidden/session/" + "posdeptcd");
- model.makeNode("/root/hidden/session/" + "posdeptnm")
-
- if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
- if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "012";
-
- model.setValue("/root/hidden/session/userid",userid);
- model.setValue("/root/hidden/session/usernm",usernm);
- model.setValue("/root/hidden/session/posinstcd",posinstcd);
- model.setValue("/root/hidden/session/posinstnm",posinstnm);
- model.setValue("/root/hidden/session/posdeptcd",posdeptcd);
- model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
-
- model.refresh();
- }
-
- function fRefFlagSelect(s_refflag)
- {
- if (s_refflag == "1") {
- ipt_pid.visible = true;
- ipt_hngnm.visible = false;
- ipt_appfromdd.visible = false;
- ipt_apptodd.visible = false;
- model.setFocus("ipt_pid");
- } else if (s_refflag == "2") {
- ipt_hngnm.attribute("top") = "8px";
- ipt_hngnm.attribute("left") = "226px";
- ipt_pid.visible = false;
- ipt_hngnm.visible = true;
- ipt_appfromdd.visible = false;
- ipt_apptodd.visible = false;
- model.setFocus("ipt_hngnm");
- } else if (s_refflag == "3") {
- ipt_appfromdd.attribute("top") = "8px";
- ipt_appfromdd.attribute("left") = "226px";
- caption.attribute("top") = "8px";
- caption.attribute("left") = "354px";
- ipt_apptodd.attribute("top") = "8px";
- ipt_apptodd.attribute("left") = "369px";
- ipt_pid.visible = false;
- ipt_hngnm.visible = false;
- caption.visible = true;
- ipt_appfromdd.visible = true;
- ipt_apptodd.visible = true;
- model.setValue("/root/send/data1/appfromdd",getCurrentDate());
- model.setValue("/root/send/data1/apptodd",getCurrentDate());
- } else if (s_refflag == "4") {
- ipt_pid.visible = false;
- ipt_hngnm.visible = false;
- ipt_appfromdd.visible = false;
- ipt_apptodd.visible = false;
- caption.visible = false;
- }
- }
- //환자정보조회
- function fBaseInfoRef(ptbs_flag)
- {
- if (ptbs_flag == 2) {
- if ( model.getValue("/root/main/popupendflag") == "ok" ) {
- var ptbs_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- // alert(ptbs_pid);
- if (ptbs_pid == null || ptbs_pid == "" || ptbs_pid == " ") {
- return false;
- } else {
- // alert("ptbs_pid1" + ptbs_pid);
- model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data1/refflag","2");
- model.setValue("/root/send/data1/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- combo1.dispatch("xforms-select");
- fQuery1("P");
- }
- } else {
- fInitialize();
- return false;
- }
- }
-
- if (submit("TRPMC00402") == true) {
-
- var ptbs_node = instance1.selectSingleNode("/root/hidden/rcv/ptbs");
-
- if (ptbs_node != null) {
- copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
- } else {
- model.resetInstanceNode("/root/main/ptbs");
- }
-
- var ptin_node = instance1.selectSingleNode("/root/hidden/rcv/ptin");
-
- if (ptin_node != null) {
- copyNodeType("/root/main/ptin","/root/hidden/rcv/ptin","replace");
- } else {
- model.resetInstanceNode("/root/main/ptin");
- }
- var plpm_node = instance1.selectSingleNode("/root/hidden/rcv/plpm");
-
- if (plpm_node != null) {
- copyNodeType("/root/main/plpm","/root/hidden/rcv/plpm","replace");
- copyNodeType("/root/hidden/original/plpm","/root/hidden/rcv/plpm","replace");
- } else {
- model.resetInstanceNode("/root/main/plpm");
- model.resetInstanceNode("/root/hidden/original/plpm");
- }
-
- }
- }
- function fChangeCheck()
- {
- var plpm_flag;
- var ins = document.models( 0 ).instances( 0 );
-
- var h_plpm = ins.selectSingleNode("/root/hidden/original/plpm");
- var o_plpm = ins.selectSingleNode("/root/main/plpm");
-
- if (h_plpm == null) {
- plpm_flag = null; // 데이터가 없으면 인스턴스 노드가 없다.
- // alert("11");
- } else if (o_plpm == null) {
- plpm_flag = null;
- // alert("12");
- } else if (h_plpm.xml == o_plpm.xml) {
- // alert("13");
- plpm_flag = null;
- messageBox("변경사항이","I004");
- return false;
- } else if (h_plpm.xml != o_plpm.xml){
- // alert("14");
- plpm_flag = 'u'
- model.setValue("/root/main/plpm/plpm_status",plpm_flag);
- copyNodeType("/root/send/data5/s_plpm","/root/main/plpm","replace");
-
- return true;
- }
- }
-
- function fHngNmVeri(gubn)
- {
- var ptbs_hngnm;
- if (gubn == "xforms-next") ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
- else if (gubn == "onkeypress" || gubn == "onkeyup")
- {
- ptbs_hngnm = (ipt_ptbs_hngnm.currentText).toString();
- }
- //한글 한글자를 그냥 길이1로 계산
- if (eval((ptbs_hngnm.length).toString()) < 2)
- {
- messageBox("환자성명은 2글자 이상되어야 합니다!","E999","");
- model.setFocus("ipt_hngnm");
- return false;
- }
- }
-
- function fQuery(flag) {
- model.resetInstanceNode("/root/send/data3");
- model.setValue("/root/send/data3/pid",model.getValue("/root/main/plpmlist/grd_paylimlist[ " + flag +"]/plpm_pid"));
- model.setValue("/root/send/data3/appdd",model.getValue("/root/main/plpmlist/grd_paylimlist[ " + flag +"]/plpm_appdd"));
- fBaseInfoRef("1");
- }
-
- function fQuery1(flag) {
- //2007.12.17 flag 가 "S"인경우 조회항목에서 조회..
- // "P"인경우 환자번호,성명,주민번호로 조회
- if (flag == "S") {
- if (submit("TRPMC00401")) {
-
- var plpm_node = instance1.selectSingleNode("/root/main/plpmlist/grd_paylimlist");
- if (plpm_node != null) {
- grd_paylimlist.isSelected(1) = true;
- fQuery(1);
- } else {
- fInitialize();
- }
- }
- } else if (flag == "P") {
- if (submit("TRPMC00401")) {
-
- var plpm_node = instance1.selectSingleNode("/root/main/plpmlist/grd_paylimlist");
- if (plpm_node != null) {
- grd_paylimlist.isSelected(1) = true;
- fQuery(1);
- } else {
- model.resetInstanceNode("/root/send/data3");
- model.setValue("/root/send/data3/pid",ipt_ptbs_pid.currentText);
- if (model.getValue("/root/send/data3/pid") != null && model.getValue("/root/send/data3/pid") != " " && model.getValue("/root/send/data3/pid") != "") {
- fBaseInfoRef("1");
- }
- }
- }
- }
-
- model.refresh();
- }
-
- function fPayLimPrint(vpid,vappdd)
- {
- model.resetInstanceNode("/root/send/data3");
- model.removeNodeset("/root/hidden/h_plpmprint/plpmprint");
-
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/insucd"); //조합기호
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/insucdnm"); //조합명칭
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/insuno"); //의료보험증번호
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/insdnm"); //피보험자성명
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/insdrrgstno"); //피보험자주민등록번호
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/hngnm"); //수진자성명
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/rrgstno"); //수진자주민등록번호
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/zipnm"); //수진자주소
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/ordtype1"); //진료구분
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/ ordtype2"); //진료구분
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/ordfromdd"); //진료기간FromDD
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/ordtodd"); //진료기간ToDD
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/refresn"); //조회사유
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/diaghngnm");
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/diagcd");
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/insuinstcd"); //지사
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/injrresncd");
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/attdocucd1");
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/attdocucd2");
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/attdocucd3");
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/attdocucd4");
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/attdocucd5");
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/proccorpcd"); //요양기관번호
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/reprtel1"); //병원전화번호
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/hospnm"); //병원명칭
- model.makeNode("/root/hidden/h_plpmprint/plpmprint/hoszipnm"); //병원주소
-
- model.setValue("/root/send/data3/pid",vpid);
- model.setValue("/root/send/data3/appdd",vappdd);
-
- if (submit("TRPMC00404") == true) {
-
- var plpm_node = instance1.selectSingleNode("/root/hidden/h_plpmprint/plpmprint");
- if (plpm_node != null) {
- var plpm_ordfromdd = model.getValue("/root/hidden/h_plpmprint/plpmprint/ordfromdd");
- var plpm_ordtodd = model.getValue("/root/hidden/h_plpmprint/plpmprint/ordtodd");
- var plpm_attdocucd1 = model.getValue("/root/hidden/h_plpmprint/plpmprint/attdocucd1");
- var plpm_attdocucd2 = model.getValue("/root/hidden/h_plpmprint/plpmprint/attdocucd2");
- var plpm_attdocucd3 = model.getValue("/root/hidden/h_plpmprint/plpmprint/attdocucd3");
- var plpm_attdocucd4 = model.getValue("/root/hidden/h_plpmprint/plpmprint/attdocucd4"); // 상병발생경위서
-
- //2008.01.13 보험정보를 수정할지 문의..-----
- var ptin_insucd = model.getValue("/root/main/ptin/ptin_insucd");
- var ptin_insucdnm = model.getValue("/root/main/ptin/ptin_insucdnm");
- var ptin_insuno = model.getValue("/root/main/ptin/ptin_insuno");
-
- if (ptin_insucd != null && ptin_insucd != "" && ptin_insucd != " ") {
- model.setValue("/root/hidden/h_plpmprint/plpmprint/insucd",ptin_insucd);
- }
- if (ptin_insucd != null && ptin_insucd != "" && ptin_insucd != " ") {
- model.setValue("/root/hidden/h_plpmprint/plpmprint/insucdnm",ptin_insucdnm);
- }
- if (ptin_insucd != null && ptin_insucd != "" && ptin_insucd != " ") {
- model.setValue("/root/hidden/h_plpmprint/plpmprint/insuno",ptin_insuno);
- }
-
- model.setValue("/root/hidden/h_plpmprint/plpmprint/insuinstcd", cmb_insuinstcd.label);
- //------
- model.setValue("/root/hidden/h_plpmprint/plpmprint/ordfromdd",
- plpm_ordfromdd.substr(0,4) + ". " + plpm_ordfromdd.substr(4,2) +". " + plpm_ordfromdd.substr(6,2));
- model.setValue("/root/hidden/h_plpmprint/plpmprint/ordtodd",
- plpm_ordtodd.substr(0,4) + ". " + plpm_ordtodd.substr(4,2) +". " + plpm_ordtodd.substr(6,2));
-
- //공통코드.. 데이터값 어찌 넣을지..
- if (plpm_attdocucd1 == "Y") {
- model.setValue("/root/hidden/h_plpmprint/plpmprint/attdocucd1","진료기록부 사본 1부");
- }
-
- if (plpm_attdocucd2 == "Y") {
- model.setValue("/root/hidden/h_plpmprint/plpmprint/attdocucd2","구급 일지 1부");
- }
-
- if (plpm_attdocucd3 == "Y") {
- model.setValue("/root/hidden/h_plpmprint/plpmprint/attdocucd3","보험카드 사본 1부");
- }
-
- if (plpm_attdocucd4 == "Y") {
- model.setValue("/root/hidden/h_plpmprint/plpmprint/attdocucd4","상병발생경위서 1부");
- }
-
- exeReportPreview("RPPMC00401", "XMLSTR" , "" , "" , "" , "", "", "", "", "", "", "");
- //exeReportPreview("RPPMC00401", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true", "", "");
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //세션정보
- fGetUserInfosSampling();
- //공통코드조회
- zbcfGetCodeList(new Array("P0002","A0001"),new Array("/root/init/P0002list","/root/init/A0001list"));
- model.setValue("/root/send/data2/sess_posinstcd",model.getValue("/root/hidden/session/posinstcd"));
- submit("TRPMI00106");
- bol_check.selected = true;
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1197;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:300px; height:14px; ">급여제한환자관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group4" style="left:0px; top:10px; width:600px; height:59px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:600px; height:59px; "/>
- <line id="line40" class="line_4" style="x1:514px; y1:8px; x2:514px; y2:51px; "/>
- <caption id="caption32" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회조건 :</caption>
- <select1 id="radio12" ref="/root/send/data1/aprvyn" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:108px; top:33px; width:162px; height:17px; background-color:#fffbf2; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>승인</label>
- <value>2</value>
- </item>
- <item>
- <label>불승인</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption33" class="search_name" style="left:15px; top:33px; width:90px; height:17px; ">승인여부 :</caption>
- <select1 id="combo1" ref="/root/send/data1/refflag" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>환자번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자성명</label>
- <value>2</value>
- </item>
- <item>
- <label>신청기간</label>
- <value>3</value>
- </item>
- <item>
- <label>전체</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var s_refflag = model.getValue("/root/send/data1/refflag");
- fRefFlagSelect(s_refflag);
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_pid" ref="/root/send/data1/pid" class="input_search" visibility="hidden" style="left:226px; top:8px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm" ref="/root/send/data1/hngnm" class="input_search" visibility="hidden" imemode="hangul" style="left:250px; top:8px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_appfromdd" ref="/root/send/data1/appfromdd" class="input_search" visibility="hidden" inputtype="date" style="left:265px; top:10px; width:125px; height:19px; "/>
- <input id="ipt_apptodd" ref="/root/send/data1/apptodd" class="input_search" visibility="hidden" inputtype="date" style="left:310px; top:35px; width:125px; height:19px; "/>
- <caption id="caption" visibility="hidden" style="left:400px; top:12px; width:12px; height:15px; ">~</caption>
- <button id="btn_search" class="btn1_letter2" style="left:529px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fQuery1("S");
- // 조회후 조회조건에 맞게 UI setting
- combo1.dispatch("xforms-select");
- ]]>
- </script>
- </button>
- </group>
- <line id="line48" class="line_1" style="x1:0px; y1:94px; x2:600px; y2:94px; "/>
- <caption id="caption38" class="tit_2" style="left:5px; top:79px; width:144px; height:13px; ">급여제한환자내역</caption>
- <line id="line1" class="line_1" style="x1:605px; y1:236px; x2:1194px; y2:236px; "/>
- <caption id="caption1" class="tit_2" style="left:610px; top:221px; width:144px; height:13px; ">급여제한내용</caption>
- <caption id="caption56" class="cell_1" style="left:605px; top:241px; width:115px; height:23px; vertical-align:middle; ">조합(기관)기호</caption>
- <caption id="caption7" class="cell_1" style="left:605px; top:289px; width:115px; height:23px; vertical-align:middle; ">피보험자(세대주)</caption>
- <caption id="caption8" class="cell_2" style="left:723px; top:289px; width:92px; height:23px; vertical-align:middle; ">성명</caption>
- <caption id="caption9" class="cell_2" style="left:921px; top:289px; width:90px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption10" class="cell_1" style="left:856px; top:241px; width:115px; height:23px; vertical-align:middle; ">조합(기관)명칭</caption>
- <caption id="caption2" class="cell_1" style="left:605px; top:337px; width:115px; height:23px; vertical-align:middle; ">진료기간</caption>
- <caption id="caption12" class="cell_1" style="left:605px; top:385px; width:115px; height:355px; vertical-align:middle; ">조회사유</caption>
- <caption id="caption13" class="cell_1" style="left:856px; top:265px; width:115px; height:23px; vertical-align:middle; ">의료보험증번호</caption>
- <output id="output3" ref="/root/main/ptin/ptin_insucdnm" class="output_fix" style="left:974px; top:242px; width:220px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:605px; top:313px; width:115px; height:23px; vertical-align:middle; ">진료구분</caption>
- <caption id="caption15" class="cell_1" style="left:856px; top:313px; width:115px; height:23px; vertical-align:middle; ">지사</caption>
- <input id="input5" ref="/root/main/plpm/plpm_ordfromdd" class="input_default" inputtype="date" style="left:723px; top:338px; width:125px; height:19px; "/>
- <input id="input6" ref="/root/main/plpm/plpm_ordtodd" class="input_default" inputtype="date" style="left:865px; top:338px; width:125px; height:19px; "/>
- <textarea id="textarea1" ref="/root/main/plpm/plpm_refresn" style="left:723px; top:437px; width:471px; height:250px; padding-left:10; padding-top:10; "/>
- <output id="output4" ref="/root/main/ptin/ptin_insdrrgstno1" class="output_fix" style="left:1014px; top:290px; width:86px; height:19px; "/>
- <output id="output6" ref="/root/main/ptin/ptin_insdnm" class="output_fix" style="left:818px; top:290px; width:100px; height:19px; "/>
- <input id="ipt_ptbs_hngnm" ref="/root/main/ptbs/ptbs_hngnm" class="input_s_essential" navindex="2" style="left:733px; top:58px; width:180px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=='13') {
- setInputNodeCurText();
- if (fHngNmVeri("onkeypress") == false) return;
- inputEnterKey("btn_ptbspid", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <output id="opt_ptbs_brthdd" ref="/root/main/ptbs/ptbs_brthdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1031px; top:82px; width:163px; height:19px; "/>
- <output id="opt_ptbs_zipcd1" ref="/root/main/ptbs/ptbs_zipcd1" class="output_fix" appearance="output" style="left:733px; top:130px; width:60px; height:19px; "/>
- <output id="opt_ptbs_detladdr" ref="/root/main/ptbs/ptbs_detladdr" class="output_fix" appearance="output" style="left:733px; top:154px; width:461px; height:19px; "/>
- <output id="opt_ptbs_engnm" ref="/root/main/ptbs/ptbs_engnm" class="output_fix" appearance="output" style="left:916px; top:58px; width:278px; height:19px; "/>
- <output id="opt_ptbs_zipcd2" ref="/root/main/ptbs/ptbs_zipcd2" class="output_fix" appearance="output" style="left:796px; top:130px; width:60px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:605px; top:129px; width:125px; height:23px; vertical-align:middle; ">우편번호</caption>
- <output id="opt_ptbs_zipnm" ref="/root/main/ptbs/ptbs_zipnm" class="output_fix" appearance="output" style="left:892px; top:130px; width:302px; height:19px; "/>
- <caption id="caption17" class="cell_1" style="left:605px; top:57px; width:125px; height:23px; vertical-align:middle; ">성명[한/영]</caption>
- <caption id="caption18" class="tit_2" style="left:610px; top:13px; width:170px; height:13px; font-family:돋움; vertical-align:middle; ">인적사항</caption>
- <caption id="caption34" class="cell_1" style="left:605px; top:105px; width:125px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
- <output id="opt_ptbs_age" ref="/root/main/ptbs/ptbs_age" class="output_fix" appearance="output" style="left:1114px; top:34px; width:80px; height:19px; "/>
- <input id="ipt_ptbs_pid" ref="/root/main/ptbs/ptbs_pid" class="input_s_essential" navindex="1" maxlength="10" appearance="input" style="left:733px; top:34px; width:161px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=='13')
- {
- model.setValue("/root/main/ptbs/ptbs_pid",ipt_ptbs_pid.currentText);
- var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
-
- if (ptbs_pid == null || ptbs_pid == "" || ptbs_pid == " ") {
- messageBox("환자번호가 입력되지","E007");
- return false;
- } else {
- model.setValue("/root/send/data1/refflag","1");
- model.setValue("/root/send/data1/pid",ipt_ptbs_pid.currentText);
- combo1.dispatch("xforms-select");
- fQuery1("P");
- }
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption19" class="cell_1" style="left:605px; top:153px; width:125px; height:23px; vertical-align:middle; ">하위주소</caption>
- <output id="opt_ptbs_zipcdseq" ref="/root/main/ptbs/ptbs_zipcdseq" class="output_fix" appearance="output" style="left:859px; top:130px; width:30px; height:19px; "/>
- <caption id="caption20" class="cell_1" style="left:605px; top:81px; width:125px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption26" class="cell_1" style="left:916px; top:81px; width:112px; height:23px; vertical-align:middle; ">생년월일</caption>
- <output id="opt_ptbs_hometel" ref="/root/main/ptbs/ptbs_hometel" class="output_fix" appearance="output" style="left:733px; top:106px; width:200px; height:19px; "/>
- <caption id="caption21" class="cell_1" style="left:605px; top:33px; width:125px; height:23px; vertical-align:middle; ">환자번호</caption>
- <output id="opt_ptbs_mpphontel" ref="/root/main/ptbs/ptbs_mpphontel" class="output_fix" appearance="output" style="left:936px; top:106px; width:258px; height:19px; "/>
- <caption id="caption22" class="cell_1" style="left:605px; top:177px; width:125px; height:34px; vertical-align:middle; ">참고사항</caption>
- <line id="line4" class="line_1" style="x1:605px; y1:28px; x2:1194px; y2:28px; "/>
- <output id="opt_ptbs_sex" ref="/root/main/ptbs/ptbs_sex" class="output_fix" appearance="output" style="left:1031px; top:34px; width:80px; height:19px; "/>
- <caption id="caption23" class="cell_1" style="left:916px; top:33px; width:112px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <textarea id="textarea3" ref="/root/main/ptbs/ptbs_remfact" scroll="vertical" maxlength="150" style="left:733px; top:178px; width:461px; height:30px; "/>
- <input id="ipt_ptbs_rrgstno1" ref="/root/main/ptbs/ptbs_rrgstno1" class="input_s_essential" navindex="3" style="left:733px; top:82px; width:88px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=="13") {
- setInputNodeCurText();
-
- model.resetInstanceNode("/root/send/data4");
- model.setValue("/root/send/data4/autoflag","Y");
-
- var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
-
- if (ptbs_rrgstno1 != null && ptbs_rrgstno1 !=" " && ptbs_rrgstno1 != "") {
- model.setValue("/root/send/data4/rrgstno1", model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
- model.setValue("/root/send/data4/rrgstno2", model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- model.setValue("/root/send/data4/srchcond", "3");
- }
-
- modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
-
- fBaseInfoRef("2");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- model.setFocus("ipt_ptbs_rrgstno2");
- ]]>
- </script>
- </input>
- <caption id="caption24" class="cell_1" style="left:605px; top:265px; width:115px; height:23px; vertical-align:middle; ">신청일자</caption>
- <input id="input8" ref="/root/main/plpm/plpm_appdd" class="input_default" inputtype="date" style="left:723px; top:266px; width:130px; height:19px; "/>
- <input id="input9" ref="/root/main/plpm/plpm_diagcd" class="input_default" _chartype="upper" style="left:723px; top:362px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- model.setValue("/root/main/plpm/plpm_diagcd",input9.currentText);
- if (event.keyCode == "13") {
- var icd_diagcd = model.getValue("/root/main/plpm/plpm_diagcd");
- // alert(icd_diagcd);
- if (icd_diagcd != null && icd_diagcd != " " && icd_diagcd != "") {
- inputEnterKey("btn_icdsearch", "DOMActivate");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption25" style="left:851px; top:341px; width:11px; height:15px; ">~</caption>
- <button id="button11" class="btn5_letter2" style="left:513px; top:74px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sResult = messageBox("선택 항목을 삭제하시겠습니까?", "Q");
- if (sResult == "6") {
- var cur_row = grd_paylimlist.row;
-
- grd_paylimlist.addStatus(cur_row, "delete");
-
- if (cur_row > 0 && grd_paylimlist.row >= grd_paylimlist.fixedRows) {
- var updtdata = getGridUpdateData(grd_paylimlist);
- if (updtdata != null && updtdata != "" && updtdata != " ") {
- model.setValue("/root/send/data6/grdpaylimlist",grd_paylimlist.getUpdateData());
- if (submit("TXPMC00404")) {
- if (model.getValue("/root/hidden/flag/aprv_flag/aprv_count") > 0) {
- btn_search.dispatch("DOMActivate");
- }
- }
-
- } else {
- messageBox("변경내역이 없습니다!","E999","");
- return false;
- }
- } else {
- messageBox("변경내역이 없습니다. 환자를 선택하신후 작업해 주세요!","E999","");
- return false;
- }
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter2" style="left:558px; top:74px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_paylimlist.row;
- if (cur_row > 0 && grd_paylimlist.row >= grd_paylimlist.fixedRows) {
- fPayLimPrint(model.getValue("/root/main/plpmlist/grd_paylimlist[" + cur_row + "]/plpm_pid"),
- model.getValue("/root/main/plpmlist/grd_paylimlist[" + cur_row + "]/plpm_appdd"));
- } else {
- messageBox("환자를 선택해 주세요.!","E999","");
- return false;
- }
- ]]>
- </script>
- </button>
- <output id="output5" ref="/root/main/plpm/plpm_diaghngnm" class="output_fix" style="left:879px; top:362px; width:315px; height:19px; "/>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/plpm/plpm_attdocucd1" style="left:725px; top:691px; width:20px; height:20px; "/>
- <bool id="bool2" checkvalue="Y,N" ref="/root/main/plpm/plpm_attdocucd2" style="left:887px; top:691px; width:20px; height:20px; "/>
- <bool id="bool3" checkvalue="Y,N" ref="/root/main/plpm/plpm_attdocucd3" style="left:1035px; top:691px; width:20px; height:20px; "/>
- <caption id="caption3" style="left:745px; top:691px; width:116px; height:20px; ">진료 기록부 사본 1부</caption>
- <caption id="caption4" style="left:907px; top:691px; width:116px; height:20px; ">구급 일지 1부</caption>
- <caption id="caption5" style="left:1055px; top:691px; width:116px; height:20px; ">보험카드 사본 1부</caption>
- <input id="ipt_ptbs_rrgstno2" ref="/root/main/ptbs/ptbs_rrgstno2" style="left:825px; top:82px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=="13") {
- inputEnterKey("ipt_ptbs_rrgstno1", "onkeypress");
- }
- ]]>
- </script>
- </input>
- <output id="output7" ref="/root/main/ptin/ptin_insdrrgstno2" class="output_fix" style="left:1103px; top:290px; width:91px; height:19px; "/>
- <button id="btn_ptbspid" class="icon_search" style="left:897px; top:37px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/data4");
-
- var ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
-
- if (ptbs_hngnm != null && ptbs_hngnm !=" " && ptbs_hngnm != "") {
- model.setValue("/root/send/data4/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
- model.setValue("/root/send/data4/srchcond","2");
- }
-
- modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
-
- fBaseInfoRef("2");
- ]]>
- </script>
- </button>
- <datagrid id="grd_paylimlist" nodeset="/root/main/plpmlist/grd_paylimlist" caption="환자번호^환자성명^신청일자^승인여부^진료구분^진료시작일^진료종료일" colsep="^" colwidth="80, 88, 86, 68, 61, 97, 96" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:100px; width:600px; height:640px; ">
- <col ref="plpm_pid"/>
- <col ref="plpm_hngnm"/>
- <col ref="plpm_appdd" format="yyyy-mm-dd"/>
- <col ref="plpm_aprvyn" type="combo">
- <choices>
- <item>
- <label>승인</label>
- <value>Y</value>
- </item>
- <item>
- <label>불승인</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="plpm_ordtype" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0001list/A0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="plpm_ordfromdd" format="yyyy-mm-dd"/>
- <col ref="plpm_ordtodd" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell() == true) {
- var cur_row = grd_paylimlist.row;
- fQuery(cur_row);
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_paylimlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_icdsearch" class="icon_search" style="left:858px; top:364px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/popup/snw/selectedrdodiagkind","1");
- model.setValue("/root/hidden/popup/snw/basedd",getCurrentDate());
- model.setValue("/root/hidden/popup/snw/diagcd",model.getValue("/root/main/plpm/plpm_diagcd"));
- model.setValue("/root/hidden/popup/snw/flag","D");
-
- modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/hidden/popup/snw", "/root/init");
-
- model.setValue("/root/main/plpm/plpm_diagcd",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/plpm/plpm_diaghngnm",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption11" style="left:725px; top:380px; width:260px; height:50px; text-align:left; ">
- <![CDATA[상기 환자는 상기질환으로
- ]]>
- </caption>
- <input id="input1" ref="/root/hidden/etc/ordfromdd" inputtype="date" style="left:876px; top:387px; width:100px; height:19px; "/>
- <caption id="caption27" style="left:725px; top:408px; width:240px; height:27px; text-align:left; vertical-align:top; ">퇴원한 환자임.</caption>
- <caption id="caption28" style="left:985px; top:380px; width:209px; height:35px; text-align:left; ">본원에서 진료 후</caption>
- <input id="input2" ref="/root/hidden/etc/ordtodd" inputtype="date" style="left:1088px; top:387px; width:100px; height:19px; "/>
- <input id="input3" ref="/root/main/ptin/ptin_insucd" style="left:723px; top:242px; width:130px; height:19px; "/>
- <input id="input4" ref="/root/main/ptin/ptin_insuno" style="left:974px; top:266px; width:195px; height:19px; "/>
- <button id="btn_insuno_search" class="icon_search" style="left:1172px; top:269px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //보험증번호 조회(보험자격조회)
- var parm = model.getValue("/root/main/ptbs/ptbs_rrgstno1") +
- model.getValue("/root/main/ptbs/ptbs_rrgstno2") + "▦" + //주민번호
- model.getValue("/root/main/ptbs/ptbs_hngnm") + "▦" ; //이름
-
- setParameter("SPPMC03700_PARM",parm);
- setParameter("SPPMC03700_RTN","");
- modal("../../../pam/pamcomnweb/xrw/SPPMC03700", "1","400", "400", "SPPMC03700", "", "");
-
- if (getParameter("SPPMC03700_RTN") == "N" || getParameter("SPPMC03700_RTN") == "") return;
-
- if (getParameter("SPPMC03700_RTN") == "Y") {
- //return 값이 있으면 보험유형,조합기호,조합기관명칭,의료보험증번호,피보험자성명,취득일자
- // model.setValue("/root/main/ptin/ptin_insukind", getParameter("SPPMC03700_insukind"));//보험유형
- model.setValue("/root/main/ptin/ptin_insuno" , getParameter("SPPMC03700_insuno"));//조합기호
- model.setValue("/root/main/ptin/ptin_insucdnm" , getParameter("SPPMC03700_choicorpnm1"));//조합기관명칭(지사로 디스플레이해달라함)
- model.setValue("/root/main/ptin/ptin_insucd" , getParameter("SPPMC03700_insucd"));//의료보험증번호
- model.setValue("/root/main/ptin/ptin_insdnm" , getParameter("SPPMC03700_insdnm")); //피보험자성명
- // model.setValue("/root/main/ptin/ptin_fromdd" , getParameter("SPPMC03700_insufromdd"));//취득일자
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <bool id="bol_check" ref="/root/hidden/etc/refcheck" style="left:696px; top:389px; width:25px; height:15px; "/>
- <caption id="caption29" class="cell_1" style="left:605px; top:361px; width:115px; height:23px; vertical-align:middle; ">상병코드및 상병명</caption>
- <select1 id="cmb_insuinstcd" ref="/root/main/plpm/plpm_insuinstcd" appearance="minimal" style="left:974px; top:314px; width:220px; height:19px; ">
- <choices>
- <item>
- <label>서초남부지사</label>
- <value>01</value>
- </item>
- <item>
- <label>서초북부지사</label>
- <value>02</value>
- </item>
- <item>
- <label>부천남부지사</label>
- <value>03</value>
- </item>
- <item>
- <label>부천북부지사</label>
- <value>04</value>
- </item>
- <item>
- <label>서출지역본부</label>
- <value>05</value>
- </item>
- <item>
- <label>영등포남부지사</label>
- <value>06</value>
- </item>
- <item>
- <label>영등포북부지사</label>
- <value>07</value>
- </item>
- <item>
- <label>의정부지사</label>
- <value>08</value>
- </item>
- <item>
- <label>수원동부지사</label>
- <value>09</value>
- </item>
- <item>
- <label>경인지역본부</label>
- <value>10</value>
- </item>
- <item>
- <label>인천부평지사</label>
- <value>11</value>
- </item>
- <item>
- <label>동대분지사</label>
- <value>12</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/main/plpm/plpm_ordtype" appearance="minimal" style="left:723px; top:314px; width:130px; height:19px; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래+입원</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <bool id="bool4" checkvalue="Y,N" ref="/root/main/plpm/plpm_attdocucd4" style="left:725px; top:715px; width:20px; height:20px; "/>
- <caption id="caption30" style="left:745px; top:715px; width:136px; height:20px; ">상병발생경위서 1부</caption>
- <button id="button6" class="btn5_letter4" style="left:446px; top:74px; width:64px; height:19px; ">
- <caption>승인저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_paylimlist.row;
-
- if (cur_row > 0 && grd_paylimlist.row >= grd_paylimlist.fixedRows) {
- var updtdata = getGridUpdateData(grd_paylimlist);
- if (updtdata != null && updtdata != "" && updtdata != " ") {
- model.setValue("/root/send/data6/grdpaylimlist",grd_paylimlist.getUpdateData());
- if (submit("TXPMC00403")) {
- if (model.getValue("/root/hidden/flag/aprv_flag/aprv_count") > 0) {
- btn_search.dispatch("DOMActivate");
- }
- }
-
- } else {
- messageBox("변경내역이 없습니다!","E999","");
- return false;
- }
- } else {
- messageBox("변경내역이 없습니다. 환자를 선택하신후 작업해 주세요!","E999","");
- return false;
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button17" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //초기화
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2008.06.30 필수항목 체크
- // 환자번호
- var sPid = model.getValue("/root/main/ptbs/ptbs_pid");
- if (isNull(sPid)) {
- messageBox("환자정보가 조회되지", "E007");
- return false;
- }
-
- // 신청일자
- var sAppDD = model.getValue("/root/main/plpm/plpm_appdd");
- if (isNull(sAppDD)) {
- messageBox("신청일자는", "I003");
- return false;
- }
-
- // 진료구분
- var sOrdType = model.getValue("/root/main/plpm/plpm_ordtype");
- if (isNull(sOrdType)) {
- messageBox("진료구분은", "I003");
- return false;
- }
-
- //기존자료가 존재하는지를 체크한다.
- model.resetInstanceNode("/root/send/data3");
- model.resetInstanceNode("/root/hidden/rcvflag/flag/chkcount");
-
- model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/send/data3/appdd",model.getValue("/root/main/plpm/plpm_appdd"));
-
- if (model.getValue("/root/send/data3/pid") == null || model.getValue("/root/send/data3/pid") == " " || model.getValue("/root/send/data3/pid") == "") {
- messageBox("환자번호가 없습니다. 환자번호 입력후 다시 조회해 주세요.!!","E999","");
- return false;
- } else {
- submit("TRPMC00403")
- }
-
- var ichkcount = model.getValue("/root/hidden/rcvflag/flag/chkcount");
- //데이터 존재 - 컨트롤 값이 변경되었는지 체크하여 변경시 업데이트
- if (ichkcount > 0) {
- if (fChangeCheck() == true) {
- submit("TXPMC00401");
- var plpm_count = model.getValue("/root/hidden/flag/rcv_flag/plpm_count");
- // alert("plpm_count : " + plpm_count);
- if (model.getValue("/root/hidden/flag/rcv_flag/plpm_count") == '1'){
- //2007.12.15 급여제한 여부 조회서 출력
- fPayLimPrint(model.getValue("/root/main/plpm/plpm_pid"),model.getValue("/root/main/plpm/plpm_appdd"));
- if (grd_paylimlist.row > 0) {
- fQuery(grd_paylimlist.row);
- }
- }
- }
- // fInitialize("1");
- //데이터 미존재 - 신규저장
- } else {
- var sordfromdd = model.getValue("/root/hidden/etc/ordfromdd");
- var sordtodd = model.getValue("/root/hidden/etc/ordtodd");
- var plpm_refresn = caption11.value + " " + sordfromdd.substr(0,4) + "-" + sordfromdd.substr(4,2) +"-" + sordfromdd.substr(6,2)
- + " " + caption28.value + " " + sordtodd.substr(0,4) + "-" + sordtodd.substr(4,2) +"-" + sordtodd.substr(6,2) + " " +
- caption27.value + " " + model.getValue("/root/main/plpm/plpm_refresn");
- if (model.getValue("/root/hidden/etc/refcheck") == "true") {
- model.setValue("/root/main/plpm/plpm_refresn",plpm_refresn);
- }
- model.setValue("/root/main/plpm/plpm_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/main/plpm/plpm_status","i");
- copyNodeType("/root/send/data5/s_plpm","/root/main/plpm","replace");
- if (submit("TXPMC00401")) {
- if (model.getValue("/root/hidden/flag/rcv_flag/plpm_count") == '1'){
- //2007.12.15 급여제한 여부 조회서 출력
- fPayLimPrint(model.getValue("/root/main/plpm/plpm_pid"),model.getValue("/root/main/plpm/plpm_appdd"));
- if (grd_paylimlist.row > 0) {
- fQuery(grd_paylimlist.row);
- }
- }
- // fInitialize("1");
- }
- }
-
-
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button1" class="btn3_letter4" style="left:0px; top:5px; width:110px; height:20px; ">
- <caption>재원변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/para");
- var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
- if (ptbs_pid != null && ptbs_pid != " " && ptbs_pid != "" ) {
- model.setValue("/root/hidden/para/pid",ptbs_pid);
- // model.setValue("/root/hidden/para/srchcond","1");
- modal("../../../pam/ipatmngtweb/xrw/SMPMI00400", "1","50", "50", "SMPMI00400", "/root/hidden/para", "/root/hidden/source");
- }
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter8" style="left:83px; top:5px; width:128px; height:22px; ">
- <caption>환자기본정보관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/para");
- var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
- if (ptbs_pid != null && ptbs_pid != " " && ptbs_pid != "" ) {
- model.setValue("/root/hidden/para/pid",ptbs_pid);
- model.setValue("/root/hidden/para/srchcond","1");
-
- modal("SMPMC01400", "1","100", "100", "SMPMC01400", "/root/hidden/para", "/root/hidden/source");
- }
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter6" style="left:214px; top:5px; width:104px; height:22px; ">
- <caption>외래수납조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/ptbs/ptbs_pid");
-
- setParameter("SMPAO00300_PARM2", pid);
- modal("SMPAO00300", "1", "200", "200", "SMPAO00300", "", "");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn3_letter6" style="left:321px; top:5px; width:104px; height:22px; ">
- <caption>환자상병조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMPIZ00100", "1","100","100", "SMPIZ00100", "/root/main/ptbs/ptbs_pid", "/root/send/pid");
-
- var diagcd = model.getValue("/root/hidden/smpiz00100/rslt/diag/diagcd");
- if(diagcd != null && diagcd != " " && diagcd != "") {
- model.setValue("/root/main/plpm/plpm_diagcd",model.getValue("/root/hidden/smpiz00100/rslt/diag/diagcd"));
- model.setValue("/root/main/plpm/plpm_diaghngnm",model.getValue("/root/hidden/smpiz00100/rslt/diag/diaghngnm"));
- model.refresh();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|