123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLLF90600_배지그룹정보.xrw
- * 설 명 : 배지그룹정보
- * 설 계 자 : (주)에이씨케이 박정은
- * 작 성 자 : (주)에이씨케이 박정은
- * 작 성 일 : 2007.08.17
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <mdiagrup>
- <mdiagrupcd/>
- <mdianm/>
- </mdiagrup>
- <mdiadetl>
- <mdianm/>
- </mdiadetl>
- </main>
- <send>
- <mdiagrupcd/>
- <mdianm/>
- <mdiagrupnm/>
- <mdianmlist/>
- </send>
- <init/>
- <hidden>
- <aaa/>
- <mdiainfo>
- <tclscd/>
- <spccd/>
- <mdiagrupcd/>
- </mdiainfo>
- <mdianm/>
- <mdiasend>
- <grupcd/>
- <mdiacnt/>
- </mdiasend>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 초기화
- fSetReset();
-
- //배지그룹정보 조회
- fGetMdiaGrup();
-
- // 초기 배지그룹코드, 배지명 조회
- //fSetMdiacdnm();
-
- ]]>
- </script>
- <submission id="TRLLF90601" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/mdiagrup"/>
- <submission id="TRLLF90602" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/mdiadetl"/>
- <submission id="TXLLF90601" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TXLLF90602" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TXLLF90603" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TXLLF90604" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fSetReset(){
-
- model.removeNodeset("/root/main/mdiagrup");
- model.removeNodeset("/root/main/mdiadetl");
-
- model.refresh();
-
- }
-
- // 초기 배지그룹코드, 배지명 조회
- function fSetMdiacdnm(){
- //model.setValue("/root/hidden/mdiagrupcd", model.getValue("/root/main/mdiagrup["+grd_mdiagrup.row+"]/mdiagrupcd"));
- //model.setValue("/root/hidden/mdianm", model.getValue("/root/main/mdiagrup["+grd_mdiagrup.row+"]/mdianm"));
-
- model.refresh();
- }
-
- // 배지그룹정보 조회
- function fGetMdiaGrup(){
-
- var mdiacd = model.getValue("/root/hidden/mdiainfo/mdiagrupcd");
-
- submit("TRLLF90601");
-
- if((mdiacd == "") || (mdiacd == "-")){
- var cdrow = 1;
- model.setValue("/root/hidden/mdianm", "-");
- }else{
- var cdrow = grd_mdiagrup.findRow(mdiacd, 1,1,true,true);
- model.setValue("/root/hidden/mdianm", model.getValue("/root/main/mdiagrup["+cdrow+"]/mdianm"));
- }
- grd_mdiagrup.row = cdrow;
-
-
- // 상세 배지 리스트 조회
- fGetMdiaDetl(cdrow);
- }
-
- // 상세 배지 리스트 조회
- function fGetMdiaDetl(row){
-
- model.setValue("/root/send/mdiagrupcd", model.getValue("/root/main/mdiagrup["+row+"]/mdiagrupcd"));
-
- submit("TRLLF90602");
-
- }
-
- //추가버튼 사용안함
- function fSetAddRow(grdid){
-
- grdid.addRow(false);
- model.refresh();
- }
-
- // 배지그룹정보 저장
- function fExeMdiaGrup(){
-
- /*if(grd_mdiadetl.rows < 2){
-
- messageBox("상세 배지 정보를 ", "C001"); // 입력하십시오
- return;
- }
- */
- model.setValue("/root/send/mdiagrupcd", model.getValue("/root/main/mdiagrup["+grd_mdiagrup.row+"]/mdiagrupcd"));
- model.setValue("/root/send/mdiagrupnm", model.getValue("/root/main/mdiagrup["+grd_mdiagrup.row+"]/mdianm"));
-
- submit("TXLLF90601");
-
- }
-
- // 상세배지리스트 저장
- function fExeMdiaDetl(){
-
- var mdianmlist = "";
-
- if(grd_mdiadetl.rows >1){
- for(i=1; i<grd_mdiadetl.rows; i++){
- mdianmlist += model.getValue("/root/main/mdiadetl["+i+"]/mdianm") + "▨";
- }
- }
-
- model.setValue("/root/send/mdianmlist", mdianmlist);
- model.setValue("/root/send/mdiagrupcd", model.getValue("/root/main/mdiagrup["+grd_mdiagrup.row+"]/mdiagrupcd"));
-
- submit("TXLLF90602");
- }
-
- // 배지 그룹 정보 삭제
- function fDelMdiaGrup(){
-
- model.setValue("/root/send/mdiagrupcd", model.getValue("/root/main/mdiagrup["+grd_mdiagrup.row+"]/mdiagrupcd"));
-
- submit("TXLLF90603");
- }
-
- // 상세 배지리스트 삭제
- function fDelMdiaDetl(){
-
- model.setValue("/root/send/mdiagrupcd", model.getValue("/root/main/mdiagrup["+grd_mdiagrup.row+"]/mdiagrupcd"));
- grd_mdiadetl.deleteRow(grd_mdiadetl.row);
-
- submit("TXLLF90604");
-
- // 상세배지리스트 저장
- fExeMdiaDetl();
-
- }
-
- // 선택 버튼
- function fSetMdiaSelect(){
- model.setValue("/root/hidden/mdiasend/grupcd", model.getValue("/root/main/mdiagrup["+grd_mdiagrup.row+"]/mdiagrupcd"));
- model.setValue("/root/hidden/mdiasend/mdiacnt", (grd_mdiadetl.rows-1));
-
- model.copyNode(opener.root.hidden.mdiasend, root.hidden.mdiasend);
-
- window.close();
- }
-
- // 선택버튼 취소
- function fSetMdiaCancel(){
- model.setValue("/root/hidden/mdiasend/grupcd", "");
- model.setValue("/root/hidden/mdiasend/mdiacnt", 0);
-
- model.copyNode(opener.root.hidden.mdiasend, root.hidden.mdiasend);
-
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="640" pageheight="400" guideline="1,1194;" style="font-family:굴림체; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group2" style="left:0px; top:340px; width:605px; height:30px; ">
- <button id="button4" class="btn4_letter2" style="left:486px; top:5px; width:56px; height:22px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetMdiaSelect();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn4_letter2" style="left:545px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //window.close();
- fSetMdiaCancel();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:600px; y2:0px; "/>
- </group>
- <group id="group1" style="left:0px; top:0px; width:605px; height:340px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:77px; x2:330px; y2:77px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:62px; width:126px; height:13px; ">배지그룹정보</caption>
- <caption id="caption2" class="tit_2" style="left:345px; top:62px; width:116px; height:13px; ">상세배지리스트</caption>
- <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:126px; height:13px; ">배지그룹</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:600; y2:25px; "/>
- <line id="line4" class="line_1" style="x1:335px; y1:77px; x2:600px; y2:77px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:30px; width:60px; height:23px; vertical-align:middle; ">검사코드</caption>
- <output id="output3" ref="/root/hidden/mdiainfo/tclscd" class="output_fix" style="left:63px; top:31px; width:80px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:146px; top:30px; width:60px; height:23px; vertical-align:middle; ">검체코드</caption>
- <output id="output1" ref="/root/hidden/mdiainfo/spccd" class="output_fix" style="left:209px; top:31px; width:80px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:292px; top:30px; width:79px; height:23px; vertical-align:middle; ">배지그룹코드</caption>
- <output id="output2" ref="/root/hidden/mdiainfo/mdiagrupcd" class="output_fix" style="left:374px; top:31px; width:80px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:457px; top:30px; width:49px; height:23px; vertical-align:middle; ">배지명</caption>
- <output id="output4" ref="/root/hidden/mdianm" class="output_fix" style="left:509px; top:31px; width:90px; height:19px; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:52px; x2:600; y2:52px; "/>
- <button id="button10" class="btn2_letter2" style="left:153px; top:56px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSetAddRow(grd_mdiagrup);
- grd_mdiagrup.addRow();
- model.removeNodeset("/root/main/mdiadetl");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter2" style="left:198px; top:56px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 배지 그룹 정보 삭제
- fDelMdiaGrup();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:243px; top:56px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //배지그룹정보 조회
- fGetMdiaGrup();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:288px; top:56px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 배지그룹정보 저장
- fExeMdiaGrup();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter2" style="left:468px; top:56px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSetAddRow(grd_mdiadetl);
- grd_mdiadetl.addRow();
-
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter2" style="left:513px; top:56px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 상세 배지리스트 삭제
- fDelMdiaDetl();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter2" style="left:558px; top:56px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 상세배지리스트 저장
- fExeMdiaDetl();
- ]]>
- </script>
- </button>
- <datagrid id="grd_mdiagrup" nodeset="/root/main/mdiagrup" visibility="visible" caption="배지그룹코드^배지그룹명" colwidth="113, 188" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" style="left:0px; top:82px; width:330px; height:255px; ">
- <col ref="mdiagrupcd" type="input"/>
- <col ref="mdianm" type="input"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- // 상세 배지 리스트 조회
- fGetMdiaDetl(grd_mdiagrup.row);
-
- // 초기 배지그룹코드, 배지명 조회
- //fSetMdiacdnm();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_mdiadetl" nodeset="/root/main/mdiadetl" visibility="visible" caption="배지명" colwidth="229" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" style="left:335px; top:82px; width:265px; height:255px; ">
- <col ref="mdianm" type="input"/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|