SMMNV06210_응급공지사항관리012.xrw 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <ermainnotinfo>
  11. <ermainnotilist>
  12. <orddd/>
  13. <msg/>
  14. <msgfromtm/>
  15. <msgtotm/>
  16. </ermainnotilist>
  17. </ermainnotinfo>
  18. </main>
  19. <send>
  20. <con/>
  21. </send>
  22. <hidden/>
  23. </root>
  24. </instance>
  25. <script type="javascript" ev:event="xforms-ready">
  26. <![CDATA[
  27. fGetData();
  28. ]]>
  29. </script>
  30. <script type="javascript">
  31. <![CDATA[
  32. function fGetData(){
  33. model.makeValue("/root/send/con/orddd", "99999999");
  34. model.makeValue("/root/send/con/msgfromtm", "0000");
  35. model.makeValue("/root/send/con/msgtotm", "2359");
  36. model.makeValue("/root/send/con/rownum", "");
  37. submit("TRMNV06210");
  38. }
  39. ]]>
  40. </script>
  41. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/codeinfo"/>
  42. <submission id="TXMNV06211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ermainnotinfo"/>
  43. <submission id="TRMNV06210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/con" resultref="/root/main/ermainnotinfo"/>
  44. </model>
  45. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  49. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  50. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  51. </xhtml:head>
  52. <xhtml:body pagewidth="535" pageheight="350" guideline="1,531;1,529;1,530;2,441;">
  53. <caption id="caption6" class="tit_1" style="left:145px; top:30px; width:250px; height:13px; ">응급실 재원현황판 공지사항 관리</caption>
  54. <button id="button1" class="btn5_letter2" style="left:482px; top:32px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter6.gif; ">
  55. <caption>저장</caption>
  56. <script type="javascript" ev:event="DOMActivate">
  57. <![CDATA[
  58. if( ! getGridUpdateData(grd_ermainnoti) ) {
  59. messageBox("입력","E013"); // 그리드에 데이터가 업데이트 되지 않으면 "입력된 데이터가 없습니다."는 메시지 출력
  60. return ;
  61. }
  62. for(var i=1; i<=grd_ermainnoti.rows;i++){
  63. grd_ermainnoti.rowStatus(i) = 1;
  64. }
  65. model.makeValue("/root/send/savedata", grd_ermainnoti.getUpdateData("insert,update")); // 분류코드의 업데이트 된 내용을 savedata에 넣는다
  66. submit("TXMNV06211");
  67. ]]>
  68. </script>
  69. </button>
  70. <button id="button3" class="btn2_letter2" style="left:392px; top:32px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter6.gif; ">
  71. <caption>추가</caption>
  72. <script type="javascript" ev:event="DOMActivate">
  73. <![CDATA[
  74. grd_ermainnoti.addRow();
  75. model.setValue("/root/main/ermainnotinfo/ermainnotilist[" + grd_ermainnoti.row + "]/orddd","99999999");
  76. model.setValue("/root/main/ermainnotinfo/ermainnotilist[" + grd_ermainnoti.row + "]/msgfromtm","0000");
  77. model.setValue("/root/main/ermainnotinfo/ermainnotilist[" + grd_ermainnoti.row + "]/msgtotm","2359");
  78. ]]>
  79. </script>
  80. </button>
  81. <button id="button4" class="btn2_letter2" style="left:437px; top:32px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter6.gif; ">
  82. <caption>삭제</caption>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. grd_ermainnoti.deleteRow(grd_ermainnoti.row, false);
  86. ]]>
  87. </script>
  88. </button>
  89. <datagrid id="grd_ermainnoti" nodeset="/root/main/ermainnotinfo/ermainnotilist" caption="공지 내용^orddd^orddeptcd^msgfromtm^msgtotm" colsep="^" colwidth="478, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:60px; width:520px; height:245px; ">
  90. <col ref="msg" type="input"/>
  91. <col ref="orddd" visibility="hidden"/>
  92. <col ref="msgfromtm" visibility="hidden"/>
  93. <col ref="msgtotm" visibility="hidden"/>
  94. </datagrid>
  95. <caption id="caption2" class="tit_2" style="left:13px; top:34px; width:131px; height:13px; font-size:12pxptpt; ">공지사항 관리</caption>
  96. <line id="line2" class="line_1" style="x1:6px; y1:55px; x2:525px; y2:55px; "/>
  97. <button id="btn_cls" class="btn4_letter2" style="left:460px; top:315px; width:56px; height:22px; ">
  98. <caption>닫기</caption>
  99. <close ev:event="DOMActivate"/>
  100. </button>
  101. </xhtml:body>
  102. </xhtml:html>