SPMMP03300_제한시간알림메세지조회.xrw 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. <alertinfo>
  11. <pid/>
  12. <cretno/>
  13. <orddd/>
  14. <ordtype/>
  15. <limno/>
  16. <limhistno/>
  17. <cpgappno/>
  18. <alertstatcd/>
  19. <title/>
  20. <alertoffyn/>
  21. <stepno/>
  22. <stepnm/>
  23. <fromtm/>
  24. <termtm/>
  25. <limtm/>
  26. <status/>
  27. </alertinfo>
  28. <alertlist/>
  29. <prcp/>
  30. </main>
  31. <send>
  32. <reqdata/>
  33. </send>
  34. <tmp>
  35. <info>
  36. <pid/>
  37. <cretno/>
  38. <orddd/>
  39. <ordtype/>
  40. <limno/>
  41. <limhistno/>
  42. <cpgappno/>
  43. <alertstatcd/>
  44. <title/>
  45. <alertoffyn/>
  46. <stepno/>
  47. <stepnm/>
  48. <fromtm/>
  49. <termtm/>
  50. <limtm/>
  51. <status/>
  52. </info>
  53. </tmp>
  54. <init>
  55. <prcpstatcd/>
  56. </init>
  57. </root>
  58. </instance>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. zbcfGetCodeList( new Array("M0011"), new Array("/root/init/prcpstatcd") );
  62. // pid ▦ cretno ▦ orddd ▦ ordtype ▦ limno ▦ limhistno ▦ cpgappno ▦ alertstatcd ▦ title ▦ alertoffyn ▦ stepno ▦ stepnm
  63. alertData = opener.javascript.getParameter("alertdata_SMMMP00800");
  64. var sData = alertData.split("▩");
  65. var tData = null;
  66. for( var i=0; i<sData.length-1; i++ ){
  67. tData = sData[i].split("▦");
  68. pid = tData[0];
  69. cretno = tData[1];
  70. ordtype = tData[2];
  71. orddd = tData[3];
  72. limno = tData[4];
  73. limhistno = tData[5];
  74. cpgappno = tData[6];
  75. alertstatcd = tData[7];
  76. title = tData[8];
  77. alertoffyn = tData[9];
  78. stepno = tData[10];
  79. stepnm = tData[11];
  80. model.setValue("/root/tmp/info/pid", pid);
  81. model.setValue("/root/tmp/info/cretno", cretno);
  82. model.setValue("/root/tmp/info/orddd", orddd);
  83. model.setValue("/root/tmp/info/ordtype", ordtype);
  84. model.setValue("/root/tmp/info/limno", limno);
  85. model.setValue("/root/tmp/info/limhistno", limhistno);
  86. model.setValue("/root/tmp/info/cpgappno", cpgappno);
  87. model.setValue("/root/tmp/info/alertstatcd", alertstatcd);
  88. model.setValue("/root/tmp/info/title", title);
  89. model.setValue("/root/tmp/info/alertoffyn", alertoffyn);
  90. model.setValue("/root/tmp/info/stepno", stepno);
  91. model.setValue("/root/tmp/info/stepnm", stepnm);
  92. model.setValue("/root/tmp/info/status", "-");
  93. copyNodeListType("/root/main/alertlist", "/root/tmp/info", "after", model, model);
  94. }
  95. model.refresh();
  96. grd_alertinfo.select(1, 1, 1, grd_alertinfo.cols) = true;
  97. grd_alertinfo.isselected(1) = true;
  98. grd_alertinfo.row = grd_alertinfo.selectedRow(0);
  99. model.removeNodeset("/root/main/alertinfo/info");
  100. fGetLimTMList(grd_alertinfo.row);
  101. fCnfmLimAttr();
  102. ]]>
  103. </script>
  104. <submission id="TRMMP03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/alertinfo" resultref="/root/main/prcp"/>
  105. <submission id="TXMMP00810" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
  106. </model>
  107. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  109. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  110. <script type="javascript">
  111. <![CDATA[
  112. var pid = "";
  113. var cretno = "";
  114. var orddd = "";
  115. var ordtype = "";
  116. var alertData = "";
  117. var alertstatcd = "";
  118. var limno = "";
  119. var limhistno = "";
  120. var title = "";
  121. var alertoffyn = "";
  122. var cpgappno = "";
  123. var stepno = "";
  124. var stepnm = "";
  125. function fGetLimTMList( iRow ){
  126. model.copyNode("/root/main/alertinfo", "/root/main/alertlist/info["+ iRow +"]");
  127. submit( "TRMMP03301", true );
  128. var fromtm = instance1.selectSingleNode("/root/main/prcp/liminfo/fromtm");
  129. var termtm = instance1.selectSingleNode("/root/main/prcp/liminfo/termtm");
  130. var unitflag = instance1.selectSingleNode("/root/main/prcp/liminfo/limtmunitflag");
  131. var limtm = instance1.selectSingleNode("/root/main/prcp/liminfo/limtm");
  132. if( limtm != null ){
  133. if( unitflag.text == "H" ) var unitnm = "시간";
  134. else var unitnm = "분";
  135. model.setValue("/root/main/alertinfo/fromtm", fromtm.text);
  136. model.setValue("/root/main/alertinfo/termtm", termtm.text + unitnm);
  137. model.setValue("/root/main/alertinfo/limtm", limtm.text);
  138. }else{
  139. model.setValue("/root/main/alertinfo/fromtm", "");
  140. model.setValue("/root/main/alertinfo/termtm", "");
  141. model.setValue("/root/main/alertinfo/limtm", "");
  142. }
  143. //model.removeNodeset("/root/main/prcp/liminfo");
  144. cap_termtm.refresh();
  145. cap_rmntm.refresh();
  146. }
  147. function fCnfmLimAttr(){
  148. model.removeNodeset("/root/send/reqdata");
  149. model.makeNode("/root/send/reqdata");
  150. var statusFlag = "";
  151. if(model.getValue("/root/main/alertinfo/alertstatcd") == "I" ){
  152. statusFlag = "W";
  153. }else if(model.getValue("/root/main/alertinfo/alertstatcd") == "T" ){
  154. statusFlag = "E";
  155. }
  156. model.setValue("/root/main/alertinfo/alertstatcd", statusFlag);
  157. model.setValue("/root/main/alertinfo/status", "U");
  158. model.copyNode("/root/send/reqdata", "/root/main/alertinfo");
  159. model.makeValue("/root/send/reqdata/attrflagcd", "3"); //1:모니터링, 2:스크리닝, 3:제한시간, 4:문진
  160. if( submit("TXMMP00810", false) ){
  161. var limno = model.getValue("/root/main/alertinfo/limno");
  162. var limhistno = model.getValue("/root/main/alertinfo/limhistno");
  163. opener.window.javascript.setParameter("alertstatcd_TRMMP03300", "E");
  164. model.setValue("/root/main/alertlist/info[limno='" + limno + "']/status", statusFlag);
  165. }
  166. /*
  167. if( instance1.selectNodes("/root/main/alertlist/info[status!='E']").length == 0 ){
  168. window.close();
  169. }else{
  170. //model.removeNodeset("/root/main/alertlist/info[" + grd_alertinfo.row + "]");
  171. grd_alertinfo.refresh();
  172. //grd_alertinfo.select(1, 1, 1, grd_alertinfo.cols) = true;
  173. //grd_alertinfo.isselected(1) = true;
  174. //grd_alertinfo.row = grd_alertinfo.selectedRow(0);
  175. //grd_alertinfo.dispatch("onclick");
  176. }
  177. */
  178. }
  179. ]]>
  180. </script>
  181. </xhtml:head>
  182. <xhtml:body pagewidth="516" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  183. <caption id="caption22" class="tit_2" style="left:5px; top:4px; width:121px; height:13px; ">기준</caption>
  184. <group id="group_biz" style="left:0px; top:20px; width:500px; height:455px; ">
  185. <line id="line4" class="line_1" style="x1:0px; y1:0px; x2:498px; y2:1px; "/>
  186. <caption id="caption3" class="hand" style="left:0px; top:415px; width:481px; height:28px; ">
  187. <![CDATA[위의 처방들은 [ ] 내인 [ ] 까지
  188. Acting 되어야 합니다.]]>
  189. </caption>
  190. <line id="line7" class="line_3" style="x1:0px; y1:407px; x2:498px; y2:407px; "/>
  191. <line id="line1" class="line_1" style="x1:0px; y1:138px; x2:498px; y2:139px; "/>
  192. <datagrid id="grd_alertinfo" nodeset="/root/main/alertlist/info" autoresize="true" caption="스텝명^내용" colsep="^" colwidth="130, 349" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:4px; width:498px; height:96px; ">
  193. <col ref="stepnm"/>
  194. <col ref="title"/>
  195. <script type="javascript" ev:event="onclick">
  196. <![CDATA[
  197. var iRow = grd_alertinfo.row;
  198. if( iRow > 0 && iRow <= grd_alertinfo.rows ){
  199. model.removeNodeset("/root/main/alertinfo/info");
  200. fGetLimTMList(iRow);
  201. fCnfmLimAttr();
  202. }
  203. ]]>
  204. </script>
  205. </datagrid>
  206. <datagrid id="grd_prcplist" nodeset="/root/main/prcp/prcplist" caption="상태^처방코드^처방명" colsep="^" colwidth="75, 87, 316" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:142px; width:498px; height:265px; ">
  207. <col disabled="true" ref="prcpstatcd" type="combo">
  208. <choices>
  209. <itemset nodeset="/root/init/prcpstatcd/M0011">
  210. <label ref="cdnm"/>
  211. <value ref="cdid"/>
  212. </itemset>
  213. </choices>
  214. </col>
  215. <col ref="prcpcd"/>
  216. <col ref="prcpnm"/>
  217. </datagrid>
  218. <caption id="cap_rmntm" ref="/root/main/alertinfo/limtm" style="left:242px; top:412px; width:150px; height:20px; font-weight:bolder; color:#ff0000; "/>
  219. <line id="line2" class="line_3" style="x1:0px; y1:100px; x2:498px; y2:100px; "/>
  220. <caption id="cap_termtm" ref="/root/main/alertinfo/termtm" style="left:120px; top:412px; width:65px; height:20px; font-weight:bolder; color:#ff0000; "/>
  221. </group>
  222. <caption id="caption1" class="tit_2" style="left:0px; top:141px; width:121px; height:13px; ">미수행 처방</caption>
  223. <button id="btn_close" class="btn4_letter2" style="left:444px; top:476px; width:56px; height:22px; ">
  224. <caption>닫기</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. window.close();
  228. ]]>
  229. </script>
  230. </button>
  231. <button id="btn_cnfm" class="btn4_letter2" visibility="hidden" style="left:387px; top:476px; width:56px; height:22px; ">
  232. <caption>확인</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. fCnfmLimAttr();
  236. ]]>
  237. </script>
  238. </button>
  239. </xhtml:body>
  240. </xhtml:html>