123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLQF00300.xrw
- * 설 명 : QC OnCall 마스터 관리
- * 설 계 자 : 서승현
- * 작 성 자 : 서승현
- * 작 성 일 : 2008.11.02
- * 수정이력 :
- * 기 타 :
- -->
- <?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>QC OnCall 마스터 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <itemlist>
- <chk/>
- <seq/>
- <basecd/>
- <basecdnm/>
- </itemlist>
- </main>
- <init>
- </init>
- <hidden>
- </hidden>
- <send>
- <basecdid>00</basecdid>
- <searchtext/>
- <searchflag>1</searchflag>
- <itemlist/>
- </send>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRLQF00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/itemlist"/>
- <submission id="TXLQF00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/itemlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fSetInit(){
- model.removeNodeset("/root/main/testlist");
- grd_itemList.rebuild();
- }
-
- //저장 데이터 확인
- function checkGridUpdate(grid){
-
- var iData = grid.getUpdateDataXml("insert");
- var uData = grid.getUpdateDataXml("update");
- var dData = grid.getUpdateDataXml("delete");
-
- if (iData=="" && uData=="" && dData=="") return false;
- else{
- return true;
- }
- }
-
- //조회버튼
- function fGetItemList(){
- var basecdid = model.getValue("/root/send/basecdid");
- var basecdidnm = cbo_searchFlag.label;
-
- if( basecdid == "00"){
- alert("조회구분을 선택하세요!!");
- }else{
- model.makeValue("/root/send/basecdidnm", basecdidnm);
- submit("TRLQF00801");
- }
- }
-
- //키이벤트
- function fKeyEvent(){
- if(event.keyCode == "13"){
- if(event.target =="ipt_search"){
- model.setValue("/root/send/searchtext", ipt_search.currentText);
- fGetItemList();
- }
- }
- }
- ]]>
- </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:0px; y1:71px; x2:1194px; y2:71px; "/>
- <datagrid id="grd_itemList" nodeset="/root/main/itemlist" class="datagrid2" autoresize="true" caption="^항목코드^항목명^조회순서" colsep="^" colwidth="25, 84, 352, 60" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:75px; width:1189px; height:647px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox" visibility="hidden"/>
- <col disabled="true" ref="basecd" type="input"/>
- <col ref="basecdnm" type="input"/>
- <col ref="seq" type="input"/>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:56px; width:173px; height:14px; ">검사코드상세내역</caption>
- <button id="btn_add" class="btn2_letter3" disabled="false" visibility="visible" style="left:1075px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_itemList.additem();
- grd_itemList.bottomRow = grd_itemList.rows;
- ]]>
- </script>
- </button>
- <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="button1" class="btn1_letter2" style="left:1115px; top:7px; width:56px; height:22px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetItemList();
- ]]>
- </script>
- </button>
- <select1 id="cbo_searchFlag" ref="/root/send/basecdid" class="combo_search" appearance="minimal" style="left:115px; top:9px; width:157px; height:19px; ">
- <choices>
- <item>
- <label>- 선택 -</label>
- <value>00</value>
- </item>
- <item>
- <label>검사방법(Method)</label>
- <value>LQ001</value>
- </item>
- <item>
- <label>온도(Temperature)</label>
- <value>LQ002</value>
- </item>
- <item>
- <label>검사실번호(LabNo)</label>
- <value>LQ003</value>
- </item>
- <item>
- <label>단위(Unit)</label>
- <value>LQ004</value>
- </item>
- <item>
- <label>장비코드(Instrument)</label>
- <value>LQ005</value>
- </item>
- <item>
- <label>검사항목코드(Analyte)</label>
- <value>LQ006</value>
- </item>
- <item>
- <label>시약코드(Reagent)</label>
- <value>LQ007</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.removeNodeset("/root/main/itemlist");
- grd_itemList.rebuild();
-
- fGetItemList();
- ]]>
- </script>
- </select1>
- <input id="ipt_search" ref="/root/send/searchtext" class="input_s_button" inputtype="button" style="left:510px; top:10px; width:140px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <caption id="caption25" class="search_name" style="left:25px; top:9px; width:87px; height:17px; ">조회구분 :</caption>
- <line id="line2" class="line_4" style="x1:1100px; y1:5px; x2:1100px; y2:27px; "/>
- <caption id="caption1" class="search_name" style="left:295px; top:10px; width:90px; height:17px; ">검색구분 :</caption>
- <select1 id="combo1" ref="/root/send/searchflag" class="combo_search" appearance="minimal" style="left:390px; top:10px; width:117px; height:19px; ">
- <choices>
- <item>
- <label>항목코드</label>
- <value>1</value>
- </item>
- <item>
- <label>항목명</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="btn_del" class="btn2_letter3" visibility="visible" style="left:1135px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_itemList.rowStatus(grd_itemList.row) = 4; //멀티업데이트 시 Delete로 설정 //0:new, 1:insert, 2:update, 3:insert&new, 4:delete
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.reload();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_exec" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("", "Q002")==6){
- if(!checkGridUpdate(grd_itemList)){
- alert("저장할 자료가 존재하지 않습니다.");
- return;
- }
- model.setValue("/root/send/itemlist" , grd_itemList.getUpdateData());
- if ( submit("TXLQF00801") ) {
- grd_itemList.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- fGetItemList();
- }
- }
- ]]>
- </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; ">QC OnCall 마스터 관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|