SMLMF00200_항균제코드관리.xrw 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. <temp>
  45. <addlist/>
  46. </temp>
  47. </root>
  48. </instance>
  49. <script ev:event="xforms-model-construct-done" type="javascript">
  50. <![CDATA[
  51. fSetInit()
  52. ]]>
  53. </script>
  54. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  55. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  56. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  57. <submission id="TRLMF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/antibiolist"/>
  58. <submission id="TXLMF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  59. </model>
  60. <script type="javascript">
  61. <![CDATA[
  62. /* @group : 항균제코드관리
  63. * @ver : 2007.04.09(CMCDEV-0001)
  64. * @by : 조철형
  65. *@-----------------------------------
  66. * @type : function
  67. * @access : public
  68. * @desc : 행추가버튼 클릭
  69. */
  70. function fInsRowAdd(pGridId) {
  71. modal("SPLMF10200","","","","","","");
  72. var addstring = model.getValue("/root/temp/addlist/addstring");
  73. var addlen = addstring.split("▩");
  74. for(i = 0 ; i < addlen.length-1 ; i ++){
  75. grd_antibiocddetl.addRow(false);
  76. grd_antibiocddetl.rowStatus(0) = 1;
  77. var today = getCurrentDate();
  78. var additemlist = addlen[i].split("▦");
  79. model.setValue("/root/main/antibiolist["+grd_antibiocddetl.row+"]/antibiofromdd", today);
  80. model.setValue("/root/main/antibiolist["+grd_antibiocddetl.row+"]/antibiotodd", "99991231");
  81. model.setValue("/root/main/antibiolist["+grd_antibiocddetl.row+"]/antibiocd", additemlist[0]);
  82. model.setValue("/root/main/antibiolist["+grd_antibiocddetl.row+"]/antibionm", additemlist[1]);
  83. model.setValue("/root/main/antibiolist["+grd_antibiocddetl.row+"]/antibioabbrnm", additemlist[2]);
  84. model.setValue("/root/main/antibiolist["+grd_antibiocddetl.row+"]/antibioscrnnm", additemlist[3]);
  85. model.setValue("/root/main/antibiolist["+grd_antibiocddetl.row+"]/antibioprntnm", additemlist[4]);
  86. }
  87. /*
  88. pGridId.addRow();
  89. var row = pGridId.rows-1;
  90. pGridId.topRow = row;
  91. model.setvalue("/root/main/antibiolist["+ row +"]/antibiofromdd" , getCurrentDate());
  92. model.setvalue("/root/main/antibiolist["+ row +"]/antibiotodd" , "99991231");
  93. */
  94. }
  95. /* @group : 항균제코드관리
  96. * @ver : 2007.04.09(CMCDEV-0001)
  97. * @by : 조철형
  98. *@-----------------------------------
  99. * @type : function
  100. * @access : public
  101. * @desc : 초기화버튼 클릭
  102. */
  103. function fSetInit() {
  104. model.removeNodeset("/root/main/antibiolist");
  105. model.refresh();
  106. }
  107. /* @group : 항균제코드관리
  108. * @ver : 2007.04.09(CMCDEV-0001)
  109. * @by : 조철형
  110. *@-----------------------------------
  111. * @type : function
  112. * @access : public
  113. * @desc : 조회, 검색 버튼 클릭
  114. */
  115. function fGetAntibiocd(gbn){
  116. model.setvalue("/root/hidden/ref/btnflag",gbn);
  117. model.copyNode("/root/send/data1","/root/hidden/ref");
  118. submit("TRLMF00201");
  119. model.copyNode("/root/send/data1","/root/hidden/default");
  120. fGridColorChange();
  121. }
  122. /* @group : 항균제코드관리
  123. * @ver : 2007.04.09(CMCDEV-0001)
  124. * @by : 조철형
  125. *@-----------------------------------
  126. * @type : function
  127. * @access : public
  128. * @desc : 조회후 그리드 색깔 변경
  129. */
  130. function fGridColorChange(){
  131. grd_antibiocddetl.rebuildstyle();
  132. var gbn = model.getValue("/root/hidden/ref/refgbn");
  133. if(gbn=="2"){
  134. setRowStyle("grd_antibiocddetl", "0", getCurrentDate(), "antibiotodd", "small");
  135. }
  136. }
  137. /* @group : 항균제코드관리
  138. * @ver : 2007.04.09(CMCDEV-0001)
  139. * @by : 조철형
  140. *@-----------------------------------
  141. * @type : function
  142. * @access : public
  143. * @desc : 저장버튼 클릭
  144. */
  145. function fExeAntibio(){
  146. model.setvalue("/root/send/antibio" , grd_antibiocddetl.getUpdateData());
  147. submit("TXLMF00201");
  148. model.copyNode("/root/send/antibio","/root/hidden/default");
  149. grd_antibiocddetl.clearStatus();
  150. fGridColorChange();
  151. }
  152. ]]>
  153. </script>
  154. </xhtml:head>
  155. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  156. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  157. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  158. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:144px; height:13px; ">항균제코드상세내역</caption>
  159. <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; ">
  160. <col ref="antibiofromdd" type="inputdate" format="yyyy-mm-dd"/>
  161. <col ref="antibiotodd" type="inputdate" format="yyyy-mm-dd"/>
  162. <col ref="antibiocd" type="input"/>
  163. <col ref="antibionm" type="input"/>
  164. <col ref="antibioabbrnm" type="input"/>
  165. <col ref="antibioscrnnm" type="input"/>
  166. <col ref="antibioprntnm" type="input"/>
  167. <script ev:event="onaftersort" type="javascript">
  168. <![CDATA[
  169. grd_antibiocddetl.gridToInstance();
  170. ]]>
  171. </script>
  172. </datagrid>
  173. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  174. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  175. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  176. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  177. <caption id="caption4" class="search_name" style="left:737px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  178. <line id="line2" class="line_4" style="x1:273px; y1:7px; x2:273px; y2:29px; "/>
  179. <select1 id="cmb_refflag" ref="/root/hidden/ref/refgbn" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; ">
  180. <choices>
  181. <item>
  182. <label>사용가능자료</label>
  183. <value>1</value>
  184. </item>
  185. <item>
  186. <label>전체자료</label>
  187. <value>2</value>
  188. </item>
  189. </choices>
  190. </select1>
  191. <button id="btn_ref" class="btn1_letter2" style="left:288px; top:7px; width:56px; height:22px; ">
  192. <caption>조회</caption>
  193. <script ev:event="DOMActivate" type="javascript">
  194. <![CDATA[
  195. fGetAntibiocd("1");
  196. ]]>
  197. </script>
  198. </button>
  199. <select1 id="cmb_search" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:830px; top:8px; width:150px; height:19px; ">
  200. <choices>
  201. <item>
  202. <label>코드</label>
  203. <value>1</value>
  204. </item>
  205. <item>
  206. <label>코드명</label>
  207. <value>2</value>
  208. </item>
  209. </choices>
  210. </select1>
  211. <input id="ipt_searchtext" ref="/root/hidden/ref/searchnm" class="input_search" style="left:983px; top:8px; width:110px; height:19px; "/>
  212. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  213. <caption>검색</caption>
  214. <script ev:event="DOMActivate" type="javascript">
  215. <![CDATA[
  216. fGetAntibiocd("2");
  217. ]]>
  218. </script>
  219. </button>
  220. </group>
  221. <button id="btn_addrow" class="btn2_letter3" style="left:1141px; top:49px; width:53px; height:19px; ">
  222. <caption>행추가</caption>
  223. <script ev:event="DOMActivate" type="javascript">
  224. <![CDATA[
  225. fInsRowAdd(grd_antibiocddetl);
  226. ]]>
  227. </script>
  228. </button>
  229. </group>
  230. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  231. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  232. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  233. <caption>초기화</caption>
  234. <script ev:event="DOMActivate" type="javascript">
  235. <![CDATA[
  236. fSetInit();
  237. ]]>
  238. </script>
  239. </button>
  240. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  241. <caption>저장</caption>
  242. <script ev:event="DOMActivate" type="javascript">
  243. <![CDATA[
  244. fExeAntibio();
  245. ]]>
  246. </script>
  247. </button>
  248. </group>
  249. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  250. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">항균제코드관리</caption>
  251. </group>
  252. </xhtml:body>
  253. </xhtml:html>