123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF01600_계산결과수식정의.xrw
- * 설 명 : 사유코드관리
- * 설 계 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.05.09
- * 수정이력 : 2007-08-01 박정은 코드인스펙션
- * 기 타 :
- -->
- <?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>사유코드관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <calflist>
- <tclscd/>
- <spccd/>
- <tclsnm/>
- <acptcnt/>
- <acpt01/>
- <acpt02/>
- <acpt03/>
- <acpt04/>
- <acpt05/>
- <acpt06/>
- <acpt07/>
- <acpt08/>
- <acpt09/>
- <acpt10/>
- <apptclscd/>
- <apptestcnt/>
- <calformkind/>
- <calformcnts/>
- <spcnm/>
- </calflist>
- <return_nm>
- <nm/>
- <r_tclsnm/>
- </return_nm>
- </main>
- <send>
- <resncdkind/>
- <calfdata/>
- <codeflag/>
- <selectgbn/>
- <tsectcd/>
- <sectcd/>
- <testlrgcd/>
- <testmdlcd/>
- <t_tclscd/>
- <t_spccd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <refgbn>01</refgbn>
- </ref>
- <selectgbn>1</selectgbn>
- <select01/>
- <select02/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 사유코드 그리드 초기화
- model.setValue("/root/send/codeflag", "0117|0104|0102|0111|0106|"); // 0117 사유코드관리
- submit("TRLZZ00101");
- model.removeNodeset("/root/main/calflist");
- grd_calf.refresh();
- fSelectGbn();
-
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0117"/>
- <submission id="TRLLF01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/calflist"/>
- <submission id="TXLLF01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/resnlist"/>
- <submission id="TXLLF01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/calflist"/>
- <submission id="TRLLF01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/return_nm"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var tmpCalstr = "";
-
- function fSelectGbn(){
- //검사분류 선택
- if(cmb_selectgbn.value == "1"){
- //첫번째 콤보에 대분류 셋팅
- cmb_select01.choices.itemset.attribute("nodeset") = "/root/init/LB0104";
- //두번째 콤보에 중분류 셋팅
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
-
- }
- //시행부서 선택
- else if(cmb_selectgbn.value == "2"){
- //첫번째 콤보에 계코드 셋팅
- cmb_select01.choices.itemset.attribute("nodeset") = "/root/init/LB0111";
- //두번째 콤보에 검사계코드 셋팅
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- }
- model.setvalue("/root/hidden/select01", "00");
- model.setvalue("/root/hidden/select02", "00");
-
- cmb_select01.refresh();
- cmb_select02.refresh();
- }
-
- //첫번째 콤보 선택시, 두번째 콤보 셋팅
- function fSetSelect02(){
- var select01 = model.getvalue("/root/hidden/select01");
- //검사분류선택
- if(cmb_selectgbn.value == "1"){
- if(select01 == "00"){
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- }
- else{
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ select01 +"']";
- }
- model.setValue("/root/hidden/select02" , "00");
- cmb_select02.refresh();
-
- }
- //시행부서 선택
- else if(cmb_selectgbn.value == "2"){
- if(select01 == "00"){
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- }
- else{
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ select01 +"']";
- }
- model.setValue("/root/hidden/select02" , "00");
- cmb_select02.refresh();
-
- }
- }
-
-
- function fcalfList(){
-
- //조회구분 검사분류 선택시
- if(cmb_selectgbn.value == "1"){
- model.setValue("/root/send/testlrgcd" , model.getValue("/root/hidden/select01"));
- model.setValue("/root/send/testmdlcd" , model.getValue("/root/hidden/select02"));
- }
- //조회구분 시행부서 선택시
- else if(cmb_selectgbn.value == "2"){
- model.setValue("/root/send/sectcd" , model.getValue("/root/hidden/select01"));
- model.setValue("/root/send/tsectcd" , model.getValue("/root/hidden/select02"));
- }
- model.setValue("/root/send/selectgbn", cmb_selectgbn.value);
- submit("TRLLF01501");
-
- }
-
- // 계산수식목록 초기값 조회
- function fGetResnCd(){
-
-
-
- }
-
-
- // 행추가
- function fInsRowAdd() {
-
- grd_calf.addRow();
- grd_calf.topRow = grd_calf.rows;
- }
-
- function fExeCancel() {
- //model.reset();
- model.removeNodeset("/root/main/resnlist");
- model.refresh();
- }
-
-
-
- // 사유코드유형 설정
- function fSetResnkind(){
- var rCol = grd_calf.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 fExecalf(){
-
-
- if(grd_calf.rows < 2){
- alert("저장 할 내용이 없습니다." ); // 할 수 없습니다.
- return;
- }
-
-
- var grdcalf = getGridUpdateData(grd_calf);
-
-
-
- model.setValue("/root/send/calfdata", grdcalf);
- model.refresh();
- submit("TXLLF01501");
-
- //model.reset();
- model.removeNodeset("/root/init");
- model.removeNodeset("/root/main/calflist");
- alert("저장되었습니다");
- fcalfList();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,451;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1181px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1180px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:183px; height:14px; ">검사항목별 수식정의 리스트</caption>
- <datagrid id="grd_calf" nodeset="/root/main/calflist" caption="검사코드^검사명^검체코드^검체명^인수개수^인수1^인수2^인수3^인수4^인수5^인수6^인수7^인수8^인수9^인수10^적용검사분류코드^적용검사개수^계산형식^계산식내용^숨길꺼seq" colwidth="65, 165, 65, 90, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 110, 60, 60, 150, 0" dataheight="30" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="40" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1180px; height:385px; ">
- <col ref="tclscd" type="input"/>
- <col ref="tclsnm"/>
- <col ref="spccd" type="input" style="text-align:center; "/>
- <col ref="spcnm"/>
- <col ref="acptcnt" type="input" style="text-align:center; "/>
- <col ref="acpt01" type="input"/>
- <col ref="acpt02" type="input"/>
- <col ref="acpt03" type="input"/>
- <col ref="acpt04" type="input"/>
- <col ref="acpt05" type="input"/>
- <col ref="acpt06" type="input"/>
- <col ref="acpt07" type="input"/>
- <col ref="acpt08" type="input"/>
- <col ref="acpt09" type="input"/>
- <col ref="acpt10" type="input"/>
- <col ref="apptclscd" type="input"/>
- <col ref="apptestcnt" visibility="hidden"/>
- <col ref="calformkind" visibility="hidden"/>
- <col ref="calformcnts" visibility="hidden"/>
- <col ref="resndispseq"/>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- if(grd_calf.col == 1){
- var ftclscd = grd_calf.textmatrix(grd_calf.row,grd_calf.col);
-
- // model.setValue("/root/main/calflist["+grd_calf.row+"]/tclscd", ftclscd);
- model.setValue("/root/send/t_spccd", "" );
- model.setValue("/root/send/t_tclscd", ftclscd );
- submit("TRLLF01601");
- //alert(model.getValue("/root/main/r_tclsnm"));
- model.setValue("/root/main/calflist["+grd_calf.row+"]/tclsnm", model.getValue("/root/main/return_nm/nm"));
- }else if(grd_calf.col == 3){
- var fspccd = grd_calf.textmatrix(grd_calf.row,grd_calf.col);
- // model.setValue("/root/main/calflist["+grd_calf.row+"]/tclscd", ftclscd);
- model.setValue("/root/send/t_tclscd", "" );
- model.setValue("/root/send/t_spccd", fspccd );
- submit("TRLLF01601");
- //alert(model.getValue("/root/main/r_tclsnm"));
- model.setValue("/root/main/calflist["+grd_calf.row+"]/spcnm", model.getValue("/root/main/return_nm/nm"));
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_calf.row > 0){
- textarea1.attribute("ref") = "/root/main/calflist["+ grd_calf.row +"]/calformcnts";
- }else{
- textarea1.attribute("ref") = "";
- }
- textarea1.refresh();
- ]]>
- </script>
- </datagrid>
- <group id="group1" style="left:0px; top:10px; width:1180px; height:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1170px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:1088px; y1:7px; x2:1080px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:610px; top:10px; width:90px; height:17px; ">조회구분 :</caption>
- <button id="btn_Ref" class="btn1_letter2" style="left:1093px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fcalfList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_selectgbn" ref="/root/hidden/selectgbn" class="combo_search" appearance="minimal" style="left:705px; top:9px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>검사분류</label>
- <value>1</value>
- </item>
- <item>
- <label>시행부서</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSelectGbn();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_select01" ref="/root/hidden/select01" class="combo_s_essential" appearance="minimal" style="left:800px; top:9px; width:110px; 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[
- fSetSelect02();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_select02" ref="/root/hidden/select02" class="combo_s_essential" appearance="minimal" style="left:915px; top:9px; width:153px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fcalfList();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_addrow" class="btn2_letter3" style="left:1112px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowAdd();
-
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:5px; top:470px; width:183px; height:13px; ">검사항목별 수식</caption>
- <textarea id="textarea1" style="left:0px; top:490px; width:1179px; height:225px; ">
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- if( grd_calf.row > 0 ){
- tmpCalstr = textarea1.value
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( grd_calf.row > 0){
- if(tmpCalstr != textarea1.value && grd_calf.rowStatus(grd_calf.row) == 0){
- grd_calf.addStatus(grd_calf.row, "update");
- }
- }
- ]]>
- </script>
- </textarea>
- <line id="line2" class="line_1" style="x1:0px; y1:485px; x2:1179px; y2:485px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1180px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1179px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1028px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExecalf();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1087px; 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:1165px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">계산결과 검사항목별 수식정의 관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|