123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLIF00200_장비별검사코드관리.xrw
- * 설 명 : 장비별검사코드관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.05.11
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <main>
- <eqmtdetllist>
- <eqmtcd/>
- <eqmtnm/>
- </eqmtdetllist>
- <eqmttclscdlist>
- <testcdfromdd/>
- <testcdtodd/>
- <dispseq/>
- <tclscd/>
- <testdispnm/>
- <spccd/>
- <ifreqcd/>
- <ifrsltcd/>
- <ifspccd/>
- <qctestcd/>
- <rsltreptkind/>
- <etc1/>
- <etc2/>
- <testcdseqno/>
- </eqmttclscdlist>
- </main>
- <send>
- <refgbn/>
- <eqmtcd/>
- <eqmttclscd/>
- <dept>M</dept>
- </send>
- <init>
- </init>
- <hidden>
- <refgbn>1</refgbn>
- </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/tfHelper.js"/>
- <submission id="TRLIF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/eqmtdetllist"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/LB0000"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 권한 설정
- var auth = model.getValue("/root/properties/auth");
- checkAuth(auth);
- btn_save.disabled = !checkAuth("X") ;
-
- //사용자부서코드 조회 *추가 20080719 -승현-
- model.makeValue("/root/send/codeflag","0000|"); //0000:사용자부서코드
- submit("TRLZZ00101");
-
- // 초기화
- fSetInit();
-
- ]]>
- </script>
- <submission id="TRLQF01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/eqmttclscdlist"/>
- <submission id="TXLQF01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fSetInit() {
- //model.reset();
- model.removeNodeset("/root/main/eqmtdetllist");
- model.removeNodeset("/root/main/eqmttclscdlist");
- model.refresh();
-
- fGetEqmtList(); //20080719 승현 추가
- }
-
- // 장비 상세내역 조회
- function fGetEqmtList(){
-
- model.setValue("/root/send/refgbn" , model.getValue("/root/hidden/refgbn"));
- model.makeValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm")); //20080719 승현 추가
-
- submit("TRLIF00201");
- /*if(submit("TRLIF00201")){ //이것도 그냥 막았음..
- // 장비별 검사코드 상세내역 조회
- grd_eqmtlist.row = 1;
- fGetEqmtTclscdList(1);
- } */
- }
-
- // 장비별 검사코드 상세내역 조회
- function fGetEqmtTclscdList(ref){
-
- model.setValue("/root/send/refgbn", model.getValue("/root/hidden/refgbn"));
- model.setValue("/root/send/eqmtcd", model.getValue("/root/main/eqmtdetllist["+ref+"]/eqmtcd"));
-
- submit("TRLQF01401");
- }
-
- //행추가
- function fSetAddRow(){
-
- var tDay = getCurrentDate();
- grd_eqmttclscd.addRow();
-
- model.setValue("/root/main/eqmttclscdlist["+grd_eqmttclscd.row+"]/testcdfromdd" , tDay);
- model.setValue("/root/main/eqmttclscdlist["+grd_eqmttclscd.row+"]/testcdtodd" , "99991231");
-
- }
-
-
- function fSetdelRow(){
-
- var tRow = grd_eqmttclscd.row;
- grd_eqmttclscd.rowStatus(tRow) = 4;
-
- }
-
- // 장비별 검사코드 저장, 수정
- function fExeEqmtTclscd(){
-
- if(grd_eqmttclscd.rows <2){
- messageBox("장비별 검사코드 상세내역 정보를 ", "C001"); //장비별 검사코드 상세내역 정보를 입력하십시오
- return;
- }
-
- var eqmttclscd = grd_eqmttclscd.getUpdateData();
-
- model.setValue("/root/send/eqmtcd" , model.getValue("/root/main/eqmtdetllist["+grd_eqmtlist.row+"]/eqmtcd"));
- model.setValue("/root/send/eqmttclscd" , eqmttclscd);
-
- if(submit("TXLQF01401")){
- // 초기화
- fSetInit();
- }
- }
-
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- pGridId.saveExcel(fileName);
- }
- }
-
-
- ]]>
- </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:70px; x2:310px; y2:70px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:134px; height:13px; ">장비상세내역</caption>
- <line id="line2" class="line_1" style="x1:315px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption3" class="tit_2" style="left:320px; top:55px; width:220px; 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; "/>
- <line id="line4" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- <select1 id="cmb_refgbn" ref="/root/hidden/refgbn" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>사용가능자료</label>
- <value>1</value>
- </item>
- <item>
- <label>전체자료</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetEqmtList();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_addrow" class="btn2_letter3" style="left:1141px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetAddRow();
- ]]>
- </script>
- </button>
- <datagrid id="grd_eqmtlist" nodeset="/root/main/eqmtdetllist" caption="장비코드^장비명" colsep="^" colwidth="70, 200" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:75px; width:310px; height:647px; ">
- <col ref="eqmtcd"/>
- <col ref="eqmtnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetEqmtTclscdList(grd_eqmtlist.row);
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_eqmtlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_eqmttclscd" nodeset="/root/main/eqmttclscdlist" caption="사용시작일자^사용종료일자^표시
순서^검사코드^검사명^검체
코드^IF 오더코드^IF 결과코드^IF 검체코드^정도관리검사코드^결과보고유형^OTHER1^OTHER2^caption1" colsep="^" colwidth="90, 90, 50, 150, 200, 50, 90, 90, 70, 100, 75, 60, 60, 0" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:315px; top:75px; width:879px; height:647px; ">
- <col ref="testcdfromdd" type="inputdate" visibility="hidden"/>
- <col ref="testcdtodd" type="inputdate" visibility="hidden"/>
- <col ref="dispseq" type="input" visibility="hidden"/>
- <col ref="tclscd" type="input"/>
- <col ref="testdispnm" type="input"/>
- <col ref="spccd" type="input" visibility="hidden"/>
- <col ref="ifreqcd" type="input" visibility="visible"/>
- <col ref="ifrsltcd" type="input" visibility="visible"/>
- <col ref="ifspccd" type="input" visibility="hidden"/>
- <col ref="qctestcd" type="input" visibility="hidden"/>
- <col ref="rsltreptkind" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>결과저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="etc1" type="input" visibility="hidden"/>
- <col ref="etc2" type="input" visibility="hidden"/>
- <col ref="testcdseqno"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_eqmttclscd.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter2" style="left:1042px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(grd_eqmttclscd);
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:1086px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetdelRow();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtTclscd();
- ]]>
- </script>
- </button>
- <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>
- </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 장비별검사관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|