SPADT63503_전광판리모콘.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <drugnoinfo>
  11. <item>
  12. <drugno/>
  13. <updatedt/>
  14. <dispflag/>
  15. </item>
  16. <drugnolist>
  17. <item>
  18. <drugno/>
  19. <dispflag/>
  20. <lastupdtdt/>
  21. <max/>
  22. </item>
  23. <newyn>
  24. <cnt/>
  25. </newyn>
  26. </drugnolist>
  27. </drugnoinfo>
  28. <drugnopanlist>
  29. <item1>
  30. <drugno1/>
  31. <drugno2/>
  32. <drugno3/>
  33. <drugno4/>
  34. <drugno5/>
  35. </item1>
  36. <item1>
  37. <drugno1/>
  38. <drugno2/>
  39. <drugno3/>
  40. <drugno4/>
  41. <drugno5/>
  42. </item1>
  43. <item1>
  44. <drugno1/>
  45. <drugno2/>
  46. <drugno3/>
  47. <drugno4/>
  48. <drugno5/>
  49. </item1>
  50. <item1>
  51. <drugno1/>
  52. <drugno2/>
  53. <drugno3/>
  54. <drugno4/>
  55. <drugno5/>
  56. </item1>
  57. <item1>
  58. <drugno1/>
  59. <drugno2/>
  60. <drugno3/>
  61. <drugno4/>
  62. <drugno5/>
  63. </item1>
  64. <item1>
  65. <drugno1/>
  66. <drugno2/>
  67. <drugno3/>
  68. <drugno4/>
  69. <drugno5/>
  70. </item1>
  71. </drugnopanlist>
  72. <msg>
  73. <msgcnts/>
  74. </msg>
  75. <basemsg>
  76. <msg/>
  77. </basemsg>
  78. </main>
  79. <send>
  80. <data>
  81. <drugdd/>
  82. <drugno/>
  83. <allyn/>
  84. </data>
  85. <req>
  86. <drugdd/>
  87. <drugno/>
  88. <ioflag/>
  89. <drugstat/>
  90. <dispflag/>
  91. <dispcnts/>
  92. <inputtm/>
  93. <userid/>
  94. <stocdeptcd/>
  95. <instcd/>
  96. <srchrcvflag/>
  97. <srchdrugmngtyn/>
  98. <pid/>
  99. </req>
  100. </send>
  101. <init>
  102. <drugInput/>
  103. </init>
  104. <hidden>
  105. <item>
  106. <count/>
  107. <delFlag/>
  108. <sound/>
  109. </item>
  110. <cnfrresult/>
  111. <basemsg/>
  112. </hidden>
  113. </root>
  114. </instance>
  115. <submission id="TRADT01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/drugnoinfo/drugnolist"/>
  116. <submission id="TRADT63501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/hidden/basemsg"/>
  117. <submission id="TXADT63501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/hidden/basemsg"/>
  118. <submission id="TXADT00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/item"/>
  119. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  122. <script type="javascript">
  123. <![CDATA[
  124. var gTimer = null;
  125. var gTimerMsg = null;
  126. function fAlert(){
  127. alert("전광판 표시 한계를 넘었습니다. \n 임의 삭제 또는 투약 완료로 전광판 숫자를 줄여 주세요.");
  128. }
  129. // 리스트 조회
  130. function fGetDrugNo(){
  131. submit("TRADT01201",false);
  132. var total = 0;
  133. var colcnt = 0;
  134. var z = 1;
  135. for(var a = 0; a < drugList.rows; a++) {
  136. for(var b = 0; b < drugList.cols; b++) {
  137. drugList.valueMatrix(a,b) = "";
  138. }
  139. }
  140. total = getNodesetCount("/root/main/drugnoinfo/drugnolist/item");
  141. colcnt = total/6;
  142. for(var j = 0; j < colcnt; j++) {
  143. for(var i = 0; i < 6; i++) {
  144. if(z <= total) {
  145. drugList.valueMatrix(i, j) = model.getValue("/root/main/drugnoinfo/drugnolist/item[" + z + "]/drugno");
  146. z++;
  147. }
  148. }
  149. }
  150. drugList.refresh();
  151. //if (gTimer != null) {
  152. // window.clearinterval(gTimer); //TIMER 무조건 초기화
  153. // gTimer = null;
  154. //}
  155. if( total > 30){
  156. alert("전광판 표시 한계(30개)를 넘었습니다. \n 임의 삭제 또는 투약 완료로 전광판 숫자를 줄여 주세요.");
  157. //gTimer = window.setInterval("fGetDrugNo()", 10000);
  158. } else {
  159. //gTimer = window.setInterval("fGetDrugNo()", 6000);
  160. model.setFocus("drugnoInput");
  161. }
  162. //drugnoInput.selectionText;
  163. // if(status != "del") {
  164. // fNuCall();
  165. // }
  166. // if(getChildUID("SMADT01200") != "") {
  167. // window.children.item("SMADT01200").model.dispatch("fGetSearch");
  168. // }
  169. }
  170. // }
  171. // 삭제 시 처리
  172. function fSubmitDrugStat(drugstat){
  173. var selrow = 0;
  174. var predrugstat = ""; // 이전처방상태
  175. if (drugList.rows > 0 && drugList.row <= 0)
  176. selrow = 1;
  177. else selrow = drugList.row;
  178. if(model.getValue("/root/init/drugInput") == "") {
  179. for(var i = 0; i < drugList.selectedCells.length; i++) {
  180. // 전송정보
  181. model.setValue("/root/send/req/drugdd" , getCurrentDate());
  182. model.setValue("/root/send/req/drugno" , drugList.valueMatrix(drugList.selectedCells.item(i).row,drugList.selectedCells.item(i).col) );
  183. model.setValue("/root/send/req/drugstat" , "P");
  184. model.setValue("/root/send/req/userid" , getUserId());
  185. model.setValue("/root/send/req/instcd" , getUserInfo("dutplceinstcd"));
  186. // 전광판처리
  187. if ( drugstat =="P" && model.getValue("/root/send/req/drugno") != ""){
  188. model.setValue("/root/send/req/dispflag", "P");
  189. model.setValue("/root/send/req/inputtm", getCurrentTime());
  190. //전광판 데이터
  191. submit("TXADT00702");
  192. }
  193. }
  194. } else {
  195. // 전송정보
  196. model.setValue("/root/send/req/drugdd" , getCurrentDate());
  197. model.setValue("/root/send/req/drugno" , model.getValue("/root/init/drugInput"));
  198. model.setValue("/root/send/req/drugstat" , "P");
  199. model.setValue("/root/send/req/userid" , getUserId());
  200. model.setValue("/root/send/req/instcd" , getUserInfo("dutplceinstcd"));
  201. // 전광판처리
  202. if ( drugstat =="P" && model.getValue("/root/send/req/drugno") != ""){
  203. model.setValue("/root/send/req/dispflag", "P");
  204. model.setValue("/root/send/req/inputtm", getCurrentTime());
  205. //전광판 데이터
  206. submit("TXADT00702", false);
  207. model.setValue("/root/init/drugInput", "");
  208. drugnoInput.refresh();
  209. drugList.refresh();
  210. }
  211. }
  212. }
  213. function fNuCall(drugno){
  214. // alert("drugno = " + drugno);
  215. // var max_drugno = drugno;
  216. // var max_drugno2;
  217. // var soundStat = "";
  218. //
  219. // alert("aa = " +max_drugno);
  220. // alert("aa = " +max_drugno.length);
  221. // if(max_drugno.length == 1 ){
  222. // max_drugno2 = "000"+max_drugno;
  223. // } else if (max_drugno.length == 2 ){
  224. // max_drugno2 = "00"+max_drugno;
  225. // } else if (max_drugno.length == 3 ){
  226. // max_drugno2 = "0"+max_drugno;
  227. // } else if (max_drugno.length == 4 || max_drugno.length == 5 ){
  228. // max_drugno2 = max_drugno;
  229. // }
  230. // if(soundStat == "A" ){
  231. // alert("max_drugno2 = " +max_drugno2);
  232. // if (max_drugno2.length != 5){
  233. // for (var i = max_drugno2.length; i > 0; i--){
  234. //// // 5번째 자리는 당분간 생략
  235. //// if(i = 5){
  236. //// var OOOOO = max_drugno.substring(0,i-1)+"0000.wav";
  237. //// alert("5 = "+OOOOO)
  238. //// }
  239. // if(i == 4){
  240. // var OOOO = max_drugno2.substring(0,1)+"000.wav";
  241. // snd2 = "";
  242. // if(OOOO != "0000.wav"){
  243. // snd2 ="c:\\windows\\media\\"+OOOO;
  244. // }
  245. // }
  246. // if(i == 3 ){
  247. // var OOO = max_drugno2.substring(1,2)+"00.wav";
  248. // snd3 = "";
  249. // if(OOO != "000.wav"){
  250. // snd3 ="c:\\windows\\media\\"+OOO;
  251. // }
  252. // }
  253. // if(i==2){
  254. // var OO = max_drugno2.substring(2,3)+"0.wav";
  255. // snd4 = "";
  256. // if(OO != "00.wav"){
  257. // snd4 ="c:\\windows\\media\\"+OO;
  258. // }
  259. // }
  260. // if(i==1){
  261. // var O = "0"+max_drugno2.substring(3,4)+".wav";
  262. // snd5 = "";
  263. // if(O != "00.wav"){
  264. // snd5 ="c:\\windows\\media\\"+O;
  265. // }
  266. // }
  267. // }//for
  268. //snd1 ="c:\\windows\\media\\딩동1.wav";
  269. // snd6 ="c:\\windows\\media\\번.wav";
  270. //var intcnt =100;
  271. // call1 = window.setInterval("fCall1()",intcnt);
  272. object1.url = snd1;
  273. // if(OOOO != "0000.wav"){
  274. // intcnt=intcnt+1500;
  275. //// fSleep(500);
  276. // call2 = window.setInterval("fCall2()",intcnt);
  277. // }
  278. // if(OOO != "000.wav"){
  279. // intcnt=intcnt+1500;
  280. //// fSleep(550);
  281. // call3 = window.setInterval("fCall3()",intcnt);
  282. // }
  283. // if(OO != "00.wav"){
  284. // intcnt=intcnt+1000;
  285. //// fSleep(600);
  286. // call4 = window.setInterval("fCall4()",intcnt);
  287. // }
  288. // if(O != "00.wav"){
  289. // intcnt=intcnt+1000;
  290. //// fSleep(650);
  291. // call5 = window.setInterval("fCall5()",intcnt);
  292. // }
  293. // intcnt=intcnt+1000;
  294. //// fSleep(700);
  295. // call6 = window.setInterval("fCall6()",intcnt);
  296. // }
  297. // }
  298. }
  299. function fCall1(){
  300. object1.url = snd1;
  301. window.clearInterval(call1);
  302. }
  303. function fCall2(){
  304. object2.url = snd2;
  305. window.clearInterval(call2);
  306. }
  307. function fCall3(){
  308. object3.url = snd3;
  309. window.clearInterval(call3);
  310. }
  311. function fCall4(){
  312. object4.url = snd4;
  313. window.clearInterval(call4);
  314. }
  315. function fCall5(){
  316. object5.url = snd5;
  317. window.clearInterval(call5);
  318. }
  319. function fCall6(){
  320. object6.url = snd6;
  321. window.clearInterval(call6);
  322. }
  323. function fSleep(numberMillis) {
  324. var now = new Date();
  325. var exitTime = now.getTime() + numberMillis;
  326. while (true) {
  327. now = new Date();
  328. if (now.getTime() > exitTime)
  329. return;
  330. }
  331. }
  332. //공지사항을 변경한다.
  333. function fChgNoticeMsg() {
  334. curPharmObj = getOpenWindow("SMADT01202"); //활성화된 전광판현황 object Loading
  335. if (curPharmObj != null) {
  336. var msgcnts = model.getValue("/root/main/msg/msgcnts")
  337. if (!isNull(msgcnts)) {
  338. curPharmObj.model.setValue("/root/main/msgcnts/item", msgcnts);
  339. } else {
  340. curPharmObj.model.setValue("/root/main/msgcnts/item", "");
  341. }
  342. curPharmObj.model.refresh();
  343. }
  344. }
  345. // 전광판의 메시지를 초기화 한다. 메시지는 기본메시지로 설정
  346. function fInitNoticeMsg() {
  347. model.setValue("/root/main/msg/msgcnts", "기본메시지가 뜹니다.");
  348. fChgNoticeMsg();
  349. model.refresh();
  350. }
  351. // 전광판 현황에 있는 메시지를 가지고 온다
  352. function fGetNoticeMsg() {
  353. fGetBaseMsg();
  354. curPharmObj = getOpenWindow("SMADT01202"); //활성화된 전광판현황 object Loading
  355. if (curPharmObj != null) {
  356. var msgcnts = curPharmObj.model.getValue("/root/main/msgcnts/item")
  357. if (!isNull(msgcnts)) {
  358. model.setValue("/root/main/msg/msgcnts", msgcnts);
  359. } else {
  360. model.setValue("/root/main/msg/msgcnts", model.getValue("/root/hidden/basemsg/basemsg/msg"));
  361. }
  362. } else {
  363. model.setValue("/root/main/msg/msgcnts", model.getValue("/root/hidden/basemsg/basemsg/msg"));
  364. }
  365. model.refresh();
  366. }
  367. // 기본 메시지를 수정한다.
  368. function fSetBaseMsg() {
  369. var msg = model.getValue("/root/main/basemsg/msg");
  370. if (!isNull(msg)) {
  371. model.makeValue("/root/send/reqdata/cmt", msg);
  372. model.makeValue("/root/send/reqdata/cdgrupid", "A999");
  373. model.makeValue("/root/send/reqdata/cdid", "1");
  374. submit("TXADT63501");
  375. model.setValue("/root/main/basemsg/msg", model.getValue("/root/hidden/basemsg/basemsg/msg"));
  376. }
  377. }
  378. function fGetBaseMsg() {
  379. model.makeValue("/root/send/reqdata/cdgrupid", "A999");
  380. model.makeValue("/root/send/reqdata/cdid", "1");
  381. submit("TRADT63501");
  382. model.setValue("/root/main/basemsg/msg", model.getValue("/root/hidden/basemsg/basemsg/msg"));
  383. }
  384. ]]>
  385. </script>
  386. <script type="javascript" ev:event="xforms-ready">
  387. <![CDATA[
  388. //open("SMADT01200","2","-1","-1","SMADT01200","","","","true");
  389. //open("SMADT01200",2,0,0,"SMADT01200","/root/source","/root/target", "width:1900; height:600; sysmenu:hidden; min:visible; max:true; resize:true; caption:hidden;" , false, "x");
  390. fGetNoticeMsg();
  391. // fGetBaseMsg();
  392. model.setValue("/root/send/data/drugdd", getCurrentDate());
  393. model.setValue("/root/send/data/allyn", "Y");
  394. // model.getValue("/root/hidden/item/sound","/root/hidden/item/sound");
  395. fGetDrugNo();
  396. model.setValue("/root/send/data/allyn", "N");
  397. drugList.refresh();
  398. //1분=60000
  399. ]]>
  400. </script>
  401. <script type="javascript" ev:event="xforms-model-destruct">
  402. <![CDATA[
  403. if ( gTimer !=null ) {
  404. window.clearinterval(gTimer);
  405. }
  406. if ( gTimerMsg !=null ){
  407. window.clearinterval(gTimerMsg);
  408. }
  409. ]]>
  410. </script>
  411. </model>
  412. </xhtml:head>
  413. <xhtml:body pagewidth="520" pageheight="275" guideline="1,502;2,319;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  414. <group id="group3" scroll="auto" style="left:0px; top:0px; width:500px; height:245px; ">
  415. <caption id="caption1" class="tit_2" style="left:5px; top:7px; width:100px; height:14px; ">전광판 리모콘</caption>
  416. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:495px; y2:25px; "/>
  417. <datagrid id="drugList" nodeset="/root/main/drugnopanlist/item1" colsep="|" colwidth="98, 98, 98, 98, 98" dataheight="28" defaultrows="6" ellipsis="true" extendlastcol="noscroll" rowheight="23" rowsep="|" selectionmode="free" style="left:0px; top:30px; width:495px; height:145px; font-size:14pt; font-weight:bold; text-align:right; ">
  418. <col ref="drugno1" style="text-align:right; "/>
  419. <col ref="drugno2" style="text-align:right; "/>
  420. <col ref="drugno3" style="text-align:right; "/>
  421. <col ref="drugno4" style="text-align:right; "/>
  422. <col ref="drugno5" style="text-align:right; "/>
  423. <script type="javascript" ev:event="onclick">
  424. <![CDATA[
  425. //var row = drugList.row;
  426. //var dispflag = "";
  427. //dispflag = model.getValue("/root/main/drugnoinfo/drugnolist/item["+row+"]/dispflag");
  428. if ( drugList.valueMatrix(drugList.row,drugList.col) > ' ') {
  429. fGetDrugNo();
  430. // if (gTimer != null) { //ihyeo73
  431. // window.clearinterval(gTimer);
  432. // gTimer = null;
  433. // gTimer = window.setInterval("fGetDrugNo()", 6000);
  434. //
  435. // }
  436. }
  437. // if(dispflag != "D" ){
  438. // model.setValue("/root/init/drugInput" ,model.getValue("/root/main/drugnoinfo/drugnolist/item["+row+"]/drugno"));
  439. // }
  440. //drugList.refresh();
  441. ]]>
  442. </script>
  443. <script type="javascript" ev:event="xforms-value-changed">
  444. <![CDATA[
  445. ]]>
  446. </script>
  447. </datagrid>
  448. <caption id="caption22" class="tit_2" style="left:5px; top:180px; width:75px; height:13px; ">투약번호</caption>
  449. <input id="drugnoInput" ref="/root/init/drugInput" class="input_default" autonext="false" maxlength="14" style="left:5px; top:195px; width:115px; height:19px; ">
  450. <script type="javascript" ev:event="onkeyup">
  451. <![CDATA[
  452. if(event.keyCode == "13"){
  453. setInputNodeCurText();
  454. var barcode = model.getValue("/root/init/drugInput");
  455. var cnt = 0;
  456. if (barcode.length == 14) {
  457. ioflag = barcode.substr(0,1);
  458. drugdd = barcode.substr(1,8);
  459. drugno = Number(barcode.substr(9,barcode.length-9));
  460. model.setValue("/root/init/drugInput", drugno);
  461. } else {
  462. drugno = barcode;
  463. }
  464. model.refresh();
  465. for(var row = 0; row < 9 ; row++) {
  466. for(var col = 0; col < 7; col++) {
  467. if(drugList.findRow(drugno, row , col, false, true) > -1) {
  468. drugList.select(row, col, row, col) = true;
  469. model.setValue("/root/init/drugInput", drugno);
  470. cnt++;
  471. }
  472. }
  473. }
  474. if(cnt > 0) {
  475. button2.dispatch("onclick"); // 전광판에 존재하면 삭제
  476. } else {
  477. drugInput.dispatch("DOMActivate"); //전광판에 없으면 입력
  478. }
  479. } else {
  480. if ( model.getValue("/root/init/drugInput") > ' ') {
  481. fGetDrugNo();
  482. //if (gTimer != null) { //ihyeo73
  483. // window.clearinterval(gTimer);
  484. // gTimer = null;
  485. // gTimer = window.setInterval("fGetDrugNo()", 5000);
  486. //}
  487. }
  488. }
  489. ]]>
  490. </script>
  491. </input>
  492. <button id="drugInput" class="btn4_letter2" style="left:8px; top:217px; width:56px; height:22px; ">
  493. <caption>입력</caption>
  494. <script type="javascript" ev:event="DOMActivate">
  495. <![CDATA[
  496. //if (gTimer != null) {
  497. // window.clearinterval(gTimer); //TIMER 무조건 초기화
  498. // gTimer = null;
  499. //}
  500. // 전송정보
  501. model.setValue("/root/send/req/drugdd" , getCurrentDate());
  502. model.setValue("/root/send/req/drugno" , model.getValue("/root/init/drugInput"));
  503. model.setValue("/root/send/req/userid" , getUserId());
  504. model.setValue("/root/send/req/instcd" , getUserInfo("dutplceinstcd"));
  505. model.setValue("/root/send/req/dispflag", "U");
  506. model.setValue("/root/send/req/dispcnts", "N");
  507. model.setValue("/root/send/req/inputtm", getCurrentTime());
  508. // model.setValue("/root/hidden/item/sound",selSound.value);
  509. // var z ="F";
  510. // var listCount = getNodesetCount("/root/main/drugnoinfo/drugnolist/item");
  511. //
  512. // if(listCount == 0){
  513. // listCount = 1;
  514. // }
  515. //
  516. // for(i=1; i<=listCount;i++){
  517. // if(model.getValue("/root/init/drugInput") == model.getValue("/root/main/drugnoinfo/drugnolist/item["+i+"]/drugno")){
  518. // z = "F";
  519. // break;
  520. // } else {
  521. // z = "T";
  522. // }
  523. // }
  524. // if(z == "T"){
  525. // fNuCall(model.getValue("/root/init/drugInput"));
  526. // alert("2");
  527. if ( model.getValue("/root/init/drugInput") > ' ' ) {
  528. submit("TXADT00702", false);
  529. }
  530. // } else {
  531. // alert("중복된 데이터가 존재 합니다. \n 다시 한번 확인해 보세요.");
  532. // }
  533. model.setValue("/root/init/drugInput","");
  534. drugnoInput.refresh();
  535. fGetDrugNo();
  536. ]]>
  537. </script>
  538. </button>
  539. <button id="button2" class="btn4_letter2" style="left:65px; top:217px; width:56px; height:22px; ">
  540. <caption>삭제</caption>
  541. <script type="javascript" ev:event="onclick">
  542. <![CDATA[
  543. //if (gTimer != null) {
  544. // window.clearinterval(gTimer); //TIMER 무조건 초기화
  545. // gTimer = null;
  546. //}
  547. fSubmitDrugStat("P");
  548. model.setValue("/root/send/data/allyn", "Y");
  549. fGetDrugNo();
  550. model.setValue("/root/send/data/allyn", "N");
  551. ]]>
  552. </script>
  553. </button>
  554. <button id="btn_cancel" class="btn2_letter2" style="left:450px; top:5px; width:42px; height:19px; ">
  555. <caption>닫기</caption>
  556. <close ev:event="DOMActivate"/>
  557. </button>
  558. <button id="button1" class="btn4_letter2" style="left:410px; top:195px; width:56px; height:22px; ">
  559. <caption>적용</caption>
  560. <script type="javascript" ev:event="DOMActivate">
  561. <![CDATA[
  562. fChgNoticeMsg();
  563. ]]>
  564. </script>
  565. </button>
  566. <textarea id="textarea1" ref="/root/main/msg/msgcnts" scroll="autovscroll" style="left:137px; top:200px; width:270px; height:35px; "/>
  567. <caption id="caption2" class="tit_2" style="left:132px; top:185px; width:75px; height:13px; ">공지사항</caption>
  568. <button id="button3" class="btn4_letter3" style="left:410px; top:220px; width:68px; height:22px; ">
  569. <caption>초기화</caption>
  570. <script type="javascript" ev:event="DOMActivate">
  571. <![CDATA[
  572. fInitNoticeMsg();
  573. ]]>
  574. </script>
  575. </button>
  576. <button id="button4" class="btn2_letter8" style="left:300px; top:180px; width:108px; height:19px; ">
  577. <caption>기본 메시지 수정</caption>
  578. <script type="javascript" ev:event="DOMActivate">
  579. <![CDATA[
  580. grp_basemsg.visible = true;
  581. ]]>
  582. </script>
  583. </button>
  584. <group id="grp_basemsg" disabled="false" visibility="hidden" style="left:80px; top:90px; width:340px; height:70px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
  585. <caption id="caption5" style="left:5px; top:5px; width:72px; height:20px; font-weight:bold; vertical-align:middle; ">기본메세지</caption>
  586. <button id="btn_cnfm" class="btn2_letter2" style="left:283px; top:24px; width:42px; height:19px; ">
  587. <caption>확인</caption>
  588. <script type="javascript" ev:event="DOMActivate">
  589. <![CDATA[
  590. fSetBaseMsg();
  591. model.setValue("/root/main/msg/msgcnts", model.getValue("/root/main/basemsg/msg"));
  592. model.refresh();
  593. grp_basemsg.visible = false;
  594. ]]>
  595. </script>
  596. </button>
  597. <button id="btn_cncl" class="btn2_letter2" style="left:283px; top:44px; width:42px; height:19px; ">
  598. <caption>취소</caption>
  599. <script type="javascript" ev:event="DOMActivate">
  600. <![CDATA[
  601. model.setValue("/root/main/basemsg/msg", "");
  602. grp_basemsg.visible = false;
  603. ]]>
  604. </script>
  605. </button>
  606. <textarea id="textarea2" ref="/root/main/basemsg/msg" scroll="autovscroll" style="left:4px; top:24px; width:276px; height:35px; "/>
  607. </group>
  608. </group>
  609. <object id="object1" clsid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" visibility="hidden" style="left:30px; top:80px; width:110px; height:45px; "/>
  610. <object id="object2" clsid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" visibility="hidden" style="left:30px; top:80px; width:110px; height:45px; "/>
  611. <object id="object3" clsid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" visibility="hidden" style="left:30px; top:80px; width:110px; height:45px; "/>
  612. <object id="object4" clsid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" visibility="hidden" style="left:30px; top:80px; width:110px; height:45px; "/>
  613. <object id="object5" clsid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" visibility="hidden" style="left:30px; top:80px; width:110px; height:45px; "/>
  614. <object id="object6" clsid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" visibility="hidden" style="left:30px; top:80px; width:110px; height:45px; "/>
  615. </xhtml:body>
  616. </xhtml:html>