123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>간병인관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <sendinfo>
- <carecmntno/>
- <carecmntnm/>
- <lastupdtdt/>
- <state/>
- </sendinfo>
- <sendinfo1>
- <hngnm/>
- <rrgstno/>
- <tel/>
- <mpphonno/>
- <namecardno/>
- <carecmntno/>
- <lastupdtdt/>
- <addr/>
- <spclmentfact/>
- <state/>
- </sendinfo1>
- <sendinfo2>
- <reference1/>
- <reference2/>
- </sendinfo2>
- <search>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- </search>
- <instcd>
- <sess_posinstcd>012</sess_posinstcd>
- </instcd>
- <data1>
- <carecmntno/>
- </data1>
- <data2>
- <carecmntno/>
- <namecardno/>
- <hngnm/>
- </data2>
- <data3>
- <reference/>
- <carecmntno/>
- <fromdd/>
- <wardcd/>
- <pid/>
- <namecardno/>
- <satsfctactcd/>
- </data3>
- <data4>
- <pid/>
- </data4>
- <data5>
- <rrgstno/>
- </data5>
- <data6>
- <carecmntno/>
- <namecardno/>
- </data6>
- </send>
- <main>
- <SiNursCmntMngt>
- <grdSiNursCmntMngt>
- <carecmntno/>
- <carecmntnm/>
- <lastupdtdt/>
- <lastupdtrid/>
- </grdSiNursCmntMngt>
- </SiNursCmntMngt>
- <SiNursMngt>
- <grdSiNursMngt>
- <carecmntno/>
- <namecardno/>
- <hngnm/>
- <rrgstno/>
- <tel/>
- <mpphonno/>
- <spclmentfact/>
- <fstrgstdt/>
- <addr/>
- <lastupdtrid/>
- </grdSiNursMngt>
- </SiNursMngt>
- <SiNurInfo>
- <grdSiNursInfo>
- <carecmntno/>
- <namecardno/>
- <carm_hngnm/>
- <fromdd/>
- <todd/>
- <pid/>
- <ptbs_hngnm/>
- <wardcd/>
- <roomcd/>
- <indd/>
- <dschdd/>
- <satsfctactcd/>
- <lastupdtrid/>
- <lastupdtdt/>
- <spclmentfact/>
- <spcffact/>
- <patseqno/>
- </grdSiNursInfo>
- </SiNurInfo>
- <PtbsInfo>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <rrgstno1/>
- <rrgstno2/>
- <hometel/>
- <mpphontel/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <detladdr/>
- </PtbsInfo>
- <InptInfo>
- <pid/>
- <orddeptcd/>
- <medispclid/>
- <atdoctid/>
- <inpath/>
- <indd/>
- <dschdd/>
- </InptInfo>
- <CarmInfo>
- <carecmntno/>
- <namecardno/>
- <hngnm/>
- <rrgstno/>
- </CarmInfo>
- <CarpInfo>
- <pid/>
- <patseqno/>
- <namecardno/>
- <carecmntno/>
- <instcd/>
- <indd/>
- <fromdd/>
- <todd/>
- <satsfctactcd/>
- <spcffact/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <state/>
- </CarpInfo>
- <carplist>
- <grdSiNursInfo>
- <carecmntno/>
- <namecardno/>
- <carm_hngnm/>
- <fromdd/>
- <todd/>
- <pid/>
- <ptbs_hngnm/>
- <wardcd/>
- <roomcd/>
- <indd/>
- <dschdd/>
- <satsfctactcd/>
- <lastupdtrid/>
- <lastupdtdt/>
- <spclmentfact/>
- <spcffact/>
- <patseqno/>
- </grdSiNursInfo>
- </carplist>
- <result/>
- <popupendflag/>
- </main>
- <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>
- <wardcd>
- <cd/>
- <nm/>
- <of/>
- </wardcd>
- <roomcd>
- <cd/>
- <nm/>
- <wd/>
- <gr/>
- <ty/>
- </roomcd>
- <flag>
- <prestdd/>
- </flag>
- </init>
- <hidden>
- <carecmntno>
- <nm/>
- <cd/>
- </carecmntno>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </source>
- <h_carm>
- <getCarmList>
- <carecmntno/>
- <namecardno/>
- <hngnm/>
- <rrgstno/>
- <tel/>
- <mpphonno/>
- <spclmentfact/>
- <fstrgstdt/>
- <addr/>
- <lastupdtrid/>
- </getCarmList>
- </h_carm>
- <h_inpt>
- <PatInptInfo>
- <pid/>
- <indd/>
- <inpath/>
- <orddeptcd/>
- <mediclid/>
- <atdoctid/>
- <dschdd/>
- </PatInptInfo>
- </h_inpt>
- <h_carp>
- <grdSiNursInfo>
- <carecmntno/>
- <namecardno/>
- <carm_hngnm/>
- <fromdd/>
- <todd/>
- <pid/>
- <ptbs_hngnm/>
- <wardcd/>
- <roomcd/>
- <indd/>
- <dschdd/>
- <satsfctactcd/>
- <lastupdtrid/>
- <lastupdtdt/>
- <spclmentfact/>
- <spcffact/>
- <patseqno/>
- </grdSiNursInfo>
- </h_carp>
- <rcvflag>
- <flag>
- <chkcount/>
- </flag>
- </rcvflag>
- <carm_count>
- <flag>
- <count/>
- </flag>
- </carm_count>
- </hidden>
- </root>
- </instance>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instcd" resultref="/root/init"/>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/result/patinfo"/>
- <submission id="TRPMC00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instcd" resultref="/root/main/SiNursCmntMngt/grdSiNursCmntMngt"/>
- <submission id="TRPMC00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/SiNursMngt/grdSiNursMngt"/>
- <submission id="TRPMC00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendinfo2" resultref="/root/main/SiNurInfo/grdSiNursInfo"/>
- <submission id="TRPMC00805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/h_carm/getCarmList"/>
- <submission id="TRPMC00806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data4" resultref="/root/hidden/h_inpt/PatInptInfo"/>
- <submission id="TXPMC00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendinfo"/>
- <submission id="TXPMC00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendinfo1"/>
- <submission id="TXPMC00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/CarpInfo"/>
- <submission id="TRPMC00807" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/hidden/rcvflag"/>
- <submission id="TRPMC00808" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/carm_count"/>
- </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">
- <![CDATA[
- function initial_Reference(){
- cmb_carecmntno.visible= false;
- ipt_fromdd.visible = false;
- cmb_wardcd.visible= false;
- ipt_pid.visible = false;
- ipt_namecard.visible = false;
- model.setValue("/root/send/data3/reference", "0");
- model.setValue("/root/send/data3/carecmntno", "");
- model.setValue("/root/send/data3/fromdd", "");
- model.setValue("/root/send/data3/wardcd", "");
- model.setValue("/root/send/data3/pid", "");
- model.setValue("/root/send/data3/namecardno", "");
- model.refresh();
- }
- function initial_SiNursCmntMngt(){
- var currentdate = getCurrentDate();
- model.setValue("/root/send/sendinfo/lastupdtdt", currentdate);
- model.setValue("/root/send/sendinfo/carecmntno", "");
- model.setValue("/root/send/sendinfo/carecmntnm", "");
- model.setvalue("/root/send/sendinfo/state","I");
- model.resetInstanceNode("/root/main/SiNursCmntMngt/grdSiNursCmntMngt");
- ipt_carecmntno.disabled = false;
- model.refresh();
- }
- function initial_SiNursMngt(){
- var currentdate = getCurrentDate();
- model.setValue("/root/send/sendinfo1/lastupdtdt", currentdate);
- model.setValue("/root/send/sendinfo1/hngnm", "");
- model.setValue("/root/send/sendinfo1/rrgstno", "");
- model.setValue("/root/send/sendinfo1/tel", "");
- model.setValue("/root/send/sendinfo1/mpphonno", "");
- model.setValue("/root/send/sendinfo1/namecardno", "");
- model.setValue("/root/send/sendinfo1/carecmntno", "");
- model.setValue("/root/send/sendinfo1/addr", "");
- model.setValue("/root/send/sendinfo1/spclmentfact", "");
- model.setvalue("/root/send/sendinfo1/state","I");
- model.resetInstanceNode("/root/main/SiNursMngt/grdSiNursMngt");
- model.refresh();
- }
- function initial_SiNursInfo(){
- model.resetInstanceNode("/root/main/SiNurInfo/grdSiNursInfo");
- model.refresh();
- }
-
- // 환자간병내역 초기화
- function initial_PatSiNursInfo() {
- model.resetInstanceNode("/root/main/PtbsInfo");
- model.resetInstanceNode("/root/main/InptInfo");
- model.resetInstanceNode("/root/hidden/h_inpt/PatInptInfo");
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/patinfo");
- model.resetInstanceNode("/root/main/CarmInfo");
- model.resetInstanceNode("/root/hidden/h_carm/getCarmList");
- model.resetInstanceNode("/root/main/carplist/grdSiNursInfo");
- model.resetInstanceNode("/root/main/CarpInfo");
- }
-
- // 2008.06.09
- function fGetSiNursCmntMngt() {
- submit("TRPMC00801");
-
- fSetCmntMngtComboInstance();
- }
-
- // 2008.06.09 간병인단체 콤보용 인스턴스 생성
- function fSetCmntMngtComboInstance() {
- model.resetInstanceNode("/root/hidden/carecmntno");
-
- var iCount = getNodesetCount("/root/main/SiNursCmntMngt/grdSiNursCmntMngt");
- for (var idx = 1 ; idx <= iCount ; idx++) {
- var sCdnm = model.getValue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + idx + "]/carecmntnm");
- var sCdid = model.getValue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + idx + "]/carecmntno");
-
- addComboItem("cmb_carecmntnm", sCdnm, sCdid, "after");
- }
-
- grd_SiNursCmntMngt.refresh();
- }
-
- // 2008.06.16 환자 입원등록정보 조회
- function fGetPatInptInfo() {
- var sPid = model.getValue("/root/main/PtbsInfo/pid");
-
- if (!isNull(sPid)) {
- model.setValue("/root/send/data4/pid", sPid);
- submit("TRPMC00806");
- }
- }
-
- // 환자간병내역조회
- function fGetCarpList() {
- model.setValue("/root/send/sendinfo2/reference1", "3"); // 환자번호로 검색
- model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/main/PtbsInfo/pid"));
-
- if (submit("TRPMC00803", false, "/root/send/sendinfo2", "/root/hidden/h_carp/grdSiNursInfo") == true) {
- model.resetInstanceNode("/root/send/sendinfo2");
-
- copyNodesetType("/root/main/carplist/grdSiNursInfo", "/root/hidden/h_carp/grdSiNursInfo");
-
- }
- }
-
- // 간병인정보 조회
- function fGetSiNursInfo(pName) {
- model.setValue("/root/send/data2/hngnm", pName);
- submit("TRPMC00805");
- model.resetInstanceNode("/root/send/data2");
-
- // 조회 건수에 따라 처리
- var iCount = getNodesetCount("/root/hidden/h_carm/getCarmList");
- if (iCount == 1) {
- // 값설정
- model.setValue("/root/main/CarmInfo/carecmntno", model.getValue("/root/hidden/h_carm/getCarmList/carecmntno"));
- model.setValue("/root/main/CarmInfo/namecardno", model.getValue("/root/hidden/h_carm/getCarmList/namecardno"));
- model.setValue("/root/main/CarmInfo/hngnm", model.getValue("/root/hidden/h_carm/getCarmList/hngnm"));
- model.setValue("/root/main/CarmInfo/rrgstno", model.getValue("/root/hidden/h_carm/getCarmList/rrgstno"));
- }
-
- if (iCount > 1) {
- // 결과가 2건 이상일경우 팝업오픈
- model.resetInstanceNode("/root/hidden/h_carm/getCarmList");
- model.resetInstanceNode("/root/main/popupendflag");
-
- modal("SPPMC05200", 1,150, 150, "SPPMC05200", "/root/main/CarmInfo/hngnm", "/root/send/data1/hngnm");
-
- iCount = getNodesetCount("/root/hidden/h_carm/getCarmList");
- if (iCount == 1 && model.getValue("/root/main/popupendflag") == "ok") {
- model.setValue("/root/main/CarmInfo/carecmntno", model.getValue("/root/hidden/h_carm/getCarmList/carecmntno"));
- model.setValue("/root/main/CarmInfo/namecardno", model.getValue("/root/hidden/h_carm/getCarmList/namecardno"));
- model.setValue("/root/main/CarmInfo/hngnm", model.getValue("/root/hidden/h_carm/getCarmList/hngnm"));
- model.setValue("/root/main/CarmInfo/rrgstno", model.getValue("/root/hidden/h_carm/getCarmList/rrgstno"));
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- initial_Reference();
- initial_SiNursCmntMngt();
- initial_SiNursMngt();
- initial_SiNursInfo();
- submit("TRPMI00106"); //병동, 병실 기준자료 가져옴
- fGetSiNursCmntMngt();
- // submit("TRPMC00801"); // 위 함수로 대체
- // submit("TRPMC00802"); // 간병인 리스트 조회(전체)
- btn_sinurnmg.selected = true;
- btn_sinurnmg.dispatch("onclick");
- model.refresh();
-
- //2008-09-04 LEEDS
- //원목팀에서 화면을 호출할경우 조회만 가능하도록 저장/삭제 버튼 비활성화
- var parm = getScreenMenuParameter();
- if( parm == '4050400000' ){
-
- btn_savecarc.visible = false;
- btn_delcarc.visible = false;
- btn_savecarm.visible = false;
- button1.visible = false;
- btn_save3.visible = false;
- btn_delete3.visible = false;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;1,1196;" 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:200px; height:13px; ">간병인관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <switch id="switch1" class="sw_box" style="left:0px; top:25px; width:1194px; height:719px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:1192px; height:717px; ">
- <caption id="caption18" class="cell_1" style="left:5px; top:54px; width:100px; height:23px; vertical-align:middle; ">간병단체명</caption>
- <line id="line1" class="line_3" style="x1:5px; y1:76px; x2:544px; y2:76px; "/>
- <line id="line6" class="line_2" style="x1:5px; y1:342px; x2:544px; y2:342px; "/>
- <line id="line7" class="line_2" style="x1:5px; y1:318px; x2:544px; y2:318px; "/>
- <line id="line5" class="line_2" style="x1:5px; y1:294px; x2:544px; y2:294px; "/>
- <line id="line18" class="line_2" style="x1:5px; y1:270px; x2:544px; y2:270px; "/>
- <caption id="caption4" class="tit_2" style="left:10px; top:10px; width:144px; height:13px; ">간병단체 관리</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:544px; y2:25px; "/>
- <caption id="caption5" class="tit_2" style="left:554px; top:55px; width:144px; height:13px; ">간병인조회</caption>
- <line id="line3" class="line_1" style="x1:549px; y1:70px; x2:1184px; y2:70px; "/>
- <caption id="caption33" class="tit_2" style="left:10px; top:228px; width:148px; height:13px; ">간병인 관리</caption>
- <line id="line16" class="line_1" style="x1:5px; y1:243px; x2:544px; y2:243px; "/>
- <datagrid id="grd_SiNursCmntMngt" nodeset="/root/main/SiNursCmntMngt/grdSiNursCmntMngt" caption="간병단체번호^간병단체명^등록일자^입력자" colsep="^" colwidth="90, 340, 87, 0" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:81px; width:539px; height:137px; ">
- <col disabled="true" ref="carecmntno" style="text-align:center; "/>
- <col disabled="true" ref="carecmntnm"/>
- <col disabled="true" ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="lastupdtrid" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( isDataCell() ){
- var row = grd_SiNursCmntMngt.row;
- if (row >= grd_SiNursCmntMngt.fixedrows){
- model.setvalue("/root/send/sendinfo/carecmntno",model.getvalue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + row + "]/carecmntno"));
- model.setvalue("/root/send/sendinfo/carecmntnm",model.getvalue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + row + "]/carecmntnm"));
- model.setvalue("/root/send/sendinfo/lastupdtdt",model.getvalue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + row + "]/lastupdtdt"));
- model.setvalue("/root/send/sendinfo/state","U");
-
- // 2008.06.09 - 수정시에는 관리번호는 수정 못하도록 막음
- ipt_carecmntno.disabled = true;
-
- model.resetInstanceNode("/root/send/sendinfo1");
-
- model.setValue("/root/send/data1/carecmntno", model.getvalue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + row + "]/carecmntno"));
- submit("TRPMC00802");
-
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="cell_1" style="left:5px; top:30px; width:100px; height:23px; vertical-align:middle; ">간병단체번호</caption>
- <input id="ipt_carecmntno" ref="/root/send/sendinfo/carecmntno" class="input_default" navindex="1" style="left:108px; top:31px; width:165px; height:19px; "/>
- <input id="ipt_lastupdtdt" ref="/root/send/sendinfo/lastupdtdt" class="input_default" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:379px; top:31px; width:165px; height:19px; text-align:center; "/>
- <caption id="caption2" class="cell_1" style="left:276px; top:30px; width:100px; height:23px; vertical-align:middle; ">등록일자</caption>
- <caption id="caption3" class="cell_1" style="left:5px; top:248px; width:100px; height:23px; vertical-align:middle; ">성명</caption>
- <caption id="caption7" class="cell_1" style="left:276px; top:248px; width:100px; height:23px; vertical-align:middle; ">주민번호</caption>
- <input id="ipt_hngnm" ref="/root/send/sendinfo1/hngnm" class="input_default" navindex="4" style="left:108px; top:249px; width:165px; height:19px; "/>
- <input id="input1" ref="/root/send/sendinfo1/lastupdtdt" class="input_default" navindex="10" inputtype="date" format="yyyy-mm-dd" style="left:379px; top:297px; width:165px; height:19px; text-align:center; "/>
- <caption id="caption10" class="cell_1" style="left:5px; top:320px; width:100px; height:23px; vertical-align:middle; ">주소</caption>
- <caption id="caption13" class="cell_1" style="left:5px; top:344px; width:100px; height:38px; vertical-align:middle; ">특기사항</caption>
- <input id="ipt_addr" ref="/root/send/sendinfo1/addr" class="input_default" navindex="11" style="left:108px; top:321px; width:436px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:5px; top:296px; width:100px; height:23px; vertical-align:middle; ">간호단체명</caption>
- <input id="ipt_namecardno" ref="/root/send/sendinfo1/namecardno" class="input_default" navindex="8" style="left:432px; top:273px; width:112px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:276px; top:296px; width:100px; height:23px; vertical-align:middle; ">등록일시</caption>
- <input id="ipt_rrgstno" ref="/root/send/sendinfo1/rrgstno" class="input_default" navindex="5" format="999999-9999999" style="left:379px; top:249px; width:165px; height:19px; text-align:center; "/>
- <textarea id="txt_spclmentfact" ref="/root/send/sendinfo1/spclmentfact" navindex="12" scroll="vertical" style="left:108px; top:345px; width:436px; height:36px; "/>
- <datagrid id="grd_SiNursMngt" nodeset="/root/main/SiNursMngt/grdSiNursMngt" caption="단체번호^명찰번호^성명^주민번호^연락처^휴대폰^특기사항^등록일시^주소^입력자" colsep="^" colwidth="65, 81, 75, 100, 80, 80, 119, 100, 100, 100" dataheight="25" defaultrows="1" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:387px; width:539px; height:280px; ">
- <col ref="carecmntno"/>
- <col ref="namecardno"/>
- <col ref="hngnm"/>
- <col ref="rrgstno"/>
- <col ref="tel"/>
- <col ref="mpphonno"/>
- <col ref="spclmentfact"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd/hh:nn:ss"/>
- <col ref="addr"/>
- <col ref="lastupdtrid"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( isDataCell() ){
- var row = grd_SiNursMngt.row;
- if (row >= grd_SiNursMngt.fixedrows){
- model.setvalue("/root/send/sendinfo1/hngnm", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/hngnm"));
- model.setvalue("/root/send/sendinfo1/rrgstno", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/rrgstno"));
- model.setvalue("/root/send/sendinfo1/tel", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/tel"));
- model.setvalue("/root/send/sendinfo1/mpphonno", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/mpphonno"));
- model.setvalue("/root/send/sendinfo1/namecardno", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/namecardno"));
- model.setvalue("/root/send/sendinfo1/carecmntno", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/carecmntno"));
- model.setvalue("/root/send/sendinfo1/lastupdtdt", (model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/fstrgstdt")).substr(0, 8));
- model.setvalue("/root/send/sendinfo1/addr", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/addr"));
- model.setvalue("/root/send/sendinfo1/spclmentfact", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/spclmentfact"));
- model.setvalue("/root/send/sendinfo1/state","U");
- model.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_SiNursMngt.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="cell_1" style="left:5px; top:272px; width:100px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
- <input id="ipt_tel" ref="/root/send/sendinfo1/tel" class="input_default" navindex="6" style="left:108px; top:273px; width:115px; height:19px; text-align:center; "/>
- <input id="ipt_mpphonno" ref="/root/send/sendinfo1/mpphonno" class="input_default" navindex="7" style="left:226px; top:273px; width:115px; height:19px; text-align:center; "/>
- <group id="group2" style="left:549px; top:10px; width:635px; height:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:635px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line40" class="line_4" style="x1:549px; y1:7px; x2:549px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button9" class="btn1_letter2" navindex="15" style="left:564px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var referenceValue = model.getValue("/root/send/data3/reference");
- switch (referenceValue){
- case "0":
- model.setValue("/root/send/sendinfo2/reference2", "");
- model.setValue("/root/send/sendinfo2/reference1", referenceValue);
- submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
- break;
- case "1":
- if (model.getValue("/root/send/data3/carecmntno") == "") {
- messageBox("간병단체명 입력은", "I003");
- } else {
- model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/carecmntno"));
- model.setValue("/root/send/sendinfo2/reference1", referenceValue);
- submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
- }
- break;
-
- case "2":
- if (model.getValue("/root/send/data3/fromdd") == "") {
- messageBox("간병시작일 입력은", "I003");
- } else {
- model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/fromdd"));
- model.setValue("/root/send/sendinfo2/reference1", referenceValue);
- submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
- }
- break;
- // 병동조회조건 임시제거
- /*
- case "3":
- if (model.getValue("/root/send/data3/carecmntno") == "") {
- messageBox("병동선택은", "I003");
- } else {
- model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/wardcd"));
- model.setValue("/root/send/sendinfo2/reference1", referenceValue);
- submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
- }
- break;
- */
- case "3":
- if (model.getValue("/root/send/data3/pid") == "") {
- messageBox("환자번호 입력은", "I003");
- } else {
- model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/pid"));
- model.setValue("/root/send/sendinfo2/reference1", referenceValue);
- submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
- }
- break;
- case "4":
- if (model.getValue("/root/send/data3/namecardno") == "") {
- messageBox("명찰번호 입력은", "I003");
- } else {
- model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/namecardno"));
- model.setValue("/root/send/sendinfo2/reference1", referenceValue);
- submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
- }
- break;
- case "5":
- if (model.getValue("/root/send/data3/namecardno") == "") {
- messageBox("간병인명 입력은", "I003");
- } else {
- model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/namecardno"));
- model.setValue("/root/send/sendinfo2/reference1", referenceValue);
- submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
- }
- break;
- case "6":
- if (model.getValue("/root/send/data3/satsfctactcd") == "") {
- messageBox("간병인평가 구분을 선택하십시오!!", "I");
- } else {
- model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/satsfctactcd"));
- model.setValue("/root/send/sendinfo2/reference1", referenceValue);
- submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
- }
- break;
- }
- ]]>
- </script>
- </button>
- <caption id="caption32" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회조건 :</caption>
- <select1 id="cmb_reference" ref="/root/send/data3/reference" class="combo_search" navindex="13" appearance="minimal" style="left:108px; top:8px; width:119px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value>0</value>
- </item>
- <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>
- <item>
- <label>간병인명</label>
- <value>5</value>
- </item>
- <item>
- <label>간병인평가</label>
- <value>6</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var referenceValue = cmb_reference.value;
- switch (referenceValue){
- case "0":
- cmb_carecmntno.visible= false;
- ipt_fromdd.visible = false;
- cmb_wardcd.visible= false;
- ipt_pid.visible = false;
- ipt_namecard.visible = false;
- cmb_satsfctactcd.visible = false;
- break;
- case "1":
- cmb_carecmntno.visible= true;
- ipt_fromdd.visible = false;
- cmb_wardcd.visible= false;
- ipt_pid.visible = false;
- ipt_namecard.visible = false;
- cmb_satsfctactcd.visible = false;
- model.setFocus("cmb_carecmntno");
- break;
- case "2":
- cmb_carecmntno.visible= false;
- ipt_fromdd.visible = true;
- cmb_wardcd.visible= false;
- ipt_pid.visible = false;
- ipt_namecard.visible = false;
- cmb_satsfctactcd.visible = false;
- model.setFocus("ipt_fromdd");
- break;
- // 병동 제거
- /* case "3":
- cmb_carecmntno.visible= false;
- ipt_fromdd.visible = false;
- cmb_wardcd.visible= true;
- ipt_pid.visible = false;
- ipt_namecard.visible = false;
- model.setFocus("cmb_wardcd");
- break;
- */
- case "3":
- cmb_carecmntno.visible= false;
- ipt_fromdd.visible = false;
- cmb_wardcd.visible= false;
- ipt_pid.visible = true;
- ipt_namecard.visible = false;
- cmb_satsfctactcd.visible = false;
- model.setFocus("ipt_pid");
- break;
- case "4":
- cmb_carecmntno.visible= false;
- ipt_fromdd.visible = false;
- cmb_wardcd.visible= false;
- ipt_pid.visible = false;
- ipt_namecard.visible = true;
- cmb_satsfctactcd.visible = false;
- model.setFocus("ipt_namecard");
- break;
- case "5":
- cmb_carecmntno.visible= false;
- ipt_fromdd.visible = false;
- cmb_wardcd.visible= false;
- ipt_pid.visible = false;
- ipt_namecard.visible = true;
- cmb_satsfctactcd.visible = false;
- model.setFocus("ipt_namecard");
- break;
- case "6":
- cmb_carecmntno.visible= false;
- ipt_fromdd.visible = false;
- cmb_wardcd.visible= false;
- ipt_pid.visible = false;
- ipt_namecard.visible = false;
- cmb_satsfctactcd.visible = true;
- model.setFocus("cmb_satsfctactcd");
- break;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_fromdd" ref="/root/send/data3/fromdd" class="input_search" format="yyyy-mm-dd" style="left:230px; top:8px; width:140px; height:19px; "/>
- <input id="ipt_pid" ref="/root/send/data3/pid" class="input_search" style="left:230px; top:8px; width:140px; height:19px; "/>
- <input id="ipt_namecard" ref="/root/send/data3/namecardno" class="input_search" style="left:230px; top:8px; width:140px; height:19px; "/>
- <select1 id="cmb_carecmntno" ref="/root/send/data3/carecmntno" class="combo_search" appearance="minimal" style="left:230px; top:8px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/carecmntno">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_wardcd" ref="/root/send/data3/wardcd" class="combo_search" appearance="minimal" style="left:230px; top:8px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_satsfctactcd" ref="/root/send/data3/satsfctactcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:230px; top:8px; width:140px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value>00</value>
- </item>
- <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>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_SiNursInfo" nodeset="/root/main/SiNurInfo/grdSiNursInfo" caption="단체번호^명찰번호^간병인명^간병시작일^간병종료일^환자번호^환자성명^병동^병실^입원일자^퇴원일자^만족도" colsep="^" colwidth="55, 59, 61, 79, 77, 57, 62, 80, 45, 71, 77, 100" dataheight="23" defaultrows="1" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:549px; top:75px; width:635px; height:595px; ">
- <col disabled="false" ref="carecmntno"/>
- <col disabled="false" ref="namecardno"/>
- <col disabled="false" ref="carm_hngnm"/>
- <col disabled="false" ref="fromdd" format="yyyy-mm-dd"/>
- <col disabled="false" ref="todd" format="yyyy-mm-dd"/>
- <col disabled="false" ref="pid"/>
- <col disabled="false" ref="ptbs_hngnm"/>
- <col disabled="false" ref="wardcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="false" ref="roomcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/roomcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="false" ref="indd" format="yyyy-mm-dd"/>
- <col disabled="false" ref="dschdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="satsfctactcd" type="combo">
- <choices>
- <item>
- <label/>
- <value>00</value>
- </item>
- <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>
- </choices>
- </col>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 이 정보를 기반으로 [환자간병관리] 탭의 정보 설정
- // 1. 환자정보조회
- // 2. 입원정보조회
- // 3. 간병인정보조회
- // 4. 환자간병내역조회
- if( isDataCell() ){
- var iCurrentRow = grd_SiNursInfo.row;
- if (iCurrentRow > 0) {
- // 노드셋 초기화
- initial_PatSiNursInfo();
-
- var sPid = model.getValue("/root/main/SiNurInfo/grdSiNursInfo[" + iCurrentRow + "]/pid");
- if (!isNull(sPid)) {
-
- model.setValue("/root/hidden/source/srchcond", "1");
- model.setValue("/root/hidden/source/pid", sPid);
- //환자등록번호 체크
- if(sPid.length >= 1 ){
-
- if(submit("TRPMC02500")){
-
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
- model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/result/patinfo/patinfolist/pid"));
- model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/result/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/result/patinfo/patinfolist/sex"));
- model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/result/patinfo/patinfolist/age"));
- model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/result/patinfo/patinfolist/hometel"));
- model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/result/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/result/patinfo/patinfolist/zipcd1"));
- model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/result/patinfo/patinfolist/zipcd2"));
- model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/result/patinfo/patinfolist/zipcdseq"));
- model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/result/patinfo/patinfolist/addr"));
- model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/result/patinfo/patinfolist/detladdr"));
-
- fGetPatInptInfo();
-
- model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
- model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
- model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
- model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
- model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
- model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
-
-
- // 환자간병내역조회
- fGetCarpList();
-
- model.refresh();
-
- }
- }
-
- }else{
- messageBox("환자등록번호를 정확히", "C001");
- }
- }
-
-
- var sHngnm = model.getValue("/root/main/SiNurInfo/grdSiNursInfo[" + iCurrentRow + "]/carm_hngnm");
- if (!isNull(sHngnm)) {
- // 간병인정보조회
- fGetSiNursInfo(sHngnm);
-
- }
- // 탭전환
- model.refresh();
- btn_patsinurnmg.selected= true;
- btn_patsinurnmg.dispatch("onclick");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_SiNursInfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="group4" style="left:5px; top:680px; width:1184px; height:27px; ">
- <button id="button10" class="btn4_letter3" style="left:1116px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- initial_Reference();
- initial_SiNursCmntMngt();
- initial_SiNursMngt();
- initial_SiNursInfo();
- initial_PatSiNursInfo();
- submit("TRPMI00106");
- fGetSiNursCmntMngt();
- //submit("TRPMC00801"); // 위 함수로 대체
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1184px; y2:0px; "/>
- </group>
- <line id="line4" class="line_3" style="x1:5px; y1:382px; x2:544px; y2:382px; "/>
- <input id="ipt_carecmntnm" ref="/root/send/sendinfo/carecmntnm" class="input_default" navindex="2" style="left:108px; top:55px; width:436px; height:19px; "/>
- <line id="line12" class="line_2" style="x1:5px; y1:52px; x2:544px; y2:52px; "/>
- <caption id="caption11" class="cell_1" style="left:344px; top:272px; width:85px; height:23px; vertical-align:middle; ">명찰번호</caption>
- <select1 id="cmb_carecmntnm" ref="/root/send/sendinfo1/carecmntno" class="combo_default" navindex="9" appearance="minimal" style="left:108px; top:297px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/carecmntno">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_delcarc" class="btn5_letter2" style="left:502px; top:5px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setvalue("/root/send/sendinfo/state","D");
-
- submit("TXPMC00801");
- initial_SiNursCmntMngt();
- fGetSiNursCmntMngt();
- //submit("TRPMC00801"); // 위 함수로 대체
- ]]>
- </script>
- </button>
- <button id="btn_savecarc" class="btn5_letter2" style="left:457px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TXPMC00801");
- initial_SiNursCmntMngt();
- fGetSiNursCmntMngt();
- //submit("TRPMC00801"); // 위 함수로 대체
- ]]>
- </script>
- </button>
- <button id="button1" class="btn5_letter2" style="left:502px; top:223px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/sendinfo1/state","D");
- submit("TXPMC00802");
- initial_SiNursMngt();
- submit("TRPMC00802");
- ]]>
- </script>
- </button>
- <button id="btn_savecarm" class="btn5_letter2" style="left:457px; top:223px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/data5");
- model.resetInstanceNode("/root/send/data6");
- model.resetInstanceNode("/root/hidden/rcvflag/flag/chkcount");
- model.resetInstanceNode("/root/hidden/carm_count/flag/count");
-
- var sNameCardNo = model.getValue("/root/send/sendinfo1/namecardno");
- var sCareCmntNo = model.getValue("/root/send/sendinfo1/carecmntno");
-
- if (isNull(sNameCardNo)) {
- messageBox("명찰번호를", "C001");
- return;
- }
-
- if (isNull(sCareCmntNo)) {
- messageBox("간호단체를", "C002");
- return;
- }
-
- //2009/06/17 김주희- 간병인 이중등록 blocking (간병인 주민등록번호 기준)
- model.setValue("/root/send/data5/rrgstno", model.getValue("/root/send/sendinfo1/rrgstno")); //주민번호
-
- submit("TRPMC00807")
-
- if(model.getValue("/root/hidden/rcvflag/flag/chkcount") > 0){
- messageBox("주민번호가 같은 간병인정보가 존재합니다", "I007");
- return;
- }
-
- //2009/06/18 김주희- 간호단체명과 명찰번호가 같은 간병인데이터 저장 시 blocking
- model.setValue("/root/send/data6/carecmntno", model.getValue("/root/send/sendinfo1/carecmntno")); //간호단체명
- model.setValue("/root/send/data6/namecardno", model.getValue("/root/send/sendinfo1/namecardno")); //명찰번호
-
- submit("TRPMC00808")
- if(model.getValue("/root/hidden/carm_count/flag/count") > 0){
- messageBox("해당단체의 명찰번호가 존재합니다. 명찰번호를", "I007");
- return;
- }
- //
-
- var sState = model.getValue("/root/send/sendinfo1/state");
- if (isNull(sState)) {
- model.setvalue("/root/send/sendinfo1/state","I");
- }
- submit("TXPMC00802");
- initial_SiNursMngt();
- submit("TRPMC00802");
- ]]>
- </script>
- </button>
- </case>
- <case id="case2">
- <line id="line15" class="line_2" style="x1:5px; y1:152px; x2:773px; y2:152px; "/>
- <line id="line11" class="line_2" style="x1:5px; y1:76px; x2:959px; y2:76px; "/>
- <line id="line10" class="line_2" style="x1:5px; y1:52px; x2:959px; y2:52px; "/>
- <caption id="caption20" class="cell_1" style="left:545px; top:30px; width:100px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption12" class="cell_1" style="left:961px; top:30px; width:100px; height:23px; vertical-align:middle; ">입원경로</caption>
- <input id="ipt_hngnm2" ref="/root/main/PtbsInfo/hngnm" class="input_s_essential" imemode="hangul" style="left:108px; top:55px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if (event.keyCode == '13') {
- model.setValue("/root/hidden/source/srchcond", "2");
- model.setValue("/root/hidden/source/hngnm", ipt_hngnm2.currentText);
- //환자등록번호 체크
- if(ipt_hngnm2.currentText.length >= 2 ){
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/patinfo");
-
- if(submit("TRPMC02500")){
-
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
- model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/result/patinfo/patinfolist/pid"));
- model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/result/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/result/patinfo/patinfolist/sex"));
- model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/result/patinfo/patinfolist/age"));
- model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/result/patinfo/patinfolist/hometel"));
- model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/result/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/result/patinfo/patinfolist/zipcd1"));
- model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/result/patinfo/patinfolist/zipcd2"));
- model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/result/patinfo/patinfolist/zipcdseq"));
- model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/result/patinfo/patinfolist/addr"));
- model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/result/patinfo/patinfolist/detladdr"));
-
- fGetPatInptInfo();
-
- model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
- model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
- model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
- model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
- model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
- model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
- model.refresh();
-
- }else{
- model.makeNode("/root/main/patinfo/patinfolist");
- // 환자조회팝업 오픈
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/source", "/root/send");
- model.resetInstanceNode("/root/hidden/source");
-
- if (model.getValue("/root/main/popupendflag") == "ok") {
- model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/patinfo/patinfolist/age"));
- model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/patinfo/patinfolist/hometel"));
- model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/patinfo/patinfolist/zipcd1"));
- model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/patinfo/patinfolist/zipcd2"));
- model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/patinfo/patinfolist/zipcdseq"));
- model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/patinfo/patinfolist/addr"));
- model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/patinfo/patinfolist/detladdr"));
-
- fGetPatInptInfo();
-
- model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
- model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
- model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
- model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
- model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
- model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
- }
-
- model.refresh();
- //messageBox("없는 환자 번호 입니다.", "E999", "");
- }
- }
-
- }else{
- // 환자 이름 길이 체크
- model.alert("성명은 2자 이상이어야 합니다.!!");
- //messageBox("환자등록번호를 정확히", "C001");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption15" class="tit_2" style="left:10px; top:10px; width:170px; height:13px; ">인적사항</caption>
- <caption id="caption16" class="cell_1" style="left:5px; top:54px; width:100px; height:23px; vertical-align:middle; ">성명[한글]</caption>
- <caption id="caption17" class="cell_1" style="left:5px; top:78px; width:100px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption19" class="cell_1" style="left:545px; top:54px; width:100px; height:23px; vertical-align:middle; ">전문의</caption>
- <caption id="caption22" class="cell_1" style="left:545px; top:78px; width:100px; height:23px; vertical-align:middle; ">하위주소</caption>
- <caption id="caption23" class="cell_1" style="left:226px; top:54px; width:100px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
- <line id="line8" class="line_1" style="x1:5px; y1:25px; x2:1184px; y2:25px; "/>
- <caption id="caption36" class="cell_1" style="left:961px; top:54px; width:100px; height:23px; vertical-align:middle; ">입원일자</caption>
- <caption id="caption24" class="cell_1" style="left:226px; top:78px; width:100px; height:23px; vertical-align:middle; ">주소</caption>
- <caption id="caption37" class="cell_1" style="left:961px; top:78px; width:100px; height:23px; vertical-align:middle; ">퇴원일자</caption>
- <caption id="caption28" class="cell_1" style="left:5px; top:30px; width:100px; height:23px; vertical-align:middle; ">환자번호</caption>
- <input id="ipt_pid2" ref="/root/main/PtbsInfo/pid" class="input_s_essential" style="left:108px; top:31px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') {
- model.setValue("/root/hidden/source/srchcond", "1");
- model.setValue("/root/hidden/source/pid", ipt_pid2.currentText);
- //환자등록번호 체크
- if(ipt_pid2.currentText.length >= 1 ){
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/patinfo");
-
- if(submit("TRPMC02500")){
-
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
- model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/result/patinfo/patinfolist/pid"));
- model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/result/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/result/patinfo/patinfolist/sex"));
- model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/result/patinfo/patinfolist/age"));
- model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/result/patinfo/patinfolist/hometel"));
- model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/result/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/result/patinfo/patinfolist/zipcd1"));
- model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/result/patinfo/patinfolist/zipcd2"));
- model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/result/patinfo/patinfolist/zipcdseq"));
- model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/result/patinfo/patinfolist/addr"));
- model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/result/patinfo/patinfolist/detladdr"));
-
- fGetPatInptInfo();
-
- model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
- model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
- model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
- model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
- model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
- model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
-
-
- // 환자간병내역조회
- fGetCarpList();
-
- model.refresh();
-
- }else{
- model.makeNode("/root/main/patinfo/patinfolist");
- // 환자조회팝업 오픈
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/source", "/root/send");
- model.resetInstanceNode("/root/hidden/source");
-
- if (model.getValue("/root/main/popupendflag") == "ok") {
- model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/patinfo/patinfolist/age"));
- model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/patinfo/patinfolist/hometel"));
- model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/patinfo/patinfolist/zipcd1"));
- model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/patinfo/patinfolist/zipcd2"));
- model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/patinfo/patinfolist/zipcdseq"));
- model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/patinfo/patinfolist/addr"));
- model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/patinfo/patinfolist/detladdr"));
-
- fGetPatInptInfo();
-
- model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
- model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
- model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
- model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
- model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
- model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
- }
-
- model.refresh();
- //messageBox("없는 환자 번호 입니다.", "E999", "");
- }
- }
-
- }else{
- messageBox("환자등록번호를 정확히", "C001");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption30" class="cell_1" style="left:226px; top:30px; width:100px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption31" class="cell_1" style="left:761px; top:55px; width:83px; height:23px; vertical-align:middle; ">주치의</caption>
- <line id="line9" class="line_1" style="x1:5px; y1:125px; x2:1184px; y2:125px; "/>
- <caption id="caption21" class="cell_1" style="left:231px; top:130px; width:100px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption26" class="cell_1" style="left:550px; top:130px; width:100px; height:23px; vertical-align:middle; ">명찰번호</caption>
- <input id="input29" ref="/root/main/CarmInfo/namecardno" class="input_default" disabled="true" style="left:653px; top:131px; width:120px; height:19px; "/>
- <caption id="caption27" class="tit_2" style="left:10px; top:110px; width:170px; height:13px; ">간병인등록</caption>
- <caption id="caption29" class="cell_1" style="left:5px; top:130px; width:100px; height:23px; vertical-align:middle; ">성명</caption>
- <input id="ipt_hngnm3" ref="/root/main/CarmInfo/hngnm" class="input_default" imemode="hangul" style="left:108px; top:131px; width:101px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') {
- //환자등록번호 체크
- if(ipt_hngnm3.currentText.length >= 2 ){
- // 간병인정보 조회
- fGetSiNursInfo(ipt_hngnm3.currentText);
- } else {
- model.alert("이름은 2자이상 입력해야 합니다.!!");
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_search2" class="icon_search" style="left:212px; top:132px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- modal("SPPMC05200", 1,150, 150, "SPPMC05200", "/root/main/CarmInfo/hngnm", "/root/send/data1/hngnm");
-
- iCount = getNodesetCount("/root/hidden/h_carm/getCarmList");
- if (iCount == 1) {
- model.setValue("/root/main/CarmInfo/carecmntno", model.getValue("/root/hidden/h_carm/getCarmList/carecmntno"));
- model.setValue("/root/main/CarmInfo/namecardno", model.getValue("/root/hidden/h_carm/getCarmList/namecardno"));
- model.setValue("/root/main/CarmInfo/hngnm", model.getValue("/root/hidden/h_carm/getCarmList/hngnm"));
- model.setValue("/root/main/CarmInfo/rrgstno", model.getValue("/root/hidden/h_carm/getCarmList/rrgstno"));
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input10" ref="/root/main/CarmInfo/rrgstno" class="input_default" disabled="true" format="999999-9999999" style="left:334px; top:131px; width:211px; height:19px; text-align:center; "/>
- <input id="input20" ref="/root/main/CarpInfo/fromdd" class="input_default" inputtype="date" style="left:108px; top:155px; width:120px; height:19px; "/>
- <caption id="caption34" class="cell_1" style="left:5px; top:154px; width:100px; height:23px; vertical-align:middle; ">시작일자</caption>
- <caption id="caption35" class="cell_1" style="left:231px; top:154px; width:100px; height:23px; vertical-align:middle; ">종료일자</caption>
- <input id="input35" ref="/root/main/CarpInfo/todd" class="input_default" inputtype="date" style="left:334px; top:155px; width:120px; height:19px; "/>
- <caption id="caption38" class="cell_1" style="left:550px; top:154px; width:100px; height:23px; vertical-align:middle; ">만족도</caption>
- <select1 id="combo1" ref="/root/main/CarpInfo/satsfctactcd" class="combo_default" appearance="minimal" style="left:653px; top:155px; width:120px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value>00</value>
- </item>
- <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>
- </choices>
- </select1>
- <textarea id="textarea2" ref="/root/main/CarpInfo/spcffact" disabled="false" scroll="vertical" imemode="hangul" style="left:879px; top:132px; width:305px; height:42px; "/>
- <caption id="caption39" class="cell_1" style="left:776px; top:130px; width:100px; height:47px; vertical-align:middle; ">특이사항</caption>
- <line id="line17" class="line_1" style="x1:5px; y1:201px; x2:1184px; y2:201px; "/>
- <caption id="caption40" class="tit_2" style="left:10px; top:186px; width:170px; height:13px; ">환자간병내역</caption>
- <output id="output2" ref="/root/main/PtbsInfo/zipcd1" class="output_fix" appearance="output" style="left:329px; top:80px; width:30px; height:19px; "/>
- <output id="output3" ref="/root/main/PtbsInfo/zipcd2" class="output_fix" appearance="output" style="left:362px; top:80px; width:30px; height:19px; "/>
- <output id="output4" ref="/root/main/PtbsInfo/addr" class="output_fix" appearance="output" style="left:395px; top:80px; width:147px; height:19px; "/>
- <output id="output5" ref="/root/main/PtbsInfo/detladdr" class="output_fix" appearance="output" style="left:648px; top:80px; width:310px; height:19px; "/>
- <output id="output6" ref="/root/main/PtbsInfo/mpphontel" class="output_fix" appearance="output" style="left:437px; top:55px; width:105px; height:19px; "/>
- <output id="output7" ref="/root/main/PtbsInfo/hometel" class="output_fix" appearance="output" style="left:329px; top:55px; width:105px; height:19px; "/>
- <output id="output11" ref="/root/main/InptInfo/inpath" class="output_fix" appearance="output" style="left:1064px; top:31px; width:120px; height:19px; "/>
- <output id="output12" ref="/root/main/InptInfo/indd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1064px; top:55px; width:120px; height:19px; "/>
- <output id="output13" ref="/root/main/InptInfo/dschdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1064px; top:79px; width:120px; height:19px; "/>
- <output id="output14" ref="/root/main/PtbsInfo/sex" class="output_fix" appearance="output" style="left:108px; top:80px; width:56px; height:19px; "/>
- <output id="output15" ref="/root/main/PtbsInfo/rrgstno1" class="output_fix" appearance="output" style="left:329px; top:31px; width:105px; height:19px; "/>
- <output id="output17" ref="/root/main/PtbsInfo/age" class="output_fix" appearance="output" style="left:167px; top:80px; width:56px; height:19px; "/>
- <group id="group5" style="left:5px; top:680px; width:1184px; height:27px; ">
- <button id="btn_save3" class="btn4_letter2" style="left:997px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 간병관리내역 등록
- var sPid = model.getValue("/root/main/PtbsInfo/pid");
- var sNameCardNo = model.getValue("/root/main/CarmInfo/namecardno");
- var sIndd = model.getValue("/root/main/InptInfo/indd");
-
- if (isNull(sPid)) {
- messageBox("환자정보를", "C001");
- return;
- }
-
- if (isNull(sNameCardNo)) {
- messageBox("간병인 정보를", "C001");
- return;
- }
- //재원환자 아니여도 간병인 등록가능하게 풀어달라 요청(성가:김성진/서울성모:조진희/의정부:정수경간호사)-20090728김주희수정
- /*
- if (isNull(sIndd)) {
- messageBox("입원환자가 아닙니다. 간병인내역을 저장", "E001");
- return;
- }*/
-
- // 환자 간병인내역 셋팅
- model.setValue("/root/main/CarpInfo/pid", model.getValue("/root/main/PtbsInfo/pid"));
- model.setValue("/root/main/CarpInfo/namecardno", model.getValue("/root/main/CarmInfo/namecardno"));
- model.setValue("/root/main/CarpInfo/carecmntno", model.getValue("/root/main/CarmInfo/carecmntno"));
- //model.setValue("/root/main/CarpInfo/instcd", "");
- model.setValue("/root/main/CarpInfo/indd", model.getValue("/root/main/InptInfo/indd"));
- //model.setValue("/root/main/CarpInfo/fromdd", "");
- //model.setValue("/root/main/CarpInfo/todd", "");
- //model.setValue("/root/main/CarpInfo/satsfctactcd", "");
- //model.setValue("/root/main/CarpInfo/spcffact", "");
- // Insert, Update 구분 - 환자별 간병내역 그리드를 선택하면 Update가 되고 그렇지 않으면 Insert가 된다.
- var sState = model.getValue("/root/main/CarpInfo/state");
- if (isNull(sState)) {
- model.setValue("/root/main/CarpInfo/state", "I");
- }
-
- if (submit("TXPMC00803")) {
- messageBox("간병인 내역 저장이", "I001");
- fGetCarpList();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="btn4_letter3" style="left:1116px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- initial_Reference();
- initial_SiNursCmntMngt();
- initial_SiNursMngt();
- initial_SiNursInfo();
- initial_PatSiNursInfo();
- submit("TRPMI00106");
- fGetSiNursCmntMngt();
- ]]>
- </script>
- </button>
- <line id="line19" class="line_6" style="x1:0px; y1:0px; x2:1184px; y2:0px; "/>
- <line id="line20" class="line_6" style="x1:0px; y1:0px; x2:1184px; y2:0px; "/>
- <button id="btn_delete3" class="btn4_letter2" style="left:1057px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 간병관리내역 삭제
- // 환자 간병인내역 셋팅
-
- var sPid = model.getValue("/root/main/CarpInfo/pid");
- if (!isNull(sPid)) {
- model.setValue("/root/main/CarpInfo/state", "D");
-
- if (submit("TXPMC00803")) {
- messageBox("간병인 내역 삭제가", "I001");
- fGetCarpList();
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <line id="line13" class="line_3" style="x1:5px; y1:100px; x2:1184px; y2:100px; "/>
- <line id="line14" class="line_3" style="x1:5px; y1:176px; x2:1184px; y2:176px; "/>
- <output id="output1" ref="/root/main/PtbsInfo/rrgstno2" class="output_fix" appearance="output" style="left:437px; top:31px; width:105px; height:19px; "/>
- <button id="btn_search" class="icon_search" style="left:208px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //팝업창
- model.makeNode("/root/main/patinfo/patinfolist");
- // 환자조회팝업 오픈
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/source", "/root/send");
- model.resetInstanceNode("/root/hidden/source");
-
- if (model.getValue("/root/main/popupendflag") == "ok") {
- model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/patinfo/patinfolist/age"));
- model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/patinfo/patinfolist/hometel"));
- model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/patinfo/patinfolist/zipcd1"));
- model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/patinfo/patinfolist/zipcd2"));
- model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/patinfo/patinfolist/zipcdseq"));
- model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/patinfo/patinfolist/addr"));
- model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/patinfo/patinfolist/detladdr"));
-
- // 환자입원등록정보 조회
- fGetPatInptInfo();
-
- model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
- model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
- model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
- model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
- model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
- model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
-
- // 환자간병내역 조회
- fGetCarpList();
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_carplist" nodeset="/root/main/carplist/grdSiNursInfo" caption="입원일자^퇴원일자^명찰번호^간병인성명^시작일자^종료일자^만족도^입력자^입력일자^특이사항" colsep="^" colwidth="85, 85, 100, 85, 88, 100, 100, 100, 90, 310" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:206px; width:1179px; height:460px; ">
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="namecardno" style="text-align:center; "/>
- <col ref="carm_hngnm" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="satsfctactcd" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label/>
- <value>00</value>
- </item>
- <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>
- </choices>
- </col>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="spcffact"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 수정 기능
- if( isDataCell() ){
- // 1. 환자번호에 대한 ptbs, inpt 조회
- // 그리드를 선택하는 시점에 ptbs와 inpt는 조회되어 있으므로 다시 조회하지 않음
- // 2. 간병인 이름으로 간병인정보조회
- var iCurrentRow = grd_carplist.row;
- if (iCurrentRow > 0) {
- var sHngnm = model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/carm_hngnm");
- if (!isNull(sHngnm)) {
- // 간병인정보 조회
- fGetSiNursInfo(sHngnm);
-
- model.setValue("/root/main/CarpInfo/pid", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/pid"));
- model.setValue("/root/main/CarpInfo/patseqno", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/patseqno"));
- model.setValue("/root/main/CarpInfo/namecardno", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/namecardno"));
- model.setValue("/root/main/CarpInfo/carecmntno", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/carecmntno"));
- //model.setValue("/root/main/CarpInfo/instcd", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/instcd"));
- model.setValue("/root/main/CarpInfo/indd", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/indd"));
- model.setValue("/root/main/CarpInfo/fromdd", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/fromdd"));
- model.setValue("/root/main/CarpInfo/todd", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/todd"));
- model.setValue("/root/main/CarpInfo/satsfctactcd", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/satsfctactcd"));
- model.setValue("/root/main/CarpInfo/spcffact", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/spcffact"));
-
- model.setValue("/root/main/CarpInfo/state", "U");
-
- model.refresh();
- }
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_orddeptcd" ref="/root/main/InptInfo/orddeptcd" class="combo_fix" disabled="true" appearance="minimal" style="left:648px; top:31px; width:309px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_medispclid" ref="/root/main/InptInfo/medispclid" class="combo_fix" disabled="true" appearance="minimal" style="left:648px; top:55px; width:109px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/main/InptInfo/atdoctid" class="combo_fix" disabled="true" appearance="minimal" style="left:846px; top:55px; width:109px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </case>
- </switch>
- <button id="btn_sinurnmg" class="btn_sw" group="tab" selected="true" style="left:0px; top:4px; width:72px; height:22px; ">
- <caption>간병인관리</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <button id="btn_patsinurnmg" class="btn_sw" group="tab" style="left:72px; top:4px; width:84px; height:22px; ">
- <caption>환자간병관리</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|