123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- <?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>CBC 리스트</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cbcpatlist>
- <patlist>
- <roomcd/>
- <pathngnm/>
- <pid/>
- <sexage/>
- <day/>
- <wbc/>
- <anc/>
- <hb/>
- <pl/>
- <cd34/>
- <diag/>
- <tret/>
- <remfact/>
- <chemofrom/>
- <chemoto/>
- <trnptdd/>
- <trnptkind/>
- <trnptkindcd/>
- <patbtype/>
- </patlist>
- </cbcpatlist>
- <count/>
- </main>
- <send>
- <req>
- <testdd/>
- <deptcd/>
- <atdoctid/>
- <depthngnm/>
- <deptflag/>
- <atdoctnm/>
- </req>
- <lrggrupcd>DI</lrggrupcd>
- <hsctlrgcd/>
- </send>
- <deptlist>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- </deptlist>
- <init>
- <ward>
- <wardnm/>
- <wardcd/>
- </ward>
- <cmbinfo>
- <bmtatdoctist>
- <A0536>
- <cdnm/>
- <cdid/>
- </A0536>
- </bmtatdoctist>
- </cmbinfo>
- <dept>
- <deptnm/>
- <deptcd/>
- </dept>
- </init>
- <temp>
- <tempcodeinfo/>
- <dept>
- <A0478>
- <cdnm/>
- <cdid/>
- </A0478>
- </dept>
- <bmtatdoctlist>
- <A0536>
- <cdnm/>
- <cdid/>
- </A0536>
- </bmtatdoctlist>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var sChkFlag = "N";
-
- ipt_testdd.value =getCurrentDate();
- //BMT 코드성 데이터 조회
- aboGetCodeList(new Array("A0536", "A0478")
- , new Array( "/root/init/cmbinfo/bmtatdoctlist", "/root/temp/dept"));
- /*
- aboGetCodeList(new Array("A0536")
- , new Array( "/root/temp/bmtatdoctlist"));
- aboGetCodeList(new Array("A0478")
- , new Array( "/root/temp/dept"));
- */
-
-
- // A0478
- model.setValue("/root/send/req/deptflag", "W");
- submit("TRADT10203");
- model.makeValue("/root/init/ward/wardcd", "");
- model.makeValue("/root/init/ward/wardnm", "전체");
- var nodelist = instance1.selectNodes("/root/deptlist/ward");
- for(var i = 2; i <= nodelist.length+1; i++){
- model.makeValue("/root/init/ward[" + i + "]/wardcd", model.getValue("/root/deptlist/ward[" + (i-1) + "]/wardcd"));
- model.makeValue("/root/init/ward[" + i + "]/wardnm", model.getValue("/root/deptlist/ward[" + (i-1) + "]/wardnm"));
- }
-
- model.makeValue("/root/init/dept/deptcd", "");
- model.makeValue("/root/init/dept/deptnm", "전체");
- var nodelist = instance1.selectNodes("/root/temp/dept/A0478");
- for(var i = 2; i <= nodelist.length; i++){
- model.makeValue("/root/init/dept[" + i + "]/deptcd", model.getValue("/root/temp/dept/A0478[" + i + "]/cdid"));
- model.makeValue("/root/init/dept[" + i + "]/deptnm", model.getValue("/root/temp/dept/A0478[" + i + "]/cdnm"));
- }
-
- model.makeValue("/root/init/cmbinfo/bmtatdoctlist/A0536/cdid", "");
- model.makeValue("/root/init/cmbinfo/bmtatdoctlist/A0536/cdnm", "전체");
- var nodelist = instance1.selectNodes("/root/temp/bmtatdoctlist/A0536");
- for(var i = 2; i <= nodelist.length; i++){
- model.makeValue("/root/init/cmbinfo/bmtatdoctlist/A0536[" + i + "]/cdid", model.getValue("/root/temp/bmtatdoctlist/A0536[" + i + "]/cdid"));
- model.makeValue("/root/init/cmbinfo/bmtatdoctlist/A0536[" + i + "]/cdnm", model.getValue("/root/temp/bmtatdoctlist/A0536[" + i + "]/cdnm"));
- }
-
- //유저세션정보의 소속부서가 진료과와 일치하면 진료과의 default값을 유저소속부서로 설정한다.
- for (var iRowNo=1; iRowNo <= getNodesetCount("/root/init/dept"); iRowNo++) {
- if(model.getValue("/root/init/dept["+ iRowNo +"]/deptcd") == getUserInfo("posdeptcd")) {
- model.setValue("/root/send/req/deptcd", getUserInfo("posdeptcd"));
- sChkFlag = "Y";
- break;
- }
- }
-
- //유저세션정보의 소속부서가 진료과와 일치하면 진료과의 default값을 유저소속부서로 설정한다.
- //if(sChkFlag = "N") {
- for (var iRowNo=1; iRowNo <= getNodesetCount("/root/init/ward"); iRowNo++) {
- if(model.getValue("/root/init/ward["+ iRowNo +"]/wardcd") == getUserInfo("dutplcecd")) {
- model.setValue("/root/send/req/depthngnm", getUserInfo("dutplcecd"));
- }
- }
- //}
-
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRABO02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cbcpatlist"/>
- <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/deptlist"/>
- <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/tempcodeinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:85px; height:13px; ">환자명단</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">검사일자 :</caption>
- <line id="line13" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/cbcpatlist/patlist");
- if(submit("TRABO02301")) {
- grd_patlist.autoResize = true;
- }
-
- var nodelist = instance1.selectNodes("/root/main/cbcpatlist/patlist");
- model.setValue("/root/main/count", nodelist.length);
- var day= "";
- var day_c= "";
- var day_p= "";
- var day_d= "";
- var c = "";
- var p = "";
- var d = "";
- var date = new Date();
- var today = new Date(date.getYear(), date.getMonth(), date.getDate());
- for(var i = 1; i <= nodelist.length; i++){
- day="";
- day_c= "";
- day_p= "";
- day_d= "";
- c = "";
- p = "";
- d = "";
- day_c= model.getValue("/root/main/cbcpatlist/patlist[" + i + "]/chemofrom");
- day_p= model.getValue("/root/main/cbcpatlist/patlist[" + i + "]/chemoto");
- day_d= model.getValue("/root/main/cbcpatlist/patlist[" + i + "]/trnptdd");
- if( day_c != "00000000" && day_c != ""){
- c = new Date(day_c.substring(0,4), day_c.substring(4,6)-1, day_c.substring(6,8));
- day = "C" + Math.floor((today.valueOf() - c.valueOf())/(24*60*60*1000));
- }
- if( day_p != "00000000" && day_p != ""){
- p = new Date(day_p.substring(0,4), day_p.substring(4,6)-1, day_p.substring(6,8));
- if(day != ""){
- day = day + "/";
- }
- day = day + "P" + Math.floor((today.valueOf() - p.valueOf())/(24*60*60*1000));
- }
- if( day_d != "00000000" && day_d != ""){
- d = new Date(day_d.substring(0,4), day_d.substring(4,6)-1, day_d.substring(6,8));
- if(day != ""){
- day = day + "/";
- }
- day = day + "D" +Math.floor((today.valueOf() - d.valueOf())/(24*60*60*1000));
- }
- model.setValue("/root/main/cbcpatlist/patlist[" + i + "]/day", day);
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:295px; top:9px; width:73px; height:17px; ">진료과 :</caption>
- <caption id="caption4" class="search_name" style="left:875px; top:10px; width:60px; height:17px; ">병동 :</caption>
- <input id="ipt_testdd" ref="/root/send/req/testdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:100px; height:19px; "/>
- <select1 id="cmb_deptcd" ref="/root/send/req/deptcd" class="combo_search" appearance="minimal" editmode="input" style="left:370px; top:8px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_depthngnm" ref="/root/send/req/depthngnm" class="combo_search" appearance="minimal" style="left:938px; top:9px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ward">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:600px; top:9px; width:73px; height:17px; ">주치의 :</caption>
- <select1 id="cmb_bmtdr" ref="/root/send/req/atdoctid" class="combo_default" appearance="minimal" style="left:675px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/bmtatdoctlist/A0536">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/req/atdoctnm", cmb_bmtdr.label);
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_excsave" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1130px; top:50px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "CBC리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_patlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <caption id="caption18" class="cell_1" style="left:105px; top:48px; width:40px; height:20px; text-align:center; vertical-align:middle; ">건수</caption>
- <input id="opt_count" ref="/root/main/count" class="output_fix" style="left:148px; top:49px; width:57px; height:19px; text-align:right; "/>
- <datagrid id="grd_patlist" nodeset="/root/main/cbcpatlist/patlist" visibility="visible" caption="Room^환자명^등록번호^성별/나이^Day^WBC^ANC^Hb^PL(k)^CD34^Diagnosis^Treatment^Remark^chemofrom^chemoto^trnptdd^trnptkind^trnptkindcd^patbtype^^7)^8)" colsep="^" colwidth="50, 50, 60, 60, 110, 40, 40, 40, 40, 40, 250, 250, 185, 100, 100, 100, 100, 100, 100" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1194px; height:645px; text-align:center; ">
- <col disabled="true" ref="roomcd" type="output"/>
- <col ref="pathngnm" type="output"/>
- <col ref="pid"/>
- <col ref="sexage"/>
- <col ref="day" type="output"/>
- <col ref="wbc" type="output"/>
- <col ref="anc"/>
- <col ref="hb"/>
- <col ref="pl"/>
- <col ref="cd34"/>
- <col ref="diag" style="text-align:left; "/>
- <col disabled="true" ref="tret" type="output" style="text-align:left; "/>
- <col disabled="true" ref="remfact" type="output" style="text-align:left; "/>
- <col ref="chemofrom" visibility="hidden"/>
- <col ref="chemoto" visibility="hidden"/>
- <col ref="trnptdd" visibility="hidden"/>
- <col ref="trnptkind" visibility="hidden"/>
- <col ref="trnptkindcd" visibility="hidden"/>
- <col ref="patbtype" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_patlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( grd_patlist.row == 0 ) return;
-
- var diag = model.getValue("/root/main/cbcpatlist/patlist["+ grd_patlist.row +"]/diag");
- var tret = model.getValue("/root/main/cbcpatlist/patlist["+ grd_patlist.row +"]/tret");
- var remfact = model.getValue("/root/main/cbcpatlist/patlist["+ grd_patlist.row +"]/remfact");
- var chemofrom = model.getValue("/root/main/cbcpatlist/patlist["+ grd_patlist.row +"]/chemofrom");
- var chemoto = model.getValue("/root/main/cbcpatlist/patlist["+ grd_patlist.row +"]/chemoto");
- var trnptdd = model.getValue("/root/main/cbcpatlist/patlist["+ grd_patlist.row +"]/trnptdd");
- var trnptkind = model.getValue("/root/main/cbcpatlist/patlist["+ grd_patlist.row +"]/trnptkind");
- var trnptkindcd = model.getValue("/root/main/cbcpatlist/patlist["+ grd_patlist.row +"]/trnptkindcd");
- var pid = model.getValue("/root/main/cbcpatlist/patlist["+ grd_patlist.row +"]/pid");
- var sflag = diag + "▦" + tret + "▦" + remfact + "▦" + chemofrom + "▦" + chemoto + "▦" + trnptdd + "▦" + trnptkind + "▦" + trnptkindcd+ "▦" + pid ;
- setParameter("opener_parameter_id", sflag);
- modal("SPABO62400", 1, "", 100, "", "", "", "left:0; right:; width:0; height:0; min:hidden, max:hidden;");
-
- model.removeNodeset("/root/main/cbcpatlist/patlist");
- submit("TRABO02301");
- var nodelist = instance1.selectNodes("/root/main/cbcpatlist/patlist");
- model.setValue("/root/main/count", nodelist.length);
- var day= "";
- var day_c= "";
- var day_p= "";
- var day_d= "";
- var c = "";
- var p = "";
- var d = "";
- var date = new Date();
- var today = new Date(date.getYear(), date.getMonth(), date.getDate());
- for(var i = 1; i <= nodelist.length; i++){
- day="";
- day_c= "";
- day_p= "";
- day_d= "";
- c = "";
- p = "";
- d = "";
- day_c= model.getValue("/root/main/cbcpatlist/patlist[" + i + "]/chemofrom");
- day_p= model.getValue("/root/main/cbcpatlist/patlist[" + i + "]/chemoto");
- day_d= model.getValue("/root/main/cbcpatlist/patlist[" + i + "]/trnptdd");
- if( day_c != "00000000" && day_c != ""){
- c = new Date(day_c.substring(0,4), day_c.substring(4,6)-1, day_c.substring(6,8));
- day = "C" + Math.floor((today.valueOf() - c.valueOf())/(24*60*60*1000));
- }
- if( day_p != "00000000" && day_p != ""){
- p = new Date(day_p.substring(0,4), day_p.substring(4,6)-1, day_p.substring(6,8));
- if(day != ""){
- day = day + "/";
- }
- day = day + "P" + Math.floor((today.valueOf() - p.valueOf())/(24*60*60*1000));
- }
- if( day_d != "00000000" && day_d != ""){
- d = new Date(day_d.substring(0,4), day_d.substring(4,6)-1, day_d.substring(6,8));
- if(day != ""){
- day = day + "/";
- }
- day = day + "D" +Math.floor((today.valueOf() - d.valueOf())/(24*60*60*1000));
- }
- model.setValue("/root/main/cbcpatlist/patlist[" + i + "]/day", day);
- }
- model.refresh();
-
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter5" visibility="visible" style="left:202px; top:5px; width:128px; height:22px; ">
- <caption>병동용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPABO02302", "XMLSTR", "/root/main/cbcpatlist/patlist");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn6_letter5" visibility="visible" style="left:0px; top:5px; width:92px; height:22px; ">
- <caption>진료용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPABO02301", "XMLSTR", "/root/main/cbcpatlist/patlist");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn6_letter6" visibility="visible" style="left:95px; top:5px; width:104px; height:22px; ">
- <caption>진료용(CD34)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPABO02303", "XMLSTR", "/root/main/cbcpatlist/patlist");
- ]]>
- </script>
- </button>
- </group>
- <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:200px; height:14px; ">CBC 리스트</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|