123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF02000_판독예문코드관리.xrw
- * 설 명 : 판독예문코드관리
- * 설 계 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2007.11.05
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <spcltclscdlist>
- <tclscd/>
- <tclsnm/>
- <tclskind/>
- <rsltdispseq/>
- <spccd/>
- </spcltclscdlist>
- <readexmplist>
- <readexmpcd/>
- <readexmpcnts/>
- <readexmpcddispseq/>
- <readexmpdetlcnts/>
- <interfretationcnts/>
- </readexmplist>
- <readexmpdetl>
- <readexmpdetlcnts/>
- <interfretationcnts/>
- </readexmpdetl>
- </main>
- <send>
- <codeflag/>
- <lrgcd/>
- <mdlcd/>
- <tclscd/>
- <spccd/>
- <readexmp/>
- <testcd/>
- <userdeptflagcd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <lrgcd>00</lrgcd>
- <mdlcd>
- <cd>00</cd>
- <nm/>
- </mdlcd>
- </ref>
- <testcd/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetReady();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0111"/>
- <submission id="TRLLF02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcltclscdlist"/>
- <submission id="TRLLF02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/readexmplist"/>
- <submission id="TXLLF02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 초기화
- function fSetReady(){
- // 검사분류 콤보 조회
- model.setValue("/root/send/codeflag", "0104|0102|0000|"); //0104 : 대분류 0102 : 중분류
- submit("TRLZZ00101");
-
- model.removeNodeset("/root/main/spcltclscdlist"); //검사목록 그리드
- model.removeNodeset("/root/main/readexmplist"); //판독코드목록 그리드
-
- if(model.getValue("/root/hidden/testcd") != "") { //특수결과화면에서 판독예문버튼을 눌렀을 경우
- fGetSpclTclscd(); //자동으로 조회
- }
-
- model.refresh();
- }
-
- //시행부서 검사계 초기정보 조회
- function fSetMdlCD(){
- var etc = model.getvalue("/root/hidden/ref/lrgcd");
-
- if(etc == "00"){
- cmb_mdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- model.setvalue("/root/hidden/ref/mdlcd/cd" , "00");
- }
- else{
- model.setvalue("/root/hidden/ref/mdlcd/cd" , "00");
- cmb_mdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ etc +"']";
- }
- cmb_mdlcd.refresh();
-
- }
-
- // 특수검사목록 조회
- function fGetSpclTclscd(flag){
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- model.setValue("/root/send/lrgcd", model.getValue("/root/hidden/ref/lrgcd"));
- model.setValue("/root/send/mdlcd", model.getValue("/root/hidden/ref/mdlcd/cd"));
-
- if(flag != "R") { //조회버튼 눌렀을 경우가 아니라면
- model.setValue("/root/send/testcd", model.getValue("/root/hidden/testcd"));
- }
-
- submit("TRLLF02001");
-
- if(grd_SpclTclscd.rows > 1){
- grd_SpclTclscd.row = 1;
- //alert(grd_SpclTclscd.row);
- fGetReadExmp();
- }
-
- model.resetInstanceNode("/root/send");
- model.refresh();
- }
-
- //판독코드목록조회
- function fGetReadExmp(){
-
- model.setValue("/root/send/tclscd", model.getValue("/root/main/spcltclscdlist["+grd_SpclTclscd.row+"]/tclscd"));
- model.setValue("/root/send/spccd", model.getValue("/root/main/spcltclscdlist["+grd_SpclTclscd.row+"]/spccd"));
-
- submit("TRLLF02002");
-
- // 판독예문 상세, interfretationcnts 조회
- if(grd_readexmp.rows > 1){
- grd_readexmp.row = 1;
- }
- fGetReadExmpDetl();
-
- }
-
- // 판독예문 상세, interfretationcnts 조회
- function fGetReadExmpDetl(){
-
- if(grd_readexmp.rows > 1){
-
- model.setValue("/root/main/readexmpdetl/readexmpdetlcnts", model.getValue("/root/main/readexmplist["+grd_readexmp.row+"]/readexmpdetlcnts"));
- model.setValue("/root/main/readexmpdetl/interfretationcnts", model.getValue("/root/main/readexmplist["+grd_readexmp.row+"]/interfretationcnts"));
- model.makeValue("/root/main/readexmpdetl/cmt", model.getValue("/root/main/readexmplist["+grd_readexmp.row+"]/cmt"));
- }else{
- model.setValue("/root/main/readexmpdetl/readexmpdetlcnts", "");
- model.setValue("/root/main/readexmpdetl/interfretationcnts", "");
- model.makeValue("/root/main/readexmpdetl/cmt", "");
- }
-
- tar_readexmpdetl.refresh();
- tar_interfretation.refresh();
- tar_cmt.refresh();
- }
-
- // 행추가
- function fSetAddRow(){
- grd_readexmp.addRow();
-
- if(grd_readexmp.rows == 2) { //첫번째 로우 일때 표시순서 0
- model.setValue("/root/main/readexmplist/readexmpcddispseq", "1");
- } else { //첫번째 로우가 아닐때.
- var bfseq = model.getValue("/root/main/readexmplist["+ (grd_readexmp.row - 1) +"]/readexmpcddispseq"); //이전 로우의 표시순서
- bfseq = parseInt(bfseq); //string -> int
-
- model.setValue("/root/main/readexmplist["+ grd_readexmp.row +"]/readexmpcddispseq", bfseq + 1); //이전로우의 표시순서 + 1
- }
- }
-
- // 행삭제
- function fSetDelRow(){
- //grd_readexmp.deleteRow(grd_readexmp.row);
- grd_readexmp.rowStatus(grd_readexmp.row) = 4;
- }
-
- // 상세내용 변경시
- function fSetReadDetl(){
- model.setValue("/root/main/readexmplist["+grd_readexmp.row+"]/readexmpdetlcnts", tar_readexmpdetl.currentText);
- if(grd_readexmp.rowStatus(grd_readexmp.row)==0){
- grd_readexmp.rowStatus(grd_readexmp.row) = 2;
- }
- }
-
- // interfretation 변경시
- function fSetInterfretation(){
- model.setValue("/root/main/readexmplist["+grd_readexmp.row+"]/interfretationcnts", tar_interfretation.currentText);
- if(grd_readexmp.rowStatus(grd_readexmp.row)==0){
- grd_readexmp.rowStatus(grd_readexmp.row) = 2;
- }
- }
-
- // Comments 변경시
- function fSetcmt(){
- model.setValue("/root/main/readexmplist["+grd_readexmp.row+"]/cmt", tar_cmt.currentText);
- if(grd_readexmp.rowStatus(grd_readexmp.row)==0){
- grd_readexmp.rowStatus(grd_readexmp.row) = 2;
- }
- }
-
- // 판독예문코드등록,수정
- function fExeReadExmp(){
- if(grd_readexmp.rows < 2){
- messageBox("등록할 판독 예문 코드가 ", "I004"); //없습니다.
- return;
- }
-
- model.setValue("/root/send/tclscd", model.getValue("/root/main/spcltclscdlist["+grd_SpclTclscd.row+"]/tclscd"));
- model.setValue("/root/send/spccd", model.getValue("/root/main/spcltclscdlist["+grd_SpclTclscd.row+"]/spccd"));
- model.setValue("/root/send/readexmp", grd_readexmp.getUpdateData());
-
- model.setValue("/root/hidden/testcd", model.getValue("/root/main/spcltclscdlist["+grd_SpclTclscd.row+"]/tclscd")); //저장후 저장한 검사코드가 조회되도록
- //alert(model.getValue("/root/send/readexmp"));
- //alert(grd_readexmp.rowStatus(grd_readexmp.row));
- if(submit("TXLLF02001")==true){
- fGetSpclTclscd();
- }
-
-
- }
- ]]>
- </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:635px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">검사목록</caption>
- <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:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 특수검사목록 조회
- fGetSpclTclscd("R");
- ]]>
- </script>
- </button>
- <select1 id="cmb_lrgcd" ref="/root/hidden/ref/lrgcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:108px; top:8px; width:162px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0104">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetMdlCD();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdlcd" ref="/root/hidden/ref/mdlcd/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:275px; top:8px; width:162px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption3" class="tit_2" style="left:645px; top:55px; width:131px; height:14px; ">판독코드목록</caption>
- <line id="line2" class="line_1" style="x1:640px; y1:70px; x2:1194px; y2:70px; "/>
- <datagrid id="grd_SpclTclscd" nodeset="/root/main/spcltclscdlist" caption="검사코드^검사내용^검사구분^표시순서^spccd(숨)^상세내용^cmtcd2^tsectcd" colsep="^" colwidth="80, 370, 70, 70, 0" dataheight="23" defaultrows="1" explorerbar="sortshow" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:635px; height:668px; ">
- <col ref="tclscd" style="text-align:left; "/>
- <col ref="tclsnm" style="text-align:left; "/>
- <col disabled="true" ref="tclskind" type="combo">
- <choices>
- <item>
- <label>Group</label>
- <value>0</value>
- </item>
- <item>
- <label>Panel</label>
- <value>1</value>
- </item>
- <item>
- <label>Single</label>
- <value>2</value>
- </item>
- <item>
- <label>Parent</label>
- <value>3</value>
- </item>
- <item>
- <label>Child</label>
- <value>4</value>
- </item>
- <item>
- <label>Abnormal</label>
- <value>5</value>
- </item>
- <item>
- <label>성분제제</label>
- <value>6</value>
- </item>
- </choices>
- </col>
- <col ref="rsltdispseq" style="text-align:right; "/>
- <col ref="spccd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //판독코드목록조회
- if(grd_SpclTclscd.row > 0){
- fGetReadExmp();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_SpclTclscd.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:645px; top:243px; width:131px; height:13px; ">판독예문 상세내용</caption>
- <line id="line4" class="line_1" style="x1:640px; y1:258px; x2:1194px; y2:258px; "/>
- <caption id="caption5" class="tit_2" style="left:645px; top:558px; width:135px; height:13px; ">Interpretation</caption>
- <line id="line5" class="line_1" style="x1:640px; y1:573px; x2:1194px; y2:573px; "/>
- <button id="button1" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetAddRow();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:1141px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetDelRow();
- ]]>
- </script>
- </button>
- <datagrid id="grd_readexmp" nodeset="/root/main/readexmplist" caption="판독예문코드^판독예문내용^표시순서^상세(숨)^interfre(숨)^Comments(숨)^상세내용^cmtcd2^tsectcd" colsep="^" colwidth="90, 354, 70, 40, 40, 100" dataheight="23" defaultrows="1" ellipsis="true" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:640px; top:75px; width:554px; height:163px; ">
- <col ref="readexmpcd" type="input" style="text-align:center; "/>
- <col ref="readexmpcnts" type="input"/>
- <col ref="readexmpcddispseq" type="input" style="text-align:center; "/>
- <col ref="readexmpdetlcnts" visibility="hidden"/>
- <col ref="interfretationcnts" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 판독예문 상세, interfretationcnts 조회
- fGetReadExmpDetl();
- ]]>
- </script>
- </datagrid>
- <textarea id="tar_readexmpdetl" ref="/root/main/readexmpdetl/readexmpdetlcnts" style="left:640px; top:263px; width:554px; height:290px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //판독예문상세내용 값 바뀌면 판독코드목록으로 set
- fSetReadDetl();
- ]]>
- </script>
- </textarea>
- <textarea id="tar_interfretation" ref="/root/main/readexmpdetl/interfretationcnts" maxlength="500" style="left:640px; top:578px; width:554px; height:70px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetInterfretation();
- ]]>
- </script>
- </textarea>
- <caption id="caption7" class="tit_2" style="left:645px; top:653px; width:135px; height:14px; ">Comments</caption>
- <textarea id="tar_cmt" ref="/root/main/readexmpdetl/cmt" maxlength="500" style="left:640px; top:673px; width:554px; height:70px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetcmt();
- ]]>
- </script>
- </textarea>
- <line id="line6" class="line_1" style="x1:640px; y1:668px; x2:1194px; y2:668px; "/>
- </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[
- fExeReadExmp();
- ]]>
- </script>
- </button>
- <button id="btn_Init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetReady();
- ]]>
- </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>
|