123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBF00200_혈액출고유형관리.xrw
- * 설 명 : 혈액출고유형관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2010.03.10
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <delivegbnlist>
- <basecd2/>
- <basecdidnm/>
- <basecdnm/>
- <basecddesc/>
- <basecddispseq/>
- <basecd/>
- </delivegbnlist>
- </main>
- <send>
- <codeflag/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <delivegbn>02</delivegbn>
- </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" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 혈액출고유형 조회
- fGetDelivegbnList();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
- <submission id="TRLBF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/delivegbnlist"/>
- <submission id="TXLBF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 혈액출고유형 조회
- function fGetDelivegbnList(){
- model.makeValue("/root/send/delivegbn", model.getValue("/root/hidden/ref/delivegbn"));
- submit("TRLBF00201");
- }
-
- // 행추가
- function fsetgrdadd(){
- grd_delivelist.addRow(grd_delivelist.row);
-
- if(grd_delivelist.rows>1){
- var cd = model.getValue("/root/main/delivegbnlist["+(grd_delivelist.row-1)+"]/basecd2");
- var cd2 = parseInt(cd)+1;
- var seq = parseInt(model.getValue("/root/main/delivegbnlist["+(grd_delivelist.row-1)+"]/basecddispseq"))+1 ;
- model.setValue("/root/main/delivegbnlist["+grd_delivelist.row+"]/basecd2", cd2.toString().getLeftPad(2,"0") );
- model.setValue("/root/main/delivegbnlist["+grd_delivelist.row+"]/basecdidnm", "혈액출고유형");
- model.setValue("/root/main/delivegbnlist["+grd_delivelist.row+"]/basecdnm", model.getValue("/root/main/delivegbnlist["+(grd_delivelist.row-1)+"]/basecdnm"));
- model.setValue("/root/main/delivegbnlist["+grd_delivelist.row+"]/basecddispseq", seq);
- }
- }
-
- //행삭제
- function fsetgrddel(){
- grd_delivelist.rowStatus(grd_delivelist.row) = 4;
- }
-
- function fExeDeliveGbn(){
- model.makeValue("/root/send/senddata", grd_delivelist.getUpdateData());
- model.makeValue("/root/send/gbn", model.getValue("/root/hidden/ref/delivegbn"));
- submit("TXLBF00201");
-
- fGetDelivegbnList();
- }
-
-
- ]]>
- </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[
- //출고유형 조회
- fGetDelivegbnList();
- ]]>
- </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/delivegbn" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; font-weight:normal; vertical-align:middle; ">
- <choices>
- <item>
- <label>자체폐기</label>
- <value>01</value>
- </item>
- <item>
- <label>교환출고</label>
- <value>02</value>
- </item>
- <item>
- <label>사혈</label>
- <value>03</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fGetDelivegbnList();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">혈액출고유형리스트</caption>
- <button id="btn_add" class="btn2_letter3" style="left:1140px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fsetgrddel();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:1085px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fsetgrdadd();
- ]]>
- </script>
- </button>
- <datagrid id="grd_delivelist" nodeset="/root/main/delivegbnlist" caption="출고유형코드^혈액출고유형^출고구분^출고사유 (영문120자까지)^순번^LB005" colwidth="100, 130, 130, 200, 50, 50" 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:1193px; height:646px; ">
- <col ref="basecd2" type="input"/>
- <col ref="basecdidnm" type="input"/>
- <col ref="basecdnm" type="input"/>
- <col ref="basecddesc" type="input"/>
- <col ref="basecddispseq" type="input"/>
- <col ref="basecd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_delivelist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </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[
- fExeDeliveGbn();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|