123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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 xmlns="">
- <main>
- <cmpylst>
- <item>
- <cmpycd/>
- <cmpynm/>
- </item>
- </cmpylst>
- <sicklst>
- <item>
- <sickcdkey/>
- <sickcd/>
- <sicknm/>
- <judgcd/>
- <mappsickcd/>
- <lastupdtrid/>
- <lastupdtdt/>
- <sickcdcnts/>
- </item>
- </sicklst>
- </main>
- <send>
- <srchcmpycd/>
- <srchcmpycd2/>
- <srchcmpynm/>
- <srchsickcd/>
- <srchsicknm/>
- <srchinstcd/>
- <srchcond/>
- <save>
- <savesickcd/>
- <cmpycd/>
- <instcd/>
- <userid/>
- </save>
- <cmpymatch>
- <cmpycd/>
- </cmpymatch>
- </send>
- <init>
- <allchk>
- <chk/>
- </allchk>
- </init>
- <hidden>
- </hidden>
- <target/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <submission id="TRAHB02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cmpylst"/>
- <submission id="TRAHB02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sicklst"/>
- <submission id="TRAHB02403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpymatch" replace="instance" resultref="/root/main/sicklst"/>
- <submission id="TXAHB02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
- <bind id="bind_sickcd" ref="/root/main/sicklst/item/sickcd" readonly="../sickcdkey!=''"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetCmpyList();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fInit(bAll) {
- if(bAll == true) {
- model.removeNodeset("/root/main/cmpylst/item");
- }
- model.removeNodeset("/root/main/sicklst/item");
- }
-
- function fGetCmpyList() {
- fInit(true);
-
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/srchcond", "N");
- if( ( model.getValue("/root/send/srchsickcd") != "" ) || ( model.getValue("/root/send/srchsicknm") != "" ) ) {
- model.setValue("/root/send/srchcond", "Y");
- }
- submit("TRAHB02401");
-
- if((model.getValue("/root/send/srchcmpycd") == "") && (model.getValue("/root/send/srchcmpynm") == "")){
- // 20100405 JHP 추가 시작
- model.setValue("/root/init/allchk/chk","ALL");
- model.setValue("/root/send/cmpymatch/cmpycd", "A");
- submit("TRAHB02403");
- // 20100405 JHP 추가 끝
- }
- }
-
- function fGetSickList() {
- fInit(false);
- var idx = grd_cmpylst.row;
- if( idx < 1) return ;
- var vCmpycd = model.getValue("/root/main/cmpylst/item[" + idx + "]/cmpycd" );
-
- model.setValue("/root/send/srchcmpycd2", vCmpycd);
- model.setValue("/root/send/srchinstcd",getUserInfo("dutplceinstcd"));
- submit("TRAHB02402");
-
- }
-
-
- function fSaveSickCd() {
- if( ! getGridUpdateData(grd_sicklst) )
- {
- alert("저장할 내역이 없습니다.");
- return ;
- }
-
- var ret = false;
- if ( messageBox("질환코드정보를","Q002")==6 ) {
- var idx = grd_cmpylst.row;
- //if( idx < 1) return ;
- var vCmpycd = model.getValue("/root/main/cmpylst/item[" + idx + "]/cmpycd" );
- if( vCmpycd == ""){
- model.setValue("/root/send/save/cmpycd", getUserInfo("dutplceinstcd"));
- }else{
- var allyn = model.getValue("/root/init/allchk/chk");
- if(allyn == "ALL"){
- model.setValue("/root/send/save/cmpycd", getUserInfo("dutplceinstcd"));
- }else if(allyn == "NOT"){
- model.setValue("/root/send/save/cmpycd", vCmpycd);
- }else{
- alert("사업체확인요청");
- return;
- }
- }
- model.setValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/save/userid", getUserInfo("posuserid") );
- model.setValue("/root/send/save/savesickcd", grd_sicklst.getUpdateData());
- ret = submit("TXAHB02401");
- }
- return ret;
- }
-
- /**
- function fSaveSickCd() {
- if( messageBox("질환코드정보를","Q002") == 6){
- var idx = grd_cmpylst.row;
- if( idx < 1) return ;
- var vCmpycd = model.getValue("/root/main/cmpylst/item[" + idx + "]/cmpycd" );
- if( vCmpycd == "") return ;
-
- model.setValue("/root/send/save/cmpycd", vCmpycd);
- model.setValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/save/userid", getUserInfo("posuserid") );
- model.setValue("/root/send/save/savesickcd", grd_sicklst.getUpdateData());
- submit("TXAHB02401");
- }
- }
- */
- function fExcelUpload(){
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(fileName != "") {
- grd_sicklst.loadExcel(fileName, 1, true);
- var cnt = grd_sicklst.rows;
- var i = 0;
- for( i = 1; i < cnt +1 ; i++)
- {
- grd_sicklst.addStatus(i, "insert");
- }
- grd_sicklst.deleteRow(1);
- grd_sicklst.refresh();
- }
- }
-
- // 수정이력 : 20100331 JHP 사업체선택시 사업체에 해당하는 질환코드만 보여주는함수. 추가
- function fGetCmpyMatchSickList(){
- var row = grd_cmpylst.row;
- if(row <= 0){
- }else{
- var cmpycd = model.getValue("/root/main/cmpylst/item[" + row + "]/cmpycd")
- if(cmpycd == "" || cmpycd == " " || cmpycd == null){
- }else{
- model.setValue("/root/send/cmpymatch/cmpycd",model.getValue("/root/main/cmpylst/item[" + row + "]/cmpycd"));
- submit("TRAHB02403");
- }
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">질환코드 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:82px; height:14px; ">사업체정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:534px; y2:70px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCmpyList();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:99px; height:17px; ">사업체코드 :</caption>
- <caption id="caption4" class="search_name" style="left:250px; top:9px; width:86px; height:17px; ">사업체명 :</caption>
- <input id="ipt_cmpycd" ref="/root/send/srchcmpycd" class="input_search" style="left:115px; top:8px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_cmpynm" ref="/root/send/srchcmpynm" class="input_search" style="left:339px; top:8px; width:175px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption21" class="search_name" style="left:803px; top:9px; width:73px; height:17px; ">질환명 :</caption>
- <caption id="caption59" class="search_name" style="left:534px; top:9px; width:86px; height:17px; ">질환코드 :</caption>
- <input id="ipt_sickcd" ref="/root/send/srchsickcd" class="input_search" style="left:623px; top:8px; width:155px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_sicknm" ref="/root/send/srchsicknm" class="input_search" style="left:880px; top:8px; width:215px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="grd_cmpylst" nodeset="/root/main/cmpylst/item" caption="사업체코드^사업체명" colsep="^" colwidth="103, 359" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:534px; height:663px; ">
- <col ref="cmpycd"/>
- <col ref="cmpynm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // fGetSickList();
- // 수정이력 : 20100331 JHP 사업체선택시 사업체에 해당하는 질환코드만 보여주는함수. 추가
- model.setValue("/root/init/allchk/chk","NOT");
- fGetCmpyMatchSickList();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:544px; top:55px; width:78px; height:13px; ">질환코드</caption>
- <line id="line2" class="line_1" style="x1:539px; y1:70px; x2:1193px; y2:70px; "/>
- <button id="btn_del" class="btn2_letter3" style="left:1061px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_sicklst.addStatus(grd_sicklst.row, "delete");
- deleteSelectedRows(grd_sicklst,true);
- ]]>
- </script>
- </button>
- <button id="btn_add" class="btn2_letter3" style="left:1005px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_sicklst.addRow();
- grd_sicklst.col= 2;
- grd_sicklst.editCell();
- ]]>
- </script>
- </button>
- <datagrid id="grd_sicklst" nodeset="/root/main/sicklst/item" caption="codekey^질환코드^질환코드명^판정코드^질환코드소견^매핑질환코드^최종수정자^최종수정일시" colsep="^" colwidth="57, 83, 236, 72, 107, 122, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:539px; top:75px; width:654px; height:663px; ">
- <col ref="sickcdkey" visibility="hidden"/>
- <col ref="sickcd" type="input"/>
- <col ref="sicknm" type="input"/>
- <col ref="judgcd" type="combo">
- <choices>
- <item>
- <label>A</label>
- <value>A</value>
- </item>
- <item>
- <label>B</label>
- <value>B</value>
- </item>
- <item>
- <label>C</label>
- <value>C</value>
- </item>
- <item>
- <label>D</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="sickcdcnts" type="input"/>
- <col ref="mappsickcd" type="input"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if( event.keyCode == 13 ) {
- if( grd_sicklst.col == 2 ){
- grd_sicklst.col = 3 ;
- grd_sicklst.editCell();
- }
- else
- if( grd_sicklst.col == 3 ){
- grd_sicklst.addRow();
- grd_sicklst.col = 2 ;
- grd_sicklst.editCell();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- if( grd_sicklst.colType(grd_sicklst.col) == "input" ){
- grd_sicklst.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_fileupload" class="btn2_letter5" style="left:1117px; top:50px; width:75px; height:19px; ">
- <caption>파일업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcelUpload();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn5_letter6" style="left:620px; top:50px; width:81px; height:19px; ">
- <caption>질환전체보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/init/allchk/chk","ALL");
- model.setValue("/root/send/cmpymatch/cmpycd", "A");
- submit("TRAHB02403");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fSaveSickCd() == true ){
- fGetSickList();
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1125px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSickList();
- ]]>
- </script>
- </button>
- <caption id="caption5" style="left:4px; top:1px; width:208px; height:20px; font-size:8pt; font-weight:bold; color:#ff0000; ">* 질환은 사업체별로 관리되어집니다.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|