123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- <?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>
- <wardcd/>
- <blodcomcd/>
- <refdd/>
- <settingrnid/>
- <userid/>
- </cond>
- <spclblodnodelive>
- <spclblodnodelivelist>
- <rtnchk/>
- <roomcd/>
- <pid/>
- <patnm/>
- <blodkind/>
- <prcpqty/>
- <btype/>
- <rgstno/>
- <rsrvdt/>
- <prcpdt/>
- <senddt/>
- <rsrvchk/>
- <prcpcd/>
- <prcpdd/>
- <prcpno/>
- <prcphistno/>
- <tnsreqacptno/>
- <blodcomcd/>
- <execprcpuniqno/>
- </spclblodnodelivelist>
- </spclblodnodelive>
- </main>
- <send/>
- <init>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- <settingrn>
- <settingrnid/>
- <settingrnnm/>
- </settingrn>
- </init>
- <tmpcode>
- <LB1101>
- <cd/>
- <nm/>
- </LB1101>
- </tmpcode>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/spclblodnodelive");
- grd_spclblodnodelivelist.fixedcellcheckbox(0, grd_spclblodnodelivelist.colRef("rtnchk")) = true;
- grd_spclblodnodelivelist.fixedcellcheckbox(0, grd_spclblodnodelivelist.colRef("rsrvchk")) = true;
-
- //혈액종류 조회(TRLZZ00101 참조)
- model.removenode("/root/send");
- model.makeValue("/root/send/codeflag", "1101|");
- submit("TRMNR08101");
-
- model.setValue("/root/main/cond/blodcomcd", model.getValue("/root/tmpcode/tmpcode/LB1101/cd"));
- model.setValue("/root/main/cond/wardcd", getUserInfo("dutplcecd"));
- model.setValue("/root/main/cond/refdd", getCurrentDate());// 기준일에 현재날짜(디폴트)
- model.setValue("/root/main/cond/userid", getUserId());
-
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- submit("TRMNW00101");
- //model.removenode("/root/init/ward[wardcd = '2280200000']"); // 응급의료센터 제외
-
- model.setValue("/root/main/cond/settingrnid", "");
- for(i = 1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
- if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
- model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
- }
- }
-
- //리스트조회
- fGetSpclBlodNoDeliveList();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //특수혈액미불출 리스트 조회버튼
- function fGetSpclBlodNoDeliveList(){
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/blodcomcd", model.getValue("/root/main/cond/blodcomcd"));
- model.makeValue("/root/send/refdd", model.getValue("/root/main/cond/refdd"));
- model.makeValue("/root/send/settingrnid", model.getValue("/root/main/cond/settingrnid"));
-
- if(submit("TRMNR08102", false)){
- grd_spclblodnodelivelist.fixedcellischeck(0, grd_spclblodnodelivelist.colRef("rtnchk")) = true;
- }
- model.refresh();
- }
-
- //저장
- function fsave(){
- var rtncnt = getNodesetCount("/root/main/spclblodnodelive/spclblodnodelivelist[rtnchk = 'true']");
- var rsrvcnt = getNodesetCount("/root/main/spclblodnodelive/spclblodnodelivelist[rsrvchk = 'true']");
-
- var retMsg = messageBox("반환 "+ rtncnt + "건, 재예약 " + rsrvcnt + "건 입니다. 전송하시겠습니까?", "Q"); //yes=6, no=7
- if(retMsg != "6") {
- return;
- }
-
- var RtnInfoHeader = "pid▦tnsreqacptno▦blodcomcd▦execprcpuniqno▦preplog▩";
- var RtnInfoData = "";
- var RsrvInfoHeader = "pid▦tnsreqacptno▦blodcomcd▦execprcpuniqno▩";
- var RsrvInfoData = "";
-
- for(i = 1; i <= getNodesetCount("/root/main/spclblodnodelive/spclblodnodelivelist"); i++ ) {
- var rtnchk = model.getValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i +"]/rtnchk");
- var rsrvchk = model.getValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i +"]/rsrvchk");
-
- var pid = model.getValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i +"]/pid");
- var tnsreqacptno = model.getValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i +"]/tnsreqacptno");
- var blodcomcd = model.getValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i +"]/blodcomcd");
- var execprcpuniqno = model.getValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i +"]/execprcpuniqno");
-
- if(rtnchk == "true"){
- RtnInfoData += pid +"▦" //등록번호
- + tnsreqacptno +"▦" //접수번호
- + blodcomcd +"▦" //성분제제
- + execprcpuniqno +"▦" //실시처방유일번호
- + '1' +"▩"; //취소구분 ("1")
- }
-
- if(rsrvchk == "true"){
- RsrvInfoData += pid +"▦" //등록번호
- + tnsreqacptno +"▦" //접수번호
- + blodcomcd +"▦" //성분제제
- + execprcpuniqno +"▩"; //실시처방유일번호
- }
- }
-
- model.removeNodeset("/root/send");
- if (RtnInfoData != "") {
- model.makeValue("/root/send/rtnblodinfo", RtnInfoHeader + RtnInfoData);
- }
- if (RsrvInfoData != "") {
- model.makeValue("/root/send/rsrvblodinfo", RsrvInfoHeader + RsrvInfoData);
- }
-
- if(submit("TXMNR08101")){
- messageBox("전송이 완료되었습니다,", "I");
- fGetSpclBlodNoDeliveList();
- }
-
- }
- ]]>
- </script>
- <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
- <submission id="TRMNR08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/tmpcode/LB1101"/>
- <submission id="TRMNR08102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclblodnodelive"/>
- <submission id="TXMNR08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/tmp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:179px; height:14px; ">특수혈액미불출리스트조회</caption>
- </group>
- <group id="grp_biz" scroll="l" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button3" class="btn1_letter2" style="left:1030px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSpclBlodNoDeliveList();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1020px; y1:7px; x2:1020px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:20px; top:10px; width:70px; height:17px; ">병동 :</caption>
- <input id="ipt_refdd" ref="/root/main/cond/refdd" class="input_search" inputtype="date" style="left:566px; top:9px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetSpclBlodNoDeliveList();
- ]]>
- </script>
- </input>
- <select1 id="cmb_ward" ref="/root/main/cond/wardcd" class="combo_s_essential" appearance="minimal" style="left:94px; top:9px; width:139px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ward/">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- submit("TRMNW00101");
-
- fGetSpclBlodNoDeliveList();
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:480px; top:10px; width:86px; height:17px; ">예약일 :</caption>
- <button id="button1" class="btn1_letter4" style="left:1094px; top:7px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "특수혈액미불출리스트_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "") {
- grd_spclblodnodelivelist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_settingrn" ref="/root/main/cond/settingrnid" class="combo_search" appearance="minimal" style="left:775px; top:9px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/settingrn">
- <label ref="settingrnnm"/>
- <value ref="settingrnid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetSpclBlodNoDeliveList();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:687px; top:10px; width:75px; height:17px; ">내환자:</caption>
- <caption id="caption3" class="search_name" style="left:256px; top:10px; width:91px; height:17px; ">혈액종류 :</caption>
- <select1 id="cmb_blodcomcd" ref="/root/main/cond/blodcomcd" class="combo_search" appearance="minimal" style="left:355px; top:9px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/tmpcode/tmpcode/LB1101">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetSpclBlodNoDeliveList();
- ]]>
- </script>
- </select1>
- </group>
- <datagrid id="grd_spclblodnodelivelist" nodeset="/root/main/spclblodnodelive/spclblodnodelivelist" caption="반환^병실^등록번호^환자명^혈액종류^수량^혈액형^주민등록번호^예약일시^처방일시^전송일시^예약" colsep="^" colwidth="50, 63, 90, 96, 97, 51, 59, 110, 105, 105, 105, 50" ellipsis="true" explorerbar="sort" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:73px; width:1195px; height:669px; ">
- <col checkvalue="true,false" ref="rtnchk" type="checkbox"/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="blodkind" style="text-align:center; "/>
- <col ref="prcpqty" style="text-align:center; "/>
- <col ref="btype" style="text-align:center; "/>
- <col ref="rgstno"/>
- <col ref="rsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prcpdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="senddt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col checkvalue="true,false" key="rsrvchk" ref="rsrvchk" type="checkbox"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var iCol = grd_spclblodnodelivelist.col;
- var iRow = grd_spclblodnodelivelist.row;
-
- if(iRow == 0){
- if(iCol == grd_spclblodnodelivelist.colRef("rtnchk")){
- if(grd_spclblodnodelivelist.fixedcellischeck(0, grd_spclblodnodelivelist.colRef("rtnchk")) == true){
- grd_spclblodnodelivelist.fixedcellischeck(0, grd_spclblodnodelivelist.colRef("rsrvchk")) = false;
- }else if(grd_spclblodnodelivelist.fixedcellischeck(0, grd_spclblodnodelivelist.colRef("rtnchk")) == false){
- grd_spclblodnodelivelist.fixedcellischeck(0, grd_spclblodnodelivelist.colRef("rsrvchk")) = true;
- }
- }else if(iCol == grd_spclblodnodelivelist.colRef("rsrvchk")){
- if(grd_spclblodnodelivelist.fixedcellischeck(0, grd_spclblodnodelivelist.colRef("rsrvchk")) == true){
- grd_spclblodnodelivelist.fixedcellischeck(0, grd_spclblodnodelivelist.colRef("rtnchk")) = false;
- }else if(grd_spclblodnodelivelist.fixedcellischeck(0, grd_spclblodnodelivelist.colRef("rsrvchk")) == false){
- grd_spclblodnodelivelist.fixedcellischeck(0, grd_spclblodnodelivelist.colRef("rtnchk")) = true;
- }
- }
- }
-
- for(i = 1; i <= getNodesetCount("/root/main/spclblodnodelive/spclblodnodelivelist"); i++ ) {
- if(iCol == grd_spclblodnodelivelist.colRef("rtnchk")){
- if(model.getValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i + "]/rtnchk") == "true"){
- model.setValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i + "]/rsrvchk", "false");
- }else if(model.getValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i + "]/rtnchk") == "false"){
- model.setValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i + "]/rsrvchk", "true");
- }
- }else if (grd_spclblodnodelivelist.col == grd_spclblodnodelivelist.colRef("rsrvchk")){
- if(model.getValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i + "]/rsrvchk") == "true"){
- model.setValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i + "]/rtnchk", "false");
- }else if(model.getValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i + "]/rsrvchk") == "false"){
- model.setValue("/root/main/spclblodnodelive/spclblodnodelivelist[" + i + "]/rtnchk", "true");
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line16" class="line_1" style="x1:0px; y1:68px; x2:1195px; y2:68px; "/>
- <caption id="caption26" class="tit_2" style="left:5px; top:53px; width:152px; height:13px; vertical-align:middle; ">특수혈액미불출 리스트</caption>
- <button id="btn_signsave" class="btn5_letter2" style="left:1153px; top:48px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fsave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|