123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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 xmlns="">
- <main>
- <list>
- <item>
- <comcd1/>
- <comexcd1/>
- <comnm1/>
- <comcd2/>
- <comexcd2/>
- <comnm2/>
- <fromdd/>
- <todd/>
- <tboocnts/>
- </item>
- </list>
- </main>
- <send>
- <comcd/>
- <comnm/>
- <req>
- <data1/>
- </req>
- </send>
- <init/>
- <hidden>
- <item>
- <comcd1/>
- <comnm1/>
- <comcd2/>
- <comnm2/>
- <fromdd/>
- <todd/>
- <tboocnts/>
- </item>
- <receiveref>
- <srchtype>B</srchtype>
- </receiveref>
- </hidden>
- <temp>
- <item>
- <count/>
- </item>
- </temp>
- </root>
- </instance>
- <submission id="TRADB00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- <submission id="TXADB00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp"/>
- <script type="javascript">
- <![CDATA[
- function rownullchk(){
- for(var i = 1; i < datagrid1.rows; i++){
- if(datagrid1.rowStatus(i) !=0 && datagrid1.rowStatus(i) !=5){
- // alert(datagrid1.rowStatus(i));
- if(model.getValue("/root/main/list/item["+i+"]/comcd1").getTrim() == "") {
- messageBox("성분코드는","I003");
- return false;
- }
- else if(model.getValue("/root/main/list/item["+i+"]/comexcd1").getTrim() == ""){
- messageBox("확장코드","I003");
- return false;
- }
- else if(model.getValue("/root/main/list/item["+i+"]/comcd2").getTrim() == ""){
- messageBox("성분코드는","I003");
- return false;
- }
- else if(model.getValue("/root/main/list/item["+i+"]/comexcd2").getTrim() == ""){
- messageBox("확장코드는","I003");
- return false;
- }
- else if(model.getValue("/root/main/list/item["+i+"]/todd").getTrim() == ""){
- messageBox("종료일자는","I003");
- return false;
- }
- }
- }
- return true;
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 권한 관리
- btn_save.disabled =! checkAuth("X"); // 저장
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">병용금기 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:0px; width:1194px; height:45px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button3" class="btn1_letter2" style="left:1110px; top:10px; width:80px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var comnm = model.getValue("/root/send/comnm");
- var comcd = model.getValue("/root/send/comcd");
- if(comcd != ""){
- model.setValue("/root/send/comcd", comcd +"%");
- }
- if(comnm != ""){
- model.setValue("/root/send/comnm", comnm +"%");
- }
- submit("TRADB00301");
- model.setValue("/root/send/comcd",comcd);
- model.setValue("/root/send/comnm",comnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:235px; top:13px; width:86px; height:17px; ">성분명칭</caption>
- <line id="line13" class="line_4" style="x1:1095px; y1:10px; x2:1095px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption3" class="search_name" style="left:5px; top:13px; width:86px; height:17px; ">성분코드</caption>
- <input id="input1" ref="/root/send/comnm" class="input_search" maxlength="66" style="left:325px; top:13px; width:365px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("button3","DOMActivate");
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/comcd" class="input_search" maxlength="7" style="left:90px; top:13px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("button3","DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <button id="button50" class="btn2_letter3" style="left:1086px; top:46px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grdrow = datagrid1.row;
- model.copyNode("/root/hidden/item","/root/main/list/item["+ grdrow +"]");
- datagrid1.insertItem(grdrow);
- model.copyNode("/root/main/list/item["+ grdrow +"]","/root/hidden/item");
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/list/item" backcoloralternate="#f0f0f0" caption="성분코드^확장코드^성분명칭^성분코드^확장코드^성분명칭^시작일자^종료일자^설명" colwidth="100, 62, 145, 100, 60, 145, 93, 93, 310" explorerbar="sortshow" extendlastcol="scroll" rowheader="update" style="left:0px; top:65px; width:1194px; height:675px; ">
- <col autonext="false" ref="comcd1" type="inputbutton" maxlength="7"/>
- <col ref="comexcd1"/>
- <col ref="comnm1"/>
- <col autonext="false" ref="comcd2" type="inputbutton" maxlength="7"/>
- <col ref="comexcd2"/>
- <col ref="comnm2"/>
- <col autonext="false" ref="fromdd" type="inputdate" format="yyyy-mm-dd" maxlength="8"/>
- <col autonext="false" ref="todd" type="inputdate" format="yyyy-mm-dd" maxlength="8"/>
- <col autonext="false" ref="tboocnts" type="input" maxlength="66"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (datagrid1.col== datagrid1.colRef("comcd1")){
- modal("SPADB61300",0,100,150,"SPADB61300","/root/hidden/receiveref","/root/hidden/receiveref");
- model.setValue("/root/main/list/item["+(datagrid1.row)+"]/comcd1", getParameter("comcd"));
- model.setValue("/root/main/list/item["+(datagrid1.row)+"]/comexcd1", getParameter("comexcd"));
- model.setValue("/root/main/list/item["+(datagrid1.row)+"]/comnm1", getParameter("comnm"));
- model.refresh();
- }
- if (datagrid1.col== datagrid1.colRef("comcd2")){
- modal("SPADB61300",0,100,150,"SPADB61300","/root/hidden/receiveref","/root/hidden/receiveref");
- model.setValue("/root/main/list/item["+(datagrid1.row)+"]/comcd2", getParameter("comcd"));
- model.setValue("/root/main/list/item["+(datagrid1.row)+"]/comexcd2", getParameter("comexcd"));
- model.setValue("/root/main/list/item["+(datagrid1.row)+"]/comnm2", getParameter("comnm"));
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1031px; top:46px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 그리드 추가 시 행 값 가지고 오기
- datagrid1.addItem();
- var grdrows = datagrid1.row;
- // alert("grdrows = " +grdrows);
-
- model.setValue("/root/main/list/item["+grdrows+"]/todd","99991231")
-
- // datagrid1.colRef("/root/main/list/item["+grdrows+"]/todd");
-
- // datagrid1.
-
- datagrid1.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:46px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.addStatus(datagrid1.row,"delete");
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1133px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("병용금기","Q002")==6 ) {
- if(rownullchk()){
- model.setValue("/root/send/req/data1", datagrid1.getUpdateData());
-
- submit("TXADB00301");
- model.setValue("/root/send/comcd","");
-
- submit("TRADB00301");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|