123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBF00101_성분제제코드관리.xrw
- * 설 명 : 성분제제코드관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2007.07.13
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <![CDATA[]]>
- <xhtml:title/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <bloodlist>
- <blodbarcd/>
- <blodcomcd/>
- <blodcomnm/>
- <blodcomabbrnm/>
- <blodbasevol/>
- <valiterm/>
- <coombsyn/>
- <spclblodcomyn/>
- <rsrvtm/>
- <dispseq/>
- <blodbarcdfromdd/>
- <blodbarcdtodd/>
- <crmtautendyn/>
- <reffromdd/>
- <reftodd/>
- </bloodlist>
- </main>
- <send>
- <cmbflag/>
- <data1/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <cmbflag>1</cmbflag>
- </ref>
- </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-ready">
- <![CDATA[
- model.removeNodeset("/root/main/bloodlist");
- model.refresh();
- ]]>
- </script>
- <submission id="TRLBF00101" ref="root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="root/main/bloodlist"/>
- <submission id="TXLBF00101" ref="root/send/data1" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="root/main/bloodlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 코드별 정보 출력
- function fblodbaseinfo(){
- //alert(model.getValue("/root/hidden/ref/cmbflag"));
- model.setValue("/root/send/cmbflag", model.getValue("/root/hidden/ref/cmbflag"));
- submit("TRLBF00101");
- checkKeyColumn("grd_bloodlist");
- }
-
-
- // 행삭제
- function fInsRowdel() {
- var row = grd_bloodlist.row;
- var selectyn = model.getValue("/root/main/bloodlist["+row+"]/selectyn");
-
- if(selectyn == "Y"){
- messageBox("이미 등록된 성분제제는 삭제할 수 없습니다.","I");
- return;
- }else{
- grd_bloodlist.rowStatus(row) = 4;
- }
-
- }
-
- // 행추가
- function fInsRowAdd() {
-
- grd_bloodlist.addRow();
- }
-
- // 저장(삽입, 삭제, 수정)
- function fExeEqmtSave() {
- var blodbarcd, blodcomcd, blodbasevol, dispseq;
- model.setValue("/root/send/data1", grd_bloodlist.getUpdateData());
- for(i=1; i<=grd_bloodlist.rows ; i++){
-
- if(grd_bloodlist.rowStatus(i) == 3){
- blodbarcd = model.getValue("/root/main/bloodlist["+i+"]/blodbarcd");
- blodcomcd = model.getValue("/root/main/bloodlist["+i+"]/blodcomcd");
- blodbasevol = model.getValue("/root/main/bloodlist["+i+"]/blodbasevol");
- dispseq = model.getValue("/root/main/bloodlist["+i+"]/dispseq");
- if(blodbarcd ==''||blodcomcd == ''||blodbasevol == ''||dispseq == ''){
- messageBox("혈액바코드, 성분제제코드, 기준량, 표시순서는 반드시 입력해야 합니다", "I");
- return;
- }
- }
- }
-
- submit("TXLBF00101");
- fblodbaseinfo();
-
- }
-
- function fCellValueCheck(){
- var fromdd = model.getValue("/root/main/bloodlist["+grd_bloodlist.row+"]/blodbarcdfromdd");
- var todd = model.getValue("/root/main/bloodlist["+grd_bloodlist.row+"]/blodbarcdtodd");
- var reftodd = model.getValue("/root/main/bloodlist["+grd_bloodlist.row+"]/reftodd");
-
- //시작일자,종료일자 체크시
- if((grd_bloodlist.col == grd_bloodlist.colRef("blodbarcdtodd") || grd_bloodlist.col == grd_bloodlist.colRef("blodbarcdfromdd") ) ){
- if(fromdd != "" && todd != "") {
- if(fromdd > todd){
- messageBox("종료일자가 시작일자보다 이전 날짜입니다.", "I");
- model.setValue("/root/main/bloodlist["+grd_bloodlist.row+"]/blodbarcdtodd", reftodd);
- return;
- }
- }
- }
- }
-
- ]]>
- </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:40px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
- <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; "/>
- <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fblodbaseinfo();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- <select1 id="cmbflag" ref="/root/hidden/ref/cmbflag" 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>
- </group>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">성분제제 조회</caption>
- <datagrid id="grd_bloodlist" nodeset="/root/main/bloodlist" class="datagrid2" caption="혈액바코드^성분제제코드^시작일자^종료일자^성분제제명^성분제제명(약어)^기준량^유효기간^Coomb's^특수성분여부^교차시험
자동완료여부^표시순서^예약시간^이미등록된것인지여부^수정전시작일자^수정전종료일자" colwidth="74, 80, 90, 90, 160, 150, 70, 70, 65, 84, 84, 72, 60, 0, 0, 0" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:646px; ">
- <col ref="blodbarcd" type="input" _key="true"/>
- <col ref="blodcomcd" type="input"/>
- <col ref="blodbarcdfromdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="blodbarcdtodd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="blodcomnm" type="input"/>
- <col ref="blodcomabbrnm" type="input"/>
- <col ref="blodbasevol" type="input"/>
- <col ref="valiterm" type="input"/>
- <col ref="coombsyn" type="combo">
- <choices>
- <item>
- <label>YES</label>
- <value>Y</value>
- </item>
- <item>
- <label>NO</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="spclblodcomyn" type="combo">
- <choices>
- <item>
- <label>YES</label>
- <value>Y</value>
- </item>
- <item>
- <label>NO</label>
- <value>N</value>
- </item>
- <item>
- <label>자가</label>
- <value>A</value>
- </item>
- </choices>
- </col>
- <col ref="crmtautendyn" type="combo">
- <choices>
- <item>
- <label>YES</label>
- <value>Y</value>
- </item>
- <item>
- <label>NO</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="dispseq" type="input"/>
- <col ref="rsrvtm" type="input"/>
- <col ref="reffromdd"/>
- <col ref="reftodd"/>
- <col ref="selectyn"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //시작일,종료일 체크
- fCellValueCheck();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_bloodlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter3" style="left:1082px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowAdd();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:1138px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowdel();
- ]]>
- </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>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" 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[
- model.reset();
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|