123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>(수술/마취/회복) 간호 업무 보고</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <opfromdd/>
- <optodd/>
- <deptcd/>
- <instcd/>
- </cond>
- <oplist>
- <duty>
- <list>
- <dutnm1/>
- <dutnm2/>
- <dutnm3/>
- <remark/>
- </list>
- </duty>
- <ercalllist>
- <list>
- <seqno/>
- <searchseqno/>
- <duty/>
- <duttm/>
- <nurnm/>
- <withop/>
- </list>
- </ercalllist>
- <cntlist>
- <list>
- <gubun/>
- <dept1/>
- <dept2/>
- <dept3/>
- <dept4/>
- <dept5/>
- <dept6/>
- <dept7/>
- <dept8/>
- <dept9/>
- <dept10/>
- <dept11/>
- <dept12/>
- <dept13/>
- <dept14/>
- <dept15/>
- <total/>
- </list>
- </cntlist>
- <exschlist>
- <list>
- <opflagcd/>
- <opflagcdnm/>
- <oproomcd/>
- <oproomcdnm/>
- <perfdeptcd/>
- <depthngnm/>
- <opinouttime/>
- <roomnm/>
- <pid/>
- <hngnm/>
- <opcd/>
- <opcdenm/>
- <perfdrid/>
- <perfdridnm/>
- <scrnrid/>
- <scrnrnm/>
- <cirnrid/>
- <cirnrnm/>
- <anstmthdcd/>
- <anstmthdcdnm/>
- <opextime/>
- <oprsrvno/>
- </list>
- </exschlist>
- </oplist>
- <anlist>
- <duty>
- <list>
- <dutnm1/>
- <dutnm2/>
- <dutnm3/>
- <remark/>
- </list>
- </duty>
- <ercalllist>
- <list>
- <seqno/>
- <searchseqno/>
- <duty/>
- <duttm/>
- <nurnm/>
- <withop/>
- </list>
- </ercalllist>
- <cntlist>
- <list>
- <gubun/>
- <dept1/>
- <dept2/>
- <dept3/>
- <dept4/>
- <dept5/>
- <dept6/>
- <dept7/>
- <dept8/>
- <dept9/>
- <dept10/>
- <dept11/>
- <dept12/>
- <dept13/>
- <dept14/>
- <dept15/>
- <dept16/>
- <dept17/>
- <dept18/>
- <total/>
- </list>
- </cntlist>
- <exschlist>
- <list>
- <opflagcd/>
- <opflagcdnm/>
- <oproomcd/>
- <oproomcdnm/>
- <perfdeptcd/>
- <depthngnm/>
- <roomnm/>
- <pid/>
- <hngnm/>
- <sa/>
- <antime/>
- <anstmthdcd/>
- <anstmthdcdnm/>
- <anstdrid/>
- <anstdrnm/>
- <entrid/>
- <entrnm/>
- <oprsrvno/>
- </list>
- </exschlist>
- </anlist>
- <relist>
- <duty>
- <list>
- <dutnm1/>
- <dutnm2/>
- <dutnm3/>
- <remark/>
- </list>
- </duty>
- <ercalllist>
- <list>
- <seqno/>
- <searchseqno/>
- <duty/>
- <duttm/>
- <nurnm/>
- <withop/>
- </list>
- </ercalllist>
- <cntlist>
- <list>
- <gubun/>
- <dept1/>
- <dept2/>
- <dept3/>
- <dept4/>
- <dept5/>
- <dept6/>
- <dept7/>
- <dept8/>
- <dept9/>
- <dept10/>
- <dept11/>
- <dept12/>
- <dept13/>
- <dept14/>
- <dept15/>
- <dept16/>
- <dept17/>
- <dept18/>
- <total/>
- </list>
- </cntlist>
- <exschlist>
- <list>
- <perfdeptcd/>
- <depthngnm/>
- <roomnm/>
- <pid/>
- <hngnm/>
- <sa/>
- <retime/>
- <anstmthdcd/>
- <anstmthdcdnm/>
- <recinuserid/>
- <recoinnursnm/>
- <recoutuserid/>
- <recooutnursnm/>
- <oprsrvno/>
- </list>
- </exschlist>
- </relist>
- </main>
- <send/>
- <init>
- <optitle/>
- <antitle/>
- <retitle/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- <submission id="TRMNP08001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/oplist"/>
- <submission id="TRMNP08002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/anlist"/>
- <submission id="TRMNP08003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/relist"/>
- <submission id="TXMNP08001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/tmp/rslt"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript">
- <![CDATA[
- var gangnaminstcd = "";
- var yijungbuinstcd = "";
- var bucheoninstcd = "";
- var vincentinstcd = "";
- var yuidoinstcd = "";
-
- var opsaveflag = false;
- var ansaveflag = false;
- var resaveflag = false;
-
- function resetPage(gubun, init) {
- if(gubun == "all") {
- model.makeValue("/root/main/oplist/duty/list/dutnm1", "");
- model.makeValue("/root/main/oplist/duty/list/dutnm2", "");
- model.makeValue("/root/main/oplist/duty/list/dutnm3", "");
- model.makeValue("/root/main/oplist/duty/list/remark", "");
- model.makeValue("/root/main/anlist/duty/list/dutnm1", "");
- model.makeValue("/root/main/anlist/duty/list/dutnm2", "");
- model.makeValue("/root/main/anlist/duty/list/dutnm3", "");
- model.makeValue("/root/main/anlist/duty/list/remark", "");
- model.makeValue("/root/main/relist/duty/list/dutnm1", "");
- model.makeValue("/root/main/relist/duty/list/dutnm2", "");
- model.makeValue("/root/main/relist/duty/list/dutnm3", "");
- model.makeValue("/root/main/relist/duty/list/remark", "");
- if(init) {
- model.removeNodeset("/root/main/oplist/ercalllist");
- model.makeNode("/root/main/oplist/ercalllist");
- model.removeNodeset("/root/main/anlist/ercalllist");
- model.makeNode("/root/main/anlist/ercalllist");
- model.removeNodeset("/root/main/relist/ercalllist");
- model.makeNode("/root/main/relist/ercalllist");
- }
- } else {
- model.makeValue("/root/main/"+gubun+"/duty/list/dutnm1", "");
- model.makeValue("/root/main/"+gubun+"/duty/list/dutnm2", "");
- model.makeValue("/root/main/"+gubun+"/duty/list/dutnm3", "");
- model.makeValue("/root/main/"+gubun+"/duty/list/remark", "");
- if(init) {
- model.removeNodeset("/root/main/"+gubun+"/ercalllist");
- model.makeNode("/root/main/"+gubun+"/ercalllist");
- model.removeNodeset("/root/main/"+gubun+"/cntlist");
- model.makeNode("/root/main/"+gubun+"/cntlist");
- model.removeNodeset("/root/main/"+gubun+"/exschlist");
- model.makeNode("/root/main/"+gubun+"/exschlist");
- }
- }
- }
-
- function butSetting(opfromdd, optodd, deptcd) {
- var saveflag = false;
- if(opfromdd == optodd) saveflag = true;
-
- if(!saveflag) {
- if(deptcd == "O") {
- ipt_opduty1.disabled = true;
- ipt_opduty2.disabled = true;
- ipt_opduty3.disabled = true;
- txt_opremark.disabled = true;
- btn_opadd.disabled = true;
- btn_opdel.disabled = true;
- btn_opsave.disabled = true;
- } else if(deptcd == "A") {
- ipt_anduty1.disabled = true;
- ipt_anduty2.disabled = true;
- ipt_anduty3.disabled = true;
- txt_anremark.disabled = true;
- btn_anadd.disabled = true;
- btn_andel.disabled = true;
- btn_ansave.disabled = true;
- } else if(deptcd == "R") {
- ipt_reduty1.disabled = true;
- ipt_reduty2.disabled = true;
- ipt_reduty3.disabled = true;
- txt_reremark.disabled = true;
- btn_readd.disabled = true;
- btn_redel.disabled = true;
- btn_resave.disabled = true;
- } else if(deptcd == "") {
- ipt_opduty1.disabled = true;
- ipt_opduty2.disabled = true;
- ipt_opduty3.disabled = true;
- txt_opremark.disabled = true;
- ipt_anduty1.disabled = true;
- ipt_anduty2.disabled = true;
- ipt_anduty3.disabled = true;
- txt_anremark.disabled = true;
- ipt_reduty1.disabled = true;
- ipt_reduty2.disabled = true;
- ipt_reduty3.disabled = true;
- txt_reremark.disabled = true;
- btn_opadd.disabled = true;
- btn_opdel.disabled = true;
- btn_opsave.disabled = true;
- btn_anadd.disabled = true;
- btn_andel.disabled = true;
- btn_ansave.disabled = true;
- btn_readd.disabled = true;
- btn_redel.disabled = true;
- btn_resave.disabled = true;
- }
- } else {
- if(deptcd == "O") {
- ipt_opduty1.disabled = false;
- ipt_opduty2.disabled = false;
- ipt_opduty3.disabled = false;
- txt_opremark.disabled = false;
- btn_opadd.disabled = false;
- btn_opdel.disabled = false;
- btn_opsave.disabled = false;
- } else if(deptcd == "A") {
- ipt_anduty1.disabled = false;
- ipt_anduty2.disabled = false;
- ipt_anduty3.disabled = false;
- txt_anremark.disabled = false;
- btn_anadd.disabled = false;
- btn_andel.disabled = false;
- btn_ansave.disabled = false;
- } else if(deptcd == "R") {
- ipt_reduty1.disabled = false;
- ipt_reduty2.disabled = false;
- ipt_reduty3.disabled = false;
- txt_reremark.disabled = false;
- btn_readd.disabled = false;
- btn_redel.disabled = false;
- btn_resave.disabled = false;
- } else if(deptcd == "") {
- ipt_opduty1.disabled = false;
- ipt_opduty2.disabled = false;
- ipt_opduty3.disabled = false;
- txt_opremark.disabled = false;
- ipt_anduty1.disabled = false;
- ipt_anduty2.disabled = false;
- ipt_anduty3.disabled = false;
- txt_anremark.disabled = false;
- ipt_reduty1.disabled = false;
- ipt_reduty2.disabled = false;
- ipt_reduty3.disabled = false;
- txt_reremark.disabled = false;
- btn_opadd.disabled = true;
- btn_opdel.disabled = true;
- btn_opsave.disabled = true;
- btn_anadd.disabled = true;
- btn_andel.disabled = true;
- btn_ansave.disabled = true;
- btn_readd.disabled = true;
- btn_redel.disabled = true;
- btn_resave.disabled = true;
- }
- }
- }
-
- function fInit() {
- var date = getCurrentDate().toDate("YYYYMMDD");
- date.getAddDate(-1, "D");
- var curdate = date.getDateFormat();
-
- ipt_opfromdd.value = curdate;
- ipt_optodd.value = curdate;
- cmb_deptcd.value = "O";
- cmb_deptcd.dispatch("xforms-value-changed");
-
- var opdept1, opdept2, opdept3, opdept4, opdept5, opdept6, opdept7, opdept8, opdept9, opdept10, opdept11, opdept12, opdept13, opdept14, opdept15;
- fGetNursHardCdInfo("'077', '202', '203', '204'", getCurrentDate());
- for (var i=1; i <= getNodesetCount("/root/code/codeinfo/codelist"); i++) {
- switch (model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid")){
- case "077": // 병원별 기관코드
- switch(model.getValue("/root/code/codeinfo/codelist["+i+"]/supcdid")){
- case "01":
- gangnaminstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "02":
- yijungbuinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "03":
- bucheoninstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "04":
- vincentinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- case "05":
- yuidoinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- }
- }
- }
-
- var etcnm = ""; //기타값 명칭
- if(getUserInfo("dutplceinstcd") == vincentinstcd) etcnm = "기타";
- else etcnm = "OT";
-
- resetPage("oplist", true);
-
- for (i=0; i<=12; i++){
- grd_opcnt.insertRow(i,"below", "false", "true");
- }
- grd_opcnt.rebuild();
-
- var xchospatPath = "/root/main/oplist/cntlist/list";
- model.makeValue(xchospatPath+"["+1+"]/gubun" ,"수술건수");
- model.makeValue(xchospatPath+"["+2+"]/gubun" ,"전신(부위)");
- model.makeValue(xchospatPath+"["+3+"]/gubun" ,"국소");
- model.makeValue(xchospatPath+"["+4+"]/gubun" ,"마취없음");
- model.makeValue(xchospatPath+"["+5+"]/gubun" ,"마취건수");
- model.makeValue(xchospatPath+"["+6+"]/gubun" ,"전신(부위)");
- model.makeValue(xchospatPath+"["+7+"]/gubun" ,"통증치료");
- model.makeValue(xchospatPath+"["+8+"]/gubun" ,"응급(주간)");
- model.makeValue(xchospatPath+"["+9+"]/gubun" ,"응급(야간)");
- model.makeValue(xchospatPath+"["+10+"]/gubun" ,"연장건수");
- model.makeValue(xchospatPath+"["+11+"]/gubun" ,"연장시간");
- model.makeValue(xchospatPath+"["+12+"]/gubun" ,"취소건수");
-
- grd_opcnt.rowStyle(4, "all", "border-bottom-color") = "#000000";
- grd_opcnt.rowStyle(4, "all", "border-bottom-width") = "2px";
- grd_opcnt.rowStyle(7, "all", "border-bottom-color") = "#000000";
- grd_opcnt.rowStyle(7, "all", "border-bottom-width") = "2px";
- grd_opcnt.rowStyle(9, "all", "border-bottom-color") = "#000000";
- grd_opcnt.rowStyle(9, "all", "border-bottom-width") = "2px";
- grd_opcnt.rowStyle(11, "all", "border-bottom-color") = "#000000";
- grd_opcnt.rowStyle(11, "all", "border-bottom-width") = "2px";
-
- var titlecnt = 0;
- grd_opcnt.valueMatrix(0, 0) = "구분";
- for(var i = 1; i <= getNodesetCount("/root/code/codeinfo/codelist"); i++) {
- if(model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid") == "202") {
- titlecnt = Number(model.getValue("/root/code/codeinfo/codelist["+i+"]/supcdid"));;
- if(titlecnt == 12) {
- grd_opcnt.valueMatrix(0, titlecnt) = etcnm;
- grd_opcnt.valueMatrix(0, titlecnt+1) = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdnm");
- } else if(titlecnt < 12) {
- grd_opcnt.valueMatrix(0, titlecnt) = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdnm");
- } else grd_opcnt.valueMatrix(0, titlecnt+1) = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdnm");
- }
- }
- grd_opcnt.valueMatrix(0, 16) = "합계";
- for(var i = 0; i <= 16; i++) {
- if(grd_opcnt.valueMatrix(0, i) == i) {
- grd_opcnt.colHidden(i) = true;
- }
- }
- resetPage("anlist", true);
-
- for (i=0; i<19; i++){
- grd_ancnt.insertRow(i,"below", "false", "true");
- }
- grd_ancnt.rebuild();
-
- xchospatPath = "/root/main/anlist/cntlist/list";
- model.makeValue(xchospatPath+"["+1+"]/gubun" ,"총 수술건수");
- model.makeValue(xchospatPath+"["+2+"]/gubun" ,"정규");
- model.makeValue(xchospatPath+"["+3+"]/gubun" ,"정규(주간)");
- model.makeValue(xchospatPath+"["+4+"]/gubun" ,"정규(야간)");
- model.makeValue(xchospatPath+"["+5+"]/gubun" ,"응급");
- model.makeValue(xchospatPath+"["+6+"]/gubun" ,"응급(주간)");
- model.makeValue(xchospatPath+"["+7+"]/gubun" ,"응급(야간)");
- model.makeValue(xchospatPath+"["+8+"]/gubun" ,"총 마취건수");
- model.makeValue(xchospatPath+"["+9+"]/gubun" ,"전신");
- model.makeValue(xchospatPath+"["+10+"]/gubun" ,"부위");
- model.makeValue(xchospatPath+"["+11+"]/gubun" ,"경막외");
- model.makeValue(xchospatPath+"["+12+"]/gubun" ,"척추");
- model.makeValue(xchospatPath+"["+13+"]/gubun" ,"미추");
- model.makeValue(xchospatPath+"["+14+"]/gubun" ,"상박신경총");
- model.makeValue(xchospatPath+"["+15+"]/gubun" ,"기타");
- model.makeValue(xchospatPath+"["+16+"]/gubun" ,"통증치료");
- model.makeValue(xchospatPath+"["+17+"]/gubun" ,"국소");
- model.makeValue(xchospatPath+"["+18+"]/gubun" ,"통증치료(국소)");
- model.makeValue(xchospatPath+"["+19+"]/gubun" ,"통증치료(부위)");
-
- grd_ancnt.rowStyle(1, "all", "border-bottom-color") = "#000000";
- grd_ancnt.rowStyle(1, "all", "border-bottom-width") = "2px";
- grd_ancnt.rowStyle(7, "all", "border-bottom-color") = "#000000";
- grd_ancnt.rowStyle(7, "all", "border-bottom-width") = "2px";
- grd_ancnt.rowStyle(8, "all", "border-bottom-color") = "#000000";
- grd_ancnt.rowStyle(8, "all", "border-bottom-width") = "2px";
- grd_ancnt.rowStyle(17, "all", "border-bottom-color") = "#000000";
- grd_ancnt.rowStyle(17, "all", "border-bottom-width") = "2px";
- titlecnt = 0;
- grd_ancnt.valueMatrix(0, 0) = "구분";
- for(var i = 1; i <= getNodesetCount("/root/code/codeinfo/codelist"); i++) {
- if(model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid") == "203") {
- titlecnt = Number(model.getValue("/root/code/codeinfo/codelist["+i+"]/supcdid"));
- if(titlecnt == 12) {
- grd_ancnt.valueMatrix(0, titlecnt) = etcnm;
- grd_ancnt.valueMatrix(0, titlecnt+1) = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdnm");
- } else if(titlecnt < 12) {
- grd_ancnt.valueMatrix(0, titlecnt) = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdnm");
- } else grd_ancnt.valueMatrix(0, titlecnt+1) = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdnm");
- }
- }
- grd_ancnt.valueMatrix(0, 19) = "합계";
- for(var i = 0; i <= 19; i++) {
- if(grd_ancnt.valueMatrix(0, i) == i) {
- grd_ancnt.colHidden(i) = true;
- }
- }
-
- resetPage("relist", true);
-
- for (i=0; i<6; i++){
- grd_recnt.insertRow(i,"below", "false", "true");
- }
- grd_recnt.rebuild();
-
- xchospatPath = "/root/main/relist/cntlist/list";
- model.makeValue(xchospatPath+"["+1+"]/gubun" ,"총 회복건수");
- model.makeValue(xchospatPath+"["+2+"]/gubun" ,"회복실");
- model.makeValue(xchospatPath+"["+3+"]/gubun" ,"중환자실");
- model.makeValue(xchospatPath+"["+4+"]/gubun" ,"연장건수");
- model.makeValue(xchospatPath+"["+5+"]/gubun" ,"연장시간");
- model.makeValue(xchospatPath+"["+6+"]/gubun" ,"취소건수");
- grd_recnt.rowStyle(3, "all", "border-bottom-color") = "#000000";
- grd_recnt.rowStyle(3, "all", "border-bottom-width") = "2px";
- grd_recnt.rowStyle(5, "all", "border-bottom-color") = "#000000";
- grd_recnt.rowStyle(5, "all", "border-bottom-width") = "2px";
- titlecnt = 0;
- grd_recnt.valueMatrix(0, 0) = "구분";
- for(var i = 1; i <= getNodesetCount("/root/code/codeinfo/codelist"); i++) {
- if(model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid") == "203") {
- titlecnt = Number(model.getValue("/root/code/codeinfo/codelist["+i+"]/supcdid"));
- if(titlecnt == 12) {
- grd_recnt.valueMatrix(0, titlecnt) = etcnm;
- grd_recnt.valueMatrix(0, titlecnt+1) = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdnm");
- } else if(titlecnt < 12) {
- grd_recnt.valueMatrix(0, titlecnt) = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdnm");
- } else grd_recnt.valueMatrix(0, titlecnt+1) = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdnm");
- }
- }
- grd_recnt.valueMatrix(0, 19) = "합계";
- for(var i = 0; i < 19; i++) {
- if(grd_recnt.valueMatrix(0, i) == i) {
- grd_recnt.colHidden(i) = true;
- }
- }
- model.refresh();
- }
-
- function makeDutyNode(nodelist) {
- var dutycnt = getNodesetCount("/root/main/"+nodelist+"/duty/list");
- if(dutycnt == 0) {
- model.makeNode("/root/main/"+nodelist+"/duty/list/dutnm1");
- model.makeNode("/root/main/"+nodelist+"/duty/list/dutnm2");
- model.makeNode("/root/main/"+nodelist+"/duty/list/dutnm3");
- model.makeNode("/root/main/"+nodelist+"/duty/list/remark");
- }
- }
- function fsearch() {
- /*****************************************************
- * 수술일자를 기준으로 보고부서에 따라서 값을 조회해온다
- *****************************************************/
- model.removeNodeset("/root/send");
-
- var opfromdd = model.getValue("/root/main/cond/opfromdd");
- var optodd = model.getValue("/root/main/cond/optodd");
- var deptcd = model.getValue("/root/main/cond/deptcd");
-
- model.makeValue("/root/send/reqdata/opfromdd", opfromdd);
- model.makeValue("/root/send/reqdata/optodd", optodd);
- model.makeValue("/root/send/reqdata/deptcd", deptcd);
-
- if(deptcd == "O") {
- resetPage("oplist", false);
- if(submit("TRMNP08001")) { //수술
- makeDutyNode("oplist");
- butSetting(opfromdd, optodd, deptcd);
- opsaveflag = true;
- }
- } else if(deptcd == "A") {
- resetPage("anlist", false);
- if(submit("TRMNP08002")) { //마취
- makeDutyNode("anlist");
- butSetting(opfromdd, optodd, deptcd);
- ansaveflag = true;
- }
- } else {
- resetPage("relist", false);
- if(submit("TRMNP08003")) { //회복
- makeDutyNode("relist");
- butSetting(opfromdd, optodd, deptcd);
- resaveflag = true;
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,197;2,521;2,680;1,1194;1,850;2,737;">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:257px; height:14px; ">(수술/마취/회복) 간호 업무 보고</caption>
- </group>
- <group id="group2" style="left:0px; top:13px; width:1194px; height:37px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:37px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">수술일자:</caption>
- <input id="ipt_opfromdd" ref="/root/main/cond/opfromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:100px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var opfromdd = model.getValue("/root/main/cond/opfromdd");
- var optodd = model.getValue("/root/main/cond/optodd");
- resetPage("all", true);
- butSetting(opfromdd, optodd, "");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_optodd" ref="/root/main/cond/optodd" class="input_s_essential" navindex="1" inputtype="date" style="left:210px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var opfromdd = model.getValue("/root/main/cond/opfromdd");
- var optodd = model.getValue("/root/main/cond/optodd");
- resetPage("all", true);
- butSetting(opfromdd, optodd, "");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption3" style="left:195px; top:10px; width:15px; height:15px; ">~</caption>
- <caption id="caption4" class="search_name" style="left:321px; top:10px; width:86px; height:17px; text-align:center; ">보고부서:</caption>
- <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_search" appearance="minimal" style="left:408px; top:9px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>수술</label>
- <value>O</value>
- </item>
- <item>
- <label>마취</label>
- <value>A</value>
- </item>
- <item>
- <label>회복</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var deptcd = cmb_deptcd.value;
- if(deptcd == "O") {
- btn_op.selected = true;
- btn_op.dispatch("DOMActivate");
- } else if(deptcd == "A") {
- btn_an.selected = true;
- btn_an.dispatch("DOMActivate");
- } else if(deptcd == "R") {
- btn_re.selected = true;
- btn_re.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </select1>
- <line id="line1" class="line_4" style="x1:1055px; y1:7px; x2:1055px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1066px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fsearch();
- ]]>
- </script>
- </button>
- <button id="btn_exel" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send");
- model.makeNode("/root/send/print");
- var deptcd = model.getValue("/root/main/cond/deptcd");
- if(deptcd == "O") {
- model.setValue("/root/main/cond/instcd", getUserInfo("dutplceinstcd"));
- model.copyNode("/root/send/print", "/root/main/oplist");
- copyNodeListType("/root/send/print", "/root/main/cond", "after");
- if(getUserInfo("dutplceinstcd") == yuidoinstcd || getUserInfo("dutplceinstcd") == gangnaminstcd) { //여의도, 강남
- exeReportPreview("RPMNP08000_수술업무일지(강남,여의도)", "XMLSTR", "/root/send");
- } else if(getUserInfo("dutplceinstcd") == yijungbuinstcd) { //의정부
- exeReportPreview("RPMNP08001_수술업무일지(의정부)", "XMLSTR", "/root/send");
- } else if(getUserInfo("dutplceinstcd") == bucheoninstcd) { //부천
- exeReportPreview("RPMNP08002_수술업무일지(부천)", "XMLSTR", "/root/send");
- } else if(getUserInfo("dutplceinstcd") == vincentinstcd) { //빈센트
- exeReportPreview("RPMNP08011_수술업무일지(빈센트)", "XMLSTR", "/root/send");
- }
- } else if(deptcd == "A") {
- model.copyNode("/root/send/print", "/root/main/anlist");
- copyNodeListType("/root/send/print", "/root/main/cond", "after");
- if(getUserInfo("dutplceinstcd") == yuidoinstcd) { //여의도
- exeReportPreview("RPMNP08003_마취업무일지(여의도)", "XMLSTR", "/root/send");
- } else if(getUserInfo("dutplceinstcd") == gangnaminstcd) { // 강남
- exeReportPreview("RPMNP08004_마취업무일지(강남)", "XMLSTR", "/root/send");
- } else if(getUserInfo("dutplceinstcd") == yijungbuinstcd) { //의정부
- exeReportPreview("RPMNP08005_마취업무일지(의정부)", "XMLSTR", "/root/send");
- } else if(getUserInfo("dutplceinstcd") == bucheoninstcd) { //부천
- exeReportPreview("RPMNP08006_마취업무일지(부천)", "XMLSTR", "/root/send");
- } else if(getUserInfo("dutplceinstcd") == vincentinstcd) { //빈센트
- exeReportPreview("RPMNP08012_마취업무일지(빈센트)", "XMLSTR", "/root/send");
- }
- } else {
- model.copyNode("/root/send/print", "/root/main/relist");
- copyNodeListType("/root/send/print", "/root/main/cond", "after");
- if(getUserInfo("dutplceinstcd") == yuidoinstcd) { //여의도
- exeReportPreview("RPMNP08007_회복업무일지(여의도)", "XMLSTR", "/root/send");
- } else if(getUserInfo("dutplceinstcd") == gangnaminstcd) { // 강남
- exeReportPreview("RPMNP08008_회복업무일지(강남)", "XMLSTR", "/root/send");
- } else if(getUserInfo("dutplceinstcd") == yijungbuinstcd) { //의정부
- exeReportPreview("RPMNP08009_회복업무일지(의정부)", "XMLSTR", "/root/send");
- } else if(getUserInfo("dutplceinstcd") == bucheoninstcd) { //부천
- exeReportPreview("RPMNP08010_회복업무일지(부천)", "XMLSTR", "/root/send");
- } else if(getUserInfo("dutplceinstcd") == vincentinstcd) { // 빈센트
- exeReportPreview("RPMNP08013_회복업무일지(빈센트)", "XMLSTR", "/root/send");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" class="datagrid2" scroll="auto" style="left:0px; top:50px; width:1194px; height:690px; ">
- <button id="btn_op" class="btn_sw" group="sw" selected="true" style="left:0px; top:5px; width:50px; height:22px; ">
- <caption>수술</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- cmb_deptcd.value = "O";
- ]]>
- </script>
- </button>
- <button id="btn_an" class="btn_sw" group="sw" style="left:50px; top:5px; width:50px; height:22px; ">
- <caption>마취</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- cmb_deptcd.value = "A";
- ]]>
- </script>
- </button>
- <button id="btn_re" class="btn_sw" group="sw" style="left:100px; top:5px; width:50px; height:22px; ">
- <caption>회복</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case3");
- cmb_deptcd.value = "R";
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:26px; width:1194px; height:663px; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:1194px; height:662px; ">
- <caption id="caption6" class="tit_2" style="left:0px; top:8px; width:100px; height:14px; ">근무자</caption>
- <input id="ipt_opduty1" ref="/root/main/oplist/duty/list/dutnm1" disabled="true" style="left:60px; top:30px; width:665px; height:19px; "/>
- <input id="ipt_opduty2" ref="/root/main/oplist/duty/list/dutnm2" disabled="true" style="left:60px; top:60px; width:665px; height:19px; "/>
- <input id="ipt_opduty3" ref="/root/main/oplist/duty/list/dutnm3" disabled="true" style="left:60px; top:90px; width:665px; height:19px; "/>
- <line id="line2" class="line_1" style="x1:850px; y1:23px; x2:1191px; y2:23px; "/>
- <button id="btn_opadd" class="btn2_letter3" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1038px; top:3px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_opduty.addRow();
- var maxrow = getNodesetCount("/root/main/oplist/ercalllist/list");
- var searchseqno = 0;
- if(maxrow > 0) searchseqno = Number(model.getValue("/root/main/oplist/ercalllist/list["+(maxrow-1)+"]/searchseqno"))+1;
- else searchseqno++;
- model.makeValue("/root/main/oplist/ercalllist/list["+grd_opduty.row+"]/searchseqno", searchseqno);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_opdel" class="btn2_letter3" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1093px; top:3px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_opduty.row;
-
- if(grd_opduty.rowStatus(row) == "1" || grd_opduty.rowStatus(row) == "3" ) {
- grd_opduty.deleteRow(grd_opduty.row);
- } else {
- grd_opduty.rowStatus(row) = "4";
- }
- ]]>
- </script>
- </button>
- <button id="btn_opsave" class="btn5_letter2" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:1148px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var opfromdd = model.getValue("/root/main/cond/opfromdd");
- var optodd = model.getValue("/root/main/cond/optodd");
- var deptcd = model.getValue("/root/main/cond/deptcd");
- var updtdata = getGridUpdateData(grd_opduty);
- var dutnm1 = model.getValue("/root/main/oplist/duty/list/dutnm1");
- var dutnm2 = model.getValue("/root/main/oplist/duty/list/dutnm2");
- var dutnm3 = model.getValue("/root/main/oplist/duty/list/dutnm3");
- var remark = model.getValue("/root/main/oplist/duty/list/remark");
- if(!opsaveflag) {
- messageBox("조회를 선행하셔야 합니다.");
- return;
- } else if(opfromdd != optodd) {
- messageBox("수술기간이 동일하지 않으면 저장할 수 없습니다.");
- return;
- } else {
- model.removeNodeset("/root/send");
-
- model.makeValue("/root/send/reqdata/opdd", opfromdd);
- model.makeValue("/root/send/reqdata/deptcd", deptcd);
-
- model.makeValue("/root/send/reqdata/dutnm1", dutnm1);
- model.makeValue("/root/send/reqdata/dutnm2", dutnm2);
- model.makeValue("/root/send/reqdata/dutnm3", dutnm3);
- model.makeValue("/root/send/reqdata/remark", remark);
-
- var sComplXpath = "/root/main/oplist/ercalllist/list";
-
- var sColSplit = "▥"; //열구분자
- var sRowSplit = "▤"; //행구분자
- var sRowData = ""; //행정보
-
- var sHeader = "m▥seqno▥searchseqno▥duty▥duttm▥nurnm▥withop▤";//헤더정보
- var iRowCnt = grd_opduty.rows - grd_opduty.fixedRows;
- var status = "";
- for(var i = 1; i <= iRowCnt; i++){
- if(grd_opduty.rowStatus(i) != 0) { //상태변화가 있을 경우..
- switch(grd_opduty.rowStatus(i)) {
- case 1: case 3: status = "i"; break;
- case 2: status = "u"; break;
- case 4: case 5: case 6: status = "d"; break;
- default: break;
- }
- sRowData += status + sColSplit +
- grd_opduty.TextMatrix(i,1) + sColSplit + grd_opduty.TextMatrix(i,2) + sColSplit +
- grd_opduty.TextMatrix(i,3) + sColSplit + grd_opduty.TextMatrix(i,4) + sColSplit +
- grd_opduty.TextMatrix(i,5) + sColSplit + grd_opduty.TextMatrix(i,6) + sRowSplit;
- }
- }
-
- model.makeValue("/root/send/reqdata/ercalllist",sHeader+sRowData);
-
- if(submit("TXMNP08001")) {
- fsearch();
- }
- }
-
- ]]>
- </script>
- </button>
- <line id="line7" class="line_1" style="x1:0px; y1:620px; x2:1193px; y2:620px; "/>
- <caption id="caption14" class="tit_2" style="left:850px; top:8px; width:100px; height:13px; ">응급 CALL</caption>
- <datagrid id="grd_opduty" nodeset="/root/main/oplist/ercalllist/list" caption="seqno^searchseqno^DUTY^시간^간호사^참여수술" colsep="^" colwidth="0, 0, 75, 50, 75, 105" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:850px; top:27px; width:343px; height:93px; ">
- <col ref="seqno" visibility="hidden"/>
- <col ref="searchseqno" visibility="hidden"/>
- <col ref="duty" type="input"/>
- <col ref="duttm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="nurnm" type="input"/>
- <col ref="withop" type="input"/>
- </datagrid>
- <caption id="caption18" class="tit_2" style="left:0px; top:125px; width:100px; height:14px; ">수술 건수</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:139px; x2:1192px; y2:139px; "/>
- <datagrid id="grd_opcnt" nodeset="/root/main/oplist/cntlist/list" caption="gubun^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^total" colsep="^" colwidth="120, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65" extendlastcol="scroll" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:144px; width:1193px; height:301px; ">
- <col ref="gubun"/>
- <col ref="dept1" style="text-align:right; padding-right:5; "/>
- <col ref="dept2" style="text-align:right; padding-right:5; "/>
- <col ref="dept3" style="text-align:right; padding-right:5; "/>
- <col ref="dept4" style="text-align:right; padding-right:5; "/>
- <col ref="dept5" style="text-align:right; padding-right:5; "/>
- <col ref="dept6" style="text-align:right; padding-right:5; "/>
- <col ref="dept7" style="text-align:right; padding-right:5; "/>
- <col ref="dept8" style="text-align:right; padding-right:5; "/>
- <col ref="dept9" style="text-align:right; padding-right:5; "/>
- <col ref="dept10" style="text-align:right; padding-right:5; "/>
- <col ref="dept11" style="text-align:right; padding-right:5; "/>
- <col ref="dept12" style="text-align:right; padding-right:5; "/>
- <col ref="dept13" style="text-align:right; padding-right:5; "/>
- <col ref="dept14" style="text-align:right; padding-right:5; "/>
- <col ref="dept15" style="text-align:right; padding-right:5; "/>
- <col ref="total" style="text-align:right; padding-right:5; "/>
- </datagrid>
- <caption id="caption5" class="tit_2" style="left:0px; top:449px; width:144px; height:13px; ">연장시간 이후 스케쥴</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:463px; x2:1192px; y2:463px; "/>
- <datagrid id="grd_opexsch" nodeset="/root/main/oplist/exschlist/list" autoresize="true" caption="opflagcd^수술구분^oproomcd^수술방^perfdeptcd^집도과^입퇴실시간^병실^pid^환자명^opcd^수술명^perfdrid^집도의^scrnrid^Scrub.Nr.^cirnrid^Cir.Nr.^anstmthdcd^마취종류^연장시간(분)^oprsrvno" colsep="^" colwidth="0, 60, 0, 50, 0, 50, 220, 50, 0, 65, 0, 300, 0, 65, 0, 65, 0, 65, 0, 65, 77, 0" extendlastcol="scroll" rowheader="seq" rowsep="|" style="left:0px; top:468px; width:1193px; height:135px; ">
- <col ref="opflagcd" visibility="hidden"/>
- <col ref="opflagcdnm" style="text-align:center; "/>
- <col ref="oproomcd" visibility="hidden"/>
- <col ref="oproomcdnm" style="text-align:center; "/>
- <col ref="perfdeptcd" visibility="hidden"/>
- <col ref="depthngnm" style="text-align:center; "/>
- <col ref="opinouttime" style="text-align:center; "/>
- <col ref="roomnm" style="text-align:center; "/>
- <col ref="pid" visibility="hidden"/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="opcd" visibility="hidden"/>
- <col ref="opcdenm"/>
- <col ref="perfdrid" visibility="hidden"/>
- <col ref="perfdridnm" style="text-align:center; "/>
- <col ref="scrnrid" visibility="hidden"/>
- <col ref="scrnrnm" style="text-align:center; "/>
- <col ref="cirnrid" visibility="hidden"/>
- <col ref="cirnrnm" style="text-align:center; "/>
- <col ref="anstmthdcd" visibility="hidden"/>
- <col ref="anstmthdcdnm" style="text-align:center; "/>
- <col ref="opextime" style="text-align:right; padding-right:5; "/>
- <col ref="oprsrvno" visibility="hidden"/>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:0px; top:606px; width:80px; height:13px; ">Remark</caption>
- <textarea id="txt_opremark" ref="/root/main/oplist/duty/list/remark" disabled="true" style="left:0px; top:625px; width:1193px; height:36px; "/>
- </case>
- <case id="case2" style="left:0px; top:0px; width:1194px; height:662px; ">
- <caption id="caption7" class="tit_2" style="left:0px; top:8px; width:100px; height:14px; ">근무자</caption>
- <input id="ipt_anduty1" ref="/root/main/anlist/duty/list/dutnm1" disabled="true" style="left:60px; top:30px; width:665px; height:19px; "/>
- <input id="ipt_anduty2" ref="/root/main/anlist/duty/list/dutnm2" disabled="true" style="left:60px; top:60px; width:665px; height:19px; "/>
- <input id="ipt_anduty3" ref="/root/main/anlist/duty/list/dutnm3" disabled="true" style="left:60px; top:90px; width:665px; height:19px; "/>
- <button id="btn_anadd" class="btn2_letter3" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1038px; top:3px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_anduty.addRow();
- var maxrow = getNodesetCount("/root/main/anlist/ercalllist/list");
- var searchseqno = 0;
- if(maxrow > 0) searchseqno = Number(model.getValue("/root/main/anlist/ercalllist/list["+(maxrow-1)+"]/searchseqno"))+1;
- else searchseqno++;
- model.makeValue("/root/main/anlist/ercalllist/list["+grd_anduty.row+"]/searchseqno", searchseqno);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_andel" class="btn2_letter3" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1093px; top:3px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_anduty.row;
-
- if(grd_anduty.rowStatus(row) == "1" || grd_anduty.rowStatus(row) == "3" ) {
- grd_anduty.deleteRow(grd_anduty.row);
- } else {
- grd_anduty.rowStatus(row) = "4";
- }
- ]]>
- </script>
- </button>
- <button id="btn_ansave" class="btn5_letter2" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:1148px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var opfromdd = model.getValue("/root/main/cond/opfromdd");
- var optodd = model.getValue("/root/main/cond/optodd");
- var deptcd = model.getValue("/root/main/cond/deptcd");
- var updtdata = getGridUpdateData(grd_anduty);
- var dutnm1 = model.getValue("/root/main/anlist/duty/list/dutnm1");
- var dutnm2 = model.getValue("/root/main/anlist/duty/list/dutnm2");
- var dutnm3 = model.getValue("/root/main/anlist/duty/list/dutnm3");
- var remark = model.getValue("/root/main/anlist/duty/list/remark");
- if(!ansaveflag) {
- messageBox("조회를 선행하셔야 합니다.");
- return;
- } else if(opfromdd != optodd) {
- messageBox("수술기간이 동일하지 않으면 저장할 수 없습니다.");
- return;
- } else {
- model.removeNodeset("/root/send");
-
- model.makeValue("/root/send/reqdata/opdd", opfromdd);
- model.makeValue("/root/send/reqdata/deptcd", deptcd);
-
- model.makeValue("/root/send/reqdata/dutnm1", dutnm1);
- model.makeValue("/root/send/reqdata/dutnm2", dutnm2);
- model.makeValue("/root/send/reqdata/dutnm3", dutnm3);
- model.makeValue("/root/send/reqdata/remark", remark);
-
- var sComplXpath = "/root/main/anlist/ercalllist/list";
-
- var sColSplit = "▥"; //열구분자
- var sRowSplit = "▤"; //행구분자
- var sRowData = ""; //행정보
-
- var sHeader = "m▥seqno▥searchseqno▥duty▥duttm▥nurnm▥withop▤";//헤더정보
- var iRowCnt = grd_anduty.rows - grd_anduty.fixedRows;
- var status = "";
- for(var i = 1; i <= iRowCnt; i++){
- if(grd_anduty.rowStatus(i) != 0) { //상태변화가 있을 경우..
- switch(grd_anduty.rowStatus(i)) {
- case 1: case 3: status = "i"; break;
- case 2: status = "u"; break;
- case 4: case 5: case 6: status = "d"; break;
- default: break;
- }
- sRowData += status + sColSplit +
- grd_anduty.TextMatrix(i,1) + sColSplit + grd_anduty.TextMatrix(i,2) + sColSplit +
- grd_anduty.TextMatrix(i,3) + sColSplit + grd_anduty.TextMatrix(i,4) + sColSplit +
- grd_anduty.TextMatrix(i,5) + sColSplit + grd_anduty.TextMatrix(i,6) + sRowSplit;
- }
- }
-
- model.makeValue("/root/send/reqdata/ercalllist",sHeader+sRowData);
-
- if(submit("TXMNP08001")) {
- fsearch();
- }
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption16" class="tit_2" style="left:850px; top:8px; width:100px; height:14px; ">응급 CALL</caption>
- <line id="line8" class="line_1" style="x1:850px; y1:23px; x2:1191px; y2:23px; "/>
- <datagrid id="grd_anduty" nodeset="/root/main/anlist/ercalllist/list" caption="seqno^searchseqno^DUTY^시간^간호사^참여수술" colsep="^" colwidth="0, 0, 75, 50, 75, 105" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:850px; top:27px; width:343px; height:93px; ">
- <col ref="seqno" visibility="hidden"/>
- <col ref="searchseqno" visibility="hidden"/>
- <col ref="duty" type="input"/>
- <col ref="duttm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="nurnm" type="input"/>
- <col ref="withop" type="input"/>
- </datagrid>
- <caption id="caption19" class="tit_2" style="left:0px; top:125px; width:100px; height:14px; ">마취 건수</caption>
- <line id="line10" class="line_1" style="x1:0px; y1:139px; x2:1192px; y2:139px; "/>
- <datagrid id="grd_ancnt" nodeset="/root/main/anlist/cntlist/list" caption="gubun^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^total" colsep="^" colwidth="120, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 60, 55, 55, 55" extendlastcol="scroll" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:144px; width:1193px; height:301px; ">
- <col ref="gubun" style="text-align:right; padding-right:5; "/>
- <col ref="dept1" style="text-align:right; padding-right:5; "/>
- <col ref="dept2" style="text-align:right; padding-right:5; "/>
- <col ref="dept3" style="text-align:right; padding-right:5; "/>
- <col ref="dept4" style="text-align:right; padding-right:5; "/>
- <col ref="dept5" style="text-align:right; padding-right:5; "/>
- <col ref="dept6" style="text-align:right; padding-right:5; "/>
- <col ref="dept7" style="text-align:right; padding-right:5; "/>
- <col ref="dept8" style="text-align:right; padding-right:5; "/>
- <col ref="dept9" style="text-align:right; padding-right:5; "/>
- <col ref="dept10" style="text-align:right; padding-right:5; "/>
- <col ref="dept11" style="text-align:right; padding-right:5; "/>
- <col ref="dept12" style="text-align:right; padding-right:5; "/>
- <col ref="dept13" style="text-align:right; padding-right:5; "/>
- <col ref="dept14" style="text-align:right; padding-right:5; "/>
- <col ref="dept15" style="text-align:right; padding-right:5; "/>
- <col ref="dept16" style="text-align:right; padding-right:5; "/>
- <col ref="dept17" style="text-align:right; padding-right:5; "/>
- <col ref="dept18" style="text-align:right; padding-right:5; "/>
- <col ref="total" style="text-align:right; padding-right:5; "/>
- </datagrid>
- <caption id="caption10" class="tit_2" style="left:0px; top:449px; width:144px; height:40px; ">연장시간 이후 스케쥴</caption>
- <line id="line9" class="line_1" style="x1:0px; y1:463px; x2:1192px; y2:463px; "/>
- <datagrid id="grd_anexsch" nodeset="/root/main/anlist/exschlist/list" autoresize="true" caption="opflagcd^수술구분^oproomcd^수술방^perfdeptcd^집도과^병실^pid^환자명^성별/나이^마취시간^anstmthdcd^마취종류^anstdrid^마취의사^entrid^마취간호사^oprsrvno" colsep="^" colwidth="0, 75, 0, 60, 0, 60, 60, 0, 75, 60, 77, 0, 75, 0, 75, 0, 75, 0" rowheader="seq" rowsep="|" style="left:0px; top:468px; width:1193px; height:135px; ">
- <col ref="opflagcd" visibility="hidden"/>
- <col ref="opflagcdnm" style="text-align:center; "/>
- <col ref="oproomcd" visibility="hidden"/>
- <col ref="oproomcdnm" style="text-align:center; "/>
- <col ref="perfdeptcd" visibility="hidden"/>
- <col ref="depthngnm" style="text-align:center; "/>
- <col ref="roomnm" style="text-align:center; "/>
- <col ref="pid" visibility="hidden"/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sa" style="text-align:center; "/>
- <col ref="antime" style="text-align:right; padding-right:5; "/>
- <col ref="anstmthdcd" visibility="hidden"/>
- <col ref="anstmthdcdnm" style="text-align:center; "/>
- <col ref="anstdrid" visibility="hidden"/>
- <col ref="anstdrnm" style="text-align:center; "/>
- <col ref="entrid" visibility="hidden"/>
- <col ref="entrnm" style="text-align:center; "/>
- <col ref="oprsrvno" visibility="hidden"/>
- </datagrid>
- <caption id="caption11" class="tit_2" style="left:0px; top:606px; width:80px; height:13px; ">Remark</caption>
- <line id="line11" class="line_1" style="x1:0px; y1:620px; x2:1193px; y2:620px; "/>
- <textarea id="txt_anremark" ref="/root/main/anlist/duty/list/remark" disabled="true" style="left:0px; top:625px; width:1193px; height:36px; "/>
- </case>
- <case id="case3" style="left:0px; top:0px; width:1194px; height:662px; ">
- <caption id="caption8" class="tit_2" style="left:0px; top:8px; width:100px; height:13px; ">근무자</caption>
- <input id="ipt_reduty1" ref="/root/main/relist/duty/list/dutnm1" disabled="true" style="left:60px; top:30px; width:665px; height:19px; "/>
- <input id="ipt_reduty2" ref="/root/main/relist/duty/list/dutnm2" disabled="true" style="left:60px; top:60px; width:665px; height:19px; "/>
- <input id="ipt_reduty3" ref="/root/main/relist/duty/list/dutnm3" disabled="true" style="left:60px; top:90px; width:665px; height:19px; "/>
- <button id="btn_readd" class="btn2_letter3" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1038px; top:3px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_reduty.addRow();
- var maxrow = getNodesetCount("/root/main/relist/ercalllist/list");
- var searchseqno = 0;
- if(maxrow > 0) searchseqno = Number(model.getValue("/root/main/relist/ercalllist/list["+(maxrow-1)+"]/searchseqno"))+1;
- else searchseqno++;
- model.makeValue("/root/main/relist/ercalllist/list["+grd_reduty.row+"]/searchseqno", searchseqno);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_redel" class="btn2_letter3" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1093px; top:3px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_reduty.row;
-
- if(grd_reduty.rowStatus(row) == "1" || grd_reduty.rowStatus(row) == "3" ) {
- grd_reduty.deleteRow(grd_reduty.row);
- } else {
- grd_reduty.rowStatus(row) = "4";
- }
- ]]>
- </script>
- </button>
- <button id="btn_resave" class="btn5_letter2" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:1148px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var opfromdd = model.getValue("/root/main/cond/opfromdd");
- var optodd = model.getValue("/root/main/cond/optodd");
- var deptcd = model.getValue("/root/main/cond/deptcd");
- var updtdata = getGridUpdateData(grd_reduty);
- var dutnm1 = model.getValue("/root/main/relist/duty/list/dutnm1");
- var dutnm2 = model.getValue("/root/main/relist/duty/list/dutnm2");
- var dutnm3 = model.getValue("/root/main/relist/duty/list/dutnm3");
- var remark = model.getValue("/root/main/relist/duty/list/remark");
- if(!resaveflag) {
- messageBox("조회를 선행하셔야 합니다.");
- return;
- } else if(opfromdd != optodd) {
- messageBox("수술기간이 동일하지 않으면 저장할 수 없습니다.");
- return;
- } else {
- model.removeNodeset("/root/send");
-
- model.makeValue("/root/send/reqdata/opdd", opfromdd);
- model.makeValue("/root/send/reqdata/deptcd", deptcd);
-
- model.makeValue("/root/send/reqdata/dutnm1", dutnm1);
- model.makeValue("/root/send/reqdata/dutnm2", dutnm2);
- model.makeValue("/root/send/reqdata/dutnm3", dutnm3);
- model.makeValue("/root/send/reqdata/remark", remark);
-
- var sComplXpath = "/root/main/relist/ercalllist/list";
-
- var sColSplit = "▥"; //열구분자
- var sRowSplit = "▤"; //행구분자
- var sRowData = ""; //행정보
-
- var sHeader = "m▥seqno▥searchseqno▥duty▥duttm▥nurnm▥withop▤";//헤더정보
- var iRowCnt = grd_reduty.rows - grd_reduty.fixedRows;
- var status = "";
- for(var i = 1; i <= iRowCnt; i++){
- if(grd_reduty.rowStatus(i) != 0) { //상태변화가 있을 경우..
- switch(grd_reduty.rowStatus(i)) {
- case 1: case 3: status = "i"; break;
- case 2: status = "u"; break;
- case 4: case 5: case 6: status = "d"; break;
- default: break;
- }
- sRowData += status + sColSplit +
- grd_reduty.TextMatrix(i,1) + sColSplit + grd_reduty.TextMatrix(i,2) + sColSplit +
- grd_reduty.TextMatrix(i,3) + sColSplit + grd_reduty.TextMatrix(i,4) + sColSplit +
- grd_reduty.TextMatrix(i,5) + sColSplit + grd_reduty.TextMatrix(i,6) + sRowSplit;
- }
- }
-
- model.makeValue("/root/send/reqdata/ercalllist",sHeader+sRowData);
-
- if(submit("TXMNP08001")) {
- fsearch();
- }
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption15" class="tit_2" style="left:850px; top:8px; width:100px; height:14px; ">응급 CALL</caption>
- <line id="line3" class="line_1" style="x1:850px; y1:23px; x2:1191px; y2:23px; "/>
- <datagrid id="grd_reduty" nodeset="/root/main/relist/ercalllist/list" caption="seqno^searchseqno^DUTY^시간^간호사^참여수술" colsep="^" colwidth="0, 0, 75, 50, 75, 105" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:850px; top:27px; width:343px; height:93px; ">
- <col ref="seqno" visibility="hidden"/>
- <col ref="searchseqno" visibility="hidden"/>
- <col ref="duty" type="input"/>
- <col ref="duttm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="nurnm" type="input"/>
- <col ref="withop" type="input"/>
- </datagrid>
- <caption id="caption20" class="tit_2" style="left:0px; top:125px; width:100px; height:13px; ">회복 건수</caption>
- <line id="line13" class="line_1" style="x1:0px; y1:139px; x2:1192px; y2:139px; "/>
- <datagrid id="grd_recnt" nodeset="/root/main/relist/cntlist/list" caption="gubun^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^total" colsep="^" colwidth="120, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 60, 55, 55, 55" extendlastcol="scroll" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:144px; width:1193px; height:301px; ">
- <col ref="gubun" style="text-align:right; padding-right:5; "/>
- <col ref="dept1" style="text-align:right; padding-right:5; "/>
- <col ref="dept2" style="text-align:right; padding-right:5; "/>
- <col ref="dept3" style="text-align:right; padding-right:5; "/>
- <col ref="dept4" style="text-align:right; padding-right:5; "/>
- <col ref="dept5" style="text-align:right; padding-right:5; "/>
- <col ref="dept6" style="text-align:right; padding-right:5; "/>
- <col ref="dept7" style="text-align:right; padding-right:5; "/>
- <col ref="dept8" style="text-align:right; padding-right:5; "/>
- <col ref="dept9" style="text-align:right; padding-right:5; "/>
- <col ref="dept10" style="text-align:right; padding-right:5; "/>
- <col ref="dept11" style="text-align:right; padding-right:5; "/>
- <col ref="dept12" style="text-align:right; padding-right:5; "/>
- <col ref="dept13" style="text-align:right; padding-right:5; "/>
- <col ref="dept14" style="text-align:right; padding-right:5; "/>
- <col ref="dept15" style="text-align:right; padding-right:5; "/>
- <col ref="dept16" style="text-align:right; padding-right:5; "/>
- <col ref="dept17" style="text-align:right; padding-right:5; "/>
- <col ref="dept18" style="text-align:right; padding-right:5; "/>
- <col ref="total" style="text-align:right; padding-right:5; "/>
- </datagrid>
- <caption id="caption12" class="tit_2" style="left:0px; top:449px; width:144px; height:40px; ">연장시간 이후 스케쥴</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:463px; x2:1192px; y2:463px; "/>
- <datagrid id="grd_reexsch" nodeset="/root/main/relist/exschlist/list" caption="perfdeptcd^집도과^병실^pid^환자명^성별/나이^회복시간^anstmthdcd^마취종류^recinuserid^입실기록자^recoutuserid^퇴실기록자^oprsrvno" colsep="^" colwidth="0, 60, 60, 0, 75, 60, 77, 0, 75, 0, 75, 0, 75, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:468px; width:1193px; height:135px; ">
- <col ref="perfdeptcd" visibility="hidden"/>
- <col ref="depthngnm" style="text-align:center; "/>
- <col ref="roomnm" style="text-align:center; "/>
- <col ref="pid" visibility="hidden"/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sa" style="text-align:center; "/>
- <col ref="retime" style="text-align:right; padding-right:5; "/>
- <col ref="anstmthdcd" visibility="hidden"/>
- <col ref="anstmthdcdnm" style="text-align:center; "/>
- <col ref="recinuserid" visibility="hidden"/>
- <col ref="recoinnursnm" style="text-align:center; "/>
- <col ref="recoutuserid" visibility="hidden"/>
- <col ref="recooutnursnm" style="text-align:center; "/>
- <col ref="oprsrvno" visibility="hidden"/>
- </datagrid>
- <caption id="caption13" class="tit_2" style="left:0px; top:606px; width:80px; height:13px; ">Remark</caption>
- <line id="line14" class="line_1" style="x1:0px; y1:620px; x2:1193px; y2:620px; "/>
- <textarea id="txt_reremark" ref="/root/main/relist/duty/list/remark" disabled="true" style="left:0px; top:625px; width:1193px; height:36px; "/>
- </case>
- </switch>
- </group>
- </xhtml:body>
- </xhtml:html>
|