SPADB60601_약사메모이력입원.xrw 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. <memoinfo>
  11. <item>
  12. <memo/>
  13. <writnm/>
  14. <orddeptnm/>
  15. <writdt/>
  16. <pid/>
  17. <orddeptcd/>
  18. <indd/>
  19. <seqno/>
  20. <instcd/>
  21. <writid/>
  22. <useyn/>
  23. <ioflag/>
  24. </item>
  25. </memoinfo>
  26. </main>
  27. <send>
  28. <srchinfo>
  29. <srchpid/>
  30. <srchinstcd/>
  31. <srchioflag/>
  32. </srchinfo>
  33. <delinfo>
  34. <pid/>
  35. <indd/>
  36. <seqno/>
  37. <instcd/>
  38. <m>d</m>
  39. <ioflag>I</ioflag>
  40. </delinfo>
  41. </send>
  42. <init/>
  43. <hidden>
  44. </hidden>
  45. </root>
  46. </instance>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  50. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  51. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  52. <submission id="TRADB60601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/memoinfo"/>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. model.setValue("/root/send/srchinfo/srchioflag","I");
  56. submit("TRADB60601");
  57. model.refresh();
  58. ]]>
  59. </script>
  60. <submission id="TXADB60601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/delinfo" replace="instance" resultref="/root/hidden"/>
  61. </model>
  62. </xhtml:head>
  63. <xhtml:body pagewidth="610" pageheight="380" guideline="2,13;1,1194;2,784;2,757;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  64. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:590px; height:306px; ">
  65. <caption id="caption1" class="tit_2" style="left:5px; top:11px; width:95px; height:13px; ">약사메모이력</caption>
  66. <line id="line1" class="line_1" style="x1:2px; y1:26px; x2:580px; y2:26px; "/>
  67. <datagrid id="grd_memolist" nodeset="/root/main/memoinfo/item" allowselection="false" autoresize="true" caption="메모^작성자^진료과^작성일시" colsep="^" colwidth="325, 55, 78, 85" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" style="left:2px; top:31px; width:578px; height:275px; ">
  68. <col ref="memo"/>
  69. <col ref="writnm" style="vertical-align:middle; "/>
  70. <col ref="orddeptnm"/>
  71. <col ref="writdt" format="yyyy-mm-dd hh:mm:ss"/>
  72. <script type="javascript" ev:event="onclick">
  73. <![CDATA[
  74. if (model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/writid")==getUserId()) {
  75. btn_del.visible = true;
  76. } else {
  77. btn_del.visible = false;
  78. }
  79. ]]>
  80. </script>
  81. <script type="javascript" ev:event="ondblclick">
  82. <![CDATA[
  83. opener.model.setValue("/root/main/detailinfo/memoinfo/pid" , model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/pid"));
  84. opener.model.setValue("/root/main/detailinfo/memoinfo/indd" , model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/indd"));
  85. opener.model.setValue("/root/main/detailinfo/memoinfo/seqno" , model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/seqno"));
  86. opener.model.setValue("/root/main/detailinfo/memoinfo/instcd" , model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/instcd"));
  87. opener.model.setValue("/root/main/detailinfo/memoinfo/orddeptcd" , model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/orddeptcd"));
  88. opener.model.setValue("/root/main/detailinfo/memoinfo/writid" , model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/writid"));
  89. opener.model.setValue("/root/main/detailinfo/memoinfo/writnm" , model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/writnm"));
  90. opener.model.setValue("/root/main/detailinfo/memoinfo/writdt" , model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/writdt"));
  91. opener.model.setValue("/root/main/detailinfo/memoinfo/innrmemo" , model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/innrmemo"));
  92. opener.model.setValue("/root/main/detailinfo/memoinfo/useyn" , model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/useyn"));
  93. opener.model.setValue("/root/main/detailinfo/memoinfo/ioflag" , model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/ioflag"));
  94. opener.model.refresh();
  95. window.close();
  96. ]]>
  97. </script>
  98. </datagrid>
  99. </group>
  100. <group id="grp_btn" scroll="auto" style="left:0px; top:306px; width:590px; height:27px; ">
  101. <button id="btn_cls" class="btn4_letter2" style="left:524px; top:5px; width:56px; height:22px; ">
  102. <caption>닫기</caption>
  103. <close ev:event="DOMActivate"/>
  104. </button>
  105. <button id="btn_del" class="btn4_letter2" visibility="visible" style="left:464px; top:5px; width:56px; height:22px; ">
  106. <caption>삭제</caption>
  107. <script type="javascript" ev:event="onclick">
  108. <![CDATA[
  109. if (messageBox("약사메모를","Q001")==6)
  110. {
  111. model.setValue("/root/send/delinfo/pid", model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/pid"));
  112. model.setValue("/root/send/delinfo/indd", model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/indd"));
  113. model.setValue("/root/send/delinfo/seqno", model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/seqno"));
  114. model.setValue("/root/send/delinfo/instcd", model.getValue("/root/main/memoinfo/item["+grd_memolist.row+"]/instcd"));
  115. submit("TXADB60601");
  116. submit("TRADB60601");
  117. model.refresh();
  118. }
  119. ]]>
  120. </script>
  121. </button>
  122. </group>
  123. </xhtml:body>
  124. </xhtml:html>