123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>SMRTH_00200전공의연락망</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <phonelist>
- <phone/>
- </phonelist>
- <apprtcdrlist/>
- </main>
- <send>
- <emplno/>
- <emplnm/>
- <instcd/>
- <joblncd/>
- <deptcd/>
- <anual/>
- <req>
- <emplno/>
- </req>
- <replytelno/>
- <apprtcdrlist/>
- <emailreq>
- <fromaddress/>
- <fromname/>
- <toaddress/>
- <ccaddress/>
- <subject/>
- <contentmsg/>
- </emailreq>
- </send>
- <init>
- </init>
- <temp/>
- <hidden>
- <freemessage/>
- <bytecnt>0</bytecnt>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/emailsenderweb/js/ZME001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_apprtcdrlist);
-
- misfComboComCdList("R0305", cmb_instcd, "Y");
- misfComboComCdList("R0281", cmb_anual, "Y");
-
- submit("TRRTS00602");
- addComboItem( "cmb_deptcd", "전체", "", "above");
- ]]>
- </script>
- <submission id="TRRTH00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRRTH00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/apprtcdrlist"/>
- <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqint" resultref="/root/main/tisorddeptcdlist"/>
- <submission id="TRRTH00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/emailreq" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- String.prototype.cut = function(len) {
- var str = this;
- var l = 0;
- for (var i=0; i<str.length; i++) {
- l += (str.charCodeAt(i) > 128) ? 2 : 1;
- if (l > len) return str.substring(0,i);
- }
- return str;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,764;2,764;" style="margin-left:8; margin-right:8; ">
- <group id="group1" 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>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:40; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line207" class="line_1" style="x1:0px; y1:125; x2:1195px; y2:125; "/>
- <caption id="caption13" class="search_name" style="left:5px; top:20px; width:75px; height:17px; ">사 번 :</caption>
- <line id="line14" class="line_4" style="x1:1100px; y1:18px; x2:1100px; y2:45; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:19px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRTH00202");
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter4" style="left:994px; top:105; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- for (var i = grd_apprtcdrlist.fixedRows; i < grd_apprtcdrlist.rows; i++ ) {
- grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("selyn")) = 'Y';
- grd_apprtcdrlist.rowStatus(i) = 2;
- }
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_joblncd" ref="/root/send/joblncd" class="combo_s_essential" navindex="4" appearance="minimal" style="left:600px; top:19px; width:105px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>인턴</label>
- <value>0601</value>
- </item>
- <item>
- <label>레지던트</label>
- <value>0501</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_trngflag" class="search_name" style="left:499px; top:20px; width:110px; height:17px; ">전공의구분 :</caption>
- <button id="button1" class="btn2_letter4" style="left:1060px; top:105; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = grd_apprtcdrlist.fixedRows; i < grd_apprtcdrlist.rows; i++ ) {
- grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("selyn")) = 'N';
- }
- grd_apprtcdrlist.clearStatus();
- ]]>
- </script>
- </button>
- <caption id="caption9" class="tit_2" style="left:0px; top:110; width:117px; height:13px; ">전공의 목록</caption>
- <select1 id="cmb_anual" ref="/root/send/anual" class="combo_search" appearance="minimal" style="left:1020px; top:19px; width:60px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_deptcd" ref="/root/send/deptcd" class="combo_search" appearance="minimal" style="left:820px; top:19px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/tisorddeptcdlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_anual" class="search_name" style="left:955px; top:20px; width:65px; height:17px; ">년 차 :</caption>
- <caption id="cap_deptcd" class="search_name" style="left:735px; top:20px; width:86px; height:17px; ">부 서 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:372px; top:19px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:285px; top:20px; width:86px; height:17px; ">근무병원 :</caption>
- <button id="btn_helppsn" class="icon_search" style="left:151px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "ipt_systemflag","N");
- ipt_emplno.refresh();
- ipt_emplnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_search" style="left:169px; top:19px; width:100px; height:19px; "/>
- <input id="ipt_emplno" ref="/root/send/emplno" class="input_search" style="left:70px; top:19px; width:80px; height:19px; "/>
- <button id="button3" class="btn2_letter4" style="left:1126px; top:105; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_apprtcdrlist.saveExcel(fileName, "sheetname:sheet1;exportfalsecols:1;");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_apprtcdrlist" nodeset="/root/main/apprtcdrlist" caption="선택^사번^성명^I/O^임상과^년차^근무병원^집전화^휴대폰^전송메세지^이메일^발신자번호" colsep="^" colwidth="38, 100, 100, 100, 140, 40, 150, 135, 150, 100, 230, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:130px; width:1195px; height:610px; ">
- <col checkvalue="Y,N" ref="selyn" type="checkbox"/>
- <col ref="emplno"/>
- <col ref="name"/>
- <col ref="joblncd"/>
- <col ref="orddeptcd"/>
- <col ref="residentanual"/>
- <col ref="dutplceinst"/>
- <col ref="cntctel"/>
- <col ref="mpphonno" type="input"/>
- <col ref="freemessage" visibility="hidden"/>
- <col ref="email"/>
- <col ref="replytelno"/>
- </datagrid>
- <caption id="cap_replytelno" class="cell_1" style="left:955px; top:75; width:95px; height:23px; text-align:center; vertical-align:middle; ">발신자 번호</caption>
- <input id="ipt_freemessage" ref="/root/hidden/freemessage" class="input_search" visibility="visible" imemode="hangul" maxlength="80" style="left:100px; top:76px; width:725px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var opt_bytesValue = ipt_freemessage.currentText.getByteLength();
- var contents = ipt_freemessage.currentText;
-
- if (parseInt(opt_bytesValue) > 80)
- {
- messageBox("단문메시지는 80bytes 를 넘을 수 없습니다.", "I999");
- model.setValue("/root/hidden/freemessage",contents.cut(80));
- ipt_freemessage.refresh();
- return;
- }
-
- model.setValue("/root/hidden/bytecnt", opt_bytesValue);
- opt_bytes.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_messageconcd" class="cell_1" style="left:0px; top:75; width:95px; height:23px; text-align:center; vertical-align:middle; ">메시지 설정</caption>
- <input id="ipt_replytelno" ref="/root/send/replytelno" maxlength="11" style="left:1055px; top:76; width:135px; height:19px; "/>
- <caption id="cap_bytes" visibility="visible" style="left:880px; top:77; width:65px; height:15px; ">/80 bytes</caption>
- <caption id="caption11" class="tit_2" style="left:0px; top:55; width:122px; height:13px; ">SMS 메시지 설정</caption>
- <line id="line3" class="line_1" style="x1:-0; y1:70; x2:1190; y2:70; "/>
- <button id="button9" class="btn2_letter4" style="left:928; top:105px; width:64px; height:19px; ">
- <caption>문자발송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sCheckFlag = false;
-
- for (var i = grd_apprtcdrlist.fixedRows; i < grd_apprtcdrlist.rows; i++ ) {
- if( grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("selyn")) == 'Y')
- {
- sCheckFlag = true;
- }
- }
-
- if(!sCheckFlag)
- {
- messageBox("문자 받을 사람을 ","C002");
- return;
- }
- if(!isRequiredControls("cmb_messagecd", "ipt_replytelno"))return;
-
- if(ipt_freemessage.value==""){
- messageBox("메시지 내용은","I003");
- return;
- }
-
- for (var i = grd_apprtcdrlist.fixedRows; i < grd_apprtcdrlist.rows; i++ ) {
- selyn = grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("selyn"));
-
- if(selyn =='Y'){
- grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("replytelno")) = ipt_replytelno.value;
- grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("freemessage")) = ipt_freemessage.value;
- }
- }
-
- model.setValue("/root/send/apprtcdrlist", grd_apprtcdrlist.getUpdateData());
- submit("TRRTH00201");
- messageBox("문자발송이 ","I002");
-
- grd_apprtcdrlist.clearStatus();
-
- button1.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <output id="opt_bytes" ref="/root/hidden/bytecnt" visibility="visible" style="left:840px; top:75px; width:35px; height:19px; text-align:right; "/>
- <line id="line31" class="line_3" style="x1:0px; y1:98px; x2:1190; y2:98px; "/>
- <button id="button5" class="btn2_letter4" visibility="visible" style="left:863; top:105px; width:64px; height:19px; ">
- <caption>메일발송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var toaddress="";
-
- for (var i = grd_apprtcdrlist.fixedRows; i < grd_apprtcdrlist.rows; i++ ) {
- selyn = grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("selyn"));
- email = grd_apprtcdrlist.valueMatrix(i, grd_apprtcdrlist.colRef("email"));
-
- if(selyn =='Y'){
- toaddress = toaddress+ email+';';
- }
- }
-
- if(toaddress == ""){
- messageBox("선택된 사람이 없거나 E-mail 주소가 ", "I004");
- return;
- }
- model.resetInstanceNode("/root/send/emailreq");
-
- model.setValue("/root/send/emailreq/toaddress", toaddress);
- ipt_toaddress.refresh();
-
- group2.disabled = true;
- group3.visible = true;
-
-
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- </group>
- <group id="group3" visibility="hidden" style="left:675px; top:215px; width:515px; height:450px; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:510; height:450px; "/>
- <group id="grp_biz" scroll="auto" style="left:5px; top:5px; width:501px; height:415px; ">
- <line id="line5" class="line_2" style="x1:0px; y1:100px; x2:500px; y2:100px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">이메일전송</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:500px; y2:25px; "/>
- <caption id="cap_contentmsg" class="cell_1" style="left:0px; top:150px; width:90px; height:255px; vertical-align:middle; ">내용</caption>
- <caption id="caption47" class="cell_1" style="left:0px; top:30px; width:90px; height:23px; vertical-align:middle; ">보내는이</caption>
- <textarea id="tar_msg" ref="/root/send/emailreq/contentmsg" class="text_essential" navindex="6" style="left:93px; top:151px; width:407px; height:254px; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:52px; x2:500px; y2:52px; "/>
- <input id="ipt_fromaddress" ref="/root/send/emailreq/fromaddress" class="input_essential" navindex="1" style="left:93px; top:31px; width:202px; height:19px; "/>
- <caption id="cap_fromaddress" class="cell_1" style="left:0px; top:30px; width:90px; height:23px; vertical-align:middle; ">보내는이</caption>
- <line id="line2" class="line_2" style="x1:0px; y1:148px; x2:500px; y2:148px; "/>
- <caption id="cap_subject" class="cell_1" style="left:0px; top:126px; width:90px; height:23px; vertical-align:middle; ">제목</caption>
- <input id="ipt_subject" ref="/root/send/emailreq/subject" class="input_essential" navindex="5" style="left:93px; top:127px; width:407px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:76px; x2:500px; y2:76px; "/>
- <caption id="cap_toaddress" class="cell_1" style="left:0px; top:54px; width:90px; height:23px; vertical-align:middle; ">받는이</caption>
- <input id="ipt_toaddress" ref="/root/send/emailreq/toaddress" class="input_essential" disabled="true" navindex="3" style="left:93px; top:55px; width:407px; height:19px; "/>
- <caption id="caption3" class="hand" style="left:95px; top:103px; width:390px; height:15px; vertical-align:middle; ">수신자가 여러명일 경우 ";" 를 구분자로 하여 입력합니다.</caption>
- <caption id="cap_ccaddress" class="cell_1" style="left:0px; top:78px; width:90px; height:23px; vertical-align:middle; ">참조</caption>
- <input id="ipt_ccaddress" ref="/root/send/emailreq/ccaddress" class="input_default" navindex="4" style="left:93px; top:79px; width:407px; height:19px; "/>
- <caption id="cap_fromname" class="cell_1" style="left:298px; top:30px; width:67px; height:23px; vertical-align:middle; ">이름</caption>
- <input id="ipt_fromname" ref="/root/send/emailreq/fromname" class="input_essential" navindex="2" style="left:368px; top:31px; width:129px; height:19px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:5px; top:420px; width:501px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:385px; top:3; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_fromaddress"))return;
- if(!isRequiredControls("ipt_fromname"))return;
- if(!isRequiredControls("ipt_subject"))return;
- if(!isRequiredControls("tar_msg"))return;
-
- submit("TRRTH00203");
- messageBox("메일발송이 ","I002");
- group2.disabled = false;
- group3.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:444px; top:3; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group2.disabled = false;
- group3.visible = false;
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:501px; y2:0px; "/>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|