123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>일일업무현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <opddfr/>
- <oproomcd/>
- <wardcd/>
- <prcpdd/>
- <multicheck/>
- <oprosette/>
- <orddept/>
- <orddr/>
- <opflag1/>
- <opstat/>
- <oppatflag2/>
- <oppatflag3/>
- <oppatflag4/>
- <oppatflag1/>
- <oppatflag5/>
- <opflag2/>
- <opflag3/>
- <opflag4/>
- <anstmthdcd1/>
- <anstmthdcd2/>
- <anstmthdcd3/>
- <calmflag/>
- <opstat/>
- </cond>
- <oproominfo>
- <oproomlist/>
- </oproominfo>
- <opdayworkinfo>
- <nrworklist>
- </nrworklist>
- <opPatlist>
- <opPatInfo>
- <opcnfmdd/>
- </opPatInfo>
- </opPatlist>
- </opdayworkinfo>
- </main>
- <temp>
- <oproominfo/>
- </temp>
- <init>
- <rosettelist>
- <rosettenm/>
- <rosettecd/>
- </rosettelist>
- <oproomlist>
- <oproomnm/>
- <oproomcd/>
- </oproomlist>
- <ComboLists>
- <deptlist/>
- <oproomlist/>
- <ccrtstatlist/>
- </ComboLists>
- <drlist>
- <drid/>
- <drnm/>
- </drlist>
- <mouserght>
- <item>
- <name>환자메모</name>
- <func>fEmrMemo</func>
- </item>
- </mouserght>
- </init>
- <send>
- <reqdata/>
- <req/>
- </send>
- <hidden>
- <log>
- <detail/>
- </log>
- </hidden>
- <tmp/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- var dutplcecd = "";
- //var searchflag = 0;
-
- function fSearch(){
-
- model.setValue("/root/main/cond/multicheck","");
- model.makeValue("/root/send/reqdata/prcpdd", model.getValue("/root/main/cond/prcpdd") );
-
- // if(submit("TRMNP21000",false)){
- //
- // var cnt = getNodesetCount("/root/temp/oproominfo/oproomlist");
- //
- // model.makeValue("/root/main/cond/oproomcnt",cnt);
- //
- // if( cnt > 0){
- // for (var i=1; i <=cnt; i++) {
- //
- // model.makeValue("/root/main/oproominfo/oproomlist[1]/oproomnm"+i+"", model.getValue("/root/temp/oproominfo/oproomlist[" + i + "]/oproomnm"));
- // model.makeValue("/root/main/oproominfo/oproomlist[2]/oproomnm"+i+"",model.getValue("/root/temp/oproominfo/oproomlist[" + i + "]/anstmthdnm"));
- // model.makeValue("/root/main/oproominfo/oproomlist[3]/oproomnm"+i+"",model.getValue("/root/temp/oproominfo/oproomlist[" + i + "]/oproomcnt"));
- //
- // if(searchflag == 0){
- // grd_oproomlist.addColumn("ref:oproomnm" + grd_oproomlist.cols+ "; type:output; ", false);
- // grd_oproomlist.colWidth(grd_oproomlist.cols - 1) = 30;
- // }
- // }
- //
- // model.removeNodeset("/root/temp/oproominfo");
- //
- //
- // for (var i=1 ; i <= cnt ; i++) {
- //
- // model.makeValue("/root/temp/oproominfo/oproomlist[1]/oproomnm"+i+"",model.getValue("/root/main/oproominfo/oproomlist[1]/oproomnm"+i+""));
- // model.makeValue("/root/temp/oproominfo/oproomlist[2]/oproomnm"+i+"",model.getValue("/root/main/oproominfo/oproomlist[2]/oproomnm"+i+""));
- // model.makeValue("/root/temp/oproominfo/oproomlist[3]/oproomnm"+i+"",model.getValue("/root/main/oproominfo/oproomlist[3]/oproomnm"+i+""));
- //
- // }
- // }
- //
- // model.removeNodeset("/root/main/oproominfo");
- //
- // grd_oproomlist.refresh();
- // }
- //
- // for (var i=0 ; i <= cnt ; i+=3 ) {
- // grd_oproomlist.mergeByFree(0, (i+1), 0, (i+3));
- // }
- //
- // grd_oproomlist.cellStyle("background-color", 0, 1, 1, cnt) = "#b7daff";
- // grd_oproomlist.cellStyle("text-align", 0, 1, 0, cnt)="center";
- // grd_oproomlist.cellStyle("text-align", 1, 1, 1, cnt)="center";
- // grd_oproomlist.cellStyle("text-align", 2, 1, 2, cnt)="center";
-
- model.makeValue("/root/send/reqdata/wardcd", "2470000000");
-
- model.makeValue("/root/send/reqdata/oprosette" , model.getValue("/root/main/cond/oprosette"));
- model.makeValue("/root/send/reqdata/oproomcd" , model.getValue("/root/main/cond/oproomcd"));
- model.makeValue("/root/send/reqdata/orddept" , model.getValue("/root/main/cond/orddept"));
- model.makeValue("/root/send/reqdata/orddr" , model.getValue("/root/main/cond/orddr"));
- model.makeValue("/root/send/reqdata/opstat" , model.getValue("/root/main/cond/opstat"));
- model.makeValue("/root/send/reqdata/opflag1" , model.getValue("/root/main/cond/opflag1"));
- model.makeValue("/root/send/reqdata/opflag2" , model.getValue("/root/main/cond/opflag2"));
- model.makeValue("/root/send/reqdata/opflag3" , model.getValue("/root/main/cond/opflag3"));
- model.makeValue("/root/send/reqdata/opflag4" , model.getValue("/root/main/cond/opflag4"));
- model.makeValue("/root/send/reqdata/oppatflag1" , model.getValue("/root/main/cond/oppatflag1"));
- model.makeValue("/root/send/reqdata/oppatflag2" , model.getValue("/root/main/cond/oppatflag2"));
- model.makeValue("/root/send/reqdata/oppatflag4" , model.getValue("/root/main/cond/oppatflag4"));
- model.makeValue("/root/send/reqdata/oppatflag3" , model.getValue("/root/main/cond/oppatflag3"));
- model.makeValue("/root/send/reqdata/oppatflag5" , model.getValue("/root/main/cond/oppatflag5"));
- model.makeValue("/root/send/reqdata/anstmthdcd1" , model.getValue("/root/main/cond/anstmthdcd1"));
- model.makeValue("/root/send/reqdata/anstmthdcd2" , model.getValue("/root/main/cond/anstmthdcd2"));
- model.makeValue("/root/send/reqdata/anstmthdcd3" , model.getValue("/root/main/cond/anstmthdcd3"));
- model.makeValue("/root/send/reqdata/calmflag" , model.getValue("/root/main/cond/calmflag"));
-
- submit("TRMNP21001");
-
- /*
- var pDuty = "";
- for (i = grd_nrworklist.fixedRows; i <grd_nrworklist.rows; i++) {
-
- grd_nrworklist.rowStyle(i, "all", "border-bottom-color") = "#ffffff";
- grd_nrworklist.rowStyle(i, "all", "background-color")= "#ffffff";
-
- pDuty = model.getValue("/root/main/opdayworkinfo/nrworklist[" + i + "]/duty");
-
- grd_nrworklist.cellStyle("background-color", i, grd_nrworklist.colref("duty")) = "#b7daff";
- grd_nrworklist.cellStyle("border-bottom-color", i, grd_nrworklist.colref("duty")) = "#b7daff";
-
- if (pDuty == model.getValue("/root/main/opdayworkinfo/nrworklist[" + (i+1) + "]/duty")) {
- grd_nrworklist.cellStyle("color", i, grd_nrworklist.colref("duty")) = "#b7daff";
- }else{
- grd_nrworklist.cellStyle("color", i, grd_nrworklist.colref("duty")) = "black";
- if(i != 0){
- grd_nrworklist.rowStyle(i-1, "all", "border-bottom-color") = "#999999";
- grd_nrworklist.rowStyle(i-1, "all", "border-top-width") = "3";
- }
- }
-
- }
- searchflag++;
- */
-
- }
- function fEmrMemo() {
- grp_memoview.visible= true;
-
- var irow = grd_oppatlist.row -1;
- tar_detail.value = model.getValue("/root/main/opdayworkinfo/oppatlist[" + irow + "]/bigo");
- }
-
- function fsave_oppatlist() {
- var irow = grd_oppatlist.row -1;
- model.makeValue("/root/send/req/oprsrvno" , model.getValue("/root/main/opdayworkinfo/oppatlist[" + irow + "]/oprsrvno"));
- model.makeValue("/root/send/req/ophistno" , model.getValue("/root/main/opdayworkinfo/oppatlist[" + irow + "]/ophistno"));
- model.makeValue("/root/send/req/instcd" , model.getValue("/root/main/opdayworkinfo/oppatlist[" + irow + "]/instcd"));
- model.makeValue("/root/send/req/bigo" , tar_detail.value);
- submit("TXMNP21001");
- model.refresh();
- fSearch();
- grp_memoview.visible= false;
- }
- function fSave_WorkList() {
- //model.makeValue("/root/send/nrworklist" ,getGridUpdateData(grd_nrworklist) );
- //xReptPath = "/root/main/opdayworkinfo/nrworklist";
-
- reptcnt = grd_nrworklist.rows;
- for(i=1; i<reptcnt; i++){
- var state = model.getValue("/root/main/opdayworkinfo/nrworklist["+i+"]/staiud");
- if (state == "insert" || state == "update" || state == "delete"){
- num = "";
- break;
- }else{
- num = "1";
- }
- }
- if(reptcnt < 2 || num == "1" ){
- messageBox("저장할 자료가 존재하지 않습니다.","I");
- return;
- }
- //model.makeValue("/root/send/nrworklist" ,grd_nrworklist.getUpdateData());
- /*******본인확인 validation*********/
- /*
- for(i=1; i<reptcnt; i++){
- var semplno = model.getValue("/root/main/opdayworkinfo/nrworklist["+i+"]/emplno");
- var state = model.getValue("/root/main/opdayworkinfo/nrworklist["+i+"]/staiud");
- if (state == "insert" || state == "update" || state == "delete"){
- if (semplno != getUserId()){
- //alert(semplno);
- //alert(getUserId());
- messageBox("선택한 작성자와 본인이 ", "E004");
- fSearch();
- return false;
- }
- }
-
- }
- */
- model.makeNode("/root/send/nrworklist");
- model.setValue("/root/send/nrworklist" ,grd_nrworklist.getUpdateData());
- //alert(grd_nrworklist.getUpdateData());
- submit("TXMNP21002");
- model.refresh();
- fSearch();
- }
-
- function fUpt_Reptrows(){
- var wardcd = dutplcecd; //세션에서 받아처리
- //var plandd = getCurrentDate();
- var plandd = ipt_prcpdd.value;
- var plandt = plandd+getCurrentTime().substring(0,4);
-
- var staiud = model.getValue("/root/main/opdayworkinfo/nrworklist["+grd_nrworklist.row+"]/staiud");
-
- if( (staiud =="insert") || (staiud =="delete") ){
- return;
- }
- var dt = model.getValue("/root/main/opdayworkinfo/nrworklist["+grd_nrworklist.row+"]/plandt");
-
- if(dt == null || dt == "") {
- model.setValue("/root/main/opdayworkinfo/nrworklist["+grd_nrworklist.row+"]/plandd",plandd);
- model.setValue("/root/main/opdayworkinfo/nrworklist["+grd_nrworklist.row+"]/plandt",plandt);
- }
- model.setValue("/root/main/opdayworkinfo/nrworklist["+grd_nrworklist.row+"]/staiud","update");
- //model.setValue("/root/main/opdayworkinfo/nrworklist["+grd_nrworklist.row+"]/userid",getUserId());
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <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" ev:event="xforms-ready">
- <![CDATA[
-
- dutplcecd = getUserInfo("dutplcecd");
- var dt = getCurrentDate();
- model.setValue("/root/main/cond/prcpdd", dt);
- model.setValue("/root/main/cond/wardcd", getUserInfo("dutplcecd"));
-
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/opcnfmdd" , model.getValue("/root/main/cond/ipt_prcpdd"));
- model.makeValue("/root/send/rosette" ,model.getValue("/root/main/cond/oprosette"));
-
- submit("TRMNP03004"); //수술방 가져오기
- addComboItem("cmb_rosette","전체","","above");
-
- model.removenode("/root/send");
- model.makeValue("/root/send/flag" , "X" );
- model.makeValue("/root/send/searchitem", "XX" );
- model.makeValue("/root/send/deptflag" , "011" );
- submit("TRMNP00107", false);
- addComboItem("cmb_orddept","전체","","above");
- fSearch();
- model.refresh();
-
- ]]>
- </script>
- <!--submission id="TRMNP21000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/oproominfo"/-->
- <submission id="TRMNP21001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/opdayworkinfo"/>
- <submission id="TRMNP03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/oproomlist"/>
- <submission id="TRMNP03004" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/rosettelist"/>
- <submission id="TRMNP00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/ComboLists"/>
- <submission id="TRMNP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/drlist"/>
- <submission id="TXMNP21001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/tmp"/>
- <submission id="TXMNP21002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nrworklist"/>
- </model>
- </xhtml:head>
- <xhtml:body overflow="visible" scroll="autovscroll" pagewidth="1195" pageheight="760" style="font-family:굴림; color:#999999; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group5" scroll="auto" style="left:5px; top:0px; width:1185px; height:750px; font-family:굴림; ">
- <group id="grp_sea" style="left:0px; top:20px; width:1175px; height:56px; font-family:굴림; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1175px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_prcpdd" ref="/root/main/cond/prcpdd" class="input_search" inputtype="date" style="left:95px; top:10px; width:110px; height:19px; font-family:굴림; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- <button id="button1" class="btn1_letter2" style="left:1110px; top:5px; width:56px; height:22px; font-family:굴림; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </button>
- <button id="button2" class="btn1_letter2" style="left:1110px; top:30px; width:56px; height:22px; font-family:굴림; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 수술방별 수술건수-출력물 인스턴스 생성 수술방 14개씩 자르기
- // var cnt = model.getValue("/root/main/cond/oproomcnt");
- // var k= 1;
- // var tempcnt = 0; // 인스턴스 list 증가 cnt
- //
- // if( cnt > 0){
- // for (var i=1; i <= cnt; i++) {
- //
- // if(k == 43){
- // k=1;
- // tempcnt++;
- // }
- //
- // model.makeValue("/root/main/oproominfo/oproomlist["+ (tempcnt+1) +"]/oproomnm1"+k+"", model.getValue("/root/temp/oproominfo/oproomlist[1]/oproomnm"+i+""));
- // model.makeValue("/root/main/oproominfo/oproomlist["+ (tempcnt+1) +"]/oproomnm2"+k+"", model.getValue("/root/temp/oproominfo/oproomlist[2]/oproomnm"+i+""));
- // model.makeValue("/root/main/oproominfo/oproomlist["+ (tempcnt+1) +"]/oproomnm3"+k+"", model.getValue("/root/temp/oproominfo/oproomlist[3]/oproomnm"+i+""));
- //
- // k++;
- //
- // }
- // }
-
- // 수술환자 리스트-선택한 리스트만 출력
- var oppatcnt = 1;
- var chkyn = "";
- var prtNode = "/root/temp/prtinfo/oppatlist";
- model.removeNodeset("/root/temp/prtinfo");
- model.makeNode("/root/temp/prtinfo");
- var node = instance1.selectNodes(grd_oppatlist.nodeset + "[chkyn='Y']");
-
- if(node.length > 0) {
- for(var i = grd_oppatlist.fixedRows; i < grd_oppatlist.rows; i++) {
- chkyn = grd_oppatlist.valueMatrix(i, grd_oppatlist.colRef("chkyn"));
- if(chkyn == "Y") {
- model.makeNode("/root/temp/prtinfo/oppatlist[" + oppatcnt + "]");
- model.copyNode("/root/temp/prtinfo/oppatlist[" + oppatcnt + "]", grd_oppatlist.nodeset + "[" + (i-1) + "]");
- oppatcnt++;
-
- }
- }
- }
-
- // 근무별 인계노트 출력물 인스턴스 생성
- var dname = "";
- var ename = "";
- var nname = "";
-
- for(var i = 0; i < grd_nrworklist.rows; i++ ){
-
- var duty = grd_nrworklist.valueMatrix(i, grd_nrworklist.colRef("duty"));
-
- if(duty == 'D'){
- if(dname == ""){
- dname = grd_nrworklist.valueMatrix(i, grd_nrworklist.colRef("name")) ;
- }else{
- dname = dname + "," + grd_nrworklist.valueMatrix(i, grd_nrworklist.colRef("name")) ;
- }
- }else if(duty == 'E'){
- if(ename == ""){
- ename = grd_nrworklist.valueMatrix(i, grd_nrworklist.colRef("name")) ;
- }else{
- ename = ename + "," + grd_nrworklist.valueMatrix(i, grd_nrworklist.colRef("name")) ;
- }
- }else if(duty == 'N'){
- if(nname == ""){
- nname = grd_nrworklist.valueMatrix(i, grd_nrworklist.colRef("name")) ;
- }else{
- nname = nname + "," + grd_nrworklist.valueMatrix(i, grd_nrworklist.colRef("name")) ;
- }
- }
- }
-
- model.makeValue("/root/temp/prtinfo/nrworklist/dname", dname );
- model.makeValue("/root/temp/prtinfo/nrworklist/ename", ename );
- model.makeValue("/root/temp/prtinfo/nrworklist/nname", nname );
- exeReportPreview("RPMNP21000", "XMLSTR");
- ]]>
- </script>
- </button>
- <caption id="caption19" class="search_name" style="left:5px; top:32px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">수술구분 :</caption>
- <select id="chk_opflag1" ref="/root/main/cond/opflag1" overflow="visible" appearance="full" style="left:95px; top:32px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/rosette" ,model.getValue("/root/main/cond/oprosette"));
- if( (model.getValue("/root/main/cond/opflag1") == "1")||(model.getValue("/root/main/cond/opflag1") == "2")||(model.getValue("/root/main/cond/opflag1") == "3") ) {//정규, 응급, 추가 체크시 취소 비활성화
- chk_opflag4.disabled = true;
- }else {
- chk_opflag4.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="chk_opflag2" ref="/root/main/cond/opflag2" overflow="visible" appearance="full" style="left:143px; top:32px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>응급</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( (model.getValue("/root/main/cond/opflag1") == "1")||(model.getValue("/root/main/cond/opflag1") == "2")||(model.getValue("/root/main/cond/opflag1") == "3") ) {//정규, 응급, 추가 체크시 취소 비활성화
- chk_opflag4.disabled = true;
- }else {
- chk_opflag4.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="chk_opflag3" ref="/root/main/cond/opflag3" overflow="visible" appearance="full" style="left:191px; top:32px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>추가</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( (model.getValue("/root/main/cond/opflag1") == "1")||(model.getValue("/root/main/cond/opflag1") == "2")||(model.getValue("/root/main/cond/opflag1") == "3") ) {//정규, 응급, 추가 체크시 취소 비활성화
- chk_opflag4.disabled = true;
- }else {
- chk_opflag4.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="chk_opflag4" ref="/root/main/cond/opflag4" visibility="hidden" overflow="visible" appearance="full" style="left:239px; top:32px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>취소</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/main/cond/opflag4") == "4" ) {//취소 체크시 정규,응급,추가 비활성화
- chk_opflag1.disabled = true;
- chk_opflag2.disabled = true;
- chk_opflag3.disabled = true;
- cmb_opstatlist.value = "";
- cmb_opstatlist.disabled = true;
- cmb_ccrtstatlist.value = "";
- cmb_ccrtstatlist.disabled = true;
-
- }else {
- chk_opflag1.disabled = false;
- chk_opflag2.disabled = false;
- chk_opflag3.disabled = false;
- cmb_opstatlist.value = "";
- cmb_opstatlist.disabled = false;
- cmb_ccrtstatlist.value = "";
- cmb_ccrtstatlist.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <caption id="caption22" class="search_name" style="left:302px; top:7px; width:84px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">수 술 방 :</caption>
- <caption id="caption25" class="search_name" style="left:302px; top:32px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">환자구분 :</caption>
- <select1 id="cmb_rosette" ref="/root/main/cond/oprosette" class="combo_default" appearance="minimal" style="left:390px; top:6px; width:82px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/rosettelist">
- <label ref="rosettenm"/>
- <value ref="rosettecd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/opcnfmdd" , model.getValue("/root/main/cond/prcpdd"));
- model.makeValue("/root/send/rosette" ,model.getValue("/root/main/cond/oprosette"));
- if(submit("TRMNP03002")){ // 수술실코드 가져오기
- addComboItem("cmb_oproomlist","전체","","above");
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_oproomlist" ref="/root/main/cond/oproomcd" appearance="minimal" style="left:474px; top:6px; width:82px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/oproomlist">
- <label ref="oproomnm"/>
- <value ref="oproomcd"/>
- </itemset>
- </choices>
- </select1>
- <group id="grp_setting1" style="left:392px; top:33px; width:230px; height:18px; background-color:transparent; ">
- <select id="checkbox1" ref="/root/main/cond/oppatflag5" overflow="visible" appearance="full" style="left:179px; top:0px; width:50px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>DCC</label>
- <value>I</value>
- </item>
- </choices>
- </select>
- <select id="checkbox16" ref="/root/main/cond/oppatflag1" overflow="visible" appearance="full" style="left:0px; top:0px; width:45px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>병실</label>
- <value>I</value>
- </item>
- </choices>
- </select>
- <select id="checkbox17" ref="/root/main/cond/oppatflag2" overflow="visible" appearance="full" style="left:47px; top:0px; width:45px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>DSC</label>
- <value>D</value>
- </item>
- </choices>
- </select>
- <select id="checkbox18" ref="/root/main/cond/oppatflag3" overflow="visible" appearance="full" style="left:132px; top:0px; width:45px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select>
- <select id="checkbox19" ref="/root/main/cond/oppatflag4" overflow="visible" appearance="full" style="left:94px; top:0px; width:36px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>ER</label>
- <value>E</value>
- </item>
- </choices>
- </select>
- </group>
- <caption id="caption23" class="search_name" style="left:627px; top:7px; width:121px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">집도과/집도의 :</caption>
- <caption id="caption26" class="search_name" style="left:627px; top:32px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">마취구분 :</caption>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddept" appearance="minimal" style="left:748px; top:6px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ComboLists/deptlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/main/cond/orddept") == "" ) {
- model.resetInstanceNode("/root/init/drlist");
- model.refresh();
- }else {
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNP00101");
- addComboItem("cmb_drlist", "전 체", "", "above" );
- }
-
- // fSelectPos();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_drlist" ref="/root/main/cond/orddr" appearance="minimal" style="left:864px; top:6px; width:70px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/drlist">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- </select1>
- <select id="checkbox31" ref="/root/main/cond/anstmthdcd1" overflow="visible" appearance="full" style="left:717px; top:32px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전신</label>
- <value>01</value>
- </item>
- </choices>
- </select>
- <select id="checkbox32" ref="/root/main/cond/anstmthdcd2" overflow="visible" appearance="full" style="left:764px; top:32px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>국소</label>
- <value>03</value>
- </item>
- </choices>
- </select>
- <select id="checkbox33" ref="/root/main/cond/anstmthdcd3" overflow="visible" appearance="full" style="left:811px; top:32px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>부위</label>
- <value>02</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/main/cond/calmflag" overflow="visible" appearance="full" style="left:861px; top:32px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>진정</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <line id="line1" class="line_4" style="x1:1099px; y1:8px; x2:1099px; y2:48px; "/>
- <caption id="caption1" class="search_name" style="left:941px; top:7px; width:88px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">진행상태 :</caption>
- <caption id="caption7" class="search_name" style="left:5px; top:10px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">업무일자 :</caption>
- <select1 id="cmb_opstatlist" ref="/root/main/cond/opstat" appearance="minimal" style="left:1030px; top:6px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전 체</label>
- <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>9</value>
- </item>
- <item>
- <label>취소제외</label>
- <value>6</value>
- </item>
- <item>
- <label>예정+대기+수술</label>
- <value>10</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:15px; font-family:굴림; ">일일업무현황</caption>
- <datagrid id="grd_oproomlist" nodeset="/root/temp/oproominfo/oproomlist" visibility="hidden" colsep="^" colwidth="0" frozenrows="2" rowsep="|" style="left:0px; top:130px; width:1175px; height:90px; font-family:굴림체; ">
- <col ref="oproomnm"/>
- </datagrid>
- <line id="line4" class="line_1" style="x1:0px; y1:105px; x2:1175px; y2:105px; "/>
- <line id="line2" class="line_1" visibility="hidden" style="x1:0px; y1:125px; x2:1175px; y2:125px; "/>
- <caption id="caption2" class="tit_2" visibility="hidden" style="left:0px; top:135px; width:135px; height:13px; font-family:굴림; ">수술방별 수술건수</caption>
- <datagrid id="grd_bloodlist" nodeset="/root/main/opdayworkinfo/bloodlist" caption="수술방^등록번호^성명^S/A^ABO RH^Ab screening^최종보고일^보관검체 유효기간^혈액 준비완료유무^불출신청 안된 잔여처방 유무^혈액준비건유무" colsep="^" colwidth="50, 60, 80, 60, 60, 120, 120, 120, 256, 247" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:425px; width:1175px; height:145px; ">
- <col ref="oproomnm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm"/>
- <col ref="sa" style="text-align:center; "/>
- <col ref="btype" style="text-align:center; "/>
- <col ref="reptrslt" style="text-align:center; "/>
- <col ref="lastreptdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="keepspctodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="blodreadyyn" style="text-align:center; "/>
- <col ref="prcpprepyn" style="text-align:center; "/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:420px; x2:1175px; y2:420px; "/>
- <caption id="caption3" class="tit_2" style="left:0px; top:405px; width:135px; height:13px; font-family:굴림; ">혈액 관련 정보</caption>
- <caption id="caption4" class="tit_2" style="left:0px; top:90px; width:135px; height:13px; font-family:굴림; ">수술환자 리스트</caption>
- <caption id="caption5" class="tit_2" style="left:0px; top:580px; width:135px; height:13px; font-family:굴림; ">근무별 인계노트</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:595px; x2:1175px; y2:595px; "/>
- <button id="button3" class="btn1_letter9" style="left:1035px; top:83px; width:140px; height:22px; font-family:굴림; ">
- <caption>수술환자리스트 엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var col = grd_oppatlist.colRef("signnoyn")
-
- var fileName = window.fileDialog("save", ",", false, "수술환자 리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_oppatlist.saveExcel(fileName, "sheetname:sheet1;exportfalsecols:"+col+";");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn1_letter8" style="left:1047px; top:398px; width:128px; height:22px; font-family:굴림; ">
- <caption>혈액불출바로가기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMMNR01000");
- ]]>
- </script>
- </button>
- <button id="btn_zoom" class="btn5_letter4" style="left:966px; top:86px; width:64px; height:19px; ">
- <caption>확대하기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( btn_zoom.attribute("text") == "확대하기" ) {
- btn_zoom.attribute("text") = "축소하기";
- grd_oppatlist.attribute("top") = "110";
- grd_oppatlist.attribute("height") = "630";
- button23.attribute("visibility") = "hidden";
- btn_zoom1.attribute("visibility") = "hidden";
- caption5.attribute("visibility") = "hidden";
- grd_nrworklist.attribute("visibility") = "hidden";
- } else {
- btn_zoom.attribute("text") = "확대하기";
- grd_oppatlist.attribute("top") = "110";
- grd_oppatlist.attribute("height") = "270";
- button23.attribute("visibility") = "visible";
- btn_zoom1.attribute("visibility") = "visible";
- caption5.attribute("visibility") = "visible";
- grd_nrworklist.attribute("visibility") = "visible";
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_oppatlist" nodeset="/root/main/opdayworkinfo/oppatlist" class="datagrid1" caption="^마취전
평가서^수술방^병실^등록번호^성명^S/A^집도과^집도의^수술명^진단명^Anesthesia Plan^comment^비고^마취
종류^키/몸무게^Previus
Anes.^Lab.findings^Lab.findings^Lab.findings^Lab.findings^Lab.findings^Lab.findings^Lab.findings^Lab.findings^Lab.findings^마취전평가서
인증번호^caption1^caption2^caption3|^마취전
평가서^수술방^병실^등록번호^성명^S/A^집도과^집도의^수술명^진단명^Anesthesia Plan^comment^비고^마취
종류^키/몸무게^Previus
Anes.^Hb^Hct^PLT^SGOT^SGPT^HBsAg^Chest X-ray^ECG ^Echocardiograms^마취전평가서
인증번호^caption1^caption2^caption3" colsep="^" colwidth="22, 60, 42, 50, 55, 65, 50, 70, 55, 150, 150, 150, 150, 100, 40, 75, 50, 40, 40, 40, 40, 40, 100, 75, 65, 110, 100, 100, 100, 100" explorerbar="sort" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:110px; width:1175px; height:275px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox" style="font-family:굴림; "/>
- <col editable="false" ref="signnoyn" type="inputbutton" style="text-align:center; "/>
- <col ref="oproomnm" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm"/>
- <col ref="sa" style="text-align:center; "/>
- <col ref="perfdeptnm"/>
- <col ref="perfdrnm" style="text-align:center; "/>
- <col ref="opnm"/>
- <col ref="diagnm"/>
- <col ref="echocardiaograms" style="text-align:center; "/>
- <col ref="comments" style="text-align:center; "/>
- <col ref="bigo"/>
- <col ref="anstreqflag" style="text-align:center; "/>
- <col ref="hw" style="text-align:center; "/>
- <col ref="pa" style="text-align:center; "/>
- <col ref="hb" style="text-align:right; "/>
- <col ref="hct" style="text-align:right; "/>
- <col ref="plt" style="text-align:right; "/>
- <col ref="sgot" style="text-align:right; "/>
- <col ref="sgpt" style="text-align:right; "/>
- <col ref="absag"/>
- <col ref="xray"/>
- <col ref="ecg"/>
- <col ref="ecdgram"/>
- <col ref="signno" visibility="hidden"/>
- <col ref="oprsrvno" visibility="hidden"/>
- <col ref="ophistno" visibility="hidden" style="left:2104px; top:52px; width:100px; height:23px; "/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var oldflag = "E";
- var signnoyn = grd_oppatlist.valueMatrix(grd_oppatlist.row, grd_oppatlist.colRef("signnoyn"));
- var signno = grd_oppatlist.valueMatrix(grd_oppatlist.row, grd_oppatlist.colRef("signno"));
- var formcd = "0900005261" //마취전 평가서
- if(signnoyn != "" ){
- setParameter("SPMRI02400_prtrecinfo", oldflag + "▦" + signno + "▦" + formcd + "▩");
- setParameter("SPMRI02400_prtyn", "N");
- modal("SPMRI02400");
- }else {
- messageBox("작성된 마취전평가서가 없습니다.","E");
- return;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_oppatlist", false, "/root/init/mouserght/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <!--
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- grp_memoview.dispatch("onmousedown");
- ]]>
- </script>
- -->
- </datagrid>
- <bool id="bool1" navindex="19" ref="/root/main/cond/multicheck" style="left:22px; top:121px; width:20px; height:30px; font-family:굴림; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var multicheck = model.getValue("/root/main/cond/multicheck");
- var xOpPatListPath = "/root/main/opdayworkinfo/oppatlist";
- var nodeCnt = getNodesetCount(xOpPatListPath);
-
-
- for(var i = 1; i <= nodeCnt; i++){
- if(multicheck == "true"){
- model.setValue(xOpPatListPath + "[" + i + "]/chkyn", "Y");
- }else{
- model.setValue(xOpPatListPath + "[" + i + "]/chkyn", "N");
- }
- }
-
- ]]>
- </script>
- </bool>
- <group id="grp_memoview" visibility="hidden" style="left:820px; top:185px; width:270px; height:190px; ">
- <textarea id="tar_detail" ref="/root/hidden/log/detail" style="left:0px; top:0px; width:270px; height:165px; border-style:none; opacity:70; "/>
- <button id="button5" class="btn2_letter2" style="left:222px; top:168px; width:42px; height:18px; background-image:../../../com/commonweb/images/icon_close.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_memoview.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_prtlabel" class="btn5_letter2" style="left:175px; top:168px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fsave_oppatlist();
- ]]>
- </script>
- </button>
- </group>
- <button id="button23" class="btn5_letter2" style="left:1133px; top:575px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave_WorkList();
- ]]>
- </script>
- </button>
- <button id="btn_zoom1" class="btn5_letter4" style="left:1065px; top:575px; width:64px; height:19px; ">
- <caption>확대하기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( btn_zoom1.attribute("text") == "확대하기" ) {
- btn_zoom1.attribute("text") = "축소하기";
- btn_zoom1.attribute("top") = "399";
- button23.attribute("top") = "399";
- button4.attribute("visibility") = "hidden";
- caption3.attribute("visibility") = "hidden";
- caption5.attribute("visibility") = "visible";
- caption5.attribute("top") = "404";
-
- grd_nrworklist.attribute("top") = "422";
- grd_nrworklist.attribute("height") = "320";
- } else {
- btn_zoom1.attribute("text") = "확대하기";
- btn_zoom1.attribute("top") = "575";
- button23.attribute("top") = "575";
- button4.attribute("visibility") = "visible";
- caption3.attribute("visibility") = "visible";
- caption5.attribute("top") = "579";
-
- grd_nrworklist.attribute("top") = "600";
- grd_nrworklist.attribute("height") = "140";
-
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_nrworklist" nodeset="/root/main/opdayworkinfo/nrworklist" autoresize="true" caption="^Duty^작성자^내용(부서 - CTRL + ENTER시 다음줄에 기입가능)^근무자^작성일시^작성일시^SEQNO^caption5^caption4^caption3^caption2^caption1" colsep="^" colwidth="0, 42, 75, 766, 130, 0, 120, 100, 0, 0, 0, 0, 0" explorerbar="sort" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="free" style="left:0px; top:600px; width:1175px; height:145px; vertical-align:middle; ">
- <col class="update_n" ref="status" visibility="hidden"/>
- <col disabled="true" ref="duty" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>D</label>
- <value>1</value>
- </item>
- <item>
- <label>E</label>
- <value>2</value>
- </item>
- <item>
- <label>N</label>
- <value>3</value>
- </item>
- <item>
- <label>S</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="delivecnts" type="input"/>
- <col ref="dutynm"/>
- <col ref="plandd" visibility="hidden" format="yyyy-mm-dd" style="text-align:right; "/>
- <col ref="plandt" type="input" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="wardcd" visibility="hidden"/>
- <col ref="deliveflagcd" visibility="hidden"/>
- <col ref="staiud" visibility="hidden"/>
- <col ref="userid" visibility="hidden"/>
- <col ref="WARDCD" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fUpt_Reptrows("wardlist");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_nrworklist.gridToInstance();
- grd_nrworklist.resizeCells();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_delivedetlgruplist.col == grd_delivedetlgruplist.colRef("fileyn")) {
- modal("SMMNP00301");
-
- var getData = getParameter("SendData");
- var data = new Array();
-
- data = getData.split("|");
-
- if(data.length > 0) {
- grd_delivedetlgruplist.valueMatrix(grd_delivedetlgruplist.row, grd_delivedetlgruplist.colRef("receiptid")) = data[0];
- grd_delivedetlgruplist.valueMatrix(grd_delivedetlgruplist.row, grd_delivedetlgruplist.colRef("receiptnm")) = data[1];
- }
- }
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|