123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF01400_사유코드관리.xrw
- * 설 명 : 사유코드관리
- * 설 계 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.05.09
- * 수정이력 : 2007-08-01 박정은 코드인스펙션
- * 기 타 :
- -->
- <?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>
- <main>
- <resnlist>
- <resncdkind/>
- <resncd/>
- <resndesc/>
- <resndispseq/>
- <resnuseyn/>
- </resnlist>
- </main>
- <send>
- <resncdkind/>
- <resndata/>
- <codeflag/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <refgbn>01</refgbn>
- </ref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRLLF01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/resnlist"/>
- <submission id="TXLLF01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/resnlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 사유코드 그리드 초기화
- //grd_rsn.deleteRow(1);
- model.removeNodeset("/root/main/resnlist");
- grd_rsn.refresh();
-
- // 사유코드목록 초기값 조회
- fGetResnCd();
-
- //input1.attribute("imemode") = "hangul";
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0117"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 사유코드목록 초기값 조회
- function fGetResnCd(){
- model.setValue("/root/send/codeflag", "0117|"); // 0117 사유코드관리
- submit("TRLZZ00101");
-
- fOnclick_btnRef();
- }
-
-
- // 행추가
- function fInsRowAdd() {
-
- grd_rsn.addRow();
-
- if(grd_rsn.rows <3){
- model.setValue("/root/main/resnlist["+(grd_rsn.rows-1)+"]/resndispseq", "1");
- }else{
- model.setValue("/root/main/resnlist["+(grd_rsn.rows-1)+"]/resndispseq", parseInt(model.getValue("/root/main/resnlist["+(grd_rsn.rows-2)+"]/resndispseq")) + 1);
- }
- model.setValue("/root/main/resnlist["+(grd_rsn.rows-1)+"]/resncdkind", model.getValue("/root/hidden/ref/refgbn"));
- model.setValue("/root/main/resnlist["+(grd_rsn.rows-1)+"]/resnuseyn", "Y");
- }
-
- function fExeCancel() {
- //model.reset();
- model.removeNodeset("/root/main/resnlist");
- model.refresh();
- }
-
- function fOnclick_btnRef(){
-
- model.setvalue("/root/send/resncdkind" , cmb_RefFlag.value);
-
- submit("TRLLF01401");
-
- model.setvalue("/root/send/resncdkind" , "00");
- }
-
- // 사유코드유형 설정
- function fSetResnkind(){
- var rCol = grd_rsn.col;
-
- if(model.getValue("/root/main/resnlist["+grd_rsn.row+"]/resncdkind")== ""){
- if(rCol == "2"){
- model.setValue("/root/main/resnlist["+grd_rsn.row+"]/resncdkind", model.getValue("/root/main/resnlist["+grd_rsn.row+"]/resncd").substr(0,2));
- }
- }
- }
-
- // 사유코드 수정, 등록
- function fExeResn(){
-
-
-
- var grdResn = getGridUpdateData(grd_rsn);
-
- if(grdResn == ""){
- messageBox("저장 할 내용이 없습니다. \n사유코드를 저장 ", "E001"); // 할 수 없습니다.
- return;
- }
-
- for(i = 1; i <= grd_rsn.rows; i++){
- if((grd_rsn.rowStatus(i) == 1 || grd_rsn.rowStatus(i) == 3)
- && ( model.getValue("/root/main/resnlist[" + i + "]/resncdkind") == ""
- || model.getValue("/root/main/resnlist[" + i + "]/resncd") == ""
- || model.getValue("/root/main/resnlist[" + i + "]/resndesc") == ""
- || model.getValue("/root/main/resnlist[" + i + "]/resndispseq") == "")){
-
- messageBox("저장할 내역 중 빈값은 존재할 수 없습니다. ", "E");
- grd_rsn.row = i;
- return;
- }
- }
-
- var rtn = messageBox("저장된 내역은 수정하실 수 없습니다.\n이대로 저장", "Q002");
-
- if(rtn == 7){
- return;
- }
- model.setValue("/root/send/resndata", grdResn);
-
- submit("TXLLF01401");
-
- //model.reset();
- model.removeNodeset("/root/init");
- model.removeNodeset("/root/main/resnlist");
- fGetResnCd();
-
- }
- ]]>
- </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; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">사유코드상세내역</caption>
- <datagrid id="grd_rsn" nodeset="/root/main/resnlist" caption="사유코드유형^사유코드^사유^사용여부^표시순서^숨길꺼seq" colwidth="100, 130, 800, 60, 80, 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:669px; ">
- <col disabled="true" ref="resncdkind" type="input" maxlength="2"/>
- <col disabled="true" ref="resncd" type="input" maxlength="5"/>
- <col disabled="true" ref="resndesc" type="input" maxlength="200"/>
- <col checkvalue="Y,N" ref="resnuseyn" type="checkbox"/>
- <col ref="resndispseq" type="input" format="99999" maxlength="5"/>
- <col ref="resndispseq"/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- // 사유코드유형 설정
- fSetResnkind();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rsn.gridToInstance();
- ]]>
- </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="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- <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[
- fOnclick_btnRef();
- ]]>
- </script>
- </button>
- <select1 id="cmb_RefFlag" ref="/root/hidden/ref/refgbn" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:530px; top:5px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>-전체-</label>
- <value>00</value>
- </item>
- <item>
- <label>[1]검체채혈취소사유</label>
- <value>01</value>
- </item>
- <item>
- <label>[2]검체접수취소사유</label>
- <value>02</value>
- </item>
- <item>
- <label>[3]검체채혈접수취소사유</label>
- <value>03</value>
- </item>
- <item>
- <label>[4]검체검사취소사유</label>
- <value>04</value>
- </item>
- <item>
- <label>[5]현장검사취소사유</label>
- <value>05</value>
- </item>
- <item>
- <label>[6]검체부적격사유</label>
- <value>06</value>
- </item>
- <item>
- <label>[7]혈액반납사유</label>
- <value>07</value>
- </item>
- <item>
- <label>[8]혈액폐기사유</label>
- <value>08</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_resn" ref="/root/hidden/ref/refgbn" class="combo_s_essential" appearance="minimal" style="left:106px; top:8px; width:180px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0117">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fOnclick_btnRef();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_addrow" class="btn2_letter3" style="left:1142px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowAdd();
- ]]>
- </script>
- </button>
- <input id="input1" visibility="hidden" appearance="input" style="left:305px; top:50px; width:100px; height:19px; "/>
- </group>
- <group id="group4" scroll="auto" 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_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeResn();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCancel();
- ]]>
- </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>
|