123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLMF00500_미생물검체그룹.xrw
- * 설 명 : 미생물검체그룹
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.4.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/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <listinfo>
- <spcgruplist>
- <spcgrupfromdd/>
- <spcgruptodd/>
- <spcgrupcd/>
- <spcgrupnm/>
- <spcgrupabbrnm/>
- <spcgrupscrnnm/>
- <spcgrupprntnm/>
- </spcgruplist>
- <spclist>
- <chk/>
- <spccd/>
- <spcscrnnm/>
- </spclist>
- </listinfo>
- <spcinfo>
- <spclist>
- <spccd/>
- <spcscrnnm/>
- </spclist>
- </spcinfo>
- </main>
- <send>
- <data1/>
- <data2/>
- <spcgrupcd/>
- <spccd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <refgbn>1</refgbn>
- <searchgbn>1</searchgbn>
- <searchnm/>
- <btnflag/>
- </ref>
- <default/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- grd_spcgruplist.removeItem();
- grd_spcgrupspclist.removeItem();
- grd_spclist.removeItem();
- ]]>
- </script>
- <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="TRLMF00501" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/listinfo"/>
- <submission id="TXLMF00501" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TRLMF00502" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/spcinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 미생물검체그룹
- * @ver : 2007.04.11(CMCDEV-0001)
- * @by : 조철형
- *@-----------------------------------
- * @type : function
- * @access : public
- * @desc : 행추가 버튼 클릭
- */
- function fInsRowAdd(pGridId) {
- pGridId.addRow();
- var row = pGridId.rows-1;
- pGridId.topRow = row;
-
- model.setvalue("/root/main/listinfo/spcgruplist["+ row +"]/spcgrupfromdd" , getCurrentDate());
- model.setvalue("/root/main/listinfo/spcgruplist["+ row +"]/spcgruptodd" , "99991231");
- }
-
-
- /* @group : 미생물검체그룹
- * @ver : 2007.04.11(CMCDEV-0001)
- * @by : 조철형
- *@-----------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화버튼클릭
- */
- function fSetInit() {
- model.removeNodeset("/root/main/listinfo/spcgruplist");
- model.removeNodeset("/root/main/listinfo/spclist");
- model.removeNodeset("/root/main/spcinfo/spclist");
- model.refresh();
- }
-
-
- /* @group : 미생물검체그룹
- * @ver : 2007.04.11(CMCDEV-0001)
- * @by : 조철형
- *@-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회버튼 클릭시검체그룹, 검체정보 조회
- */
- function fGetSpcGrup(gbn){
-
- model.removeNodeset("/root/main/spcinfo/spclist");
- //model.refresh();
- model.setvalue("/root/hidden/ref/btnflag",gbn);
- model.copyNode("/root/send/data1","/root/hidden/ref");
- submit("TRLMF00501");
-
- model.copyNode("/root/send/data1","/root/hidden/default");
-
- fGridColorChange();
-
-
- }
-
- /* @group : 미생물검체그룹
- * @ver : 2007.04.11(CMCDEV-0001)
- * @by : 조철형
- *@-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회후에 그리드 변경
- */
- function fGridColorChange(){
- grd_spcgruplist.rebuildstyle();
- var gbn = model.getValue("/root/hidden/ref/refgbn");
- if(gbn=="2"){
- setRowStyle("grd_spcgruplist", "0", getCurrentDate(), "spcgruptodd", "small");
- }
- }
-
- /* @group : 미생물검체그룹
- * @ver : 2007.04.11(CMCDEV-0001)
- * @by : 조철형
- *@-----------------------------------
- * @type : function
- * @access : public
- * @desc : 저장버튼 클릭
- */
- function fExeSave(){
-
- grd_spcgrupspclist.rebuild();
-
- for(i=1;i<grd_spcgrupspclist.rows;i++){
- grd_spcgrupspclist.addStatus( i, "insert");
- }
-
- var row = grd_spcgruplist.row;
- model.setvalue("/root/send/spccd" , grd_spcgrupspclist.getUpdateData());
- model.copyNode("/root/send/data2" , "/root/main/listinfo/spcgruplist["+row+"]");
-
- submit("TXLMF00501");
- model.copyNode("/root/send/spccd","/root/hidden/default");
- model.copyNode("/root/send/data2","/root/hidden/default");
- grd_spcgrupspclist.clearStatus();
- }
-
- /* @group : 미생물검체그룹
- * @ver : 2007.04.11(CMCDEV-0001)
- * @by : 조철형
- *@-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검체그룹 그리드 클릭
- */
- function fOnclick_grd_spcgruplist(){
-
- var row = grd_spcgruplist.row;
- var status = grd_spcgruplist.rowstatus(row);
-
- if(status == "1" || status == "3") return;
-
- if(grd_spcgruplist.isCell(event.target) && grd_spcgruplist.row >= grd_spcgruplist.fixedRows ){
- if(row > 0){
- model.setvalue("/root/send/spcgrupcd",model.getvalue("/root/main/listinfo/spcgruplist["+row+"]/spcgrupcd"));
- submit("TRLMF00502");
-
- model.copyNode("/root/send/spcgrupcd","/root/hidden/default");
- }
- }
-
-
- }
-
- /* @group : 미생물검체그룹
- * @ver : 2007.04.11(CMCDEV-0001)
- * @by : 조철형
- *@-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검체설정 << 버튼 클릭
- */
- function fOnclick_btn(){
-
- var spcgrupcd = model.getvalue("/root/main/listinfo/spcgruplist["+grd_spcgruplist.row+"]/spcgrupcd");
- for(i=1;i<grd_spclist.rows;i++){
- if(model.getvalue("/root/main/listinfo/spclist["+i+"]/chk") == "true"){
- var spccd = model.getvalue("/root/main/listinfo/spclist["+i+"]/spccd");
- var spcscrnnm = model.getvalue("/root/main/listinfo/spclist["+i+"]/spcscrnnm");
- var findrow = grd_spcgrupspclist.findRow(spccd , 1,1,false, true);
-
- if(findrow < 0){
- grd_spcgrupspclist.addRow();
-
- var iRow = grd_spcgrupspclist.rows-1;
-
- model.setvalue("/root/main/spcinfo/spclist["+iRow+"]/spccd" ,spccd );
- model.setvalue("/root/main/spcinfo/spclist["+iRow+"]/spcscrnnm" ,spcscrnnm );
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,574;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:574px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:173px; height:14px; ">검체그룹 정보</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="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <line id="line2" class="line_4" style="x1:273px; y1:7px; x2:273px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- <caption id="caption4" class="search_name" style="left:737px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
- <select1 id="cmb_RefFlag" ref="/root/hidden/ref/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_Ref" class="btn1_letter2" style="left:288px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSpcGrup("1");
- ]]>
- </script>
- </button>
- <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[
- fGetSpcGrup("2");
- ]]>
- </script>
- </button>
- <select1 id="cmb_search" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:830px; top:8px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>코드</label>
- <value>1</value>
- </item>
- <item>
- <label>코드명</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_searchtext" ref="/root/hidden/ref/searchnm" class="input_search" style="left:983px; top:8px; width:110px; height:19px; "/>
- </group>
- <caption id="caption3" class="tit_2" style="left:580px; top:55px; width:183px; height:14px; ">검체그룹에 포함할 검체설정</caption>
- <line id="line4" class="line_1" style="x1:580px; y1:70px; x2:849px; y2:70px; "/>
- <line id="line5" class="line_1" style="x1:890px; y1:70px; x2:1195px; y2:70px; "/>
- <caption id="caption5" class="tit_2" style="left:895px; top:55px; width:173px; height:13px; ">검체정보</caption>
- <datagrid id="grd_spclist" nodeset="/root/main/listinfo/spclist" caption="선택^코드^검체명" colwidth="35, 67, 160" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:890px; top:75px; width:305px; height:669px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="spccd" type="output"/>
- <col ref="spcscrnnm" type="output"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_spclist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_spcgruplist" nodeset="/root/main/listinfo/spcgruplist" caption="사용시작일자^사용종료일자^코드^그룹명^그룹약어명^그룹화면명^그룹출력명" colwidth="98, 98, 57, 100, 100, 100, 100" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:75px; width:574px; height:669px; ">
- <col ref="spcgrupfromdd" type="inputdate" disabled="false" format="yyyy-mm-dd"/>
- <col ref="spcgruptodd" type="inputdate" disabled="false" format="yyyy-mm-dd"/>
- <col ref="spcgrupcd" type="input" maxlength="2"/>
- <col ref="spcgrupnm" type="input"/>
- <col ref="spcgrupabbrnm" type="input"/>
- <col ref="spcgrupscrnnm" type="input"/>
- <col ref="spcgrupprntnm" type="input"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fOnclick_grd_spcgruplist();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_spcgruplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_spcgrupspclist" nodeset="/root/main/spcinfo/spclist" caption="코드^검체명" colwidth="67, 160" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:580px; top:75px; width:269px; height:669px; ">
- <col ref="spccd" type="output"/>
- <col ref="spcscrnnm" type="output"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_spcgrupspclist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_rowadd" class="btn2_letter3" style="left:521px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowAdd(grd_spcgruplist);
- ]]>
- </script>
- </button>
- <button id="btn_rowdel" class="btn2_letter3" style="left:795px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_spcgrupspclist.deleteItem(grd_spcgrupspclist.row);
- ]]>
- </script>
- </button>
- <button id="btn_spc" class="icon_left" style="left:856px; top:370px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOnclick_btn();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line17" 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[
- fExeSave();
- ]]>
- </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; ">미생물검체그룹</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|