123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 조직은행보관조회.xrw
- * 설 명 : 조직은행보관조회
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2010.03.11
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <main>
- <banklist>
- <tankno/>
- <rackno/>
- <boxno/>
- <xseq/>
- <yseq/>
- <collectdt/>
- <rgstno/>
- <ptno/>
- <pid/>
- <patnm/>
- <age/>
- <sex/>
- <spcnm/>
- <diagnosis/>
- <cmt/>
- <rgstdd/>
- <rgsttm/>
- </banklist>
- <tank>
- <tankno/>
- </tank>
- <rack>
- <rackno/>
- </rack>
- <box>
- <boxno/>
- </box>
- </main>
- <send>
- <data/>
- <data1/>
- <diag/>
- <codeflag/>
- <data2/>
- </send>
- <init>
- </init>
- <hidden>
- <refparam>
- <text/>
- <refgbn>1</refgbn>
- <fromdd/>
- <todd/>
- <ddgbn>1</ddgbn>
- <tanktype2/>
- </refparam>
- <ref>
- <tankno/>
- <rackno/>
- <boxno/>
- <tanktype>V</tanktype>
- </ref>
- <popupmenu>
- <grid>
- <item/>
- </grid>
- </popupmenu>
- </hidden>
- </root>
- </instance>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRLPT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/banklist"/>
- <submission id="TRLPT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/banklist"/>
- <submission id="TRLPT10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tank"/>
- <submission id="TRLPT10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rack"/>
- <submission id="TRLPT10103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/box"/>
- <submission id="TXLPT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXLPT10401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXLPT10201" 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/LB0106"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fSetInit(){
-
- var Today = getCurrentDate();
- var BfDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-3)
- model.setvalue("/root/hidden/refparam/fromdd",BfDay.getDateFormat("YYYYMMDD"));
- model.setvalue("/root/hidden/refparam/todd",Today);
- model.removeNodeset("/root/main/banklist");
- model.removeNodeset("/root/main/tank");
- model.removeNodeset("/root/main/rack");
- model.removeNodeset("/root/main/box");
- fViewTankGrid();
- model.copyNode("/root/send/data1","/root/hidden/ref");
- submit("TRLPT10101");
-
- model.setValue("/root/send/codeflag", "0416|");
- submit("TRLZZ00101");
-
- if(model.getValue("/root/init/LB0416/cd") == "N"){
- group3.disabled = true;
- button1.disabled = true;
-
- }
-
-
- model.refresh();
- }
-
- function fViewTankGrid(){
- if(model.getValue("/root/hidden/ref/tanktype") == "V"){
- grd_banklist.colHidden(grd_banklist.colRef("dispseq")) = true;
- grd_banklist.colHidden(grd_banklist.colRef("xseq")) = false;
- grd_banklist.colHidden(grd_banklist.colRef("yseq")) = false;
- }
- if(model.getValue("/root/hidden/ref/tanktype") == "M"){
- grd_banklist.colHidden(grd_banklist.colRef("dispseq")) = false;
- grd_banklist.colHidden(grd_banklist.colRef("xseq")) = true;
- grd_banklist.colHidden(grd_banklist.colRef("yseq")) = true;
- }
- grd_banklist.refresh();
- }
-
-
- function fGetBankingList(){
-
- model.removeNodeset("/root/main/banklist");
- model.setValue("/root/hidden/refparam/tanktype2", model.getValue("/root/hidden/ref/tanktype"));
- model.copyNode("/root/send/data" , "/root/hidden/refparam");
-
- submit("TRLPT10301");
-
- }
-
- function fclicktank(){
-
- model.removeNodeset("/root/main/box");
- model.removeNodeset("/root/main/holl");
- var tank_Row = grd_tank.Row;
- model.setValue("/root/hidden/ref/tankno",
- model.getValue("/root/main/tank["+tank_Row+"]/tankno"));
- model.copyNode("/root/send/data1","/root/hidden/ref");
- submit("TRLPT10102");
- }
-
-
- function fclickrack(){
-
- var tank_Row = grd_tank.Row;
- if(tank_Row == -1){
- alert("TANKNO 가 선택되지 않았습니다.");
- return;
- }
-
- var rack_Row = grd_rack.Row;
- model.removeNodeset("/root/main/holl");
- model.setValue("/root/hidden/ref/tankno",
- model.getValue("/root/main/tank["+tank_Row+"]/tankno"));
- model.setValue("/root/hidden/ref/rackno",
- model.getValue("/root/main/rack["+rack_Row+"]/rackno"));
- model.copyNode("/root/send/data1","/root/hidden/ref");
-
- submit("TRLPT10103");
- }
-
- function fclickbox(){
- var tank_Row = grd_tank.Row;
- if(tank_Row == -1){
- alert("TANKNO 가 선택되지 않았습니다.");
- return;
- }
- var rack_Row = grd_rack.Row;
- if(rack_Row == -1){
- alert("RACKNO 가 선택되지 않았습니다.");
- return;
- }
-
- var box_Row = grd_box.Row;
- model.setValue("/root/hidden/ref/tankno",
- model.getValue("/root/main/tank["+tank_Row+"]/tankno"));
- model.setValue("/root/hidden/ref/rackno",
- model.getValue("/root/main/rack["+rack_Row+"]/rackno"));
- model.setValue("/root/hidden/ref/boxno",
- model.getValue("/root/main/box["+box_Row+"]/boxno"));
- model.copyNode("/root/send/data1","/root/hidden/ref");
- initGridStyle("grd_banklist");
- submit("TRLPT10302");
-
- }
-
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- pGridId.saveExcel(fileName);
- }
- }
-
- function fSetdiagnosis(){
-
- model.setValue("/root/send/diag", grd_banklist.getUpdateData());
- submit("TXLPT10301");
- model.setValue("/root/send/diag", "");
- fclickbox();
- }
-
-
- function fSetPopUp(){
-
- model.removeNodeset("/root/hidden/popupmenu");
- if(event.button == 3){
- n = 1;
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "보관취소");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fCancleBank");
-
-
- if(grd_banklist.isCell(event.target) && grd_banklist.mouseRow >= grd_banklist.fixedrows){
- window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func" , true);
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
- function fOnmenu(popupParam){
-
- if(popupParam == "fCancleBank"){
- fCancleBank();
- }else{
- window.setPopupMenu(false);
- }
- }
-
-
-
-
- function fCancleBank(){
-
-
- var selectedCells = grd_banklist.selectedCells;
-
- for (var i=0; i<selectedCells.length; i++){
-
- var cell = selectedCells.item(i);
-
- var x = cell.col;
- var y = cell.row;
-
- if (cell){
- grd_banklist.cellStyle("background-color", y, 1, y, 16) = "#f7a08b";
- grd_banklist.rowStatus(y) = 4;
- }
- }
-
- var retval = window.alert( "저장된 데이터가 삭제됩니다. \n삭제 하시겠습니까?", "결과관리", "35" );
- if (retval != "6"){
- fclickbox();
- return;
- }
-
-
- model.setValue("/root/send/data2", grd_banklist.getUpdateData(4));
- if(model.getValue("/root/hidden/ref/tanktype") == "V"){
- submit("TXLPT10201");
- }else{
- submit("TXLPT10401");
- }
- fclickbox();
- }
-
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:110px; y1:70px; x2:1195px; y2:70px; "/>
- <caption id="caption2" class="tit_2" style="left:110px; top:55px; width:90px; height:13px; ">보관리스트</caption>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetBankingList();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:775px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
- <input id="input1" ref="/root/hidden/refparam/text" style="left:970px; top:8px; width:130px; height:19px; "/>
- <select1 id="combo1" ref="/root/hidden/refparam/refgbn" appearance="minimal" style="left:864px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>등록번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자명</label>
- <value>2</value>
- </item>
- <item>
- <label>Bank No</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <line id="line14" class="line_4" style="x1:1115px; y1:6px; x2:1115px; y2:28px; "/>
- <caption id="caption1" class="search_name" style="left:250px; top:9px; width:94px; height:17px; ">조회구분 :</caption>
- <caption id="caption4" class="search_no_b" style="left:549px; top:10px; width:13px; height:17px; ">~</caption>
- <input id="input2" ref="/root/hidden/refparam/fromdd" class="input_search" inputtype="date" style="left:443px; top:8px; width:100px; height:19px; "/>
- <input id="input3" ref="/root/hidden/refparam/todd" class="input_search" inputtype="date" style="left:567px; top:8px; width:100px; height:19px; "/>
- <select1 id="combo2" ref="/root/hidden/refparam/ddgbn" appearance="minimal" style="left:340px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>채취일시</label>
- <value>1</value>
- </item>
- <item>
- <label>등록일시</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:10px; top:9px; width:65px; height:17px; ">구분 :</caption>
- <select1 id="radio1" ref="/root/hidden/ref/tanktype" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:80px; top:8px; width:150px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Cryovial</label>
- <value>V</value>
- </item>
- <item>
- <label>Cryomold</label>
- <value>M</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </select1>
- </group>
- <datagrid id="grd_banklist" nodeset="/root/main/banklist" autoresize="true" caption="T N.^R N.^B N.^Seq.^x.^y.^채취일시^Banking No^S. NO^등록번호^성명^Age^Sex^검체명^Diagnosis^M code" colwidth="35, 35, 35, 35, 35, 35,120, 75, 75, 70, 90, 30, 30, 85, 385, 375" dataheight="30" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" selectionmode="free" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:110px; top:75px; width:1085px; height:647px; ">
- <col ref="tankno" type="output"/>
- <col ref="rackno" type="output"/>
- <col ref="boxno" type="output"/>
- <col ref="dispseq" type="output"/>
- <col ref="xseq" type="output"/>
- <col ref="yseq" type="output"/>
- <col ref="collectdt" type="output" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="rgstno" type="output" style="text-align:center; "/>
- <col ref="ptno" type="output" style="text-align:center; "/>
- <col ref="pid" type="output" style="text-align:center; "/>
- <col ref="patnm" type="output" style="text-align:center; "/>
- <col ref="age" type="output"/>
- <col ref="sex" type="output"/>
- <col ref="spcnm" type="output"/>
- <col ref="diagnosis" type="input"/>
- <col ref="mcode" type="output"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fSetPopUp();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_box" nodeset="/root/main/box" caption="BNO" colwidth="35" dataheight="25" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:70px; top:75px; width:35px; height:647px; ">
- <col ref="boxno" type="output" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_box.isCell(event.target) && grd_box.row >= grd_box.fixedRows ){
- fclickbox();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rack" nodeset="/root/main/rack" caption="RNO" colwidth="35" dataheight="25" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:35px; top:75px; width:35px; height:647px; ">
- <col ref="rackno" type="output" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_rack.isCell(event.target) && grd_rack.row >= grd_rack.fixedRows ){
- fclickrack();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_tank" nodeset="/root/main/tank" caption="TNO" colwidth="35" dataheight="25" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:35px; height:647px; ">
- <col ref="tankno" type="output" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_tank.isCell(event.target) && grd_tank.row >= grd_tank.fixedRows ){
- fclicktank();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="tit_2" style="left:0px; top:55px; width:75px; height:13px; ">보관그룹</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:105px; y2:70px; "/>
- <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(grd_banklist);
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetdiagnosis();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">조직은행보관조회</caption>
- </group>
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
-
- var popupParam = event.description;
- fOnmenu(popupParam);
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|