123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAVT00400.xrw
- * 설 명 : 조직은행 보관장소관리
- * 설 계 자 : 손승현
- * 작 성 자 : 손승현
- * 작 성 일 : 2010.08.23
- * 수정이력 : 2010.08.23 손승현 신규
- * 기 타 :
- -->
- <?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>
- <roomlist>
- <item>
- <roomno/>
- <a/>
- <b/>
- <c/>
- <d/>
- <e/>
- <f/>
- <g/>
- <h/>
- </item>
- </roomlist>
- <keprmprt>
- <item/>
- </keprmprt>
- </main>
- <send>
- <srchroom/>
- <srchgraftno/>
- <srchpid/>
- <srchhngnm/>
- <srchpartseq/>
- <srchpartcode/>
- <req>
- <room/>
- <graftno/>
- <pid/>
- <hngnm/>
- <partseq/>
- <partcode/>
- </req>
- <sgraftno/>
- <spartseq/>
- </send>
- <init>
- <comboptcdlst>
- <item>
- <partcode/>
- <partname/>
- </item>
- </comboptcdlst>
- <codedata>
- <popupmenu>
- <item>
- <name>조직 들어내기</name>
- <func>fsetTissueOut</func>
- </item>
- </popupmenu>
- </codedata>
- </init>
- <hidden>
- <item/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetComboInit();
- btn_save.visible = false;
- // Param 설정
- if (checkOpener()) {
- model.setValue("/root/send/srchgraftno", opener.javascript.getParameter("SMAVT00400_GRAFTNO") );
- model.setValue("/root/send/srchpid", opener.javascript.getParameter("SMAVT00400_PID") );
- model.setValue("/root/send/srchhngnm", opener.javascript.getParameter("SMAVT00400_HNGNM") );
- model.setValue("/root/send/srchpartseq", opener.javascript.getParameter("SMAVT00400_PARTSEQ") );
- model.setValue("/root/send/srchpartcode", opener.javascript.getParameter("SMAVT00400_PARTCODE") );
- model.setValue("/root/send/srchroom", opener.javascript.getParameter("SMAVT00400_ROOM") );
- model.refresh();
-
- btn_save.visible = true;
- }
- // 보관내용 List
- fGetRoomList();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /**
- * 콤보 초기화
- */
- function fGetComboInit() {
- // 부위콤보 List
- model.removeNodeset("/root/init/comboptcdlst/item");
- model.refresh();
- submit("TRAVB00002");
- }
- /**
- * 보관장소 리스트 조회
- */
- function fGetRoomList(){
- model.removeNodeset("/root/main/roomlist/item");
- model.refresh();
- var ret = submit("TRAVT00401");
- return ret;
- }
-
- /**
- * 부위별 보관소 저장
- */
- function fSetRoomSave(grd_tmp){
- var vCol = grd_tmp.col;
- var vRow = grd_tmp.row;
- var vRoom1 = grd_roomlist.valueMatrix(0, grd_roomlist.col) + grd_roomlist.valueMatrix(grd_roomlist.row,1);
- var vRoom2 = model.getValue("/root/send/srchroom");
- var vValue1 = model.getValue("/root/send/srchgraftno") + "-" + model.getValue("/root/send/srchpartseq") + "\n" +
- model.getValue("/root/send/srchpid") + "(" + model.getValue("/root/send/srchhngnm") + ")" + "\n" +
- cmb_partcode.label;
- var vValue2 = grd_tmp.valueMatrix(vRow, vCol);
-
- if (vCol == 1) {
- messageBox("보관장소가 잘못", "E005", "보관장소를 정확하게 선택하십시오.");
- return false;
- }
-
- if (vValue2 != "" && vValue1 != vValue2) {
- messageBox("이미 보관장소를 사용중", "I009");
- return
- }
-
- if ( vRoom2 != "" && vRoom1 != vRoom2 ) {
- if ( messageBox("기존에 저장되어 있는 보관장소가 있습니다. ","Q003") != 6 ) {
- return false;
- }
- }
-
- var ret = false;
- if ( messageBox("보관장소정보를","Q002")==6 ) {
- model.setValue("/root/send/srchroom", vRoom1);
- model.refresh();
- ret = submit("TXAVT00401");
- }
-
- return ret;
- }
-
- //2011.01.20 c y w 저장된 조직 빼기.
- function fsetTissueOut(){
- var text = grd_roomlist.valueMatrix(grd_roomlist.row, grd_roomlist.col);
- model.setValue("/root/send/sgraftno", text.substring(0,10));
- model.setValue("/root/send/spartseq", text.substring(11,12));
-
- if( submit("TRAVT00402") ){
- model.setValue("/root/send/req/room" , "");
- model.setValue("/root/send/req/pid" , model.getValue("/root/main/keprmprt/item/pid"));
- model.setValue("/root/send/req/graftno" , model.getValue("/root/main/keprmprt/item/graftno"));
- model.setValue("/root/send/req/hngnm" , model.getValue("/root/main/keprmprt/item/hngnm"));
- model.setValue("/root/send/req/partseq" , model.getValue("/root/main/keprmprt/item/partseq"));
- model.setValue("/root/send/req/partcode" , model.getValue("/root/main/keprmprt/item/partcode"));
-
- if ( messageBox("보관장소정보를","Q002")==6 ) {
- model.setValue("/root/send/srchroom", "");
- model.refresh();
- if( submit("TXAVT00402") ){
- fGetRoomList();
- model.removeNodeset("/root/main/keprmprt/item");
- }
- }
- }
- return;
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/tissuebankbaseweb/js/tissuebankcombolist.js"/>
- <submission id="TRAVB00001"/>
- <submission id="TRAVB00002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/comboptcdlst"/>
- <submission id="TRAVT00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ptcdlst"/>
- <submission id="TXAVT00401" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" replace="instance" resultref="root/hidden"/>
- <submission id="TXAVT00402" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send/req" replace="instance" resultref="root/hidden"/>
- <submission id="TRAVT00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/keprmprt"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" ref="tissuemcd" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <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; "/>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRoomList();
- ]]>
- </script>
- </button>
- <caption id="lbl_graftno" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">Graft No :</caption>
- <input id="ipt_graftno" ref="/root/send/srchgraftno" class="input_search" disabled="true" style="left:103px; top:8px; width:80px; height:19px; "/>
- <caption id="lbl_pid" class="search_name" style="left:205px; top:9px; width:90px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/send/srchpid" class="input_search" disabled="true" style="left:290px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_hngnm" ref="/root/send/srchhngnm" class="input_search" disabled="true" style="left:395px; top:8px; width:100px; height:19px; "/>
- <caption id="lbl_part" class="search_name" style="left:520px; top:9px; width:90px; height:17px; ">부 위 :</caption>
- <input id="ipt_partseq" ref="/root/send/srchpartseq" class="input_search" disabled="true" style="left:605px; top:8px; width:45px; height:19px; "/>
- <select1 id="cmb_partcode" ref="/root/send/srchpartcode" class="combo_search" disabled="true" appearance="minimal" style="left:655px; top:8px; width:295px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comboptcdlst/item">
- <label ref="partname"/>
- <value ref="partcode"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_room" ref="/root/send/srchroom" class="input_search" disabled="true" style="left:955px; top:8px; width:45px; height:19px; "/>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:62px; width:120px; height:13px; ">보관장소 관리</caption>
- <line id="line1" class="line_1" style="x1:3px; y1:80px; x2:1194px; y2:81px; "/>
- <datagrid id="grd_roomlist" nodeset="/root/main/roomlist/item" autoresize="true" caption="No.^A^B^C^D^E^F^G^H" colsep="^" colwidth="40, 138, 138, 138, 138, 138, 138, 138, 138" focuscolor="#00ff00" mergecellsfixedrows="never" rowheader="update" rowsep="|" selectionmode="free" style="left:0px; top:90px; width:1191px; height:650px; ">
- <col ref="roomno" type="output" style="text-align:center; "/>
- <col ref="a" style="text-align:left; "/>
- <col ref="b" style="text-align:left; "/>
- <col ref="c" style="text-align:left; "/>
- <col ref="d" style="text-align:left; "/>
- <col ref="e" style="text-align:left; "/>
- <col ref="f" style="text-align:left; "/>
- <col ref="g" style="text-align:left; "/>
- <col ref="h" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (model.getValue("/root/send/srchgraftno") != "") {
- if ( fSetRoomSave(grd_roomlist) == true ) {
- opener.model.setValue("/root/main/partinfo/item/keeproom", model.getValue("/root/send/srchroom") );
- opener.model.refresh();
- window.close();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (model.getValue("/root/send/srchgraftno") == "") {
- setPopupMenu("grd_roomlist", false, "/root/init/codedata/popupmenu/item", "name", "func");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excsave" class="btn2_letter4" style="left:1125px; top:57px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2010.12.14 c y w 엑셀 저장 기능 추가
- var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
- if (filename != "") {
- grd_roomlist.saveExcel(filename);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/srchgraftno") != "") {
- if ( fSetRoomSave(grd_roomlist) == true ) {
- opener.model.setValue("/root/main/partinfo/item/keeproom", model.getValue("/root/send/srchroom") );
- opener.model.refresh();
- window.close();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" style="left:4px; top:4px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( grd_roomlist.rows > 1 ){
- exeReportPreview("RPAVT00400", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- }
- ]]>
- </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:13px; ">조직은행 보관장소관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|