123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF01900_처방표시그룹관리.xrw
- * 설 명 : 처방표시그룹관리
- * 설 계 자 : (주)에이씨케이 - 윤재한
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2007.09.06
- * 수정이력 :
- * 기 타 :
- -->
- <?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>처방표시그룹관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <getdiagtestprcpcls>
- <prcpgrupnm/>
- <prcpgrupcd/>
- <seq/>
- </getdiagtestprcpcls>
- <getchoitestcd>
- <mdlnm/>
- <tclscd/>
- <tclsnm/>
- <tclskind/>
- <ordinptflag/>
- <prcppossyn/>
- <seq/>
- </getchoitestcd>
- <gettestcd>
- <chk/>
- <mdlnm/>
- <tclscd/>
- <tclsnm/>
- <tclskind/>
- <ordinptflag/>
- <prcppossyn/>
- <seq/>
- </gettestcd>
- </main>
- <send>
- <codeflag/>
- <userdeptflagcd/>
- <lrgcd/>
- <mdlcd/>
- <refflag/>
- <prcpgrupcd/>
- <testdata/>
- <diagdata/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <lrgcd/>
- <mdlcd>
- <cd/>
- <nm/>
- </mdlcd>
- </ref>
- <getchoitestcd/>
- <getdiagtestprcpcls/>
- </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[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLZZ00101" ref="/root/send/codeflag" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/LB"/>
- <submission id="TRLLF01901" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/getdiagtestprcpcls"/>
- <submission id="TRLLF01902" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/gettestcd"/>
- <submission id="TRLLF01903" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/getchoitestcd"/>
- <submission id="TXLLF01901" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSetInit() {
- model.setValue("/root/hidden/ref/lrgcd", "00");
- model.setValue("/root/hidden/ref/mdlcd/cd", "00");
-
- model.setValue("/root/send/codeflag", "0104|0102|0000|");
- submit("TRLZZ00101");
-
- model.removeNodeset("/root/main/getdiagtestprcpcls");
- model.removeNodeset("/root/main/getchoitestcd");
- model.removeNodeset("/root/main/gettestcd");
-
- fGetTestCd();
-
- grd_testcd.fixedcellcheckbox(0, 1) = true;
-
- model.refresh();
- }
-
- //대분류에 따른 중분류
- function fSetLrgCd(){
- 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();
-
- fGetTestCd();
- }
-
- //진단검사 리스트 조회
- function fGetDiagTestPrcpCls() {
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- submit("TRLLF01901");
-
- model.refresh();
- }
-
- //검사코드 조회
- function fGetTestCd() {
- model.setValue("/root/send/lrgcd", model.getValue("/root/hidden/ref/lrgcd"));
- model.setValue("/root/send/mdlcd", model.getValue("/root/hidden/ref/mdlcd/cd"));
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- submit("TRLLF01902");
-
- model.refresh();
- }
-
- //선책검사코드 조회
- function fGetChoiTestCd() {
- model.setValue("/root/send/prcpgrupcd", model.getValue("/root/main/getdiagtestprcpcls["+ grd_diagtestprcpcls.row +"]/prcpgrupcd"));
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- submit("TRLLF01903");
-
- model.refresh();
- }
-
- //올리기
- function fUpDiagRow(){
- var num = grd_diagtestprcpcls.row;
-
- if(num == 1){
- alert("첫번째 행입니다.")
- } else{
- copyNodeType("/root/hidden/getdiagtestprcpcls", "/root/main/getdiagtestprcpcls["+ (num-1) +"]");
- model.setValue("/root/hidden/getdiagtestprcpcls/seq", model.getValue("/root/main/getdiagtestprcpcls["+ num +"]/seq")); //순서
- model.setValue("/root/main/getdiagtestprcpcls["+ num +"]/seq", model.getValue("/root/main/getdiagtestprcpcls["+ (num-1) +"]/seq"));
- copyNodeType("/root/main/getdiagtestprcpcls["+ (num-1) +"]", "/root/main/getdiagtestprcpcls["+ num +"]");
- copyNodeType("/root/main/getdiagtestprcpcls["+ num +"]", "/root/hidden/getdiagtestprcpcls");
- }
- model.refresh();
- grd_diagtestprcpcls.row = (num-1);
- }
-
- //내리기
- function fDownDiagRow(){
- var num = grd_diagtestprcpcls.row;
-
- if((num+1) == grd_diagtestprcpcls.rows){
- alert("마지막 행입니다.");
- }
- else{
- copyNodeType("/root/hidden/getdiagtestprcpcls", "/root/main/getdiagtestprcpcls["+ (num+1) +"]");
- model.setValue("/root/hidden/getdiagtestprcpcls/seq", model.getValue("/root/main/getdiagtestprcpcls["+ num +"]/seq"));//순서
- model.setValue("/root/main/getdiagtestprcpcls["+ num +"]/seq", model.getValue("/root/main/getdiagtestprcpcls["+ (num+1) +"]/seq"));
- copyNodeType("/root/main/getdiagtestprcpcls["+ (num+1) +"]", "/root/main/getdiagtestprcpcls["+ num +"]");
- copyNodeType("/root/main/getdiagtestprcpcls["+ num +"]", "/root/hidden/getdiagtestprcpcls");
- }
- model.refresh();
- grd_diagtestprcpcls.row = (num+1);
- }
-
- //올리기
- function fUpChoiRow(){
- var num = grd_choitestcd.row;
-
- if(num == 1){
- alert("첫번째 행입니다.")
- } else{
- copyNodeType("/root/hidden/getchoitestcd", "/root/main/getchoitestcd["+ (num-1) +"]");
- model.setValue("/root/hidden/getchoitestcd/seq", model.getValue("/root/main/getchoitestcd["+ num +"]/seq")); //순서
- model.setValue("/root/main/getchoitestcd["+ num +"]/seq", model.getValue("/root/main/getchoitestcd["+ (num-1) +"]/seq"));
- copyNodeType("/root/main/getchoitestcd["+ (num-1) +"]", "/root/main/getchoitestcd["+ num +"]");
- copyNodeType("/root/main/getchoitestcd["+ num +"]", "/root/hidden/getchoitestcd");
- }
- model.refresh();
- grd_choitestcd.row = (num-1);
- }
-
- //내리기
- function fDownChoiRow(){
- var num = grd_choitestcd.row;
-
- if((num+1) == grd_choitestcd.rows){
- alert("마지막 행입니다.");
- }
- else{
- copyNodeType("/root/hidden/getchoitestcd", "/root/main/getchoitestcd["+ (num+1) +"]");
- model.setValue("/root/hidden/getchoitestcd/seq", model.getValue("/root/main/getchoitestcd["+ num +"]/seq"));//순서
- model.setValue("/root/main/getchoitestcd["+ num +"]/seq", model.getValue("/root/main/getchoitestcd["+ (num+1) +"]/seq"));
- copyNodeType("/root/main/getchoitestcd["+ (num+1) +"]", "/root/main/getchoitestcd["+ num +"]");
- copyNodeType("/root/main/getchoitestcd["+ num +"]", "/root/hidden/getchoitestcd");
- }
- model.refresh();
- grd_choitestcd.row = (num+1);
- }
-
- //행삭제
- function fDelRow() {
- grd_choitestcd.deleteItem(grd_choitestcd.row);
- }
-
- //행추가
- function fAddRow() {
- grd_diagtestprcpcls.addItem();
-
- var one = model.getValue("/root/main/getdiagtestprcpcls[1]/prcpgrupcd");
- one = parseInt(one);
- var the = one;
-
- for(i = 1; i < grd_diagtestprcpcls.rows; i++) {
- var two = model.getValue("/root/main/getdiagtestprcpcls["+ i +"]/prcpgrupcd");
- two = parseInt(two);
-
- if(the < two) {
- the = two;
- }
- }
-
- var num = grd_diagtestprcpcls.row;
- var seq = model.getValue("/root/main/getdiagtestprcpcls["+ (num-1) +"]/seq");
- seq = parseInt(seq);
-
- model.setValue("/root/main/getdiagtestprcpcls["+ num +"]/prcpgrupcd", (the+1));
- model.setValue("/root/main/getdiagtestprcpcls["+ num +"]/seq", (seq + 1));
- }
-
- //선택검사코드로 옮기기
- function fDateMove() {
- var num = grd_choitestcd.rows;
- var seq = model.getValue("/root/main/getchoitestcd["+ (num-1) +"]/seq");
-
- for(i = 1; i < grd_testcd.rows; i++) {
- var find = grd_testcd.findRow("Y", i, 1, true, true);
- var testcd = model.getValue("/root/main/gettestcd["+ find +"]/tclscd");
-
- if(find < 0) {
- return;
- }
-
- if(grd_choitestcd.findRow(testcd, i, 2, true, true) > 0) {
- alert("이미 선택된 코드입니다.");
- }else {
- grd_choitestcd.addRow(false);
- model.makeNode("/root/main/getchoitestcd["+ num +"]");
- copyNodeType("/root/main/getchoitestcd["+ num +"]", "/root/main/gettestcd["+ find +"]");
- model.setValue("/root/main/getchoitestcd["+ num +"]/seq", ++seq);
-
- num++;
-
- model.refresh();
- }
- i = find;
- }
- }
-
- //저장
- function fSetDiagTestPrcpCls() {
- for(i = 1; i < grd_choitestcd.rows; i++) {
- grd_choitestcd.rowStatus(i) = 1;
- }
-
- for(i = 1; i < grd_diagtestprcpcls.rows; i++) {
- grd_diagtestprcpcls.rowStatus(i) = 1;
- }
-
- model.setValue("/root/send/testdata", getGridUpdateData(grd_choitestcd));
- model.setValue("/root/send/diagdata", getGridUpdateData(grd_diagtestprcpcls));
- model.setValue("/root/send/prcpgrupcd", model.getValue("/root/main/getdiagtestprcpcls["+ grd_diagtestprcpcls.row +"]/prcpgrupcd"));
-
- if(submit("TXLLF01901")) {
- model.removeNodeset("/root/main/getchoitestcd");
- }
-
- fGetDiagTestPrcpCls();
- model.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; ">
- <select1 id="cmb_lrgcd" ref="/root/hidden/ref/lrgcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:868px; top:49px; 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[
- fSetLrgCd();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdlcd" ref="/root/hidden/ref/mdlcd/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:1033px; top:49px; width:162px; 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[
- fGetTestCd();
- ]]>
- </script>
- </select1>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:340px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">처방분류</caption>
- <caption id="caption3" class="tit_2" style="left:795px; top:55px; width:70px; height:14px; ">검사코드</caption>
- <line id="line2" class="line_1" style="x1:797px; y1:70px; x2:1195px; 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="btn_ref" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetDiagTestPrcpCls();
- ]]>
- </script>
- </button>
- </group>
- <button id="rtn_delete" class="btn2_letter3" style="left:690px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelRow();
- ]]>
- </script>
- </button>
- <datagrid id="grd_diagtestprcpcls" nodeset="/root/main/getdiagtestprcpcls" caption="진단검사 처방분류^표시순서^prcpgrupcd" colwidth="261, 56, 0" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:340px; height:667px; ">
- <col ref="prcpgrupnm" type="input"/>
- <col ref="seq"/>
- <col ref="prcpgrupcd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetChoiTestCd();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_diagtestprcpcls.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_choiup" class="icon_top" style="left:630px; top:49px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fUpChoiRow();
- ]]>
- </script>
- </button>
- <button id="btn_choidown" class="icon_bottom" style="left:660px; top:49px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDownChoiRow();
- ]]>
- </script>
- </button>
- <button id="btn_move" class="icon_left" style="left:758px; top:380px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDateMove();
- ]]>
- </script>
- </button>
- <datagrid id="grd_choitestcd" nodeset="/root/main/getchoitestcd" caption="중분류명^검사코드^검사명^표시순서^검사구분^수가처방가능여부^처방가능여부^seq" colwidth="83, 58, 177, 56, 69, 110, 79, 0" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:345px; top:75px; width:398px; height:667px; text-align:center; ">
- <col ref="mdlnm"/>
- <col ref="tclscd"/>
- <col ref="tclsnm" style="text-align:left; "/>
- <col ref="seq"/>
- <col ref="tclskind"/>
- <col ref="ordinptflag"/>
- <col ref="prcppossyn"/>
- <col ref="seq"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_choitestcd.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:345px; y1:70px; x2:743px; y2:70px; "/>
- <caption id="caption2" class="tit_2" style="left:345px; top:55px; width:131px; height:14px; ">선택검사코드</caption>
- <datagrid id="grd_testcd" nodeset="/root/main/gettestcd" caption="^중분류명^검사코드^검사명^검사구분^수가처방가능여부^처방가능여부" colwidth="30, 83, 58, 188, 69, 110, 79" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:797px; top:75px; width:398px; height:667px; text-align:center; ">
- <col ref="chk" type="checkbox" checkvalue="Y,N"/>
- <col ref="mdlnm"/>
- <col ref="tclscd"/>
- <col ref="tclsnm" style="text-align:left; "/>
- <col ref="tclskind"/>
- <col ref="ordinptflag"/>
- <col ref="prcppossyn"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_testcd.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_diagdown" class="icon_bottom" style="left:258px; top:50px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDownDiagRow();
- ]]>
- </script>
- </button>
- <button id="btn_diagup" class="icon_top" style="left:228px; top:50px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fUpDiagRow();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:287px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRow();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <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>
- <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[
- fSetDiagTestPrcpCls();
- ]]>
- </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>
- </xhtml:body>
- </xhtml:html>
|