123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAVT02100.xrw
- * 설 명 : 조직은행 폐기대장 LIST 조회화면
- * 설 계 자 : 최예원
- * 작 성 자 : 최예원
- * 작 성 일 : 2010.12.15
- * 수정이력 : 2010.12.15 최예원 신규
- * 기 타 :
- -->
- <?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>
- <abnlist>
- <item>
- <graftno/>
- <partseq/>
- <batchno/>
- <deldd/>
- <lastupdtrid/>
- <usernm/>
- <delstepnm/>
- <delsaunm/>
- <pid/>
- <hngnm/>
- <diagengnm/>
- <opengnm/>
- <aborh/>
- <delsaud/>
- <sel/>
- <radialynd/>
- <partcode/>
- <medadmin/>
- <pickdd/>
- <sex/>
- </item>
- </abnlist>
- <cntlst>
- <item/>
- </cntlst>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <check/>
- <srgraftno/>
- </send>
- <init>
- <combobscdlst/>
- </init>
- <hidden/>
- <temp/>
- <rexprnt>
- <abnlist>
- <srchfromdd/>
- <srchtodd/>
- </abnlist>
- </rexprnt>
- <rexreptinfo>
- <abninfo/>
- </rexreptinfo>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fGetScreenInit();
- ]]>
- </script>
- <submission id="TRAVB00001"/>
- <submission id="TRAVB00002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/comboptcdlst"/>
- <submission id="TRAVT02100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/abnlist"/>
- <submission id="TRAVT02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cntlst/item"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 화면 초기화
- function fGetScreenInit(){
-
- model.setValue("/root/send/srchfromdd", getCurrentDate());
- model.setValue("/root/send/srchtodd", getCurrentDate());
-
- model.removeNodeset("/root/main/abnlist/item");
-
- tbGetBscdList( new Array( "R01"),
- new Array("/root/init/combobscdlst") ); // S01 폐기단계
- bool1.value = "false";
-
- model.removeNodeset("/root/init/comboptcdlst/item");
- submit("TRAVB00002");
- model.refresh();
- }
-
- // 폐기대장 조회
- function fGetAbnList(){
- if( submit("TRAVT02100") ) {
- for(var i = 1; i < dtg_abnlist.rows ; i++ ){
- var seq = model.getValue("/root/main/abnlist/item["+ i +"]/partseq");
- var no = model.getValue("/root/main/abnlist/item["+ i +"]/batchno");
-
- if( seq != "" && seq < 10 ) {
- model.setValue("/root/main/abnlist/item["+ i +"]/partseq", "0" + seq );
- }
-
- if( no != "" && no < 10 ){
- model.setValue("/root/main/abnlist/item["+ i +"]/batchno", "00" + no );
- }else if( no != "" && no > 9 && no < 100 ) {
- model.setValue("/root/main/abnlist/item["+ i +"]/batchno", "0" + no );
- }
- }
- }
- 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/dateHelper.js"/>
- <script type="javascript" src="../../../ast/tissuebankbaseweb/js/tissuebankcombolist.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,784;" 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:210px; height:14px; ">조직은행 폐기대장</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:210px; height:13px; ">조직은행 폐기대장</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
- <datagrid id="dtg_abnlist" nodeset="/root/main/abnlist/item" scroll="auto" caption="^GraftNo^Seq^No^폐기일시^폐기자^폐기사유^환자번호^환자명^ABO^수술명^진단명^폐기단계" colsep="^" colwidth="30, 80, 40, 40, 80, 80, 172, 80, 90, 44, 140, 140, 140" dataheight="23" defaultrows="3" ellipsis="true" explorerbar="sortmove" focuscolor="#b9e5fb" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:76px; width:1194px; height:664px; text-align:center; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="graftno"/>
- <col ref="partseq" type="output"/>
- <col ref="batchno" type="output"/>
- <col ref="deldd" format="yyyy-mm-dd"/>
- <col ref="usernm"/>
- <col disabled="true" ref="delsaud" type="combo" style="text-align:left; margin-left:10; ">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/R01">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="aborh" style="text-align:left; "/>
- <col ref="opengnm" style="text-align:left; margin-left:10; "/>
- <col ref="diagengnm" style="text-align:left; margin-left:10; "/>
- <col disabled="true" ref="delstepnm" style="text-align:left; margin-left:10; "/>
- <col disabled="true" ref="partcode" type="combo" visibility="hidden" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/comboptcdlst/item">
- <label ref="partname"/>
- <value ref="partcode"/>
- </itemset>
- </choices>
- </col>
- <col ref="radialynd" visibility="hidden"/>
- <col ref="pickdd" visibility="hidden"/>
- <col ref="medadmin" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- dtg_abnlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <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; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">폐기일자 :</caption>
- <caption id="caption5" class="search_no_b" style="left:207px; top:10px; width:12px; height:17px; ">~</caption>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:104px; top:9px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:222px; top:10px; width:100px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( model.getValue("/root/send/srchfromdd") == ""){
- messageBox("폐기일자", "E013", "입력 후 다시 조회하세요.");
- return;
- }
-
- if( model.getValue("/root/send/srchtodd") == "" ){
- messageBox("폐기일자", "E013", "입력 후 다시 조회하세요.");
- return;
- }
-
- fGetAbnList();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_excsave" class="btn2_letter4" style="left:1129px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
- if (filename != "")
- {
- dtg_abnlist.saveExcel(filename);
- }
- ]]>
- </script>
- </button>
- <bool id="bool1" ref="/root/send/check" style="left:28px; top:81px; width:15px; height:15px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( bool1.value == "true" ){
- if( dtg_abnlist.rows > 1 ){
- for(var i = 1 ; i < dtg_abnlist.rows; i++ ){
- model.setValue("/root/main/abnlist/item["+ i + "]/sel", "Y" );
- }
- }
- }
-
- if( bool1.value == "false" ){
- if( dtg_abnlist.rows > 1 ){
- for(var i = 1 ; i < dtg_abnlist.rows; i++ ){
- model.setValue("/root/main/abnlist/item["+ i + "]/sel", "N" );
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </bool>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter6" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>폐기장부출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/rexprnt/abnlist/srchfromdd", ipt_fromdd.label );
- model.setValue("/root/rexprnt/abnlist/srchtodd", ipt_todd.label );
-
- for(var i = 1; i < dtg_abnlist.rows ; i++ ){
- model.makeNode("/root/rexprnt/abnlist/item["+ i +"]");
- model.copyNode("/root/rexprnt/abnlist/item["+ i +"]", "/root/main/abnlist/item["+ i +"]");
- }
-
- exeReportPreview("RPAVT00110", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn6_letter10" style="left:105px; top:5px; width:156px; height:22px; ">
- <caption>조직폐기기록지 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = 1; i < dtg_abnlist.rows ; i++ ){
- if( model.getValue("/root/main/abnlist/item[" + i + "]/sel") == "Y" ) {
- var graftno = model.getValue("/root/main/abnlist/item["+ i +"]/graftno") ;
- graftno = graftno + model.getValue("/root/main/abnlist/item["+ i +"]/partseq") ;
- graftno = graftno + model.getValue("/root/main/abnlist/item["+ i +"]/batchno") ;
-
- model.setValue("/root/send/srgraftno", model.getValue("/root/main/abnlist/item["+ i +"]/graftno") );
- if( submit("TRAVT02102") ){
- if( parseInt(model.getValue("/root/main/cntlst/cntinfo/item/graftcnt")) > 0 ){
- model.makeValue("/root/rexreptinfo/abninfo/stated" , "유" );
- }else{
- model.makeValue("/root/rexreptinfo/abninfo/stated" , "무" );
- }
- model.removeNodeset("/root/main/cntlst/cntinfo/item");
- }
-
- model.makeValue("/root/rexreptinfo/abninfo/pid" , model.getValue("/root/main/abnlist/item["+ i +"]/pid"));
- model.makeValue("/root/rexreptinfo/abninfo/hngnm" , model.getValue("/root/main/abnlist/item["+ i +"]/hngnm"));
- model.makeValue("/root/rexreptinfo/abninfo/diaghngnm" , model.getValue("/root/main/abnlist/item["+ i +"]/diagengnm"));
- model.makeValue("/root/rexreptinfo/abninfo/ophngnm" , model.getValue("/root/main/abnlist/item["+ i +"]/opengnm"));
- model.makeValue("/root/rexreptinfo/abninfo/aborh" , model.getValue("/root/main/abnlist/item["+ i +"]/aborh"));
- model.makeValue("/root/rexreptinfo/abninfo/radialynd" , model.getValue("/root/main/abnlist/item["+ i +"]/radialynd"));
- model.makeValue("/root/rexreptinfo/abninfo/partcdnm" , dtg_abnlist.labelMatrix(i, dtg_abnlist.colRef("partcode")));
- model.makeValue("/root/rexreptinfo/abninfo/sex" , model.getValue("/root/main/abnlist/item["+ i +"]/sex"));
- var pgraftno = model.getValue("/root/main/abnlist/item["+ i +"]/graftno") ;
- pgraftno = pgraftno + model.getValue("/root/main/abnlist/item["+ i +"]/partseq");
- pgraftno = pgraftno + model.getValue("/root/main/abnlist/item["+ i +"]/batchno");
- model.makeValue("/root/rexreptinfo/abninfo/graftno" , pgraftno );
- model.makeValue("/root/rexreptinfo/abninfo/delsaud" , dtg_abnlist.labelMatrix(i, dtg_abnlist.colRef("delsaud")) );
- model.makeValue("/root/rexreptinfo/abninfo/deldd" , model.getValue("/root/main/abnlist/item["+ i +"]/deldd"));
- model.makeValue("/root/rexreptinfo/abninfo/pickdd" , model.getValue("/root/main/abnlist/item["+ i +"]/pickdd"));
- model.makeValue("/root/rexreptinfo/abninfo/usernm" , model.getValue("/root/main/abnlist/item["+ i +"]/usernm"));
- model.makeValue("/root/rexreptinfo/abninfo/medadmin" , model.getValue("/root/main/abnlist/item["+ i +"]/medadmin"));
-
- exeReportPreview("RPAVT00106", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- model.removeNodeset("/root/rexreptinfo/abninfo");
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|