SPADT63500_전광판리모콘.xrw 23 KB

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