123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <?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 xmlns="">
- <main>
- <projlist>
- <list>
- <proj>
- <check/>
- <execddtm/>
- <pid/>
- <hngnm/>
- <sexage/>
- <prcpcd/>
- <prcpnm/>
- <cdnm/>
- <acting/>
- <execrid/>
- <roomcd/>
- <enddd/>
- <action/>
- <prcpdd/>
- <prcpno/>
- <prcphistno/>
- <execprcpno/>
- <instcd/>
- <execdeptcd/>
- <oiflag/>
- <note/>
- <mset/>
- </proj>
- </list>
- </projlist>
- <list/>
- </main>
- <send>
- <search>
- </search>
- <cond>
- <basecd/>
- <execdd/>
- <exeflag>Y</exeflag>
- <flag/>
- <deptcd/>
- </cond>
- <globalinstance>
- <instance1/>
- </globalinstance>
- </send>
- <init>
- <actingplace>
- <combo>
- <deptnm/>
- <deptcd/>
- </combo>
- </actingplace>
- <flag>
- <item>
- <name>전체</name>
- <id>-</id>
- </item>
- <item>
- <name>마감전</name>
- <id>before</id>
- </item>
- <item>
- <name>마감후</name>
- <id>after</id>
- </item>
- </flag>
- <cmb_info>
- <suppdeptlist>
- <suppdept>
- <suppdeptcd/>
- <depthngnm/>
- </suppdept>
- </suppdeptlist>
- </cmb_info>
- </init>
- <actingend>
- <endlist/>
- <endflagvalue>
- <endflag/>
- </endflagvalue>
- </actingend>
- <hidden>
- <ret>
- <count/>
- </ret>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/send/cond/suppdeptcd");
- fInitialize();
- fGetActingList();
- ]]>
- </script>
- <submission id="TRABC02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond/basecd" resultref="/root/init/actingplace"/>
- <submission id="TRABC02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/projlist/list"/>
- <submission id="TRABC02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/actingend" resultref="/root/hidden/ret"/>
- <submission id="TRABC02004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/projlist/list"/>
- <submission id="TRAEA00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/init/cmb_info/suppdeptlist"/>
- </model>
- <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" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
-
- aezfSetSuppDeptcd(); //화면에서 현재부서정보 가져오기
-
- var today = getCurrentDate();
- model.setValue("/root/send/cond/execdd", today);
-
- //지원부서가져오기
- submit("TRAEA00904", false); //지원부서
-
- // 세션에서 부서 코드를 받아온다.
- var dutplcecd = getUserInfo("dutplcecd") ;
- //alert(" dutplcecd = " + dutplcecd );
-
- grd_projlist.fixedcellcheckbox(6, 1) = true; //그리드 헤더에 체크박스 설정
-
- model.removeNodeset("/root/main/projlist/list/proj");
- // 콤보에 전체선택 추가
- //addComboItem("combo1", "-전체-", "-", "above");
-
- if(dutplcecd == "1000000000"){
- addComboItem("combo1", "-전체-", "-", "above");
- }
-
- var combo1Index = 0;
-
- // AST 로 로그인 안했을 경우, 콤보박스에 해당 부서이름만 나오게 한다. (AST 로그인 시에는 콤보박스에서 부서 선택 가능)
- if(dutplcecd != "1000000000"){
- var nodeList = root.selectNodes("/root/send/cond/deptcd");
- for(var i = 0; i < nodeList.length; i++){
- if(nodeList.item(i).value == dutplcecd){
- combo1Index = i;
- break;
- }
- }
- combo1.select(combo1Index);
- combo1.disabled = true;
- }else{
- button6.visible = false;
- }
-
- combo2.select(1); //마감전
- combo1.value = model.getValue("/root/send/globalinstance/instance1"); //내시경 선택
- model.refresh();
- }
-
- function fGetActingList(){
- model.removeNodeset("/root/main/projlist/list/proj");
- model.refresh();
- submit("TRABC02004");
- grd_projlist.colstyle(3,"data","text-align") = "right";
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,782;" 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="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">공통마감(M-SET)</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:45px; width:1195px; height:730px; ">
- <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:6px; top:8px; width:69px; height:17px; ">일자</caption>
- <caption id="caption3" class="search_name" style="left:241px; top:8px; width:96px; height:17px; ">Acting 부서</caption>
- <input id="ipt_execdd" ref="/root/send/cond/execdd" class="input_default" inputtype="date" style="left:63px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetActingList();
- ]]>
- </script>
- </input>
- <select1 id="radio1" ref="/root/send/cond/exeflag" visibility="1" appearance="full" cols="3" overflow="visible" style="left:550px; top:8px; width:170px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>실행</label>
- <value>Y</value>
- </item>
- <item>
- <label>미실행</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/cond/deptcd") != '-' &&
- model.getValue("/root/send/cond/exeflag") == "Y" &&
- model.getValue("/root/send/cond/flag") =="before"){
- button6.visible = true;
- }else{
- button6.visible = false;
- }
- fGetActingList();
- ]]>
- </script>
- </select1>
- <select1 id="combo2" ref="/root/send/cond/flag" class="combo_search" appearance="minimal" style="left:875px; top:8px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/flag/item">
- <label ref="name"/>
- <value ref="id"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/send/cond/deptcd") != '-' &&
- model.getValue("/root/send/cond/exeflag") == "Y" &&
- model.getValue("/root/send/cond/flag") =="before"){
- button6.visible = true;
- }else{
- button6.visible = false;
- }
- fGetActingList();
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:801px; top:8px; width:76px; height:17px; ">구 분</caption>
- <select1 id="combo1" ref="/root/send/cond/deptcd" appearance="minimal" style="left:340px; top:8px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/suppdeptlist/suppdept">
- <label ref="depthngnm"/>
- <value ref="suppdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/cond/deptcd") != '-' &&
- model.getValue("/root/send/cond/exeflag") == "Y" &&
- model.getValue("/root/send/cond/flag") =="before"){
- button6.visible = true;
- }else{
- button6.visible = false;
- }
- fGetActingList();
- ]]>
- </script>
- </select1>
- <button id="btn_sea" class="btn1_letter2" style="left:1130px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/cond/deptcd") != '-' &&
- model.getValue("/root/send/cond/exeflag") == "Y" &&
- model.getValue("/root/send/cond/flag") =="before"){
- button6.visible = true;
- }else{
- button6.visible = false;
- }
- fGetActingList();
- ]]>
- </script>
- </button>
- <line id="line2" style="x1:1126px; y1:4px; x2:1126px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
- </group>
- <line id="line20" class="line_1" style="x1:0px; y1:81px; x2:1194px; y2:81px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:66px; width:160px; height:13px; ">액팅 리스트</caption>
- <group id="group2" style="left:800px; top:55px; width:395px; height:25px; ">
- <button id="button6" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:340px; top:5px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/actingend/endlist");
- model.makeNode("/root/actingend/endlist");
-
- var endListRow = 1;
-
- for(var i = 1; i < grd_projlist.rows; i++){
- if(grd_projlist.textmatrix(i, 1) == 'true'){
-
- model.makeNode("/root/actingend/endlist["+endListRow+"]/prcpdd");
- model.setValue("/root/actingend/endlist["+endListRow+"]/prcpdd", model.getValue("/root/main/projlist/list/proj["+ i +"]/prcpdd"));
-
- model.makeNode("/root/actingend/endlist["+endListRow+"]/prcpno");
- model.setValue("/root/actingend/endlist["+endListRow+"]/prcpno", model.getValue("/root/main/projlist/list/proj["+ i +"]/prcpno"));
-
- model.makeNode("/root/actingend/endlist["+endListRow+"]/prcphistno");
- model.setValue("/root/actingend/endlist["+endListRow+"]/prcphistno", model.getValue("/root/main/projlist/list/proj["+ i +"]/prcphistno"));
-
- model.makeNode("/root/actingend/endlist["+endListRow+"]/execprcpno");
- model.setValue("/root/actingend/endlist["+endListRow+"]/execprcpno", model.getValue("/root/main/projlist/list/proj["+ i +"]/execprcpno"));
-
- model.makeNode("/root/actingend/endlist["+endListRow+"]/instcd");
- model.setValue("/root/actingend/endlist["+endListRow+"]/instcd", model.getValue("/root/main/projlist/list/proj["+ i +"]/instcd"));
-
- model.makeNode("/root/actingend/endlist["+endListRow+"]/oiflag");
- model.setValue("/root/actingend/endlist["+endListRow+"]/oiflag", model.getValue("/root/main/projlist/list/proj["+ i +"]/oiflag"));
-
- endListRow++;
-
- }
- }
-
- // 체크된 행이 있으면 마감실행
- if(endListRow !== 1){
- model.makeNode("/root/actingend/endflagvalue/endflag");
- model.setValue("/root/actingend/endflagvalue/endflag", "A12");
-
- model.makeNode("/root/actingend/endflagvalue/execdd");
- model.setValue("/root/actingend/endflagvalue/execdd", model.getValue("/root/send/cond/execdd"));
-
- model.makeNode("/root/actingend/endflagvalue/execdeptcd");
- model.setValue("/root/actingend/endflagvalue/execdeptcd", model.getValue("/root/send/cond/deptcd"));
-
- submit("TRABC02003");
- fGetActingList();
- alert("마감되었습니다");
- }
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_projlist" nodeset="/root/main/projlist/list/proj" caption="등록번호^환자명^S/N^^처방코드^처방명^상태^^수행시간^Acting^수행자^병실^마감일시^Action^처방일자^caption2^caption3^caption4^caption5^caption6^caption7^Note^seq" colsep="^" colwidth="61, 59, 35, 28, 0, 395, 63, 25, 111, 55, 99, 71, 120, 73, 100, 58, 100, 100, 100, 100, 34, 100" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" frozencols="4" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:85px; width:1194px; height:640px; ">
- <col ref="pid" type="input"/>
- <col ref="hngnm"/>
- <col ref="sexage"/>
- <col ref="mset"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="cdnm"/>
- <col ref="check" type="checkbox"/>
- <col ref="execddtm" format="yyyy-mm-dd 99:99"/>
- <col ref="acting"/>
- <col ref="execrid"/>
- <col ref="roomcd"/>
- <col ref="enddd" format="yyyy-mm-dd 99:99:99"/>
- <col ref="action" visibility="hidden"/>
- <col ref="prcpdd"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="execprcpno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="execdeptcd" visibility="hidden"/>
- <col ref="oiflag" visibility="hidden"/>
- <col ref="note"/>
- </datagrid>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1190px; height:27px; ">
- <button id="button7" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1120px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1189px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|