SMLMF10200_통합항균제코드관리.xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLMF00200_향균제코드관리.xrw
  4. * 설 명 : 향균제코드관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.04.09
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <antibiolist>
  20. <antibiofromdd/>
  21. <antibiotodd/>
  22. <antibiocd/>
  23. <antibionm/>
  24. <antibioabbrnm/>
  25. <antibioscrnnm/>
  26. <antibioprntnm/>
  27. </antibiolist>
  28. </main>
  29. <send>
  30. <data1/>
  31. <antibio/>
  32. </send>
  33. <init>
  34. </init>
  35. <hidden>
  36. <ref>
  37. <refgbn>1</refgbn>
  38. <searchgbn>1</searchgbn>
  39. <searchnm/>
  40. <btnflag/>
  41. </ref>
  42. <default/>
  43. </hidden>
  44. </root>
  45. </instance>
  46. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  47. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  48. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  49. <submission id="TRLMF10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/antibiolist"/>
  50. <submission id="TXLMF10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  51. </model>
  52. <script type="javascript">
  53. <![CDATA[
  54. /* @group : 항균제코드관리
  55. * @ver : 2007.04.09(CMCDEV-0001)
  56. * @by : 조철형
  57. *@-----------------------------------
  58. * @type : function
  59. * @access : public
  60. * @desc : 행추가버튼 클릭
  61. */
  62. function fInsRowAdd(pGridId) {
  63. pGridId.addRow();
  64. var row = pGridId.rows-1;
  65. pGridId.topRow = row;
  66. model.setvalue("/root/main/antibiolist["+ row +"]/antibiofromdd" , getCurrentDate());
  67. model.setvalue("/root/main/antibiolist["+ row +"]/antibiotodd" , "99991231");
  68. }
  69. /* @group : 항균제코드관리
  70. * @ver : 2007.04.09(CMCDEV-0001)
  71. * @by : 조철형
  72. *@-----------------------------------
  73. * @type : function
  74. * @access : public
  75. * @desc : 초기화버튼 클릭
  76. */
  77. function fSetInit() {
  78. model.removeNodeset("/root/main/antibiolist");
  79. model.refresh();
  80. }
  81. /* @group : 항균제코드관리
  82. * @ver : 2007.04.09(CMCDEV-0001)
  83. * @by : 조철형
  84. *@-----------------------------------
  85. * @type : function
  86. * @access : public
  87. * @desc : 조회, 검색 버튼 클릭
  88. */
  89. function fGetAntibiocd(gbn){
  90. model.setvalue("/root/hidden/ref/btnflag",gbn);
  91. model.copyNode("/root/send/data1","/root/hidden/ref");
  92. submit("TRLMF10201");
  93. model.copyNode("/root/send/data1","/root/hidden/default");
  94. fGridColorChange();
  95. }
  96. /* @group : 항균제코드관리
  97. * @ver : 2007.04.09(CMCDEV-0001)
  98. * @by : 조철형
  99. *@-----------------------------------
  100. * @type : function
  101. * @access : public
  102. * @desc : 조회후 그리드 색깔 변경
  103. */
  104. function fGridColorChange(){
  105. grd_antibiocddetl.rebuildstyle();
  106. var gbn = model.getValue("/root/hidden/ref/refgbn");
  107. if(gbn=="2"){
  108. setRowStyle("grd_antibiocddetl", "0", getCurrentDate(), "antibiotodd", "small");
  109. }
  110. }
  111. /* @group : 항균제코드관리
  112. * @ver : 2007.04.09(CMCDEV-0001)
  113. * @by : 조철형
  114. *@-----------------------------------
  115. * @type : function
  116. * @access : public
  117. * @desc : 저장버튼 클릭
  118. */
  119. function fExeAntibio(){
  120. model.setvalue("/root/send/antibio" , grd_antibiocddetl.getUpdateData());
  121. submit("TXLMF10201");
  122. model.copyNode("/root/send/antibio","/root/hidden/default");
  123. grd_antibiocddetl.clearStatus();
  124. fGridColorChange();
  125. }
  126. ]]>
  127. </script>
  128. </xhtml:head>
  129. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  130. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  131. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  132. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:144px; height:13px; ">항균제코드상세내역</caption>
  133. <datagrid id="grd_antibiocddetl" nodeset="/root/main/antibiolist" caption="사용시작일자^사용종료일자^항균제코드^항균제명^항균제명(약어)^항균제명(화면)^항균제명(출력)" colsep="^" colwidth="110, 110, 130, 210, 200, 200, 210" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:669px; ">
  134. <col ref="antibiofromdd" type="inputdate" format="yyyy-mm-dd"/>
  135. <col ref="antibiotodd" type="inputdate" format="yyyy-mm-dd"/>
  136. <col ref="antibiocd" type="input"/>
  137. <col ref="antibionm" type="input"/>
  138. <col ref="antibioabbrnm" type="input"/>
  139. <col ref="antibioscrnnm" type="input"/>
  140. <col ref="antibioprntnm" type="input"/>
  141. <script ev:event="onaftersort" type="javascript">
  142. <![CDATA[
  143. grd_antibiocddetl.gridToInstance();
  144. ]]>
  145. </script>
  146. </datagrid>
  147. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  148. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  149. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  150. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  151. <caption id="caption4" class="search_name" style="left:737px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  152. <line id="line2" class="line_4" style="x1:273px; y1:7px; x2:273px; y2:29px; "/>
  153. <select1 id="cmb_refflag" ref="/root/hidden/ref/refgbn" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; ">
  154. <choices>
  155. <item>
  156. <label>사용가능자료</label>
  157. <value>1</value>
  158. </item>
  159. <item>
  160. <label>전체자료</label>
  161. <value>2</value>
  162. </item>
  163. </choices>
  164. </select1>
  165. <button id="btn_ref" class="btn1_letter2" style="left:288px; top:7px; width:56px; height:22px; ">
  166. <caption>조회</caption>
  167. <script ev:event="DOMActivate" type="javascript">
  168. <![CDATA[
  169. fGetAntibiocd("1");
  170. ]]>
  171. </script>
  172. </button>
  173. <select1 id="cmb_search" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:830px; top:8px; width:150px; height:19px; ">
  174. <choices>
  175. <item>
  176. <label>코드</label>
  177. <value>1</value>
  178. </item>
  179. <item>
  180. <label>코드명</label>
  181. <value>2</value>
  182. </item>
  183. </choices>
  184. </select1>
  185. <input id="ipt_searchtext" ref="/root/hidden/ref/searchnm" class="input_search" style="left:983px; top:8px; width:110px; height:19px; "/>
  186. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  187. <caption>검색</caption>
  188. <script ev:event="DOMActivate" type="javascript">
  189. <![CDATA[
  190. fGetAntibiocd("2");
  191. ]]>
  192. </script>
  193. </button>
  194. </group>
  195. <button id="btn_addrow" class="btn2_letter3" style="left:1141px; top:49px; width:53px; height:19px; ">
  196. <caption>행추가</caption>
  197. <script ev:event="DOMActivate" type="javascript">
  198. <![CDATA[
  199. fInsRowAdd(grd_antibiocddetl);
  200. ]]>
  201. </script>
  202. </button>
  203. </group>
  204. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  205. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  206. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  207. <caption>초기화</caption>
  208. <script ev:event="DOMActivate" type="javascript">
  209. <![CDATA[
  210. fSetInit();
  211. ]]>
  212. </script>
  213. </button>
  214. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  215. <caption>저장</caption>
  216. <script ev:event="DOMActivate" type="javascript">
  217. <![CDATA[
  218. fExeAntibio();
  219. ]]>
  220. </script>
  221. </button>
  222. </group>
  223. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  224. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">항균제코드관리</caption>
  225. </group>
  226. </xhtml:body>
  227. </xhtml:html>