123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- <?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>
- <gettestcmtlist>
- <cmtcd/>
- <cmtcnts/>
- <cmtdispseq/>
- <cmtdetlcnts/>
- <cmtcd2/>
- <tsectcd/>
- </gettestcmtlist>
- <getcmtdetlcnts>
- <cmtdetlcnts/>
- </getcmtdetlcnts>
- </main>
- <send>
- <sectcd/>
- <tsectcd/>
- <codeflag/>
- <grddata/>
- <cmtcd/>
- <cmtcnts/>
- <cmtdetlcnts/>
- <cdc/>
- </send>
- <hidden>
- <ref>
- <sectcd>00</sectcd>
- <tsectcd>
- <cd>00</cd>
- <nm/>
- </tsectcd>
- </ref>
- <detl>
- <cmtdetlcnts/>
- </detl>
- <LB0106>
- <cd>99</cd>
- <nm>[99] 자동소견</nm>
- <chk/>
- <etc01>-</etc01>
- <etc02/>
- <etc03>13</etc03>
- <etc04>1</etc04>
- <ect05/>
- </LB0106>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRLLF00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gettestcmtlist"/>
- <submission id="TXLLF00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 초기정보 조회
- model.setValue("/root/send/codeflag", "0111|0106|"); //0111 시행부서=계=
- submit("TRLZZ00101");
-
- tsectC = getNodesetCount("/root/init/LB0106");
-
- model.makeNode("/root/init/LB0106["+ (parseInt(tsectC)+1) +"]");
- copyNodeType("/root/init/LB0106["+ (parseInt(tsectC)+1) +"]", "/root/hidden/LB0106");
-
- //핵의학이라면
- if(getNodesetCount("/root/init/LB0111[cd='N']") > 0){
- model.setValue("/root/hidden/ref/sectcd", "N");
- model.setValue("/root/hidden/ref/tsectcd/cd", "NR");
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0111"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //초기화
- function fSetInit() {
- model.reset();
- }
-
- //시행부서 검사계 초기정보 조회
- function fSetSect(){
- var etc = model.getvalue("/root/hidden/ref/sectcd");
-
- if(etc == "00"){
- cmb_TsectCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- model.setvalue("/root/hidden/ref/tsectcd/cd" , "00");
- }
- else{
- model.setvalue("/root/hidden/ref/tsectcd/cd" , "00");
- cmb_TsectCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
- }
- cmb_TsectCd.refresh();
- }
-
- //행추가
- function fInsRowAdd(pGridId) {
- pGridId.additem();
- }
-
- //행삭제
- function fInsRowDel() {
- grd_TestCmtList.rowStatus(grd_TestCmtList.row) = 4;
- //grd_TestCmtList.deleteItem(grd_TestCmtList.row); //행삭제
- }
-
- //조회
- function fGetTestCmtList() {
- model.setValue("/root/send/sectcd", model.getValue("/root/hidden/ref/sectcd")); //시행부서
- model.setValue("/root/send/tsectcd", model.getValue("/root/hidden/ref/tsectcd/cd")); //시행부서상세
-
- submit("TRLLF00801");
-
- //소견상세내용 자동 조회
- fGetCmtDetlCnts("1");
- }
-
- //소견상세내용조회
- function fGetCmtDetlCnts(row) {
-
- if(row != "1") {
- row = grd_TestCmtList.row;
- }
-
- model.setValue("/root/hidden/detl/cmtdetlcnts", model.getValue("/root/main/gettestcmtlist["+row+"]/cmtdetlcnts"));
- tar_CmtDetlCnts.refresh();
-
- }
- //저장
- function fExeTestCmtList() {
- var ecd = model.getValue("/root/hidden/ref/tsectcd/cd");
-
- model.setValue("/root/send/grddata", grd_TestCmtList.getUpdateData());
-
- if(ecd == "00" && grd_TestCmtList.rowStatus(grd_TestCmtList.row) == 3) {
- alert("시행부서 검사계가 선택되지 않았습니다.\n시행부서 검사계를 선택하여 주세요.");
- return;
- } else if(grd_TestCmtList.textmatrix(grd_TestCmtList.row, 1) == ""){
- alert("소견코드를 입력하지 않았습니다.\n소견코드를 입력하세요.");
- } else if(grd_TestCmtList.textmatrix(grd_TestCmtList.row, 2) == ""){
- alert("소견내용을 입력하지 않았습니다.\n소견내용를 입력하세요.");
- } else if(grd_TestCmtList.textmatrix(grd_TestCmtList.row, 3) == ""){
- alert("표시순서를 입력하지 않았습니다.\n표시순서를 입력하세요.");
- } else if(tar_CmtDetlCnts.currentText == "") {
- alert("소견상세내용을 입력하지 않았습니다.\n소견상세내용을 입력하세요.");
- } else{
- for( i = 1; i < grd_TestCmtList.rows; i++)
- {
- if(grd_TestCmtList.rowStatus(grd_TestCmtList.row) == 3) {
- model.setValue("/root/main/gettestcmtlist["+ i +"]/tsectcd", ecd);
- }
- }
- model.setValue("/root/send/grddata", grd_TestCmtList.getUpdateData());
-
- submit("TXLLF00801");
-
- //검사소견목록 자동 조회
- fGetTestCmtList();
- }
- }
-
- //소견상세내용을 그리드에 복사
- function fSetEditCmt(){
- var ecd = model.getValue("/root/hidden/ref/tsectcd/cd");
-
- if(tar_CmtDetlCnts.oldValue == "" && grd_TestCmtList.rowStatus(grd_TestCmtList.row) == 3){
- grd_TestCmtList.rowStatus(grd_TestCmtList.row) = 3;
- }else {
- grd_TestCmtList.rowStatus(grd_TestCmtList.row) = 2;
- }
-
- model.setValue("/root/main/gettestcmtlist["+ grd_TestCmtList.row +"]/cmtdetlcnts", tar_CmtDetlCnts.currentText);//소견상세내용
-
- if(ecd != "00") {
- model.setValue("/root/main/gettestcmtlist["+ grd_TestCmtList.row +"]/tsectcd", model.getValue("/root/hidden/ref/tsectcd/cd"));//시행부서
- }
- }
- ]]>
- </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:13px; ">검사소견목록</caption>
- <button id="button2" class="btn2_letter3" style="left:581px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowAdd(grd_TestCmtList);
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:525px; top:50px; width:53px; height:20px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowDel();
- ]]>
- </script>
- </button>
- <datagrid id="grd_TestCmtList" nodeset="/root/main/gettestcmtlist" caption="소견코드^소견내용^표시순서^상세내용^cmtcd2^tsectcd" colsep="^" colwidth="80, 447, 70, 0, 0, 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:669px; ">
- <col ref="cmtcd" type="input" style="text-align:center; "/>
- <col ref="cmtcnts" type="input"/>
- <col ref="cmtdispseq" type="input" style="text-align:center; "/>
- <col ref="cmtdetlcnts" type="input"/>
- <col ref="cmtcd2"/>
- <col ref="tsectcd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetCmtDetlCnts();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_TestCmtList.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:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestCmtList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_SectCd" ref="/root/hidden/ref/sectcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:108px; top:8px; width:162px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetSect();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_TsectCd" ref="/root/hidden/ref/tsectcd/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:275px; top:8px; width:162px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fGetTestCmtList();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption3" class="tit_2" style="left:645px; top:55px; width:131px; height:13px; ">소견상세내용</caption>
- <line id="line2" class="line_1" style="x1:640px; y1:70px; x2:1190px; y2:70px; "/>
- <textarea id="tar_CmtDetlCnts" ref="/root/hidden/detl/cmtdetlcnts" style="left:640px; top:75px; width:550px; height:669px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetEditCmt();
- ]]>
- </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 type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeTestCmtList();
- ]]>
- </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[
- 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>
|