123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCRC00400_병원정보설정
- * Summary : 병원정보설정
- * Programmer : 차재훈
- * Date Written : 2008.09.26
- * History :
- * Remark :
- -->
- <?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 xmlns="">
- <main>
- <item>
- <instcd/>
- <hospnm/>
- <hospreprtel/>
- <hospreprmail/>
- <deptnm/>
- <deptcd/>
- <mailsvr/>
- <mailacnt/>
- <mailpwd/>
- <savemode/>
- </item>
- </main>
- <send>
- </send>
- <temp>
- </temp>
- <init>
- </init>
- </root>
- </instance>
- <submission id="TRCRC00401" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/item"/>
- <submission id="TXCRC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //세션 기관 코드를 이용하여 병원 정보 조회
- submit("TRCRC00401");
- var dutplceinstcd = getUserInfo("dutplceinstcd");
- model.makeValue("/root/main/item/instcd", dutplceinstcd);
-
- if(model.getValue("/root/main/item/hospnm")!=""){
- model.makeValue("/root/main/item/savemode", "U");
- }else{
- model.makeValue("/root/main/item/savemode", "I");
- model.makeValue("/root/main/item/hospnm", "");
- model.makeValue("/root/main/item/hospreprtel", "");
- model.makeValue("/root/main/item/hospreprmail", "");
- model.makeValue("/root/main/item/mailsvr", "");
- model.makeValue("/root/main/item/mailacnt", "");
- model.makeValue("/root/main/item/mailpwd", "");
- model.makeValue("/root/main/item/deptcd", "");
- model.makeValue("/root/main/item/deptnm", "");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //=============//
- //필수입력 체크//
- //=============//
- function fCheckInput(){
- if (model.getValue("/root/main/item/hospnm")=="") {
- messageBox("병원 명칭을 입력하지","E007");
- model.setFocus("ipt_hospnm");
- return false;
- }
- if (model.getValue("/root/main/item/hospreprtel")=="") {
- messageBox("대표 전화를 입력하지","E007");
- model.setFocus("ipt_hospreprtel");
- return false;
- }
- if (model.getValue("/root/main/item/hospreprmail")=="") {
- messageBox("대표 메일을 입력하지","E007");
- model.setFocus("ipt_hospreprmail");
- return false;
- }
- if (model.getValue("/root/main/item/deptcd")=="") {
- messageBox("대표 부서를 입력하지","E007");
- model.setFocus("ipt_deptnm");
- return false;
- }
- return true;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="510" pageheight="230" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_body" style="left:0px; top:10px; width:490px; height:175px; ">
- <caption id="caption9" class="tit_2" style="left:0px; top:0px; width:105px; height:14px; ">병원 정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:15px; x2:485px; y2:15px; "/>
- <caption id="cap_dmtitl" class="cell_1" style="left:0px; top:20px; width:90px; height:23px; text-align:center; vertical-align:middle; ">기관 코드</caption>
- <input id="opt_instcd" ref="/root/main/item/instcd" class="output_fix" maxlength="3" style="left:93px; top:22px; width:142px; height:19px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:43px; x2:485px; y2:43px; "/>
- <caption id="caption1" class="cell_1" style="left:0px; top:45px; width:90px; height:23px; text-align:center; vertical-align:middle; ">대표 전화</caption>
- <input id="ipt_hospreprtel" ref="/root/main/item/hospreprtel" class="input_essential" navindex="2" imemode="disabled" maxlength="15" style="left:93px; top:47px; width:142px; height:19px; "/>
- <line id="line1" class="line_2" style="x1:0px; y1:68px; x2:485px; y2:68px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:70px; width:90px; height:23px; text-align:center; vertical-align:middle; ">대표부서</caption>
- <line id="line3" class="line_3" style="x1:0px; y1:93px; x2:485px; y2:93px; "/>
- <input id="ipt_deptnm" ref="/root/main/item/deptnm" class="input_essential" navindex="4" maxlength="45" style="left:93px; top:72px; width:142px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_deptcd", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_deptcd" class="icon_search" navindex="5" style="left:240px; top:73px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "deptnm";
- var search_term = model.getValue("/root/main/item/deptnm");
- var receive_deptcd_path = "/root/main/item/deptcd";
- var receive_deptnm_path = "/root/main/item/deptnm";
-
- cczfOpenSelectDept(search_condition, search_term, receive_deptcd_path, receive_deptnm_path);
- ]]>
- </script>
- </button>
- <output id="opt_deptcd" ref="/root/main/item/deptcd" class="output_fix" style="left:260px; top:72px; width:142px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:150px; width:90px; height:23px; text-align:center; vertical-align:middle; ">Mail PW</caption>
- <input id="ipt_mailpwd" ref="/root/main/item/mailpwd" class="input_default" navindex="8" imemode="disabled" maxlength="24" style="left:93px; top:152px; width:142px; height:19px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:148px; x2:485px; y2:148px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:173px; x2:485px; y2:173px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:125px; width:90px; height:23px; text-align:center; vertical-align:middle; ">Mail Server</caption>
- <input id="ipt_mailsvr" ref="/root/main/item/mailsvr" class="input_default" navindex="6" imemode="disabled" maxlength="50" style="left:93px; top:127px; width:142px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:245px; top:125px; width:90px; height:23px; text-align:center; vertical-align:middle; ">Mail Account</caption>
- <input id="ipt_mailacnt" ref="/root/main/item/mailacnt" class="input_default" navindex="7" imemode="disabled" maxlength="24" style="left:338px; top:127px; width:142px; height:19px; "/>
- <input id="ipt_hospnm" ref="/root/main/item/hospnm" class="input_essential" navindex="1" maxlength="45" style="left:338px; top:22px; width:142px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:245px; top:20px; width:90px; height:23px; text-align:center; vertical-align:middle; ">병원 명칭</caption>
- <caption id="caption20" class="cell_1" style="left:245px; top:45px; width:90px; height:23px; text-align:center; vertical-align:middle; ">대표 E-mail</caption>
- <input id="ipt_email" ref="/root/main/item/hospreprmail" class="input_essential" navindex="3" maxlength="45" style="left:338px; top:47px; width:142px; height:19px; "/>
- <line id="line4" class="line_1" style="x1:0px; y1:120px; x2:485px; y2:120px; "/>
- <caption id="caption4" class="tit_2" style="left:0px; top:105px; width:105px; height:14px; ">병원 계정 정보</caption>
- </group>
- <group id="grp_save2" style="left:0px; top:185px; width:490px; height:35px; vertical-align:top; ">
- <button id="btn_save" class="btn4_letter2" navindex="9" style="left:375px; top:7px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckInput()){
- if (messageBox("병원 정보를","Q002")==6) {
- submit("TXCRC00401");
-
- window.close();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" navindex="10" style="left:434px; top:7px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|