123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLMF01000_항균제대표코드관리.xrw
- * 설 명 : 항균제대표코드관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2008.03.14
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <baclist>
- <baccd/>
- <bacnm/>
- <keybaccd/>
- </baclist>
- <keybaclist>
- <keybaccd/>
- <bacnm/>
- </keybaclist>
- <keybacdetilist>
- <chk/>
- <keyyn/>
- <baccd/>
- <bacnm/>
- </keybacdetilist>
- </main>
- <send>
- <data1/>
- <keybaccd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <refgbn>1</refgbn>
- <searchgbn>1</searchgbn>
- <searchnm/>
- <btnflag/>
- </ref>
- <default/>
- </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"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLMF00901" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/keybaclist"/>
- <submission id="TRLMF00902" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/keybacdetilist"/>
- <submission id="TRLMF00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/baclist"/>
- <submission id="TXLMF00901" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 항균제코드관리
- * @ver : 2007.04.09(CMCDEV-0001)
- * @by : 조철형
- *@-----------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화버튼 클릭
- */
- function fSetInit() {
-
- model.removeNodeset("/root/main/keybaclist");
- model.removeNodeset("/root/main/keybacdetilist");
- model.removeNodeset("/root/main/baclist");
- submit("TRLMF00901");
- //fGetBaccd("2");
- }
-
- /* @group : 배양균코드관리
- * @ver : 2007.04.06(CMCDEV-0001)
- * @by : 조철형
- *@-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회 검색 버튼 클릭
- */
- function fGetBaccd(gbn){
-
- model.setvalue("/root/hidden/ref/btnflag",gbn);
- model.copyNode("/root/send/data1","/root/hidden/ref");
- submit("TRLMF00101");
- model.copyNode("/root/send/data1","/root/hidden/default");
- }
-
- function fClickkeybaclist(kRow){
- model.setValue("/root/send/keybaccd" , model.getValue("/root/main/keybaclist["+kRow+"]/keybaccd"));
- submit("TRLMF00902");
- }
-
- function fClickbacdetl(cRow){
- var baccd = model.getValue("/root/main/baclist["+cRow+"]/baccd");
- var bacnm = model.getValue("/root/main/baclist["+cRow+"]/bacnm");
- var keybaccd = model.getValue("/root/main/baclist["+cRow+"]/keybaccd");
-
- if(keybaccd != ""){
- alert("이미 " + keybaccd + "의 대표코드가 설정되어 있습니다.");
- return;
- }
- var n = getNodesetCount("/root/main/keybacdetilist[baccd = '" + baccd + "']");
-
- if(n < 1){
- keybacdetilist.addItem(false);
- var pRow = keybacdetilist.rows - 1;
- model.setValue("/root/main/keybacdetilist["+pRow+"]/keyyn" , "false");
- model.setValue("/root/main/keybacdetilist["+pRow+"]/baccd", baccd);
- model.setValue("/root/main/keybacdetilist["+pRow+"]/bacnm", bacnm);
- model.refresh();
- }else{
- alert(bacnm + " 배양균이 이미 설정되어 있습니다.");
- }
-
- }
-
- function fClickChkbox(cRow){
- var n = getNodesetCount("/root/main/keybacdetilist[keyyn = '" + "true" + "']");
- if(n > 1){
- alert("대표코드는 한개만 설정 가능합니다.");
- model.setValue("/root/main/keybacdetilist["+cRow+"]/keyyn", "false");
- model.refresh();
- }
- }
-
- function fdbClickdetilist(cRow){
- keybacdetilist.deleteItem(cRow);
- model.refresh();
- }
-
- function fExeBac(){
- model.setValue("/root/send/keybaccd" , model.getValue("/root/main/keybaclist["+keybaclist.row+"]/keybaccd"));
- model.setValue("/root/send/data1", keybacdetilist.getUpdateDataAll(i));
-
- if(keybacdetilist.rows == 1){
- }
- else{
- var n = getNodesetCount("/root/main/keybacdetilist[keyyn = '" + "true" + "']");
- if(n < 1){
- alert("대표코드 하나는 반드시 설정해야 합니다.");
- return;
- }
- }
-
- submit("TXLMF00901");
- model.removeNodeset("/root/main/keybacdetilist");
- submit("TRLMF00901");
- fGetBaccd("2");
- }
- function fNewkeybac(){
- keybaclist.row = -1;
- model.setValue("/root/send/keybaccd" , "");
- model.removeNodeset("/root/main/keybacdetilist");
- model.refresh();
- keybaclist.rebuild();
- }
-
- function fdelkeybacdetilist(){
- var kRows = keybacdetilist.rows;
- var i;
- for(i = 1 ; i < kRows ; i ++){
- if(model.getValue("/root/main/keybacdetilist["+i+"]/chk") == "true"){
- model.removenodeset("/root/main/keybacdetilist["+i+"]");
- i = i -1;
- kRows = kRows -1 ;
- }
- }
- model.refresh();
- }
-
-
-
- ]]>
- </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:260px; y2:70px; "/>
- <caption id="caption2" class="tit_2" style="left:0px; top:55px; width:144px; height:14px; ">배양균대표코드목록</caption>
- <datagrid id="grd_cddetl" nodeset="/root/main/baclist" caption="배양균코드^배양균명^배양균대표코드" colwidth="110, 200, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:760px; top:75px; width:435px; height:669px; ">
- <col ref="baccd"/>
- <col ref="bacnm"/>
- <col ref="keybaccd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cddetl.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_cddetl.isCell(event.target) && grd_cddetl.row >= grd_cddetl.fixedRows ){
- fClickbacdetl(grd_cddetl.row);
- }
- ]]>
- </script>
- </datagrid>
- <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; "/>
- <caption id="caption4" class="search_name" style="left:737px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
- <select1 id="cmb_search" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:830px; top:8px; width:100px; 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:935px; top:8px; width:158px; height:19px; "/>
- <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[
- fGetBaccd("2");
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:760px; top:55px; width:144px; height:14px; ">배양균목록</caption>
- <line id="line2" class="line_1" style="x1:760px; y1:70px; x2:1195px; y2:70px; "/>
- <datagrid id="keybaclist" nodeset="/root/main/keybaclist" caption="배양균대표코드^배양균명" colwidth="110, 125" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:260px; height:669px; ">
- <col ref="keybaccd"/>
- <col ref="bacnm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- keybaclist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(keybaclist.isCell(event.target) && keybaclist.row >= keybaclist.fixedRows ){
- fClickkeybaclist(keybaclist.row);
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="keybacdetilist" nodeset="/root/main/keybacdetilist" caption="선택^대표여부^배양균코드^배양균명" colwidth="30, 60, 230, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:280px; top:75px; width:460px; height:669px; ">
- <col ref="chk" type="checkbox" checkvalue="true,false"/>
- <col ref="keyyn" type="checkbox" checkvalue="true,false"/>
- <col ref="baccd"/>
- <col ref="bacnm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- keybacdetilist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(keybacdetilist.isCell(event.target) && keybacdetilist.row >= keybacdetilist.fixedRows ){
- fClickChkbox(keybacdetilist.row);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(keybacdetilist.isCell(event.target) && keybacdetilist.row >= keybacdetilist.fixedRows ){
- fdbClickdetilist(keybacdetilist.row);
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:280px; top:55px; width:160px; height:14px; ">배양균대표코드상세목록</caption>
- <line id="line4" class="line_1" style="x1:280px; y1:70px; x2:740px; y2:70px; "/>
- <button id="button12" class="btn2_letter4" style="left:676px; top:50px; width:64px; height:19px; ">
- <caption>신규등록</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fNewkeybac();
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter2" style="left:631px; top:50px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fdelkeybacdetilist();
-
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" 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_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>
- <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[
- fExeBac();
- ]]>
- </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>
|