SPZMI00101_메시지함.xrw 78 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>메시지함</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <tree>
  11. <dept>
  12. <depttree>
  13. </depttree>
  14. </dept>
  15. <emrdept>
  16. <depttree/>
  17. <orddept/>
  18. </emrdept>
  19. </tree>
  20. <list>
  21. <userlist>
  22. <umsguserlist>
  23. <chk/>
  24. <usernm/>
  25. <deptnm/>
  26. <telno/>
  27. <pdano/>
  28. <mpphonno/>
  29. <deptcd/>
  30. </umsguserlist>
  31. </userlist>
  32. <recvrlist>
  33. <recvr>
  34. <usernm/>
  35. <userid/>
  36. <mpphonno/>
  37. <pid/>
  38. <deptcd/>
  39. </recvr>
  40. </recvrlist>
  41. <recvmsglist>
  42. <msglist>
  43. <check/>
  44. <recvcnfmyn/>
  45. <msgrank/>
  46. <trsmrnm/>
  47. <trsmrid/>
  48. <mpphonno/>
  49. <deptnm/>
  50. <msgcnts/>
  51. <patnm/>
  52. <pid/>
  53. <trsmreqdt/>
  54. </msglist>
  55. </recvmsglist>
  56. <sendmsglist>
  57. <msglist/>
  58. </sendmsglist>
  59. <trashmsglist>
  60. <msglist/>
  61. </trashmsglist>
  62. <callmsglist>
  63. <msglist/>
  64. </callmsglist>
  65. <patlist>
  66. <pmsgpatlist/>
  67. </patlist>
  68. <nurslist/>
  69. <bookmarklist>
  70. <bookmark>
  71. <check/>
  72. <usernm/>
  73. <userid/>
  74. <deptnm/>
  75. <mpphonno/>
  76. <deptcd/>
  77. </bookmark>
  78. </bookmarklist>
  79. </list>
  80. <recvmsg/>
  81. <sentmsg/>
  82. <trashmsg/>
  83. <callmsg/>
  84. <cleartrash>
  85. <succnt/>
  86. </cleartrash>
  87. </main>
  88. <send>
  89. <recivemsg>
  90. <value/>
  91. <date/>
  92. <stype>all</stype>
  93. <srank>0</srank>
  94. </recivemsg>
  95. <sentmsg>
  96. <value/>
  97. <stype>all</stype>
  98. <date/>
  99. <srank>0</srank>
  100. </sentmsg>
  101. <writemsg>
  102. <umsg>
  103. <stype>1</stype>
  104. <inputvalue/>
  105. <treevalue/>
  106. <value/>
  107. <key/>
  108. <instcds/>
  109. </umsg>
  110. <send>
  111. <calltype>msg</calltype>
  112. <calltelno/>
  113. <insuflag/>
  114. <msgcnts/>
  115. <recvrid/>
  116. <systemnm/>
  117. <instcd/>
  118. </send>
  119. <pmsg>
  120. <stype>1</stype>
  121. <svalue/>
  122. <wardcd/>
  123. <roomcd/>
  124. <key/>
  125. <orddeptcd/>
  126. <treevalue/>
  127. </pmsg>
  128. <nurslist>
  129. <pid/>
  130. </nurslist>
  131. </writemsg>
  132. <trashmsg>
  133. <value/>
  134. <stype>all</stype>
  135. <date/>
  136. <srank>0</srank>
  137. </trashmsg>
  138. <cleartrash>
  139. <value/>
  140. </cleartrash>
  141. <callmsg>
  142. <stype>all</stype>
  143. <value/>
  144. <date/>
  145. <fstrgstrid/>
  146. <fstrgstdt/>
  147. <recvrnm/>
  148. <bizabbr/>
  149. <recvrtelno/>
  150. <fstgrstdt/>
  151. <msgstate/>
  152. </callmsg>
  153. <delmsg>
  154. <delflag/>
  155. <msgs/>
  156. </delmsg>
  157. <favorites/>
  158. <delfavorite/>
  159. <config>
  160. <msgpopupflag/>
  161. <msginsuflag/>
  162. <msgnewpopupflag/>
  163. </config>
  164. <delcalllist>
  165. <msgkeylist/>
  166. <delgbn/>
  167. </delcalllist>
  168. </send>
  169. <temp/>
  170. <init>
  171. <cbizabbr>
  172. <label>전체</label>
  173. <value>all</value>
  174. </cbizabbr>
  175. <cbizabbr>
  176. <label>수신인</label>
  177. <value>recvr</value>
  178. </cbizabbr>
  179. <cbizabbr>
  180. <label>호출번호</label>
  181. <value>tel</value>
  182. </cbizabbr>
  183. <cbizabbr>
  184. <label>호출날짜</label>
  185. <value>cdate</value>
  186. </cbizabbr>
  187. <tbizabbr>
  188. <label>전체</label>
  189. <value>all</value>
  190. </tbizabbr>
  191. <tbizabbr>
  192. <label>받는사람</label>
  193. <value>recvr</value>
  194. </tbizabbr>
  195. <tbizabbr>
  196. <label>보낸사람</label>
  197. <value>sender</value>
  198. </tbizabbr>
  199. <tbizabbr>
  200. <label>날짜</label>
  201. <value>date</value>
  202. </tbizabbr>
  203. <rbizabbr>
  204. <label>전체</label>
  205. <value>all</value>
  206. </rbizabbr>
  207. <rbizabbr>
  208. <label>보낸사람</label>
  209. <value>sender</value>
  210. </rbizabbr>
  211. <rbizabbr>
  212. <label>메세지 내용</label>
  213. <value>msg</value>
  214. </rbizabbr>
  215. <rbizabbr>
  216. <label>도착일</label>
  217. <value>rdate</value>
  218. </rbizabbr>
  219. <rbizabbr>
  220. <label>환자명</label>
  221. <value>pnm</value>
  222. </rbizabbr>
  223. <rbizabbr>
  224. <label>환자ID</label>
  225. <value>pid</value>
  226. </rbizabbr>
  227. <msgrank>
  228. <label>전체</label>
  229. <value>0</value>
  230. </msgrank>
  231. <msgrank>
  232. <label>응급</label>
  233. <value>1</value>
  234. </msgrank>
  235. <msgrank>
  236. <label>일반</label>
  237. <value>3</value>
  238. </msgrank>
  239. <msgrank>
  240. <label>보험</label>
  241. <value>2</value>
  242. </msgrank>
  243. <sbizabbr>
  244. <label>전체</label>
  245. <value>all</value>
  246. </sbizabbr>
  247. <sbizabbr>
  248. <label>받는이</label>
  249. <value>recvr</value>
  250. </sbizabbr>
  251. <sbizabbr>
  252. <label>메세지 내용</label>
  253. <value>msg</value>
  254. </sbizabbr>
  255. <sbizabbr>
  256. <label>보낸일</label>
  257. <value>sdate</value>
  258. </sbizabbr>
  259. <sbizabbr>
  260. <label>환자명</label>
  261. <value>pnm</value>
  262. </sbizabbr>
  263. <sbizabbr>
  264. <label>환자ID</label>
  265. <value>pid</value>
  266. </sbizabbr>
  267. <calltype>
  268. <label>메시지만</label>
  269. <value>msg</value>
  270. </calltype>
  271. <calltype>
  272. <label>호출만</label>
  273. <value>call</value>
  274. </calltype>
  275. <calltype>
  276. <label>메시지+호출</label>
  277. <value>msgcall</value>
  278. </calltype>
  279. <pmsgsearchitem>
  280. <label>환자명</label>
  281. <value>1</value>
  282. </pmsgsearchitem>
  283. <pmsgsearchitem>
  284. <label>등록번호</label>
  285. <value>2</value>
  286. </pmsgsearchitem>
  287. <umsgsearchitem>
  288. <label>이름</label>
  289. <value>1</value>
  290. </umsgsearchitem>
  291. <umsgsearchitem>
  292. <label>근무지</label>
  293. <value>2</value>
  294. </umsgsearchitem>
  295. <umsgsearchitem>
  296. <label>최근보낸사람</label>
  297. <value>3</value>
  298. </umsgsearchitem>
  299. <param/>
  300. </init>
  301. </root>
  302. </instance>
  303. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  304. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  305. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  306. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  307. <script type="javascript" ev:event="xforms-ready">
  308. <![CDATA[
  309. switch2.selectedindex= 1; // 메시지 쓰기의 초기 탭을 사용자로 설정
  310. model.removeNodeset("/root/main/list/recvrlist");
  311. model.removeNodeset("/root/main/list/userlist/umsguserlist");
  312. model.removeNodeSet("/root/main/list/patlist/pmsgpatlist");
  313. model.removeNodeset("/root/main/list/recvmsglist/msglist");
  314. model.removeNodeset("/root/main/list/sendmsglist/msglist");
  315. model.removeNodeset("/root/main/list/trashmsglist/msglist");
  316. model.removeNodeset("/root/main/list/callmsglist/msglist");
  317. model.setValue("/root/send/recivemsg/date",getCurrentDate());
  318. model.setValue("/root/send/sentmsg/date",getCurrentDate());
  319. model.setValue("/root/send/trashmsg/date",getCurrentDate());
  320. model.setValue("/root/send/callmsg/date",getCurrentDate());
  321. model.setValue("/root/send/writemsg/send/calltelno",getUserInfo("mpphonno"));
  322. // 환경설정값 읽어와 설정하기
  323. model.setValue("/root/send/writemsg/send/insuflag",fGetInsuFlagConfig());
  324. model.setValue("/root/send/config/msginsuflag",fGetInsuFlagConfig());
  325. model.setValue("/root/send/config/msgpopupflag",fGetPopupFlagConfig());
  326. model.setValue("/root/send/config/msgnewpopupflag",fGetNewPopupFlagConfig());
  327. grd_receive.fixedcellcheckbox(0,1) = true;
  328. grd_sent.fixedcellcheckbox(0,1) = true;
  329. grd_trashlist.fixedcellcheckbox(0, 1) = true;
  330. // 즐겨찾기에 체크박스 및 일괄추가 버튼 추가
  331. grd_bookmark.fixedcellcheckbox(0, 1) = true;
  332. grd_bookmark.fixedcellischeck(0, 1) = true;
  333. // 전달된 파라메터에 따른 동작 처리
  334. // opentab : setting, receivemsg,sentmsg,trash,calllist,pmsg,umsg,bookmark
  335. var opentab = model.getValue("/root/init/param/opentab");
  336. if (opentab == "pmsg") {
  337. btn_msgwrite.selected = true;
  338. btn_msgwrite.dispatch("DOMActivate");
  339. btn_pmsg.selected = true;
  340. btn_pmsg.dispatch("DOMActivate");
  341. // 환자 목록 조회
  342. fGetPatientList();
  343. } else if (opentab == "umsg") {
  344. btn_msgwrite.selected = true;
  345. btn_msgwrite.dispatch("DOMActivate");
  346. btn_umsg.selected = true;
  347. btn_umsg.dispatch("DOMActivate");
  348. // 사용자 목록 조회
  349. fGetUserList();
  350. } else if (opentab == "bookmark") {
  351. btn_msgwrite.selected = true;
  352. btn_msgwrite.dispatch("DOMActivate");
  353. btn_bookmark.selected = true;
  354. btn_bookmark.dispatch("DOMActivate");
  355. } else if (opentab == "setting") {
  356. btn_msgsetting.selected = true;
  357. btn_msgsetting.dispatch("DOMActivate");
  358. } else if (opentab == "sentmsg") {
  359. btn_msgsent.selected = true;
  360. btn_msgsent.dispatch("DOMActivate");
  361. // 보낸 메시지 조회
  362. fGetSentMessages();
  363. } else if (opentab == "trash") {
  364. btn_trash.selected = true;
  365. btn_trash.dispatch("DOMActivate");
  366. // 휴지통 조회
  367. fGetTrashList();
  368. } else if (opentab == "calllist") {
  369. btn_calllist.selected = true;
  370. btn_calllist.dispatch("DOMActivate");
  371. // 호출 내역 조회
  372. fGetCallList();
  373. } else {
  374. // 최초 받은메세지함으로 표시
  375. btn_msgreceive.selected = true;
  376. btn_msgreceive.dispatch("DOMActivate");
  377. // 받은 메시지 조회
  378. fGetReceivedMessages();
  379. }
  380. fInitWriteMsgInstcd();
  381. model.refresh();
  382. ]]>
  383. </script>
  384. <submission id="TRZMI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/recivemsg" replace="instance" resultref="/root/main/list/recvmsglist"/>
  385. <submission id="TRZMI03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/recivemsg" replace="instance" resultref="/root/main/list/recvmsglist"/>
  386. <submission id="TRZMI00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sentmsg" replace="instance" resultref="/root/main/list/sendmsglist"/>
  387. <submission id="TRZMI03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sentmsg" replace="instance" resultref="/root/main/list/sendmsglist"/>
  388. <!-- <submission id="TRZMI00105" ref="/root/send/setting" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/setting"/> -->
  389. <submission id="TXZMI00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/delmsg" resultref="/root/temp"/>
  390. <submission id="TRZMI00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trashmsg" resultref="/root/main/list/trashmsglist"/>
  391. <submission id="TXZMI00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cleartrash" resultref="/root/main/cleartrash"/>
  392. <submission id="TXZMI00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/writemsg/send" replace="instance" resultref="/root/temp"/>
  393. <submission id="TRZMI00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/callmsg" resultref="/root/main/list/callmsglist"/>
  394. <submission id="TRZMI00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/tree/dept"/>
  395. <submission id="TRZMI00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/tree/emrdept"/>
  396. <submission id="TRZMI00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/writemsg/umsg" resultref="/root/main/list/userlist"/>
  397. <submission id="TXZMI00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/recvmsg/msgno" resultref="/root/temp"/>
  398. <submission id="TRZMI00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/writemsg/pmsg" resultref="/root/main/list/patlist"/>
  399. <submission id="TRZMI00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/writemsg/nurslist" resultref="/root/main/list/nurslist"/>
  400. <submission id="TXZMI00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/favorites" resultref="/root/main/list/bookmarklist"/>
  401. <submission id="TRZMI00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" resultref="/root/main/list/bookmarklist"/>
  402. <submission id="TXZMI00207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/delfavorite" resultref="/root/main/list/bookmarklist"/>
  403. <submission id="TXZMI00208" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/config" resultref="/root/temp"/>
  404. <submission id="TXZMI00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/delcalllist" resultref="/root/temp"/>
  405. </model>
  406. <script type="javascript">
  407. <![CDATA[
  408. gvDeptTreeLoaded = false; // 사용자 메시지 용 부서트리 데이터 로딩 여부
  409. gvEmrDeptTreeLoaded = false; // 환자 메시지 용 진료부서트리 데이터 로딩 여부
  410. // 확인 여부 값
  411. gv_comboread = "Y"; //읽음
  412. gv_combounread = "N"; //읽지않음
  413. var lgv_instcds = "";
  414. var sMisyn = getSystemCd().substring(0,3).toLowerCase();
  415. function fInitWriteMsgInstcd() {
  416. // 메시지 수신 기관 세팅
  417. var systeminstnm = getUserInfo("systeminstnm");
  418. if(systeminstnm.indexOf("치과") >= 0) { // 치과, 치과MIS일때
  419. rdo_031032.visible = false;
  420. rdo_033.visible = true;
  421. var systemcd =getUserInfo("systemcd");
  422. if(systemcd == "MIS033") {
  423. systemcd = "MIS030";
  424. } else if(systemcd == "CRM033") {
  425. systemcd = "CRM030";
  426. } else {
  427. systemcd = "HIS031";
  428. }
  429. model.setValue("/root/send/writemsg/send/instcd", systemcd);
  430. rdo_033.disabled = true;
  431. lgv_instcds = "033";
  432. rdo_033.refresh();
  433. rdo_031032.refresh();
  434. } else { // 본원, 칠곡, MIS, CRM 일때
  435. rdo_031032.visible = true;
  436. rdo_033.visible = false;
  437. model.setValue("/root/send/writemsg/send/instcd", getUserInfo("systemcd"));
  438. lgv_instcds = "031^032";
  439. rdo_033.refresh();
  440. rdo_031032.refresh();
  441. }
  442. }
  443. function fDeleteCheckedRows(grd,colname) {
  444. var rows = grd.rows;
  445. var checkcol = grd.colref(colname);
  446. var checkflag = "";
  447. for(var idx=rows-1;idx>= grd.fixedRows;idx--) {
  448. checkflag = grd.valueMatrix(idx,checkcol);
  449. if (checkflag == "true") {
  450. grd.deleterow(idx,false);
  451. }
  452. }
  453. }
  454. // 그리드에 체크된 메시지의 삭제 플래그를 변경하는 submit을 실행한다.
  455. function fSubmitDeleteMsg(grd,delflag) {
  456. var delmsg = "";
  457. if(delflag == "T") {
  458. delmsg = "삭제";
  459. } else if (delflag == "Y") {
  460. delmsg = "완전삭제";
  461. } else if (delflag = "N") {
  462. delmsg = "복원";
  463. } else {
  464. alert("잘못된 삭제 플래그입니다.");
  465. return;
  466. }
  467. // 삭제할 메시지 노드 선택
  468. var nodeset = grd.nodeset;
  469. var selectedNodeList = instance1.selectNodes(nodeset+"[check='true']/msgno");
  470. var length = selectedNodeList.length;
  471. if (length == 0) {
  472. messageBox(delmsg+"할 메세지를 선택하지", "E007");
  473. return;
  474. }
  475. // 삭제할 메시지 번호를 모은다.
  476. var selectedMsgNo = "";
  477. for(var idx=0;idx<length;idx++) {
  478. selectedMsgNo = selectedMsgNo + selectedNodeList.item(idx).text + "|";
  479. }
  480. // instance에 설정하고 submit 한다.
  481. model.setValue("/root/send/delmsg/delflag",delflag); // 삭제 플래그
  482. model.setValue("/root/send/delmsg/msgs",selectedMsgNo);
  483. if (submit("TXZMI00201") ) {
  484. // 그리드에서 체크된 row 를 삭제한다.
  485. fDeleteCheckedRows(grd,"check");
  486. grd.refresh();
  487. }
  488. }
  489. // 근무부서 트리 생성(최초 한번만)
  490. function fLoadDeptTree() {
  491. if (!gvDeptTreeLoaded) {
  492. if (copyFromCache("SPZMI00101_depttree","/root/main/tree/dept")) {
  493. model.refresh();
  494. gvDeptTreeLoaded = true;
  495. } else {
  496. if (submit("TRZMI00109")) {
  497. storeIntoCache("SPZMI00101_depttree","/root/main/tree/dept");
  498. gvDeptTreeLoaded = true;
  499. }
  500. }
  501. }
  502. }
  503. // 주어진 pid 값으로 환자기준메시지 전송 탬의 조회 조건을 설정하고
  504. // 설정이 되었으면 true를 설정되지 않았으면 false를 반환한다.
  505. function fSetPatientID(pid) {
  506. // pid를 지정하지 않았으면 환자상단정보의 환자번호로 세팅한다.
  507. if (pid == null || pid == "" ) {
  508. pid = getPatientId();
  509. }
  510. if (pid != "" && pid != null ) {
  511. // 환자 선택됨
  512. model.setValue("/root/send/writemsg/pmsg/stype","2"); // 환자번호로 조회
  513. model.setValue("/root/send/writemsg/pmsg/svalue",pid);
  514. return true;
  515. } else {
  516. return false;
  517. }
  518. }
  519. function fLoadBookmark() {
  520. submit("TRZMI00114");
  521. }
  522. // 진료 부서/병동 트리 생성(최초 한번만)
  523. function fLoadEmrDeptTree() {
  524. if (!gvEmrDeptTreeLoaded) {
  525. if (copyFromCache("SPZMI00101_emrdepttree","/root/main/tree/emrdept")) {
  526. model.refresh();
  527. gvEmrDeptTreeLoaded = true;
  528. } else {
  529. if (submit("TRZMI00110")) {
  530. storeIntoCache("SPZMI00101_emrdepttree","/root/main/tree/emrdept");
  531. gvEmrDeptTreeLoaded = true;
  532. }
  533. }
  534. }
  535. }
  536. // 받은 메시지 함 조회
  537. function fGetReceivedMessages() {
  538. initGridStyle("grd_receive");
  539. if (sMisyn != "mis"){
  540. submit("TRZMI00101");
  541. }else if( sMisyn == "mis"){
  542. submit("TRZMI03101");
  543. }
  544. setRowStyle("grd_receive" , "2" , gv_combounread, "recvcnfmyn");
  545. // 메시지함 조회 시 사용자 확인 메시지 뿌리고, 메시지함 아이콘 바꾸기 by 손병은. 2012-05-04
  546. var viewerObj = getViewer("sysMessage");
  547. if (viewerObj != null && viewerObj.window.javascript.fConnectMsgsvr != undefined) {
  548. viewerObj.window.javascript.fMsgsvrUserNotify();
  549. }
  550. }
  551. // 보낸 메시지 함 조회
  552. function fGetSentMessages() {
  553. initGridStyle("grd_sent");
  554. if (sMisyn != "mis"){
  555. submit("TRZMI00102");
  556. }else if( sMisyn == "mis"){
  557. submit("TRZMI03102");
  558. }
  559. setRowStyle("grd_sent" , "1" , gv_combounread , "recvcnfmyn" );
  560. }
  561. // 사용자 목록 조회
  562. function fGetUserList() {
  563. var sdata = model.getValue("/root/send/writemsg/umsg/inputvalue");
  564. if (sdata == "") {
  565. return;
  566. }
  567. model.setValue("/root/send/writemsg/umsg/value",
  568. model.getValue("/root/send/writemsg/umsg/inputvalue"));
  569. model.setValue("/root/send/writemsg/umsg/key",
  570. model.getValue("/root/send/writemsg/umsg/stype"));
  571. model.setValue("/root/send/writemsg/umsg/instcds", lgv_instcds);
  572. submit("TRZMI00111");
  573. }
  574. // 환자 목록 조회
  575. function fGetPatientList() {
  576. var pid = model.getValue("/root/send/writemsg/pmsg/svalue");
  577. if (pid == "") {
  578. return;
  579. }
  580. model.setValue("/root/send/writemsg/pmsg/key",
  581. model.getValue("/root/send/writemsg/pmsg/stype"));
  582. submit("TRZMI00112");
  583. fSetNurseCellComboNodeSet();
  584. }
  585. function fGetTrashList() {
  586. submit("TRZMI00107");
  587. }
  588. function fGetCallList() {
  589. model.setValue("/root/send/callmsg/fstrgstrid", getUserId());
  590. model.setValue("/root/send/callmsg/bizabbr","ZMI");
  591. model.setValue("/root/send/callmsg/msgstate","-");
  592. model.setValue("/root/send/callmsg/recvrtelno", "");
  593. model.setValue("/root/send/callmsg/recvrnm", "");
  594. model.setValue("/root/send/callmsg/fstrgstdt", "");
  595. var stype = model.getValue("/root/send/callmsg/stype");
  596. if (stype == "recvr") {
  597. model.setValue("/root/send/callmsg/recvrnm",
  598. model.getValue("/root/send/callmsg/value"));
  599. } else if (stype == "tel") {
  600. model.setValue("/root/send/callmsg/recvrtelno",
  601. model.getValue("/root/send/callmsg/value"));
  602. } else if (stype == "cdate") {
  603. model.setValue("/root/send/callmsg/fstrgstdt",
  604. model.getValue("/root/send/callmsg/date"));
  605. }
  606. submit("TRZMI00108");
  607. }
  608. // 환자 정보 목록의 담당 간호사 콤보의 nodeset을 설정한다.
  609. function fSetNurseCellComboNodeSet() {
  610. var pid = "";
  611. var pidnursepath = "";
  612. var pid_col = 0;
  613. var nurse_col = 8;
  614. for(var i=grd_pmsgsearch.fixedRows;i<grd_pmsgsearch.rows;i++) {
  615. pid = grd_pmsgsearch.valueMatrix(i,pid_col);
  616. pidnursepath = "/root/main/list/patlist/pid"+pid;
  617. grd_pmsgsearch.cellComboNodeset(i,nurse_col) = pidnursepath;
  618. }
  619. }
  620. function fSetRowValue(node, destinationelement, sourceelement, row) {
  621. model.setValue(node + "[" + row + "]/" + destinationelement, sourceelement);
  622. }
  623. // 받는이 목록에 하나의 항목을 추가한다.
  624. function fAddReceiver(usernm, userid, mpphonno, deptcd, pid) {
  625. grd_receiver.addrow(false);
  626. var recv_row = grd_receiver.rows-1;
  627. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",usernm);
  628. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",userid);
  629. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",mpphonno);
  630. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",deptcd);
  631. if (pid != null) {
  632. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/pid",pid);
  633. }
  634. }
  635. // 받은 메시지 함에서 답장 버튼 눌렀을때 메시지 작성 탭으로 이동
  636. function fReplyMessage() {
  637. // 선택한 메시지 있는 지 확인
  638. var cur_row = grd_receive.row;
  639. //alert(cur_row);
  640. if (cur_row < grd_receive.fixedRows) {
  641. alert("답장할 메시지를 선택하세요.");
  642. return;
  643. }
  644. // 답장할 정보 생성
  645. model.removeNodeset("/root/main/list/recvrlist");
  646. model.refresh();
  647. grd_receiver.addrow(false);
  648. var recv_row = grd_receiver.rows-1;
  649. //alert(recv_row);
  650. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",
  651. model.getValue("/root/main/recvmsg/trsmrnm"));
  652. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",
  653. model.getValue("/root/main/recvmsg/trsmrid"));
  654. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",
  655. model.getValue("/root/main/recvmsg/mpphonno"));
  656. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",
  657. model.getValue("/root/main/recvmsg/deptcd"));
  658. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/pid",
  659. model.getValue("/root/main/recvmsg/pid"));
  660. model.setValue("/root/send/writemsg/send/msgcnts",
  661. model.getValue("/root/main/recvmsg/msgcnts"));
  662. model.refresh();
  663. // 메시지 쓰기 텝으로 토글
  664. btn_msgwrite.selected = true;
  665. btn_msgwrite.dispatch("DOMActivate");
  666. model.setFocus("tar_msgcnts");
  667. /*
  668. model.toggle("writemsg");
  669. model.setFocus("tar_msgcnts");
  670. btn_msgsend.visible = true;
  671. btn_close.visible = true;
  672. btn_writeinit.visible = false;
  673. */
  674. }
  675. // 휴지통 메시지 상세 보기
  676. function fShowTrashMsg() {
  677. var cur_row = grd_trashlist.row;
  678. if ( cur_row > 0 ) {
  679. model.copyNode("/root/main/trashmsg","/root/main/list/trashmsglist/msglist["+cur_row+"]");
  680. model.refresh();
  681. }
  682. }
  683. // 호출내역 메시지 상세 보기
  684. function fShowCallMsg() {
  685. var cur_row = grd_calllist.row;
  686. if ( cur_row > 0 ) {
  687. model.copyNode("/root/main/callmsg","/root/main/list/callmsglist/msglist["+cur_row+"]");
  688. model.refresh();
  689. }
  690. }
  691. // 받은 메시지 보기
  692. function fShowReceiveMsg() {
  693. var cur_row = grd_receive.row;
  694. if ( cur_row > 0 ) {
  695. model.copyNode("/root/main/recvmsg","/root/main/list/recvmsglist/msglist["+cur_row+"]");
  696. model.refresh();
  697. // 확인 여부를 서버에 Y 로 저장한다.
  698. var confirmyn = model.getValue("/root/main/recvmsg/recvcnfmyn");
  699. if (confirmyn == "N") {
  700. submit("TXZMI00205");
  701. }
  702. /**
  703. modal("SPZMI00201", "", "400", "400" ,"SPZMI00201", "/root/main/item", "/root/main");
  704. if (model.getValue("/root/temp") != null && model.getValue("/root/temp") != "") {
  705. btn_msgwrite.selected = true;
  706. }
  707. **/
  708. }
  709. }
  710. // 보낸 메시지 보기
  711. function fShowSendMsg() {
  712. var cur_row = grd_sent.row;
  713. if ( cur_row > 0 ) {
  714. model.copyNode("/root/main/sentmsg","/root/main/list/sendmsglist/msglist["+cur_row+"]");
  715. model.refresh();
  716. /**
  717. modal("SPZMI00201", "", "400", "400" ,"SPZMI00201", "/root/main/item", "/root/main");
  718. if (model.getValue("/root/temp") != null && model.getValue("/root/temp") != "") {
  719. btn_msgwrite.selected = true;
  720. }
  721. **/
  722. }
  723. }
  724. /*
  725. * 보낸 메시지 popup으로 메시지 보기
  726. */
  727. function sFetchFromGrid() {
  728. var cur_row = grd_sent.row;
  729. if ( cur_row > 0 ) {
  730. model.copyNode("/root/main/item","/root/main/list_send/sentlist["+cur_row+"]");
  731. model.refresh();
  732. modal("SPZMI00401", "", "400", "400" ,"SPZMI00401", "/root/main/item", "/root/main");
  733. }
  734. }
  735. function fReconnectMsgServer() {
  736. var viewerObj = getViewer("sysMessage");
  737. if (viewerObj != null && viewerObj.window.javascript.fConnectMsgsvr != undefined) {
  738. viewerObj.window.javascript.fConnectMsgsvr();
  739. }
  740. }
  741. // 환경설정값 가져오기/저장하기
  742. function fGetInsuFlagConfig() {
  743. return fGetUserConfig("msginsuflag");
  744. }
  745. function fGetPopupFlagConfig() {
  746. return fGetUserConfig("msgpopupflag");
  747. }
  748. function fGetNewPopupFlagConfig() {
  749. return fGetUserConfig("msgnewpopupflag");
  750. }
  751. function fGetUserConfig(cfgname) {
  752. var viewerObj = getViewer("sysMessage");
  753. if (viewerObj != null && viewerObj.window.javascript.fGetUserConfig != undefined) {
  754. return viewerObj.window.javascript.fGetUserConfig(cfgname);
  755. } else {
  756. return "";
  757. }
  758. }
  759. function fSetInsuFlagConfig(value) {
  760. fSetUserConfig("msginsuflag",value);
  761. }
  762. function fSetPopupFlagConfig(value) {
  763. fSetUserConfig("msgpopupflag",value);
  764. }
  765. function fSetNewPopupFlagConfig(value) {
  766. fSetUserConfig("msgnewpopupflag",value);
  767. }
  768. function fSetUserConfig(cfgname,cfgvalue) {
  769. var viewerObj = getViewer("sysMessage");
  770. if (viewerObj != null && viewerObj.window.javascript.fSetUserConfig != undefined) {
  771. viewerObj.window.javascript.fSetUserConfig(cfgname,cfgvalue);
  772. }
  773. }
  774. //
  775. function delcalllist(delgbn) {
  776. var grdSize = grd_calllist.rows;
  777. var chkFlag = false;
  778. var msgkeylist = "";
  779. for (i = 1; i < grdSize; i++) {
  780. if (model.getValue("/root/main/list/callmsglist/msglist[" + i + "]/selectmsg") == "true") {
  781. msgkeylist += model.getValue("/root/main/list/callmsglist/msglist[" + i + "]/msgkey") + ":";
  782. chkFlag = true;
  783. }
  784. }
  785. //alert(getGridUpdateData(grd_deqreq));
  786. model.setValue("/root/send/delcalllist/msgkeylist", msgkeylist);
  787. model.setValue("/root/send/delcalllist/delgbn", delgbn);
  788. if (chkFlag) {
  789. submit("TXZMI00210");
  790. btn_callsearch.dispatch("onclick");
  791. }
  792. }
  793. ]]>
  794. </script>
  795. </xhtml:head>
  796. <xhtml:body pagewidth="720" pageheight="560" guideline="1,7;1,713;2,525;" style="vertical-align:middle; ">
  797. <switch id="switch1" style="left:7px; top:47px; width:708px; height:478px; ">
  798. <case id="setting">
  799. <shape id="roundrect4" appearance="roundrect" style="left:8px; top:30px; width:690px; height:100px; "/>
  800. <caption id="caption1" class="tit_2" style="left:10px; top:8px; width:131px; height:14px; ">메시지 환경 설정</caption>
  801. <caption id="caption16" class="tit_2" style="left:11px; top:140px; width:131px; height:13px; ">메세지 서버 설정</caption>
  802. <shape id="roundrect5" appearance="roundrect" style="left:8px; top:160px; width:690px; height:40px; "/>
  803. <caption id="caption5" class="search_name" style="left:20px; top:170px; width:148px; height:17px; ">메시징 서버 재접속</caption>
  804. <button id="btn_msgconnect" class="btn4_letter2" disabled="false" style="left:630px; top:170px; width:56px; height:22px; ">
  805. <caption>연결</caption>
  806. <script type="javascript" ev:event="DOMActivate">
  807. <![CDATA[
  808. // 메시징 서버 재접속
  809. fReconnectMsgServer();
  810. ]]>
  811. </script>
  812. </button>
  813. <button id="btn_saveconfig" class="btn4_letter2" disabled="false" style="left:630px; top:100px; width:56px; height:22px; ">
  814. <caption>저장</caption>
  815. <script type="javascript" ev:event="DOMActivate">
  816. <![CDATA[
  817. if (submit("TXZMI00208")) {
  818. fSetInsuFlagConfig(model.getValue("/root/send/config/msginsuflag"));
  819. fSetPopupFlagConfig(model.getValue("/root/send/config/msgpopupflag"));
  820. fSetNewPopupFlagConfig(model.getValue("/root/send/config/msgnewpopupflag"));
  821. }
  822. ]]>
  823. </script>
  824. </button>
  825. <select id="chk_msginsuyn" ref="/root/send/config/msginsuflag" overflow="visible" appearance="full" style="left:25px; top:60px; width:305px; height:20px; border-style:none; ">
  826. <choices>
  827. <item>
  828. <label>메시지 작성 시 기본으로 보험 체크되기</label>
  829. <value>1</value>
  830. </item>
  831. </choices>
  832. </select>
  833. <select id="chk_msgpopupyn" ref="/root/send/config/msgpopupflag" overflow="visible" appearance="full" style="left:25px; top:40px; width:305px; height:20px; border-style:none; ">
  834. <choices>
  835. <item>
  836. <label>로그인 시 메시지 창 띄우기</label>
  837. <value>1</value>
  838. </item>
  839. </choices>
  840. </select>
  841. <select id="checkbox1" ref="/root/send/config/msgnewpopupflag" overflow="visible" appearance="full" style="left:25px; top:80px; width:305px; height:20px; border-style:none; ">
  842. <choices>
  843. <item>
  844. <label>새 메시지 도착시 팝업창 알림</label>
  845. <value>1</value>
  846. </item>
  847. </choices>
  848. </select>
  849. </case>
  850. <case id="receivemsg" selected="true">
  851. <datagrid id="grd_receive" nodeset="/root/main/list/recvmsglist/msglist" caption="^확인^종류^발신인^발신인ID^연락처^근무지^환자명^메시지^환자 ID^받은날짜^msgno" colsep="^" colwidth="22, 30, 32, 50, 63, 71, 62, 47, 230, 52, 95, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:69px; width:684px; height:256px; ">
  852. <col ref="check" type="checkbox"/>
  853. <col ref="recvcnfmyn" type="output" style="text-align:center; "/>
  854. <col ref="msgrank" visibility="visible" style="text-align:center; vertical-align:middle; "/>
  855. <col ref="trsmrnm" visibility="visible" style="text-align:center; vertical-align:middle; "/>
  856. <col ref="trsmrid" visibility="hidden"/>
  857. <col ref="mpphonno" secretmark="*" secretstartposition="5" visibility="visible" style="text-align:center; vertical-align:middle; "/>
  858. <col ref="deptnm" visibility="visible" style="text-align:center; vertical-align:middle; "/>
  859. <col ref="patnm" style="text-align:center; vertical-align:middle; "/>
  860. <col ref="msgcnts"/>
  861. <col ref="pid" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  862. <col ref="trsmreqdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; vertical-align:middle; "/>
  863. <col ref="msgno" visibility="hidden"/>
  864. <script type="javascript" ev:event="onrowchanged">
  865. <![CDATA[
  866. fShowReceiveMsg();
  867. ]]>
  868. </script>
  869. </datagrid>
  870. <group id="group1" style="left:0px; top:5px; width:694px; height:35px; ">
  871. <shape id="roundrect1" appearance="roundrect" style="left:5px; top:0px; width:689px; height:35px; "/>
  872. <caption id="caption7" class="search_name" style="left:11px; top:9px; width:91px; height:17px; ">검색조건 :</caption>
  873. <line id="line13" class="line_4" style="x1:595px; y1:5px; x2:595px; y2:32px; "/>
  874. <button id="btn_recivesearch" class="btn1_letter2" style="left:615px; top:7px; width:56px; height:22px; ">
  875. <caption>조회</caption>
  876. <script type="javascript" ev:event="DOMActivate">
  877. <![CDATA[
  878. fGetReceivedMessages();
  879. ]]>
  880. </script>
  881. </button>
  882. <input id="ipt_rsrctxt" ref="/root/send/recivemsg/value" visibility="hidden" style="left:215px; top:8px; width:100px; height:19px; ">
  883. <script type="javascript" ev:event="onkeypress">
  884. <![CDATA[
  885. if (event.keyCode == "13") { // 엔터키인경우만
  886. model.setFocus("btn_recivesearch");
  887. btn_recivesearch.dispatch("DOMActivate");
  888. }
  889. ]]>
  890. </script>
  891. </input>
  892. <input id="ipt_rdate" ref="/root/send/recivemsg/date" visibility="hidden" inputtype="date" style="left:215px; top:8px; width:100px; height:19px; "/>
  893. <!--
  894. <select1 id="rdo_recvmsgrank" ref="/root/send/recivemsg/srank" appearance="full" cols="4" overflow="visible" style="left:350px; top:9px; width:185px; height:20px; border-style:none; ">
  895. <choices>
  896. <itemset nodeset="/root/init/msgrank">
  897. <label ref="label"/>
  898. <value ref="value"/>
  899. </itemset>
  900. </choices>
  901. </select1>
  902. -->
  903. <select1 id="cmb_rmsgcond" ref="/root/send/recivemsg/stype" navindex="4" appearance="minimal" style="left:110px; top:8px; width:100px; height:19px; ">
  904. <choices>
  905. <itemset nodeset="/root/init/rbizabbr">
  906. <label ref="label"/>
  907. <value ref="value"/>
  908. </itemset>
  909. </choices>
  910. <script type="javascript" ev:event="xforms-value-changed">
  911. <![CDATA[
  912. if (cmb_rmsgcond.value == "rdate") {
  913. ipt_rsrctxt.visible = false;
  914. ipt_rdate.visible = true;
  915. } else if (cmb_rmsgcond.value == "all") {
  916. ipt_rsrctxt.visible = false;
  917. ipt_rdate.visible = false;
  918. }
  919. else {
  920. ipt_rsrctxt.visible = true;
  921. ipt_rdate.visible = false;
  922. }
  923. ]]>
  924. </script>
  925. </select1>
  926. </group>
  927. <caption id="caption3" class="tit_2" style="left:10px; top:51px; width:87px; height:13px; ">받은 메세지</caption>
  928. <button id="btn_delrmsg" class="btn5_letter2" visibility="visible" style="left:652px; top:48px; width:42px; height:19px; ">
  929. <caption>삭제</caption>
  930. <script type="javascript" ev:event="DOMActivate">
  931. <![CDATA[
  932. fSubmitDeleteMsg(grd_receive,"T");
  933. ]]>
  934. </script>
  935. </button>
  936. <textarea id="tar_recvmsg" ref="/root/main/recvmsg/msgcnts" style="left:10px; top:335px; width:684px; height:130px; vertical-align:top; "/>
  937. <button id="btn_reply" class="btn5_letter2" visibility="visible" style="left:605px; top:48px; width:42px; height:19px; ">
  938. <caption>답장</caption>
  939. <script type="javascript" ev:event="DOMActivate">
  940. <![CDATA[
  941. fReplyMessage();
  942. ]]>
  943. </script>
  944. </button>
  945. </case>
  946. <case id="sentmsg">
  947. <group id="group2" style="left:0px; top:5px; width:692px; height:35px; ">
  948. <shape id="roundrect2" appearance="roundrect" style="left:5px; top:0px; width:687px; height:35px; "/>
  949. <caption id="caption8" class="search_name" style="left:11px; top:9px; width:91px; height:17px; ">검색조건 :</caption>
  950. <line id="line1" class="line_4" style="x1:595px; y1:5px; x2:595px; y2:27px; "/>
  951. <button id="btn_sentsearch" class="btn1_letter2" style="left:615px; top:7px; width:56px; height:22px; ">
  952. <caption>조회</caption>
  953. <script type="javascript" ev:event="DOMActivate">
  954. <![CDATA[
  955. fGetSentMessages();
  956. ]]>
  957. </script>
  958. </button>
  959. <input id="ipt_ssrctxt" ref="/root/send/sentmsg/value" visibility="hidden" style="left:215px; top:8px; width:100px; height:19px; ">
  960. <script type="javascript" ev:event="onkeypress">
  961. <![CDATA[
  962. if("13" == event.keyCode){
  963. model.setFocus("btn_sentsearch");
  964. btn_sentsearch.dispatch("DOMActivate");
  965. }
  966. ]]>
  967. </script>
  968. </input>
  969. <input id="ipt_sdate" ref="/root/send/sentmsg/date" visibility="hidden" inputtype="date" style="left:215px; top:8px; width:100px; height:19px; "/>
  970. <!--
  971. <select1 id="rdo_sendmsgrank" ref="/root/send/sentmsg/srank" appearance="full" cols="4" overflow="visible" style="left:350px; top:9px; width:185px; height:20px; border-style:none; ">
  972. <choices>
  973. <itemset nodeset="/root/init/msgrank">
  974. <label ref="label"/>
  975. <value ref="value"/>
  976. </itemset>
  977. </choices>
  978. </select1>
  979. -->
  980. <select1 id="cmb_smsgcond" ref="/root/send/sentmsg/stype" appearance="minimal" style="left:110px; top:8px; width:100px; height:19px; ">
  981. <choices>
  982. <itemset nodeset="/root/init/sbizabbr">
  983. <label ref="label"/>
  984. <value ref="value"/>
  985. </itemset>
  986. </choices>
  987. <script type="javascript" ev:event="xforms-value-changed">
  988. <![CDATA[
  989. if (cmb_smsgcond.value == "sdate") {
  990. ipt_ssrctxt.visible = false;
  991. ipt_sdate.visible = true;
  992. } else if (cmb_smsgcond.value == "all") {
  993. ipt_ssrctxt.visible = false;
  994. ipt_sdate.visible = false;
  995. } else {
  996. ipt_ssrctxt.visible = true;
  997. ipt_sdate.visible = false;
  998. }
  999. ]]>
  1000. </script>
  1001. </select1>
  1002. </group>
  1003. <caption id="caption9" class="tit_2" style="left:10px; top:51px; width:87px; height:13px; ">보낸 메세지</caption>
  1004. <datagrid id="grd_sent" nodeset="/root/main/list/sendmsglist/msglist" caption="^확인^종류^수신인^수신인ID^연락처^근무부서^환자명^메시지^환자 ID^보낸날짜^msgno" colsep="^" colwidth="22, 30, 32, 50, 63, 71, 62, 50, 230, 52, 88, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:69px; width:684px; height:257px; ">
  1005. <col ref="check" type="checkbox"/>
  1006. <col ref="recvcnfmyn" type="output" style="text-align:center; "/>
  1007. <col ref="msgrank" visibility="visible" style="text-align:center; vertical-align:middle; "/>
  1008. <col ref="recvrnm" visibility="visible" style="text-align:center; vertical-align:middle; "/>
  1009. <col ref="recvrid" visibility="hidden"/>
  1010. <col ref="mpphonno" secretmark="*" secretstartposition="5" visibility="visible" style="text-align:center; vertical-align:middle; "/>
  1011. <col ref="deptnm" visibility="visible" style="text-align:center; vertical-align:middle; "/>
  1012. <col ref="patnm" style="text-align:center; vertical-align:middle; "/>
  1013. <col ref="msgcnts"/>
  1014. <col ref="pid" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  1015. <col ref="trsmreqdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; vertical-align:middle; "/>
  1016. <col ref="msgno" visibility="hidden"/>
  1017. <script type="javascript" ev:event="onrowchanged">
  1018. <![CDATA[
  1019. fShowSendMsg();
  1020. ]]>
  1021. </script>
  1022. </datagrid>
  1023. <textarea id="tar_sentmsg" ref="/root/main/sentmsg/msgcnts" style="left:10px; top:335px; width:684px; height:130px; vertical-align:top; "/>
  1024. <button id="btn_delsmsg" class="btn5_letter2" visibility="visible" style="left:652px; top:48px; width:42px; height:19px; ">
  1025. <caption>삭제</caption>
  1026. <script type="javascript" ev:event="DOMActivate">
  1027. <![CDATA[
  1028. fSubmitDeleteMsg(grd_sent,"T");
  1029. ]]>
  1030. </script>
  1031. </button>
  1032. </case>
  1033. <case id="writemsg">
  1034. <textarea id="tar_msgcnts" ref="/root/send/writemsg/send/msgcnts" navindex="7" style="left:380px; top:350px; width:315px; height:114px; vertical-align:top; "/>
  1035. <group id="group3" style="left:380px; top:10px; width:315px; height:315px; ">
  1036. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:315px; height:315px; "/>
  1037. <caption id="caption4" class="search_name" style="left:6px; top:5px; width:91px; height:17px; ">받는이</caption>
  1038. <select1 id="rdo_calltype" ref="/root/send/writemsg/send/calltype" navindex="1" overflow="visible" appearance="full" cols="3" style="left:99px; top:245px; width:85px; height:20px; border-style:none; ">
  1039. <choices>
  1040. <itemset nodeset="/root/init/calltype">
  1041. <label ref="label"/>
  1042. <value ref="value"/>
  1043. </itemset>
  1044. </choices>
  1045. </select1>
  1046. <caption id="caption2" class="search_name" style="left:6px; top:244px; width:95px; height:17px; ">호출 형태 :</caption>
  1047. <caption id="caption12" class="search_name" style="left:6px; top:267px; width:99px; height:17px; ">발신 번호 :</caption>
  1048. <input id="ipt_replytelno" ref="/root/send/writemsg/send/calltelno" visibility="visible" style="left:100px; top:267px; width:130px; height:19px; "/>
  1049. <button id="btn_delrecv" class="btn2_letter2" style="left:264px; top:7px; width:42px; height:19px; ">
  1050. <caption>삭제</caption>
  1051. <script type="javascript" ev:event="DOMActivate">
  1052. <![CDATA[
  1053. var srows = grd_receiver.selectedRows;
  1054. var selectedRows = new Array();
  1055. for (var i = 0; i < srows; i++) {
  1056. selectedRows[i] = grd_receiver.selectedRow(i);
  1057. }
  1058. for (var i = selectedRows.length - 1; i >= 0; i--) {
  1059. grd_receiver.deleteRow(selectedRows[i], false);
  1060. }
  1061. grd_receiver.refresh();
  1062. ]]>
  1063. </script>
  1064. </button>
  1065. <!--
  1066. <select id="checkbox1" ref="/root/send/writemsg/send/insuflag" overflow="visible" appearance="full" style="left:255px; top:280px; width:55px; height:20px; border-style:none; ">
  1067. <choices>
  1068. <item>
  1069. <label>보험</label>
  1070. <value>1</value>
  1071. </item>
  1072. </choices>
  1073. </select>
  1074. -->
  1075. <datagrid id="grd_receiver" nodeset="/root/main/list/recvrlist/recvr" visibility="visible" caption="이름^사번^호출 번호^N존^등록번호^부서병동코드" colsep="^" colwidth="72, 49, 90, 56, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" selectionmode="byrow" style="left:10px; top:30px; width:295px; height:210px; ">
  1076. <col ref="usernm"/>
  1077. <col ref="userid" secretmark="*" secretstartposition="4"/>
  1078. <!-- <col ref="mpphonno" secretmark="*" secretstartposition="6"/> -->
  1079. <col ref="mpphonno"/>
  1080. <col ref="pdano"/>
  1081. <col ref="pid" visibility="hidden"/>
  1082. <col ref="deptcd" visibility="hidden"/>
  1083. </datagrid>
  1084. <button id="btn_addbookmark" class="btn2_letter6" style="left:175px; top:7px; width:86px; height:19px; ">
  1085. <caption>즐겨찾기추가</caption>
  1086. <script type="javascript" ev:event="DOMActivate">
  1087. <![CDATA[
  1088. var srows = getNodesetCount("/root/main/list/recvrlist/recvr");
  1089. if (srows <= 0) {
  1090. alert("즐겨 찾기에 추가할 수신자를 선택하세요");
  1091. return;
  1092. }
  1093. model.removeNodeset("/root/send/favorites");
  1094. var selectedRows = grd_receiver.selectedRows;
  1095. var index = 0;
  1096. for (var i = 0; i < selectedRows; i++) {
  1097. var selectedRow = grd_receiver.selectedRow(i);
  1098. var userid = model.getValue("/root/main/list/recvrlist/recvr[" + selectedRow + "]/userid");
  1099. var deptcd = model.getValue("/root/main/list/recvrlist/recvr[" + selectedRow + "]/deptcd");
  1100. // 이미 즐겨 찾기 목록에 있다면 저장할 노드에 추가 하지 않는다.
  1101. if(getNodesetCount("/root/main/list/bookmarklist/bookmark[recvrid=" + userid + " and deptcd=" + deptcd + "]") > 0)
  1102. continue;
  1103. index++;
  1104. model.makeNode("/root/send/favorites[" + index + "]");
  1105. model.copyNode("/root/send/favorites[" + index + "]", "/root/main/list/recvrlist/recvr[" + selectedRow + "]");
  1106. }
  1107. model.refresh();
  1108. submit("TXZMI00206"); // 저장 후 재조회까지 함
  1109. ]]>
  1110. </script>
  1111. </button>
  1112. <caption id="caption13" class="search_name" style="left:6px; top:290px; width:117px; height:17px; ">메시지 수신분류 :</caption>
  1113. <select1 id="rdo_031032" ref="/root/send/writemsg/send/instcd" overflow="visible" appearance="full" cols="4" style="left:130px; top:292px; width:180px; height:20px; border-style:none; ">
  1114. <choices>
  1115. <item>
  1116. <label>본원</label>
  1117. <value>HIS031</value>
  1118. </item>
  1119. <item>
  1120. <label>칠곡</label>
  1121. <value>HIS032</value>
  1122. </item>
  1123. <item>
  1124. <label>MIS</label>
  1125. <value>MIS030</value>
  1126. </item>
  1127. <item>
  1128. <label>CRM</label>
  1129. <value>CRM030</value>
  1130. </item>
  1131. </choices>
  1132. </select1>
  1133. <select1 id="rdo_033" ref="/root/send/writemsg/send/instcd" visibility="hidden" overflow="visible" appearance="full" cols="4" style="left:130px; top:292px; width:180px; height:20px; border-style:none; ">
  1134. <choices>
  1135. <item>
  1136. <label>치과</label>
  1137. <value>HIS031</value>
  1138. </item>
  1139. <item>
  1140. <label>치과MIS</label>
  1141. <value>MIS030</value>
  1142. </item>
  1143. <item>
  1144. <label>치과CRM</label>
  1145. <value>CRM030</value>
  1146. </item>
  1147. </choices>
  1148. </select1>
  1149. </group>
  1150. <caption id="caption14" style="left:380px; top:330px; width:310px; height:20px; text-align:right; ">메시지는 최대 100자(호출시 40자)까지 입력가능합니다.</caption>
  1151. <switch id="switch2" style="left:10px; top:30px; width:360px; height:434px; ">
  1152. <case id="pmsg">
  1153. <button id="button6" class="btn1_letter2" style="left:286px; top:17px; width:56px; height:22px; ">
  1154. <caption>조회</caption>
  1155. </button>
  1156. <shape id="roundrect9" appearance="roundrect" style="left:5px; top:7px; width:345px; height:58px; "/>
  1157. <line id="line5" class="line_4" style="x1:280px; y1:12px; x2:280px; y2:37px; "/>
  1158. <select1 id="rdo_pmsgsearch" ref="/root/send/writemsg/pmsg/stype" navindex="1" overflow="visible" appearance="full" cols="3" style="left:15px; top:16px; width:85px; height:20px; border-style:none; ">
  1159. <choices>
  1160. <itemset nodeset="/root/init/pmsgsearchitem">
  1161. <label ref="label"/>
  1162. <value ref="value"/>
  1163. </itemset>
  1164. </choices>
  1165. </select1>
  1166. <input id="ipt_pmsgsearch" ref="/root/send/writemsg/pmsg/svalue" style="left:205px; top:15px; width:70px; height:19px; ">
  1167. <script type="javascript" ev:event="onkeypress">
  1168. <![CDATA[
  1169. if (event.keyCode == "13") { // 엔터키인경우만
  1170. model.setFocus("btn_callsearch");
  1171. btn_pmsgsearch.dispatch("DOMActivate");
  1172. }
  1173. ]]>
  1174. </script>
  1175. </input>
  1176. <button id="btn_pmsgsearch" class="btn1_letter2" style="left:286px; top:14px; width:56px; height:22px; ">
  1177. <caption>조회</caption>
  1178. <script type="javascript" ev:event="DOMActivate">
  1179. <![CDATA[
  1180. fGetPatientList();
  1181. ]]>
  1182. </script>
  1183. </button>
  1184. <treeview id="trv_pmsgdept" ref="/root/send/writemsg/pmsg/treevalue" itemsettype="depth" style="left:5px; top:70px; width:345px; height:170px; ">
  1185. <itemset nodeset="/root/main/tree/emrdept/depttree">
  1186. <label ref="deptnm"/>
  1187. <value ref="deptcd"/>
  1188. <depth ref="level"/>
  1189. </itemset>
  1190. <script type="javascript" ev:event="ondblclick">
  1191. <![CDATA[
  1192. var selected = model.getValue("/root/send/writemsg/pmsg/treevalue");
  1193. var idx = trv_pmsgdept.focusIndex;
  1194. var treeitem = trv_pmsgdept.item(idx);
  1195. var parentidx = treeitem.parentindex+1;
  1196. if (parentidx > 0) { // 병실 선택
  1197. model.setValue("/root/send/writemsg/pmsg/wardcd",
  1198. model.getValue("/root/main/tree/emrdept/depttree["+parentidx+"]/deptcd"));
  1199. model.setValue("/root/send/writemsg/pmsg/roomcd",selected);
  1200. } else { // 병동 선택
  1201. model.setValue("/root/send/writemsg/pmsg/wardcd",selected);
  1202. model.setValue("/root/send/writemsg/pmsg/roomcd","");
  1203. }
  1204. model.setValue("/root/send/writemsg/pmsg/key","3");
  1205. //alert(selected + "," + parentidx);
  1206. model.refresh();
  1207. submit("TRZMI00112");
  1208. fSetNurseCellComboNodeSet();
  1209. ]]>
  1210. </script>
  1211. </treeview>
  1212. <datagrid id="grd_pmsgsearch" nodeset="/root/main/list/patlist/pmsgpatlist" caption="등록번호^환자명^병실^교수^교수^담당의^담당의^담당간호사^교수ID^담당의ID^진료과부서코드^교수 전화번호^담당의전화번호" colsep="^" colwidth="60, 43, 40, 16, 43, 16, 43, 67, 100, 100, 100, 100, 100" mergecellsfixedcols="never" mergecellsfixedrows="byrow" rowsep="|" style="left:5px; top:245px; width:345px; height:180px; ">
  1213. <col ref="pid"/>
  1214. <col ref="patnm"/>
  1215. <col ref="roomcd"/>
  1216. <col ref="chkmedi" type="checkbox" style="border-right-width:0px; "/>
  1217. <col ref="medispclnm"/>
  1218. <col ref="chkatdoc" type="checkbox" style="border-right-width:0px; "/>
  1219. <col ref="atdoctnm"/>
  1220. <col ref="chknurs" type="checkbox" style="border-right-width:0px; "/>
  1221. <col ref="medispclid" visibility="hidden"/>
  1222. <col ref="atdoctid" visibility="hidden"/>
  1223. <col ref="orddeptcd" visibility="hidden"/>
  1224. <col ref="medispcltel" visibility="hidden"/>
  1225. <col ref="atdocttel" visibility="hidden"/>
  1226. <script type="javascript" ev:event="ondblclick">
  1227. <![CDATA[
  1228. var cur_row = grd_pmsgsearch.row;
  1229. if (cur_row > 0 && isDataCell()) {
  1230. var usernm = "";
  1231. var userid = "";
  1232. var medispclid = "";
  1233. var mpphonno = "";
  1234. var deptcd = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/orddeptcd");
  1235. var pid = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/pid");
  1236. // 담당간호사 체크 확인
  1237. var chknurs = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/chknurs");
  1238. if (chknurs == "true") {
  1239. //alert("true");
  1240. model.setValue("/root/send/writemsg/nurslist/pid",pid);
  1241. submit("TRZMI00113");
  1242. } else {
  1243. model.removeNodeset("/root/main/list/nurslist");
  1244. }
  1245. // 담당교수 체크 확인
  1246. var chkmedi = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/chkmedi");
  1247. if (chkmedi == "true") {
  1248. usernm = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/medispclnm");
  1249. userid = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/medispclid");
  1250. medispclid = userid;
  1251. mpphonno = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/medispcltel");
  1252. if (usernm != "") {
  1253. fAddReceiver(usernm,userid,mpphonno,deptcd,pid);
  1254. }
  1255. }
  1256. // 담당의사 체크 확인
  1257. var chkatdoc = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/chkatdoc");
  1258. if (chkatdoc == "true") {
  1259. usernm = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/atdoctnm");
  1260. userid = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/atdoctid");
  1261. mpphonno = model.getValue("/root/main/list/patlist/pmsgpatlist["+cur_row+"]/atdocttel");
  1262. if (usernm != "" && userid != medispclid) {
  1263. fAddReceiver(usernm,userid,mpphonno,deptcd,pid);
  1264. }
  1265. }
  1266. // 담당간호사 존재시 추가
  1267. var nursnodelist = instance1.selectNodes("/root/main/list/nurslist/nurse");
  1268. for(var i=1;i<=nursnodelist.length;i++) {
  1269. usernm = model.getValue("/root/main/list/nurslist/nurse["+i+"]/nursnm");
  1270. userid = model.getValue("/root/main/list/nurslist/nurse["+i+"]/nursid");
  1271. mpphonno = model.getValue("/root/main/list/nurslist/nurse["+i+"]/nurstel");
  1272. var nursdeptcd = model.getValue("/root/send/writemsg/pmsg/wardcd");
  1273. if (usernm != "") {
  1274. fAddReceiver(usernm,userid,mpphonno,nursdeptcd,pid);
  1275. }
  1276. }
  1277. model.refresh();
  1278. }
  1279. ]]>
  1280. </script>
  1281. </datagrid>
  1282. <select1 id="combo1" ref="/root/send/writemsg/pmsg/orddeptcd" appearance="minimal" style="left:95px; top:42px; width:130px; height:19px; ">
  1283. <choices>
  1284. <itemset nodeset="/root/main/tree/emrdept/orddept">
  1285. <label ref="deptnm"/>
  1286. <value ref="deptcd"/>
  1287. </itemset>
  1288. </choices>
  1289. </select1>
  1290. <caption id="caption11" class="search_name" style="left:15px; top:43px; width:75px; height:17px; ">진료과 :</caption>
  1291. </case>
  1292. <case id="umsg" selected="true">
  1293. <shape id="roundrect8" appearance="roundrect" style="left:5px; top:7px; width:345px; height:35px; "/>
  1294. <button id="btn_umsgsearch" class="btn1_letter2" style="left:286px; top:14px; width:56px; height:22px; ">
  1295. <caption>조회</caption>
  1296. <script type="javascript" ev:event="DOMActivate">
  1297. <![CDATA[
  1298. fGetUserList();
  1299. ]]>
  1300. </script>
  1301. </button>
  1302. <input id="ipt_umsgsearch" ref="/root/send/writemsg/umsg/inputvalue" style="left:205px; top:15px; width:70px; height:19px; ">
  1303. <script type="javascript" ev:event="onkeypress">
  1304. <![CDATA[
  1305. if (event.keyCode == "13") { // 엔터키인경우만
  1306. model.setFocus("btn_callsearch");
  1307. btn_umsgsearch.dispatch("DOMActivate");
  1308. }
  1309. ]]>
  1310. </script>
  1311. </input>
  1312. <select1 id="rdo_umsgsearch" ref="/root/send/writemsg/umsg/stype" navindex="1" overflow="visible" appearance="full" cols="3" style="left:10px; top:16px; width:85px; height:20px; border-style:none; ">
  1313. <choices>
  1314. <itemset nodeset="/root/init/umsgsearchitem">
  1315. <label ref="label"/>
  1316. <value ref="value"/>
  1317. </itemset>
  1318. </choices>
  1319. <script type="javascript" ev:event="onclick">
  1320. <![CDATA[
  1321. if (rdo_umsgsearch.value == "3") { // 최근 사용자
  1322. ipt_umsgsearch.visible= false;
  1323. } else { // 그 외
  1324. ipt_umsgsearch.visible=true;
  1325. }
  1326. ]]>
  1327. </script>
  1328. </select1>
  1329. <datagrid id="grd_umsgsearch" nodeset="/root/main/list/userlist/umsguserlist" caption="^기관^이름^근무지부서^휴대폰^N존" colsep="^" colwidth="20, 30, 59, 105, 91, 50" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:260px; width:350px; height:170px; ">
  1330. <col ref="chk" type="checkbox" validateformat="false"/>
  1331. <col ref="dutplceinstcd" type="combo">
  1332. <choices>
  1333. <item>
  1334. <label>본원</label>
  1335. <value>031</value>
  1336. </item>
  1337. <item>
  1338. <label>칠곡</label>
  1339. <value>032</value>
  1340. </item>
  1341. <item>
  1342. <label>치과</label>
  1343. <value>033</value>
  1344. </item>
  1345. </choices>
  1346. </col>
  1347. <col ref="usernm"/>
  1348. <col ref="deptnm"/>
  1349. <!-- <col ref="mpphonno" secretmark="*" secretstartposition="5"/> -->
  1350. <col ref="mpphonno"/>
  1351. <col ref="pdano"/>
  1352. <script type="javascript" ev:event="ondblclick">
  1353. <![CDATA[
  1354. var cur_row = grd_umsgsearch.row;
  1355. if (cur_row > 0) {
  1356. grd_receiver.addrow(false);
  1357. var recv_row = grd_receiver.rows-1;
  1358. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",
  1359. model.getValue("/root/main/list/userlist/umsguserlist["+cur_row+"]/usernm"));
  1360. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",
  1361. model.getValue("/root/main/list/userlist/umsguserlist["+cur_row+"]/userid"));
  1362. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",
  1363. model.getValue("/root/main/list/userlist/umsguserlist["+cur_row+"]/mpphonno"));
  1364. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/pdano",
  1365. model.getValue("/root/main/list/userlist/umsguserlist["+cur_row+"]/pdano"));
  1366. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",
  1367. model.getValue("/root/main/list/userlist/umsguserlist["+cur_row+"]/deptcd"));
  1368. model.refresh();
  1369. }
  1370. ]]>
  1371. </script>
  1372. </datagrid>
  1373. <line id="line3" class="line_4" style="x1:280px; y1:12px; x2:280px; y2:37px; "/>
  1374. <treeview id="trv_umsgdept" ref="/root/send/writemsg/umsg/treevalue" itemsettype="depth" style="left:5px; top:50px; width:345px; height:180px; ">
  1375. <itemset nodeset="/root/main/tree/dept/depttree">
  1376. <label ref="inorddeptnm"/>
  1377. <value ref="deptcd"/>
  1378. <depth ref="lvl"/>
  1379. </itemset>
  1380. <script type="javascript" ev:event="ondblclick">
  1381. <![CDATA[
  1382. var deptcd = model.getValue("/root/send/writemsg/umsg/treevalue");
  1383. if(deptcd == "1000000000") return;
  1384. model.setValue("/root/send/writemsg/umsg/value", deptcd);
  1385. model.setValue("/root/send/writemsg/umsg/key","4");
  1386. model.setValue("/root/send/writemsg/umsg/instcds", model.getValue("/root/main/tree/dept/depttree[" + trv_umsgdept.mouseRow + "]/instcd"));
  1387. submit("TRZMI00111");
  1388. ]]>
  1389. </script>
  1390. </treeview>
  1391. <button id="button1" class="btn2_letter6" style="left:265px; top:237px; width:86px; height:19px; ">
  1392. <caption>받는이 추가▶</caption>
  1393. <script type="javascript" ev:event="DOMActivate">
  1394. <![CDATA[
  1395. model.removeNodeset(grd_receiver.nodeset);
  1396. grd_receiver.refresh();
  1397. for( var i = 0 ; i < grd_umsgsearch.rows ; i++ ){
  1398. if (model.getValue("/root/main/list/userlist/umsguserlist["+ i +"]/chk") == "true"){
  1399. grd_receiver.addrow(false);
  1400. var recv_row = grd_receiver.rows-1;
  1401. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",
  1402. model.getValue("/root/main/list/userlist/umsguserlist["+i+"]/usernm"));
  1403. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",
  1404. model.getValue("/root/main/list/userlist/umsguserlist["+i+"]/userid"));
  1405. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",
  1406. model.getValue("/root/main/list/userlist/umsguserlist["+i+"]/mpphonno"));
  1407. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/pdano",
  1408. model.getValue("/root/main/list/userlist/umsguserlist["+i+"]/pdano"));
  1409. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",
  1410. model.getValue("/root/main/list/userlist/umsguserlist["+i+"]/deptcd"));
  1411. }
  1412. }
  1413. ]]>
  1414. </script>
  1415. </button>
  1416. </case>
  1417. <case id="bookmark">
  1418. <datagrid id="grd_bookmark" nodeset="/root/main/list/bookmarklist/bookmark" visibility="visible" caption="^이름^사번^근무부서^호출 번호^근무부서코드" colsep="^" colwidth="22, 72, 49, 74, 90, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:10px; top:35px; width:340px; height:385px; ">
  1419. <col ref="check" type="checkbox"/>
  1420. <col ref="recvrnm"/>
  1421. <col ref="recvrid" secretmark="*" secretstartposition="4"/>
  1422. <col ref="deptnm"/>
  1423. <col ref="mpphonno" secretmark="*" secretstartposition="5"/>
  1424. <col ref="deptcd" visibility="hidden"/>
  1425. <script type="javascript" ev:event="ondblclick">
  1426. <![CDATA[
  1427. var cur_row = grd_bookmark.row;
  1428. if (cur_row > 0) {
  1429. grd_receiver.addrow(false);
  1430. var recv_row = grd_receiver.rows-1;
  1431. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",
  1432. model.getValue("/root/main/list/bookmarklist/bookmark["+cur_row+"]/recvrnm"));
  1433. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",
  1434. model.getValue("/root/main/list/bookmarklist/bookmark["+cur_row+"]/recvrid"));
  1435. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",
  1436. model.getValue("/root/main/list/bookmarklist/bookmark["+cur_row+"]/mpphonno"));
  1437. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",
  1438. model.getValue("/root/main/list/bookmarklist/bookmark["+cur_row+"]/deptcd"));
  1439. model.refresh();
  1440. }
  1441. ]]>
  1442. </script>
  1443. <script type="javascript" ev:event="onmouseup">
  1444. <![CDATA[
  1445. if ((grd_bookmark.row >= grd_bookmark.fixedRows) && (grd_bookmark.isCell(event.target))) {
  1446. var colidx = grd_bookmark.col;
  1447. var colCheck = grd_bookmark.colRef("check");
  1448. if ( grd_bookmark.row > 0){
  1449. for (var i = 0 ; i< grd_bookmark.selectedRows;i++){
  1450. var selectRow = grd_bookmark.selectedRow(i);
  1451. if (model.getValue("/root/main/list/bookmarklist/bookmark[" + selectRow + "]/check")== "false" ||
  1452. model.getValue("/root/main/list/bookmarklist/bookmark[" + selectRow + "]/check")== ""){
  1453. if( colidx != colCheck)
  1454. model.setValue("/root/main/list/bookmarklist/bookmark[" + selectRow + "]/check", "true");
  1455. } else {
  1456. if( colidx != colCheck)
  1457. model.setValue("/root/main/list/bookmarklist/bookmark[" + selectRow + "]/check", "false");
  1458. }
  1459. }
  1460. grd_bookmark.refresh();
  1461. }
  1462. }
  1463. ]]>
  1464. </script>
  1465. </datagrid>
  1466. <button id="btn_getbookmark" class="btn2_letter2" style="left:309px; top:12px; width:42px; height:19px; ">
  1467. <caption>조회</caption>
  1468. <script type="javascript" ev:event="DOMActivate">
  1469. <![CDATA[
  1470. fLoadBookmark();
  1471. ]]>
  1472. </script>
  1473. </button>
  1474. <button id="btn_delbookmark" class="btn2_letter2" style="left:265px; top:12px; width:42px; height:19px; ">
  1475. <caption>삭제</caption>
  1476. <script type="javascript" ev:event="DOMActivate">
  1477. <![CDATA[
  1478. if (getNodesetCount("/root/main/list/bookmarklist/bookmark[check='true']") <= 0) {
  1479. alert("삭제할 수신자를 선택하세요");
  1480. return;
  1481. }
  1482. if(messageBox("체크되어 있는 즐겨찾기 항목을", "Q001") == 6) {
  1483. for (var i = grd_bookmark.fixedRows ; i < grd_bookmark.rows; i++){
  1484. if(model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/check") != "true") continue;
  1485. grd_bookmark.addStatus(i, "delete");
  1486. }
  1487. var del_rows = getGridUpdateData(grd_bookmark);
  1488. if (del_rows != "") {
  1489. model.makeValue("/root/send/delfavorite",del_rows);
  1490. submit("TXZMI00207");
  1491. }
  1492. }
  1493. ]]>
  1494. </script>
  1495. </button>
  1496. <button id="button3" class="btn5_letter6" style="left:177px; top:12px; width:86px; height:19px; ">
  1497. <caption>선택항목추가</caption>
  1498. <script type="javascript" ev:event="DOMActivate">
  1499. <![CDATA[
  1500. for (var i = grd_bookmark.fixedRows; i < grd_bookmark.rows ;i++){
  1501. if(model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/check") != "true") continue;
  1502. grd_receiver.addrow(false);
  1503. var recv_row = grd_receiver.rows - 1;
  1504. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/usernm",
  1505. model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/recvrnm"));
  1506. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/userid",
  1507. model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/recvrid"));
  1508. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/mpphonno",
  1509. model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/mpphonno"));
  1510. model.setValue("/root/main/list/recvrlist/recvr["+recv_row+"]/deptcd",
  1511. model.getValue("/root/main/list/bookmarklist/bookmark[" + i + "]/deptcd"));
  1512. }
  1513. grd_receiver.refresh();
  1514. ]]>
  1515. </script>
  1516. </button>
  1517. </case>
  1518. </switch>
  1519. <button id="btn_pmsg" class="btn_sw" group="writemsg" selected="false" style="left:10px; top:9px; width:60px; height:22px; ">
  1520. <caption>환자</caption>
  1521. <script type="javascript" ev:event="DOMActivate">
  1522. <![CDATA[
  1523. model.toggle("pmsg");
  1524. fSetPatientID();
  1525. fLoadEmrDeptTree();
  1526. fInitWriteMsgInstcd();
  1527. rdo_031032.disabled = true;
  1528. rdo_033.disabled = true;
  1529. ]]>
  1530. </script>
  1531. </button>
  1532. <button id="btn_umsg" class="btn_sw" group="writemsg" selected="true" style="left:69px; top:9px; width:60px; height:22px; ">
  1533. <caption>사용자</caption>
  1534. <script type="javascript" ev:event="DOMActivate">
  1535. <![CDATA[
  1536. model.toggle("umsg");
  1537. fLoadDeptTree();
  1538. rdo_031032.disabled = false;
  1539. rdo_033.disabled = false;
  1540. ]]>
  1541. </script>
  1542. </button>
  1543. <button id="btn_bookmark" class="btn_sw" group="writemsg" selected="false" style="left:128px; top:9px; width:72px; height:22px; ">
  1544. <caption>즐겨찾기</caption>
  1545. <script type="javascript" ev:event="DOMActivate">
  1546. <![CDATA[
  1547. model.toggle("bookmark");
  1548. fLoadBookmark();
  1549. rdo_031032.disabled = false;
  1550. rdo_033.disabled = false;
  1551. ]]>
  1552. </script>
  1553. </button>
  1554. </case>
  1555. <case id="trash" style="left:0px; top:0px; width:706px; height:476px; ">
  1556. <datagrid id="grd_trashlist" nodeset="/root/main/list/trashmsglist/msglist" caption="^확인^종류^발신인^송신자ID^수신인^수신자ID^환자명^메시지^환자 ID^일자^msgno" colsep="^" colwidth="22, 30, 32, 46, 59, 46, 60, 46, 314, 68, 110, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:69px; width:684px; height:256px; ">
  1557. <col ref="check" type="checkbox"/>
  1558. <col ref="recvcnfmyn" style="text-align:center; "/>
  1559. <col ref="msgrank" visibility="visible"/>
  1560. <col ref="trsmrnm" visibility="visible"/>
  1561. <col ref="trsmrid" visibility="hidden"/>
  1562. <col ref="recvrnm" visibility="visible"/>
  1563. <col ref="recvrid" visibility="hidden"/>
  1564. <col ref="pathm"/>
  1565. <col ref="msgcnts"/>
  1566. <col ref="pid" visibility="hidden"/>
  1567. <col ref="trsmreqdt" format="yyyy-mm-dd hh:nn:ss"/>
  1568. <col ref="msgno" visibility="hidden"/>
  1569. <script type="javascript" ev:event="onrowchanged">
  1570. <![CDATA[
  1571. fShowTrashMsg();
  1572. ]]>
  1573. </script>
  1574. </datagrid>
  1575. <caption id="caption17" class="tit_2" style="left:10px; top:51px; width:87px; height:13px; ">휴지통</caption>
  1576. <button id="btn_trashdel" class="btn5_letter4" visibility="visible" style="left:495px; top:48px; width:64px; height:19px; ">
  1577. <caption>완전삭제</caption>
  1578. <script type="javascript" ev:event="DOMActivate">
  1579. <![CDATA[
  1580. fSubmitDeleteMsg(grd_trashlist,"Y");
  1581. ]]>
  1582. </script>
  1583. </button>
  1584. <button id="btn_trashrestor" class="btn5_letter2" visibility="visible" style="left:562px; top:48px; width:42px; height:19px; ">
  1585. <caption>복원</caption>
  1586. <script type="javascript" ev:event="DOMActivate">
  1587. <![CDATA[
  1588. fSubmitDeleteMsg(grd_trashlist,"N");
  1589. ]]>
  1590. </script>
  1591. </button>
  1592. <group id="group4" style="left:0px; top:5px; width:694px; height:35px; ">
  1593. <shape id="roundrect6" appearance="roundrect" style="left:5px; top:0px; width:689px; height:35px; "/>
  1594. <caption id="caption15" class="search_name" style="left:11px; top:9px; width:91px; height:17px; ">검색조건 :</caption>
  1595. <line id="line2" class="line_4" style="x1:600px; y1:5px; x2:600px; y2:27px; "/>
  1596. <button id="btn_trashsearch" class="btn1_letter2" style="left:620px; top:7px; width:56px; height:22px; ">
  1597. <caption>조회</caption>
  1598. <script type="javascript" ev:event="DOMActivate">
  1599. <![CDATA[
  1600. fGetTrashList();
  1601. ]]>
  1602. </script>
  1603. </button>
  1604. <input id="ipt_tdate" ref="/root/send/trashmsg/date" visibility="hidden" inputtype="date" style="left:215px; top:8px; width:100px; height:19px; "/>
  1605. <select1 id="cmb_tmsgcond" ref="/root/send/trashmsg/stype" navindex="4" appearance="minimal" style="left:110px; top:8px; width:100px; height:19px; ">
  1606. <choices>
  1607. <itemset nodeset="/root/init/tbizabbr">
  1608. <label ref="label"/>
  1609. <value ref="value"/>
  1610. </itemset>
  1611. </choices>
  1612. <script type="javascript" ev:event="xforms-value-changed">
  1613. <![CDATA[
  1614. if (cmb_tmsgcond.value == "date") {
  1615. ipt_tsrctxt.visible = false;
  1616. ipt_tdate.visible = true;
  1617. } else if (cmb_tmsgcond.value == "all") {
  1618. ipt_tsrctxt.visible = false;
  1619. ipt_tdate.visible = false;
  1620. }
  1621. else {
  1622. ipt_tsrctxt.visible = true;
  1623. ipt_tdate.visible = false;
  1624. }
  1625. ]]>
  1626. </script>
  1627. </select1>
  1628. <input id="ipt_tsrctxt" ref="/root/send/trashmsg/value" visibility="hidden" style="left:215px; top:8px; width:100px; height:19px; ">
  1629. <script type="javascript" ev:event="onkeypress">
  1630. <![CDATA[
  1631. if("13" == event.keyCode){
  1632. model.setFocus("btn_trashsearch");
  1633. btn_trashsearch.dispatch("DOMActivate");
  1634. //fClicked("search", grd_userbaseinfo, param);
  1635. }
  1636. ]]>
  1637. </script>
  1638. </input>
  1639. <select1 id="rdo_trashmsgrank" ref="/root/send/trashmsg/srank" overflow="visible" appearance="full" cols="4" style="left:350px; top:9px; width:185px; height:20px; border-style:none; ">
  1640. <choices>
  1641. <itemset nodeset="/root/init/msgrank">
  1642. <label ref="label"/>
  1643. <value ref="value"/>
  1644. </itemset>
  1645. </choices>
  1646. </select1>
  1647. </group>
  1648. <button id="btn_cleartrash" class="btn5_letter6" style="left:607px; top:48px; width:86px; height:19px; ">
  1649. <caption>휴지통비우기</caption>
  1650. <script type="javascript" ev:event="DOMActivate">
  1651. <![CDATA[
  1652. var rtnValue = messageBox("화면에 보이는 메세지 뿐 아니라\n휴지통의 전제 메세지가 완전삭제됩니다.\n", "Q003");
  1653. // 예. 휴지통을 비웁니다.
  1654. if (rtnValue == 6) {
  1655. //model.resetInstanceNode("/root/main/trashmsg/msgcnts");
  1656. if (submit("TXZMI00203")) {
  1657. alert("모두 "+model.getValue("/root/main/cleartrash/succnt")+"건이 삭제되었습니다.");
  1658. btn_trashsearch.dispatch("DOMActivate");
  1659. }
  1660. }
  1661. ]]>
  1662. </script>
  1663. </button>
  1664. <textarea id="tar_trashmsg" ref="/root/main/trashmsg/msgcnts" style="left:10px; top:335px; width:684px; height:130px; vertical-align:top; "/>
  1665. </case>
  1666. <case id="calllist">
  1667. <group id="group5" style="left:0px; top:5px; width:694px; height:35px; ">
  1668. <shape id="roundrect7" appearance="roundrect" style="left:5px; top:0px; width:689px; height:35px; "/>
  1669. <caption id="caption18" class="search_name" style="left:11px; top:9px; width:91px; height:17px; ">검색조건 :</caption>
  1670. <line id="line4" class="line_4" style="x1:620px; y1:5px; x2:620px; y2:27px; "/>
  1671. <button id="btn_callsearch" class="btn1_letter2" style="left:630px; top:7px; width:56px; height:22px; ">
  1672. <caption>조회</caption>
  1673. <script type="javascript" ev:event="DOMActivate">
  1674. <![CDATA[
  1675. fGetCallList();
  1676. ]]>
  1677. </script>
  1678. </button>
  1679. <input id="ipt_csrctxt" ref="/root/send/callmsg/value" visibility="hidden" style="left:220px; top:8px; width:100px; height:19px; ">
  1680. <script type="javascript" ev:event="onkeypress">
  1681. <![CDATA[
  1682. if (event.keyCode == "13") { // 엔터키인경우만
  1683. model.setFocus("btn_callsearch");
  1684. btn_callsearch.dispatch("DOMActivate");
  1685. }
  1686. ]]>
  1687. </script>
  1688. </input>
  1689. <input id="ipt_cdate" ref="/root/send/callmsg/date" visibility="hidden" inputtype="date" style="left:220px; top:8px; width:100px; height:19px; "/>
  1690. <select1 id="cmb_cmsgcond" ref="/root/send/callmsg/stype" navindex="4" appearance="minimal" style="left:110px; top:8px; width:100px; height:19px; ">
  1691. <choices>
  1692. <itemset nodeset="/root/init/cbizabbr">
  1693. <label ref="label"/>
  1694. <value ref="value"/>
  1695. </itemset>
  1696. </choices>
  1697. <script type="javascript" ev:event="xforms-value-changed">
  1698. <![CDATA[
  1699. if (cmb_cmsgcond.value == "cdate") {
  1700. ipt_csrctxt.visible = false;
  1701. ipt_cdate.visible = true;
  1702. } else if (cmb_cmsgcond.value == "all") {
  1703. ipt_csrctxt.visible = false;
  1704. ipt_cdate.visible = false;
  1705. } else {
  1706. ipt_csrctxt.visible = true;
  1707. ipt_cdate.visible = false;
  1708. }
  1709. ]]>
  1710. </script>
  1711. </select1>
  1712. </group>
  1713. <caption id="caption19" class="tit_2" style="left:10px; top:51px; width:100px; height:13px; ">호출내역 조회</caption>
  1714. <datagrid id="grd_calllist" nodeset="/root/main/list/callmsglist/msglist" caption="^수신인^호출번호^메시지^호출시간^전송상태^msgkey" colsep="^" colwidth="21, 57, 103, 278, 113, 72, 0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:69px; width:684px; height:256px; ">
  1715. <col ref="selectmsg" type="checkbox"/>
  1716. <col ref="recvrnm" style="text-align:center; "/>
  1717. <col ref="recvrtelno" format="999-9999-9999" style="text-align:center; "/>
  1718. <col ref="msgcnts"/>
  1719. <col ref="fstrgstdt" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  1720. <col disabled="true" ref="msgstate" type="combo" style="text-align:center; ">
  1721. <choices>
  1722. <item>
  1723. <label>전송대기</label>
  1724. <value>ZM00</value>
  1725. </item>
  1726. <item>
  1727. <label>전송중</label>
  1728. <value>ZM01</value>
  1729. </item>
  1730. <item>
  1731. <label>전송실패</label>
  1732. <value>ZM02</value>
  1733. </item>
  1734. <item>
  1735. <label>전송성공</label>
  1736. <value>ZM03</value>
  1737. </item>
  1738. <item>
  1739. <label>전송취소</label>
  1740. <value>ZM04</value>
  1741. </item>
  1742. </choices>
  1743. </col>
  1744. <col ref="msgkey" visibility="hidden"/>
  1745. <script type="javascript" ev:event="onrowchanged">
  1746. <![CDATA[
  1747. fShowCallMsg();
  1748. ]]>
  1749. </script>
  1750. </datagrid>
  1751. <textarea id="tar_callmsg" ref="/root/main/callmsg/msgcnts" style="left:10px; top:335px; width:684px; height:130px; vertical-align:top; "/>
  1752. <caption id="caption10" style="left:120px; top:48px; width:192px; height:20px; ">(최대 1,000 건 까지만 조회됩니다.)</caption>
  1753. <button id="btn_recall" class="btn5_letter3" visibility="hidden" style="left:580px; top:45px; width:53px; height:19px; ">
  1754. <caption>재호출</caption>
  1755. <script type="javascript" ev:event="DOMActivate">
  1756. <![CDATA[
  1757. alert("현재 구현 중입니다.");
  1758. ]]>
  1759. </script>
  1760. </button>
  1761. <button id="button2" class="btn5_letter2" visibility="visible" style="left:647px; top:45px; width:42px; height:19px; ">
  1762. <caption>삭제</caption>
  1763. <script type="javascript" ev:event="DOMActivate">
  1764. <![CDATA[
  1765. delcalllist("D");
  1766. ]]>
  1767. </script>
  1768. </button>
  1769. </case>
  1770. </switch>
  1771. <button id="btn_msgsent" class="btn_sw" group="tab" selected="false" style="left:191px; top:26px; width:94px; height:22px; ">
  1772. <caption>보낸메세지함</caption>
  1773. <script type="javascript" ev:event="DOMActivate">
  1774. <![CDATA[
  1775. btn_msgsend.visible = false;
  1776. btn_writeinit.visible = false;
  1777. model.toggle("sentmsg");
  1778. model.setValue("/root/temp","");
  1779. ]]>
  1780. </script>
  1781. </button>
  1782. <button id="btn_msgwrite" class="btn_sw" group="tab" style="left:104px; top:26px; width:88px; height:22px; ">
  1783. <caption>메세지 쓰기</caption>
  1784. <script type="javascript" ev:event="DOMActivate">
  1785. <![CDATA[
  1786. model.toggle("writemsg");
  1787. var sid = switch2.children.item(switch2.selectedIndex).attribute("id")
  1788. //alert(sid);
  1789. if (sid == "pmsg") {
  1790. fLoadEmrDeptTree();
  1791. } else if (sid == "umsg") {
  1792. fLoadDeptTree();
  1793. }
  1794. btn_msgsend.visible = true;
  1795. grd_umsgsearch.fixedcellcheckbox(0, grd_umsgsearch.colRef("chk")) = true;
  1796. ]]>
  1797. </script>
  1798. </button>
  1799. <button id="btn_msgsetting" class="btn_sw" visibility="visible" group="tab" selected="false" style="left:381px; top:26px; width:98px; height:22px; ">
  1800. <caption>환경 설정</caption>
  1801. <script type="javascript" ev:event="DOMActivate">
  1802. <![CDATA[
  1803. model.toggle("setting");
  1804. btn_msgsend.visible = false;
  1805. btn_writeinit.visible = true;
  1806. btn_writeinit.visible = false;
  1807. model.setValue("/root/temp","");
  1808. ]]>
  1809. </script>
  1810. </button>
  1811. <button id="btn_msgreceive" class="btn_sw" group="tab" selected="true" style="left:7px; top:26px; width:98px; height:22px; ">
  1812. <caption>받은메세지함</caption>
  1813. <script type="javascript" ev:event="DOMActivate">
  1814. <![CDATA[
  1815. btn_msgsend.visible = false;
  1816. btn_writeinit.visible = false;
  1817. model.toggle("receivemsg");
  1818. model.setValue("/root/temp","");
  1819. ]]>
  1820. </script>
  1821. </button>
  1822. <caption id="caption6" class="tit_2" style="left:0px; top:0px; width:143px; height:14px; vertical-align:middle; ">메시지함</caption>
  1823. <button id="btn_close" class="btn4_letter2" disabled="false" style="left:660px; top:530px; width:56px; height:22px; ">
  1824. <caption>닫기</caption>
  1825. <script type="javascript" ev:event="DOMActivate">
  1826. <![CDATA[
  1827. model.close();
  1828. ]]>
  1829. </script>
  1830. </button>
  1831. <button id="btn_msgsend" class="btn4_letter7" visibility="hidden" style="left:535px; top:530px; width:116px; height:22px; ">
  1832. <caption>메세지 보내기</caption>
  1833. <script type="javascript" ev:event="DOMActivate">
  1834. <![CDATA[
  1835. // 필수 입력 확인
  1836. if (tar_msgcnts.value == "" ) {
  1837. messageBox("메시지는", "I003");
  1838. return;
  1839. }
  1840. if (grd_receiver.rows <= 1) {
  1841. messageBox("받는이는", "I003");
  1842. return;
  1843. }
  1844. // 메시지 크기 확인
  1845. //var msglen = fGetMessageByteLen(model.getValue("/root/send/writemsg/send/msgcnts"));
  1846. var msgcnts = new String(model.getValue("/root/send/writemsg/send/msgcnts"));
  1847. var msglen = msgcnts.getByteLength();
  1848. var calltype = model.getValue("/root/send/writemsg/send/calltype");
  1849. if (calltype == "msg" && msglen > 200) {
  1850. messageBox("한글 100글자를 초과 입력할 수 없습니다.\n현재 "+msglen,"E");
  1851. return;
  1852. } else if (calltype != "msg" && msglen > 80) {
  1853. messageBox("한글 40글자를 초과 입력할 수 없습니다.\n현재 "+msglen,"E");
  1854. return;
  1855. }
  1856. // 받는이 목록 인코딩
  1857. var recvrs = grd_receiver.getUpdateData();
  1858. /**
  1859. var rows = grd_receiver.rows;
  1860. for(var i=1;i<rows;i++) {
  1861. recvrs = recvrs+grd_receiver.valueMatrix(i,grd_receiver.colref("userid"))+"|";
  1862. recvrs = recvrs+grd_receiver.valueMatrix(i,grd_receiver.colref("usernm"))+"|";
  1863. recvrs = recvrs+grd_receiver.valueMatrix(i,grd_receiver.colref("mpphonno"))+"|";
  1864. recvrs = recvrs+grd_receiver.valueMatrix(i,grd_receiver.colref("pid"))+";";
  1865. } **/
  1866. model.makeValue("/root/send/writemsg/send/recvrid",recvrs);
  1867. model.setValue("/root/send/writemsg/send/systemnm", model.getValue("/root/send/writemsg/send/instcd"));
  1868. if (submit("TXZMI00202") ) {
  1869. messageBox("메시지 전송이 ", "I002");
  1870. model.removeNodeset("/root/main/list/recvrlist");
  1871. }
  1872. /*
  1873. if (model.getValue("/root/temp/succnt/getV") > 0) {
  1874. messageBox("메시지 전송이 ", "I002");
  1875. model.removeNodeset("/root/main/list/recvrlist");
  1876. tar_recvrid.value = "";
  1877. tar_msgcnts.value = "";
  1878. } else {
  1879. messageBox("메시지 전송이 ","E009");
  1880. } */
  1881. model.refresh();
  1882. ]]>
  1883. </script>
  1884. </button>
  1885. <button id="btn_writeinit" class="btn4_letter3" visibility="hidden" style="left:460px; top:530px; width:68px; height:22px; ">
  1886. <caption>초기화</caption>
  1887. <script type="javascript" ev:event="DOMActivate">
  1888. <![CDATA[
  1889. model.setValue("/root/send/writemsg/msgcnts", "");
  1890. model.setValue("/root/send/writemsg/recvrid", "");
  1891. model.refresh();
  1892. ]]>
  1893. </script>
  1894. </button>
  1895. <button id="btn_calllist" class="btn_sw" group="tab" selected="false" style="left:284px; top:26px; width:98px; height:22px; ">
  1896. <caption>호출내역조회</caption>
  1897. <script type="javascript" ev:event="DOMActivate">
  1898. <![CDATA[
  1899. btn_msgsend.visible = false;
  1900. btn_writeinit.visible = false;
  1901. model.toggle("calllist");
  1902. model.setValue("/root/temp","");
  1903. ]]>
  1904. </script>
  1905. </button>
  1906. <!--
  1907. <button id="btn_trash" class="btn_sw" group="tab" selected="false" style="left:381px; top:26px; width:98px; height:22px; ">
  1908. <caption>휴지통</caption>
  1909. <script type="javascript" ev:event="DOMActivate">
  1910. <![CDATA[
  1911. model.toggle("trash");
  1912. btn_msgsend.visible = false;
  1913. btn_writeinit.visible = true;
  1914. btn_writeinit.visible = false;
  1915. model.setValue("/root/temp","");
  1916. ]]>
  1917. </script>
  1918. </button>
  1919. -->
  1920. </xhtml:body>
  1921. </xhtml:html>