123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHB01400.xrw
- * 설 명 : 기관및판정의관리
- * 설 계 자 :
- * 작 성 자 :
- * 작 성 일 : 2007.08.01
- * 수정이력 : 2007.10.04 김다영 화면권한추가
- * 기 타 :
- -->
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <srchassoflag>01</srchassoflag>
- <srchinstcd/>
- <save>
- <saveasso/>
- <savedrlist/>
- <assoflag/>
- <instcd/>
- <userid/>
- </save>
- </send>
- <main>
- <drlist>
- <item>
- <healexamflag/>
- <healexamdetlflag/>
- <drid/>
- <drnm/>
- <drlicnsno/>
- <useyn/>
- <meddryn/>
- <judgdryn/>
- <cnstdryn/>
- <healexamflagkey/>
- <healexamdetlflagkey/>
- </item>
- </drlist>
- <assolist>
- <item>
- <assocd/>
- <assonm/>
- <telno/>
- <faxno/>
- <zipcd1/>
- <zipcd2/>
- <detladdr/>
- <zipcdseq/>
- </item>
- </assolist>
- </main>
- <init>
- <baseinfo>
- <assocd/>
- <healexamflaglst/>
- <ghealexamdetlflaglst/>
- <chealexamdetlflaglst/>
- <healexamdetlflaglst>
- <item/>
- </healexamdetlflaglst>
- </baseinfo>
- </init>
- <hidden/>
- <case_mode/>
- <temp>
- <addr>
- <zipcd1/>
- <zipcd2/>
- <addr/>
- <zipcdseq/>
- </addr>
- </temp>
- </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"/>
- <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <!-- <submission id="TRAHB00201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/inqrlst"/>
- <submission id="TRZBC00101"/> -->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면권한추가
- btn_search.disabled = ! checkAuth("R");
- btn_save.disabled = ! checkAuth("X");
- btn_print.disabled = ! checkAuth("P");
-
- fGetBaseInfo();
- model.removeNodeset("/root/main/assolist");
- model.removeNodeset("/root/main/drlist");
- rdo_asso.dispatch("xforms-select");
- model.refresh();
- ]]>
- </script>
- <submission id="TRAHA03131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/assolist"/>
- <submission id="TRAHA03132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drlist"/>
- <submission id="TXAHA03131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAHA03132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
- <submission id="TRZBC00101"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fGetBaseInfo(){
- // 건진기관구분
- zbcfGetCodeList( new Array("A0114","A0068","A0069","A0070"),
- new Array("/root/init/baseinfo/assocd"
- ,"/root/init/baseinfo/healexamflaglst"
- ,"/root/init/baseinfo/chealexamdetlflaglst"
- ,"/root/init/baseinfo/ghealexamdetlflaglst") );
- submit("TRZBC00101");
-
- copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item","/root/init/baseinfo/chealexamdetlflaglst/A0069", "after");
- copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item","/root/init/baseinfo/ghealexamdetlflaglst/A0070", "after");
-
- }
-
- function fGetAssoLst(){
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
- // alerone(); -> 화면중앙에 조회건수 msg 띄울때....
- submit("TRAHA03131");
- }
-
- function fGetDrLst(){
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
- submit("TRAHA03132");
- }
-
- function fSaveAssoCd() {
- if( messageBox("조합코드정보를","Q002") == 6){
-
- var tmp = model.getvalue("/root/send/srchassoflag")
-
- model.setValue("/root/send/save/assoflag", tmp);
- model.setValue("/root/send/save/instcd", getUserInfo("posinstcd"));
- model.setValue("/root/send/save/userid", getUserInfo("userid"));
- model.setValue("/root/send/save/saveasso", grd_asso.getUpdateData());
-
- if (submit("TXAHA03131")){
- fGetAssoLst();
- }
- }
- }
-
- function fSaveDr() {
- if( messageBox("판정의 정보를","Q002") == 6){
-
- model.setValue("/root/send/save/instcd" , getUserInfo("posinstcd"));
- model.setValue("/root/send/save/userid" , getUserInfo("userid"));
- model.setValue("/root/send/save/savedrlist", grd_dr.getUpdateData());
-
- if (submit("TXAHA03132")){
- fGetDrLst();
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1196;" 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; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:64px; height:17px; ">구분 :</caption>
- <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[
- if (switch1.selectedIndex == 0 ){
- fGetAssoLst();
- }else{
- fGetDrLst();
- }
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <select1 id="rdo_asso" ref="/root/send/srchassoflag" class="radio_search" overflow="visible" appearance="full" cellspacing="30" cols="7" rows="1" style="left:79px; top:9px; width:946px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/assocd/A0114">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (grd_asso.rows > 2) {
- model.removeNodeset("/root/main/assolist");
- model.refresh();
- }
- var idx = rdo_asso.value;
- if(idx == "01") {
- model.toggle("case_dr");
- btn_jgdr.selected = true;
- }else {
- model.toggle("case_asso");
- btn_asso.selected = true;
- }
-
- ]]>
- </script>
- </select1>
- </group>
- <switch id="switch1" style="left:0px; top:71px; width:1194px; height:665px; ">
- <case id="case_asso" style="left:0px; top:0px; width:1200px; height:675px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:1183px; y2:20px; "/>
- <datagrid id="grd_asso" nodeset="/root/main/assolist/item" caption="코드 ^명칭^전화번호^팩스번호^주소^주소^주소^기타|코드 ^명칭^전화번호^팩스번호^우편번호^우편번호^상세주소^기타" colsep="^" colwidth="100, 100, 122, 121, 67, 73, 543, 9" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:20px; width:1180px; height:615px; ">
- <col ref="assocd" type="input"/>
- <col ref="assonm" type="input"/>
- <col ref="telno" type="input"/>
- <col ref="faxno" type="input"/>
- <col ref="zipcd1" type="input"/>
- <col ref="zipcd2" type="inputbutton"/>
- <col ref="detladdr" type="input" style="left:663px; top:43px; width:222px; height:23px; "/>
- <col ref="zipcdseq1" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- /* if( event.keyCode == 13 ) {
- if( datagrid1.col == 0 ) {
- datagrid1.col = 2;
- datagrid1.editCell();
- }
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- if( grd_asso.col == 6) {
- var idx = grd_asso.row
- idx = idx -1;
-
- //var sTmp = grd_asso.attribute("nodeset") + "[" + idx + "]" ;
-
- //fSetAddr(1, sTmp);
- zbcfOpenZipCodeList("combination", "", "/root/temp/addr/zipcd1", "/root/temp/addr/zipcd2", "/root/temp/addr/zipcdseq", "/root/temp/addr/addr");
- var node =model.getValue("/root/temp/addr/zipcd1");
- if( node != "" ){
- model.setValue("/root/main/assolist/item[" + idx + "]/zipcd1" , model.getValue("/root/temp/addr/zipcd1") );
- model.setValue("/root/main/assolist/item[" + idx + "]/zipcd2" , model.getValue("/root/temp/addr/zipcd2") );
- model.setValue("/root/main/assolist/item[" + idx + "]/zipcdseq" , model.getValue("/root/temp/addr/zipcdseq") );
- model.setValue("/root/main/assolist/item[" + idx + "]/detladdr", model.getValue("/root/temp/addr/addr") );
- model.setFocus("ipt_detladdr");
- model.refresh();
- }
-
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_dr" selected="true">
- <datagrid id="grd_dr" nodeset="/root/main/drlist/item" caption="건진구분^건진구분^의사ID^의사명^의사면허번호^적용여부^진찰의여부^판정의여부^상담의여부^건진구분key^건진상세구분key" colsep="^" colwidth="190, 190, 190, 190, 190, 100, 100, 100, 100, 100, 100" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:12px; width:1178px; height:645px; ">
- <col ref="healexamflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamflaglst/A0068">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="healexamdetlflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamdetlflaglst/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="drid" type="input"/>
- <col ref="drnm" type="input"/>
- <col ref="drlicnsno" type="input"/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="meddryn" type="checkbox"/>
- <col checkvalue="Y,N" ref="judgdryn" type="checkbox"/>
- <col checkvalue="Y,N" ref="cnstdryn" type="checkbox"/>
- <col ref="healexamflagkey" visibility="hidden"/>
- <col ref="healexamdetlflagkey" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_dr.col == grd_dr.colRef("healexamdetlflag")) {
- var healexamdetl = grd_dr.valueMatrix(grd_dr.row, grd_dr.colRef("healexamdetlflag"));
- grd_dr.valueMatrix(grd_dr.row , grd_dr.colRef("healexamflag")) = healexamdetl.substr(0,1);
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:5px; y1:7px; x2:1188px; y2:7px; "/>
- </case>
- </switch>
- <button id="btn_grddel" class="btn2_letter3" style="left:1130px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (switch1.selectedIndex == 0 ){
- //grd_asso.addStatus(grd_asso.row,"delete");
- deleteSelectedRows(grd_asso,true);
- }else {
- //grd_dr.addStatus(grd_dr.row,"delete");
- deleteSelectedRows(grd_dr,true);
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1075px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (switch1.selectedIndex == 0 ){
- grd_asso.addRow();
- }else {
- grd_dr.addRow();
- }
- ]]>
- </script>
- </button>
- <button id="btn_asso" class="btn_sw" group="tab" selected="true" style="left:90px; top:50px; width:89px; height:22px; ">
- <caption>기관정보관리</caption>
- <toggle case="case_asso" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_jgdr" class="btn_sw" visibility="visible" group="tab" style="left:0px; top:50px; width:89px; height:22px; ">
- <caption>의사정보관리</caption>
- <toggle case="case_dr" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button8" class="btn3_letter4" style="left:59px; top:5px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (switch1.selectedIndex == 0 ){
- fSaveAssoCd();
- } else {
- fSaveDr();
- messageBox("저장 ", "I002");
- }
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|