123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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="">
- <send/>
- <init>
- <searchcd/>
- <hospenv>
- <hospenvinfo>
- <instcd/>
- <lendrtnterm/>
- <recvqualmthdcd/>
- <plgydeptcd/>
- <plgyteamcd/>
- <doctjobgradcd/>
- <teamjobgradcd/>
- </hospenvinfo>
- </hospenv>
- </init>
- <hidden/>
- <main>
- <protocol>
- <protocollist>
- <instcd/>
- <seqno/>
- <protcd/>
- <protnm/>
- <delflagcd/>
- </protocollist>
- </protocol>
- </main>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
- <submission id="TRLPC03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/protocol/protocollist"/>
- <submission id="TXLPC01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/protocollist" replace="instance" resultref="/root/message"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 검체코드등록 화면
- * @ver : 2007.01.08 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize() {
- //----------------
- // 노드 초기화 작업
- model.removeNodeset("/root/main/protocol/protocollist"); // 그리드의 노드를 삭제하여 기본 Row를 삭제한다.
- //model.setValue("/root/hidden/userinfo/instcd", getUserInfo("dutplceinstcd")); //instcd
-
- //-------------
- model.refresh();
- }
- function fExeEqmtDel() {
-
- //---------------------------------------------------------------------
- if (getNodesetCount("/root/main/protocol/protocollist") <= 0) return false;
- //-----------------------------------------------------------------------------------------
- if (model.getValue("/root/main/protocol/protocollist["+grd_ptnocdlist.row+"]/seqno") == "") {
- grd_ptnocdlist.deleteRow(grd_ptnocdlist.row);
- } else {
- grd_ptnocdlist.addStatus(grd_ptnocdlist.row,"delete");
- }
- }
- /* @group : 장비 프로토콜등록
- * @ver : 2012.01.01
- * @by : 이재오
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 한줄추가 처리 Function
- */
- function fExeEqmtAdd() {
- grd_ptnocdlist.addrow();
- model.makeValue("/root/main/protocol/protocollist["+grd_ptnocdlist.row+"]/instcd", getUserInfo("dutplceinstcd"));
- grd_ptnocdlist.topRow = grd_ptnocdlist.rows -1;
- model.refresh();
-
- }
-
-
- /* @group : 검체코드등록 화면
- * @ver : 2011.01.02
- * @by : 이재오(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검체코드 조회 팝업창 처리 함수
- */
- function fGetretrieve() {
-
- model.makeValue("/root/send/searchcd", model.getvalue("/root/init/searchcd"));
- submit("TRLPZ00101", false);
- submit("TRLPC03001");
- }
- function fExeEqmtInfo() {
-
- var sEqmtCd = "";
- var sSrcNode = "/root/main/protocol/protocollist";
-
- //-----------------------------------
- if (getNodesetCount(sSrcNode) <= 0) {
- messageBox("프로토콜 내역 ", "C001");
- return false;
- } else {
- for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
- if (model.getValue(sSrcNode+"["+iNo+"]/seqno") == "") {
- messageBox("순번 ", "C002");
- return false;
- }
-
- if (model.getValue(sSrcNode+"["+iNo+"]/protcd") == "") {
- messageBox("프로토콜코드를 ", "C001");
- return false;
- }
-
- if (model.getValue(sSrcNode+"["+iNo+"]/protnm") == "") {
- messageBox("프로토콜명을 ", "C001");
- return false;
- }
-
- //----------------------------------------------------
- //sEqmtCd = model.getValue(sSrcNode+"["+iNo+"]/eqmtcd");
- //model.makeValue(sSrcNode+"["+iNo+"]/eqmtcd", sEqmtCd.toUpperCase());
- }
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/protocollist", grd_ptnocdlist.getUpdateData());
-
- //-----------
- setAlertOn();
- if (submit("TXLPC01901")) ;
- //--fGetEqmtList();
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <select1 id="radio1" ref="/root/init/searchcd" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:675px; top:155px; width:205px; height:65px; border-style:none; ">
- <choices>
- <item>
- <label>프로토콜</label>
- <value>0</value>
- </item>
- <item>
- <label>검사코드</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:570px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption22" class="search_name" visibility="hidden" style="left:16; top:9px; width:75px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회값 :</caption>
- <datagrid id="grd_ptnocdlist" nodeset="/root/main/protocol/protocollist" caption="기관코드^일련번호^프로토콜코드^프로토콜명^삭제구분^삭제구분" colsep="^" colwidth="100, 100, 100, 100, 100" dataheight="23" defaultrows="1" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="5" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:20px; top:65px; width:550px; height:690px; border-color:#c0c0c0; ">
- <col ref="instcd" type="output"/>
- <col ref="seqno" type="input"/>
- <col ref="protcd" type="input"/>
- <col ref="protnm" type="input"/>
- <col ref="delflagcd" type="input"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //fGetRefData("ptnoinfo");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //grd_ptnocdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line14" class="line_4" style="x1:495px; y1:5px; x2:495px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:430px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetretrieve(); // 프로토콜 검색
- ]]>
- </script>
- </button>
- <button id="btn_deleqmt" class="btn2_letter3" navindex="7" style="left:515px; top:40px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtDel();
- ]]>
- </script>
- </button>
- <button id="btn_addeqmt" class="btn2_letter3" navindex="6" style="left:450px; top:40px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtAdd();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" navindex="7" style="left:505px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtInfo();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|