SMADB02901_TPN 수가요청 목록 관리.xrw 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. <grid>
  11. <item>
  12. <tpndrugcd/>
  13. <drugcd/>
  14. <engnm/>
  15. <amount/>
  16. </item>
  17. </grid>
  18. <grid1>
  19. <druglist>
  20. <drugcd/>
  21. <drugnm/>
  22. </druglist>
  23. </grid1>
  24. </main>
  25. <send>
  26. <srchtpndrugcd/>
  27. <srchcomnm/>
  28. <req>
  29. <data1/>
  30. </req>
  31. <code/>
  32. <name/>
  33. <druglistreq>
  34. <srchcomcd/>
  35. <srchcomexcd/>
  36. <srchcomnm/>
  37. </druglistreq>
  38. </send>
  39. <init/>
  40. <hidden>
  41. <count/>
  42. <item/>
  43. </hidden>
  44. <temp>
  45. <item/>
  46. <receivedata>
  47. <drugcd/>
  48. <receiveref>/root/temp/receivedata/drugcd</receiveref>
  49. </receivedata>
  50. </temp>
  51. </root>
  52. </instance>
  53. <submission id="TRADB02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grid"/>
  54. <submission id="TXADB02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp"/>
  55. </model>
  56. <script type="javascript" src="../../../com/hismainweb/js/DocTitle.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. submit("TRADB02902");
  62. ]]>
  63. </script>
  64. </xhtml:head>
  65. <xhtml:body guideline="1,1194;1,1288;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  66. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  67. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:15px; ">TPN 수가요청 목록 관리</caption>
  68. </group>
  69. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  70. <group id="group2" style="left:0px; top:5px; width:1194px; height:30px; ">
  71. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  72. <button id="button3" class="btn1_letter2" navindex="3" style="left:1115px; top:5px; width:56px; height:22px; ">
  73. <caption>조회</caption>
  74. <script type="javascript" ev:event="DOMActivate">
  75. <![CDATA[
  76. submit("TRADB02902");
  77. //setTree(grd_comlist, grd_comlist.colRef("comlevel"),grd_comlist.colRef("comcd"), false );
  78. ]]>
  79. </script>
  80. </button>
  81. <caption id="caption1" class="search_name" visibility="hidden" style="left:275px; top:5px; width:60px; height:17px; ">명칭</caption>
  82. <line id="line13" class="line_4" style="x1:1100px; y1:5px; x2:1100px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  83. <caption id="caption2" class="search_name" style="left:20px; top:5px; width:60px; height:17px; ">코드</caption>
  84. <input id="input1" ref="/root/send/srchcomnm" class="input_search" navindex="2" visibility="hidden" maxlength="100" style="left:335px; top:5px; width:580px; height:19px; ">
  85. <script type="javascript" ev:event="onkeyup">
  86. <![CDATA[
  87. // 명칭입력후 Enter시 성분조회 가능하도록 처리 2008-08-18
  88. if (event.keyCode == "13") {
  89. setInputNodeCurText();
  90. model.setValue( "/root/send/srchcomnm", model.getValue("/root/send/srchcomnm") );
  91. model.refresh();
  92. submit("TRADB00201");
  93. setTree(grd_comlist, grd_comlist.colRef("comlevel"),grd_comlist.colRef("comcd"), false );
  94. }
  95. ]]>
  96. </script>
  97. </input>
  98. <input id="input2" ref="/root/send/srchtpndrugcd" class="input_search" navindex="1" style="left:80px; top:5px; width:155px; height:19px; ">
  99. <script type="javascript" ev:event="onkeyup">
  100. <![CDATA[
  101. // 코드입력후 Enter시 성분조회 가능하도록 처리 2008-08-18
  102. if (event.keyCode == "13") {
  103. setInputNodeCurText();
  104. model.setValue( "/root/send/srchtpndrugcd", model.getValue("/root/send/srchtpndrugcd").toUpperCase() );
  105. model.refresh();
  106. submit("TRADB02902");
  107. }
  108. ]]>
  109. </script>
  110. </input>
  111. </group>
  112. <button id="button1" class="btn2_letter2" navindex="4" visibility="hidden" style="left:986px; top:40px; width:42px; height:19px; ">
  113. <caption>엑셀</caption>
  114. <script type="javascript" ev:event="onclick">
  115. <![CDATA[
  116. // grd_comlist.insertItem(datagrid1.row);
  117. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  118. grd_comlist.saveExcel(file);
  119. ]]>
  120. </script>
  121. </button>
  122. <button id="button50" class="btn2_letter3" navindex="6" visibility="hidden" style="left:925px; top:40px; width:53px; height:19px; ">
  123. <caption>행복사</caption>
  124. <script type="javascript" ev:event="onclick">
  125. <![CDATA[
  126. var grdrow = grd_comlist.row;
  127. model.copyNode("/root/hidden/item","/root/main/grid/item["+ grdrow +"]");
  128. grd_comlist.insertItem(grdrow);
  129. model.copyNode("/root/main/grid/item["+ grdrow +"]","/root/hidden/item");
  130. model.refresh();
  131. ]]>
  132. </script>
  133. </button>
  134. <button id="btn_grdadd" class="btn2_letter3" navindex="5" style="left:1080px; top:40px; width:53px; height:19px; ">
  135. <caption>행추가</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. grd_comlist.addRow();
  139. grd_comlist.refresh();
  140. ]]>
  141. </script>
  142. </button>
  143. <button id="btn_grddel" class="btn2_letter3" navindex="7" style="left:1140px; top:40px; width:53px; height:19px; ">
  144. <caption>행삭제</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. grd_comlist.addStatus(grd_comlist.row,"delete");
  148. ]]>
  149. </script>
  150. </button>
  151. <caption id="caption10" class="tit_2" style="left:6px; top:45px; width:95px; height:13px; ">목록</caption>
  152. <line id="line2" class="line_1" style="x1:0px; y1:60px; x2:1194px; y2:60px; "/>
  153. <datagrid id="grd_comlist" nodeset="/root/main/grid/item" allowselection="true" backcoloralternate="#f0f0f0" caption="TPN 코드^약품코드^약품명^분량" colsep="^" colwidth="173, 127, 371, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="free" navindex="8" style="left:0px; top:65px; width:1194px; height:676px; ">
  154. <col ref="tpndrugcd" type="inputbutton"/>
  155. <col ref="drugcd" type="inputbutton"/>
  156. <col autonext="false" ref="engnm" type="input"/>
  157. <col autonext="false" ref="amount" type="input"/>
  158. <script type="javascript" ev:event="onbuttonclick">
  159. <![CDATA[
  160. var drugcode = "";
  161. var tempcol = "";
  162. tempcol = grd_comlist.col;
  163. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  164. if(tempcol == "1") {
  165. model.makeValue("/root/main/grid/item["+(grd_comlist.row)+"]/tpndrugcd", model.getValue("/root/temp/receivedata/drugcd"));
  166. //drugcode = model.getValue("/root/main/grid/item["+(grd_comlist.row)+"]/tpndrugcd");
  167. } else if(tempcol == "2") {
  168. model.makeValue("/root/main/grid/item["+(grd_comlist.row)+"]/drugcd", model.getValue("/root/temp/receivedata/drugcd"));
  169. //drugcode = model.getValue("/root/main/grid/item["+(grd_comlist.row)+"]/drugcd");
  170. }
  171. ]]>
  172. </script>
  173. </datagrid>
  174. </group>
  175. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  176. <button id="btn_save" class="btn4_letter2" navindex="9" style="left:1128px; top:3px; width:56px; height:22px; ">
  177. <caption>저장</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. var update = getGridUpdateData(grd_comlist);
  181. // var update = model.getValue("/root/send/req/data");
  182. if(update == ""){
  183. messageBox("업데이트 정보가 없습니다.", "I");
  184. return 0;
  185. } else {
  186. model.setValue( "/root/send/req/data1", grd_comlist.getUpdateData());
  187. submit("TXADB02902");
  188. submit("TRADB02902");
  189. }
  190. ]]>
  191. </script>
  192. <script type="javascript" ev:event="DOMFocusIn">
  193. <![CDATA[
  194. checkKeyColumn("grd_comlist");
  195. ]]>
  196. </script>
  197. </button>
  198. <caption id="caption3" style="left:25px; top:0px; width:670px; height:25px; ">* 수정은 분량만 가능합니다. 약품코드나 TPN 코드 수정 시에는 삭제 후 다시 입력해 주십시오.</caption>
  199. </group>
  200. </xhtml:body>
  201. </xhtml:html>