123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 수혈처방접수관리.xrw
- * 설 명 : 수혈처방접수
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.05.31
- * 수정이력 :
- * 기 타 :
- -->
- <?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>수혈접수 및 취소관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <tnsacptinfo>
- <tnsinfolist>
- <tree/>
- <level/>
- <chk/>
- <state/>
- <prcpdd/>
- <prcphopedd/>
- <dd/>
- <pid/>
- <hngnm/>
- <roomcd/>
- <tclsscrnnm/>
- <type/>
- <asttestflag/>
- <cnt/>
- <spcyn/>
- <acpt/>
- <comment/>
- <prcpcd/>
- <drugmthdspccd/>
- <tnsreqacptno/>
- <blodcomstat/>
- <execprcpuniqno/>
- <tnsreqseq/>
- <prcpgenrflag/>
- <instcd/>
- <blodno/>
- <erprcpflag/>
- </tnsinfolist>
- </tnsacptinfo>
- </main>
- <send>
- <data1/>
- <data2/>
- </send>
- <init/>
- <hidden>
- <refparam>
- <startdd/>
- <starttm/>
- <enddd/>
- <endtm/>
- <blodcomcd>00</blodcomcd>
- <refflag/>
- <acptflag>1</acptflag>
- <pid/>
- <autoflag/>
- <refgbn/>
- </refparam>
- <default/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fBaseInfoRef("0604|");
- var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-6)
- model.setvalue("/root/hidden/refparam/startdd", mDate.getDateFormat("YYYYMMDD"));
- model.setvalue("/root/hidden/refparam/enddd",getCurrentDate());
-
- grd_tnsinfolist.removeRow();
- //grd_tnsinfolist.colHidden(2) = true;
- //grd_tnsinfolist.colHidden(1) = true;
-
- model.setvalue("/root/hidden/refparam/starttm",getCurrentTime());
- model.setvalue("/root/hidden/refparam/endtm",getCurrentTime());
-
- fSetblodnoview(); // blodno 그리드 숨기기 보여주기
-
- model.refresh();
- ]]>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <submission id="TRLBT10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tnsacptinfo"/>
- <submission id="TXLBT10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXLBT10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TXLBT10103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSetClear(){
- model.removeNodeset("/root/main/tnsacptinfo/tnsinfolist");
- model.refresh();
- //grd_tnsinfolist.rebuild();
- }
-
- // 수혈접수 버튼 클릭
- function fSetTnsAcpt(){
-
- var acptTF = false;
-
- grd_tnsinfolist.clearStatus();
-
- if(model.getvalue("/root/hidden/refparam/acptflag") =="1"){ // 미접수일때
-
- for(i=1;i<grd_tnsinfolist.rows;i++){
- if(model.getvalue("/root/main/tnsacptinfo/tnsinfolist["+i+"]/chk") == "true"){
- acptTF = true;
- grd_tnsinfolist.addStatus(i , "insert");
- }
-
- }
-
- if(acptTF){
- model.setvalue("/root/send/data1" , grd_tnsinfolist.getUpdateData());
- submit("TXLBT10101", false);
- grd_tnsinfolist.clearStatus();
- model.copyNode("/root/send/data1" , "/root/hidden/default");
- fTnsRef("0");
-
- }
- }/*else if(model.getvalue("/root/hidden/refparam/acptflag") =="2"){ // 접수일때
-
- for(i=1;i<grd_tnsinfolist.rows;i++){
- if(model.getvalue("/root/main/tnsacptinfo/tnsinfolist["+i+"]/chk") == "true" &&
- model.getvalue("/root/main/tnsacptinfo/tnsinfolist["+i+"]/level") == "2") {
- acptTF = true;
- grd_tnsinfolist.addStatus(i , "insert");
- }
-
-
- }
-
- if(acptTF){
- model.setvalue("/root/send/data1" , grd_tnsinfolist.getUpdateData());
- submit("TXLBT10102", false);
- grd_tnsinfolist.clearStatus();
- model.copyNode("/root/send/data1" , "/root/hidden/default");
- fTnsRef("0");
-
- }
- }
- */else if(model.getvalue("/root/hidden/refparam/acptflag") =="4"){ // 접수취소된 것도 재접수 되도록
-
- for(i=1;i<grd_tnsinfolist.rows;i++){
- if(model.getvalue("/root/main/tnsacptinfo/tnsinfolist["+i+"]/chk") == "true"){
- acptTF = true;
- grd_tnsinfolist.addStatus(i , "insert");
- }
-
- }
-
- if(acptTF){
-
- model.setvalue("/root/send/data1" , grd_tnsinfolist.getUpdateData());
- submit("TXLBT10103", false);
- grd_tnsinfolist.clearStatus();
- model.copyNode("/root/send/data1" , "/root/hidden/default");
- fTnsRef("0");
-
- }
- }
-
-
-
-
- }
-
- function fTnsRef(gbn){
-
- fSetClear();
- if(model.getvalue("/root/hidden/refparam/pid") == "" && gbn == "1"){
- messageBox("등록번호를","C001","") ;
- return false;
- }
- model.setvalue("/root/hidden/refparam/refgbn" , gbn);
- model.copyNode("/root/send/data1" , "/root/hidden/refparam");
-
- submit("TRLBT10101" , false);
-
- model.copyNode("/root/send/data1" , "/root/hidden/default");
-
- model.refresh();
- //미접수이고 chk가 true가 아닐때..선택 disabled
- if(model.getValue("/root/hidden/refparam/acptflag") == "1"){
- for(iRow =1; iRow < grd_tnsinfolist.rows; iRow++){
- if(model.getValue("root/main/tnsacptinfo/tnsinfolist["+ iRow +"]/chk") != "true"){
- grd_tnsinfolist.isReadOnly(iRow, grd_tnsinfolist.colRef("chk")) = true;
- }
- }
- }
-
- if(model.getvalue("/root/hidden/refparam/acptflag") == "2") {
- setTree(grd_tnsinfolist, 2, 1, true);
- //fSetMakeTree();
- }
-
- }
-
- function fPidSearch(){
- if(event.keyCode == "13"){
- model.setvalue("/root/hidden/refparam/pid", input3.currentText);
- model.refresh();
- fTnsRef("1");
- input3.selBegin = 0;
- input3.selEnd = input3.currentText.length;
- }
- }
-
- function fAcptFlag(){
- fSetClear();
- if(model.getvalue("/root/hidden/refparam/acptflag") == "1"){
- button2.visible = true;
- button2.attribute("text") = "저 장";
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("tree")) = true;
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("chk")) = false;
- button2.disabled = false;
- }
- else if(model.getvalue("/root/hidden/refparam/acptflag") == "2"){
- //button2.attribute("text") = "접수취소";
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("tree")) = false;
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("chk")) = true;
- button2.visible = false;
- }
- else if(model.getvalue("/root/hidden/refparam/acptflag") == "4"){
- button2.visible = true;
- button2.attribute("text") = "저 장";
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("tree")) = true;
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("chk")) = false;
- button2.disabled = false;
- }else{
- button2.visible = true;
- button2.disabled = true;
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("tree")) = true;
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("state")) = true;
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("chk")) = true;
- }
-
- fSetblodnoview(); // blodno 그리드 숨기기 보여주기
- }
-
- function fSetMakeTree(){
-
- for(var i = 1; i < grd_tnsinfolist.rows; i++) {
-
- grd_tnsinfolist.IsSubtotal(i) = true;
- grd_tnsinfolist.outlinelevel(i) = grd_tnsinfolist.valueMatrix(i,2);
- }
-
- grd_tnsinfolist.OutlineCol = 1;
- grd_tnsinfolist.OutlineBar = 4;
-
-
- }
-
- function fGridClick(){
- var row = grd_tnsinfolist.row;
- var col = grd_tnsinfolist.col;
-
- if(col == 3){
- if(model.getvalue("/root/hidden/refparam/acptflag") == "2"){
- if(model.getvalue("/root/main/tnsacptinfo/tnsinfolist["+row+"]/level") == "1"){
- if(row < grd_tnsinfolist.rows-1){
-
- var value = model.getvalue("/root/main/tnsacptinfo/tnsinfolist["+row+"]/chk");
-
-
- var levl = "2"
- for( i =parseInt(row) + 1 ;; i++){
- if( i > grd_tnsinfolist.rows-1) break;
-
- levl = model.getvalue("/root/main/tnsacptinfo/tnsinfolist["+i+"]/level");
- if(levl == "1" ) break;
-
- if(value == "true"){
-
- if(model.getvalue("/root/main/tnsacptinfo/tnsinfolist["+i+"]/blodcomstat") == "1")
- model.setvalue("/root/main/tnsacptinfo/tnsinfolist["+i+"]/chk" ,"true");
- }
- else{
- model.setvalue("/root/main/tnsacptinfo/tnsinfolist["+i+"]/chk" ,"false");
- }
- }
-
- }
-
- }
- else{
- if(model.getvalue("/root/main/tnsacptinfo/tnsinfolist["+row+"]/chk") == "true" &&
- model.getvalue("/root/main/tnsacptinfo/tnsinfolist["+row+"]/blodcomstat") != "1"){
- model.setvalue("/root/main/tnsacptinfo/tnsinfolist["+row+"]/chk" ,"false");
- }
- }
- }else if(model.getvalue("/root/hidden/refparam/acptflag") == "4"){ // 접수취소 조회시
-
- if(model.getValue("/root/main/tnsacptinfo/tnsinfolist["+row+"]/state") =="처방취소"){
- model.setValue("/root/main/tnsacptinfo/tnsinfolist["+row+"]/chk", "false");
- }
- }
- }
-
- model.refresh();
- }
-
- // 혈액번호칸 숨기기
- function fSetblodnoview(){
- if(model.getValue("/root/hidden/refparam/acptflag")=="1"){ // 미접수
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("blodno")) = true;
- }else if(model.getValue("/root/hidden/refparam/acptflag")=="2"){ // 접수
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("blodno")) = false;
- }else if(model.getValue("/root/hidden/refparam/acptflag")=="4"){ // 접수취소
- grd_tnsinfolist.colHidden(grd_tnsinfolist.colRef("blodno")) = true;
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:224px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">수혈접수 및 취소관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">신청일시 :</caption>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fTnsRef("0");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <input id="input26" ref="/root/hidden/refparam/startdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:90px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="input27" ref="/root/hidden/refparam/starttm" class="input_search" format="hh:nn" style="left:194px; top:8px; width:36px; height:19px; "/>
- <input id="input1" ref="/root/hidden/refparam/enddd" class="input_s_essential" inputtype="date" style="left:251px; top:8px; width:90px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="input2" ref="/root/hidden/refparam/endtm" class="input_search" format="hh:nn" style="left:340px; top:8px; width:36px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:381px; top:9px; width:95px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">혈액종류 :</caption>
- <select1 id="combo1" ref="/root/hidden/refparam/blodcomcd" class="combo_search" appearance="minimal" style="left:479px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0604">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:924px; top:9px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
- <input id="input3" ref="/root/hidden/refparam/pid" class="input_s_button" navindex="1" inputtype="button" style="left:1017px; top:8px; width:76px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fPidSearch();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fTnsRef("1");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- //model.setvalue("/root/hidden/refparam/pid" , "");
- //model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_no_b" style="left:235px; top:10px; width:15px; height:17px; ">~</caption>
- <caption id="caption9" class="search_name" style="left:636px; top:9px; width:95px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
- <select1 id="radio1" ref="/root/hidden/refparam/acptflag" appearance="full" cols="4" overflow="visible" style="left:701px; top:9px; width:224px; height:20px; border-style:none; ">
- <choices>
- <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>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAcptFlag();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">혈액은행 처방 목록</caption>
- <datagrid id="grd_tnsinfolist" nodeset="/root/main/tnsacptinfo/tnsinfolist" caption="^level^선택^상태^처방일자^신청일자^예약일시^등록번호^환자명^병실^혈액번호^처방^Type^I^수량^검체^접수^ER^NurComment^caption1^prcpcd^drugmthdspccd^tnsreqacptno^blodcomstat^execprcpuniqno^tnsreqseq^prcpgenrflag^instcd^의사전달사항^prcpno" colsep="^" colwidth="22, 0, 33, 60, 86, 90, 120, 89, 81, 63, 80, 140, 40, 30, 40, 40, 40, 30, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:665px; ">
- <col ref="tree"/>
- <col ref="level"/>
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="state"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="prcphopedd" format="yyyy-mm-dd"/>
- <col ref="dd" format="yyyy-mm-dd hh:nn"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="roomcd"/>
- <col ref="blodno"/>
- <col ref="tclsscrnnm"/>
- <col ref="type"/>
- <col ref="asttestflag"/>
- <col ref="cnt"/>
- <col ref="spcyn"/>
- <col ref="acpt"/>
- <col ref="erprcpflag"/>
- <col ref="nursrem"/>
- <col ref="erprcpflag"/>
- <col ref="prcpcd"/>
- <col ref="drugmthdspccd"/>
- <col ref="tnsreqacptno"/>
- <col ref="blodcomstat"/>
- <col ref="execprcpuniqno"/>
- <col ref="tnsreqseq"/>
- <col ref="prcpgenrflag"/>
- <col ref="instcd"/>
- <col ref="prcpremfact"/>
- <col ref="prcpno"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGridClick();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button8" class="btn3_letter5" style="left:0px; top:3px; width:92px; height:22px; background-image:../../../com/commonweb/images/btn3_letter5.gif; ">
- <caption>프린터선택</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // window.load("SPLLC90100.xrw","modeless","width:327px; height:128;min:hidden;max:hidden;align:center");
- window.load("SPLLC90100_바코드프린터설정.xrw","modeless","width:327px; height:128;min:hidden;max:hidden;align:center");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1127px; top:3px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetClear();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter4.gif" style="left:1044px; top:3px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
- <caption>저 장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetTnsAcpt();
- ]]>
- </script>
- </button>
- <line id="line7" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|