SPADB60603_특수조제실약사메모이력.xrw 5.2 KB

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