123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475 |
- <?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>
- <deptcd/>
- <pid/>
- <fromdd/>
- <todd/>
- <acptflag/>
- <exceptflag>Y</exceptflag>
- <multicheck/>
- <exceptflag2>Y</exceptflag2>
- </cond>
- <ivinfo>
- <ivlist/>
- </ivinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //grd_ivinfo.fixedcellcheckbox(0, grd_ivinfo.colRef("chkyn")) = true;
-
- model.makeValue("/root/send/cdgrupid", "'I05', 'I06', 'I07','I13'");
- model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
- submit("TRMNW00001", false);
-
- var userid = getUserInfo("userid") ;
- //IV팀이면. 활성화
- if(userid == model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") || userid == 'ENR'){
- btn_cmpl.disabled = false;
- btn_savrem.disabled = false;
- btn_cncl.disabled = false;
- } else { // IV팀이 아니면 비활성화
- btn_cmpl.disabled = true;
- btn_savrem.disabled = true;
- btn_cncl.disabled = true;
- }
-
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'W';
- var rslt_ref = "/root/init/dept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- var dt = getCurrentDate();
-
- submit("TRMNW11001", false);
- addComboItem("cmb_deptcd", "전 체", "", "above");
- model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
-
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- if(model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") == userid) {
-
- } else { // IV팀이 아니면 비활성화
-
- if(getUserInfo("userid") == "ENR") {
- model.setValue(cmb_deptcd.attribute("ref"), "");
- cmb_deptcd.refresh();
- } else {
-
- model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
- cmb_deptcd.refresh();
- }
- }
- fSearch() ;
- ]]>
- </script>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
- <!--submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/-->
- <submission id="TRMNW14511" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/ivinfo"/>
- <submission id="TXMNW14511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMNW11001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptinfo"/>
- </model>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fSearch() {
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNW14511");
- var nodePath = grd_ivinfo.nodeset;
-
- for(var i = grd_ivinfo.fixedRows; i < grd_ivinfo.rows; i++) {
- if (model.getValue(nodePath + "["+i+"]/disp1") == "Y") {
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "../../../com/hismainweb/images/btn_top_infection0.gif";
- }else{
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "";
- }
- if (model.getValue(nodePath + "["+i+"]/disp2") == "Y") {
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "../../../com/hismainweb/images/btn_top_infection1.gif";
- }else{
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "";
- }
- if (model.getValue(nodePath + "["+i+"]/disp3") == "Y") {
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "../../../com/hismainweb/images/btn_top_infection2.gif";
- }else{
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "";
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:180px; height:13px; font-family:굴림; ">특수주사팀 호출 현황관리</caption>
- <group id="grp_sea" style="left:0px; top:20px; width:1194px; height:40px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:40px; "/>
- <button id="btn_ref" class="btn1_letter2" navindex="7" style="left:1070px; top:11px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:215px; top:11px; width:69px; height:17px; font-family:굴림; ">기 간 :</caption>
- <line id="line2" class="line_4" style="x1:1060px; y1:10px; x2:1060px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:284px; top:11px; width:95px; height:19px; font-family:굴림; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption29" class="search_name" style="left:10px; top:11px; width:67px; height:17px; font-family:굴림; ">부 서 :</caption>
- <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:80px; top:11px; width:125px; height:19px; font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/deptinfo/deptlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:499px; top:11px; width:71px; height:17px; font-family:굴림; ">구 분 :</caption>
- <caption id="caption2" class="search_name" style="left:750px; top:11px; width:91px; height:17px; font-family:굴림; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" navindex="4" appearance="minimal" style="left:840px; top:11px; width:55px; height:19px; font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/ward">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_ref", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="button2" class="btn1_letter2" navindex="8" style="left:1128px; top:11px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "소아IV팀 호출 현황 리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_ivinfo.saveExcel(fileName, "sheetname;colhiddenextend:true;exportfalsecols:1,2,8,9,10;col_3:label;col_16:label;col_18:label;col_19:label;");
- ]]>
- </script>
- </button>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:394px; top:11px; width:95px; height:19px; font-family:굴림; "/>
- <caption id="caption4" style="left:377px; top:12px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
- <select1 id="rdo_acptflag" ref="/root/main/cond/acptflag" appearance="full" cols="6" overflow="visible" style="left:569px; top:11px; width:176px; height:15px; font-family:굴림; border-style:none; ">
- <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>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption5" class="tit_2" style="left:5px; top:75px; width:195px; height:13px; font-family:굴림; ">특수주사팀 호출 현황 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:90px; "/>
- <datagrid id="grd_ivinfo" nodeset="/root/main/ivinfo/ivlist" class="datagrid2" caption="^no^호출부서^병실
(입원)^부서번호^등록번호^성명^S/A^진료과^감염정보^감염정보^감염정보^감염정보^감염정보^감염정보^호출일시^호출일시^IV목적^호출목적^구분^호출번호^특수주사팀
Remark^완료일시^완료일시" colsep="^" colwidth="27, 0, 85, 50, 100, 55, 65, 45, 95, 23, 23, 23, 23, 23, 23, 70, 45, 65, 105, 45, 60, 105, 70, 45" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:95px; width:1194px; height:670px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col ref="callno"/>
- <col disabled="true" ref="calldeptcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/deptinfo/deptlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="depttel" style="text-align:left; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="sexage" style="text-align:left; "/>
- <col ref="orddeptnm"/>
- <col ref="disp1img"/>
- <col ref="disp2img"/>
- <col ref="disp3img"/>
- <col ref="disp1" visibility="hidden" style="text-align:center; "/>
- <col ref="disp2" visibility="hidden" style="text-align:center; "/>
- <col ref="disp3" visibility="hidden" style="text-align:center; "/>
- <col ref="calldd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="calltm" format="hh:nn" style="text-align:center; "/>
- <col disabled="true" ref="callremfact" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I06']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="callremfactdesc" type="output" style="text-align:left; "/>
- <col disabled="true" ref="acptflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I05']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="calltelno" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I13']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="ivremfact" type="input"/>
- <col ref="cmpltdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cmplttm" format="hh:nn" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_ivinfo.col == grd_ivinfo.colRef("ivremfact")) {
- grd_ivinfo.valueMatrix(grd_ivinfo.row, grd_ivinfo.colRef("chkyn")) = "Y";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ivinfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_cmpl" class="btn2_letter2" style="left:1106px; top:70px; width:42px; height:19px; ">
- <caption>완료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var chkyn;
- var acptflag;
- var chkcnt = 0;
- var cnt = 0;
- var cnclcnt = 0;
- var xIvListPath = "/root/main/ivinfo/ivlist";
-
- for(var i=grd_ivinfo.fixedRows; i <grd_ivinfo.rows; i++) {
- chkyn = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("chkyn"));
- acptflag = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("acptflag"));
-
- if(chkyn == "Y" && acptflag == "3") {
- cnclcnt++;
- }
-
- if(chkyn == "Y" && acptflag == "2" ) {
- chkcnt++;
- }
-
- if(chkyn == "Y") {
- cnt++;
- }
-
- if(model.getValue("/root/main/cond/multicheck") == "true"){
-
- data = grd_ivinfo.getupdatedataAll("i")
-
- }else if(model.getValue(xIvListPath + "[" + i + "]/chkyn") == "Y"){
- data = getGridUpdateData(grd_ivinfo);
- }
- }
-
- if(chkyn == 0) {
- messageBox("완료 처리할 환자를 선택하여 주십시오.", "I");
- return;
- }
-
- if(cnclcnt >0) {
- messageBox("취소된 환자는 완료하실 수 없습니다.", "E");
- return;
- }
- if(chkcnt > 0) {
- messageBox("이미 완료된 환자는 완료하실 수 없습니다.", "E");
- return;
- }
-
- model.makeValue("/root/send/savedata/ivlist", data);
- model.makeValue("/root/send/savedata/saveflag", "2");
- submit("TXMNW14511");
-
- fSearch() ;
- ]]>
- </script>
- </button>
- <button id="btn_savrem" class="btn2_letter6" style="left:1018px; top:70px; width:86px; height:19px; ">
- <caption>Remark저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/ivlist", getGridUpdateData(grd_ivinfo));
- model.makeValue("/root/send/savedata/saveflag", "1");
- submit("TXMNW14511");
-
- fSearch() ;
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter7" style="left:919px; top:70px; width:97px; height:19px; ">
- <caption>특수주사팀 호출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMMNW14550");
- ]]>
- </script>
- </button>
- <caption id="caption6" style="left:1166px; top:767px; width:27px; height:15px; ">[표]</caption>
- <select id="checkbox1" ref="/root/main/cond/exceptflag" overflow="visible" appearance="full" style="left:905px; top:34px; width:66px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>완료제외</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </select>
- <bool id="bool1" navindex="19" ref="/root/main/cond/multicheck" style="left:24px; top:99px; width:20px; height:30px; font-family:굴림; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var multicheck = model.getValue("/root/main/cond/multicheck");
- var xIvListPath = "/root/main/ivinfo/ivlist";
- var nodeCnt = getNodesetCount(xIvListPath);
- for(var i = 1; i <= nodeCnt; i++){
- if(multicheck == "true"){
- model.setValue(xIvListPath + "[" + i + "]/chkyn", "Y");
- }else{
- model.setValue(xIvListPath + "[" + i + "]/chkyn", "N");
- }
- }
-
- ]]>
- </script>
- </bool>
- <button id="btn_cncl" class="btn5_letter2" style="left:1150px; top:70px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var chkyn;
- var acptflag;
- var chkcnt = 0;
- var cnt = 0;
- var cnclcnt = 0;
- var xIvListPath = "/root/main/ivinfo/ivlist";
-
- for(var i=grd_ivinfo.fixedRows; i <grd_ivinfo.rows; i++) {
- chkyn = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("chkyn"));
- acptflag = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("acptflag"));
-
- if(chkyn == "Y" && acptflag == "3") {
- cnclcnt++;
- }
-
- if(chkyn == "Y" && acptflag == "2" ) {
- chkcnt++;
- }
-
- if(chkyn == "Y") {
- cnt++;
- }
-
- if(model.getValue("/root/main/cond/multicheck") == "true"){
-
- data = grd_ivinfo.getupdatedataAll("i")
-
- }else if(model.getValue(xIvListPath + "[" + i + "]/chkyn") == "Y"){
- data = getGridUpdateData(grd_ivinfo);
- }
- }
-
- if(chkyn == 0) {
- messageBox("취소 처리할 환자를 선택하여 주십시오.", "I");
- return;
- }
-
- if(cnclcnt >0) {
- messageBox("이미 취소된 환자는 취소하실 수 없습니다.", "E");
- return;
- }
- if(chkcnt > 0) {
- messageBox("완료된 환자는 취소하실 수 없습니다.", "E");
- return;
- }
-
- model.makeValue("/root/send/savedata/ivlist", data);
- model.makeValue("/root/send/savedata/saveflag", "3");
- submit("TXMNW14511");
-
- fSearch() ;
- ]]>
- </script>
- </button>
- <select id="checkbox2" ref="/root/main/cond/exceptflag2" overflow="visible" appearance="full" style="left:977px; top:34px; width:71px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>취소제외</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|