123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCRC00100_연동정보관리
- * Summary : 데이터연동 설정정보
- * Programmer : 엄윤호
- * Date Written : 2007.08.01
- * History : 2007.08.01
- * Remark :
- -->
- <?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>
- <list>
- <synclist/>
- </list>
- </main>
- <send>
- <srch>
- <prgmid/>
- <tablenm/>
- <useyn/>
- </srch>
- <synclist/>
- </send>
- <init>
- <comncdlist>
- <C0022list/>
- <C0025list/>
- <C0035list/>
- </comncdlist>
- </init>
- <temp>
- <result/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // C0022: 연동사용여부, C0025: 연동속성구분, C0035: 연동간격
- zbcfGetCodeList(new Array("C0022", "C0025", "C0035"),
- new Array("/root/init/comncdlist/C0022list", "/root/init/comncdlist/C0025list", "/root/init/comncdlist/C0035list"));
-
- addComboItemAll( "cmb_useyn");
-
- fCheckAuth();
- fInitSyncList();
- //model.refresh();
- submit("TRCRC00101");
- fGetSyncdtSet();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <!--submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/-->
- <submission id="TRCRC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/list/synclist"/>
- <submission id="TXCRC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/synclist" resultref="/root/temp/result"/>
- </model>
- <script type="javascript" src="../../../crm/ruleweb/js/CRZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- if (!checkAuth("r")) {
- btn_search.disabled=true;
- }
- if (!checkAuth("x")) {
- btn_syncadd.disabled=true;
- btn_syncdel.disabled=true;
- btn_save.disabled=true;
- }
- if (!checkAuth("p")) {
- btn_saveexcel.disabled = true;
- }
- }
-
- function fInitSyncList() {
- // 그리드 초기화
- model.removeNodeset("/root/main/list/synclist");
- grd_synclist.clearStatus();
- //model.refresh();
- }
-
- function fSaveSyncList() {
- var grid = grd_synclist;
- var updt_list = getGridUpdateData(grid);
- if (updt_list != "") {
- model.setValue("/root/send/synclist", grid.getUpdateData());
- }
-
- setAlertOn();
- if (submit("TXCRC00101")) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.setValue("/root/send/synclist","");
-
- submit("TRCRC00101");
- fGetSyncdtSet();
- }
- }
-
- //================================================================//
- //예약관련 프로세스만 실행시간을 수정할 수 있도록 한다. //
- //==============================================================//
- function fGetSyncdtSet(){
- if(grd_synclist.rows > 1){
- for(i=1;grd_synclist.rows>i;i++){
- if(grd_synclist.valueMatrix(i,grd_synclist.colRef("prgmid"))=="SCHEDULE_MNG" || grd_synclist.valueMatrix(i,grd_synclist.colRef("prgmid"))=="SCHEDULE_MNG_MAPPING")
- {
- grd_synclist.isReadOnly(i,grd_synclist.colRef("fromdt"))= false;
- grd_synclist.isReadOnly(i,grd_synclist.colRef("fcsttodt"))= false;
- }else{
- grd_synclist.isReadOnly(i,grd_synclist.colRef("fromdt"))= true;
- grd_synclist.isReadOnly(i,grd_synclist.colRef("fcsttodt"))= true;
- }
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">데이터 연동정보 관리</caption>
- </group>
- <group id="group2" style="left:0px; top:23px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption3" class="search_name" style="left:16px; top:9px; width:104px; height:17px; ">프로그램 ID :</caption>
- <input id="ipt_prgmid" ref="/root/send/srch/prgmid" class="input_search" maxlength="30" style="left:125px; top:8px; width:145px; height:19px; "/>
- <button id="btn_prgmsrch" class="icon_search" style="left:275px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srch_condition = "P";
- var srch_term = model.getValue("/root/send/srch/prgmid");
- var recv_prgmid_path = "/root/send/srch/prgmid";
- var recv_tablenm_path = "";
-
- crzfOpenSelectPrgm(srch_condition, srch_term, recv_prgmid_path, recv_tablenm_path);
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:331px; top:9px; width:119px; height:17px; ">연동테이블명 :</caption>
- <input id="ipt_tablenm" ref="/root/send/srch/tablenm" class="input_search" maxlength="16" style="left:450px; top:8px; width:145px; height:19px; "/>
- <button id="btn_tablesrch" class="icon_search" style="left:600px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srch_condition = "T";
- var srch_term = model.getValue("/root/send/srch/tablenm");
- var recv_prgmid_path = "";
- var recv_tablenm_path = "/root/send/srch/tablenm";
-
- crzfOpenSelectPrgm(srch_condition, srch_term, recv_prgmid_path, recv_tablenm_path);
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:910px; top:10px; width:86px; height:17px; ">사용여부 :</caption>
- <select1 id="cmb_useyn" ref="/root/send/srch/useyn" class="combo_search" appearance="minimal" style="left:1005px; top:8px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0022list/C0022">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRCRC00101");
- fGetSyncdtSet();
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:58px; width:1195px; height:693px; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:144px; height:14px; ">데이터 연동정보 설정</caption>
- <button id="btn_syncadd" class="btn2_letter4" style="left:996px; top:5px; width:64px; height:19px; ">
- <caption>항목추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setFocus("grd_synclist");
- grd_synclist.addRow();
- grd_synclist.editCell();
- ]]>
- </script>
- </button>
- <button id="btn_syncdel" class="btn2_letter4" style="left:1063px; top:5px; width:64px; height:19px; ">
- <caption>항목삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_synclist, true);
- ]]>
- </script>
- </button>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:5px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file_nm = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (file_nm != "") {
- grd_synclist.saveExcel(file_nm, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <datagrid id="grd_synclist" nodeset="/root/main/list/synclist" caption="프로그램 ID^연동 테이블명^연동 테이블정보^연동간격^연동단위^실행시작^실행종료^접속 IP^접속 DB^접속 ID^접속 PW^접속 Port^사용여부^속성구분" colwidth="150, 150, 150, 60, 60, 70, 60, 90, 80, 80, 80, 70, 60, 70" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" rowheader="update" style="left:0px; top:30px; width:1194px; height:658px; ">
- <col imemode="disabled" ref="prgmid" type="input" maxlength="30" _key="true"/>
- <col imemode="disabled" ref="synctablenm" type="input" maxlength="16"/>
- <col ref="tableinfo" type="input" maxlength="100"/>
- <col class="text_center" ref="syncintvl" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0035list/C0035">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col class="text_center" ref="syncunit" type="input" format="99999"/>
- <col class="text_center" ref="fromdt" type="input" format="hh:nn"/>
- <col class="text_center" ref="fcsttodt" type="input" format="hh:nn"/>
- <!--<col class="text_center" ref="attrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0025list/C0025">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>-->
- <col class="text_center" imemode="disabled" ref="connip" type="input" maxlength="20"/>
- <col class="text_center" imemode="disabled" ref="conndb" type="input" maxlength="30"/>
- <col class="text_center" imemode="disabled" ref="connacnt" type="input" maxlength="30"/>
- <col class="text_center" imemode="disabled" ref="connpwd" secretendposition="30" secretmark="*" secretstartposition="0" type="input" maxlength="30"/>
- <col class="text_center" ref="connport" type="input" format="99999"/>
- <col class="text_center" ref="useyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0022list/C0022">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col class="text_center" ref="attrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0025list/C0025">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- </datagrid>
- </group>
- <group id="group4" style="left:0px; top:751px; width:1195px; height:29px; vertical-align:top; ">
- <button id="btn_navi" class="btn3_letter6" style="left:0px; top:0px; width:104px; height:22px; ">
- <caption>연동내역정보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMCRC00200");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" _auth="X" style="left:1068px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveSyncList();
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:0px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitSyncList();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_hospinfo" class="btn3_letter6" style="left:108px; top:0px; width:104px; height:22px; ">
- <caption>병원정보설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.load("SPCRC00400_병원정보설정.xrw", "modal", "hosp_pop", "align:center;", "", "");
- ]]>
- </script>
- </button>
- <!--<button id="button1" class="btn3_letter4" style="left:216px; top:0px; width:104px; height:22px; ">
- <caption>휴일관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.load("SPCRC00500_휴일관리.xrw", "modal", "hosp_pop", "align:center;", "", "");
- ]]>
- </script>
- </button>-->
- </group>
- </xhtml:body>
- </xhtml:html>
|