123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF01200_검사표시순서관리.xrw
- * 설 명 : 검사표시순서관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2006.12.21
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <seqlist>
- <tclscd/>
- <tclsnm/>
- <tclskind/>
- <prcpdispseq/>
- <rsltdispseq/>
- </seqlist>
- <tclslist>
- <chk/>
- <tclscd/>
- <tclsnm/>
- <tclskind/>
- <prcpdispseq/>
- <rsltdispseq/>
- </tclslist>
- </main>
- <send>
- <codeflag/>
- <testlrgcd/>
- <testmdlcd/>
- <data1/>
- <userdeptflagcd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <testlrgcd>00</testlrgcd>
- <testmdlcd>00</testmdlcd>
- <seqradio>1</seqradio>
- <numrow/>
- <startnum/>
- </ref>
- <seqlist>
- <tclscd/>
- <tclsnm/>
- <tclskind/>
- <prcpdispseq/>
- <rsltdispseq/>
- </seqlist>
- <search>
- <selectgbn>1</selectgbn>
- </search>
- <select01/>
- <select02/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- tclslist.fixedcellcheckbox(0,1)=true;
- model.setValue("/root/send/codeflag", "0104|0102|0000|0111|0106|"); //0104 대분류 0102 중분류
- submit("TRLZZ00101");
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- model.setValue("/root/hidden/ref/seqradio", "2");
- //fviewlist();
-
- fSelectGbn();
- model.setValue("/root/hidden/search/selectgbn","1");
- model.refresh();
-
-
-
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB"/>
- <submission id="TRLLF01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tclslist"/>
- <submission id="TXLLF01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fGettclslist(){
- model.removeNodeset("/root/main/seqlist");
- model.removeNodeset("/root/main/tclslist");
- model.makeValue("/root/send/selectgbn", model.getValue("/root/hidden/search/selectgbn"));
- model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/select01"));
- model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/select02"));
-
- submit("TRLLF01201");
-
- }
-
-
-
- function fdatemove(){
- var equaldata = true;
- var row = seqlist.rows;
- for(i=1;i< tclslist.rows;i++){
- equaldata = true;
- if(model.getValue("/root/main/tclslist["+i+"]/chk") == 'Y'){
- for(j=1 ; j<seqlist.rows ; j++){
- if(model.getValue("/root/main/tclslist["+i+"]/tclscd") == model.getValue("/root/main/seqlist["+j+"]/tclscd")){
- equaldata = false;
- }
- }
- if(equaldata == false){
- alert(model.getValue("/root/main/tclslist["+i+"]/tclsnm")+" 항목은 이미 선택되었습니다.");
- }
- else{
- seqlist.addRow(false);
- model.makeNode("/root/main/seqlist["+row+"]/tclscd");
- model.makeNode("/root/main/seqlist["+row+"]/tclsnm");
- model.makeNode("/root/main/seqlist["+row+"]/spccd");
- model.makeNode("/root/main/seqlist["+row+"]/spcnm");
- model.makeNode("/root/main/seqlist["+row+"]/tclskind");
- model.setValue("/root/main/seqlist["+row+"]/tclscd",model.getValue("/root/main/tclslist["+i+"]/tclscd"));
- model.setValue("/root/main/seqlist["+row+"]/tclsnm",model.getValue("/root/main/tclslist["+i+"]/tclsnm"));
- model.setValue("/root/main/seqlist["+row+"]/tclskind",model.getValue("/root/main/tclslist["+i+"]/tclskind"));
- //model.setValue("/root/main/seqlist["+row+"]/prcpdispseq",model.getValue("/root/main/tclslist["+i+"]/prcpdispseq"));
- //model.setValue("/root/main/seqlist["+row+"]/rsltdispseq",model.getValue("/root/main/tclslist["+i+"]/rsltdispseq"));
- row++;
- }
- }
- tclslist.rowStatus(i)=0;
- model.setValue("/root/main/tclslist["+i+"]/chk", "N");
- }
- seqlist.refresh();
- }
-
-
- function fInsRowdel(i) {
- if(i==1){
- var row = seqlist.row;
- seqlist.deleteItem(row);
- }
- else{
- model.removeNodeset("/root/main/seqlist");
- seqlist.rebuild();
- }
- }
-
- function fExeEqmtSave() {
- for(i=1;i<seqlist.rows ; i++){
- seqlist.rowStatus(i) = 2;
- }
- model.setValue("/root/send/data1", seqlist.getUpdateData());
- submit("TXLLF01201");
- fGettclslist();
- fInsRowdel(2);
- }
-
- function ftestcombo(){
- var CD = model.getValue("/root/hidden/ref/testlrgcd");
- if(CD == "00"){
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- model.setvalue("/root/hidden/ref/testmdlcd" , "00");
- testmdlcd.disabled = true;
- }
- else{
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ CD +"']";
- model.setvalue("/root/hidden/ref/testmdlcd" , "00");
- testmdlcd.disabled = false;
- }
- testmdlcd.refresh();
- }
-
- function fviewlist() {
- if(model.getValue("/root/hidden/ref/seqradio")=="1"){
- seqlist.colHidden(4) = false;
- seqlist.colHidden(5) = true;
- }
- else{
- seqlist.colHidden(4) = true;
- seqlist.colHidden(5) = false;
- }
- model.refresh();
- }
-
- function fvalmove(){
-
- if(event.keyCode == "13"){
- var inputval = parseInt(input1.currentText);
- var setrow = seqlist.row;
- if(setrow == -1){
- alert("이동할 행을 선택하십시오");
- return;
- }
- if(inputval > 0 && inputval < seqlist.rows){
- if(setrow<=inputval){
- model.copyNode("/root/hidden/seqlist" , "/root/main/seqlist["+setrow+"]");
- seqlist.insertRow(inputval,"below", false);
- model.copyNode("/root/main/seqlist["+seqlist.row+"]", "/root/hidden/seqlist");
- seqlist.deleteItem(setrow);
- }
- else{
- model.copyNode("/root/hidden/seqlist" , "/root/main/seqlist["+setrow+"]");
- seqlist.insertRow(inputval,"below", false);
- model.copyNode("/root/main/seqlist["+(inputval+1)+"]", "/root/main/seqlist["+(inputval)+"]");
- model.copyNode("/root/main/seqlist["+(inputval)+"]", "/root/hidden/seqlist");
- seqlist.deleteItem(setrow+1);
- }
- seqlist.rebuild();
- seqlist.row = inputval;
- }
- else{
- alert("행범위가 알맞지 않습니다.");
- }
- }
- }
-
- function fuprow(){
- if(seqlist.row==1){
- alert("첫번째 행입니다.")
- }
- else{
- seqlist.insertRow(seqlist.row,"below", false);
- model.copyNode("/root/main/seqlist["+seqlist.row+"]","/root/main/seqlist["+(seqlist.row-2)+"]");
- seqlist.deleteItem(seqlist.row-2);
- }
- }
-
- function fdownrow(){
- if((seqlist.row+1)==seqlist.rows){
- alert("마지막 행입니다.");
- }
- else{
- model.copyNode("/root/hidden/seqlist" , "/root/main/seqlist["+(seqlist.row)+"]");
- model.copyNode("/root/main/seqlist["+(seqlist.row)+"]" , "/root/main/seqlist["+(seqlist.row+1)+"]");
- model.copyNode("/root/main/seqlist["+(seqlist.row+1)+"]", "/root/hidden/seqlist");
- var num = seqlist.row
- seqlist.rebuild();
- seqlist.row=num+1;
- }
-
- }
-
- function fsetseq(){
- if(event.keyCode == "13"){
- var inputval = input2.currentText;
- if(model.getValue("/root/hidden/ref/seqradio")=='1'){
- for(i=1; i<seqlist.rows; i++){
- model.setValue("/root/main/seqlist["+i+"]/prcpdispseq", inputval);
- inputval++;
- }
- }
- else{
- for(i=1; i<seqlist.rows; i++){
- model.setValue("/root/main/seqlist["+i+"]/rsltdispseq", inputval);
- inputval++;
- }
- }
- }
-
-
- }
-
- function fSelectGbn(){
- //검사분류 선택
- if(cmb_selectgbn.value == "1"){
- //첫번째 콤보에 대분류 셋팅
- testlrgcd.choices.itemset.attribute("nodeset") = "/root/init/LB0104";
- //두번째 콤보에 중분류 셋팅
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
-
- }
- //시행부서 선택
- else if(cmb_selectgbn.value == "2"){
- //첫번째 콤보에 계코드 셋팅
- testlrgcd.choices.itemset.attribute("nodeset") = "/root/init/LB0111";
- //두번째 콤보에 검사계코드 셋팅
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- }
- model.setvalue("/root/hidden/select01", "00");
- model.setvalue("/root/hidden/select02", "00");
-
- testlrgcd.refresh();
- testmdlcd.refresh();
- }
-
- //첫번째 콤보 선택시, 두번째 콤보 셋팅
- function fSetSelect02(){
- var select01 = model.getvalue("/root/hidden/select01");
-
- //검사분류선택
- if(cmb_selectgbn.value == "1"){
- if(select01 == "00"){
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- }
- else{
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ select01 +"']";
- }
- //model.setValue("/root/hidden/select01" , "00");
- testmdlcd.refresh();
-
- }
- //시행부서 선택
- else if(cmb_selectgbn.value == "2"){
- if(select01 == "00"){
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- }
- else{
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ select01 +"']";
- }
- //model.setValue("/root/hidden/select02" , "00");
- testmdlcd.refresh();
-
- }
- }
-
-
-
- ]]>
- </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:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:595px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:13px; ">권한목록</caption>
- <caption id="caption3" class="tit_2" style="left:665px; top:55px; width:131px; height:14px; ">권한목록</caption>
- <line id="line2" class="line_1" style="x1:665px; y1:70px; x2:1194px; y2:70px; "/>
- <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:1113px; y1:7px; x2:1113px; y2:29px; "/>
- <button id="button3" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fGettclslist();
-
- ]]>
- </script>
- </button>
- <select1 id="seqradio" ref="/root/hidden/ref/seqradio" visibility="hidden" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:80px; top:10px; width:160px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>처방순서</label>
- <value>1</value>
- </item>
- <item>
- <label>결과순서</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fviewlist();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_selectgbn" ref="/root/hidden/search/selectgbn" class="combo_search" visibility="visible" appearance="minimal" style="left:685px; top:10px; 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>
- </group>
- <button id="button1" class="btn2_letter3" style="left:475px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowdel(1);
- ]]>
- </script>
- </button>
- <button id="button102" class="icon_left" style="left:617px; top:380px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fdatemove();
- ]]>
- </script>
- </button>
- <datagrid id="seqlist" nodeset="/root/main/seqlist" caption="검사코드^검사명^검사구분^처방순서^결과순서" colsep="^" colwidth="100, 250, 122, 100, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:595px; height:667px; ">
- <col ref="tclscd"/>
- <col ref="tclsnm"/>
- <col ref="tclskind"/>
- <col ref="prcpdispseq" type="input" visibility="hidden"/>
- <col ref="rsltdispseq" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- seqlist.gridToInstance();
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="tclslist" nodeset="/root/main/tclslist" caption="^검사코드^검사명^검사구분^처방순서^결과순서" colsep="^" colwidth="30, 100, 250, 126, 50, 50" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:665px; top:75px; width:529px; height:667px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="tclscd"/>
- <col ref="tclsnm"/>
- <col ref="tclskind"/>
- <col ref="prcpdispseq"/>
- <col ref="rsltdispseq"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- tclslist.gridToInstance();
-
- ]]>
- </script>
- </datagrid>
- <button id="button104" class="icon_top" style="left:95px; top:50px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fuprow();
- ]]>
- </script>
- </button>
- <button id="button105" class="icon_bottom" style="left:125px; top:50px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fdownrow();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/hidden/ref/numrow" style="left:155px; top:50px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fvalmove();
- ]]>
- </script>
- </input>
- <caption id="caption5" style="left:320px; top:50px; width:55px; height:19px; text-align:center; ">시작번호</caption>
- <input id="input2" ref="/root/hidden/ref/startnum" style="left:375px; top:50px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fsetseq();
- ]]>
- </script>
- </input>
- <button id="button117" class="btn2_letter4" style="left:531px; top:49px; width:64px; height:19px; ">
- <caption>전체삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowdel(2);
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.reset();
- ]]>
- </script>
- </button>
- <button id="button11" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtSave();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </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>
- <select1 id="testlrgcd" ref="/root/hidden/select01" appearance="minimal" itemcount="10" style="left:785px; top:60px; width:150px; 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[
-
- fSetSelect02();
- ]]>
- </script>
- </select1>
- <select1 id="testmdlcd" ref="/root/hidden/select02" appearance="minimal" itemcount="10" style="left:945px; top:60px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fGettclslist();
- //fviewlist();
-
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:595px; top:59px; width:90px; height:17px; ">검사분류 :</caption>
- <caption id="caption4" class="search_name" visibility="hidden" style="left:10px; top:59px; width:65px; height:17px; ">구분 :</caption>
- </xhtml:body>
- </xhtml:html>
|