123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>응급CCD BAG 등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main_erccd>
- <cond>
- <opfromdd/>
- <optodd/>
- <flag>1</flag>
- <flag2>7</flag2>
- <cartgubn>O</cartgubn>
- </cond>
- <baginfo>
- <baglist>
- <bagstat/>
- <erbgcd/>
- <erbgnm/>
- <oproom/>
- <pid/>
- <hngnm/>
- </baglist>
- </baginfo>
- </main_erccd>
- <ersend>
- <reqdata/>
- </ersend>
- <temp>
- <printinfo/>
- </temp>
- <init>
- <codeinfo>
- <codelist/>
- </codeinfo>
- </init>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- var opyn = "N";
-
- function fInitialize() {
- var cartgubn = getScreenMenuParameter();
-
- if(cartgubn == "A") {
- rdo_cartgubn.value = cartgubn;
- }
-
- model.makeValue("/root/ersend/reqdata/cdgrupid", "'160'");
- model.makeValue("/root/ersend/reqdata/srchdd", getCurrentDate());
- submit("TRMNW00001");
-
- grd_baglist.fixedcellcheckbox(0, grd_baglist.colRef("chkyn")) = true;
-
- var deptcd = getUserInfo("dutplcecd");
-
- var node = instance1.selectNodes("/root/init/codeinfo/codelist[cdid='" + deptcd + "']");
-
- var userid = getUserInfo("userid");
-
- if(userid == "ENR") {
- opyn="Y";
- } else {
-
- if(node.length > 0) {
- btn_dlv.disabled = false;
- btn_dlvcncl.disabled = false;
- btn_reci.disabled = true;
- btn_recicncl.disabled = true;
- rdo_flag2.value = "9";
- opyn="N";
- rdo_cartgubn.disabled = false;
-
- } else {
- btn_dlv.disabled = true;
- btn_dlvcncl.disabled = true;
- btn_reci.disabled = false;
- btn_recicncl.disabled = false;
- rdo_flag2.value = "7";
- opyn="Y";
- rdo_cartgubn.disabled = true;
- }
- }
-
- model.setValue("/root/main_erccd/cond/opfromdd", getCurrentDate());
- model.setValue("/root/main_erccd/cond/optodd" , getCurrentDate());
-
- ipt_opfromdd.refresh();
- ipt_optodd.refresh();
-
- fSearch();
- }
-
- //조회
- function fSearch(){
-
- model.copyNode("/root/ersend/reqdata", "/root/main_erccd/cond");
- submit("TRMNG04401");
-
- grd_baglist.fixedcellischeck(0, grd_baglist.colRef("chkyn")) = false;
-
- var bagstatcd = "";
-
- //반납상태전에것들은 수령 및 불출 하지 못하도록 disable처리함.
- for(var i = grd_baglist.fixedRows; i < grd_baglist.rows; i++) {
- bagstatcd = grd_baglist.valueMatrix(i, grd_baglist.colRef("bagstatcd"));
-
- if(bagstatcd < "5") {
- grd_baglist.isReadOnly(i, grd_baglist.colRef("chkyn"), i, grd_baglist.colRef("chkyn")) = true;
-
- } else {
- grd_baglist.isReadOnly(i, grd_baglist.colRef("chkyn"), i, grd_baglist.colRef("chkyn")) = false;
- }
-
-
- }
- }
-
- //저장 flag(1:불출 2:수령 3:불출취소 4:수령취소)
- function fSave(flag){
- var chkyn;
-
- var node ="";
-
- var msgcnt = "";
- var rtn;
-
- node = instance1.selectNodes(grd_baglist.nodeset + "[chkyn='Y']");
-
- if(node.length == 0 || node.length == "" || node.length == null) {
- messageBox("선택된 항목이 없습니다.", "E");
- return;
- }
-
-
- if(flag == "1") {
- msgcnt = "불출 하시겠습니까?";
-
- } else if(flag == "2") {
- msgcnt = "수령 하시겠습니까?";
- node = instance1.selectNodes(grd_baglist.nodeset + "[chkyn='Y' and bagstatcd !='7']");
- if(node.length > 0) {
- messageBox("재불출상태인 CCD만 수령이 가능합니다.", "E");
- return;
- }
- } else if(flag == "3") {
- msgcnt = "불출취소 하시겠습니까?";
-
- node = instance1.selectNodes(grd_baglist.nodeset + "[chkyn='Y' and bagstatcd !='7']");
- if(node.length > 0) {
- messageBox("불출상태인 CCD만 불출취소가 가능합니다.", "E");
- return;
- }
- } else if(flag == "4") {
- msgcnt = "수령취소 하시겠습니까?";
- node = instance1.selectNodes(grd_baglist.nodeset + "[chkyn='Y' and bagstatcd !='8']");
- if(node.length > 0) {
- messageBox("수령상태인 CCD만 수령취소가 가능합니다.", "E");
- return;
- }
- }
-
- rtn = messageBox(msgcnt, "Q");
-
- //예 했을경우에만 저장로직 탐, 자동재조회.
- if(rtn == "6") {
-
- for(var i = grd_baglist.fixedRows; i < grd_baglist.rows; i++) {
- chkyn = grd_baglist.valueMatrix(i, grd_baglist.colRef("chkyn"));
-
- if(chkyn == "Y") {
- grd_baglist.valueMatrix(i, grd_baglist.colRef("flag")) = flag;
-
- }
- }
-
-
-
- model.makeValue("/root/ersend/savedata/baglist", getGridUpdateData(grd_baglist));
- submit("TXMNG04401");
-
- fSearch();
- }
- }
-
- function fPrint2() {
- exeReportPreview("RPMNG04400", "XMLSTR");
- }
-
- function fPrint() {
-
- var chkyn;
- var node ="";
- var erbgnm="";
-
- node = instance1.selectNodes(grd_baglist.nodeset + "[chkyn='Y']");
-
- if(node.length == 0 || node.length == "" || node.length == null) {
- messageBox("선택된 항목이 없습니다.", "E");
- return;
- }
- for(var i = grd_baglist.fixedRows; i < grd_baglist.rows; i++) {
- chkyn = grd_baglist.valueMatrix(i, grd_baglist.colRef("chkyn"));
- erbgnm = grd_baglist.valueMatrix(i, grd_baglist.colRef("erbgnm"));
- if(chkyn == "Y") {
-
- model.makeValue("/root/ersend/printdata/erbgcd", grd_baglist.valueMatrix(i, grd_baglist.colRef("erbgcd")));
- submit("TRMNG03601");
-
- model.makeNode("/root/temp/prtinfo/suturelist");
- model.makeNode("/root/temp/prtinfo/supllist");
- model.makeNode("/root/temp/prtinfo/sheetlist");
- model.makeNode("/root/temp/prtinfo/glovelist");
-
- model.makeValue("/root/temp/cond/erbgnm", erbgnm);
-
- if(opyn == "Y") {
- model.makeValue("/root/temp/cond/usernm", "");
- } else {
- model.makeValue("/root/temp/cond/usernm", getUserInfo("usernm"));
- }
-
-
- copyNodesetType("/root/temp/prtinfo/suturelist", "/root/temp/erbgdtlist[cureflag='1' and ccrdeliveyn='Y']");
- copyNodesetType("/root/temp/prtinfo/supllist", "/root/temp/erbgdtlist[cureflag='2' and ccrdeliveyn='Y']");
- copyNodesetType("/root/temp/prtinfo/sheetlist", "/root/temp/erbgdtlist[cureflag='7' and ccrdeliveyn='Y']");
- copyNodesetType("/root/temp/prtinfo/glovelist", "/root/temp/erbgdtlist[cureflag='8' and ccrdeliveyn='Y']");
-
- exeReportPreview("RPMNG04101", "XMLSTR", "", "" ,"true","","","","","true");
-
- model.removeNodeset("/root/temp/prtinfo");
-
- }
-
-
- }
-
- }
-
- ]]>
- </script>
- <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[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNG04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/ersend/reqdata" resultref="/root/main_erccd/baginfo"/>
- <submission id="TXMNG04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/ersend/savedata" resultref="/root/temp"/>
- <submission id="TRMNG03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/ersend/printdata" resultref="/root/temp/erbgdtlist"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/ersend/reqdata" resultref="/root/init/codeinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="961" pageheight="715" guideline="2,450;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:925px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; font-family:돋움체; ">응급CCD BAG 등록</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:925px; height:672px; ">
- <group id="grp_sea" style="left:0px; top:0px; width:925px; height:35px; font-family:돋움체; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:925px; height:35px; font-family:돋움체; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
- <caption id="cap_instcd" class="search_name" style="left:5px; top:9px; width:90px; height:17px; font-family:돋움체; ">수술일자 :</caption>
- <line id="line13" class="line_4" style="x1:850px; y1:5px; x2:850px; y2:30px; font-family:돋움체; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:860px; top:8px; width:56px; height:22px; font-family:돋움체; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <select1 id="rdo_flag" ref="/root/main_erccd/cond/flag" appearance="full" cols="2" overflow="visible" style="left:100px; top:10px; width:95px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>오늘</label>
- <value>1</value>
- </item>
- <item>
- <label>어제</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var flag = model.getValue(rdo_flag.attribute("ref"));
- var fromdd;
- var todd;
-
- if(flag == "1") {
- fromdd = getCurrentDate();
- todd = getCurrentDate();
- } else {
- fromdd = getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD");
- todd = getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD");
- }
-
- model.setValue("/root/main_erccd/cond/opfromdd", fromdd);
- model.setValue("/root/main_erccd/cond/optodd" , todd);
-
- ipt_opfromdd.refresh();
- ipt_optodd.refresh();
-
- ]]>
- </script>
- </select1>
- <input id="ipt_opfromdd" ref="/root/main_erccd/cond/opfromdd" class="input_s_essential" inputtype="date" style="left:200px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_optodd" ref="/root/main_erccd/cond/optodd" class="input_s_essential" inputtype="date" style="left:315px; top:8px; width:100px; height:19px; "/>
- <caption id="caption1" style="left:302px; top:10px; width:15px; height:20px; ">~</caption>
- <select1 id="rdo_flag2" ref="/root/main_erccd/cond/flag2" appearance="full" cols="5" overflow="visible" style="left:605px; top:10px; width:190px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>재불출</label>
- <value>7</value>
- </item>
- <item>
- <label>수령</label>
- <value>8</value>
- </item>
- <item>
- <label>반납</label>
- <value>9</value>
- </item>
- <item>
- <label>기타</label>
- <value>6</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_cartgubn" ref="/root/main_erccd/cond/cartgubn" appearance="full" cols="2" overflow="visible" style="left:485px; top:10px; width:100px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>수술</label>
- <value>O</value>
- </item>
- <item>
- <label>마취</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:425px; top:10px; width:65px; height:17px; font-family:돋움체; ">구분 :</caption>
- </group>
- <caption id="caption8" class="tit_2" style="left:5px; top:49px; width:133px; height:13px; font-family:돋움체; ">응급CCD BAG</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:925px; y2:64px; font-family:돋움체; "/>
- <datagrid id="grd_baglist" nodeset="/root/main_erccd/baginfo/baglist" class="datagrid2" caption="^Bag 상태^CCD Bag CD^EM CCD Bag^수술
방^등록번호^환자명^집도의^수술명^Cart최종
인증저장^Cart재불출
담당자^Cart재불출
담당자ID^수령자^재불출일시^수령일시^수령자ID^수술번호^flag" colsep="^" colwidth="24, 58, 0, 150, 38, 75, 70, 70, 211, 70, 66, 0, 51, 100, 100, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:69px; width:925px; height:600px; font-family:돋움체; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col disabled="true" ref="bagstatcd" type="combo">
- <choices>
- <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>7</value>
- </item>
- <item>
- <label>수령</label>
- <value>8</value>
- </item>
- </choices>
- </col>
- <col ref="erbgcd"/>
- <col ref="erbgnm"/>
- <col ref="oproom"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="perfdrnm"/>
- <col ref="opnm"/>
- <col ref="cartuser"/>
- <col ref="redlvrnm" style="left:818px; top:32px; width:70px; height:23px; "/>
- <col ref="redlvrid" visibility="hidden"/>
- <col ref="recipntnm"/>
- <col ref="redlvrdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="recipntdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="recipntid" visibility="hidden"/>
- <col ref="oprsrvno" visibility="hidden"/>
- <col ref="flag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var bagstatcd;
- if(grd_baglist.row == 0 && grd_baglist.col == grd_baglist.colRef("chkyn")) {
- if(grd_baglist.fixedcellischeck(0, grd_baglist.colRef("chkyn"))) {
- for(var i = grd_baglist.fixedRows; i < grd_baglist.rows; i++) {
- bagstatcd = grd_baglist.valueMatrix(i, grd_baglist.colRef("bagstatcd"));
-
- if(bagstatcd < 5) {
- grd_baglist.valueMatrix(i, grd_baglist.colRef("chkyn")) = "N";
- } else {
- grd_baglist.rowStatus(i) = "2";
- }
- }
- } else {
- for(var i = grd_baglist.fixedRows; i < grd_baglist.rows; i++) {
- grd_baglist.rowStatus(i) = "0";
- }
- }
-
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_reci" class="btn2_letter2" style="left:705px; top:44px; width:42px; height:19px; ">
- <caption>수령</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave("2");
-
- ]]>
- </script>
- </button>
- <button id="btn_dlv" class="btn2_letter2" style="left:595px; top:44px; width:42px; height:19px; ">
- <caption>불출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave("1");
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn2_letter4" style="left:815px; top:44px; width:42px; height:19px; ">
- <caption>Bag출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fPrint();
-
- ]]>
- </script>
- </button>
- <button id="btn_recicncl" class="btn2_letter4" style="left:749px; top:44px; width:64px; height:19px; ">
- <caption>수령취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave("4");
-
- ]]>
- </script>
- </button>
- <button id="btn_dlvcncl" class="btn2_letter4" style="left:639px; top:44px; width:64px; height:19px; ">
- <caption>불출취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave("3");
-
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter2" style="left:880px; top:44px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fPrint2();
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|