123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <?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>
- </main>
- <send>
- <calltype>msg</calltype>
- <calltelno/>
- <insuflag/>
- <msgcnts/>
- <recvrid/>
- <recvrnm/>
- <deptnm/>
- <deptcd/>
- <mpphonno/>
- </send>
- <temp/>
- <init>
- <calltype>
- <label>메시지만</label>
- <value>msg</value>
- </calltype>
- <calltype>
- <label>호출만</label>
- <value>call</value>
- </calltype>
- <calltype>
- <label>메시지+호출</label>
- <value>msgcall</value>
- </calltype>
- </init>
- </root>
- </instance>
- <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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var calltelno = model.getValue("/root/main/calltelno");
- if (calltelno =="") {
- calltelno = getUserInfo("mpphonno");
- }
- model.setValue("/root/send/calltelno",calltelno);
-
- var calltype = model.getValue("/root/main/calltype");
- if (calltype =="") {
- calltype = "msg";
- }
- model.makeValue("/root/send/calltype",calltype);
-
- var recvrid = model.getValue("/root/main/recvrid");
- if (recvrid == "") {
- messageBox("수신자 사번이 지정되지", "E007");
- model.close();
- return;
- } else {
- model.makeValue("/root/send/recvrid",recvrid);
- }
-
- var recvrnm = model.getValue("/root/main/recvrnm");
- if (recvrnm == "") {
- messageBox("수신자 명이 지정되지", "E007");
- model.close();
- return;
- } else {
- model.makeValue("/root/send/recvrnm",recvrnm);
- }
-
- var deptcd = model.getValue("/root/main/deptcd");
- if (deptcd == "") {
- messageBox("수신자 근무부서코드가 지정되지", "E007");
- model.close();
- return;
- } else {
- model.makeValue("/root/send/deptcd",deptcd);
- }
-
- var deptnm = model.getValue("/root/main/deptnm");
- model.makeValue("/root/send/deptnm",deptnm);
-
- var mpphonno = model.getValue("/root/main/mpphonno");
- model.makeValue("/root/send/mpphonno",mpphonno);
-
- var msgcnts = model.getValue("/root/main/msgcnts");
- model.makeValue("/root/send/msgcnts",msgcnts);
-
- model.refresh();
- ]]>
- </script>
- <submission id="TXZMI00209" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="340" pageheight="320" guideline="1,0;1,713;2,318;" style="vertical-align:middle; ">
- <caption id="caption6" class="tit_2" style="left:5px; top:10px; width:144px; height:14px; vertical-align:middle; ">사용자 메시지 전송</caption>
- <button id="btn_close" class="btn4_letter2" disabled="false" style="left:275px; top:288px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <button id="btn_msgsend" class="btn4_letter7" visibility="visible" style="left:155px; top:288px; width:116px; height:22px; ">
- <caption>메세지 보내기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 필수 입력 확인
- if (tar_msgcnts.value == "" ) {
- messageBox("메시지는", "I003");
- return;
- }
- // 메시지 크기 확인
- var msgcnts = new String(model.getValue("/root/send/msgcnts"));
- var msglen = msgcnts.getByteLength();
- //var msglen = zmifGetMessageByteLen(model.getValue("/root/send/writemsg/send/msgcnts"));
- var calltype = model.getValue("/root/send/calltype");
- if (calltype == "msg" && msglen > 200) {
- messageBox("한글 100글자를 초과 입력할 수 없습니다.\n현재 "+msglen,"E");
- return;
- } else if (calltype != "msg" && msglen > 80) {
- messageBox("한글 40글자를 초과 입력할 수 없습니다.\n현재 "+msglen,"E");
- return;
- }
- if (submit("TXZMI00209") ) {
- messageBox("메시지 전송이 ", "I002");
- model.close();
- }
- ]]>
- </script>
- </button>
- <group id="group3" style="left:10px; top:30px; width:320px; height:115px; ">
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:320px; height:115px; "/>
- <caption id="caption4" class="search_name" style="left:6px; top:10px; width:93px; height:17px; ">수신자 명 :</caption>
- <select1 id="rdo_calltype" ref="/root/send/calltype" navindex="1" appearance="full" cols="3" overflow="visible" style="left:100px; top:60px; width:85px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/calltype">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:6px; top:60px; width:95px; height:17px; ">호출 형태 :</caption>
- <caption id="caption12" class="search_name" style="left:6px; top:86px; width:99px; height:17px; ">발신 번호 :</caption>
- <input id="ipt_replytelno" ref="/root/send/calltelno" visibility="visible" style="left:100px; top:86px; width:130px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:6px; top:35px; width:91px; height:17px; ">호출 번호 :</caption>
- <output id="output1" ref="/root/send/recvrnm" style="left:100px; top:10px; width:100px; height:19px; "/>
- <output id="output2" ref="/root/send/deptnm" style="left:205px; top:10px; width:100px; height:19px; "/>
- <input id="output3" ref="/root/send/mpphonno" visibility="visible" style="left:100px; top:35px; width:100px; height:19px; "/>
- </group>
- <caption id="caption14" style="left:10px; top:150px; width:310px; height:20px; text-align:right; ">메시지는 최대 100자(호출시 40자)까지 입력가능합니다.</caption>
- <textarea id="tar_msgcnts" ref="/root/send/msgcnts" navindex="7" style="left:10px; top:170px; width:320px; height:114px; vertical-align:top; "/>
- </xhtml:body>
- </xhtml:html>
|