123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF00800_검증소견코드관리.xrw
- * 설 명 : 검증소견코드관리
- * 설 계 자 : (주)에이씨케이 - 송요셉
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2007.07.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>
- <xhtml:title/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <readcmtlist>
- <readcmtcd/>
- <readcmttitl/>
- <readcmtcnts/>
- </readcmtlist>
- <readcmtcnts/>
- </main>
- <send>
- <readkind/>
- <search/>
- <data1/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <readkind>0</readkind>
- <search/>
- </ref>
- </hidden>
- </root>
- </instance>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script ev:event="xforms-ready" type="javascript">
- <![CDATA[
- model.removeNodeset("/root/main/readcmtlist");
- model.refresh();
- ]]>
- </script>
- <submission id="TRLVF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/readcmtlist"/>
- <submission id="TXLVF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //초기화
- function fSetInit() {
- model.reset();
- }
-
- //행추가
- function fInsRowAdd(pGridId) {
- pGridId.additem();
- }
-
- //행삭제
- function fInsRowDel() {
- readcmtlist.rowStatus(readcmtlist.row) = 4;
- }
-
- //검색텍스트 박스 활성화
- function fviewtext() {
- model.setValue("/root/hidden/ref/search" , '');
- model.refresh();
- if(model.getValue("/root/hidden/ref/readkind") == 0){
- input1.visible = false;
- }
- else{
- input1.visible = true;
- }
-
- }
-
- function fgetreadlsit() {
- model.setValue("/root/send/readkind", model.getValue("/root/hidden/ref/readkind"));
- model.setValue("/root/send/search", model.getValue("/root/hidden/ref/search "));
- model.setValue("/root/main/readcmtcnts", '');
- submit("TRLVF00101");
-
- checkKeyColumn("readcmtlist");
- }
-
- function fExeReadCmtList() {
- for(i=1; i<readcmtlist.rows; i++){
- if(model.getValue("/root/main/readcmtlist["+i+"]/readcmtcnts") ==''){
- alert(model.getValue("/root/main/readcmtlist["+i+"]/readcmttitl") + "의 소견상세내용이 없습니다.");
- readcmtlist.rowStatus(i) = 0;
- }
- }
-
- model.setValue("/root/send/data1", readcmtlist.getUpdateData());
- //alert(model.getValue("/root/send/data1"));
- submit("TXLVF00101");
- fgetreadlsit();
- }
-
- function fviewcnts() {
- model.setValue("/root/main/readcmtcnts" , model.getValue("/root/main/readcmtlist["+readcmtlist.row+"]/readcmtcnts"));
- model.refresh();
- //readcmtcnts.refresh();
- }
-
- function fupcnts() {
- model.setValue("/root/main/readcmtlist["+readcmtlist.row+"]/readcmtcnts", model.getValue("/root/main/readcmtcnts"));
- model.refresh();
- if(readcmtlist.rowStatus(readcmtlist.row)==0){
- readcmtlist.rowStatus(readcmtlist.row) = 2;
- }
- }
-
-
-
- ]]>
- </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:445px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">판독소견목록</caption>
- <button id="button2" class="btn2_letter3" style="left:391px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- fInsRowAdd(readcmtlist);
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:335px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- fInsRowDel();
- ]]>
- </script>
- </button>
- <datagrid id="readcmtlist" nodeset="/root/main/readcmtlist" caption="판독소견코드^판독소견코드명^소견" colsep="^" colwidth="120, 300, 200" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:445px; height:669px; ">
- <col ref="readcmtcd" type="input" _key="true" style="text-align:center; "/>
- <col ref="readcmttitl" type="input" _key="true"/>
- <col ref="readcmtcnts" type="input" visibility="hidden"/>
- <script ev:event="onclick" type="javascript">
- <![CDATA[
- fviewcnts();
- ]]>
- </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:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- fgetreadlsit();
- ]]>
- </script>
- </button>
- <select1 id="cmb_SectCd" ref="/root/hidden/ref/readkind" appearance="minimal" itemcount="10" style="left:108px; top:8px; width:162px; height:19px; ">
- <script ev:event="xforms-value-changed" type="javascript">
- <![CDATA[
- fviewtext();
- ]]>
- </script>
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>코드</label>
- <value>1</value>
- </item>
- <item>
- <label>코드명</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="input1" ref="/root/hidden/ref/search" visibility="hidden" style="left:285px; top:8px; width:162px; height:19px; "/>
- </group>
- <caption id="caption3" class="tit_2" style="left:460px; top:55px; width:131px; height:13px; ">소견상세내용</caption>
- <line id="line2" class="line_1" style="x1:460px; y1:70px; x2:1190px; y2:70px; "/>
- <textarea id="readcmtcnts" ref="/root/main/readcmtcnts" style="left:460px; top:75px; width:730px; height:669px; font-family:굴림체; font-size:20; font-weight:normal; ">
- <script ev:event="xforms-value-changed" type="javascript">
- <![CDATA[
- fupcnts();
- ]]>
- </script>
- </textarea>
- </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 ev:event="DOMActivate" type="javascript">
- <![CDATA[
- fExeReadCmtList();
- ]]>
- </script>
- </button>
- <button id="btn_Init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- fSetInit();
- ]]>
- </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>
|